@visitscotland/component-library 5.20.0 → 5.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +21 -21
- package/dist/client/manifest.json +2307 -2307
- package/dist/client/scripts/5e43973ca1a47dbec74e.js +1 -0
- package/dist/client/scripts/748aac55685aa39cbb09.js +1 -0
- package/dist/client/scripts/{6c12b23e171896e42a5f.js → 780756067403de777217.js} +1 -1
- package/dist/client/scripts/d4999b8d90a9587abd34.js +1 -0
- package/dist/client/scripts/d987ec5470e6368b6f89.js +1 -0
- package/dist/client/scripts/ddb1fea40c338415285a.js +1 -0
- package/dist/client/scripts/{50b89672eef23c1cba6c.js → f2bbbd400c8a63b19d7b.js} +1 -1
- package/dist/client/scripts/f63eafcdb6b94fd95198.js +1 -0
- package/dist/components/{LoadingSpinner-D-h3wMvy.js → LoadingSpinner-C4HeCKwT.js} +1 -1
- package/dist/components/{LoadingSpinner-Bun15Pvs.mjs → LoadingSpinner-Cu6DwK8i.mjs} +2 -1
- package/dist/components/{deprecated-Cl9osRH8.js → deprecated-BJ2e68Yo.js} +12 -12
- package/dist/components/deprecated-SV4OJNeR.mjs +16 -0
- package/dist/components/{highland-cow-BiKfZg7L.mjs → highland-cow-6AoCzBpF.mjs} +14 -14
- package/dist/components/{highland-cow-CRm5ANrL.js → highland-cow-DlMGnebG.js} +14 -14
- package/dist/components/{iCentre-DV4_tr7d.mjs → iCentre-BLimkPxI.mjs} +42 -42
- package/dist/components/{iCentre-BeepnBTk.js → iCentre-BnLcpIw8.js} +42 -42
- package/dist/components/{os-logo-maps-B7DKWN7s.mjs → os-logo-maps-DUN8X-lQ.mjs} +9 -9
- package/dist/components/{os-logo-maps-CF9QEvIX.js → os-logo-maps-QXAuept_.js} +9 -9
- package/dist/components/{os-logo-maps-white-DOUatF7F.js → os-logo-maps-white-BTtf_Eki.js} +6 -6
- package/dist/components/{os-logo-maps-white-Dl0tLZD_.mjs → os-logo-maps-white-SKYtuD6d.mjs} +6 -6
- package/dist/components/{prototype-ggLuAMuB.js → prototype-DQocvgQh.js} +12 -12
- package/dist/components/{prototype-8NKYzK-s.mjs → prototype-lvwJzV8T.mjs} +13 -13
- package/dist/components/ready-CWPx4e9A.mjs +15 -0
- package/dist/components/{ready-DSUouF6L.js → ready-D9pdKFkx.js} +11 -11
- package/dist/components/{review-Bi0lAugE.js → review-7L3On10m.js} +11 -11
- package/dist/components/{review-B3KwWYuP.mjs → review-CknihZl_.mjs} +11 -11
- package/dist/components/src/components/form/Form.vue.d.ts +3 -7
- package/dist/components/src/components/select/Select.vue.d.ts +14 -14
- package/dist/components/src/custom-components/federated-search/stores/federatedSearch.store.d.ts +3 -3
- package/dist/components/style.css +1 -1
- package/dist/components/{visitscotland-logo-BA7LkUJw.mjs → visitscotland-logo-BEiiuSpo.mjs} +3 -3
- package/dist/components/{visitscotland-logo-yAzNpi5x.js → visitscotland-logo-NoymCLtN.js} +3 -3
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +151 -151
- package/dist/components/vs-component-library.mjs +1115 -1113
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +231 -231
- package/dist/client/scripts/1a2fe27ede39fb06df96.js +0 -1
- package/dist/client/scripts/3cf61618bc3263a1c0c9.js +0 -1
- package/dist/client/scripts/4686de7ea799c8ec1c03.js +0 -1
- package/dist/client/scripts/8e08333a06adfc57e26d.js +0 -1
- package/dist/client/scripts/e550d1701ff3985309fc.js +0 -1
- package/dist/client/scripts/eacb9fb49685d24d4a62.js +0 -1
- package/dist/components/deprecated-B3DbN99Y.mjs +0 -16
- package/dist/components/ready-DQA4tUcz.mjs +0 -15
- /package/dist/client/scripts/{588b32ff5515fdd5707e.js → 025902a6e1e60501e418.js} +0 -0
- /package/dist/client/scripts/{f1fc1db1d8256f3c8b0f.js → 02cd01e4087e8d5aa492.js} +0 -0
- /package/dist/client/scripts/{e0c5487ea1f49ba55654.js → 05a1efe07f04c478155a.js} +0 -0
- /package/dist/client/scripts/{804a497cb44fe949310e.js → 06e2a0dd3335dfc0e506.js} +0 -0
- /package/dist/client/scripts/{e949a288ca740fd5e306.js → 08755652b19e4b8cc3a6.js} +0 -0
- /package/dist/client/scripts/{41188d492c5a77d87d02.js → 0918c354e496ebc33a8e.js} +0 -0
- /package/dist/client/scripts/{59ab7b4a6827442b90c7.js → 093df1d5f4968f1a29eb.js} +0 -0
- /package/dist/client/scripts/{8773147ebc61bee2e1a6.js → 09b087ec0d366e0f4aab.js} +0 -0
- /package/dist/client/scripts/{dd51706886e16b5f97be.js → 0c6dfbf036b0371160cd.js} +0 -0
- /package/dist/client/scripts/{746da613bad15ee3dcff.js → 0d44aeaf665b9f76f1a3.js} +0 -0
- /package/dist/client/scripts/{02201764e0adf0d63538.js → 0e63f8b8378416581782.js} +0 -0
- /package/dist/client/scripts/{21cac0ef61086a4aaa44.js → 0f9d4e89ae9e875c4c2c.js} +0 -0
- /package/dist/client/scripts/{92e2f55c77c0b9473c56.js → 0fc32c57e4b4c007d86e.js} +0 -0
- /package/dist/client/scripts/{34433c129bef8559d83f.js → 0fcf11c1fab34c75ad81.js} +0 -0
- /package/dist/client/scripts/{a1f8e3bd33feb4f2ab92.js → 108eacd965f43203b161.js} +0 -0
- /package/dist/client/scripts/{c3622d52d3929b8ce67a.js → 12c214803bb856eac25e.js} +0 -0
- /package/dist/client/scripts/{f75efc7d112f59f0bf9c.js → 147acfad2826cadced1c.js} +0 -0
- /package/dist/client/scripts/{a9887918f6748e99e5e6.js → 170ca751557782434b86.js} +0 -0
- /package/dist/client/scripts/{d4fdfca319e908a2c80a.js → 18a0554f2d6d9bb11db8.js} +0 -0
- /package/dist/client/scripts/{86714d804290b9ba22f6.js → 18b8732facc297fa275d.js} +0 -0
- /package/dist/client/scripts/{6f97d59f13e103648e2b.js → 1b671e76adf446fe7310.js} +0 -0
- /package/dist/client/scripts/{59658d2a579def05efa0.js → 1bb081afaacdf19e137c.js} +0 -0
- /package/dist/client/scripts/{74ecbb4b7b820d191d79.js → 1d1abb5e5dbc59ef9ba2.js} +0 -0
- /package/dist/client/scripts/{91501cfefb3e9beeffa4.js → 230561f40b218ce33aa3.js} +0 -0
- /package/dist/client/scripts/{e97cb8c56d2e5ca10a9b.js → 23e7e7801052da2ee7b1.js} +0 -0
- /package/dist/client/scripts/{1dab8b823a9fc7be9e7d.js → 23ea5cdb4bd00312ad71.js} +0 -0
- /package/dist/client/scripts/{205e2dbe4c3590fb0ca4.js → 2426de8f0394d3b603f9.js} +0 -0
- /package/dist/client/scripts/{0adba95aa35ce3cf48a3.js → 24553449d3e0cde91619.js} +0 -0
- /package/dist/client/scripts/{09efaf35581f94d9341a.js → 247c689797a97059a7e0.js} +0 -0
- /package/dist/client/scripts/{4584e1ddb5422604136f.js → 255deca6193abf3e925a.js} +0 -0
- /package/dist/client/scripts/{8bbb03cef27adbf1052c.js → 2847077fc8b21eea9bc7.js} +0 -0
- /package/dist/client/scripts/{0e8cc6787e102d95ccad.js → 28fb27bc5806c768b30d.js} +0 -0
- /package/dist/client/scripts/{ddc4d2ea575a50bc4ae3.js → 29592daed7085fae2aff.js} +0 -0
- /package/dist/client/scripts/{d307d2e9cf655c179d77.js → 29fe5285a5534638e45b.js} +0 -0
- /package/dist/client/scripts/{3ea2352e8a94ddc6dc8a.js → 2b43a99e2018d0c84f18.js} +0 -0
- /package/dist/client/scripts/{99f43c4c4a9704f957a9.js → 2bac5c7960d4e0987bf3.js} +0 -0
- /package/dist/client/scripts/{eb3bd92efead362fbc2c.js → 2ddd806af85bc2956424.js} +0 -0
- /package/dist/client/scripts/{dfab0d5501435b36f6fb.js → 2f1b8a7fe67255cbe0ad.js} +0 -0
- /package/dist/client/scripts/{0965942c287f6c10c83a.js → 30104934860fed5bc19c.js} +0 -0
- /package/dist/client/scripts/{1c048832077af161ca70.js → 319cce34e32e88725a45.js} +0 -0
- /package/dist/client/scripts/{efe4a3c8ab1adefc03f2.js → 327234381f9055359003.js} +0 -0
- /package/dist/client/scripts/{69230c65912cdd38a584.js → 3339ab53ef97b3ccfa18.js} +0 -0
- /package/dist/client/scripts/{2d931eb506983939dee2.js → 335bb4f1c38a98d3a44d.js} +0 -0
- /package/dist/client/scripts/{ada91090ef1c52557dc9.js → 373129c3f6ff64209b21.js} +0 -0
- /package/dist/client/scripts/{980215f15338a4638935.js → 39ba7e46913442fd36d3.js} +0 -0
- /package/dist/client/scripts/{ebdce9568e760278f176.js → 3d104d833e75a1ac1e4a.js} +0 -0
- /package/dist/client/scripts/{00ccd7949f170b3d738d.js → 407c4cdbe305f30d4aae.js} +0 -0
- /package/dist/client/scripts/{17bca51c0b3e12105894.js → 41085f1d73bd0fa3c10a.js} +0 -0
- /package/dist/client/scripts/{d8479a09f285dd896e64.js → 425798f1e769e3318588.js} +0 -0
- /package/dist/client/scripts/{b7cc5ee25c7302916b09.js → 43342b3ad25af480ac21.js} +0 -0
- /package/dist/client/scripts/{eeaf7a5064376c23e2fd.js → 454827facac3a7b5372d.js} +0 -0
- /package/dist/client/scripts/{b5213fdbef77370db82d.js → 467ccdae7bcc2a1615bb.js} +0 -0
- /package/dist/client/scripts/{bbb212b4be125e838441.js → 49ea1362a407d332ae50.js} +0 -0
- /package/dist/client/scripts/{dba10c026b8321623d2e.js → 4ad5d822d9c447ec26c9.js} +0 -0
- /package/dist/client/scripts/{662de3a6d0e84564965f.js → 4b8ab89e3dadf71a555b.js} +0 -0
- /package/dist/client/scripts/{2a0d066c05ce80ef84a2.js → 4be307902b6682456306.js} +0 -0
- /package/dist/client/scripts/{88b02946d875717c7892.js → 4f227cf9d210a351d684.js} +0 -0
- /package/dist/client/scripts/{2464bcc48b0bd7955c9f.js → 4fdaba171d92a49c5002.js} +0 -0
- /package/dist/client/scripts/{378133b962494b0328be.js → 50e356fe6c0b2febc750.js} +0 -0
- /package/dist/client/scripts/{d92b71a6a05b8f554c7e.js → 52a3b97165f405e63efb.js} +0 -0
- /package/dist/client/scripts/{e600798c21b1e4b3421a.js → 52c515514b241f01e737.js} +0 -0
- /package/dist/client/scripts/{03be5e7637e3fc5b35f2.js → 54bf256155e551077ef4.js} +0 -0
- /package/dist/client/scripts/{d014754e0eff762e6ca9.js → 565fe0111bdfe1faa81b.js} +0 -0
- /package/dist/client/scripts/{c07d2bb6aab9b5629d10.js → 5a9f3609f8449b952b64.js} +0 -0
- /package/dist/client/scripts/{7f740f4d4657aa579ccd.js → 5b8a2cea713d1756b7de.js} +0 -0
- /package/dist/client/scripts/{e2b91f9e13b86ff8389c.js → 5ca596aa3d93347cb166.js} +0 -0
- /package/dist/client/scripts/{89abc7e3a5eecf6b6014.js → 5e9e07ef4ddc7059f769.js} +0 -0
- /package/dist/client/scripts/{f2995c12e4c7d9beeedc.js → 5fe5fed299dd1686d8b6.js} +0 -0
- /package/dist/client/scripts/{86814331153df2f74cb1.js → 62f5709eb7cf0bee5308.js} +0 -0
- /package/dist/client/scripts/{815b2ba5fab54eebb5ca.js → 64040fe43c85229d6c7e.js} +0 -0
- /package/dist/client/scripts/{f16221d99c87c834338d.js → 652a5b87c018e27253cb.js} +0 -0
- /package/dist/client/scripts/{a451e339bbbf4c755dd2.js → 68395bfe89565e0d1d79.js} +0 -0
- /package/dist/client/scripts/{df120b5d2932d752a788.js → 69942f55e3b5bf6d503b.js} +0 -0
- /package/dist/client/scripts/{92f88dfc1b040e6657db.js → 6995a6a5607ccfaef630.js} +0 -0
- /package/dist/client/scripts/{6198cadc6ef977ea0b7f.js → 6b46c22ca1c92349b2f8.js} +0 -0
- /package/dist/client/scripts/{5bfe1a52e5e438b16b80.js → 6cf6cc6c2d13bfd50cdd.js} +0 -0
- /package/dist/client/scripts/{e0ae6eb532e9deca95b9.js → 6e83cdb8cf4a81b04610.js} +0 -0
- /package/dist/client/scripts/{0036243f84e83014237c.js → 6fc29b2e316a296f27b3.js} +0 -0
- /package/dist/client/scripts/{a74cc1abc33d10c98576.js → 7016d8a61690a15d03f9.js} +0 -0
- /package/dist/client/scripts/{bb8f78fd21453a818715.js → 7164a0309a6e67669529.js} +0 -0
- /package/dist/client/scripts/{72b2000e26db0599329e.js → 71a350a41f111577de16.js} +0 -0
- /package/dist/client/scripts/{1b2ab22235289bb11413.js → 72b1acbfc3c9b80b8d0d.js} +0 -0
- /package/dist/client/scripts/{7462753f35b4eef9f539.js → 756275c6e26971186a7e.js} +0 -0
- /package/dist/client/scripts/{1c32beef3128a72541fd.js → 7743945180a0c8015dcd.js} +0 -0
- /package/dist/client/scripts/{b85d75a825b35c37debd.js → 77c36fabf7d4d9192e6c.js} +0 -0
- /package/dist/client/scripts/{41dea7515c49fbb37cd0.js → 7818ed43fdcd566ba3f8.js} +0 -0
- /package/dist/client/scripts/{d7a62916cee4d6e2b444.js → 7880369871d8c84cd0e7.js} +0 -0
- /package/dist/client/scripts/{16a3a76ec493d5af9559.js → 79eddfa24c7ea007b464.js} +0 -0
- /package/dist/client/scripts/{18be8c33f978d41c810c.js → 7d6b4b7afd5a8bd553da.js} +0 -0
- /package/dist/client/scripts/{c2c11ce041704882fd38.js → 7e03a5d5a40ed66af4c5.js} +0 -0
- /package/dist/client/scripts/{becfc64a7cf18580f64b.js → 80006a5fec335cb12b7c.js} +0 -0
- /package/dist/client/scripts/{bf0781d3e1fda7aaf432.js → 80cddc196cc2b7002fd6.js} +0 -0
- /package/dist/client/scripts/{0389a15654d3a45aab1a.js → 82cff5a009d11a47c9b1.js} +0 -0
- /package/dist/client/scripts/{392a233a558e074c70d9.js → 84222624315dca891314.js} +0 -0
- /package/dist/client/scripts/{28f7596c01dff2813e25.js → 8c72fca95c326a712f69.js} +0 -0
- /package/dist/client/scripts/{df56e8276b6973df6c3c.js → 8fb6347aacc0d7a6e455.js} +0 -0
- /package/dist/client/scripts/{d649ff9550b197262c78.js → 91f3984e40032bf924c1.js} +0 -0
- /package/dist/client/scripts/{91f5a130ef63276c95f1.js → 9212fa0c23e7fbc74fb7.js} +0 -0
- /package/dist/client/scripts/{38875405be2461bf6367.js → 93bde9d3da4e67262071.js} +0 -0
- /package/dist/client/scripts/{9324abfa574340eb6ede.js → 943c207eed1ff2aa3f4b.js} +0 -0
- /package/dist/client/scripts/{34c3288e431f8a0155e6.js → 973a0d7cba321ac1949b.js} +0 -0
- /package/dist/client/scripts/{affc2dc765c1741a7319.js → 9742df9b3b105d4cc277.js} +0 -0
- /package/dist/client/scripts/{701b3f29f72a42f4ba5b.js → 9987d7d12d1a3b4a8eea.js} +0 -0
- /package/dist/client/scripts/{6482c0db9dfb95939fd0.js → 9eebe67b2504a3c1d87c.js} +0 -0
- /package/dist/client/scripts/{3c5baf37fc4cdec110f6.js → 9f5ae43cbfda2ce15ad0.js} +0 -0
- /package/dist/client/scripts/{a6d598ec76e67174f994.js → a06a68636bc8161710b5.js} +0 -0
- /package/dist/client/scripts/{507ccdc5bf81d59adfb1.js → a16667b5a58ef75e0a65.js} +0 -0
- /package/dist/client/scripts/{089accd171820ed54ff9.js → a49c8ff1197214b8c2ec.js} +0 -0
- /package/dist/client/scripts/{b78748f9969f7ea74694.js → a596a627aca89f5a6b1b.js} +0 -0
- /package/dist/client/scripts/{ba8379f7349980eced6b.js → a73fba74b9519c977182.js} +0 -0
- /package/dist/client/scripts/{07f92cd6237e0c89e05f.js → aaccda3fa7fb0b1e4c76.js} +0 -0
- /package/dist/client/scripts/{38d5589b9158ab8e7423.js → aed199f6a2d99ed2c6ed.js} +0 -0
- /package/dist/client/scripts/{7e388f3275fdd4ba4d75.js → b3866bf38c79001bc962.js} +0 -0
- /package/dist/client/scripts/{1402c958f118bbafb604.js → b4b5cb3c5ef635b2c861.js} +0 -0
- /package/dist/client/scripts/{ab31c58b4b87e68b35fb.js → b55e02a32d90c14f4cbe.js} +0 -0
- /package/dist/client/scripts/{472436c55ce848b6e460.js → b5e9ab0705ea5f7c6033.js} +0 -0
- /package/dist/client/scripts/{e8d5c21e03e6d57b5511.js → b97f6a6153af68b5ee51.js} +0 -0
- /package/dist/client/scripts/{fddbb5023e794ab0f98a.js → ba92be8988f6e7cd5e6f.js} +0 -0
- /package/dist/client/scripts/{4a7dd18ce8648d5f3748.js → bc8c593bdc7f77961b3e.js} +0 -0
- /package/dist/client/scripts/{4fd8ff7fa8b4b36ef6bc.js → bdc263d85e27ed0985c8.js} +0 -0
- /package/dist/client/scripts/{ae547edbc8099702ba5a.js → beaf345e668e5858c6bd.js} +0 -0
- /package/dist/client/scripts/{db8435e74ec6a4493db1.js → bedf2af0b7bfe31d6095.js} +0 -0
- /package/dist/client/scripts/{ff80131a5bed70291e0b.js → c033ed6d46bc42084b33.js} +0 -0
- /package/dist/client/scripts/{6f579b91d024f526a37f.js → c1d9299a2481f61b3e9b.js} +0 -0
- /package/dist/client/scripts/{7a555f60e9828f5791c4.js → c2657529f0bd72c822ab.js} +0 -0
- /package/dist/client/scripts/{e7b33c7b9c52aa2c42fb.js → c3527a51540c796aa210.js} +0 -0
- /package/dist/client/scripts/{e794fc5005c252318257.js → c4948b2ac58d29eb2600.js} +0 -0
- /package/dist/client/scripts/{1262d9eb296be8be48b9.js → c4d1c2c8dbf87da6d96f.js} +0 -0
- /package/dist/client/scripts/{d7e1b77c4b3b1491114a.js → c62b762778316d2d5162.js} +0 -0
- /package/dist/client/scripts/{ad6c8c5b4248c6242078.js → c78a6f94753c6c5d6a0d.js} +0 -0
- /package/dist/client/scripts/{72709ccc1d539e0e7922.js → c826e0cc20a2aa528853.js} +0 -0
- /package/dist/client/scripts/{d2b70350d3fa2cef0e39.js → ca534726c8438931e48c.js} +0 -0
- /package/dist/client/scripts/{59f9a530612b9c11540e.js → cb130f4f9c49c19655e7.js} +0 -0
- /package/dist/client/scripts/{f2ef165911bb1b115aad.js → cb7718d9829f07833d01.js} +0 -0
- /package/dist/client/scripts/{eb3e702cdad4fa098d02.js → cbaada8722a80b6bdaa1.js} +0 -0
- /package/dist/client/scripts/{88a48eba61706a1b38f7.js → ced4071f764fa201e664.js} +0 -0
- /package/dist/client/scripts/{23889a0a798b09d499c1.js → d43c1005ef0b2e384fdb.js} +0 -0
- /package/dist/client/scripts/{8537711ac020c8f29676.js → d45a491bd98ee16dc921.js} +0 -0
- /package/dist/client/scripts/{ed4b2bf33dda868c13ee.js → d4b9f2074063ed7456f0.js} +0 -0
- /package/dist/client/scripts/{84e8cb222b65ef8c7fd7.js → d7be84839eb13c10994d.js} +0 -0
- /package/dist/client/scripts/{4e6cf740114de50950d7.js → d834a244045638c9ae0b.js} +0 -0
- /package/dist/client/scripts/{a277d05eb0162d8df8c1.js → d85446efe3a1470091cd.js} +0 -0
- /package/dist/client/scripts/{96fcf998bf85267cee36.js → d8cfe1555b7bcbacdef5.js} +0 -0
- /package/dist/client/scripts/{ebde9babb291ce858d18.js → d9005ebbf3356c0044d1.js} +0 -0
- /package/dist/client/scripts/{3a7baf62722abdc454d6.js → da2a562048bac8e8d949.js} +0 -0
- /package/dist/client/scripts/{a712d2e04a1b916faca6.js → df5930c5f79402892064.js} +0 -0
- /package/dist/client/scripts/{4714fa29a82e1177d216.js → e00a7a2a9ee3bd2c34c6.js} +0 -0
- /package/dist/client/scripts/{056cd8933beea0edc19e.js → e147a51def3ab23ae656.js} +0 -0
- /package/dist/client/scripts/{933d633cb47a3304650c.js → e23286dae5ab566935f8.js} +0 -0
- /package/dist/client/scripts/{c0916ba3df82723ef6e2.js → e73bc57a96ce8bc9f24d.js} +0 -0
- /package/dist/client/scripts/{0eccccf491d2d8c15ec2.js → e74cb22d42037309926d.js} +0 -0
- /package/dist/client/scripts/{dca2c65879ee8c6fe5e7.js → e82db7ecb8bd18986174.js} +0 -0
- /package/dist/client/scripts/{66d5a4a2cf08cdaa86bb.js → ea9c40e082d00151bcb2.js} +0 -0
- /package/dist/client/scripts/{a98a1c78a6e495be1fe3.js → eba32e7258bb2a7a1a2a.js} +0 -0
- /package/dist/client/scripts/{568f78f9b01fc9462683.js → ec6fd2311481a0dfc9d1.js} +0 -0
- /package/dist/client/scripts/{914125d34a0c8421839d.js → ede70c2797449c4d51a6.js} +0 -0
- /package/dist/client/scripts/{408bd09f6eb4f00d6659.js → ef1dd69cae444e50867a.js} +0 -0
- /package/dist/client/scripts/{87bf4ef1e4c910a2c137.js → f0a6732b51fe9c604843.js} +0 -0
- /package/dist/client/scripts/{6011db9e93655179bce2.js → f12e8d4deaddb3b26d58.js} +0 -0
- /package/dist/client/scripts/{9c4c4822a484f5a5ad19.js → f25db0c188d1d6ae7dd7.js} +0 -0
- /package/dist/client/scripts/{4ffdfcf6a6eecdca5833.js → f29db69f95e75149e0e5.js} +0 -0
- /package/dist/client/scripts/{ae596ff1996c280c202c.js → f30fbd3d7d6421ff0d75.js} +0 -0
- /package/dist/client/scripts/{406e9909758efdb1ae29.js → f5dd83c05af526500d98.js} +0 -0
- /package/dist/client/scripts/{093dbadb21acf4310ea2.js → f6cb2798677ada41ec58.js} +0 -0
- /package/dist/client/scripts/{3ae3625c5b179d3021e9.js → f84229a0696a0096e336.js} +0 -0
- /package/dist/client/scripts/{17f706d9450b7e231610.js → faca18429fe2cbd475e2.js} +0 -0
- /package/dist/client/scripts/{6231f7cde1c1a252e3ff.js → fcca4ddacffe3f8cf584.js} +0 -0
- /package/dist/client/scripts/{3a800940b5afb5bfb8f5.js → fda5178de10b894562eb.js} +0 -0
- /package/dist/client/scripts/{9865e2574c6d07158054.js → ff3f98b95580dd1fde4c.js} +0 -0
- /package/dist/client/styles/{588b32ff5515fdd5707e.css → 025902a6e1e60501e418.css} +0 -0
- /package/dist/client/styles/{f1fc1db1d8256f3c8b0f.css → 02cd01e4087e8d5aa492.css} +0 -0
- /package/dist/client/styles/{e0c5487ea1f49ba55654.css → 05a1efe07f04c478155a.css} +0 -0
- /package/dist/client/styles/{804a497cb44fe949310e.css → 06e2a0dd3335dfc0e506.css} +0 -0
- /package/dist/client/styles/{e949a288ca740fd5e306.css → 08755652b19e4b8cc3a6.css} +0 -0
- /package/dist/client/styles/{41188d492c5a77d87d02.css → 0918c354e496ebc33a8e.css} +0 -0
- /package/dist/client/styles/{59ab7b4a6827442b90c7.css → 093df1d5f4968f1a29eb.css} +0 -0
- /package/dist/client/styles/{8773147ebc61bee2e1a6.css → 09b087ec0d366e0f4aab.css} +0 -0
- /package/dist/client/styles/{dd51706886e16b5f97be.css → 0c6dfbf036b0371160cd.css} +0 -0
- /package/dist/client/styles/{746da613bad15ee3dcff.css → 0d44aeaf665b9f76f1a3.css} +0 -0
- /package/dist/client/styles/{02201764e0adf0d63538.css → 0e63f8b8378416581782.css} +0 -0
- /package/dist/client/styles/{21cac0ef61086a4aaa44.css → 0f9d4e89ae9e875c4c2c.css} +0 -0
- /package/dist/client/styles/{92e2f55c77c0b9473c56.css → 0fc32c57e4b4c007d86e.css} +0 -0
- /package/dist/client/styles/{34433c129bef8559d83f.css → 0fcf11c1fab34c75ad81.css} +0 -0
- /package/dist/client/styles/{a1f8e3bd33feb4f2ab92.css → 108eacd965f43203b161.css} +0 -0
- /package/dist/client/styles/{c3622d52d3929b8ce67a.css → 12c214803bb856eac25e.css} +0 -0
- /package/dist/client/styles/{f75efc7d112f59f0bf9c.css → 147acfad2826cadced1c.css} +0 -0
- /package/dist/client/styles/{a9887918f6748e99e5e6.css → 170ca751557782434b86.css} +0 -0
- /package/dist/client/styles/{d4fdfca319e908a2c80a.css → 18a0554f2d6d9bb11db8.css} +0 -0
- /package/dist/client/styles/{86714d804290b9ba22f6.css → 18b8732facc297fa275d.css} +0 -0
- /package/dist/client/styles/{6f97d59f13e103648e2b.css → 1b671e76adf446fe7310.css} +0 -0
- /package/dist/client/styles/{59658d2a579def05efa0.css → 1bb081afaacdf19e137c.css} +0 -0
- /package/dist/client/styles/{74ecbb4b7b820d191d79.css → 1d1abb5e5dbc59ef9ba2.css} +0 -0
- /package/dist/client/styles/{91501cfefb3e9beeffa4.css → 230561f40b218ce33aa3.css} +0 -0
- /package/dist/client/styles/{e97cb8c56d2e5ca10a9b.css → 23e7e7801052da2ee7b1.css} +0 -0
- /package/dist/client/styles/{1dab8b823a9fc7be9e7d.css → 23ea5cdb4bd00312ad71.css} +0 -0
- /package/dist/client/styles/{8bbb03cef27adbf1052c.css → 2847077fc8b21eea9bc7.css} +0 -0
- /package/dist/client/styles/{0e8cc6787e102d95ccad.css → 28fb27bc5806c768b30d.css} +0 -0
- /package/dist/client/styles/{ddc4d2ea575a50bc4ae3.css → 29592daed7085fae2aff.css} +0 -0
- /package/dist/client/styles/{d307d2e9cf655c179d77.css → 29fe5285a5534638e45b.css} +0 -0
- /package/dist/client/styles/{3ea2352e8a94ddc6dc8a.css → 2b43a99e2018d0c84f18.css} +0 -0
- /package/dist/client/styles/{99f43c4c4a9704f957a9.css → 2bac5c7960d4e0987bf3.css} +0 -0
- /package/dist/client/styles/{eb3bd92efead362fbc2c.css → 2ddd806af85bc2956424.css} +0 -0
- /package/dist/client/styles/{dfab0d5501435b36f6fb.css → 2f1b8a7fe67255cbe0ad.css} +0 -0
- /package/dist/client/styles/{1c048832077af161ca70.css → 319cce34e32e88725a45.css} +0 -0
- /package/dist/client/styles/{efe4a3c8ab1adefc03f2.css → 327234381f9055359003.css} +0 -0
- /package/dist/client/styles/{69230c65912cdd38a584.css → 3339ab53ef97b3ccfa18.css} +0 -0
- /package/dist/client/styles/{ada91090ef1c52557dc9.css → 373129c3f6ff64209b21.css} +0 -0
- /package/dist/client/styles/{980215f15338a4638935.css → 39ba7e46913442fd36d3.css} +0 -0
- /package/dist/client/styles/{00ccd7949f170b3d738d.css → 407c4cdbe305f30d4aae.css} +0 -0
- /package/dist/client/styles/{17bca51c0b3e12105894.css → 41085f1d73bd0fa3c10a.css} +0 -0
- /package/dist/client/styles/{b7cc5ee25c7302916b09.css → 43342b3ad25af480ac21.css} +0 -0
- /package/dist/client/styles/{eeaf7a5064376c23e2fd.css → 454827facac3a7b5372d.css} +0 -0
- /package/dist/client/styles/{b5213fdbef77370db82d.css → 467ccdae7bcc2a1615bb.css} +0 -0
- /package/dist/client/styles/{bbb212b4be125e838441.css → 49ea1362a407d332ae50.css} +0 -0
- /package/dist/client/styles/{dba10c026b8321623d2e.css → 4ad5d822d9c447ec26c9.css} +0 -0
- /package/dist/client/styles/{662de3a6d0e84564965f.css → 4b8ab89e3dadf71a555b.css} +0 -0
- /package/dist/client/styles/{2a0d066c05ce80ef84a2.css → 4be307902b6682456306.css} +0 -0
- /package/dist/client/styles/{88b02946d875717c7892.css → 4f227cf9d210a351d684.css} +0 -0
- /package/dist/client/styles/{2464bcc48b0bd7955c9f.css → 4fdaba171d92a49c5002.css} +0 -0
- /package/dist/client/styles/{378133b962494b0328be.css → 50e356fe6c0b2febc750.css} +0 -0
- /package/dist/client/styles/{d92b71a6a05b8f554c7e.css → 52a3b97165f405e63efb.css} +0 -0
- /package/dist/client/styles/{e600798c21b1e4b3421a.css → 52c515514b241f01e737.css} +0 -0
- /package/dist/client/styles/{03be5e7637e3fc5b35f2.css → 54bf256155e551077ef4.css} +0 -0
- /package/dist/client/styles/{d014754e0eff762e6ca9.css → 565fe0111bdfe1faa81b.css} +0 -0
- /package/dist/client/styles/{c07d2bb6aab9b5629d10.css → 5a9f3609f8449b952b64.css} +0 -0
- /package/dist/client/styles/{e2b91f9e13b86ff8389c.css → 5ca596aa3d93347cb166.css} +0 -0
- /package/dist/client/styles/{e550d1701ff3985309fc.css → 5e43973ca1a47dbec74e.css} +0 -0
- /package/dist/client/styles/{89abc7e3a5eecf6b6014.css → 5e9e07ef4ddc7059f769.css} +0 -0
- /package/dist/client/styles/{f2995c12e4c7d9beeedc.css → 5fe5fed299dd1686d8b6.css} +0 -0
- /package/dist/client/styles/{86814331153df2f74cb1.css → 62f5709eb7cf0bee5308.css} +0 -0
- /package/dist/client/styles/{815b2ba5fab54eebb5ca.css → 64040fe43c85229d6c7e.css} +0 -0
- /package/dist/client/styles/{f16221d99c87c834338d.css → 652a5b87c018e27253cb.css} +0 -0
- /package/dist/client/styles/{a451e339bbbf4c755dd2.css → 68395bfe89565e0d1d79.css} +0 -0
- /package/dist/client/styles/{df120b5d2932d752a788.css → 69942f55e3b5bf6d503b.css} +0 -0
- /package/dist/client/styles/{92f88dfc1b040e6657db.css → 6995a6a5607ccfaef630.css} +0 -0
- /package/dist/client/styles/{6198cadc6ef977ea0b7f.css → 6b46c22ca1c92349b2f8.css} +0 -0
- /package/dist/client/styles/{5bfe1a52e5e438b16b80.css → 6cf6cc6c2d13bfd50cdd.css} +0 -0
- /package/dist/client/styles/{e0ae6eb532e9deca95b9.css → 6e83cdb8cf4a81b04610.css} +0 -0
- /package/dist/client/styles/{0036243f84e83014237c.css → 6fc29b2e316a296f27b3.css} +0 -0
- /package/dist/client/styles/{a74cc1abc33d10c98576.css → 7016d8a61690a15d03f9.css} +0 -0
- /package/dist/client/styles/{bb8f78fd21453a818715.css → 7164a0309a6e67669529.css} +0 -0
- /package/dist/client/styles/{72b2000e26db0599329e.css → 71a350a41f111577de16.css} +0 -0
- /package/dist/client/styles/{1b2ab22235289bb11413.css → 72b1acbfc3c9b80b8d0d.css} +0 -0
- /package/dist/client/styles/{7462753f35b4eef9f539.css → 756275c6e26971186a7e.css} +0 -0
- /package/dist/client/styles/{1c32beef3128a72541fd.css → 7743945180a0c8015dcd.css} +0 -0
- /package/dist/client/styles/{b85d75a825b35c37debd.css → 77c36fabf7d4d9192e6c.css} +0 -0
- /package/dist/client/styles/{41dea7515c49fbb37cd0.css → 7818ed43fdcd566ba3f8.css} +0 -0
- /package/dist/client/styles/{d7a62916cee4d6e2b444.css → 7880369871d8c84cd0e7.css} +0 -0
- /package/dist/client/styles/{16a3a76ec493d5af9559.css → 79eddfa24c7ea007b464.css} +0 -0
- /package/dist/client/styles/{18be8c33f978d41c810c.css → 7d6b4b7afd5a8bd553da.css} +0 -0
- /package/dist/client/styles/{c2c11ce041704882fd38.css → 7e03a5d5a40ed66af4c5.css} +0 -0
- /package/dist/client/styles/{becfc64a7cf18580f64b.css → 80006a5fec335cb12b7c.css} +0 -0
- /package/dist/client/styles/{bf0781d3e1fda7aaf432.css → 80cddc196cc2b7002fd6.css} +0 -0
- /package/dist/client/styles/{0389a15654d3a45aab1a.css → 82cff5a009d11a47c9b1.css} +0 -0
- /package/dist/client/styles/{392a233a558e074c70d9.css → 84222624315dca891314.css} +0 -0
- /package/dist/client/styles/{28f7596c01dff2813e25.css → 8c72fca95c326a712f69.css} +0 -0
- /package/dist/client/styles/{df56e8276b6973df6c3c.css → 8fb6347aacc0d7a6e455.css} +0 -0
- /package/dist/client/styles/{d649ff9550b197262c78.css → 91f3984e40032bf924c1.css} +0 -0
- /package/dist/client/styles/{91f5a130ef63276c95f1.css → 9212fa0c23e7fbc74fb7.css} +0 -0
- /package/dist/client/styles/{38875405be2461bf6367.css → 93bde9d3da4e67262071.css} +0 -0
- /package/dist/client/styles/{9324abfa574340eb6ede.css → 943c207eed1ff2aa3f4b.css} +0 -0
- /package/dist/client/styles/{34c3288e431f8a0155e6.css → 973a0d7cba321ac1949b.css} +0 -0
- /package/dist/client/styles/{affc2dc765c1741a7319.css → 9742df9b3b105d4cc277.css} +0 -0
- /package/dist/client/styles/{701b3f29f72a42f4ba5b.css → 9987d7d12d1a3b4a8eea.css} +0 -0
- /package/dist/client/styles/{6482c0db9dfb95939fd0.css → 9eebe67b2504a3c1d87c.css} +0 -0
- /package/dist/client/styles/{3c5baf37fc4cdec110f6.css → 9f5ae43cbfda2ce15ad0.css} +0 -0
- /package/dist/client/styles/{a6d598ec76e67174f994.css → a06a68636bc8161710b5.css} +0 -0
- /package/dist/client/styles/{507ccdc5bf81d59adfb1.css → a16667b5a58ef75e0a65.css} +0 -0
- /package/dist/client/styles/{089accd171820ed54ff9.css → a49c8ff1197214b8c2ec.css} +0 -0
- /package/dist/client/styles/{b78748f9969f7ea74694.css → a596a627aca89f5a6b1b.css} +0 -0
- /package/dist/client/styles/{ba8379f7349980eced6b.css → a73fba74b9519c977182.css} +0 -0
- /package/dist/client/styles/{07f92cd6237e0c89e05f.css → aaccda3fa7fb0b1e4c76.css} +0 -0
- /package/dist/client/styles/{38d5589b9158ab8e7423.css → aed199f6a2d99ed2c6ed.css} +0 -0
- /package/dist/client/styles/{7e388f3275fdd4ba4d75.css → b3866bf38c79001bc962.css} +0 -0
- /package/dist/client/styles/{1402c958f118bbafb604.css → b4b5cb3c5ef635b2c861.css} +0 -0
- /package/dist/client/styles/{ab31c58b4b87e68b35fb.css → b55e02a32d90c14f4cbe.css} +0 -0
- /package/dist/client/styles/{472436c55ce848b6e460.css → b5e9ab0705ea5f7c6033.css} +0 -0
- /package/dist/client/styles/{e8d5c21e03e6d57b5511.css → b97f6a6153af68b5ee51.css} +0 -0
- /package/dist/client/styles/{fddbb5023e794ab0f98a.css → ba92be8988f6e7cd5e6f.css} +0 -0
- /package/dist/client/styles/{4a7dd18ce8648d5f3748.css → bc8c593bdc7f77961b3e.css} +0 -0
- /package/dist/client/styles/{4fd8ff7fa8b4b36ef6bc.css → bdc263d85e27ed0985c8.css} +0 -0
- /package/dist/client/styles/{ae547edbc8099702ba5a.css → beaf345e668e5858c6bd.css} +0 -0
- /package/dist/client/styles/{db8435e74ec6a4493db1.css → bedf2af0b7bfe31d6095.css} +0 -0
- /package/dist/client/styles/{ff80131a5bed70291e0b.css → c033ed6d46bc42084b33.css} +0 -0
- /package/dist/client/styles/{6f579b91d024f526a37f.css → c1d9299a2481f61b3e9b.css} +0 -0
- /package/dist/client/styles/{7a555f60e9828f5791c4.css → c2657529f0bd72c822ab.css} +0 -0
- /package/dist/client/styles/{e7b33c7b9c52aa2c42fb.css → c3527a51540c796aa210.css} +0 -0
- /package/dist/client/styles/{e794fc5005c252318257.css → c4948b2ac58d29eb2600.css} +0 -0
- /package/dist/client/styles/{1262d9eb296be8be48b9.css → c4d1c2c8dbf87da6d96f.css} +0 -0
- /package/dist/client/styles/{d7e1b77c4b3b1491114a.css → c62b762778316d2d5162.css} +0 -0
- /package/dist/client/styles/{72709ccc1d539e0e7922.css → c826e0cc20a2aa528853.css} +0 -0
- /package/dist/client/styles/{d2b70350d3fa2cef0e39.css → ca534726c8438931e48c.css} +0 -0
- /package/dist/client/styles/{59f9a530612b9c11540e.css → cb130f4f9c49c19655e7.css} +0 -0
- /package/dist/client/styles/{f2ef165911bb1b115aad.css → cb7718d9829f07833d01.css} +0 -0
- /package/dist/client/styles/{eb3e702cdad4fa098d02.css → cbaada8722a80b6bdaa1.css} +0 -0
- /package/dist/client/styles/{88a48eba61706a1b38f7.css → ced4071f764fa201e664.css} +0 -0
- /package/dist/client/styles/{23889a0a798b09d499c1.css → d43c1005ef0b2e384fdb.css} +0 -0
- /package/dist/client/styles/{8537711ac020c8f29676.css → d45a491bd98ee16dc921.css} +0 -0
- /package/dist/client/styles/{eacb9fb49685d24d4a62.css → d4999b8d90a9587abd34.css} +0 -0
- /package/dist/client/styles/{ed4b2bf33dda868c13ee.css → d4b9f2074063ed7456f0.css} +0 -0
- /package/dist/client/styles/{84e8cb222b65ef8c7fd7.css → d7be84839eb13c10994d.css} +0 -0
- /package/dist/client/styles/{4e6cf740114de50950d7.css → d834a244045638c9ae0b.css} +0 -0
- /package/dist/client/styles/{96fcf998bf85267cee36.css → d8cfe1555b7bcbacdef5.css} +0 -0
- /package/dist/client/styles/{ebde9babb291ce858d18.css → d9005ebbf3356c0044d1.css} +0 -0
- /package/dist/client/styles/{8e08333a06adfc57e26d.css → d987ec5470e6368b6f89.css} +0 -0
- /package/dist/client/styles/{3a7baf62722abdc454d6.css → da2a562048bac8e8d949.css} +0 -0
- /package/dist/client/styles/{a712d2e04a1b916faca6.css → df5930c5f79402892064.css} +0 -0
- /package/dist/client/styles/{4714fa29a82e1177d216.css → e00a7a2a9ee3bd2c34c6.css} +0 -0
- /package/dist/client/styles/{056cd8933beea0edc19e.css → e147a51def3ab23ae656.css} +0 -0
- /package/dist/client/styles/{c0916ba3df82723ef6e2.css → e73bc57a96ce8bc9f24d.css} +0 -0
- /package/dist/client/styles/{0eccccf491d2d8c15ec2.css → e74cb22d42037309926d.css} +0 -0
- /package/dist/client/styles/{dca2c65879ee8c6fe5e7.css → e82db7ecb8bd18986174.css} +0 -0
- /package/dist/client/styles/{66d5a4a2cf08cdaa86bb.css → ea9c40e082d00151bcb2.css} +0 -0
- /package/dist/client/styles/{a98a1c78a6e495be1fe3.css → eba32e7258bb2a7a1a2a.css} +0 -0
- /package/dist/client/styles/{568f78f9b01fc9462683.css → ec6fd2311481a0dfc9d1.css} +0 -0
- /package/dist/client/styles/{914125d34a0c8421839d.css → ede70c2797449c4d51a6.css} +0 -0
- /package/dist/client/styles/{87bf4ef1e4c910a2c137.css → f0a6732b51fe9c604843.css} +0 -0
- /package/dist/client/styles/{6011db9e93655179bce2.css → f12e8d4deaddb3b26d58.css} +0 -0
- /package/dist/client/styles/{9c4c4822a484f5a5ad19.css → f25db0c188d1d6ae7dd7.css} +0 -0
- /package/dist/client/styles/{ae596ff1996c280c202c.css → f30fbd3d7d6421ff0d75.css} +0 -0
- /package/dist/client/styles/{3cf61618bc3263a1c0c9.css → f63eafcdb6b94fd95198.css} +0 -0
- /package/dist/client/styles/{093dbadb21acf4310ea2.css → f6cb2798677ada41ec58.css} +0 -0
- /package/dist/client/styles/{3ae3625c5b179d3021e9.css → f84229a0696a0096e336.css} +0 -0
- /package/dist/client/styles/{6231f7cde1c1a252e3ff.css → fcca4ddacffe3f8cf584.css} +0 -0
- /package/dist/client/styles/{3a800940b5afb5bfb8f5.css → fda5178de10b894562eb.css} +0 -0
- /package/dist/client/styles/{9865e2574c6d07158054.css → ff3f98b95580dd1fde4c.css} +0 -0
- /package/dist/ssr/styles/{6fce2da76f8992515487.css → ccb66ef5fcbfa5829580.css} +0 -0
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),LoadingSpinner=require("./LoadingSpinner-D-h3wMvy.js"),pinia=require("pinia");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const _sfc_main$2t={name:"VsAccordion",status:"prototype",release:"0.0.1",provide(){return{breakPoint:this.breakPoint}},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1W={class:"vs-accordion","data-test":"vs-accordion"};function _sfc_render$29(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1W,[vue.renderSlot(e.$slots,"default")])}const VsAccordion=LoadingSpinner._export_sfc(_sfc_main$2t,[["render",_sfc_render$29]]),_sfc_main$2s={name:"VsAccordionToggle",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},props:{variant:{type:String,default:"primary"},visible:{type:Boolean,default:!0}},emits:["toggle-panel"],methods:{triggerToggle(){this.$emit("toggle-panel")}}},_hoisted_1$1V={class:"vs-accordion-toggle__text"},_hoisted_2$1p={class:"vs-accordion-toggle__icon"};function _sfc_render$28(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{animate:!1,"aria-expanded":t.visible?"true":"false","aria-haspopup":"true",onClick:o.triggerToggle,class:vue.normalizeClass(["vs-accordion-toggle clearfix",t.visible?"vs-accordion-toggle--open":""]),variant:t.variant,rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$1V,[vue.renderSlot(e.$slots,"default")]),vue.createElementVNode("span",_hoisted_2$1p,[t.visible?vue.renderSlot(e.$slots,"icon-open",{key:0}):vue.renderSlot(e.$slots,"icon-closed",{key:1})])]),_:3},8,["aria-expanded","onClick","class","variant"])}const VsAccordionToggle=LoadingSpinner._export_sfc(_sfc_main$2s,[["render",_sfc_render$28]]),_sfc_main$2r={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle,BCard:LoadingSpinner.rn,VsIcon:LoadingSpinner.VsIcon,BCardHeader:LoadingSpinner.an,BCardBody:LoadingSpinner.nn,VsHeading:LoadingSpinner.VsHeading},mixins:[LoadingSpinner.dataLayerMixin],inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},itemBreakPoint:{type:String,default(){return vue.inject("breakPoint","lg")},validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"subtle"}},data(){return{show:this.openByDefault}},computed:{toggleAccordionBtn(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-none":`d-${this.itemBreakPoint}-none`:"d-flex"},toggleResponsiveItem(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-block":`d-${this.itemBreakPoint}-block`:""}},methods:{onButtonClick(){this.show||this.createDataLayerObject("accordionOpenEvent",{accordion_text:this.$refs["accordion-toggle"].$el.innerText}),this.show=!this.show}}};function _sfc_render$27(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionToggle"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("BCardHeader"),c=vue.resolveComponent("BCardBody"),d=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(d,{"no-body":"",class:vue.normalizeClass(["vs-accordion-item",o.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:vue.withCtx(()=>[vue.createVNode(u,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:vue.withCtx(()=>[vue.createVNode(i,{"aria-controls":t.controlId,visible:r.show,variant:t.variant,class:vue.normalizeClass(o.toggleAccordionBtn),onTogglePanel:o.onButtonClick,ref:"accordion-toggle"},{"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open",{},()=>[vue.createVNode(s,{icon:"vs-icon-control-collapse",size:"sm"})])]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed",{},()=>[vue.createVNode(s,{icon:"vs-icon-control-expand",size:"sm"})])]),default:vue.withCtx(()=>[t.colourBadge?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:vue.normalizeStyle(`background-color: ${t.colourBadge}`)},null,4)):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"title")]),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),vue.createVNode(l,{level:t.headingLevel,"heading-style":"heading-xxs",class:vue.normalizeClass(["d-none vs-accordion-item__title",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3},8,["level","class"])]),_:3}),vue.withDirectives(vue.createVNode(c,{id:t.controlId,class:vue.normalizeClass(["vs-accordion-item__panel",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["id","class"]),[[vue.vShow,r.show]])]),_:3},8,["class"])}const VsAccordionItem=LoadingSpinner._export_sfc(_sfc_main$2r,[["render",_sfc_render$27]]),_sfc_main$2q={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon:LoadingSpinner.VsIcon}},_hoisted_1$1U={class:"vs-address","data-test":"vs-address"},_hoisted_2$1o={class:"vs-address__address-box"};function _sfc_render$26(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1U,[vue.createVNode(s,{icon:"fa-regular fa-location-dot",class:"vs-address__map-marker me-050"}),vue.createElementVNode("address",_hoisted_2$1o,[vue.renderSlot(e.$slots,"default")])])}const Address=LoadingSpinner._export_sfc(_sfc_main$2q,[["render",_sfc_render$26]]),_sfc_main$2p={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon:LoadingSpinner.VsIcon}},_hoisted_1$1T={class:"vs-alert","data-test":"vs-alert"},_hoisted_2$1n={class:"vs-alert__icon-holder"},_hoisted_3$17={class:"vs-alert__content-wrapper"},_hoisted_4$R={class:"vs-alert__content"};function _sfc_render$25(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1T,[vue.createElementVNode("div",_hoisted_2$1n,[vue.createVNode(s,{class:"vs-alert__icon",icon:"vs-icon-feedback-information",variant:"inverse"})]),vue.createElementVNode("div",_hoisted_3$17,[vue.createElementVNode("div",_hoisted_4$R,[vue.renderSlot(e.$slots,"default")])])])}const Alert=LoadingSpinner._export_sfc(_sfc_main$2p,[["render",_sfc_render$25]]),_sfc_main$2o={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)}}},_hoisted_1$1S=["id"],_hoisted_2$1m={class:"vs-article__content"};function _sfc_render$24(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("article",vue.mergeProps({class:"vs-article","data-test":"vs-article"},e.$attrs),[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:vue.normalizeClass(t.businessSupport?null:"col-xxl-10 offset-xxl-1")},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__wrapper mb-300 mb-md-500",t.businessSupport?"vs-article__wrapper--no-border":null])},[t.businessSupport?vue.createCommentVNode("",!0):vue.renderSlot(e.$slots,"vs-article-img",{key:0}),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"10","offset-md":t.businessSupport?null:"1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__header mx-md-0 mt-300 mt-lg-500",t.businessSupport?null:"mx-150"])},[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:vue.normalizeClass(["mb-200 mb-lg-300",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",{id:t.anchorLink?t.anchorLink:""},vue.toDisplayString(t.title),9,_hoisted_1$1S)]),_:1},8,["level","heading-style","class"]),e.$slots["vs-article-intro"]?(vue.openBlock(),vue.createBlock(i,{key:0,variant:"lead",class:vue.normalizeClass(["mb-300 mb-lg-400",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-intro")]),_:3},8,["class"])):vue.createCommentVNode("",!0)],2),t.businessSupport&&e.$slots["vs-article-img"]?(vue.openBlock(),vue.createBlock(l,{key:0,class:"mb-300",cols:"7"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-img")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$1m,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["offset-md"])]),_:3})],2)]),_:3},8,["class"])]),_:3})]),_:3})],16)}const Article=LoadingSpinner._export_sfc(_sfc_main$2o,[["render",_sfc_render$24]]),_sfc_main$2n={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsBody:LoadingSpinner.VsBody},props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)},businessSupport:{type:Boolean,default:!1}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"},hasSidebarSlot(){return!!this.$slots["article-sidebar"]}}};function _sfc_render$23(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-section mb-200 mb-md-400",o.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(l,null,{default:vue.withCtx(()=>[o.hasSidebarSlot?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:vue.normalizeClass(["col-xxl-4",t.sidebarAlign==="right"?"pe-md-0":"ps-md-0"]),"offset-xl":t.sidebarAlign==="right"?"1":null,"order-md":t.sidebarAlign==="right"?"2":null,order:t.businessSupport?"2":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"article-sidebar")]),_:3},8,["class","offset-xl","order-md","order"])):vue.createCommentVNode("",!0),vue.createVNode(s,{cols:"12",md:o.hasSidebarSlot?"7":"9","data-test":"vs-article-section__content","offset-xl":t.sidebarAlign==="left"?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["mx-md-0",!t.businessSupport&&"mx-150"])},[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)]),_:3},8,["md","offset-xl"])]),_:3})],2)}const ArticleSection=LoadingSpinner._export_sfc(_sfc_main$2n,[["render",_sfc_render$23]]),_sfc_main$2m={name:"VsArticleSidebar",status:"prototype",release:"0.0.1",props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-sidebar--right":"vs-article-sidebar--left"}}};function _sfc_render$22(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",o.sidebarAlignClass]),"data-test":"vs-article-sidebar"},[e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?"pb-200":"","vs-article-sidebar__img-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-img")],2)):vue.createCommentVNode("",!0),e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass([e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?"pt-0":"","vs-article-sidebar__quote-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-quote")],2)):vue.createCommentVNode("",!0)],2)}const ArticleSidebar=LoadingSpinner._export_sfc(_sfc_main$2m,[["render",_sfc_render$22]]),_hoisted_1$1R={class:"vs-back-to-top","data-test":"vs-back-to-top"},_sfc_main$2l={__name:"BackToTop",props:{buttonText:{type:String,required:!0},offset:{type:Number,default:100}},setup(e){const n=e,t=vue.ref(!1),a=()=>{const o=document.documentElement;(window.scrollY||o.scrollTop)-(o.clientTop||0)>n.offset?t.value=!0:t.value=!1},r=o=>{window.scroll({top:0,behavior:"smooth"}),o.target.blur()};return vue.onMounted(()=>{window.addEventListener("scroll",a)}),vue.onUnmounted(()=>{window.removeEventListener("scroll",a)}),(o,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1R,[t.value?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,icon:"vs-icon-control-back-to-top","icon-only":"",variant:"secondary",onClick:r},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.buttonText),1)]),_:1})):vue.createCommentVNode("",!0)]))}},_sfc_main$2k={name:"VsBadge",status:"prototype",release:"0.0.1",components:{BBadge:LoadingSpinner.ci},props:{variant:{type:String,default:"default",validator:e=>e.match(/(default|subtle|information|highlight)/)}},computed:{badgeClasses(){return[`vs-badge--${this.variant}`,"vs-badge"]}}};function _sfc_render$21(e,n,t,a,r,o){const s=vue.resolveComponent("BBadge");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.badgeClasses),"data-test":"vs-badge"},[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)}const VsBadge=LoadingSpinner._export_sfc(_sfc_main$2k,[["render",_sfc_render$21]]),cookieMixin={computed:{selectedLanguage(){return this.language.substr(0,2).toUpperCase()},localeCookie(){return this.language.replace("_","-").toLowerCase()},translationCookie(){return`/en/${this.language.substr(0,2).toLowerCase()}`}},methods:{cookieExists(e){return document.cookie.indexOf(`${e}=`)>=0},setCookie(e,n,t,a=!1){let r="";if(r=`${e}=${n};`,r+="path=/;",t&&!a){const o=new Date;o.setFullYear(o.getFullYear()+1),r+=`expires=${o};`}document.cookie=r}}},_sfc_main$2j={name:"VsBanner",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsIcon:LoadingSpinner.VsIcon},mixins:[cookieMixin],props:{closeBtnText:{type:String,required:!0},dontShowAgain:{type:Boolean,default:!0}},data(){return{showBanner:!0}},mounted(){const e=this.cookieExists("vs_showbanner");this.showBanner=!e},methods:{hideBanner(){this.showBanner=!this.showBanner,this.dontShowAgain&&this.setHiddenCookie()},setHiddenCookie(){const e=this.cookieExists("vs_showbanner");this.setCookie("vs_showbanner",this.showBanner,!e,!0)}}},_hoisted_1$1Q={key:0,class:"vs-banner","data-test":"vs-banner",role:"banner"},_hoisted_2$1l={key:0,class:"vs-banner__cta-link"};function _sfc_render$20(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return r.showBanner?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1Q,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"11",class:"vs-banner__content-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"1",class:"vs-banner__icon-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(s,{size:"sm",icon:"vs-icon-feedback-warning",class:"vs-banner__icon"})]),_:1}),vue.createVNode(i,{cols:"11"},{default:vue.withCtx(()=>[e.$slots["banner-text"]||e.$slots["banner-cta"]?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-banner__text"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"banner-text"),e.$slots["banner-cta"]?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$1l,[vue.renderSlot(e.$slots,"banner-cta")])):vue.createCommentVNode("",!0)]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(i,{cols:"1"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-banner__close-btn","data-test":"vs-banner__close-btn",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:o.hideBanner},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1})]),_:3})]),_:3})])):vue.createCommentVNode("",!0)}const Banner=LoadingSpinner._export_sfc(_sfc_main$2j,[["render",_sfc_render$20]]),_sfc_main$2i={name:"VsArticleDetails",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{articleAuthor:{type:String,default:null},articlePublishDate:{type:String,default:null},articleReadTime:{type:String,default:null}},computed:{iconVariant(){return this.articleAuthor?"secondary":"highlight"}}},_hoisted_1$1P={key:0,class:"vs-article-details","data-test":"vs-article-details"},_hoisted_2$1k={key:0,class:"vs-article-details__author vs-article-details--highlight"},_hoisted_3$16={key:1,class:"vs-article-details__date"},_hoisted_4$Q={key:0,class:"vs-article-details__divider"};function _sfc_render$1$(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return t.articleAuthor||t.articleReadTime||t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1P,[t.articleAuthor?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1k,vue.toDisplayString(t.articleAuthor),1)):vue.createCommentVNode("",!0),t.articleReadTime||t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("div",{key:1,"data-test":"vs-article-details__date-time",class:vue.normalizeClass([t.articleAuthor?"":"vs-article-details--highlight","mb-150"])},[t.articleReadTime?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(s,{icon:"fa-regular fa-clock",variant:o.iconVariant,class:"align-text-top me-050"},null,8,["variant"]),vue.createTextVNode(vue.toDisplayString(t.articleReadTime),1)],64)):vue.createCommentVNode("",!0),t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$16,[t.articleReadTime?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$Q,"•")):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(t.articlePublishDate),1)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)}const ArticleDetails=LoadingSpinner._export_sfc(_sfc_main$2i,[["render",_sfc_render$1$]]),_sfc_main$2h={name:"VsBreadcrumb",status:"prototype",release:"0.0.1",components:{BBreadcrumb:LoadingSpinner.pi}},_hoisted_1$1O={"aria-label":"breadcrumbs",class:"vs-breadcrumb py-050"};function _sfc_render$1_(e,n,t,a,r,o){const s=vue.resolveComponent("BBreadcrumb");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$1O,[vue.createVNode(s,vue.mergeProps({class:"flex-nowrap p-0 mb-0"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)])}const Breadcrumb=LoadingSpinner._export_sfc(_sfc_main$2h,[["render",_sfc_render$1_]]),_sfc_main$2g={name:"VsBreadcrumbItem",status:"prototype",release:"0.0.1",components:{BBreadcrumbItem:LoadingSpinner.en},props:{href:{type:String,default:""},active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"page"},text:{type:String,default:"",required:!0}}};function _sfc_render$1Z(e,n,t,a,r,o){const s=vue.resolveComponent("BBreadcrumbItem");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({class:"vs-breadcrumb-item",active:t.active,"aria-current":t.ariaCurrent,href:t.href,text:t.text},e.$attrs),null,16,["active","aria-current","href","text"])}const BreadcrumbItem=LoadingSpinner._export_sfc(_sfc_main$2g,[["render",_sfc_render$1Z]]);let currentURL="";typeof window<"u"&&(currentURL=window.location.href);const dmoAnalyticsLogic=e=>{let n=!1;const t=()=>!!currentURL.includes("/info"),a=o=>t()?{dmo_referral:o}:{type:"CMS referral",product:"Unclassified",dmo_referral:o};return(()=>{let o={};return e.srcElement.localName==="a"&&LoadingSpinner.dmoUrls.forEach(s=>{e.target.href.includes(s)&&(n=!0,o=a("True"))}),n||(o=a("False")),o})()},_sfc_main$2f={name:"VsLink",status:"prototype",release:"0.0.2",components:{VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|on-dark)/)},iconSize:{type:String,default:"xxs",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},disabled:{type:Boolean,default:!1},dataLayerValue:{type:String,default:null}},computed:{variantClass(){return`vs-link--variant-${this.variant}`},iconName(){let e="";switch(this.type){case"external":e="fa-regular fa-square-arrow-up-right";break;case"internal":e="fa-regular fa-arrow-right";break;case"download":e="vs-icon-control-download";break;default:e=""}return e},iconVariant(){let e="";switch(this.variant){case"secondary":e="primary";break;case"on-dark":e="inverse";break;default:e="cta"}return e}},methods:{clickHandler(e){e.preventDefault(),this.dataLayerValue?this.createDataLayerObject(this.dataLayerValue,e,this.href):this.type==="external"?(this.createDataLayerObject("cmsReferral",{referral_location:e.target.href,dmo_referral:dmoAnalyticsLogic(e).dmo_referral}),this.createDataLayerObject("externalLinkDataEvent",e,this.href)):this.createDataLayerObject("internalLinkDataEvent",e,this.href),setTimeout(()=>{this.navigateToUrl()},500)},navigateToUrl(){this.href!=="#"&&this.href!==null&&(window.location.href=this.href)},keyHandler(e){(e.keyCode===13||e.keyCode===32)&&(e.preventDefault(),this.clickHandler(e))}}},_hoisted_1$1N=["href","download","disabled","tabindex"];function _sfc_render$1Y(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("a",vue.mergeProps({class:["vs-link",[`vs-link--variant-${t.variant}`]],href:t.href,target:"_self",download:t.type==="download"?"true":null,disabled:t.disabled,tabindex:t.disabled?"-1":"0"},e.$attrs,{onClick:n[0]||(n[0]=i=>o.clickHandler(i)),onKeydown:n[1]||(n[1]=i=>o.keyHandler(i))}),[vue.renderSlot(e.$slots,"default"),t.type!=="default"?(vue.openBlock(),vue.createBlock(s,{key:0,icon:o.iconName,variant:o.iconVariant,size:t.iconSize,class:"ms-025 vs-link__icon"},null,8,["icon","variant","size"])):vue.createCommentVNode("",!0)],16,_hoisted_1$1N)}const VsLink=LoadingSpinner._export_sfc(_sfc_main$2f,[["render",_sfc_render$1Y]]),_sfc_main$2e={name:"VsCannedSearchProductCard",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsHeading:LoadingSpinner.VsHeading,VsLink,VsCol:LoadingSpinner.VsCol},inject:["slideCols","visibleSlides"],provide(){return{slideVisible:this.isVisible}},props:{searchType:{type:String,default:""},imgSrc:{required:!0,type:String},title:{required:!0,type:String},inBodyDuration:{type:Object,default:null},description:{type:String,default:""},detailLink:{type:Object,required:!0},slideIndex:{type:String,required:!0}},computed:{modCardBody(){return this.searchType==="even"||this.searchType==="cate"?"card-body--short":""},useGenericLqip(){return this.searchType==="tour"}},methods:{isVisible(){const e=parseInt(this.slideIndex,10);return this.visibleSlides.indexOf(e)>=0}}},_hoisted_1$1M={class:"vs-product-card__image-container"},_hoisted_2$1j={class:"vs-product-card__image-inner-container"},_hoisted_3$15={class:"vs-product-card__description"},_hoisted_4$P={key:0,class:"vs-product-card__description-inner"},_hoisted_5$z={class:"visually-hidden"},_hoisted_6$o={class:"vs-product-card__logos-container","data-chromatic":"ignore"};function _sfc_render$1X(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(u,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,class:"vs-carousel-slide__card","aria-disabled":!o.isVisible()},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-product-card",o.isVisible()?"":"vs-product-card--disabled"]),"data-test":"vs-product-card"},[vue.createElementVNode("section",vue.mergeProps({class:"card"},e.$attrs),[vue.createElementVNode("div",_hoisted_1$1M,[vue.createElementVNode("div",_hoisted_2$1j,[vue.createVNode(s,{src:t.imgSrc,alt:"",sizes:"(min-width: 768px) 50vw, 100vw","use-generic-lqip":o.useGenericLqip,class:"vs-product-card__img","data-test":"vs-product-card__img","data-chromatic":"ignore"},null,8,["src","use-generic-lqip"])]),vue.renderSlot(e.$slots,"vs-canned-search-badges")]),vue.createElementVNode("div",{class:vue.normalizeClass(["card-body",o.modCardBody])},[vue.createVNode(l,{level:"3","heading-style":"heading-xs",class:"card-title vs-product-card__title","data-test":"vs-product-card__title"},{default:vue.withCtx(()=>[vue.createVNode(i,{href:t.detailLink.link,class:"stretched-link vs-product-card__link","data-test":"vs-product-card__link",disabled:!o.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])]),_:1}),vue.renderSlot(e.$slots,"vs-canned-search-sub-heading"),vue.renderSlot(e.$slots,"vs-canned-search-star-rating"),vue.renderSlot(e.$slots,"vs-canned-search-categories"),vue.createElementVNode("div",_hoisted_3$15,[vue.renderSlot(e.$slots,"vs-canned-search-tour-info"),t.description?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$P,vue.toDisplayString(t.description),1)):vue.createCommentVNode("",!0),vue.createVNode(i,{href:t.detailLink.link,class:"vs-product-card__description-link",disabled:!o.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailLink.label)+" ",1),vue.createElementVNode("span",_hoisted_5$z,": "+vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])])],2),vue.createElementVNode("div",_hoisted_6$o,[vue.renderSlot(e.$slots,"vs-canned-search-logos")])],16),vue.renderSlot(e.$slots,"vs-canned-search-summary")],2)]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const VsCannedSearchProductCard=LoadingSpinner._export_sfc(_sfc_main$2e,[["render",_sfc_render$1X]]),_sfc_main$2d={name:"VsCannedSearchStars",status:"prototype",release:"0.0.1",props:{min:{type:Number,default:null},max:{type:Number,default:null}}},_hoisted_1$1L={class:"vs-canned-search-stars","data-test":"vs-canned-search-stars"},_hoisted_2$1i={key:0},_hoisted_3$14={key:1};function _sfc_render$1W(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[t.min&&t.max&&t.min!==t.max?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1i,[n[0]||(n[0]=vue.createElementVNode("span",{class:"vs-canned-search-stars__star"}," ★ ",-1)),vue.createTextVNode(" "+vue.toDisplayString(t.min)+"-"+vue.toDisplayString(t.max),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$14,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.min,s=>(vue.openBlock(),vue.createElementBlock("span",{key:s,class:"vs-canned-search-stars__star"}," ★ "))),128))]))])}const VsCannedSearchStars=LoadingSpinner._export_sfc(_sfc_main$2d,[["render",_sfc_render$1W]]),_sfc_main$2c={name:"VsTooltip",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},directives:{"b-tooltip":LoadingSpinner.Ed},props:{title:{type:String,default:""},position:{type:String,default:"top",validator:e=>e.match(/(top|right|left|bottom)/)}}};function _sfc_render$1V(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveDirective("b-tooltip");return vue.withDirectives((vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{class:"vs-tooltip position-relative",title:t.title}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["title"])),[[i,{placement:t.position}]])}const VsTooltip=LoadingSpinner._export_sfc(_sfc_main$2c,[["render",_sfc_render$1V]]),_sfc_main$2b={name:"VsCannedSearchLogos",status:"prototype",release:"0.0.1",components:{VsTooltip,VsImg:LoadingSpinner.VsImg},inject:["slideVisible"],props:{goodToGoLogo:{type:Object,default:null},safeTravelsLogo:{type:Object,default:null},awards:{type:Array,default:null},accessGuide:{type:Object,default:null}}},_hoisted_1$1K={class:"vs-canned-search-logos"};function _sfc_render$1U(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsTooltip");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[t.goodToGoLogo?(vue.openBlock(),vue.createBlock(i,{key:0,title:t.goodToGoLogo.name,href:"#",class:"p-0",variant:"subtle","data-test":"vs-canned-search-logos__good-to-go",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.goodToGoLogo.name,src:t.goodToGoLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),t.safeTravelsLogo?(vue.openBlock(),vue.createBlock(i,{key:1,title:t.safeTravelsLogo.name,href:"#",class:"p-0",variant:"subtle","data-test":"vs-canned-search-logos__safe-travels",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.safeTravelsLogo.name,src:t.safeTravelsLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.awards,l=>(vue.openBlock(),vue.createBlock(i,{title:l.name,key:l.id,href:"#",class:"p-0",variant:"subtle",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:l.image,alt:l.name,class:"vs-canned-search-logos__logo","data-test":"vs-canned-search-logos__award-logo"},null,8,["src","alt"])]),_:2},1032,["title","disabled","tabindex"]))),128)),t.accessGuide?(vue.openBlock(),vue.createBlock(i,{key:2,title:t.accessGuide.name,href:"#",variant:"subtle",class:"vs-canned-search-logos__access p-0","data-test":"vs-canned-search-logos__access-guide",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:t.accessGuide.image,alt:t.accessGuide.name,class:"vs-canned-search-logos__logo"},null,8,["src","alt"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0)])}const VsCannedSearchLogos=LoadingSpinner._export_sfc(_sfc_main$2b,[["render",_sfc_render$1U]]),_sfc_main$2a={name:"VsCannedSearchCategories",status:"prototype",release:"0.0.1",props:{categories:{type:Array,default:null}},computed:{transformedCategories(){return this.categories?this.categories.slice(0,3).map(e=>e.name).join(" | "):""}}},_hoisted_1$1J={class:"vs-canned-search-categories","data-test":"vs-canned-search-categories"};function _sfc_render$1T(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1J,vue.toDisplayString(o.transformedCategories),1)}const VsCannedSearchCategories=LoadingSpinner._export_sfc(_sfc_main$2a,[["render",_sfc_render$1T]]),_sfc_main$29={name:"VsCannedSearchPrice",status:"prototype",release:"0.0.1",props:{price:{type:String,default:""},priceIntro:{type:String,default:""},priceOutro:{type:String,default:""}}},_hoisted_1$1I={class:"vs-canned-search-price"},_hoisted_2$1h={key:0,class:"vs-canned-search-price__intro"},_hoisted_3$13={key:1,class:"vs-canned-search-price__main"},_hoisted_4$O={key:2,class:"vs-canned-search-price__outro"};function _sfc_render$1S(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[t.priceIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1h,vue.toDisplayString(t.priceIntro),1)):vue.createCommentVNode("",!0),t.price?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$13,vue.toDisplayString(t.price),1)):vue.createCommentVNode("",!0),t.priceOutro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$O,vue.toDisplayString(t.priceOutro),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchPrice=LoadingSpinner._export_sfc(_sfc_main$29,[["render",_sfc_render$1S]]),_sfc_main$28={name:"VsCannedSearchDuration",status:"prototype",release:"0.0.1",props:{duration:{type:String,default:""},durationIntro:{type:String,default:""}}},_hoisted_1$1H={class:"vs-canned-search-duration"},_hoisted_2$1g={key:0,class:"vs-canned-search-duration__intro"},_hoisted_3$12={key:1,class:"vs-canned-search-duration__main"};function _sfc_render$1R(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[t.durationIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1g,vue.toDisplayString(t.durationIntro),1)):vue.createCommentVNode("",!0),t.duration?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$12,vue.toDisplayString(t.duration),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchDuration=LoadingSpinner._export_sfc(_sfc_main$28,[["render",_sfc_render$1R]]),_sfc_main$27={name:"VsCannedSearchSummaryBox",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsLink},inject:["slideVisible"],props:{linkHref:{type:String,default:""},linkLabel:{type:String,default:""},linkType:{type:String,default:""},linkTitle:{type:String,default:""}}},_hoisted_1$1G=["disabled"],_hoisted_2$1f={class:"visually-hidden"};function _sfc_render$1Q(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsLink"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{class:"vs-canned-search-summary-box",disabled:!o.slideVisible()},[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-top"]&&e.$slots["vs-canned-search-summary-top"]()?(vue.openBlock(),vue.createBlock(i,{key:0},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-top")]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"row--tall"},{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-left"]&&e.$slots["vs-canned-search-summary-left"]()?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-left")]),_:3})):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-summary-centre"]&&e.$slots["vs-canned-search-summary-centre"]()?(vue.openBlock(),vue.createBlock(s,{key:1,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-centre")]),_:3})):vue.createCommentVNode("",!0),t.linkHref?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.createVNode(l,{"data-test":"vs-canned-search-summary-box__link",href:t.linkHref,type:t.linkType.toLowerCase(),disabled:!o.slideVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkLabel)+" ",1),vue.createElementVNode("span",_hoisted_2$1f,": "+vue.toDisplayString(t.linkTitle),1)]),_:1},8,["href","type","disabled"])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],8,_hoisted_1$1G)}const VsCannedSearchSummaryBox=LoadingSpinner._export_sfc(_sfc_main$27,[["render",_sfc_render$1Q]]),_sfc_main$26={name:"VsCannedSearchDates",status:"prototype",release:"0.0.1",props:{period:{type:Object,default:null},label:{type:String,default:""}},computed:{datePeriod(){return this.period&&this.period.startDay?this.period.endDay?`${this.period.startDay} - ${this.period.endDay}`:this.period.startDay:""}}},_hoisted_1$1F={class:"vs-canned-search-dates"},_hoisted_2$1e={class:"vs-canned-search-dates__intro"},_hoisted_3$11={class:"vs-canned-search-dates__main"};function _sfc_render$1P(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1F,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(t.label),1),vue.createElementVNode("div",_hoisted_3$11,vue.toDisplayString(o.datePeriod),1)])}const VsCannedSearchDates=LoadingSpinner._export_sfc(_sfc_main$26,[["render",_sfc_render$1P]]),_sfc_main$25={name:"VsCannedSearchBadges",status:"prototype",release:"0.0.1",props:{badgeOne:{type:String,default:""},multiBadgeOne:{type:Array,default:null},badgeTwo:{type:String,default:""},badgeThree:{type:String,default:""}},computed:{limitedMulti(){return this.multiBadgeOne?this.multiBadgeOne.slice(0,3):[]}}},_hoisted_1$1E={class:"vs-canned-search-badges"},_hoisted_2$1d={key:0,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__badge--tr"},_hoisted_3$10={key:1,class:"vs-canned-search-badges__multi-badge-holder"},_hoisted_4$N={key:2,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--offer vs-canned-search-badges__badge--tr2"},_hoisted_5$y={key:3,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--open vs-canned-search-badges__badge--br"};function _sfc_render$1O(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[t.badgeOne?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1d,vue.toDisplayString(t.badgeOne),1)):t.multiBadgeOne&&t.multiBadgeOne.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$10,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.limitedMulti,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__multi-badge"},vue.toDisplayString(s),1))),128))])):vue.createCommentVNode("",!0),t.badgeTwo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$N,vue.toDisplayString(t.badgeTwo),1)):vue.createCommentVNode("",!0),t.badgeThree?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$y,vue.toDisplayString(t.badgeThree),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchBadges=LoadingSpinner._export_sfc(_sfc_main$25,[["render",_sfc_render$1O]]),_sfc_main$24={name:"VsCannedSearchCuisines",status:"prototype",release:"0.0.1",props:{cuisines:{type:Array,default:null}}},_hoisted_1$1D={class:"vs-canned-search-cuisines","data-test":"vs-canned-search-cuisines"};function _sfc_render$1N(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.cuisines,(s,i)=>(vue.openBlock(),vue.createElementBlock("span",{class:"vs-canned-search-cuisines__cuisine",key:i},vue.toDisplayString(s.name),1))),128))])}const VsCannedSearchCuisines=LoadingSpinner._export_sfc(_sfc_main$24,[["render",_sfc_render$1N]]),_sfc_main$23={name:"VsCannedSearchSubHeading",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},props:{subHeading:{type:String,default:""},lineLimit:{type:Number,default:null,validator:e=>[1,2].includes(e)}}};function _sfc_render$1M(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return t.subHeading?(vue.openBlock(),vue.createBlock(s,{key:0,level:"4","heading-style":"heading-xxs",class:vue.normalizeClass(["vs-canned-search-sub-heading",t.lineLimit?`vs-canned-search-sub-heading--lines-${t.lineLimit}`:""]),"data-test":"vs-canned-search-sub-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subHeading),1)]),_:1},8,["class"])):vue.createCommentVNode("",!0)}const VsCannedSearchSubHeading=LoadingSpinner._export_sfc(_sfc_main$23,[["render",_sfc_render$1M]]),_sfc_main$22={name:"VsCannedSearchTourRuns",status:"prototype",release:"0.0.1",props:{label:{type:String,default:""},startDay:{type:String,default:""},endDay:{type:String,default:""}},computed:{formattedPeriod(){let e=`${this.label}: ${this.startDay}`;return this.endDay&&(e=`${e} - ${this.endDay}`),e}}},_hoisted_1$1C={class:"vs-canned-search-tour-runs"};function _sfc_render$1L(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1C,vue.toDisplayString(o.formattedPeriod),1)}const VsCannedSearchTourRuns=LoadingSpinner._export_sfc(_sfc_main$22,[["render",_sfc_render$1L]]),_sfc_main$21={name:"VsCannedSearchTourDeparts",status:"prototype",release:"0.0.1",props:{label:{type:String,default:null},origins:{type:Array,default:null}},computed:{transformedOrigins(){return this.origins?this.origins.map(e=>e.name).join(", "):""}}},_hoisted_1$1B={class:"vs-canned-search-tour-departs"},_hoisted_2$1c={class:"vs-canned-search-tour-departs__label"};function _sfc_render$1K(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1B,[vue.createElementVNode("span",_hoisted_2$1c,vue.toDisplayString(t.label)+":",1),vue.createTextVNode(" "+vue.toDisplayString(o.transformedOrigins),1)])}const VsCannedSearchTourDeparts=LoadingSpinner._export_sfc(_sfc_main$21,[["render",_sfc_render$1K]]),_sfc_main$20={name:"VsCarousel",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsButton:LoadingSpinner.VsButton},provide(){const e={},n=this.activeSlides;return Object.keys(this.slidesPerPage).forEach(t=>{const a=12/this.slidesPerPage[t];e[t]=a}),{slideCols:e,visibleSlides:n}},props:{prevText:{type:String,default:"Previous slide"},nextText:{type:String,default:"Next slide"},slidesXs:{type:Number,default:1},slidesSm:{type:Number,default:2},slidesMd:{type:Number,default:3},slidesLg:{type:Number,default:4}},data(){return{totalSlides:null,currentPage:0,maxPages:1,nextDisabled:!1,prevDisabled:!0,currentWidth:"lg",activeSlides:[],remainderOffset:0,navigating:!1}},computed:{slidesPerPage(){const e={};return e.lg=this.slidesLg,e.md=this.slidesMd,e.sm=this.slidesSm,e.xs=this.slidesXs,e},trackOffset(){return this.remainderOffset?`-${(this.currentPage-1)*100+this.remainderOffset}%`:`-${this.currentPage*100}%`}},mounted(){window.addEventListener("resize",()=>{this.setActivePage(),this.sliderNavigate(null,this.currentPage)}),this.defineActiveSlides(),this.initNavigation()},methods:{defineActiveSlides(e){this.calcViewport(),this.activeSlides.length=0;const n=this.$refs.carousel.getElementsByClassName("vs-carousel-slide__card");let t=0;n.length>0&&Array.from(n).forEach((r,o)=>{const s=this.currentPage*this.slidesPerPage[this.currentWidth],i=parseInt(this.currentPage*this.slidesPerPage[this.currentWidth],10)+parseInt(this.slidesPerPage[this.currentWidth],10);e&&typeof e<"u"?o>=this.totalSlides-this.slidesPerPage[this.currentWidth]&&this.activeSlides.push(o):o>=s&&o<i&&this.activeSlides.push(o),t+=1}),this.totalSlides=t,this.maxPages=Math.ceil(t/this.slidesPerPage[this.currentWidth])},calcViewport(){window.matchMedia("(min-width: 1200px)").matches?this.currentWidth="lg":window.matchMedia("(min-width: 992px)").matches?this.currentWidth="md":window.matchMedia("(min-width: 576px)").matches?this.currentWidth="sm":this.currentWidth="xs"},setActivePage(){let e;this.currentWidth==="xs"&&this.slidesXs===1?e=this.currentPage+1:e=this.currentPage*this.slidesPerPage[this.currentWidth]+1,this.calcViewport();let n;this.currentWidth==="xs"&&this.slidesXs===1?n=e:n=Math.ceil(e/this.slidesPerPage[this.currentWidth]),this.currentPage=n-1,this.sliderNavigate(null,this.currentPage)},sliderNavigate(e,n){const t=this.activeSlides[0];if(e&&e.preventDefault(),this.navigating)return;this.navigating=!0,setTimeout(()=>{this.navigating=!1},250),n==="next"?this.currentPage+1<this.maxPages&&(this.currentPage+=1):n==="prev"?this.currentPage>0&&(this.currentPage-=1):this.currentPage=n,this.initNavigation();const a=this.slidesPerPage[this.currentWidth]*(this.currentPage+1);let r=!1;if(a>this.totalSlides?(this.remainderOffset=this.checkRemainder(a),r=!0):this.remainderOffset=0,this.defineActiveSlides(r),n==="next"){const o=this.getFirstActiveSlide();if(o){const s=o.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}else if(n==="prev"&&this.currentPage>=0){const o=this.$refs.carousel.querySelectorAll(".card")[t-1];if(o){const s=o.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}},getFirstActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]]},getLastActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]+this.slidesPerPage[this.currentWidth]-1]},initNavigation(){this.currentPage+1>=this.totalSlides/this.slidesPerPage[this.currentWidth]?this.nextDisabled=!0:this.nextDisabled=!1,this.currentPage>0?this.prevDisabled=!1:this.prevDisabled=!0},checkRemainder(e){const n=this.slidesPerPage[this.currentWidth]-(e-this.totalSlides);return 100/this.slidesPerPage[this.currentWidth]*n}}},_hoisted_1$1A={class:"vs-carousel","data-test":"vs-carousel",ref:"carousel"},_hoisted_2$1b={class:"slider"},_hoisted_3$$={key:2,class:"vs-carousel__navigation"},_hoisted_4$M=["onClick","onKeypress","data-test"],_hoisted_5$x={class:"visually-hidden"},_hoisted_6$n={key:0,class:"vs-carousel__mobile-pagination-wrapper"},_hoisted_7$i={class:"vs-carousel__mobile-pagination","data-test":"vs-carousel__mobile-pagination"};function _sfc_render$1J(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$1A,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"10",offset:"1",sm:"12","offset-sm":"0",class:"position-relative"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$1b,[r.prevDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,"icon-only":"",class:"vs-carousel__control vs-carousel__control--prev",onClick:n[0]||(n[0]=c=>o.sliderNavigate(c,"prev")),onKeypress:n[1]||(n[1]=c=>o.sliderNavigate(c,"prev",!0)),icon:"fa-regular fa-arrow-left",ref:"prevButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.prevText),1)]),_:1},512)),vue.createVNode(i,{class:"vs-carousel__track",style:vue.normalizeStyle({transform:`translateX(${o.trackOffset})`})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style"]),r.nextDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:1,"icon-only":"",class:"vs-carousel__control vs-carousel__control--next",onKeypress:n[2]||(n[2]=c=>o.sliderNavigate(c,"next",!0)),onClick:n[3]||(n[3]=c=>o.sliderNavigate(c,"next")),icon:"fa-regular fa-arrow-right",ref:"nextButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.nextText),1)]),_:1},512)),r.totalSlides>o.slidesPerPage[r.currentWidth]?(vue.openBlock(),vue.createElementBlock("ul",_hoisted_3$$,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.maxPages,c=>(vue.openBlock(),vue.createElementBlock("li",{key:c},[vue.createElementVNode("button",{type:"button",class:vue.normalizeClass(["vs-carousel__navigation-item",c===r.currentPage+1?"vs-carousel__navigation-item--active":""]),onClick:vue.withModifiers(d=>o.sliderNavigate(d,c-1),["prevent"]),onKeypress:vue.withModifiers(d=>o.sliderNavigate(d,c-1,!0),["prevent"]),tabindex:"0","data-test":`vs-carousel__nav-${c}`},[vue.createElementVNode("span",_hoisted_5$x,[vue.renderSlot(e.$slots,"vs-carousel-navigate"),vue.createTextVNode(" "+vue.toDisplayString(c),1)])],42,_hoisted_4$M)]))),128))])):vue.createCommentVNode("",!0)]),r.totalSlides>o.slidesPerPage[r.currentWidth]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$n,[vue.createElementVNode("p",_hoisted_7$i,[vue.createTextVNode(vue.toDisplayString(r.currentPage+1)+" ",1),vue.renderSlot(e.$slots,"vs-carousel-of"),vue.createTextVNode(" "+vue.toDisplayString(r.totalSlides),1)])])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})],512)}const VsCarousel=LoadingSpinner._export_sfc(_sfc_main$20,[["render",_sfc_render$1J]]),_sfc_main$1$={name:"VsModuleWrapper",status:"deprecated",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{anchorId:{type:String,default:null},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey|neutral)/)}},computed:{sectionClasses(){return["vs-module-wrapper",`vs-module-wrapper--${this.theme}`,this.businessSupport?"vs-module-wrapper--left-align":null]},headingColumnSizes(){return{cols:this.businessSupport?12:10,offset:this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}},IntroColumnSizes(){return{cols:12,sm:this.businessSupport?12:10,"offset-sm":this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}}}};function _sfc_render$1I(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",vue.mergeProps({class:o.sectionClasses,"data-test":"vs-module-wrapper"},e.$attrs),[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]||e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]?(vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.mergeProps({key:0},o.headingColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:"vs-module-wrapper__heading","data-test":"vs-module-wrapper__heading",id:t.anchorId},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-heading")]),_:3},8,["level","heading-style","id"])]),_:3},16)):vue.createCommentVNode("",!0),e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.mergeProps({key:1},o.IntroColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-module-wrapper__intro","data-test":"vs-module-wrapper__intro",variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-intro")]),_:3})]),_:3},16)):vue.createCommentVNode("",!0)]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")],16)}const VsModuleWrapper=LoadingSpinner._export_sfc(_sfc_main$1$,[["render",_sfc_render$1I]]),_sfc_main$1_={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard,VsCannedSearchStars,VsCannedSearchLogos,VsCannedSearchCategories,VsCannedSearchPrice,VsCannedSearchDuration,VsCannedSearchSummaryBox,VsCannedSearchDates,VsCannedSearchBadges,VsCannedSearchCuisines,VsCannedSearchSubHeading,VsCannedSearchTourRuns,VsCannedSearchTourDeparts,VsCarousel,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsModuleWrapper},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data(){return{products:[]}},computed:{showLogos(){for(let e=0;e<this.products.length;e++){const n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts(){LoadingSpinner.axios.get(this.apiUrl).then(e=>{this.products=e.data.data.products}).catch(()=>{this.products=[]})},fetchSubHeading(e){return this.searchType==="tour"?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings(e){return e.category&&e.category.length?e.category.map(n=>n.name).join(", "):""},fetchAddress(e){return e.onlineEvent?e.onlineEvent:e.address?this.searchType==="even"?`${e.eventVenue}, ${e.address.city}`:`${e.address.city}, ${e.address.county}`:""},fetchBadgeOne(e){return this.searchType!=="tour"&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne(e){return this.searchType==="tour"&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map(n=>n.name):null},fetchBadgeThree(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}},_hoisted_1$1z={class:"vs-canned-search","data-test":"vs-canned-search"};function _sfc_render$1H(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("VsCannedSearchTourRuns"),c=vue.resolveComponent("VsCannedSearchTourDeparts"),d=vue.resolveComponent("VsCannedSearchSubHeading"),f=vue.resolveComponent("VsCannedSearchStars"),v=vue.resolveComponent("VsCannedSearchCategories"),p=vue.resolveComponent("VsCannedSearchLogos"),h=vue.resolveComponent("VsCannedSearchBadges"),g=vue.resolveComponent("VsCannedSearchDates"),m=vue.resolveComponent("VsCannedSearchDuration"),_=vue.resolveComponent("VsCannedSearchPrice"),b=vue.resolveComponent("VsCannedSearchCuisines"),S=vue.resolveComponent("VsCannedSearchSummaryBox"),k=vue.resolveComponent("VsCannedSearchProductCard"),V=vue.resolveComponent("VsCarousel"),L=vue.resolveComponent("VsModuleWrapper");return vue.withDirectives((vue.openBlock(),vue.createBlock(L,null,vue.createSlots({default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-canned-search__buttons"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-buttons")]),_:3})]),_:3})]),_:3}),r.products.length?(vue.openBlock(),vue.createBlock(V,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-of")]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.products,($,A)=>(vue.openBlock(),vue.createBlock(k,{key:A,"slide-index":`${A}`,"img-src":$.images?$.images[0].mediaUrl:"",title:$.name,"detail-link":{link:$.productLink.link,label:$.productLink.label,type:$.productLink.type.toLowerCase()},description:$.description,"search-type":t.searchType},vue.createSlots({"vs-canned-search-sub-heading":vue.withCtx(()=>[vue.createVNode(d,{"sub-heading":o.fetchSubHeading($),"line-limit":t.searchType==="tour"?1:2},null,8,["sub-heading","line-limit"])]),"vs-canned-search-badges":vue.withCtx(()=>[vue.createVNode(h,{"badge-one":o.fetchBadgeOne($),"multi-badge-one":o.fetchMultiBadgeOne($),"badge-two":$.offers,"badge-three":o.fetchBadgeThree($)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]),"vs-canned-search-summary":vue.withCtx(()=>[vue.createVNode(S,{"link-href":$.website.link,"link-type":$.website.type,"link-label":$.website.label,"link-title":$.name},vue.createSlots({"vs-canned-search-summary-left":vue.withCtx(()=>[t.searchType==="tour"&&$.tourLength?(vue.openBlock(),vue.createBlock(m,{key:0,"duration-intro":$.tourLength.label,duration:$.tourLength.value},null,8,["duration-intro","duration"])):$.price&&t.searchType!=="tour"?(vue.openBlock(),vue.createBlock(_,{key:1,"price-intro":$.price.priceLabel,price:$.price.price,"price-outro":$.price.priceBasis},null,8,["price-intro","price","price-outro"])):$.cuisines?(vue.openBlock(),vue.createBlock(b,{key:2,cuisines:$.cuisines},null,8,["cuisines"])):vue.createCommentVNode("",!0)]),_:2},[$.opening&&t.searchType!=="tour"?{name:"vs-canned-search-summary-top",fn:vue.withCtx(()=>[vue.createVNode(g,{period:$.opening.period,label:$.opening.period.label},null,8,["period","label"])]),key:"0"}:void 0,$.price&&t.searchType==="tour"?{name:"vs-canned-search-summary-centre",fn:vue.withCtx(()=>[vue.createVNode(_,{"price-intro":$.price.priceLabel,price:$.price.price,"price-outro":$.price.priceBasis},null,8,["price-intro","price","price-outro"])]),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]),_:2},[t.searchType==="tour"?{name:"vs-canned-search-tour-info",fn:vue.withCtx(()=>[vue.createElementVNode("div",null,[$.opening&&$.opening.period&&$.opening.period.startDay?(vue.openBlock(),vue.createBlock(u,{key:0,label:$.opening.period.label,"start-day":$.opening.period.startDay,"end-day":$.opening.period.endDay},null,8,["label","start-day","end-day"])):vue.createCommentVNode("",!0),$.tourOrigin&&$.tourOrigin.tourOrigin?(vue.openBlock(),vue.createBlock(c,{key:1,label:$.tourOrigin.label,origins:$.tourOrigin.tourOrigin},null,8,["label","origins"])):vue.createCommentVNode("",!0)])]),key:"0"}:void 0,$.grading?{name:"vs-canned-search-star-rating",fn:vue.withCtx(()=>[vue.createVNode(f,{min:$.grading.minStars,max:$.grading.maxStars},null,8,["min","max"])]),key:"1"}:void 0,$.locations?{name:"vs-canned-search-categories",fn:vue.withCtx(()=>[vue.createVNode(v,{categories:$.locations},null,8,["categories"])]),key:"2"}:void 0,o.showLogos?{name:"vs-canned-search-logos",fn:vue.withCtx(()=>[vue.createVNode(p,{"good-to-go-logo":$.covidInformation&&$.covidInformation.goodToGo?$.covidInformation.goodToGo:null,"safe-travels-logo":$.covidInformation&&$.covidInformation.safeTravels?$.covidInformation.safeTravels:null,"access-guide":$.accessGuide||null,awards:$.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"]))),128))]),_:3},8,["next-text","prev-text"])):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-credit"]?(vue.openBlock(),vue.createBlock(l,{key:1,class:"vs-canned-search__credit-container"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-credit")]),_:3})):vue.createCommentVNode("",!0)])]),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-intro")]),key:"1"}:void 0]),1536)),[[vue.vShow,r.products.length]])}const CannedSearch=LoadingSpinner._export_sfc(_sfc_main$1_,[["render",_sfc_render$1H]]),_sfc_main$1Z={name:"VsCaptionImageMap",status:"prototype",release:"0.0.1",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapOutlineColor:{type:String,default:"#191919"},mapMarkerColor:{type:String,default:"#191919"}},data(){return{cornerCoordinates:{NE:61.3,NW:54.4,SE:-9.1,SW:.4},mapWidth:75,mapHeight:104}},computed:{positionY(){const e=Number(this.latitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.NE,this.cornerCoordinates.NW,e,this.mapHeight))},positionX(){const e=Number(this.longitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.SE,this.cornerCoordinates.SW,e,this.mapWidth))}},methods:{calculateAxisPosition(e,n,t,a){return(t-e)*a/(n-e)}}},_hoisted_1$1y=["width","height"],_hoisted_2$1a=["stroke"],_hoisted_3$_=["stroke"],_hoisted_4$L=["stroke"],_hoisted_5$w=["stroke"],_hoisted_6$m=["stroke"],_hoisted_7$h=["stroke"],_hoisted_8$7=["stroke"],_hoisted_9$5=["stroke"],_hoisted_10$5=["stroke"],_hoisted_11$4=["stroke"],_hoisted_12$3=["stroke"],_hoisted_13$3=["stroke"],_hoisted_14$2=["stroke"],_hoisted_15$2=["stroke"],_hoisted_16$2=["stroke"],_hoisted_17$2=["stroke"],_hoisted_18$1=["stroke"],_hoisted_19$1=["stroke"],_hoisted_20$1=["stroke"],_hoisted_21=["stroke"],_hoisted_22=["stroke"],_hoisted_23=["stroke"],_hoisted_24=["stroke"],_hoisted_25=["stroke"],_hoisted_26=["stroke"],_hoisted_27=["stroke"],_hoisted_28=["stroke"],_hoisted_29=["stroke"],_hoisted_30=["stroke"],_hoisted_31=["stroke"],_hoisted_32=["width","height"],_hoisted_33=["fill","cx","cy"];function _sfc_render$1G(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:r.mapWidth,height:r.mapHeight,viewBox:"0 0 76 105.9",class:"vs-caption-image-map","data-test":"vs-caption-image-map"},[vue.createElementVNode("path",{"data-test":"vs-caption-image-map__first-path",d:"M65.9965,9.0973l-.167.736.668.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_2$1a),vue.createElementVNode("path",{d:`M64.6595,9.4653l-.668,2.391,
|
|
2
|
-
1.169.368-.334-1.287C64.8265
|
|
3
|
-
10.2013,65.1605,10.2013,64.6595,9.4653Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_3$_),vue.createElementVNode("path",{d:"M66.1635,11.4883l1.336.184-.336-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_4$L),vue.createElementVNode("path",{d:`M62.1546,11.3043l-1.5,1.1c.5.92.8349.736
|
|
4
|
-
1.837.736l-.3341.368h-.173a1.6911,1.6911,0,0,0,1.336.92c-.668
|
|
5
|
-
1.287-1.67,1.1-2.8389,1.655v.368c1.67.736,1.336,1.1,2.506-.184
|
|
6
|
-
1.169,2.391-.5,2.759.668,4.966h.334l.334-1.471v-1.837l.5-1.1-.835-1.655a3.6491
|
|
7
|
-
3.6491,0,0,0,.835-1.839c-.668.368-.668.368-1.336,0C62.3215
|
|
8
|
-
12.7753,62.8235,12.2243,62.1546,11.3043Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_5$w),vue.createElementVNode("path",{d:"M65.9965,13.8793l-.668,1.287,1.169-.368Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_6$m),vue.createElementVNode("path",{d:"M49.46,30.2483l1,.736C50.96,30.2483,50.2945,29.5123,49.46,30.2483Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_7$h),vue.createElementVNode("path",{d:"M52.8005,31.1643l1.67-.552-.17-.548C53.1345,30.2483,52.9675,29.88,52.8005,31.1643Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_8$7),vue.createElementVNode("path",{d:"M51.2975,30.9843l.167,1.655,1.169-1.287Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_9$5),vue.createElementVNode("path",{d:`M48.6245,31.72c.1671,1.655-1,.552-1.5.92s-.334
|
|
9
|
-
1.655-.167,2.207l1.336-.184c.167.92.5.552,1.169.736l.835.368a1.5181,1.5181,0,0,0
|
|
10
|
-
1.8371-.736l-2.172.184.167-.736-1.3421-.184v-.363l.668-.368-.668-.552c.668-.552
|
|
11
|
-
1-.368,1.5-1.287A2.6,2.6,0,0,0,48.6245,31.72Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_10$5),vue.createElementVNode("path",{d:"M50.4625,33.1913l.334.92.835-.92-.169-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_11$4),vue.createElementVNode("path",{d:`M46.6205,36.1343c0,.184.167.552.167.736.167.184.167.368.334.368
|
|
12
|
-
1.169.92,1.336-1.287.167-1.287C46.9545,35.95,46.7875,35.95,46.6205,36.1343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_12$3),vue.createElementVNode("path",{d:"M49.6265,37.0533l-.334.92,1,.552.334-1.471Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_13$3),vue.createElementVNode("path",{d:`M46.12,39.6283c-1,1.287-1.5.736-2.505.92-.334.184-.668.552-1
|
|
13
|
-
.552-.5.184-1.5-.184-2-.184a14.9016,14.9016,0,0
|
|
14
|
-
0-3.007,1.1l.167.736-1.343-1.469a1.64,1.64,0,0,1-1.5
|
|
15
|
-
1.287l.5-1.655-1.169.368-.668-1.1-1.336,1.1v.552c.5.368.668.368.334.92l.334
|
|
16
|
-
1.1-1.169-.184,1.5,2.207-1.837-.184h-1.5c.668,1.839.835.92-.167
|
|
17
|
-
2.759l-.5-.736c-.167.736.334,1.1.835,1.471a26.8342,26.8342,0,0,1,2.171
|
|
18
|
-
2.207c-1.67,0-1.169-.736-2-1.1-.668-.368-1.5.184-2.171.552l-.835-.92.167
|
|
19
|
-
1.839c-.668-.552-2-1.1-1.5.552,1,0,1,.736-.167,1.1l1.169,1.1,1
|
|
20
|
-
1.287c-1.67.184-1.5-.92-3.174-.368a3.4256,3.4256,0,0,1,.668,2.207c1.336
|
|
21
|
-
0,1.837-.7359,2.673.552h-2.515c.5.736.835.5521,1.5.736l1
|
|
22
|
-
.736c-.668.368-.668.368-1.336.184l.167,1.287.668-.184c0,1.655-.334
|
|
23
|
-
1.1-1.169,1.1l-1.169.184c.835,1.655,1.169.368,2.339,1.471a3.9245,3.9245,0,0
|
|
24
|
-
1-2.506-.184c0,.552-.167,1.288.167,1.655l-.835.184v.92c-1.837-.552-1.67
|
|
25
|
-
0-3.174.552,2.171,1.471,3.174-.552,5.178.368-1.5,1.471-.835-.184-3.341
|
|
26
|
-
1.287.835.92,2.339.552,3.341.552.668-1.471,2-1.1
|
|
27
|
-
2.506-2.023.334-.7359-.334-1.839.668-2.207.668-.368,1.169.552,1
|
|
28
|
-
1.1a1.1582,1.1582,0,0,1-1,.552,3.54,3.54,0,0,0,2.673.7359l-1.5
|
|
29
|
-
1.287-1.837.552-.334,1.655.668.1841,1.336-1.287c-.167.92-.5
|
|
30
|
-
2.207-1.5,2.207-.668,0-1.5-.92-2.171,0-1,.92-.167,2.207-.5
|
|
31
|
-
3.6779l.5.1841-.334.92c1.67.552,2.171-1.1,3.174-2.2071a6.619
|
|
32
|
-
6.619,0,0,1,1.5-.92c.334,1.4709-.668,1.839-1.67,2.207,0,1.287-.835.7359-1
|
|
33
|
-
2.5749a3.8062,3.8062,0,0,1,1.67,1.655l.668-.552.5-3.862h.835l-.167,2.207
|
|
34
|
-
1.837.552c1.336.1841,1.169,0,2.339,1.1-1.169.184-1.67-.1841-2.84-.368a.9569.9569
|
|
35
|
-
0,0,0-1.169.184c-.5.368-.167,1.1-.334,1.655l-.167,1.287c1,.736,2.673,2.023
|
|
36
|
-
1.837,3.678a8.1472,8.1472,0,0,1-1.169,1.287c-.334.552,0,1.1-.5
|
|
37
|
-
1.839-.334.552-1,.736-1.5,1.471-.5,1.1,0,1.655-.167,2.207,0,.368-.334.736-.5
|
|
38
|
-
1.1-.167-.368-.668-1.471-1-1.471-.5-.184-1.169.736-.835,1.471s1.169.736,1.67
|
|
39
|
-
1.1c.668.92.167,1.839,1.5,2.391.167-1.287-.668-2.207.167-2.759,1.169-.552
|
|
40
|
-
2.84,1.839,3.341,2.023,1.5.552,1.336-.736.835-1.655a4.7548,4.7548,0,0
|
|
41
|
-
1-.668-1.287c.334-.184.668-.368,1-.184.668.368.167,1.1
|
|
42
|
-
1.336.736.167.368.167.552.5.7359a2.5229,2.5229,0,0,0,2,.368c.334,0
|
|
43
|
-
.668-.552,1.169-.7359s1.336.184,1.67-.552c.5-.5521.167-1.8391,0-2.575
|
|
44
|
-
1.5.7359,1.5.368,2.673.552.668.184,1.67.552,2.338.184.5-.184.5-.552
|
|
45
|
-
1.336-1.287,2.171-1.655,4.51-3.862,7.015-4.6-.334-1.287-.835-1.287-1-2.023-.334-1.1
|
|
46
|
-
1-2.207,1.837-2.575l-1-2.391-2.672-.92-2-1.1-1.5.3679c0,.552,0
|
|
47
|
-
.92-.5,1.287-1.5.92-3.007-.7359-4.176-.92-.668,0-2.171.552-2.673-.368-.334-.368
|
|
48
|
-
0-.736.334-.92.668-.368,1.336,0,2,.184l1.837.184.167-.552.835.368a2.3569
|
|
49
|
-
2.3569,0,0,1,1.5-2.207c.334,0,.835.368,1.336.184l1.837-.736v-.368a5.49
|
|
50
|
-
5.49,0,0,0-2.84-1.1l.334-.736-.668-.184c-.835,1.1-1.336.736-2.506
|
|
51
|
-
1.1-.334,0-1,.184-1.336,0-.167-.184-.167-.368-.334-.736,2.171.368
|
|
52
|
-
2.171-.92,3.508-1.287.668-.368,1,0,1.837,0a3.77,3.77,0,0,0,3.341-2.207
|
|
53
|
-
5.2019,5.2019,0,0,1-1-.736c-.334-1.1,1.336-1.1
|
|
54
|
-
1.5-1.287.334-.184.668-.92.835-1.1.334-.552,1.169-1.471
|
|
55
|
-
1.336-1.839l.835-2.943.835-.92.668-1.839c.334-.552.668-.368
|
|
56
|
-
1.169-1.471-1.336-1.288-.835-2.575-2-2.943s-2.505.736-4.176
|
|
57
|
-
.92-2.673-.92-3.341-.92l-1.837.368-2.338-.552c-1
|
|
58
|
-
0-3.174,1.287-4.176,1.655l-1.169.552c-.334.184-.835.92-1.5
|
|
59
|
-
1.471-.5.184-2.338.736-2.673.184-.334-.184-.167-.552,0-.736.5-.368,1,0
|
|
60
|
-
1.5,0a8.5374,8.5374,0,0,0,2.171-2.207c-1.5-.552-1.336.736-3.007
|
|
61
|
-
1.1l.5-1.839c1.67.184,1.336-.368,2.506-.552a4.4993,4.4993,0,0,1,1.5.368c0-1.471.5-.92
|
|
62
|
-
1.169-2.207l-1.837.736c-1-.368-2.338.184-3.007-1.1h2.673l-.668-1.287a8.2712
|
|
63
|
-
8.2712,0,0,0,2.506-1.1,6.33,6.33,0,0,0,1.837-1.1l.835-1.1,1.336-1.1c.835-.736
|
|
64
|
-
2.171-1.2871,2-2.7591h.5c-.334-1.287-.668-1.287.167-2.0229l-1.67-.1841Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_14$2),vue.createElementVNode("path",{d:`M17.2225,46.4343c-.5-1.1-.835-1.1-1.837-.736l.167.736c-1.169.736-.835
|
|
65
|
-
1.471.167,1.1l.334.92h-1l-.167.552a1.521,1.521,0,0,1,1.169,1.471l-1.339.555c.5.736
|
|
66
|
-
1.336,1.287,2,.552.334-.184.5-.92.835-1.1.167-.184.835,0,1.169,0a3.0538
|
|
67
|
-
3.0538,0,0,0-1.336-2.207l.835-.368a.8581.8581,0,0,0,.5.92c.835.736,1.67,0
|
|
68
|
-
2.506-.368-.334-1.287-1.336-1.1-2.338-1.1l2.673-.736c-.5-2.023.5-1.839
|
|
69
|
-
2-2.391l-.334-1.287c0-.368.334-1.1-.334-1.471-.5-.552-1.5.736-1.837,1.1-1.336
|
|
70
|
-
1.287-1.837.92-2.506,1.471S18.5585,45.1463,17.2225,46.4343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_15$2),vue.createElementVNode("path",{d:"M22.0665,45.33v.736c1-.368,1.5.184,2-.92Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_16$2),vue.createElementVNode("path",{d:`M20.8965,52.8713l-1,.92.5,1.471c-1.5.184-1-.736-2.171-1.1l.334
|
|
71
|
-
2.759-1.5-.92c-.167,1.1.334,1.655,1.169,2.391l.5-.552c1.5-.552.668,2.575
|
|
72
|
-
1.67,2.943.835.552,1.169-1.1,2,.184.5-.184,1.5-.552,1.336.552-.167.368-.668.736-.835
|
|
73
|
-
1.1,1.336,0,1.336-.736,1.837-1.655l.668-.92a3.848,3.848,0,0
|
|
74
|
-
1-2.84-1.839l-.5-3.311A3.0591,3.0591,0,0,0,20.8965,52.8713Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_17$2),vue.createElementVNode("path",{d:`M12.5415,54.1593c-.5-.736-.668-.552-1.336-.736l-.167.736c.167,0
|
|
75
|
-
.5.184.668.184,1.336.92,0,2.575-.167,3.678-.167.92.167,1.655-.334
|
|
76
|
-
3.311h1.169a22.2511,22.2511,0,0,1,.334-3.311c.167-1.287,0-1.839
|
|
77
|
-
1-2.759l-.167-1.1c.668-.184.835-.184,1.169-.92C13.38,53.0553
|
|
78
|
-
13.2125,52.8713,12.5415,54.1593Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_18$1),vue.createElementVNode("path",{d:`M23.9035,55.8133c-.334.736-.5,1.1-1.169,1.287,0,2.023,1
|
|
79
|
-
1.471,1.169,1.1A11.4313,11.4313,0,0,0,23.9035,55.8133Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_19$1),vue.createElementVNode("path",{d:`M10.5405,62.0673l-.835.736a4.3288,4.3288,0,0
|
|
80
|
-
1-.835,2.942l.167.184,1.333-2.023.5-1.1Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_20$1),vue.createElementVNode("path",{d:"M19.8945,62.6193l-.334,1.1,1.837-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_21),vue.createElementVNode("path",{d:`M18.7255,67.5843c-1.169.92-1.837.92-2,2.207a5.2615,5.2615,0,0
|
|
81
|
-
0-2.84.92c.167.184.167.368.5.368.835.184,2.84-1.471,3.508-2.023C18.3915
|
|
82
|
-
68.6843,18.8925,68.32,18.7255,67.5843Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_22),vue.createElementVNode("path",{d:`M21.3975,68.1363c-1,1.1-1.336.368-1.5,1.655.668.184.668.368,1
|
|
83
|
-
.92l1.336.184-1,.736,1.169.736-3.343.919c.167.184.167.368.334.552.5.184
|
|
84
|
-
1.5.368,1.837,0a1.5054,1.5054,0,0,0,.167-.736c1.67.552.835-.552
|
|
85
|
-
2.673-.184a1.6551,1.6551,0,0,1,1.67-.92c-.167-1.839-.835-1.287-1.837-2.023C23.0685
|
|
86
|
-
69.4233,23.2355,69.0563,21.3975,68.1363Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_23),vue.createElementVNode("path",{d:`M22.4,80.4613c.5-1.1.668-1.1.167-2.207.334,0,.668.184,1,0
|
|
87
|
-
.668-.184,1.336-1.839,1.5-2.391-1.169,0-2.171,1.1-2.84,2.0231C21.7315
|
|
88
|
-
78.62,20.73,79.3563,22.4,80.4613Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_24),vue.createElementVNode("path",{d:`M26.0755,76.4133c-.835,1.287-.334,1.287-.5
|
|
89
|
-
2.207-.334.92-.668.736-.835,2.207,1.169.184,1.169.184,2.171-.736-.167
|
|
90
|
-
1.471-3.174,2.943-1.837,4.966l-.334.3681v.1839c2.171-.368,2-2.575
|
|
91
|
-
2.506-3.4939.167-.736.835-.92.668-1.655,0-.552-.668-1.287-.835-1.839
|
|
92
|
-
0-.552.167-.92.167-1.471Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_25),vue.createElementVNode("path",{d:"M20.5605,76.5973l-1,.736C20.0605,77.5173,20.73,77.3333,20.5605,76.5973Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_26),vue.createElementVNode("path",{d:"M27.5785,78.9883c.668.92,2,2.391,3.174,2.207-.334-.552-.334-.92-1-1.1v-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_27),vue.createElementVNode("path",{d:`M18.7255,83.4023c.668-.1839.668-.1839.835-.92.167,0
|
|
93
|
-
.334.184.668,0,1.5,0,.835-1.287.5-2.207l-.333-1.103c-1.169.552-.668.92-1
|
|
94
|
-
2.023A6.64,6.64,0,0,0,18.7255,83.4023Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_28),vue.createElementVNode("path",{d:`M18.8885,79.3553l-1.336,1.1.167.736-.835.92.167.184C18.2245
|
|
95
|
-
81.93,19.7285,81.01,18.8885,79.3553Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_29),vue.createElementVNode("path",{d:`M28.2465,82.1143c-.668.92-.5,1.287-.5,2.391,0,.552,0
|
|
96
|
-
1.288.668,1.288C29.75,85.6083,29.2485,82.85,28.2465,82.1143Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_30),vue.createElementVNode("path",{d:`M23.2355,88.1793c1.5-.92.5-.736,2.506-.92C24.5725
|
|
97
|
-
85.0573,23.0685,85.9793,23.2355,88.1793Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_31),vue.createElementVNode("rect",{width:r.mapWidth,height:r.mapHeight,fill:"none"},null,8,_hoisted_32),vue.createElementVNode("circle",{r:"4","data-test":"vs-caption-image-map__marker",fill:t.mapMarkerColor,cx:o.positionX,cy:o.positionY},null,8,_hoisted_33)],8,_hoisted_1$1y)}const VsCaptionImageMap=LoadingSpinner._export_sfc(_sfc_main$1Z,[["render",_sfc_render$1G]]),_sfc_main$1Y={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsCaptionImageMap},props:{variant:{type:String,default:"fullwidth",validator:e=>e.match(/(fullwidth|large)/)},theme:{type:String,default:"bold",validator:e=>e.match(/(bold|subtle)/)},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},data(){return{tokens:LoadingSpinner.designTokens}},computed:{showMap(){return!!(this.longitude&&this.latitude)},isLargeCaption(){return this.variant==="large"},captionClasses(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},`vs-caption--${this.textAlign}`,`vs-caption--${this.theme}`]}}},_hoisted_1$1x={class:"vs-caption__caption-info"},_hoisted_2$19={key:0,class:"vs-caption__image-caption"},_hoisted_3$Z={key:1,class:"vs-caption__image-credit"},_hoisted_4$K={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1F(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsCaptionImageMap"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"vs-caption",class:vue.normalizeClass(["vs-caption",o.captionClasses])},[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"justify-content-center justify-content-sm-start"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:vue.normalizeClass(["order-2 order-sm-1",[o.showMap?"":"align-self-center"]])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1x,[e.$slots.caption?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$19,[vue.renderSlot(e.$slots,"caption")])):vue.createCommentVNode("",!0),e.$slots.credit?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$Z,[vue.renderSlot(e.$slots,"credit")])):vue.createCommentVNode("",!0)])]),_:3},8,["class"]),o.showMap&&o.isLargeCaption?(vue.openBlock(),vue.createBlock(s,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 ps-sm-0 align-self-end align-self-sm-start"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$K,[vue.createVNode(i,{latitude:t.latitude,longitude:t.longitude,"map-outline-color":r.tokens["vs-color-icon-inverse"],"map-marker-color":r.tokens["vs-color-background-accent-tolsta-40"]},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],2)}const VsCaption=LoadingSpinner._export_sfc(_sfc_main$1Y,[["render",_sfc_render$1F]]),_sfc_main$1X={name:"VsProgressBar",status:"prototype",release:"0.1.0",components:{BProgress:LoadingSpinner.Zo,BProgressBar:LoadingSpinner.Yo},props:{max:{type:Number,required:!0},currentStep:{type:Number,required:!0},isStepped:{type:Boolean,required:!1},isFull:{type:Boolean,required:!1},progressLabel:{type:String,default:""}},data(){return{compId:null}},computed:{computedClasses(){let e="";return this.isFull&&(e+="vs-progress-bar--full "),this.isStepped&&(e+="vs-progress-bar--stepped "),e},interpolProgressLabel(){if(this.progressLabel){let e=this.progressLabel.replace("xxx",this.currentStep);return e=e.replace("yyy",this.max),e}return""}},mounted(){const e=vue.getCurrentInstance();this.compId=vue.ref(e.uid)}},_hoisted_1$1w={key:1,class:"vs-progress-bar__stepper"},_hoisted_2$18=["id"],_hoisted_3$Y=["id"];function _sfc_render$1E(e,n,t,a,r,o){const s=vue.resolveComponent("BProgressBar"),i=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",o.computedClasses]),"data-test":"vs-progress-bar"},[!t.isStepped||t.max>5?(vue.openBlock(),vue.createBlock(i,{key:0,max:t.max},{default:vue.withCtx(()=>[vue.createVNode(s,{value:t.currentStep,"aria-labelledBy":`progress-bar-${r.compId}`},null,8,["value","aria-labelledBy"])]),_:1},8,["max"])):vue.createCommentVNode("",!0),t.isStepped&&t.max<=5?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1w,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.max,l=>(vue.openBlock(),vue.createBlock(i,{key:l,max:1},{default:vue.withCtx(()=>[vue.createVNode(s,{value:l<=t.currentStep?1:0,"aria-labelledBy":`progress-bar-${r.compId}`},null,8,["value","aria-labelledBy"])]),_:2},1024))),128))])):vue.createCommentVNode("",!0),o.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:`progress-bar-${r.compId}`},vue.toDisplayString(o.interpolProgressLabel),9,_hoisted_2$18)):(vue.openBlock(),vue.createElementBlock("p",{key:3,class:"vs-progress-bar__label",id:`progress-bar-${r.compId}`},vue.toDisplayString(t.currentStep)+" / "+vue.toDisplayString(t.max),9,_hoisted_3$Y))],2)}const VsProgressBar=LoadingSpinner._export_sfc(_sfc_main$1X,[["render",_sfc_render$1E]]),_sfc_main$1W={name:"VsCarbonCalculatorTip",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsHeading:LoadingSpinner.VsHeading},inject:["labelsMap"],props:{tip:{type:String,default:""},showingAllTips:{type:Boolean,default:!1}}},_hoisted_1$1v={class:"vs-carbon-calculator-tip","data-test":"vs-carbon-calculator-tip"},_hoisted_2$17={class:"vs-carbon-calculator-tip__icon-container"},_hoisted_3$X={class:"vs-carbon-calculator-tip__content"},_hoisted_4$J=["innerHTML"],_hoisted_5$v=["innerHTML"];function _sfc_render$1D(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1v,[vue.createElementVNode("div",_hoisted_2$17,[vue.createVNode(s,{icon:"fa-kit fa-vs-coo-head",size:"lg",variant:"highlight",class:"vs-carbon-calculator-tip__icon"})]),vue.createElementVNode("div",_hoisted_3$X,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.topTip),1)]),_:1}),t.showingAllTips?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__summary",innerHTML:o.labelsMap.allTips},null,8,_hoisted_4$J)):vue.createCommentVNode("",!0),t.showingAllTips?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__content",innerHTML:t.tip},null,8,_hoisted_5$v))])])}const VsCarbonCalculatorTip=LoadingSpinner._export_sfc(_sfc_main$1W,[["render",_sfc_render$1D]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function n(t){return arguments.length===0||_isPlaceholder(t)?n:e.apply(this,arguments)}}function _curry2(e){return function n(t,a){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry1(function(r){return e(t,r)});default:return _isPlaceholder(t)&&_isPlaceholder(a)?n:_isPlaceholder(t)?_curry1(function(r){return e(r,a)}):_isPlaceholder(a)?_curry1(function(r){return e(t,r)}):e(t,a)}}}function _arity(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,a){return n.apply(this,arguments)};case 3:return function(t,a,r){return n.apply(this,arguments)};case 4:return function(t,a,r,o){return n.apply(this,arguments)};case 5:return function(t,a,r,o,s){return n.apply(this,arguments)};case 6:return function(t,a,r,o,s,i){return n.apply(this,arguments)};case 7:return function(t,a,r,o,s,i,l){return n.apply(this,arguments)};case 8:return function(t,a,r,o,s,i,l,u){return n.apply(this,arguments)};case 9:return function(t,a,r,o,s,i,l,u,c){return n.apply(this,arguments)};case 10:return function(t,a,r,o,s,i,l,u,c,d){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,n,t){return function(){for(var a=[],r=0,o=e,s=0;s<n.length||r<arguments.length;){var i;s<n.length&&(!_isPlaceholder(n[s])||r>=arguments.length)?i=n[s]:(i=arguments[r],r+=1),a[s]=i,_isPlaceholder(i)||(o-=1),s+=1}return o<=0?t.apply(this,a):_arity(o,_curryN(e,a,t))}}var curryN=_curry2(function(n,t){return n===1?_curry1(t):_arity(n,_curryN(n,[],t))});function _curry3(e){return function n(t,a,r){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry2(function(o,s){return e(t,o,s)});case 2:return _isPlaceholder(t)&&_isPlaceholder(a)?n:_isPlaceholder(t)?_curry2(function(o,s){return e(o,a,s)}):_isPlaceholder(a)?_curry2(function(o,s){return e(t,o,s)}):_curry1(function(o){return e(t,a,o)});default:return _isPlaceholder(t)&&_isPlaceholder(a)&&_isPlaceholder(r)?n:_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(o,s){return e(o,s,r)}):_isPlaceholder(t)&&_isPlaceholder(r)?_curry2(function(o,s){return e(o,a,s)}):_isPlaceholder(a)&&_isPlaceholder(r)?_curry2(function(o,s){return e(t,o,s)}):_isPlaceholder(t)?_curry1(function(o){return e(o,a,r)}):_isPlaceholder(a)?_curry1(function(o){return e(t,o,r)}):_isPlaceholder(r)?_curry1(function(o){return e(t,a,o)}):e(t,a,r)}}}var _isArray=Array.isArray||function(n){return n!=null&&n.length>=0&&Object.prototype.toString.call(n)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,n,t){return function(){if(arguments.length===0)return t();var a=arguments[arguments.length-1];if(!_isArray(a)){for(var r=0;r<e.length;){if(typeof a[e[r]]=="function")return a[e[r]].apply(a,Array.prototype.slice.call(arguments,0,-1));r+=1}if(_isTransformer(a)){var o=n.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(a)}}return t.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function _map(e,n){for(var t=0,a=n.length,r=Array(a);t<a;)r[t]=e(n[t]),t+=1;return r}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(n){return _isArray(n)?!0:!n||typeof n!="object"||_isString(n)?!1:n.length===0?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1}),XWrap=function(){function e(n){this.f=n}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(n){return n},e.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(n,t){return _arity(n.length,function(){return n.apply(t,arguments)})});function _arrayReduce(e,n,t){for(var a=0,r=t.length;a<r;){if(n=e["@@transducer/step"](n,t[a]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}a+=1}return e["@@transducer/result"](n)}function _iterableReduce(e,n,t){for(var a=t.next();!a.done;){if(n=e["@@transducer/step"](n,a.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}a=t.next()}return e["@@transducer/result"](n)}function _methodReduce(e,n,t,a){return e["@@transducer/result"](t[a](bind(e["@@transducer/step"],e),n))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,n,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,n,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,n,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,n,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,n,t);if(typeof t.reduce=="function")return _methodReduce(e,n,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},e}(),_xmap=_curry2(function(n,t){return new XMap(n,t)});function _has(e,n){return Object.prototype.hasOwnProperty.call(n,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(n){return toString$1.call(n)==="[object Arguments]"}:function(n){return _has("callee",n)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(n,t){for(var a=0;a<n.length;){if(n[a]===t)return!0;a+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(n){if(Object(n)!==n)return[];var t,a,r=[],o=hasArgsEnumBug&&_isArguments(n);for(t in n)_has(t,n)&&(!o||t!=="length")&&(r[r.length]=t);if(hasEnumBug)for(a=nonEnumerableProps.length-1;a>=0;)t=nonEnumerableProps[a],_has(t,n)&&!contains(r,t)&&(r[r.length]=t),a-=1;return r}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(a,r){return a[r]=n(t[r]),a},{},keys(t));default:return _map(n,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(n){return n<<0===n},nth=_curry2(function(n,t){var a=n<0?t.length+n:n;return _isString(t)?t.charAt(a):t[a]}),nth$1=nth,prop=_curry2(function(n,t){if(t!=null)return _isInteger(n)?nth$1(n,t):t[n]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(n){for(var t=keys(n),a=t.length,r=[],o=0;o<a;)r[o]=n[t[o]],o+=1;return r}),values$1=values;function _isFunction(e){var n=Object.prototype.toString.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"}var type=_curry1(function(n){return n===null?"Null":n===void 0?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function _pipe(e,n){return function(){return n.call(this,e.apply(this,arguments))}}function _checkForMethod(e,n){return function(){var t=arguments.length;if(t===0)return n();var a=arguments[t-1];return _isArray(a)||typeof a[e]!="function"?n.apply(this,arguments):a[e].apply(a,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(n,t,a){return Array.prototype.slice.call(a,n,t)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(e){for(var n=[],t;!(t=e.next()).done;)n.push(t.value);return n}function _includesWith(e,n,t){for(var a=0,r=t.length;a<r;){if(e(n,t[a]))return!0;a+=1}return!1}function _functionName(e){var n=String(e).match(/^function (\w*)/);return n==null?"":n[1]}function _objectIs(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,n,t,a){var r=_arrayFromIterator(e),o=_arrayFromIterator(n);function s(i,l){return _equals(i,l,t.slice(),a.slice())}return!_includesWith(function(i,l){return!_includesWith(s,l,i)},o,r)}function _equals(e,n,t,a){if(_objectIs$1(e,n))return!0;var r=type(e);if(r!==type(n))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof n["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n)&&typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof n.equals=="function")return typeof e.equals=="function"&&e.equals(n)&&typeof n.equals=="function"&&n.equals(e);switch(r){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===n;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof n&&_objectIs$1(e.valueOf(),n.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(!(e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.sticky===n.sticky&&e.unicode===n.unicode))return!1;break}for(var o=t.length-1;o>=0;){if(t[o]===e)return a[o]===n;o-=1}switch(r){case"Map":return e.size!==n.size?!1:_uniqContentEquals(e.entries(),n.entries(),t.concat([e]),a.concat([n]));case"Set":return e.size!==n.size?!1:_uniqContentEquals(e.values(),n.values(),t.concat([e]),a.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=keys(e);if(s.length!==keys(n).length)return!1;var i=t.concat([e]),l=a.concat([n]);for(o=s.length-1;o>=0;){var u=s[o];if(!(_has(u,n)&&_equals(n[u],e[u],i,l)))return!1;o-=1}return!0}var equals=_curry2(function(n,t){return _equals(n,t,[],[])});function _indexOf(e,n,t){var a,r;if(typeof e.indexOf=="function")switch(typeof n){case"number":if(n===0){for(a=1/n;t<e.length;){if(r=e[t],r===0&&1/r===a)return t;t+=1}return-1}else if(n!==n){for(;t<e.length;){if(r=e[t],typeof r=="number"&&r!==r)return t;t+=1}return-1}return e.indexOf(n,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(n,t);case"object":if(n===null)return e.indexOf(n,t)}for(;t<e.length;){if(equals(e[t],n))return t;t+=1}return-1}function _includes(e,n){return _indexOf(n,e,0)>=0}function _quote(e){var n=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+n.replace(/"/g,'\\"')+'"'}var pad=function(n){return(n<10?"0":"")+n},_toISOString=typeof Date.prototype.toISOString=="function"?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+pad(n.getUTCMonth()+1)+"-"+pad(n.getUTCDate())+"T"+pad(n.getUTCHours())+":"+pad(n.getUTCMinutes())+":"+pad(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,n){for(var t=0,a=n.length,r=[];t<a;)e(n[t])&&(r[r.length]=n[t]),t+=1;return r}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},e}(),_xfilter=_curry2(function(n,t){return new XFilter(n,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,n){return _isObject(n)?_reduce(function(t,a){return e(n[a])&&(t[a]=n[a]),t},{},keys(n)):_filter(e,n)})),reject=_curry2(function(n,t){return filter$1(_complement(n),t)});function _toString(e,n){var t=function(s){var i=n.concat([e]);return _includes(s,i)?"<Circular>":_toString(s,i)},a=function(o,s){return _map(function(i){return _quote(i)+": "+t(o[i])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(t,e).join(", ")+"))";case"[object Array]":return"["+_map(t,e).concat(a(e,reject(function(o){return/^\d+$/.test(o)},keys(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):_quote(_toISOString(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+t(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var r=e.toString();if(r!=="[object Object]")return r}return"{"+a(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(n){return _toString(n,[])}),curry=_curry1(function(n){return curryN(n.length,n)}),curry$1=curry,invoker=_curry2(function(n,t){return curryN(n+1,function(){var a=arguments[n];if(a!=null&&_isFunction(a[t]))return a[t].apply(a,Array.prototype.slice.call(arguments,0,n));throw new TypeError(toString(a)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(n,t){return t instanceof n||t!=null&&(t.constructor===n||n.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(n,t,a){var r={},o;for(o in t)_has(o,t)&&(r[o]=_has(o,a)?n(o,t[o],a[o]):t[o]);for(o in a)_has(o,a)&&!_has(o,r)&&(r[o]=a[o]);return r}),mergeDeepWithKey=_curry3(function e(n,t,a){return mergeWithKey(function(r,o,s){return _isObject(o)&&_isObject(s)?e(n,o,s):n(r,o,s)},t,a)}),mergeDeepLeft=_curry2(function(n,t){return mergeDeepWithKey(function(a,r,o){return r},n,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(n,t){for(var a={},r={},o=0,s=n.length;o<s;)r[n[o]]=1,o+=1;for(var i in t)r.hasOwnProperty(i)||(a[i]=t[i]);return a}),omit$1=omit,pickBy=_curry2(function(n,t){var a={};for(var r in t)n(t[r],r,t)&&(a[r]=t[r]);return a}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(n,t){for(var a=0,r=Math.min(n.length,t.length),o={};a<r;)o[n[a]]=t[a],a+=1;return o}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,n)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",n).filter(t=>t!==""):map$2(prop$1(e),n)),mapKeys=(e,n)=>zipObj$1(map$2(e,keys(n)),values$1(n)),kebabize=e=>e.split("").map((n,t)=>n.toUpperCase()===n?`${t!==0?"-":""}${n.toLowerCase()}`:n).join("");function ascending$1(e,n){return e==null||n==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function descending$1(e,n){return e==null||n==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function bisector(e){let n,t,a;e.length!==2?(n=ascending$1,t=(i,l)=>ascending$1(e(i),l),a=(i,l)=>e(i)-l):(n=e===ascending$1||e===descending$1?e:zero$1,t=e,a=e);function r(i,l,u=0,c=i.length){if(u<c){if(n(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<0?u=d+1:c=d}while(u<c)}return u}function o(i,l,u=0,c=i.length){if(u<c){if(n(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<=0?u=d+1:c=d}while(u<c)}return u}function s(i,l,u=0,c=i.length){const d=r(i,l,u,c-1);return d>u&&a(i[d-1],l)>-a(i[d],l)?d-1:d}return{left:r,center:s,right:o}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(e,n){let t,a;for(const r of e)r!=null&&(t===void 0?r>=r&&(t=a=r):(t>r&&(t=r),a<r&&(a=r)));return[t,a]}class InternMap extends Map{constructor(n,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[a,r]of n)this.set(a,r)}get(n){return super.get(intern_get(this,n))}has(n){return super.has(intern_get(this,n))}set(n,t){return super.set(intern_set(this,n),t)}delete(n){return super.delete(intern_delete(this,n))}}function intern_get({_intern:e,_key:n},t){const a=n(t);return e.has(a)?e.get(a):t}function intern_set({_intern:e,_key:n},t){const a=n(t);return e.has(a)?e.get(a):(e.set(a,t),t)}function intern_delete({_intern:e,_key:n},t){const a=n(t);return e.has(a)&&(t=e.get(a),e.delete(a)),t}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,n,t){const a=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(a)),o=a/Math.pow(10,r),s=o>=e10?10:o>=e5?5:o>=e2?2:1;let i,l,u;return r<0?(u=Math.pow(10,-r)/s,i=Math.round(e*u),l=Math.round(n*u),i/u<e&&++i,l/u>n&&--l,u=-u):(u=Math.pow(10,r)*s,i=Math.round(e/u),l=Math.round(n/u),i*u<e&&++i,l*u>n&&--l),l<i&&.5<=t&&t<2?tickSpec(e,n,t*2):[i,l,u]}function ticks(e,n,t){if(n=+n,e=+e,t=+t,!(t>0))return[];if(e===n)return[e];const a=n<e,[r,o,s]=a?tickSpec(n,e,t):tickSpec(e,n,t);if(!(o>=r))return[];const i=o-r+1,l=new Array(i);if(a)if(s<0)for(let u=0;u<i;++u)l[u]=(o-u)/-s;else for(let u=0;u<i;++u)l[u]=(o-u)*s;else if(s<0)for(let u=0;u<i;++u)l[u]=(r+u)/-s;else for(let u=0;u<i;++u)l[u]=(r+u)*s;return l}function tickIncrement(e,n,t){return n=+n,e=+e,t=+t,tickSpec(e,n,t)[2]}function tickStep(e,n,t){n=+n,e=+e,t=+t;const a=n<e,r=a?tickIncrement(n,e,t):tickIncrement(e,n,t);return(a?-1:1)*(r<0?1/-r:r)}function max$1(e,n){let t;if(n===void 0)for(const a of e)a!=null&&(t<a||t===void 0&&a>=a)&&(t=a);else{let a=-1;for(let r of e)(r=n(r,++a,e))!=null&&(t<r||t===void 0&&r>=r)&&(t=r)}return t}function min$1(e,n){let t;if(n===void 0)for(const a of e)a!=null&&(t>a||t===void 0&&a>=a)&&(t=a);else{let a=-1;for(let r of e)(r=n(r,++a,e))!=null&&(t>r||t===void 0&&r>=r)&&(t=r)}return t}function range(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var a=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,o=new Array(r);++a<r;)o[a]=e+a*t;return o}function initRange(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}function initInterpolator(e,n){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,n=[],t=[],a=implicit;function r(o){let s=e.get(o);if(s===void 0){if(a!==implicit)return a;e.set(o,s=n.push(o)-1)}return t[s%t.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],e=new InternMap;for(const s of o)e.has(s)||e.set(s,n.push(s)-1);return r},r.range=function(o){return arguments.length?(t=Array.from(o),r):t.slice()},r.unknown=function(o){return arguments.length?(a=o,r):a},r.copy=function(){return ordinal(n,t).unknown(a)},initRange.apply(r,arguments),r}function band(){var e=ordinal().unknown(void 0),n=e.domain,t=e.range,a=0,r=1,o,s,i=!1,l=0,u=0,c=.5;delete e.unknown;function d(){var f=n().length,v=r<a,p=v?r:a,h=v?a:r;o=(h-p)/Math.max(1,f-l+u*2),i&&(o=Math.floor(o)),p+=(h-p-o*(f-l))*c,s=o*(1-l),i&&(p=Math.round(p),s=Math.round(s));var g=range(f).map(function(m){return p+o*m});return t(v?g.reverse():g)}return e.domain=function(f){return arguments.length?(n(f),d()):n()},e.range=function(f){return arguments.length?([a,r]=f,a=+a,r=+r,d()):[a,r]},e.rangeRound=function(f){return[a,r]=f,a=+a,r=+r,i=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(i=!!f,d()):i},e.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),d()):c},e.copy=function(){return band(n(),[a,r]).round(i).paddingInner(l).paddingOuter(u).align(c)},initRange.apply(d(),arguments)}function define(e,n,t){e.prototype=n.prototype=t,t.constructor=e}function extend(e,n){var t=Object.create(e.prototype);for(var a in n)t[a]=n[a];return t}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var n,t;return e=(e+"").trim().toLowerCase(),(n=reHex.exec(e))?(t=n[1].length,n=parseInt(n[1],16),t===6?rgbn(n):t===3?new Rgb(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?rgba(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?rgba(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=reRgbInteger.exec(e))?new Rgb(n[1],n[2],n[3],1):(n=reRgbPercent.exec(e))?new Rgb(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=reRgbaInteger.exec(e))?rgba(n[1],n[2],n[3],n[4]):(n=reRgbaPercent.exec(e))?rgba(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=reHslPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,1):(n=reHslaPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,n[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,n,t,a){return a<=0&&(e=n=t=NaN),new Rgb(e,n,t,a)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,n,t,a){return arguments.length===1?rgbConvert(e):new Rgb(e,n,t,a??1)}function Rgb(e,n,t,a){this.r=+e,this.g=+n,this.b=+t,this.opacity=+a}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,n,t,a){return a<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new Hsl(e,n,t,a)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var n=e.r/255,t=e.g/255,a=e.b/255,r=Math.min(n,t,a),o=Math.max(n,t,a),s=NaN,i=o-r,l=(o+r)/2;return i?(n===o?s=(t-a)/i+(t<a)*6:t===o?s=(a-n)/i+2:s=(n-t)/i+4,i/=l<.5?o+r:2-o-r,s*=60):i=l>0&&l<1?0:s,new Hsl(s,i,l,e.opacity)}function hsl(e,n,t,a){return arguments.length===1?hslConvert(e):new Hsl(e,n,t,a??1)}function Hsl(e,n,t,a){this.h=+e,this.s=+n,this.l=+t,this.opacity=+a}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*n,r=2*t-a;return new Rgb(hsl2rgb(e>=240?e-240:e+120,r,a),hsl2rgb(e,r,a),hsl2rgb(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl)return hcl2lab(e);e instanceof Rgb||(e=rgbConvert(e));var n=rgb2lrgb(e.r),t=rgb2lrgb(e.g),a=rgb2lrgb(e.b),r=xyz2lab((.2225045*n+.7168786*t+.0606169*a)/Yn),o,s;return n===t&&t===a?o=s=r:(o=xyz2lab((.4360747*n+.3850649*t+.1430804*a)/Xn),s=xyz2lab((.0139322*n+.0971045*t+.7141733*a)/Zn)),new Lab(116*r-16,500*(o-r),200*(r-s),e.opacity)}function lab(e,n,t,a){return arguments.length===1?labConvert(e):new Lab(e,n,t,a??1)}function Lab(e,n,t,a){this.l=+e,this.a=+n,this.b=+t,this.opacity=+a}define(Lab,lab,extend(Color,{brighter(e){return new Lab(this.l+K*(e??1),this.a,this.b,this.opacity)},darker(e){return new Lab(this.l-K*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return n=Xn*lab2xyz(n),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*n-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*n+1.9161415*e+.033454*t),lrgb2rgb(.0719453*n-.2289914*e+1.4052427*t),this.opacity)}}));function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0}function lab2xyz(e){return e>t1?e*e*e:t2*(e-t0)}function lrgb2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);if(e instanceof Lab||(e=labConvert(e)),e.a===0&&e.b===0)return new Hcl(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var n=Math.atan2(e.b,e.a)*degrees;return new Hcl(n<0?n+360:n,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,n,t,a){return arguments.length===1?hclConvert(e):new Hcl(e,n,t,a??1)}function Hcl(e,n,t,a){this.h=+e,this.c=+n,this.l=+t,this.opacity=+a}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var n=e.h*radians;return new Lab(e.l,Math.cos(n)*e.c,Math.sin(n)*e.c,e.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(e){return new Hcl(this.h,this.c,this.l+K*(e??1),this.opacity)},darker(e){return new Hcl(this.h,this.c,this.l-K*(e??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=e=>()=>e;function linear$1(e,n){return function(t){return e+t*n}}function exponential(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(a){return Math.pow(e+a*n,t)}}function hue(e,n){var t=n-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?n:e)}function gamma(e){return(e=+e)==1?nogamma:function(n,t){return t-n?exponential(n,t,e):constant$3(isNaN(n)?t:n)}}function nogamma(e,n){var t=n-e;return t?linear$1(e,t):constant$3(isNaN(e)?n:e)}var rgb=function e(n){var t=gamma(n);function a(r,o){var s=t((r=rgb$1(r)).r,(o=rgb$1(o)).r),i=t(r.g,o.g),l=t(r.b,o.b),u=nogamma(r.opacity,o.opacity);return function(c){return r.r=s(c),r.g=i(c),r.b=l(c),r.opacity=u(c),r+""}}return a.gamma=e,a}(1);function numberArray(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,a=n.slice(),r;return function(o){for(r=0;r<t;++r)a[r]=e[r]*(1-o)+n[r]*o;return a}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,n){var t=n?n.length:0,a=e?Math.min(t,e.length):0,r=new Array(a),o=new Array(t),s;for(s=0;s<a;++s)r[s]=interpolate(e[s],n[s]);for(;s<t;++s)o[s]=n[s];return function(i){for(s=0;s<a;++s)o[s]=r[s](i);return o}}function date(e,n){var t=new Date;return e=+e,n=+n,function(a){return t.setTime(e*(1-a)+n*a),t}}function interpolateNumber(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function object(e,n){var t={},a={},r;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!="object")&&(n={});for(r in n)r in e?t[r]=interpolate(e[r],n[r]):a[r]=n[r];return function(o){for(r in t)a[r]=t[r](o);return a}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(n){return e(n)+""}}function string$1(e,n){var t=reA.lastIndex=reB.lastIndex=0,a,r,o,s=-1,i=[],l=[];for(e=e+"",n=n+"";(a=reA.exec(e))&&(r=reB.exec(n));)(o=r.index)>t&&(o=n.slice(t,o),i[s]?i[s]+=o:i[++s]=o),(a=a[0])===(r=r[0])?i[s]?i[s]+=r:i[++s]=r:(i[++s]=null,l.push({i:s,x:interpolateNumber(a,r)})),t=reB.lastIndex;return t<n.length&&(o=n.slice(t),i[s]?i[s]+=o:i[++s]=o),i.length<2?l[0]?one(l[0].x):zero(n):(n=l.length,function(u){for(var c=0,d;c<n;++c)i[(d=l[c]).i]=d.x(u);return i.join("")})}function interpolate(e,n){var t=typeof n,a;return n==null||t==="boolean"?constant$3(n):(t==="number"?interpolateNumber:t==="string"?(a=color(n))?(n=a,rgb):string$1:n instanceof color?rgb:n instanceof Date?date:isNumberArray(n)?numberArray:Array.isArray(n)?genericArray:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?object:interpolateNumber)(e,n)}function interpolateRound(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}function hcl(e){return function(n,t){var a=e((n=hcl$1(n)).h,(t=hcl$1(t)).h),r=nogamma(n.c,t.c),o=nogamma(n.l,t.l),s=nogamma(n.opacity,t.opacity);return function(i){return n.h=a(i),n.c=r(i),n.l=o(i),n.opacity=s(i),n+""}}}var interpolateHcl=hcl(hue);function constants$2(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$3(e){return e}function normalize$1(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:constants$2(isNaN(n)?NaN:.5)}function clamper(e,n){var t;return e>n&&(t=e,e=n,n=t),function(a){return Math.max(e,Math.min(n,a))}}function bimap(e,n,t){var a=e[0],r=e[1],o=n[0],s=n[1];return r<a?(a=normalize$1(r,a),o=t(s,o)):(a=normalize$1(a,r),o=t(o,s)),function(i){return o(a(i))}}function polymap(e,n,t){var a=Math.min(e.length,n.length)-1,r=new Array(a),o=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++s<a;)r[s]=normalize$1(e[s],e[s+1]),o[s]=t(n[s],n[s+1]);return function(i){var l=bisectRight(e,i,1,a)-1;return o[l](r[l](i))}}function copy$1(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,n=unit,t=interpolate,a,r,o,s=identity$3,i,l,u;function c(){var f=Math.min(e.length,n.length);return s!==identity$3&&(s=clamper(e[0],e[f-1])),i=f>2?polymap:bimap,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=i(e.map(a),n,t)))(a(s(f)))}return d.invert=function(f){return s(r((u||(u=i(n,e.map(a),interpolateNumber)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,number$1),c()):e.slice()},d.range=function(f){return arguments.length?(n=Array.from(f),c()):n.slice()},d.rangeRound=function(f){return n=Array.from(f),t=interpolateRound,c()},d.clamp=function(f){return arguments.length?(s=f?!0:identity$3,c()):s!==identity$3},d.interpolate=function(f){return arguments.length?(t=f,c()):t},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,v){return a=f,r=v,c()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,n){if((t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"))<0)return null;var t,a=e.slice(0,t);return[a.length>1?a[0]+a.slice(2):a,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,n){return function(t,a){for(var r=t.length,o=[],s=0,i=e[0],l=0;r>0&&i>0&&(l+i+1>a&&(i=Math.max(1,a-l)),o.push(t.substring(r-=i,r+i)),!((l+=i+1)>a));)i=e[s=(s+1)%e.length];return o.reverse().join(n)}}function formatNumerals(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(n=re.exec(e)))throw new Error("invalid format: "+e);var n;return new FormatSpecifier({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var n=e.length,t=1,a=-1,r;t<n;++t)switch(e[t]){case".":a=r=t;break;case"0":a===0&&(a=t),r=t;break;default:if(!+e[t])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(r+1):e}var prefixExponent;function formatPrefixAuto(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var a=t[0],r=t[1],o=r-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=a.length;return o===s?a:o>s?a+new Array(o-s+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+formatDecimalParts(e,Math.max(0,n+o-1))[0]}function formatRounded(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var a=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}var formatTypes={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>formatRounded(e*100,n),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$2(e){return e}var map$3=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(e){var n=e.grouping===void 0||e.thousands===void 0?identity$2:formatGroup(map$3.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?identity$2:formatNumerals(map$3.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=formatSpecifier(d);var f=d.fill,v=d.align,p=d.sign,h=d.symbol,g=d.zero,m=d.width,_=d.comma,b=d.precision,S=d.trim,k=d.type;k==="n"?(_=!0,k="g"):formatTypes[k]||(b===void 0&&(b=12),S=!0,k="g"),(g||f==="0"&&v==="=")&&(g=!0,f="0",v="=");var V=h==="$"?t:h==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",L=h==="$"?a:/[%p]/.test(k)?s:"",$=formatTypes[k],A=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function F(P){var q=V,M=L,j,Q,J;if(k==="c")M=$(P)+M,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?l:$(Math.abs(P),b),S&&(P=formatTrim(P)),W&&+P==0&&p!=="+"&&(W=!1),q=(W?p==="("?p:i:p==="-"||p==="("?"":p)+q,M=(k==="s"?prefixes[8+prefixExponent/3]:"")+M+(W&&p==="("?")":""),A){for(j=-1,Q=P.length;++j<Q;)if(J=P.charCodeAt(j),48>J||J>57){M=(J===46?r+P.slice(j+1):P.slice(j))+M,P=P.slice(0,j);break}}}_&&!g&&(P=n(P,1/0));var C=q.length+P.length+M.length,E=C<m?new Array(m-C+1).join(f):"";switch(_&&g&&(P=n(E+P,E.length?m-M.length:1/0),E=""),v){case"<":P=q+P+M+E;break;case"=":P=q+E+P+M;break;case"^":P=E.slice(0,C=E.length>>1)+q+P+M+E.slice(C);break;default:P=E+q+P+M;break}return o(P)}return F.toString=function(){return d+""},F}function c(d,f){var v=u((d=formatSpecifier(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(exponent(f)/3)))*3,h=Math.pow(10,-p),g=prefixes[8+p/3];return function(m){return v(h*m)+g}}return{format:u,formatPrefix:c}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(e){return locale=formatLocale(e),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(n)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,exponent(n)-exponent(e))+1}function tickFormat(e,n,t,a){var r=tickStep(e,n,t),o;switch(a=formatSpecifier(a??",f"),a.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(n));return a.precision==null&&!isNaN(o=precisionPrefix(r,s))&&(a.precision=o),formatPrefix(a,s)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=precisionRound(r,Math.max(Math.abs(e),Math.abs(n))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=precisionFixed(r))&&(a.precision=o-(a.type==="%")*2);break}}return format(a)}function linearish(e){var n=e.domain;return e.ticks=function(t){var a=n();return ticks(a[0],a[a.length-1],t??10)},e.tickFormat=function(t,a){var r=n();return tickFormat(r[0],r[r.length-1],t??10,a)},e.nice=function(t){t==null&&(t=10);var a=n(),r=0,o=a.length-1,s=a[r],i=a[o],l,u,c=10;for(i<s&&(u=s,s=i,i=u,u=r,r=o,o=u);c-- >0;){if(u=tickIncrement(s,i,t),u===l)return a[r]=s,a[o]=i,n(a);if(u>0)s=Math.floor(s/u)*u,i=Math.ceil(i/u)*u;else if(u<0)s=Math.ceil(s*u)/u,i=Math.floor(i*u)/u;else break;l=u}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function transformer(){var e=0,n=1,t,a,r,o,s=identity$3,i=!1,l;function u(d){return d==null||isNaN(d=+d)?l:s(r===0?.5:(d=(o(d)-t)*r,i?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,n]=d,t=o(e=+e),a=o(n=+n),r=t===a?0:1/(a-t),u):[e,n]},u.clamp=function(d){return arguments.length?(i=!!d,u):i},u.interpolator=function(d){return arguments.length?(s=d,u):s};function c(d){return function(f){var v,p;return arguments.length?([v,p]=f,s=d(v,p),u):[s(0),s(1)]}}return u.range=c(interpolate),u.rangeRound=c(interpolateRound),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return o=d,t=d(e),a=d(n),r=t===a?0:1/(a-t),u}}function copy(e,n){return n.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer()(identity$3));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}class Scale{constructor(e){this.config=e,this.createScale(e.type)}createScale(e){switch(e){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(e){this.createScale(e.type),this.config=e}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(e){this.scale=this.scale.copy().range(e)}updateDomain(e,n,t){const a=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,n,t);this.scale=this.scale.copy().domain(a)}map(e){return e.map(n=>this.mapOne(n))}mapOne(e){const{type:n}=this.config;return n==="band"?this.scale(e)+this.scale.bandwidth()/2:this.scale(e)}ticks(){const{type:e}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:e==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(e,n){const t=n.reduce((a,r)=>a.concat(getCol(r,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,n)=>e.concat(getCol(n,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,n=>max$1(n)))||0,valueMin=min$1(stackedData,e=>min$1(e,n=>min$1(n)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),LoadingSpinner=require("./LoadingSpinner-C4HeCKwT.js"),pinia=require("pinia");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const _sfc_main$2t={name:"VsAccordion",status:"prototype",release:"0.0.1",provide(){return{breakPoint:this.breakPoint}},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1W={class:"vs-accordion","data-test":"vs-accordion"};function _sfc_render$29(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1W,[vue.renderSlot(e.$slots,"default")])}const VsAccordion=LoadingSpinner._export_sfc(_sfc_main$2t,[["render",_sfc_render$29]]),_sfc_main$2s={name:"VsAccordionToggle",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},props:{variant:{type:String,default:"primary"},visible:{type:Boolean,default:!0}},emits:["toggle-panel"],methods:{triggerToggle(){this.$emit("toggle-panel")}}},_hoisted_1$1V={class:"vs-accordion-toggle__text"},_hoisted_2$1p={class:"vs-accordion-toggle__icon"};function _sfc_render$28(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{animate:!1,"aria-expanded":t.visible?"true":"false","aria-haspopup":"true",onClick:o.triggerToggle,class:vue.normalizeClass(["vs-accordion-toggle clearfix",t.visible?"vs-accordion-toggle--open":""]),variant:t.variant,rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$1V,[vue.renderSlot(e.$slots,"default")]),vue.createElementVNode("span",_hoisted_2$1p,[t.visible?vue.renderSlot(e.$slots,"icon-open",{key:0}):vue.renderSlot(e.$slots,"icon-closed",{key:1})])]),_:3},8,["aria-expanded","onClick","class","variant"])}const VsAccordionToggle=LoadingSpinner._export_sfc(_sfc_main$2s,[["render",_sfc_render$28]]),_sfc_main$2r={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle,BCard:LoadingSpinner.rn,VsIcon:LoadingSpinner.VsIcon,BCardHeader:LoadingSpinner.an,BCardBody:LoadingSpinner.nn,VsHeading:LoadingSpinner.VsHeading},mixins:[LoadingSpinner.dataLayerMixin],inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},itemBreakPoint:{type:String,default(){return vue.inject("breakPoint","lg")},validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"subtle"}},data(){return{show:this.openByDefault}},computed:{toggleAccordionBtn(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-none":`d-${this.itemBreakPoint}-none`:"d-flex"},toggleResponsiveItem(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-block":`d-${this.itemBreakPoint}-block`:""}},methods:{onButtonClick(){this.show||this.createDataLayerObject("accordionOpenEvent",{accordion_text:this.$refs["accordion-toggle"].$el.innerText}),this.show=!this.show}}};function _sfc_render$27(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionToggle"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("BCardHeader"),c=vue.resolveComponent("BCardBody"),d=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(d,{"no-body":"",class:vue.normalizeClass(["vs-accordion-item",o.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:vue.withCtx(()=>[vue.createVNode(u,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:vue.withCtx(()=>[vue.createVNode(i,{"aria-controls":t.controlId,visible:r.show,variant:t.variant,class:vue.normalizeClass(o.toggleAccordionBtn),onTogglePanel:o.onButtonClick,ref:"accordion-toggle"},{"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open",{},()=>[vue.createVNode(s,{icon:"vs-icon-control-collapse",size:"sm"})])]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed",{},()=>[vue.createVNode(s,{icon:"vs-icon-control-expand",size:"sm"})])]),default:vue.withCtx(()=>[t.colourBadge?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:vue.normalizeStyle(`background-color: ${t.colourBadge}`)},null,4)):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"title")]),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),vue.createVNode(l,{level:t.headingLevel,"heading-style":"heading-xxs",class:vue.normalizeClass(["d-none vs-accordion-item__title",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3},8,["level","class"])]),_:3}),vue.withDirectives(vue.createVNode(c,{id:t.controlId,class:vue.normalizeClass(["vs-accordion-item__panel",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["id","class"]),[[vue.vShow,r.show]])]),_:3},8,["class"])}const VsAccordionItem=LoadingSpinner._export_sfc(_sfc_main$2r,[["render",_sfc_render$27]]),_sfc_main$2q={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon:LoadingSpinner.VsIcon}},_hoisted_1$1U={class:"vs-address","data-test":"vs-address"},_hoisted_2$1o={class:"vs-address__address-box"};function _sfc_render$26(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1U,[vue.createVNode(s,{icon:"fa-regular fa-location-dot",class:"vs-address__map-marker me-050"}),vue.createElementVNode("address",_hoisted_2$1o,[vue.renderSlot(e.$slots,"default")])])}const Address=LoadingSpinner._export_sfc(_sfc_main$2q,[["render",_sfc_render$26]]),_sfc_main$2p={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon:LoadingSpinner.VsIcon}},_hoisted_1$1T={class:"vs-alert","data-test":"vs-alert"},_hoisted_2$1n={class:"vs-alert__icon-holder"},_hoisted_3$17={class:"vs-alert__content-wrapper"},_hoisted_4$R={class:"vs-alert__content"};function _sfc_render$25(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1T,[vue.createElementVNode("div",_hoisted_2$1n,[vue.createVNode(s,{class:"vs-alert__icon",icon:"vs-icon-feedback-information",variant:"inverse"})]),vue.createElementVNode("div",_hoisted_3$17,[vue.createElementVNode("div",_hoisted_4$R,[vue.renderSlot(e.$slots,"default")])])])}const Alert=LoadingSpinner._export_sfc(_sfc_main$2p,[["render",_sfc_render$25]]),_sfc_main$2o={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)}}},_hoisted_1$1S=["id"],_hoisted_2$1m={class:"vs-article__content"};function _sfc_render$24(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("article",vue.mergeProps({class:"vs-article","data-test":"vs-article"},e.$attrs),[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:vue.normalizeClass(t.businessSupport?null:"col-xxl-10 offset-xxl-1")},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__wrapper mb-300 mb-md-500",t.businessSupport?"vs-article__wrapper--no-border":null])},[t.businessSupport?vue.createCommentVNode("",!0):vue.renderSlot(e.$slots,"vs-article-img",{key:0}),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"10","offset-md":t.businessSupport?null:"1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__header mx-md-0 mt-300 mt-lg-500",t.businessSupport?null:"mx-150"])},[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:vue.normalizeClass(["mb-200 mb-lg-300",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",{id:t.anchorLink?t.anchorLink:""},vue.toDisplayString(t.title),9,_hoisted_1$1S)]),_:1},8,["level","heading-style","class"]),e.$slots["vs-article-intro"]?(vue.openBlock(),vue.createBlock(i,{key:0,variant:"lead",class:vue.normalizeClass(["mb-300 mb-lg-400",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-intro")]),_:3},8,["class"])):vue.createCommentVNode("",!0)],2),t.businessSupport&&e.$slots["vs-article-img"]?(vue.openBlock(),vue.createBlock(l,{key:0,class:"mb-300",cols:"7"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-img")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$1m,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["offset-md"])]),_:3})],2)]),_:3},8,["class"])]),_:3})]),_:3})],16)}const Article=LoadingSpinner._export_sfc(_sfc_main$2o,[["render",_sfc_render$24]]),_sfc_main$2n={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsBody:LoadingSpinner.VsBody},props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)},businessSupport:{type:Boolean,default:!1}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"},hasSidebarSlot(){return!!this.$slots["article-sidebar"]}}};function _sfc_render$23(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-section mb-200 mb-md-400",o.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(l,null,{default:vue.withCtx(()=>[o.hasSidebarSlot?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:vue.normalizeClass(["col-xxl-4",t.sidebarAlign==="right"?"pe-md-0":"ps-md-0"]),"offset-xl":t.sidebarAlign==="right"?"1":null,"order-md":t.sidebarAlign==="right"?"2":null,order:t.businessSupport?"2":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"article-sidebar")]),_:3},8,["class","offset-xl","order-md","order"])):vue.createCommentVNode("",!0),vue.createVNode(s,{cols:"12",md:o.hasSidebarSlot?"7":"9","data-test":"vs-article-section__content","offset-xl":t.sidebarAlign==="left"?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["mx-md-0",!t.businessSupport&&"mx-150"])},[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)]),_:3},8,["md","offset-xl"])]),_:3})],2)}const ArticleSection=LoadingSpinner._export_sfc(_sfc_main$2n,[["render",_sfc_render$23]]),_sfc_main$2m={name:"VsArticleSidebar",status:"prototype",release:"0.0.1",props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-sidebar--right":"vs-article-sidebar--left"}}};function _sfc_render$22(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",o.sidebarAlignClass]),"data-test":"vs-article-sidebar"},[e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?"pb-200":"","vs-article-sidebar__img-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-img")],2)):vue.createCommentVNode("",!0),e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass([e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?"pt-0":"","vs-article-sidebar__quote-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-quote")],2)):vue.createCommentVNode("",!0)],2)}const ArticleSidebar=LoadingSpinner._export_sfc(_sfc_main$2m,[["render",_sfc_render$22]]),_hoisted_1$1R={class:"vs-back-to-top","data-test":"vs-back-to-top"},_sfc_main$2l={__name:"BackToTop",props:{buttonText:{type:String,required:!0},offset:{type:Number,default:100}},setup(e){const n=e,t=vue.ref(!1),a=()=>{const o=document.documentElement;(window.scrollY||o.scrollTop)-(o.clientTop||0)>n.offset?t.value=!0:t.value=!1},r=o=>{window.scroll({top:0,behavior:"smooth"}),o.target.blur()};return vue.onMounted(()=>{window.addEventListener("scroll",a)}),vue.onUnmounted(()=>{window.removeEventListener("scroll",a)}),(o,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1R,[t.value?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,icon:"vs-icon-control-back-to-top","icon-only":"",variant:"secondary",onClick:r},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.buttonText),1)]),_:1})):vue.createCommentVNode("",!0)]))}},_sfc_main$2k={name:"VsBadge",status:"prototype",release:"0.0.1",components:{BBadge:LoadingSpinner.ci},props:{variant:{type:String,default:"default",validator:e=>e.match(/(default|subtle|information|highlight)/)}},computed:{badgeClasses(){return[`vs-badge--${this.variant}`,"vs-badge"]}}};function _sfc_render$21(e,n,t,a,r,o){const s=vue.resolveComponent("BBadge");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.badgeClasses),"data-test":"vs-badge"},[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)}const VsBadge=LoadingSpinner._export_sfc(_sfc_main$2k,[["render",_sfc_render$21]]),cookieMixin={computed:{selectedLanguage(){return this.language.substr(0,2).toUpperCase()},localeCookie(){return this.language.replace("_","-").toLowerCase()},translationCookie(){return`/en/${this.language.substr(0,2).toLowerCase()}`}},methods:{cookieExists(e){return document.cookie.indexOf(`${e}=`)>=0},setCookie(e,n,t,a=!1){let r="";if(r=`${e}=${n};`,r+="path=/;",t&&!a){const o=new Date;o.setFullYear(o.getFullYear()+1),r+=`expires=${o};`}document.cookie=r}}},_sfc_main$2j={name:"VsBanner",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsIcon:LoadingSpinner.VsIcon},mixins:[cookieMixin],props:{closeBtnText:{type:String,required:!0},dontShowAgain:{type:Boolean,default:!0}},data(){return{showBanner:!0}},mounted(){const e=this.cookieExists("vs_showbanner");this.showBanner=!e},methods:{hideBanner(){this.showBanner=!this.showBanner,this.dontShowAgain&&this.setHiddenCookie()},setHiddenCookie(){const e=this.cookieExists("vs_showbanner");this.setCookie("vs_showbanner",this.showBanner,!e,!0)}}},_hoisted_1$1Q={key:0,class:"vs-banner","data-test":"vs-banner",role:"banner"},_hoisted_2$1l={key:0,class:"vs-banner__cta-link"};function _sfc_render$20(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return r.showBanner?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1Q,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"11",class:"vs-banner__content-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"1",class:"vs-banner__icon-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(s,{size:"sm",icon:"vs-icon-feedback-warning",class:"vs-banner__icon"})]),_:1}),vue.createVNode(i,{cols:"11"},{default:vue.withCtx(()=>[e.$slots["banner-text"]||e.$slots["banner-cta"]?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-banner__text"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"banner-text"),e.$slots["banner-cta"]?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$1l,[vue.renderSlot(e.$slots,"banner-cta")])):vue.createCommentVNode("",!0)]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(i,{cols:"1"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-banner__close-btn","data-test":"vs-banner__close-btn",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:o.hideBanner},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1})]),_:3})]),_:3})])):vue.createCommentVNode("",!0)}const Banner=LoadingSpinner._export_sfc(_sfc_main$2j,[["render",_sfc_render$20]]),_sfc_main$2i={name:"VsArticleDetails",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{articleAuthor:{type:String,default:null},articlePublishDate:{type:String,default:null},articleReadTime:{type:String,default:null}},computed:{iconVariant(){return this.articleAuthor?"secondary":"highlight"}}},_hoisted_1$1P={key:0,class:"vs-article-details","data-test":"vs-article-details"},_hoisted_2$1k={key:0,class:"vs-article-details__author vs-article-details--highlight"},_hoisted_3$16={key:1,class:"vs-article-details__date"},_hoisted_4$Q={key:0,class:"vs-article-details__divider"};function _sfc_render$1$(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return t.articleAuthor||t.articleReadTime||t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1P,[t.articleAuthor?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1k,vue.toDisplayString(t.articleAuthor),1)):vue.createCommentVNode("",!0),t.articleReadTime||t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("div",{key:1,"data-test":"vs-article-details__date-time",class:vue.normalizeClass([t.articleAuthor?"":"vs-article-details--highlight","mb-150"])},[t.articleReadTime?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(s,{icon:"fa-regular fa-clock",variant:o.iconVariant,class:"align-text-top me-050"},null,8,["variant"]),vue.createTextVNode(vue.toDisplayString(t.articleReadTime),1)],64)):vue.createCommentVNode("",!0),t.articlePublishDate?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$16,[t.articleReadTime?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$Q,"•")):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(t.articlePublishDate),1)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)}const ArticleDetails=LoadingSpinner._export_sfc(_sfc_main$2i,[["render",_sfc_render$1$]]),_sfc_main$2h={name:"VsBreadcrumb",status:"prototype",release:"0.0.1",components:{BBreadcrumb:LoadingSpinner.pi}},_hoisted_1$1O={"aria-label":"breadcrumbs",class:"vs-breadcrumb py-050"};function _sfc_render$1_(e,n,t,a,r,o){const s=vue.resolveComponent("BBreadcrumb");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$1O,[vue.createVNode(s,vue.mergeProps({class:"flex-nowrap p-0 mb-0"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)])}const Breadcrumb=LoadingSpinner._export_sfc(_sfc_main$2h,[["render",_sfc_render$1_]]),_sfc_main$2g={name:"VsBreadcrumbItem",status:"prototype",release:"0.0.1",components:{BBreadcrumbItem:LoadingSpinner.en},props:{href:{type:String,default:""},active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"page"},text:{type:String,default:"",required:!0}}};function _sfc_render$1Z(e,n,t,a,r,o){const s=vue.resolveComponent("BBreadcrumbItem");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({class:"vs-breadcrumb-item",active:t.active,"aria-current":t.ariaCurrent,href:t.href,text:t.text},e.$attrs),null,16,["active","aria-current","href","text"])}const BreadcrumbItem=LoadingSpinner._export_sfc(_sfc_main$2g,[["render",_sfc_render$1Z]]);let currentURL="";typeof window<"u"&&(currentURL=window.location.href);const dmoAnalyticsLogic=e=>{let n=!1;const t=()=>!!currentURL.includes("/info"),a=o=>t()?{dmo_referral:o}:{type:"CMS referral",product:"Unclassified",dmo_referral:o};return(()=>{let o={};return e.srcElement.localName==="a"&&LoadingSpinner.dmoUrls.forEach(s=>{e.target.href.includes(s)&&(n=!0,o=a("True"))}),n||(o=a("False")),o})()},_sfc_main$2f={name:"VsLink",status:"prototype",release:"0.0.2",components:{VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|on-dark)/)},iconSize:{type:String,default:"xxs",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},disabled:{type:Boolean,default:!1},dataLayerValue:{type:String,default:null}},computed:{variantClass(){return`vs-link--variant-${this.variant}`},iconName(){let e="";switch(this.type){case"external":e="fa-regular fa-square-arrow-up-right";break;case"internal":e="fa-regular fa-arrow-right";break;case"download":e="vs-icon-control-download";break;default:e=""}return e},iconVariant(){let e="";switch(this.variant){case"secondary":e="primary";break;case"on-dark":e="inverse";break;default:e="cta"}return e}},methods:{clickHandler(e){e.preventDefault(),this.dataLayerValue?this.createDataLayerObject(this.dataLayerValue,e,this.href):this.type==="external"?(this.createDataLayerObject("cmsReferral",{referral_location:e.target.href,dmo_referral:dmoAnalyticsLogic(e).dmo_referral}),this.createDataLayerObject("externalLinkDataEvent",e,this.href)):this.createDataLayerObject("internalLinkDataEvent",e,this.href),setTimeout(()=>{this.navigateToUrl()},500)},navigateToUrl(){this.href!=="#"&&this.href!==null&&(window.location.href=this.href)},keyHandler(e){(e.keyCode===13||e.keyCode===32)&&(e.preventDefault(),this.clickHandler(e))}}},_hoisted_1$1N=["href","download","disabled","tabindex"];function _sfc_render$1Y(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("a",vue.mergeProps({class:["vs-link",[`vs-link--variant-${t.variant}`]],href:t.href,target:"_self",download:t.type==="download"?"true":null,disabled:t.disabled,tabindex:t.disabled?"-1":"0"},e.$attrs,{onClick:n[0]||(n[0]=i=>o.clickHandler(i)),onKeydown:n[1]||(n[1]=i=>o.keyHandler(i))}),[vue.renderSlot(e.$slots,"default"),t.type!=="default"?(vue.openBlock(),vue.createBlock(s,{key:0,icon:o.iconName,variant:o.iconVariant,size:t.iconSize,class:"ms-025 vs-link__icon"},null,8,["icon","variant","size"])):vue.createCommentVNode("",!0)],16,_hoisted_1$1N)}const VsLink=LoadingSpinner._export_sfc(_sfc_main$2f,[["render",_sfc_render$1Y]]),_sfc_main$2e={name:"VsCannedSearchProductCard",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsHeading:LoadingSpinner.VsHeading,VsLink,VsCol:LoadingSpinner.VsCol},inject:["slideCols","visibleSlides"],provide(){return{slideVisible:this.isVisible}},props:{searchType:{type:String,default:""},imgSrc:{required:!0,type:String},title:{required:!0,type:String},inBodyDuration:{type:Object,default:null},description:{type:String,default:""},detailLink:{type:Object,required:!0},slideIndex:{type:String,required:!0}},computed:{modCardBody(){return this.searchType==="even"||this.searchType==="cate"?"card-body--short":""},useGenericLqip(){return this.searchType==="tour"}},methods:{isVisible(){const e=parseInt(this.slideIndex,10);return this.visibleSlides.indexOf(e)>=0}}},_hoisted_1$1M={class:"vs-product-card__image-container"},_hoisted_2$1j={class:"vs-product-card__image-inner-container"},_hoisted_3$15={class:"vs-product-card__description"},_hoisted_4$P={key:0,class:"vs-product-card__description-inner"},_hoisted_5$z={class:"visually-hidden"},_hoisted_6$o={class:"vs-product-card__logos-container","data-chromatic":"ignore"};function _sfc_render$1X(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(u,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,class:"vs-carousel-slide__card","aria-disabled":!o.isVisible()},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-product-card",o.isVisible()?"":"vs-product-card--disabled"]),"data-test":"vs-product-card"},[vue.createElementVNode("section",vue.mergeProps({class:"card"},e.$attrs),[vue.createElementVNode("div",_hoisted_1$1M,[vue.createElementVNode("div",_hoisted_2$1j,[vue.createVNode(s,{src:t.imgSrc,alt:"",sizes:"(min-width: 768px) 50vw, 100vw","use-generic-lqip":o.useGenericLqip,class:"vs-product-card__img","data-test":"vs-product-card__img","data-chromatic":"ignore"},null,8,["src","use-generic-lqip"])]),vue.renderSlot(e.$slots,"vs-canned-search-badges")]),vue.createElementVNode("div",{class:vue.normalizeClass(["card-body",o.modCardBody])},[vue.createVNode(l,{level:"3","heading-style":"heading-xs",class:"card-title vs-product-card__title","data-test":"vs-product-card__title"},{default:vue.withCtx(()=>[vue.createVNode(i,{href:t.detailLink.link,class:"stretched-link vs-product-card__link","data-test":"vs-product-card__link",disabled:!o.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])]),_:1}),vue.renderSlot(e.$slots,"vs-canned-search-sub-heading"),vue.renderSlot(e.$slots,"vs-canned-search-star-rating"),vue.renderSlot(e.$slots,"vs-canned-search-categories"),vue.createElementVNode("div",_hoisted_3$15,[vue.renderSlot(e.$slots,"vs-canned-search-tour-info"),t.description?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$P,vue.toDisplayString(t.description),1)):vue.createCommentVNode("",!0),vue.createVNode(i,{href:t.detailLink.link,class:"vs-product-card__description-link",disabled:!o.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailLink.label)+" ",1),vue.createElementVNode("span",_hoisted_5$z,": "+vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])])],2),vue.createElementVNode("div",_hoisted_6$o,[vue.renderSlot(e.$slots,"vs-canned-search-logos")])],16),vue.renderSlot(e.$slots,"vs-canned-search-summary")],2)]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const VsCannedSearchProductCard=LoadingSpinner._export_sfc(_sfc_main$2e,[["render",_sfc_render$1X]]),_sfc_main$2d={name:"VsCannedSearchStars",status:"prototype",release:"0.0.1",props:{min:{type:Number,default:null},max:{type:Number,default:null}}},_hoisted_1$1L={class:"vs-canned-search-stars","data-test":"vs-canned-search-stars"},_hoisted_2$1i={key:0},_hoisted_3$14={key:1};function _sfc_render$1W(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[t.min&&t.max&&t.min!==t.max?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1i,[n[0]||(n[0]=vue.createElementVNode("span",{class:"vs-canned-search-stars__star"}," ★ ",-1)),vue.createTextVNode(" "+vue.toDisplayString(t.min)+"-"+vue.toDisplayString(t.max),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$14,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.min,s=>(vue.openBlock(),vue.createElementBlock("span",{key:s,class:"vs-canned-search-stars__star"}," ★ "))),128))]))])}const VsCannedSearchStars=LoadingSpinner._export_sfc(_sfc_main$2d,[["render",_sfc_render$1W]]),_sfc_main$2c={name:"VsTooltip",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},directives:{"b-tooltip":LoadingSpinner.Ed},props:{title:{type:String,default:""},position:{type:String,default:"top",validator:e=>e.match(/(top|right|left|bottom)/)}}};function _sfc_render$1V(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveDirective("b-tooltip");return vue.withDirectives((vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{class:"vs-tooltip position-relative",title:t.title}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["title"])),[[i,{placement:t.position}]])}const VsTooltip=LoadingSpinner._export_sfc(_sfc_main$2c,[["render",_sfc_render$1V]]),_sfc_main$2b={name:"VsCannedSearchLogos",status:"prototype",release:"0.0.1",components:{VsTooltip,VsImg:LoadingSpinner.VsImg},inject:["slideVisible"],props:{goodToGoLogo:{type:Object,default:null},safeTravelsLogo:{type:Object,default:null},awards:{type:Array,default:null},accessGuide:{type:Object,default:null}}},_hoisted_1$1K={class:"vs-canned-search-logos"};function _sfc_render$1U(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsTooltip");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[t.goodToGoLogo?(vue.openBlock(),vue.createBlock(i,{key:0,title:t.goodToGoLogo.name,href:"#",class:"p-0",variant:"subtle","data-test":"vs-canned-search-logos__good-to-go",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.goodToGoLogo.name,src:t.goodToGoLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),t.safeTravelsLogo?(vue.openBlock(),vue.createBlock(i,{key:1,title:t.safeTravelsLogo.name,href:"#",class:"p-0",variant:"subtle","data-test":"vs-canned-search-logos__safe-travels",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{alt:t.safeTravelsLogo.name,src:t.safeTravelsLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.awards,l=>(vue.openBlock(),vue.createBlock(i,{title:l.name,key:l.id,href:"#",class:"p-0",variant:"subtle",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:l.image,alt:l.name,class:"vs-canned-search-logos__logo","data-test":"vs-canned-search-logos__award-logo"},null,8,["src","alt"])]),_:2},1032,["title","disabled","tabindex"]))),128)),t.accessGuide?(vue.openBlock(),vue.createBlock(i,{key:2,title:t.accessGuide.name,href:"#",variant:"subtle",class:"vs-canned-search-logos__access p-0","data-test":"vs-canned-search-logos__access-guide",disabled:!o.slideVisible(),tabindex:o.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{src:t.accessGuide.image,alt:t.accessGuide.name,class:"vs-canned-search-logos__logo"},null,8,["src","alt"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0)])}const VsCannedSearchLogos=LoadingSpinner._export_sfc(_sfc_main$2b,[["render",_sfc_render$1U]]),_sfc_main$2a={name:"VsCannedSearchCategories",status:"prototype",release:"0.0.1",props:{categories:{type:Array,default:null}},computed:{transformedCategories(){return this.categories?this.categories.slice(0,3).map(e=>e.name).join(" | "):""}}},_hoisted_1$1J={class:"vs-canned-search-categories","data-test":"vs-canned-search-categories"};function _sfc_render$1T(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1J,vue.toDisplayString(o.transformedCategories),1)}const VsCannedSearchCategories=LoadingSpinner._export_sfc(_sfc_main$2a,[["render",_sfc_render$1T]]),_sfc_main$29={name:"VsCannedSearchPrice",status:"prototype",release:"0.0.1",props:{price:{type:String,default:""},priceIntro:{type:String,default:""},priceOutro:{type:String,default:""}}},_hoisted_1$1I={class:"vs-canned-search-price"},_hoisted_2$1h={key:0,class:"vs-canned-search-price__intro"},_hoisted_3$13={key:1,class:"vs-canned-search-price__main"},_hoisted_4$O={key:2,class:"vs-canned-search-price__outro"};function _sfc_render$1S(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[t.priceIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1h,vue.toDisplayString(t.priceIntro),1)):vue.createCommentVNode("",!0),t.price?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$13,vue.toDisplayString(t.price),1)):vue.createCommentVNode("",!0),t.priceOutro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$O,vue.toDisplayString(t.priceOutro),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchPrice=LoadingSpinner._export_sfc(_sfc_main$29,[["render",_sfc_render$1S]]),_sfc_main$28={name:"VsCannedSearchDuration",status:"prototype",release:"0.0.1",props:{duration:{type:String,default:""},durationIntro:{type:String,default:""}}},_hoisted_1$1H={class:"vs-canned-search-duration"},_hoisted_2$1g={key:0,class:"vs-canned-search-duration__intro"},_hoisted_3$12={key:1,class:"vs-canned-search-duration__main"};function _sfc_render$1R(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[t.durationIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1g,vue.toDisplayString(t.durationIntro),1)):vue.createCommentVNode("",!0),t.duration?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$12,vue.toDisplayString(t.duration),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchDuration=LoadingSpinner._export_sfc(_sfc_main$28,[["render",_sfc_render$1R]]),_sfc_main$27={name:"VsCannedSearchSummaryBox",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsLink},inject:["slideVisible"],props:{linkHref:{type:String,default:""},linkLabel:{type:String,default:""},linkType:{type:String,default:""},linkTitle:{type:String,default:""}}},_hoisted_1$1G=["disabled"],_hoisted_2$1f={class:"visually-hidden"};function _sfc_render$1Q(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsLink"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{class:"vs-canned-search-summary-box",disabled:!o.slideVisible()},[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-top"]&&e.$slots["vs-canned-search-summary-top"]()?(vue.openBlock(),vue.createBlock(i,{key:0},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-top")]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"row--tall"},{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-left"]&&e.$slots["vs-canned-search-summary-left"]()?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-left")]),_:3})):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-summary-centre"]&&e.$slots["vs-canned-search-summary-centre"]()?(vue.openBlock(),vue.createBlock(s,{key:1,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-centre")]),_:3})):vue.createCommentVNode("",!0),t.linkHref?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.createVNode(l,{"data-test":"vs-canned-search-summary-box__link",href:t.linkHref,type:t.linkType.toLowerCase(),disabled:!o.slideVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkLabel)+" ",1),vue.createElementVNode("span",_hoisted_2$1f,": "+vue.toDisplayString(t.linkTitle),1)]),_:1},8,["href","type","disabled"])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],8,_hoisted_1$1G)}const VsCannedSearchSummaryBox=LoadingSpinner._export_sfc(_sfc_main$27,[["render",_sfc_render$1Q]]),_sfc_main$26={name:"VsCannedSearchDates",status:"prototype",release:"0.0.1",props:{period:{type:Object,default:null},label:{type:String,default:""}},computed:{datePeriod(){return this.period&&this.period.startDay?this.period.endDay?`${this.period.startDay} - ${this.period.endDay}`:this.period.startDay:""}}},_hoisted_1$1F={class:"vs-canned-search-dates"},_hoisted_2$1e={class:"vs-canned-search-dates__intro"},_hoisted_3$11={class:"vs-canned-search-dates__main"};function _sfc_render$1P(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1F,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(t.label),1),vue.createElementVNode("div",_hoisted_3$11,vue.toDisplayString(o.datePeriod),1)])}const VsCannedSearchDates=LoadingSpinner._export_sfc(_sfc_main$26,[["render",_sfc_render$1P]]),_sfc_main$25={name:"VsCannedSearchBadges",status:"prototype",release:"0.0.1",props:{badgeOne:{type:String,default:""},multiBadgeOne:{type:Array,default:null},badgeTwo:{type:String,default:""},badgeThree:{type:String,default:""}},computed:{limitedMulti(){return this.multiBadgeOne?this.multiBadgeOne.slice(0,3):[]}}},_hoisted_1$1E={class:"vs-canned-search-badges"},_hoisted_2$1d={key:0,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__badge--tr"},_hoisted_3$10={key:1,class:"vs-canned-search-badges__multi-badge-holder"},_hoisted_4$N={key:2,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--offer vs-canned-search-badges__badge--tr2"},_hoisted_5$y={key:3,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--open vs-canned-search-badges__badge--br"};function _sfc_render$1O(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[t.badgeOne?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1d,vue.toDisplayString(t.badgeOne),1)):t.multiBadgeOne&&t.multiBadgeOne.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$10,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.limitedMulti,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__multi-badge"},vue.toDisplayString(s),1))),128))])):vue.createCommentVNode("",!0),t.badgeTwo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$N,vue.toDisplayString(t.badgeTwo),1)):vue.createCommentVNode("",!0),t.badgeThree?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$y,vue.toDisplayString(t.badgeThree),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchBadges=LoadingSpinner._export_sfc(_sfc_main$25,[["render",_sfc_render$1O]]),_sfc_main$24={name:"VsCannedSearchCuisines",status:"prototype",release:"0.0.1",props:{cuisines:{type:Array,default:null}}},_hoisted_1$1D={class:"vs-canned-search-cuisines","data-test":"vs-canned-search-cuisines"};function _sfc_render$1N(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.cuisines,(s,i)=>(vue.openBlock(),vue.createElementBlock("span",{class:"vs-canned-search-cuisines__cuisine",key:i},vue.toDisplayString(s.name),1))),128))])}const VsCannedSearchCuisines=LoadingSpinner._export_sfc(_sfc_main$24,[["render",_sfc_render$1N]]),_sfc_main$23={name:"VsCannedSearchSubHeading",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},props:{subHeading:{type:String,default:""},lineLimit:{type:Number,default:null,validator:e=>[1,2].includes(e)}}};function _sfc_render$1M(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return t.subHeading?(vue.openBlock(),vue.createBlock(s,{key:0,level:"4","heading-style":"heading-xxs",class:vue.normalizeClass(["vs-canned-search-sub-heading",t.lineLimit?`vs-canned-search-sub-heading--lines-${t.lineLimit}`:""]),"data-test":"vs-canned-search-sub-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subHeading),1)]),_:1},8,["class"])):vue.createCommentVNode("",!0)}const VsCannedSearchSubHeading=LoadingSpinner._export_sfc(_sfc_main$23,[["render",_sfc_render$1M]]),_sfc_main$22={name:"VsCannedSearchTourRuns",status:"prototype",release:"0.0.1",props:{label:{type:String,default:""},startDay:{type:String,default:""},endDay:{type:String,default:""}},computed:{formattedPeriod(){let e=`${this.label}: ${this.startDay}`;return this.endDay&&(e=`${e} - ${this.endDay}`),e}}},_hoisted_1$1C={class:"vs-canned-search-tour-runs"};function _sfc_render$1L(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1C,vue.toDisplayString(o.formattedPeriod),1)}const VsCannedSearchTourRuns=LoadingSpinner._export_sfc(_sfc_main$22,[["render",_sfc_render$1L]]),_sfc_main$21={name:"VsCannedSearchTourDeparts",status:"prototype",release:"0.0.1",props:{label:{type:String,default:null},origins:{type:Array,default:null}},computed:{transformedOrigins(){return this.origins?this.origins.map(e=>e.name).join(", "):""}}},_hoisted_1$1B={class:"vs-canned-search-tour-departs"},_hoisted_2$1c={class:"vs-canned-search-tour-departs__label"};function _sfc_render$1K(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1B,[vue.createElementVNode("span",_hoisted_2$1c,vue.toDisplayString(t.label)+":",1),vue.createTextVNode(" "+vue.toDisplayString(o.transformedOrigins),1)])}const VsCannedSearchTourDeparts=LoadingSpinner._export_sfc(_sfc_main$21,[["render",_sfc_render$1K]]),_sfc_main$20={name:"VsCarousel",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsButton:LoadingSpinner.VsButton},provide(){const e={},n=this.activeSlides;return Object.keys(this.slidesPerPage).forEach(t=>{const a=12/this.slidesPerPage[t];e[t]=a}),{slideCols:e,visibleSlides:n}},props:{prevText:{type:String,default:"Previous slide"},nextText:{type:String,default:"Next slide"},slidesXs:{type:Number,default:1},slidesSm:{type:Number,default:2},slidesMd:{type:Number,default:3},slidesLg:{type:Number,default:4}},data(){return{totalSlides:null,currentPage:0,maxPages:1,nextDisabled:!1,prevDisabled:!0,currentWidth:"lg",activeSlides:[],remainderOffset:0,navigating:!1}},computed:{slidesPerPage(){const e={};return e.lg=this.slidesLg,e.md=this.slidesMd,e.sm=this.slidesSm,e.xs=this.slidesXs,e},trackOffset(){return this.remainderOffset?`-${(this.currentPage-1)*100+this.remainderOffset}%`:`-${this.currentPage*100}%`}},mounted(){window.addEventListener("resize",()=>{this.setActivePage(),this.sliderNavigate(null,this.currentPage)}),this.defineActiveSlides(),this.initNavigation()},methods:{defineActiveSlides(e){this.calcViewport(),this.activeSlides.length=0;const n=this.$refs.carousel.getElementsByClassName("vs-carousel-slide__card");let t=0;n.length>0&&Array.from(n).forEach((r,o)=>{const s=this.currentPage*this.slidesPerPage[this.currentWidth],i=parseInt(this.currentPage*this.slidesPerPage[this.currentWidth],10)+parseInt(this.slidesPerPage[this.currentWidth],10);e&&typeof e<"u"?o>=this.totalSlides-this.slidesPerPage[this.currentWidth]&&this.activeSlides.push(o):o>=s&&o<i&&this.activeSlides.push(o),t+=1}),this.totalSlides=t,this.maxPages=Math.ceil(t/this.slidesPerPage[this.currentWidth])},calcViewport(){window.matchMedia("(min-width: 1200px)").matches?this.currentWidth="lg":window.matchMedia("(min-width: 992px)").matches?this.currentWidth="md":window.matchMedia("(min-width: 576px)").matches?this.currentWidth="sm":this.currentWidth="xs"},setActivePage(){let e;this.currentWidth==="xs"&&this.slidesXs===1?e=this.currentPage+1:e=this.currentPage*this.slidesPerPage[this.currentWidth]+1,this.calcViewport();let n;this.currentWidth==="xs"&&this.slidesXs===1?n=e:n=Math.ceil(e/this.slidesPerPage[this.currentWidth]),this.currentPage=n-1,this.sliderNavigate(null,this.currentPage)},sliderNavigate(e,n){const t=this.activeSlides[0];if(e&&e.preventDefault(),this.navigating)return;this.navigating=!0,setTimeout(()=>{this.navigating=!1},250),n==="next"?this.currentPage+1<this.maxPages&&(this.currentPage+=1):n==="prev"?this.currentPage>0&&(this.currentPage-=1):this.currentPage=n,this.initNavigation();const a=this.slidesPerPage[this.currentWidth]*(this.currentPage+1);let r=!1;if(a>this.totalSlides?(this.remainderOffset=this.checkRemainder(a),r=!0):this.remainderOffset=0,this.defineActiveSlides(r),n==="next"){const o=this.getFirstActiveSlide();if(o){const s=o.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}else if(n==="prev"&&this.currentPage>=0){const o=this.$refs.carousel.querySelectorAll(".card")[t-1];if(o){const s=o.querySelectorAll("a")[0];setTimeout(()=>{s.focus()},250)}}},getFirstActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]]},getLastActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]+this.slidesPerPage[this.currentWidth]-1]},initNavigation(){this.currentPage+1>=this.totalSlides/this.slidesPerPage[this.currentWidth]?this.nextDisabled=!0:this.nextDisabled=!1,this.currentPage>0?this.prevDisabled=!1:this.prevDisabled=!0},checkRemainder(e){const n=this.slidesPerPage[this.currentWidth]-(e-this.totalSlides);return 100/this.slidesPerPage[this.currentWidth]*n}}},_hoisted_1$1A={class:"vs-carousel","data-test":"vs-carousel",ref:"carousel"},_hoisted_2$1b={class:"slider"},_hoisted_3$$={key:2,class:"vs-carousel__navigation"},_hoisted_4$M=["onClick","onKeypress","data-test"],_hoisted_5$x={class:"visually-hidden"},_hoisted_6$n={key:0,class:"vs-carousel__mobile-pagination-wrapper"},_hoisted_7$i={class:"vs-carousel__mobile-pagination","data-test":"vs-carousel__mobile-pagination"};function _sfc_render$1J(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$1A,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"10",offset:"1",sm:"12","offset-sm":"0",class:"position-relative"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$1b,[r.prevDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,"icon-only":"",class:"vs-carousel__control vs-carousel__control--prev",onClick:n[0]||(n[0]=c=>o.sliderNavigate(c,"prev")),onKeypress:n[1]||(n[1]=c=>o.sliderNavigate(c,"prev",!0)),icon:"fa-regular fa-arrow-left",ref:"prevButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.prevText),1)]),_:1},512)),vue.createVNode(i,{class:"vs-carousel__track",style:vue.normalizeStyle({transform:`translateX(${o.trackOffset})`})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style"]),r.nextDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:1,"icon-only":"",class:"vs-carousel__control vs-carousel__control--next",onKeypress:n[2]||(n[2]=c=>o.sliderNavigate(c,"next",!0)),onClick:n[3]||(n[3]=c=>o.sliderNavigate(c,"next")),icon:"fa-regular fa-arrow-right",ref:"nextButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.nextText),1)]),_:1},512)),r.totalSlides>o.slidesPerPage[r.currentWidth]?(vue.openBlock(),vue.createElementBlock("ul",_hoisted_3$$,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.maxPages,c=>(vue.openBlock(),vue.createElementBlock("li",{key:c},[vue.createElementVNode("button",{type:"button",class:vue.normalizeClass(["vs-carousel__navigation-item",c===r.currentPage+1?"vs-carousel__navigation-item--active":""]),onClick:vue.withModifiers(d=>o.sliderNavigate(d,c-1),["prevent"]),onKeypress:vue.withModifiers(d=>o.sliderNavigate(d,c-1,!0),["prevent"]),tabindex:"0","data-test":`vs-carousel__nav-${c}`},[vue.createElementVNode("span",_hoisted_5$x,[vue.renderSlot(e.$slots,"vs-carousel-navigate"),vue.createTextVNode(" "+vue.toDisplayString(c),1)])],42,_hoisted_4$M)]))),128))])):vue.createCommentVNode("",!0)]),r.totalSlides>o.slidesPerPage[r.currentWidth]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$n,[vue.createElementVNode("p",_hoisted_7$i,[vue.createTextVNode(vue.toDisplayString(r.currentPage+1)+" ",1),vue.renderSlot(e.$slots,"vs-carousel-of"),vue.createTextVNode(" "+vue.toDisplayString(r.totalSlides),1)])])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})],512)}const VsCarousel=LoadingSpinner._export_sfc(_sfc_main$20,[["render",_sfc_render$1J]]),_sfc_main$1$={name:"VsModuleWrapper",status:"deprecated",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{anchorId:{type:String,default:null},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey|neutral)/)}},computed:{sectionClasses(){return["vs-module-wrapper",`vs-module-wrapper--${this.theme}`,this.businessSupport?"vs-module-wrapper--left-align":null]},headingColumnSizes(){return{cols:this.businessSupport?12:10,offset:this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}},IntroColumnSizes(){return{cols:12,sm:this.businessSupport?12:10,"offset-sm":this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}}}};function _sfc_render$1I(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",vue.mergeProps({class:o.sectionClasses,"data-test":"vs-module-wrapper"},e.$attrs),[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]||e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]?(vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.mergeProps({key:0},o.headingColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:"vs-module-wrapper__heading","data-test":"vs-module-wrapper__heading",id:t.anchorId},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-heading")]),_:3},8,["level","heading-style","id"])]),_:3},16)):vue.createCommentVNode("",!0),e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.mergeProps({key:1},o.IntroColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-module-wrapper__intro","data-test":"vs-module-wrapper__intro",variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-intro")]),_:3})]),_:3},16)):vue.createCommentVNode("",!0)]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")],16)}const VsModuleWrapper=LoadingSpinner._export_sfc(_sfc_main$1$,[["render",_sfc_render$1I]]),_sfc_main$1_={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard,VsCannedSearchStars,VsCannedSearchLogos,VsCannedSearchCategories,VsCannedSearchPrice,VsCannedSearchDuration,VsCannedSearchSummaryBox,VsCannedSearchDates,VsCannedSearchBadges,VsCannedSearchCuisines,VsCannedSearchSubHeading,VsCannedSearchTourRuns,VsCannedSearchTourDeparts,VsCarousel,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsModuleWrapper},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data(){return{products:[]}},computed:{showLogos(){for(let e=0;e<this.products.length;e++){const n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts(){LoadingSpinner.axios.get(this.apiUrl).then(e=>{this.products=e.data.data.products}).catch(()=>{this.products=[]})},fetchSubHeading(e){return this.searchType==="tour"?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings(e){return e.category&&e.category.length?e.category.map(n=>n.name).join(", "):""},fetchAddress(e){return e.onlineEvent?e.onlineEvent:e.address?this.searchType==="even"?`${e.eventVenue}, ${e.address.city}`:`${e.address.city}, ${e.address.county}`:""},fetchBadgeOne(e){return this.searchType!=="tour"&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne(e){return this.searchType==="tour"&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map(n=>n.name):null},fetchBadgeThree(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}},_hoisted_1$1z={class:"vs-canned-search","data-test":"vs-canned-search"};function _sfc_render$1H(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("VsCannedSearchTourRuns"),c=vue.resolveComponent("VsCannedSearchTourDeparts"),d=vue.resolveComponent("VsCannedSearchSubHeading"),f=vue.resolveComponent("VsCannedSearchStars"),v=vue.resolveComponent("VsCannedSearchCategories"),p=vue.resolveComponent("VsCannedSearchLogos"),h=vue.resolveComponent("VsCannedSearchBadges"),m=vue.resolveComponent("VsCannedSearchDates"),_=vue.resolveComponent("VsCannedSearchDuration"),g=vue.resolveComponent("VsCannedSearchPrice"),b=vue.resolveComponent("VsCannedSearchCuisines"),S=vue.resolveComponent("VsCannedSearchSummaryBox"),k=vue.resolveComponent("VsCannedSearchProductCard"),V=vue.resolveComponent("VsCarousel"),L=vue.resolveComponent("VsModuleWrapper");return vue.withDirectives((vue.openBlock(),vue.createBlock(L,null,vue.createSlots({default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-canned-search__buttons"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-buttons")]),_:3})]),_:3})]),_:3}),r.products.length?(vue.openBlock(),vue.createBlock(V,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-of")]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.products,($,A)=>(vue.openBlock(),vue.createBlock(k,{key:A,"slide-index":`${A}`,"img-src":$.images?$.images[0].mediaUrl:"",title:$.name,"detail-link":{link:$.productLink.link,label:$.productLink.label,type:$.productLink.type.toLowerCase()},description:$.description,"search-type":t.searchType},vue.createSlots({"vs-canned-search-sub-heading":vue.withCtx(()=>[vue.createVNode(d,{"sub-heading":o.fetchSubHeading($),"line-limit":t.searchType==="tour"?1:2},null,8,["sub-heading","line-limit"])]),"vs-canned-search-badges":vue.withCtx(()=>[vue.createVNode(h,{"badge-one":o.fetchBadgeOne($),"multi-badge-one":o.fetchMultiBadgeOne($),"badge-two":$.offers,"badge-three":o.fetchBadgeThree($)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]),"vs-canned-search-summary":vue.withCtx(()=>[vue.createVNode(S,{"link-href":$.website.link,"link-type":$.website.type,"link-label":$.website.label,"link-title":$.name},vue.createSlots({"vs-canned-search-summary-left":vue.withCtx(()=>[t.searchType==="tour"&&$.tourLength?(vue.openBlock(),vue.createBlock(_,{key:0,"duration-intro":$.tourLength.label,duration:$.tourLength.value},null,8,["duration-intro","duration"])):$.price&&t.searchType!=="tour"?(vue.openBlock(),vue.createBlock(g,{key:1,"price-intro":$.price.priceLabel,price:$.price.price,"price-outro":$.price.priceBasis},null,8,["price-intro","price","price-outro"])):$.cuisines?(vue.openBlock(),vue.createBlock(b,{key:2,cuisines:$.cuisines},null,8,["cuisines"])):vue.createCommentVNode("",!0)]),_:2},[$.opening&&t.searchType!=="tour"?{name:"vs-canned-search-summary-top",fn:vue.withCtx(()=>[vue.createVNode(m,{period:$.opening.period,label:$.opening.period.label},null,8,["period","label"])]),key:"0"}:void 0,$.price&&t.searchType==="tour"?{name:"vs-canned-search-summary-centre",fn:vue.withCtx(()=>[vue.createVNode(g,{"price-intro":$.price.priceLabel,price:$.price.price,"price-outro":$.price.priceBasis},null,8,["price-intro","price","price-outro"])]),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]),_:2},[t.searchType==="tour"?{name:"vs-canned-search-tour-info",fn:vue.withCtx(()=>[vue.createElementVNode("div",null,[$.opening&&$.opening.period&&$.opening.period.startDay?(vue.openBlock(),vue.createBlock(u,{key:0,label:$.opening.period.label,"start-day":$.opening.period.startDay,"end-day":$.opening.period.endDay},null,8,["label","start-day","end-day"])):vue.createCommentVNode("",!0),$.tourOrigin&&$.tourOrigin.tourOrigin?(vue.openBlock(),vue.createBlock(c,{key:1,label:$.tourOrigin.label,origins:$.tourOrigin.tourOrigin},null,8,["label","origins"])):vue.createCommentVNode("",!0)])]),key:"0"}:void 0,$.grading?{name:"vs-canned-search-star-rating",fn:vue.withCtx(()=>[vue.createVNode(f,{min:$.grading.minStars,max:$.grading.maxStars},null,8,["min","max"])]),key:"1"}:void 0,$.locations?{name:"vs-canned-search-categories",fn:vue.withCtx(()=>[vue.createVNode(v,{categories:$.locations},null,8,["categories"])]),key:"2"}:void 0,o.showLogos?{name:"vs-canned-search-logos",fn:vue.withCtx(()=>[vue.createVNode(p,{"good-to-go-logo":$.covidInformation&&$.covidInformation.goodToGo?$.covidInformation.goodToGo:null,"safe-travels-logo":$.covidInformation&&$.covidInformation.safeTravels?$.covidInformation.safeTravels:null,"access-guide":$.accessGuide||null,awards:$.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"]))),128))]),_:3},8,["next-text","prev-text"])):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-credit"]?(vue.openBlock(),vue.createBlock(l,{key:1,class:"vs-canned-search__credit-container"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-credit")]),_:3})):vue.createCommentVNode("",!0)])]),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-intro")]),key:"1"}:void 0]),1536)),[[vue.vShow,r.products.length]])}const CannedSearch=LoadingSpinner._export_sfc(_sfc_main$1_,[["render",_sfc_render$1H]]),_sfc_main$1Z={name:"VsCaptionImageMap",status:"prototype",release:"0.0.1",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapOutlineColor:{type:String,default:"#191919"},mapMarkerColor:{type:String,default:"#191919"}},data(){return{cornerCoordinates:{NE:61.3,NW:54.4,SE:-9.1,SW:.4},mapWidth:75,mapHeight:104}},computed:{positionY(){const e=Number(this.latitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.NE,this.cornerCoordinates.NW,e,this.mapHeight))},positionX(){const e=Number(this.longitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.SE,this.cornerCoordinates.SW,e,this.mapWidth))}},methods:{calculateAxisPosition(e,n,t,a){return(t-e)*a/(n-e)}}},_hoisted_1$1y=["width","height"],_hoisted_2$1a=["stroke"],_hoisted_3$_=["stroke"],_hoisted_4$L=["stroke"],_hoisted_5$w=["stroke"],_hoisted_6$m=["stroke"],_hoisted_7$h=["stroke"],_hoisted_8$7=["stroke"],_hoisted_9$5=["stroke"],_hoisted_10$5=["stroke"],_hoisted_11$4=["stroke"],_hoisted_12$3=["stroke"],_hoisted_13$3=["stroke"],_hoisted_14$2=["stroke"],_hoisted_15$2=["stroke"],_hoisted_16$2=["stroke"],_hoisted_17$2=["stroke"],_hoisted_18$1=["stroke"],_hoisted_19$1=["stroke"],_hoisted_20$1=["stroke"],_hoisted_21=["stroke"],_hoisted_22=["stroke"],_hoisted_23=["stroke"],_hoisted_24=["stroke"],_hoisted_25=["stroke"],_hoisted_26=["stroke"],_hoisted_27=["stroke"],_hoisted_28=["stroke"],_hoisted_29=["stroke"],_hoisted_30=["stroke"],_hoisted_31=["stroke"],_hoisted_32=["width","height"],_hoisted_33=["fill","cx","cy"];function _sfc_render$1G(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:r.mapWidth,height:r.mapHeight,viewBox:"0 0 76 105.9",class:"vs-caption-image-map","data-test":"vs-caption-image-map"},[vue.createElementVNode("path",{"data-test":"vs-caption-image-map__first-path",d:"M65.9965,9.0973l-.167.736.668.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_2$1a),vue.createElementVNode("path",{d:`M64.6595,9.4653l-.668,2.391,\r
|
|
2
|
+
1.169.368-.334-1.287C64.8265,\r
|
|
3
|
+
10.2013,65.1605,10.2013,64.6595,9.4653Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_3$_),vue.createElementVNode("path",{d:"M66.1635,11.4883l1.336.184-.336-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_4$L),vue.createElementVNode("path",{d:`M62.1546,11.3043l-1.5,1.1c.5.92.8349.736,\r
|
|
4
|
+
1.837.736l-.3341.368h-.173a1.6911,1.6911,0,0,0,1.336.92c-.668,\r
|
|
5
|
+
1.287-1.67,1.1-2.8389,1.655v.368c1.67.736,1.336,1.1,2.506-.184,\r
|
|
6
|
+
1.169,2.391-.5,2.759.668,4.966h.334l.334-1.471v-1.837l.5-1.1-.835-1.655a3.6491,\r
|
|
7
|
+
3.6491,0,0,0,.835-1.839c-.668.368-.668.368-1.336,0C62.3215,\r
|
|
8
|
+
12.7753,62.8235,12.2243,62.1546,11.3043Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_5$w),vue.createElementVNode("path",{d:"M65.9965,13.8793l-.668,1.287,1.169-.368Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_6$m),vue.createElementVNode("path",{d:"M49.46,30.2483l1,.736C50.96,30.2483,50.2945,29.5123,49.46,30.2483Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_7$h),vue.createElementVNode("path",{d:"M52.8005,31.1643l1.67-.552-.17-.548C53.1345,30.2483,52.9675,29.88,52.8005,31.1643Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_8$7),vue.createElementVNode("path",{d:"M51.2975,30.9843l.167,1.655,1.169-1.287Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_9$5),vue.createElementVNode("path",{d:`M48.6245,31.72c.1671,1.655-1,.552-1.5.92s-.334,\r
|
|
9
|
+
1.655-.167,2.207l1.336-.184c.167.92.5.552,1.169.736l.835.368a1.5181,1.5181,0,0,0,\r
|
|
10
|
+
1.8371-.736l-2.172.184.167-.736-1.3421-.184v-.363l.668-.368-.668-.552c.668-.552,\r
|
|
11
|
+
1-.368,1.5-1.287A2.6,2.6,0,0,0,48.6245,31.72Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_10$5),vue.createElementVNode("path",{d:"M50.4625,33.1913l.334.92.835-.92-.169-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_11$4),vue.createElementVNode("path",{d:`M46.6205,36.1343c0,.184.167.552.167.736.167.184.167.368.334.368,\r
|
|
12
|
+
1.169.92,1.336-1.287.167-1.287C46.9545,35.95,46.7875,35.95,46.6205,36.1343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_12$3),vue.createElementVNode("path",{d:"M49.6265,37.0533l-.334.92,1,.552.334-1.471Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_13$3),vue.createElementVNode("path",{d:`M46.12,39.6283c-1,1.287-1.5.736-2.505.92-.334.184-.668.552-1,\r
|
|
13
|
+
.552-.5.184-1.5-.184-2-.184a14.9016,14.9016,0,0,\r
|
|
14
|
+
0-3.007,1.1l.167.736-1.343-1.469a1.64,1.64,0,0,1-1.5,\r
|
|
15
|
+
1.287l.5-1.655-1.169.368-.668-1.1-1.336,1.1v.552c.5.368.668.368.334.92l.334,\r
|
|
16
|
+
1.1-1.169-.184,1.5,2.207-1.837-.184h-1.5c.668,1.839.835.92-.167,\r
|
|
17
|
+
2.759l-.5-.736c-.167.736.334,1.1.835,1.471a26.8342,26.8342,0,0,1,2.171,\r
|
|
18
|
+
2.207c-1.67,0-1.169-.736-2-1.1-.668-.368-1.5.184-2.171.552l-.835-.92.167,\r
|
|
19
|
+
1.839c-.668-.552-2-1.1-1.5.552,1,0,1,.736-.167,1.1l1.169,1.1,1,\r
|
|
20
|
+
1.287c-1.67.184-1.5-.92-3.174-.368a3.4256,3.4256,0,0,1,.668,2.207c1.336,\r
|
|
21
|
+
0,1.837-.7359,2.673.552h-2.515c.5.736.835.5521,1.5.736l1,\r
|
|
22
|
+
.736c-.668.368-.668.368-1.336.184l.167,1.287.668-.184c0,1.655-.334,\r
|
|
23
|
+
1.1-1.169,1.1l-1.169.184c.835,1.655,1.169.368,2.339,1.471a3.9245,3.9245,0,0,\r
|
|
24
|
+
1-2.506-.184c0,.552-.167,1.288.167,1.655l-.835.184v.92c-1.837-.552-1.67,\r
|
|
25
|
+
0-3.174.552,2.171,1.471,3.174-.552,5.178.368-1.5,1.471-.835-.184-3.341,\r
|
|
26
|
+
1.287.835.92,2.339.552,3.341.552.668-1.471,2-1.1,\r
|
|
27
|
+
2.506-2.023.334-.7359-.334-1.839.668-2.207.668-.368,1.169.552,1,\r
|
|
28
|
+
1.1a1.1582,1.1582,0,0,1-1,.552,3.54,3.54,0,0,0,2.673.7359l-1.5,\r
|
|
29
|
+
1.287-1.837.552-.334,1.655.668.1841,1.336-1.287c-.167.92-.5,\r
|
|
30
|
+
2.207-1.5,2.207-.668,0-1.5-.92-2.171,0-1,.92-.167,2.207-.5,\r
|
|
31
|
+
3.6779l.5.1841-.334.92c1.67.552,2.171-1.1,3.174-2.2071a6.619,\r
|
|
32
|
+
6.619,0,0,1,1.5-.92c.334,1.4709-.668,1.839-1.67,2.207,0,1.287-.835.7359-1,\r
|
|
33
|
+
2.5749a3.8062,3.8062,0,0,1,1.67,1.655l.668-.552.5-3.862h.835l-.167,2.207,\r
|
|
34
|
+
1.837.552c1.336.1841,1.169,0,2.339,1.1-1.169.184-1.67-.1841-2.84-.368a.9569.9569,\r
|
|
35
|
+
0,0,0-1.169.184c-.5.368-.167,1.1-.334,1.655l-.167,1.287c1,.736,2.673,2.023,\r
|
|
36
|
+
1.837,3.678a8.1472,8.1472,0,0,1-1.169,1.287c-.334.552,0,1.1-.5,\r
|
|
37
|
+
1.839-.334.552-1,.736-1.5,1.471-.5,1.1,0,1.655-.167,2.207,0,.368-.334.736-.5,\r
|
|
38
|
+
1.1-.167-.368-.668-1.471-1-1.471-.5-.184-1.169.736-.835,1.471s1.169.736,1.67,\r
|
|
39
|
+
1.1c.668.92.167,1.839,1.5,2.391.167-1.287-.668-2.207.167-2.759,1.169-.552,\r
|
|
40
|
+
2.84,1.839,3.341,2.023,1.5.552,1.336-.736.835-1.655a4.7548,4.7548,0,0,\r
|
|
41
|
+
1-.668-1.287c.334-.184.668-.368,1-.184.668.368.167,1.1,\r
|
|
42
|
+
1.336.736.167.368.167.552.5.7359a2.5229,2.5229,0,0,0,2,.368c.334,0,\r
|
|
43
|
+
.668-.552,1.169-.7359s1.336.184,1.67-.552c.5-.5521.167-1.8391,0-2.575,\r
|
|
44
|
+
1.5.7359,1.5.368,2.673.552.668.184,1.67.552,2.338.184.5-.184.5-.552,\r
|
|
45
|
+
1.336-1.287,2.171-1.655,4.51-3.862,7.015-4.6-.334-1.287-.835-1.287-1-2.023-.334-1.1,\r
|
|
46
|
+
1-2.207,1.837-2.575l-1-2.391-2.672-.92-2-1.1-1.5.3679c0,.552,0,\r
|
|
47
|
+
.92-.5,1.287-1.5.92-3.007-.7359-4.176-.92-.668,0-2.171.552-2.673-.368-.334-.368,\r
|
|
48
|
+
0-.736.334-.92.668-.368,1.336,0,2,.184l1.837.184.167-.552.835.368a2.3569,\r
|
|
49
|
+
2.3569,0,0,1,1.5-2.207c.334,0,.835.368,1.336.184l1.837-.736v-.368a5.49,\r
|
|
50
|
+
5.49,0,0,0-2.84-1.1l.334-.736-.668-.184c-.835,1.1-1.336.736-2.506,\r
|
|
51
|
+
1.1-.334,0-1,.184-1.336,0-.167-.184-.167-.368-.334-.736,2.171.368,\r
|
|
52
|
+
2.171-.92,3.508-1.287.668-.368,1,0,1.837,0a3.77,3.77,0,0,0,3.341-2.207,\r
|
|
53
|
+
5.2019,5.2019,0,0,1-1-.736c-.334-1.1,1.336-1.1,\r
|
|
54
|
+
1.5-1.287.334-.184.668-.92.835-1.1.334-.552,1.169-1.471,\r
|
|
55
|
+
1.336-1.839l.835-2.943.835-.92.668-1.839c.334-.552.668-.368,\r
|
|
56
|
+
1.169-1.471-1.336-1.288-.835-2.575-2-2.943s-2.505.736-4.176\r
|
|
57
|
+
.92-2.673-.92-3.341-.92l-1.837.368-2.338-.552c-1,\r
|
|
58
|
+
0-3.174,1.287-4.176,1.655l-1.169.552c-.334.184-.835.92-1.5,\r
|
|
59
|
+
1.471-.5.184-2.338.736-2.673.184-.334-.184-.167-.552,0-.736.5-.368,1,0,\r
|
|
60
|
+
1.5,0a8.5374,8.5374,0,0,0,2.171-2.207c-1.5-.552-1.336.736-3.007,\r
|
|
61
|
+
1.1l.5-1.839c1.67.184,1.336-.368,2.506-.552a4.4993,4.4993,0,0,1,1.5.368c0-1.471.5-.92,\r
|
|
62
|
+
1.169-2.207l-1.837.736c-1-.368-2.338.184-3.007-1.1h2.673l-.668-1.287a8.2712,\r
|
|
63
|
+
8.2712,0,0,0,2.506-1.1,6.33,6.33,0,0,0,1.837-1.1l.835-1.1,1.336-1.1c.835-.736,\r
|
|
64
|
+
2.171-1.2871,2-2.7591h.5c-.334-1.287-.668-1.287.167-2.0229l-1.67-.1841Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_14$2),vue.createElementVNode("path",{d:`M17.2225,46.4343c-.5-1.1-.835-1.1-1.837-.736l.167.736c-1.169.736-.835,\r
|
|
65
|
+
1.471.167,1.1l.334.92h-1l-.167.552a1.521,1.521,0,0,1,1.169,1.471l-1.339.555c.5.736,\r
|
|
66
|
+
1.336,1.287,2,.552.334-.184.5-.92.835-1.1.167-.184.835,0,1.169,0a3.0538,\r
|
|
67
|
+
3.0538,0,0,0-1.336-2.207l.835-.368a.8581.8581,0,0,0,.5.92c.835.736,1.67,0,\r
|
|
68
|
+
2.506-.368-.334-1.287-1.336-1.1-2.338-1.1l2.673-.736c-.5-2.023.5-1.839,\r
|
|
69
|
+
2-2.391l-.334-1.287c0-.368.334-1.1-.334-1.471-.5-.552-1.5.736-1.837,1.1-1.336,\r
|
|
70
|
+
1.287-1.837.92-2.506,1.471S18.5585,45.1463,17.2225,46.4343Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_15$2),vue.createElementVNode("path",{d:"M22.0665,45.33v.736c1-.368,1.5.184,2-.92Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_16$2),vue.createElementVNode("path",{d:`M20.8965,52.8713l-1,.92.5,1.471c-1.5.184-1-.736-2.171-1.1l.334,\r
|
|
71
|
+
2.759-1.5-.92c-.167,1.1.334,1.655,1.169,2.391l.5-.552c1.5-.552.668,2.575,\r
|
|
72
|
+
1.67,2.943.835.552,1.169-1.1,2,.184.5-.184,1.5-.552,1.336.552-.167.368-.668.736-.835,\r
|
|
73
|
+
1.1,1.336,0,1.336-.736,1.837-1.655l.668-.92a3.848,3.848,0,0,\r
|
|
74
|
+
1-2.84-1.839l-.5-3.311A3.0591,3.0591,0,0,0,20.8965,52.8713Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_17$2),vue.createElementVNode("path",{d:`M12.5415,54.1593c-.5-.736-.668-.552-1.336-.736l-.167.736c.167,0,\r
|
|
75
|
+
.5.184.668.184,1.336.92,0,2.575-.167,3.678-.167.92.167,1.655-.334,\r
|
|
76
|
+
3.311h1.169a22.2511,22.2511,0,0,1,.334-3.311c.167-1.287,0-1.839,\r
|
|
77
|
+
1-2.759l-.167-1.1c.668-.184.835-.184,1.169-.92C13.38,53.0553,\r
|
|
78
|
+
13.2125,52.8713,12.5415,54.1593Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_18$1),vue.createElementVNode("path",{d:`M23.9035,55.8133c-.334.736-.5,1.1-1.169,1.287,0,2.023,1,\r
|
|
79
|
+
1.471,1.169,1.1A11.4313,11.4313,0,0,0,23.9035,55.8133Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_19$1),vue.createElementVNode("path",{d:`M10.5405,62.0673l-.835.736a4.3288,4.3288,0,0,\r
|
|
80
|
+
1-.835,2.942l.167.184,1.333-2.023.5-1.1Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_20$1),vue.createElementVNode("path",{d:"M19.8945,62.6193l-.334,1.1,1.837-.184Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_21),vue.createElementVNode("path",{d:`M18.7255,67.5843c-1.169.92-1.837.92-2,2.207a5.2615,5.2615,0,0,\r
|
|
81
|
+
0-2.84.92c.167.184.167.368.5.368.835.184,2.84-1.471,3.508-2.023C18.3915,\r
|
|
82
|
+
68.6843,18.8925,68.32,18.7255,67.5843Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_22),vue.createElementVNode("path",{d:`M21.3975,68.1363c-1,1.1-1.336.368-1.5,1.655.668.184.668.368,1,\r
|
|
83
|
+
.92l1.336.184-1,.736,1.169.736-3.343.919c.167.184.167.368.334.552.5.184,\r
|
|
84
|
+
1.5.368,1.837,0a1.5054,1.5054,0,0,0,.167-.736c1.67.552.835-.552,\r
|
|
85
|
+
2.673-.184a1.6551,1.6551,0,0,1,1.67-.92c-.167-1.839-.835-1.287-1.837-2.023C23.0685,\r
|
|
86
|
+
69.4233,23.2355,69.0563,21.3975,68.1363Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_23),vue.createElementVNode("path",{d:`M22.4,80.4613c.5-1.1.668-1.1.167-2.207.334,0,.668.184,1,0,\r
|
|
87
|
+
.668-.184,1.336-1.839,1.5-2.391-1.169,0-2.171,1.1-2.84,2.0231C21.7315,\r
|
|
88
|
+
78.62,20.73,79.3563,22.4,80.4613Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_24),vue.createElementVNode("path",{d:`M26.0755,76.4133c-.835,1.287-.334,1.287-.5,\r
|
|
89
|
+
2.207-.334.92-.668.736-.835,2.207,1.169.184,1.169.184,2.171-.736-.167,\r
|
|
90
|
+
1.471-3.174,2.943-1.837,4.966l-.334.3681v.1839c2.171-.368,2-2.575,\r
|
|
91
|
+
2.506-3.4939.167-.736.835-.92.668-1.655,0-.552-.668-1.287-.835-1.839,\r
|
|
92
|
+
0-.552.167-.92.167-1.471Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_25),vue.createElementVNode("path",{d:"M20.5605,76.5973l-1,.736C20.0605,77.5173,20.73,77.3333,20.5605,76.5973Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_26),vue.createElementVNode("path",{d:"M27.5785,78.9883c.668.92,2,2.391,3.174,2.207-.334-.552-.334-.92-1-1.1v-.736Z",transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_27),vue.createElementVNode("path",{d:`M18.7255,83.4023c.668-.1839.668-.1839.835-.92.167,0,\r
|
|
93
|
+
.334.184.668,0,1.5,0,.835-1.287.5-2.207l-.333-1.103c-1.169.552-.668.92-1,\r
|
|
94
|
+
2.023A6.64,6.64,0,0,0,18.7255,83.4023Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_28),vue.createElementVNode("path",{d:`M18.8885,79.3553l-1.336,1.1.167.736-.835.92.167.184C18.2245,\r
|
|
95
|
+
81.93,19.7285,81.01,18.8885,79.3553Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_29),vue.createElementVNode("path",{d:`M28.2465,82.1143c-.668.92-.5,1.287-.5,2.391,0,.552,0,\r
|
|
96
|
+
1.288.668,1.288C29.75,85.6083,29.2485,82.85,28.2465,82.1143Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_30),vue.createElementVNode("path",{d:`M23.2355,88.1793c1.5-.92.5-.736,2.506-.92C24.5725,\r
|
|
97
|
+
85.0573,23.0685,85.9793,23.2355,88.1793Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_31),vue.createElementVNode("rect",{width:r.mapWidth,height:r.mapHeight,fill:"none"},null,8,_hoisted_32),vue.createElementVNode("circle",{r:"4","data-test":"vs-caption-image-map__marker",fill:t.mapMarkerColor,cx:o.positionX,cy:o.positionY},null,8,_hoisted_33)],8,_hoisted_1$1y)}const VsCaptionImageMap=LoadingSpinner._export_sfc(_sfc_main$1Z,[["render",_sfc_render$1G]]),_sfc_main$1Y={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsCaptionImageMap},props:{variant:{type:String,default:"fullwidth",validator:e=>e.match(/(fullwidth|large)/)},theme:{type:String,default:"bold",validator:e=>e.match(/(bold|subtle)/)},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},data(){return{tokens:LoadingSpinner.designTokens}},computed:{showMap(){return!!(this.longitude&&this.latitude)},isLargeCaption(){return this.variant==="large"},captionClasses(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},`vs-caption--${this.textAlign}`,`vs-caption--${this.theme}`]}}},_hoisted_1$1x={class:"vs-caption__caption-info"},_hoisted_2$19={key:0,class:"vs-caption__image-caption"},_hoisted_3$Z={key:1,class:"vs-caption__image-credit"},_hoisted_4$K={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1F(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsCaptionImageMap"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"vs-caption",class:vue.normalizeClass(["vs-caption",o.captionClasses])},[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"justify-content-center justify-content-sm-start"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:vue.normalizeClass(["order-2 order-sm-1",[o.showMap?"":"align-self-center"]])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1x,[e.$slots.caption?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$19,[vue.renderSlot(e.$slots,"caption")])):vue.createCommentVNode("",!0),e.$slots.credit?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$Z,[vue.renderSlot(e.$slots,"credit")])):vue.createCommentVNode("",!0)])]),_:3},8,["class"]),o.showMap&&o.isLargeCaption?(vue.openBlock(),vue.createBlock(s,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 ps-sm-0 align-self-end align-self-sm-start"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$K,[vue.createVNode(i,{latitude:t.latitude,longitude:t.longitude,"map-outline-color":r.tokens["vs-color-icon-inverse"],"map-marker-color":r.tokens["vs-color-background-accent-tolsta-40"]},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],2)}const VsCaption=LoadingSpinner._export_sfc(_sfc_main$1Y,[["render",_sfc_render$1F]]),_sfc_main$1X={name:"VsProgressBar",status:"prototype",release:"0.1.0",components:{BProgress:LoadingSpinner.Zo,BProgressBar:LoadingSpinner.Yo},props:{max:{type:Number,required:!0},currentStep:{type:Number,required:!0},isStepped:{type:Boolean,required:!1},isFull:{type:Boolean,required:!1},progressLabel:{type:String,default:""}},data(){return{compId:null}},computed:{computedClasses(){let e="";return this.isFull&&(e+="vs-progress-bar--full "),this.isStepped&&(e+="vs-progress-bar--stepped "),e},interpolProgressLabel(){if(this.progressLabel){let e=this.progressLabel.replace("xxx",this.currentStep);return e=e.replace("yyy",this.max),e}return""}},mounted(){const e=vue.getCurrentInstance();this.compId=vue.ref(e.uid)}},_hoisted_1$1w={key:1,class:"vs-progress-bar__stepper"},_hoisted_2$18=["id"],_hoisted_3$Y=["id"];function _sfc_render$1E(e,n,t,a,r,o){const s=vue.resolveComponent("BProgressBar"),i=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",o.computedClasses]),"data-test":"vs-progress-bar"},[!t.isStepped||t.max>5?(vue.openBlock(),vue.createBlock(i,{key:0,max:t.max},{default:vue.withCtx(()=>[vue.createVNode(s,{value:t.currentStep,"aria-labelledBy":`progress-bar-${r.compId}`},null,8,["value","aria-labelledBy"])]),_:1},8,["max"])):vue.createCommentVNode("",!0),t.isStepped&&t.max<=5?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1w,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.max,l=>(vue.openBlock(),vue.createBlock(i,{key:l,max:1},{default:vue.withCtx(()=>[vue.createVNode(s,{value:l<=t.currentStep?1:0,"aria-labelledBy":`progress-bar-${r.compId}`},null,8,["value","aria-labelledBy"])]),_:2},1024))),128))])):vue.createCommentVNode("",!0),o.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:`progress-bar-${r.compId}`},vue.toDisplayString(o.interpolProgressLabel),9,_hoisted_2$18)):(vue.openBlock(),vue.createElementBlock("p",{key:3,class:"vs-progress-bar__label",id:`progress-bar-${r.compId}`},vue.toDisplayString(t.currentStep)+" / "+vue.toDisplayString(t.max),9,_hoisted_3$Y))],2)}const VsProgressBar=LoadingSpinner._export_sfc(_sfc_main$1X,[["render",_sfc_render$1E]]),_sfc_main$1W={name:"VsCarbonCalculatorTip",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsHeading:LoadingSpinner.VsHeading},inject:["labelsMap"],props:{tip:{type:String,default:""},showingAllTips:{type:Boolean,default:!1}}},_hoisted_1$1v={class:"vs-carbon-calculator-tip","data-test":"vs-carbon-calculator-tip"},_hoisted_2$17={class:"vs-carbon-calculator-tip__icon-container"},_hoisted_3$X={class:"vs-carbon-calculator-tip__content"},_hoisted_4$J=["innerHTML"],_hoisted_5$v=["innerHTML"];function _sfc_render$1D(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1v,[vue.createElementVNode("div",_hoisted_2$17,[vue.createVNode(s,{icon:"fa-kit fa-vs-coo-head",size:"lg",variant:"highlight",class:"vs-carbon-calculator-tip__icon"})]),vue.createElementVNode("div",_hoisted_3$X,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.topTip),1)]),_:1}),t.showingAllTips?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__summary",innerHTML:o.labelsMap.allTips},null,8,_hoisted_4$J)):vue.createCommentVNode("",!0),t.showingAllTips?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__content",innerHTML:t.tip},null,8,_hoisted_5$v))])])}const VsCarbonCalculatorTip=LoadingSpinner._export_sfc(_sfc_main$1W,[["render",_sfc_render$1D]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function n(t){return arguments.length===0||_isPlaceholder(t)?n:e.apply(this,arguments)}}function _curry2(e){return function n(t,a){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry1(function(r){return e(t,r)});default:return _isPlaceholder(t)&&_isPlaceholder(a)?n:_isPlaceholder(t)?_curry1(function(r){return e(r,a)}):_isPlaceholder(a)?_curry1(function(r){return e(t,r)}):e(t,a)}}}function _arity(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,a){return n.apply(this,arguments)};case 3:return function(t,a,r){return n.apply(this,arguments)};case 4:return function(t,a,r,o){return n.apply(this,arguments)};case 5:return function(t,a,r,o,s){return n.apply(this,arguments)};case 6:return function(t,a,r,o,s,i){return n.apply(this,arguments)};case 7:return function(t,a,r,o,s,i,l){return n.apply(this,arguments)};case 8:return function(t,a,r,o,s,i,l,u){return n.apply(this,arguments)};case 9:return function(t,a,r,o,s,i,l,u,c){return n.apply(this,arguments)};case 10:return function(t,a,r,o,s,i,l,u,c,d){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,n,t){return function(){for(var a=[],r=0,o=e,s=0;s<n.length||r<arguments.length;){var i;s<n.length&&(!_isPlaceholder(n[s])||r>=arguments.length)?i=n[s]:(i=arguments[r],r+=1),a[s]=i,_isPlaceholder(i)||(o-=1),s+=1}return o<=0?t.apply(this,a):_arity(o,_curryN(e,a,t))}}var curryN=_curry2(function(n,t){return n===1?_curry1(t):_arity(n,_curryN(n,[],t))});function _curry3(e){return function n(t,a,r){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry2(function(o,s){return e(t,o,s)});case 2:return _isPlaceholder(t)&&_isPlaceholder(a)?n:_isPlaceholder(t)?_curry2(function(o,s){return e(o,a,s)}):_isPlaceholder(a)?_curry2(function(o,s){return e(t,o,s)}):_curry1(function(o){return e(t,a,o)});default:return _isPlaceholder(t)&&_isPlaceholder(a)&&_isPlaceholder(r)?n:_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(o,s){return e(o,s,r)}):_isPlaceholder(t)&&_isPlaceholder(r)?_curry2(function(o,s){return e(o,a,s)}):_isPlaceholder(a)&&_isPlaceholder(r)?_curry2(function(o,s){return e(t,o,s)}):_isPlaceholder(t)?_curry1(function(o){return e(o,a,r)}):_isPlaceholder(a)?_curry1(function(o){return e(t,o,r)}):_isPlaceholder(r)?_curry1(function(o){return e(t,a,o)}):e(t,a,r)}}}var _isArray=Array.isArray||function(n){return n!=null&&n.length>=0&&Object.prototype.toString.call(n)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,n,t){return function(){if(arguments.length===0)return t();var a=arguments[arguments.length-1];if(!_isArray(a)){for(var r=0;r<e.length;){if(typeof a[e[r]]=="function")return a[e[r]].apply(a,Array.prototype.slice.call(arguments,0,-1));r+=1}if(_isTransformer(a)){var o=n.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(a)}}return t.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function _map(e,n){for(var t=0,a=n.length,r=Array(a);t<a;)r[t]=e(n[t]),t+=1;return r}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(n){return _isArray(n)?!0:!n||typeof n!="object"||_isString(n)?!1:n.length===0?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1}),XWrap=function(){function e(n){this.f=n}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(n){return n},e.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(n,t){return _arity(n.length,function(){return n.apply(t,arguments)})});function _arrayReduce(e,n,t){for(var a=0,r=t.length;a<r;){if(n=e["@@transducer/step"](n,t[a]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}a+=1}return e["@@transducer/result"](n)}function _iterableReduce(e,n,t){for(var a=t.next();!a.done;){if(n=e["@@transducer/step"](n,a.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}a=t.next()}return e["@@transducer/result"](n)}function _methodReduce(e,n,t,a){return e["@@transducer/result"](t[a](bind(e["@@transducer/step"],e),n))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,n,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,n,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,n,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,n,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,n,t);if(typeof t.reduce=="function")return _methodReduce(e,n,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},e}(),_xmap=_curry2(function(n,t){return new XMap(n,t)});function _has(e,n){return Object.prototype.hasOwnProperty.call(n,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(n){return toString$1.call(n)==="[object Arguments]"}:function(n){return _has("callee",n)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(n,t){for(var a=0;a<n.length;){if(n[a]===t)return!0;a+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(n){if(Object(n)!==n)return[];var t,a,r=[],o=hasArgsEnumBug&&_isArguments(n);for(t in n)_has(t,n)&&(!o||t!=="length")&&(r[r.length]=t);if(hasEnumBug)for(a=nonEnumerableProps.length-1;a>=0;)t=nonEnumerableProps[a],_has(t,n)&&!contains(r,t)&&(r[r.length]=t),a-=1;return r}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(a,r){return a[r]=n(t[r]),a},{},keys(t));default:return _map(n,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(n){return n<<0===n},nth=_curry2(function(n,t){var a=n<0?t.length+n:n;return _isString(t)?t.charAt(a):t[a]}),nth$1=nth,prop=_curry2(function(n,t){if(t!=null)return _isInteger(n)?nth$1(n,t):t[n]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(n){for(var t=keys(n),a=t.length,r=[],o=0;o<a;)r[o]=n[t[o]],o+=1;return r}),values$1=values;function _isFunction(e){var n=Object.prototype.toString.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"}var type=_curry1(function(n){return n===null?"Null":n===void 0?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function _pipe(e,n){return function(){return n.call(this,e.apply(this,arguments))}}function _checkForMethod(e,n){return function(){var t=arguments.length;if(t===0)return n();var a=arguments[t-1];return _isArray(a)||typeof a[e]!="function"?n.apply(this,arguments):a[e].apply(a,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(n,t,a){return Array.prototype.slice.call(a,n,t)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(e){for(var n=[],t;!(t=e.next()).done;)n.push(t.value);return n}function _includesWith(e,n,t){for(var a=0,r=t.length;a<r;){if(e(n,t[a]))return!0;a+=1}return!1}function _functionName(e){var n=String(e).match(/^function (\w*)/);return n==null?"":n[1]}function _objectIs(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,n,t,a){var r=_arrayFromIterator(e),o=_arrayFromIterator(n);function s(i,l){return _equals(i,l,t.slice(),a.slice())}return!_includesWith(function(i,l){return!_includesWith(s,l,i)},o,r)}function _equals(e,n,t,a){if(_objectIs$1(e,n))return!0;var r=type(e);if(r!==type(n))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof n["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n)&&typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof n.equals=="function")return typeof e.equals=="function"&&e.equals(n)&&typeof n.equals=="function"&&n.equals(e);switch(r){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===n;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof n&&_objectIs$1(e.valueOf(),n.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(!(e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.sticky===n.sticky&&e.unicode===n.unicode))return!1;break}for(var o=t.length-1;o>=0;){if(t[o]===e)return a[o]===n;o-=1}switch(r){case"Map":return e.size!==n.size?!1:_uniqContentEquals(e.entries(),n.entries(),t.concat([e]),a.concat([n]));case"Set":return e.size!==n.size?!1:_uniqContentEquals(e.values(),n.values(),t.concat([e]),a.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=keys(e);if(s.length!==keys(n).length)return!1;var i=t.concat([e]),l=a.concat([n]);for(o=s.length-1;o>=0;){var u=s[o];if(!(_has(u,n)&&_equals(n[u],e[u],i,l)))return!1;o-=1}return!0}var equals=_curry2(function(n,t){return _equals(n,t,[],[])});function _indexOf(e,n,t){var a,r;if(typeof e.indexOf=="function")switch(typeof n){case"number":if(n===0){for(a=1/n;t<e.length;){if(r=e[t],r===0&&1/r===a)return t;t+=1}return-1}else if(n!==n){for(;t<e.length;){if(r=e[t],typeof r=="number"&&r!==r)return t;t+=1}return-1}return e.indexOf(n,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(n,t);case"object":if(n===null)return e.indexOf(n,t)}for(;t<e.length;){if(equals(e[t],n))return t;t+=1}return-1}function _includes(e,n){return _indexOf(n,e,0)>=0}function _quote(e){var n=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+n.replace(/"/g,'\\"')+'"'}var pad=function(n){return(n<10?"0":"")+n},_toISOString=typeof Date.prototype.toISOString=="function"?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+pad(n.getUTCMonth()+1)+"-"+pad(n.getUTCDate())+"T"+pad(n.getUTCHours())+":"+pad(n.getUTCMinutes())+":"+pad(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,n){for(var t=0,a=n.length,r=[];t<a;)e(n[t])&&(r[r.length]=n[t]),t+=1;return r}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},e}(),_xfilter=_curry2(function(n,t){return new XFilter(n,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,n){return _isObject(n)?_reduce(function(t,a){return e(n[a])&&(t[a]=n[a]),t},{},keys(n)):_filter(e,n)})),reject=_curry2(function(n,t){return filter$1(_complement(n),t)});function _toString(e,n){var t=function(s){var i=n.concat([e]);return _includes(s,i)?"<Circular>":_toString(s,i)},a=function(o,s){return _map(function(i){return _quote(i)+": "+t(o[i])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(t,e).join(", ")+"))";case"[object Array]":return"["+_map(t,e).concat(a(e,reject(function(o){return/^\d+$/.test(o)},keys(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):_quote(_toISOString(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+t(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var r=e.toString();if(r!=="[object Object]")return r}return"{"+a(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(n){return _toString(n,[])}),curry=_curry1(function(n){return curryN(n.length,n)}),curry$1=curry,invoker=_curry2(function(n,t){return curryN(n+1,function(){var a=arguments[n];if(a!=null&&_isFunction(a[t]))return a[t].apply(a,Array.prototype.slice.call(arguments,0,n));throw new TypeError(toString(a)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(n,t){return t instanceof n||t!=null&&(t.constructor===n||n.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(n,t,a){var r={},o;for(o in t)_has(o,t)&&(r[o]=_has(o,a)?n(o,t[o],a[o]):t[o]);for(o in a)_has(o,a)&&!_has(o,r)&&(r[o]=a[o]);return r}),mergeDeepWithKey=_curry3(function e(n,t,a){return mergeWithKey(function(r,o,s){return _isObject(o)&&_isObject(s)?e(n,o,s):n(r,o,s)},t,a)}),mergeDeepLeft=_curry2(function(n,t){return mergeDeepWithKey(function(a,r,o){return r},n,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(n,t){for(var a={},r={},o=0,s=n.length;o<s;)r[n[o]]=1,o+=1;for(var i in t)r.hasOwnProperty(i)||(a[i]=t[i]);return a}),omit$1=omit,pickBy=_curry2(function(n,t){var a={};for(var r in t)n(t[r],r,t)&&(a[r]=t[r]);return a}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(n,t){for(var a=0,r=Math.min(n.length,t.length),o={};a<r;)o[n[a]]=t[a],a+=1;return o}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,n)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",n).filter(t=>t!==""):map$2(prop$1(e),n)),mapKeys=(e,n)=>zipObj$1(map$2(e,keys(n)),values$1(n)),kebabize=e=>e.split("").map((n,t)=>n.toUpperCase()===n?`${t!==0?"-":""}${n.toLowerCase()}`:n).join("");function ascending$1(e,n){return e==null||n==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function descending$1(e,n){return e==null||n==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function bisector(e){let n,t,a;e.length!==2?(n=ascending$1,t=(i,l)=>ascending$1(e(i),l),a=(i,l)=>e(i)-l):(n=e===ascending$1||e===descending$1?e:zero$1,t=e,a=e);function r(i,l,u=0,c=i.length){if(u<c){if(n(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<0?u=d+1:c=d}while(u<c)}return u}function o(i,l,u=0,c=i.length){if(u<c){if(n(l,l)!==0)return c;do{const d=u+c>>>1;t(i[d],l)<=0?u=d+1:c=d}while(u<c)}return u}function s(i,l,u=0,c=i.length){const d=r(i,l,u,c-1);return d>u&&a(i[d-1],l)>-a(i[d],l)?d-1:d}return{left:r,center:s,right:o}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(e,n){let t,a;for(const r of e)r!=null&&(t===void 0?r>=r&&(t=a=r):(t>r&&(t=r),a<r&&(a=r)));return[t,a]}class InternMap extends Map{constructor(n,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[a,r]of n)this.set(a,r)}get(n){return super.get(intern_get(this,n))}has(n){return super.has(intern_get(this,n))}set(n,t){return super.set(intern_set(this,n),t)}delete(n){return super.delete(intern_delete(this,n))}}function intern_get({_intern:e,_key:n},t){const a=n(t);return e.has(a)?e.get(a):t}function intern_set({_intern:e,_key:n},t){const a=n(t);return e.has(a)?e.get(a):(e.set(a,t),t)}function intern_delete({_intern:e,_key:n},t){const a=n(t);return e.has(a)&&(t=e.get(a),e.delete(a)),t}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,n,t){const a=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(a)),o=a/Math.pow(10,r),s=o>=e10?10:o>=e5?5:o>=e2?2:1;let i,l,u;return r<0?(u=Math.pow(10,-r)/s,i=Math.round(e*u),l=Math.round(n*u),i/u<e&&++i,l/u>n&&--l,u=-u):(u=Math.pow(10,r)*s,i=Math.round(e/u),l=Math.round(n/u),i*u<e&&++i,l*u>n&&--l),l<i&&.5<=t&&t<2?tickSpec(e,n,t*2):[i,l,u]}function ticks(e,n,t){if(n=+n,e=+e,t=+t,!(t>0))return[];if(e===n)return[e];const a=n<e,[r,o,s]=a?tickSpec(n,e,t):tickSpec(e,n,t);if(!(o>=r))return[];const i=o-r+1,l=new Array(i);if(a)if(s<0)for(let u=0;u<i;++u)l[u]=(o-u)/-s;else for(let u=0;u<i;++u)l[u]=(o-u)*s;else if(s<0)for(let u=0;u<i;++u)l[u]=(r+u)/-s;else for(let u=0;u<i;++u)l[u]=(r+u)*s;return l}function tickIncrement(e,n,t){return n=+n,e=+e,t=+t,tickSpec(e,n,t)[2]}function tickStep(e,n,t){n=+n,e=+e,t=+t;const a=n<e,r=a?tickIncrement(n,e,t):tickIncrement(e,n,t);return(a?-1:1)*(r<0?1/-r:r)}function max$1(e,n){let t;if(n===void 0)for(const a of e)a!=null&&(t<a||t===void 0&&a>=a)&&(t=a);else{let a=-1;for(let r of e)(r=n(r,++a,e))!=null&&(t<r||t===void 0&&r>=r)&&(t=r)}return t}function min$1(e,n){let t;if(n===void 0)for(const a of e)a!=null&&(t>a||t===void 0&&a>=a)&&(t=a);else{let a=-1;for(let r of e)(r=n(r,++a,e))!=null&&(t>r||t===void 0&&r>=r)&&(t=r)}return t}function range(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var a=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,o=new Array(r);++a<r;)o[a]=e+a*t;return o}function initRange(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}function initInterpolator(e,n){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,n=[],t=[],a=implicit;function r(o){let s=e.get(o);if(s===void 0){if(a!==implicit)return a;e.set(o,s=n.push(o)-1)}return t[s%t.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],e=new InternMap;for(const s of o)e.has(s)||e.set(s,n.push(s)-1);return r},r.range=function(o){return arguments.length?(t=Array.from(o),r):t.slice()},r.unknown=function(o){return arguments.length?(a=o,r):a},r.copy=function(){return ordinal(n,t).unknown(a)},initRange.apply(r,arguments),r}function band(){var e=ordinal().unknown(void 0),n=e.domain,t=e.range,a=0,r=1,o,s,i=!1,l=0,u=0,c=.5;delete e.unknown;function d(){var f=n().length,v=r<a,p=v?r:a,h=v?a:r;o=(h-p)/Math.max(1,f-l+u*2),i&&(o=Math.floor(o)),p+=(h-p-o*(f-l))*c,s=o*(1-l),i&&(p=Math.round(p),s=Math.round(s));var m=range(f).map(function(_){return p+o*_});return t(v?m.reverse():m)}return e.domain=function(f){return arguments.length?(n(f),d()):n()},e.range=function(f){return arguments.length?([a,r]=f,a=+a,r=+r,d()):[a,r]},e.rangeRound=function(f){return[a,r]=f,a=+a,r=+r,i=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(i=!!f,d()):i},e.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},e.align=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),d()):c},e.copy=function(){return band(n(),[a,r]).round(i).paddingInner(l).paddingOuter(u).align(c)},initRange.apply(d(),arguments)}function define(e,n,t){e.prototype=n.prototype=t,t.constructor=e}function extend(e,n){var t=Object.create(e.prototype);for(var a in n)t[a]=n[a];return t}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var n,t;return e=(e+"").trim().toLowerCase(),(n=reHex.exec(e))?(t=n[1].length,n=parseInt(n[1],16),t===6?rgbn(n):t===3?new Rgb(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?rgba(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?rgba(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=reRgbInteger.exec(e))?new Rgb(n[1],n[2],n[3],1):(n=reRgbPercent.exec(e))?new Rgb(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=reRgbaInteger.exec(e))?rgba(n[1],n[2],n[3],n[4]):(n=reRgbaPercent.exec(e))?rgba(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=reHslPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,1):(n=reHslaPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,n[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,n,t,a){return a<=0&&(e=n=t=NaN),new Rgb(e,n,t,a)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,n,t,a){return arguments.length===1?rgbConvert(e):new Rgb(e,n,t,a??1)}function Rgb(e,n,t,a){this.r=+e,this.g=+n,this.b=+t,this.opacity=+a}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,n,t,a){return a<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new Hsl(e,n,t,a)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var n=e.r/255,t=e.g/255,a=e.b/255,r=Math.min(n,t,a),o=Math.max(n,t,a),s=NaN,i=o-r,l=(o+r)/2;return i?(n===o?s=(t-a)/i+(t<a)*6:t===o?s=(a-n)/i+2:s=(n-t)/i+4,i/=l<.5?o+r:2-o-r,s*=60):i=l>0&&l<1?0:s,new Hsl(s,i,l,e.opacity)}function hsl(e,n,t,a){return arguments.length===1?hslConvert(e):new Hsl(e,n,t,a??1)}function Hsl(e,n,t,a){this.h=+e,this.s=+n,this.l=+t,this.opacity=+a}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*n,r=2*t-a;return new Rgb(hsl2rgb(e>=240?e-240:e+120,r,a),hsl2rgb(e,r,a),hsl2rgb(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl)return hcl2lab(e);e instanceof Rgb||(e=rgbConvert(e));var n=rgb2lrgb(e.r),t=rgb2lrgb(e.g),a=rgb2lrgb(e.b),r=xyz2lab((.2225045*n+.7168786*t+.0606169*a)/Yn),o,s;return n===t&&t===a?o=s=r:(o=xyz2lab((.4360747*n+.3850649*t+.1430804*a)/Xn),s=xyz2lab((.0139322*n+.0971045*t+.7141733*a)/Zn)),new Lab(116*r-16,500*(o-r),200*(r-s),e.opacity)}function lab(e,n,t,a){return arguments.length===1?labConvert(e):new Lab(e,n,t,a??1)}function Lab(e,n,t,a){this.l=+e,this.a=+n,this.b=+t,this.opacity=+a}define(Lab,lab,extend(Color,{brighter(e){return new Lab(this.l+K*(e??1),this.a,this.b,this.opacity)},darker(e){return new Lab(this.l-K*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return n=Xn*lab2xyz(n),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*n-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*n+1.9161415*e+.033454*t),lrgb2rgb(.0719453*n-.2289914*e+1.4052427*t),this.opacity)}}));function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0}function lab2xyz(e){return e>t1?e*e*e:t2*(e-t0)}function lrgb2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);if(e instanceof Lab||(e=labConvert(e)),e.a===0&&e.b===0)return new Hcl(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var n=Math.atan2(e.b,e.a)*degrees;return new Hcl(n<0?n+360:n,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,n,t,a){return arguments.length===1?hclConvert(e):new Hcl(e,n,t,a??1)}function Hcl(e,n,t,a){this.h=+e,this.c=+n,this.l=+t,this.opacity=+a}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var n=e.h*radians;return new Lab(e.l,Math.cos(n)*e.c,Math.sin(n)*e.c,e.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(e){return new Hcl(this.h,this.c,this.l+K*(e??1),this.opacity)},darker(e){return new Hcl(this.h,this.c,this.l-K*(e??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=e=>()=>e;function linear$1(e,n){return function(t){return e+t*n}}function exponential(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(a){return Math.pow(e+a*n,t)}}function hue(e,n){var t=n-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?n:e)}function gamma(e){return(e=+e)==1?nogamma:function(n,t){return t-n?exponential(n,t,e):constant$3(isNaN(n)?t:n)}}function nogamma(e,n){var t=n-e;return t?linear$1(e,t):constant$3(isNaN(e)?n:e)}var rgb=function e(n){var t=gamma(n);function a(r,o){var s=t((r=rgb$1(r)).r,(o=rgb$1(o)).r),i=t(r.g,o.g),l=t(r.b,o.b),u=nogamma(r.opacity,o.opacity);return function(c){return r.r=s(c),r.g=i(c),r.b=l(c),r.opacity=u(c),r+""}}return a.gamma=e,a}(1);function numberArray(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,a=n.slice(),r;return function(o){for(r=0;r<t;++r)a[r]=e[r]*(1-o)+n[r]*o;return a}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,n){var t=n?n.length:0,a=e?Math.min(t,e.length):0,r=new Array(a),o=new Array(t),s;for(s=0;s<a;++s)r[s]=interpolate(e[s],n[s]);for(;s<t;++s)o[s]=n[s];return function(i){for(s=0;s<a;++s)o[s]=r[s](i);return o}}function date(e,n){var t=new Date;return e=+e,n=+n,function(a){return t.setTime(e*(1-a)+n*a),t}}function interpolateNumber(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function object(e,n){var t={},a={},r;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!="object")&&(n={});for(r in n)r in e?t[r]=interpolate(e[r],n[r]):a[r]=n[r];return function(o){for(r in t)a[r]=t[r](o);return a}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(n){return e(n)+""}}function string$1(e,n){var t=reA.lastIndex=reB.lastIndex=0,a,r,o,s=-1,i=[],l=[];for(e=e+"",n=n+"";(a=reA.exec(e))&&(r=reB.exec(n));)(o=r.index)>t&&(o=n.slice(t,o),i[s]?i[s]+=o:i[++s]=o),(a=a[0])===(r=r[0])?i[s]?i[s]+=r:i[++s]=r:(i[++s]=null,l.push({i:s,x:interpolateNumber(a,r)})),t=reB.lastIndex;return t<n.length&&(o=n.slice(t),i[s]?i[s]+=o:i[++s]=o),i.length<2?l[0]?one(l[0].x):zero(n):(n=l.length,function(u){for(var c=0,d;c<n;++c)i[(d=l[c]).i]=d.x(u);return i.join("")})}function interpolate(e,n){var t=typeof n,a;return n==null||t==="boolean"?constant$3(n):(t==="number"?interpolateNumber:t==="string"?(a=color(n))?(n=a,rgb):string$1:n instanceof color?rgb:n instanceof Date?date:isNumberArray(n)?numberArray:Array.isArray(n)?genericArray:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?object:interpolateNumber)(e,n)}function interpolateRound(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}function hcl(e){return function(n,t){var a=e((n=hcl$1(n)).h,(t=hcl$1(t)).h),r=nogamma(n.c,t.c),o=nogamma(n.l,t.l),s=nogamma(n.opacity,t.opacity);return function(i){return n.h=a(i),n.c=r(i),n.l=o(i),n.opacity=s(i),n+""}}}var interpolateHcl=hcl(hue);function constants$2(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$3(e){return e}function normalize$1(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:constants$2(isNaN(n)?NaN:.5)}function clamper(e,n){var t;return e>n&&(t=e,e=n,n=t),function(a){return Math.max(e,Math.min(n,a))}}function bimap(e,n,t){var a=e[0],r=e[1],o=n[0],s=n[1];return r<a?(a=normalize$1(r,a),o=t(s,o)):(a=normalize$1(a,r),o=t(o,s)),function(i){return o(a(i))}}function polymap(e,n,t){var a=Math.min(e.length,n.length)-1,r=new Array(a),o=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++s<a;)r[s]=normalize$1(e[s],e[s+1]),o[s]=t(n[s],n[s+1]);return function(i){var l=bisectRight(e,i,1,a)-1;return o[l](r[l](i))}}function copy$1(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,n=unit,t=interpolate,a,r,o,s=identity$3,i,l,u;function c(){var f=Math.min(e.length,n.length);return s!==identity$3&&(s=clamper(e[0],e[f-1])),i=f>2?polymap:bimap,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=i(e.map(a),n,t)))(a(s(f)))}return d.invert=function(f){return s(r((u||(u=i(n,e.map(a),interpolateNumber)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,number$1),c()):e.slice()},d.range=function(f){return arguments.length?(n=Array.from(f),c()):n.slice()},d.rangeRound=function(f){return n=Array.from(f),t=interpolateRound,c()},d.clamp=function(f){return arguments.length?(s=f?!0:identity$3,c()):s!==identity$3},d.interpolate=function(f){return arguments.length?(t=f,c()):t},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,v){return a=f,r=v,c()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,n){if((t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"))<0)return null;var t,a=e.slice(0,t);return[a.length>1?a[0]+a.slice(2):a,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,n){return function(t,a){for(var r=t.length,o=[],s=0,i=e[0],l=0;r>0&&i>0&&(l+i+1>a&&(i=Math.max(1,a-l)),o.push(t.substring(r-=i,r+i)),!((l+=i+1)>a));)i=e[s=(s+1)%e.length];return o.reverse().join(n)}}function formatNumerals(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(n=re.exec(e)))throw new Error("invalid format: "+e);var n;return new FormatSpecifier({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var n=e.length,t=1,a=-1,r;t<n;++t)switch(e[t]){case".":a=r=t;break;case"0":a===0&&(a=t),r=t;break;default:if(!+e[t])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(r+1):e}var prefixExponent;function formatPrefixAuto(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var a=t[0],r=t[1],o=r-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=a.length;return o===s?a:o>s?a+new Array(o-s+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+formatDecimalParts(e,Math.max(0,n+o-1))[0]}function formatRounded(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var a=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}var formatTypes={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>formatRounded(e*100,n),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$2(e){return e}var map$3=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(e){var n=e.grouping===void 0||e.thousands===void 0?identity$2:formatGroup(map$3.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?identity$2:formatNumerals(map$3.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=formatSpecifier(d);var f=d.fill,v=d.align,p=d.sign,h=d.symbol,m=d.zero,_=d.width,g=d.comma,b=d.precision,S=d.trim,k=d.type;k==="n"?(g=!0,k="g"):formatTypes[k]||(b===void 0&&(b=12),S=!0,k="g"),(m||f==="0"&&v==="=")&&(m=!0,f="0",v="=");var V=h==="$"?t:h==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",L=h==="$"?a:/[%p]/.test(k)?s:"",$=formatTypes[k],A=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function F(P){var q=V,M=L,j,Q,J;if(k==="c")M=$(P)+M,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?l:$(Math.abs(P),b),S&&(P=formatTrim(P)),W&&+P==0&&p!=="+"&&(W=!1),q=(W?p==="("?p:i:p==="-"||p==="("?"":p)+q,M=(k==="s"?prefixes[8+prefixExponent/3]:"")+M+(W&&p==="("?")":""),A){for(j=-1,Q=P.length;++j<Q;)if(J=P.charCodeAt(j),48>J||J>57){M=(J===46?r+P.slice(j+1):P.slice(j))+M,P=P.slice(0,j);break}}}g&&!m&&(P=n(P,1/0));var C=q.length+P.length+M.length,E=C<_?new Array(_-C+1).join(f):"";switch(g&&m&&(P=n(E+P,E.length?_-M.length:1/0),E=""),v){case"<":P=q+P+M+E;break;case"=":P=q+E+P+M;break;case"^":P=E.slice(0,C=E.length>>1)+q+P+M+E.slice(C);break;default:P=E+q+P+M;break}return o(P)}return F.toString=function(){return d+""},F}function c(d,f){var v=u((d=formatSpecifier(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(exponent(f)/3)))*3,h=Math.pow(10,-p),m=prefixes[8+p/3];return function(_){return v(h*_)+m}}return{format:u,formatPrefix:c}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(e){return locale=formatLocale(e),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(n)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,exponent(n)-exponent(e))+1}function tickFormat(e,n,t,a){var r=tickStep(e,n,t),o;switch(a=formatSpecifier(a??",f"),a.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(n));return a.precision==null&&!isNaN(o=precisionPrefix(r,s))&&(a.precision=o),formatPrefix(a,s)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=precisionRound(r,Math.max(Math.abs(e),Math.abs(n))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=precisionFixed(r))&&(a.precision=o-(a.type==="%")*2);break}}return format(a)}function linearish(e){var n=e.domain;return e.ticks=function(t){var a=n();return ticks(a[0],a[a.length-1],t??10)},e.tickFormat=function(t,a){var r=n();return tickFormat(r[0],r[r.length-1],t??10,a)},e.nice=function(t){t==null&&(t=10);var a=n(),r=0,o=a.length-1,s=a[r],i=a[o],l,u,c=10;for(i<s&&(u=s,s=i,i=u,u=r,r=o,o=u);c-- >0;){if(u=tickIncrement(s,i,t),u===l)return a[r]=s,a[o]=i,n(a);if(u>0)s=Math.floor(s/u)*u,i=Math.ceil(i/u)*u;else if(u<0)s=Math.ceil(s*u)/u,i=Math.floor(i*u)/u;else break;l=u}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function transformer(){var e=0,n=1,t,a,r,o,s=identity$3,i=!1,l;function u(d){return d==null||isNaN(d=+d)?l:s(r===0?.5:(d=(o(d)-t)*r,i?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,n]=d,t=o(e=+e),a=o(n=+n),r=t===a?0:1/(a-t),u):[e,n]},u.clamp=function(d){return arguments.length?(i=!!d,u):i},u.interpolator=function(d){return arguments.length?(s=d,u):s};function c(d){return function(f){var v,p;return arguments.length?([v,p]=f,s=d(v,p),u):[s(0),s(1)]}}return u.range=c(interpolate),u.rangeRound=c(interpolateRound),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return o=d,t=d(e),a=d(n),r=t===a?0:1/(a-t),u}}function copy(e,n){return n.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer()(identity$3));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}class Scale{constructor(e){this.config=e,this.createScale(e.type)}createScale(e){switch(e){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(e){this.createScale(e.type),this.config=e}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(e){this.scale=this.scale.copy().range(e)}updateDomain(e,n,t){const a=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,n,t);this.scale=this.scale.copy().domain(a)}map(e){return e.map(n=>this.mapOne(n))}mapOne(e){const{type:n}=this.config;return n==="band"?this.scale(e)+this.scale.bandwidth()/2:this.scale(e)}ticks(){const{type:e}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:e==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(e,n){const t=n.reduce((a,r)=>a.concat(getCol(r,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,n)=>e.concat(getCol(n,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,n=>max$1(n)))||0,valueMin=min$1(stackedData,e=>min$1(e,n=>min$1(n)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
|
|
98
98
|
let dataMin = ${dataMin||0}
|
|
99
99
|
${domain[0]}
|
|
100
100
|
`),yMax=eval(`
|
|
101
101
|
let dataMax = ${dataMax||0}
|
|
102
102
|
${domain[1]}
|
|
103
|
-
`);return[yMin,yMax]}}class Scales{constructor(n){this.config=n,this.primary=new Scale(n.primary),this.secondary=new Scale(n.secondary)}changeConfig(n){this.config=n,this.primary.changeConfig(n.primary),this.secondary.changeConfig(n.secondary)}updateRange(n,t){t==="horizontal"?(this.primary.updateRange([n.x,n.width]),this.secondary.updateRange([n.height,n.y])):t==="vertical"&&(this.primary.updateRange([n.y,n.height]),this.secondary.updateRange([n.x,n.width]))}updateDomain(n,t,a){this.primary.updateDomain(n,t,getCol(0,a)),this.secondary.updateDomain(n,t,getCol(1,a))}}function constant$2(e){return function(){return e}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(e){return e>1?0:e<-1?pi$1:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(e){this._+=e[0];for(let n=1,t=e.length;n<t;++n)this._+=arguments[n]+e[n]}function appendRound(e){let n=Math.floor(e);if(!(n>=0))throw new Error(`invalid digits: ${e}`);if(n>15)return append;const t=10**n;return function(a){this._+=a[0];for(let r=1,o=a.length;r<o;++r)this._+=Math.round(arguments[r]*t)/t+a[r]}}class Path{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?append:appendRound(n)}moveTo(n,t){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,t){this._append`L${this._x1=+n},${this._y1=+t}`}quadraticCurveTo(n,t,a,r){this._append`Q${+n},${+t},${this._x1=+a},${this._y1=+r}`}bezierCurveTo(n,t,a,r,o,s){this._append`C${+n},${+t},${+a},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(n,t,a,r,o){if(n=+n,t=+t,a=+a,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,i=this._y1,l=a-n,u=r-t,c=s-n,d=i-t,f=c*c+d*d;if(this._x1===null)this._append`M${this._x1=n},${this._y1=t}`;else if(f>epsilon$1)if(!(Math.abs(d*l-u*c)>epsilon$1)||!o)this._append`L${this._x1=n},${this._y1=t}`;else{let v=a-s,p=r-i,h=l*l+u*u,g=v*v+p*p,m=Math.sqrt(h),_=Math.sqrt(f),b=o*Math.tan((pi-Math.acos((h+f-g)/(2*m*_)))/2),S=b/_,k=b/m;Math.abs(S-1)>epsilon$1&&this._append`L${n+S*c},${t+S*d}`,this._append`A${o},${o},0,0,${+(d*v>c*p)},${this._x1=n+k*l},${this._y1=t+k*u}`}}arc(n,t,a,r,o,s){if(n=+n,t=+t,a=+a,s=!!s,a<0)throw new Error(`negative radius: ${a}`);let i=a*Math.cos(r),l=a*Math.sin(r),u=n+i,c=t+l,d=1^s,f=s?r-o:o-r;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-c)>epsilon$1)&&this._append`L${u},${c}`,a&&(f<0&&(f=f%tau+tau),f>tauEpsilon?this._append`A${a},${a},0,1,${d},${n-i},${t-l}A${a},${a},0,1,${d},${this._x1=u},${this._y1=c}`:f>epsilon$1&&this._append`A${a},${a},0,${+(f>=pi)},${d},${this._x1=n+a*Math.cos(o)},${this._y1=t+a*Math.sin(o)}`)}rect(n,t,a,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${a=+a}v${+r}h${-a}Z`}toString(){return this._}}function withPath(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const a=Math.floor(t);if(!(a>=0))throw new RangeError(`invalid digits: ${t}`);n=a}return e},()=>new Path(n)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,n,t,a,r,o,s,i){var l=t-e,u=a-n,c=s-r,d=i-o,f=d*l-c*u;if(!(f*f<epsilon$2))return f=(c*(n-o)-d*(e-r))/f,[e+f*l,n+f*u]}function cornerTangents(e,n,t,a,r,o,s){var i=e-t,l=n-a,u=(s?o:-o)/sqrt(i*i+l*l),c=u*l,d=-u*i,f=e+c,v=n+d,p=t+c,h=a+d,g=(f+p)/2,m=(v+h)/2,_=p-f,b=h-v,S=_*_+b*b,k=r-o,V=f*h-p*v,L=(b<0?-1:1)*sqrt(max(0,k*k*S-V*V)),$=(V*b-_*L)/S,A=(-V*_-b*L)/S,F=(V*b+_*L)/S,P=(-V*_+b*L)/S,q=$-g,M=A-m,j=F-g,Q=P-m;return q*q+M*M>j*j+Q*Q&&($=F,A=P),{cx:$,cy:A,x01:-c,y01:-d,x11:$*(r/k-1),y11:A*(r/k-1)}}function arc(){var e=arcInnerRadius,n=arcOuterRadius,t=constant$2(0),a=null,r=arcStartAngle,o=arcEndAngle,s=arcPadAngle,i=null,l=withPath(u);function u(){var c,d,f=+e.apply(this,arguments),v=+n.apply(this,arguments),p=r.apply(this,arguments)-halfPi,h=o.apply(this,arguments)-halfPi,g=abs(h-p),m=h>p;if(i||(i=c=l()),v<f&&(d=v,v=f,f=d),!(v>epsilon$2))i.moveTo(0,0);else if(g>tau$1-epsilon$2)i.moveTo(v*cos(p),v*sin(p)),i.arc(0,0,v,p,h,!m),f>epsilon$2&&(i.moveTo(f*cos(h),f*sin(h)),i.arc(0,0,f,h,p,m));else{var _=p,b=h,S=p,k=h,V=g,L=g,$=s.apply(this,arguments)/2,A=$>epsilon$2&&(a?+a.apply(this,arguments):sqrt(f*f+v*v)),F=min(abs(v-f)/2,+t.apply(this,arguments)),P=F,q=F,M,j;if(A>epsilon$2){var Q=asin(A/f*sin($)),J=asin(A/v*sin($));(V-=Q*2)>epsilon$2?(Q*=m?1:-1,S+=Q,k-=Q):(V=0,S=k=(p+h)/2),(L-=J*2)>epsilon$2?(J*=m?1:-1,_+=J,b-=J):(L=0,_=b=(p+h)/2)}var W=v*cos(_),C=v*sin(_),E=f*cos(k),T=f*sin(k);if(F>epsilon$2){var z=v*cos(b),Y=v*sin(b),w=f*cos(S),B=f*sin(S),N;if(g<pi$1)if(N=intersect(W,C,w,B,z,Y,E,T)){var D=W-N[0],I=C-N[1],R=z-N[0],H=Y-N[1],U=1/sin(acos((D*R+I*H)/(sqrt(D*D+I*I)*sqrt(R*R+H*H)))/2),G=sqrt(N[0]*N[0]+N[1]*N[1]);P=min(F,(f-G)/(U-1)),q=min(F,(v-G)/(U+1))}else P=q=0}L>epsilon$2?q>epsilon$2?(M=cornerTangents(w,B,W,C,v,q,m),j=cornerTangents(z,Y,E,T,v,q,m),i.moveTo(M.cx+M.x01,M.cy+M.y01),q<F?i.arc(M.cx,M.cy,q,atan2(M.y01,M.x01),atan2(j.y01,j.x01),!m):(i.arc(M.cx,M.cy,q,atan2(M.y01,M.x01),atan2(M.y11,M.x11),!m),i.arc(0,0,v,atan2(M.cy+M.y11,M.cx+M.x11),atan2(j.cy+j.y11,j.cx+j.x11),!m),i.arc(j.cx,j.cy,q,atan2(j.y11,j.x11),atan2(j.y01,j.x01),!m))):(i.moveTo(W,C),i.arc(0,0,v,_,b,!m)):i.moveTo(W,C),!(f>epsilon$2)||!(V>epsilon$2)?i.lineTo(E,T):P>epsilon$2?(M=cornerTangents(E,T,z,Y,f,-P,m),j=cornerTangents(W,C,w,B,f,-P,m),i.lineTo(M.cx+M.x01,M.cy+M.y01),P<F?i.arc(M.cx,M.cy,P,atan2(M.y01,M.x01),atan2(j.y01,j.x01),!m):(i.arc(M.cx,M.cy,P,atan2(M.y01,M.x01),atan2(M.y11,M.x11),!m),i.arc(0,0,f,atan2(M.cy+M.y11,M.cx+M.x11),atan2(j.cy+j.y11,j.cx+j.x11),m),i.arc(j.cx,j.cy,P,atan2(j.y11,j.x11),atan2(j.y01,j.x01),!m))):i.arc(0,0,f,k,S,m)}if(i.closePath(),c)return i=null,c+""||null}return u.centroid=function(){var c=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,d=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-pi$1/2;return[cos(d)*c,sin(d)*c]},u.innerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:constant$2(+c),u):e},u.outerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:constant$2(+c),u):n},u.cornerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:constant$2(+c),u):t},u.padRadius=function(c){return arguments.length?(a=c==null?null:typeof c=="function"?c:constant$2(+c),u):a},u.startAngle=function(c){return arguments.length?(r=typeof c=="function"?c:constant$2(+c),u):r},u.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:constant$2(+c),u):o},u.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:constant$2(+c),u):s},u.context=function(c){return arguments.length?(i=c??null,u):i},u}function array$1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,n){var t=constant$2(!0),a=null,r=curveLinear,o=null,s=withPath(i);e=typeof e=="function"?e:e===void 0?x:constant$2(e),n=typeof n=="function"?n:n===void 0?y:constant$2(n);function i(l){var u,c=(l=array$1(l)).length,d,f=!1,v;for(a==null&&(o=r(v=s())),u=0;u<=c;++u)!(u<c&&t(d=l[u],u,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,u,l),+n(d,u,l));if(v)return o=null,v+""||null}return i.x=function(l){return arguments.length?(e=typeof l=="function"?l:constant$2(+l),i):e},i.y=function(l){return arguments.length?(n=typeof l=="function"?l:constant$2(+l),i):n},i.defined=function(l){return arguments.length?(t=typeof l=="function"?l:constant$2(!!l),i):t},i.curve=function(l){return arguments.length?(r=l,a!=null&&(o=r(a)),i):r},i.context=function(l){return arguments.length?(l==null?a=o=null:o=r(a=l),i):a},i}function area(e,n,t){var a=null,r=constant$2(!0),o=null,s=curveLinear,i=null,l=withPath(u);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),n=typeof n=="function"?n:constant$2(n===void 0?0:+n),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function u(d){var f,v,p,h=(d=array$1(d)).length,g,m=!1,_,b=new Array(h),S=new Array(h);for(o==null&&(i=s(_=l())),f=0;f<=h;++f){if(!(f<h&&r(g=d[f],f,d))===m)if(m=!m)v=f,i.areaStart(),i.lineStart();else{for(i.lineEnd(),i.lineStart(),p=f-1;p>=v;--p)i.point(b[p],S[p]);i.lineEnd(),i.areaEnd()}m&&(b[f]=+e(g,f,d),S[f]=+n(g,f,d),i.point(a?+a(g,f,d):b[f],t?+t(g,f,d):S[f]))}if(_)return i=null,_+""||null}function c(){return line().defined(r).curve(s).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),a=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),u):e},u.x1=function(d){return arguments.length?(a=d==null?null:typeof d=="function"?d:constant$2(+d),u):a},u.y=function(d){return arguments.length?(n=typeof d=="function"?d:constant$2(+d),t=null,u):n},u.y0=function(d){return arguments.length?(n=typeof d=="function"?d:constant$2(+d),u):n},u.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:constant$2(+d),u):t},u.lineX0=u.lineY0=function(){return c().x(e).y(n)},u.lineY1=function(){return c().x(e).y(t)},u.lineX1=function(){return c().x(a).y(n)},u.defined=function(d){return arguments.length?(r=typeof d=="function"?d:constant$2(!!d),u):r},u.curve=function(d){return arguments.length?(s=d,o!=null&&(i=s(o)),u):s},u.context=function(d){return arguments.length?(d==null?o=i=null:i=s(o=d),u):o},u}function descending(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,n=descending,t=null,a=constant$2(0),r=constant$2(tau$1),o=constant$2(0);function s(i){var l,u=(i=array$1(i)).length,c,d,f=0,v=new Array(u),p=new Array(u),h=+a.apply(this,arguments),g=Math.min(tau$1,Math.max(-tau$1,r.apply(this,arguments)-h)),m,_=Math.min(Math.abs(g)/u,o.apply(this,arguments)),b=_*(g<0?-1:1),S;for(l=0;l<u;++l)(S=p[v[l]=l]=+e(i[l],l,i))>0&&(f+=S);for(n!=null?v.sort(function(k,V){return n(p[k],p[V])}):t!=null&&v.sort(function(k,V){return t(i[k],i[V])}),l=0,d=f?(g-u*b)/f:0;l<u;++l,h=m)c=v[l],S=p[c],m=h+(S>0?S*d:0)+b,p[c]={data:i[c],index:l,value:S,startAngle:h,endAngle:m,padAngle:_};return p}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:constant$2(+i),s):e},s.sortValues=function(i){return arguments.length?(n=i,t=null,s):n},s.sort=function(i){return arguments.length?(t=i,n=null,s):t},s.startAngle=function(i){return arguments.length?(a=typeof i=="function"?i:constant$2(+i),s):a},s.endAngle=function(i){return arguments.length?(r=typeof i=="function"?i:constant$2(+i),s):r},s.padAngle=function(i){return arguments.length?(o=typeof i=="function"?i:constant$2(+i),s):o},s}function sign(e){return e<0?-1:1}function slope3(e,n,t){var a=e._x1-e._x0,r=n-e._x1,o=(e._y1-e._y0)/(a||r<0&&-0),s=(t-e._y1)/(r||a<0&&-0),i=(o*r+s*a)/(a+r);return(sign(o)+sign(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(i))||0}function slope2(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function point(e,n,t){var a=e._x0,r=e._y0,o=e._x1,s=e._y1,i=(o-a)/3;e._context.bezierCurveTo(a+i,r+i*n,o-i,s-i*t,o,s)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,n)),t);break;default:point(this,this._t0,t=slope3(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,n){MonotoneX.prototype.point.call(this,n,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,a,r,o){this._context.bezierCurveTo(n,e,a,t,o,r)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var a=controlPoints(e),r=controlPoints(n),o=0,s=1;s<t;++o,++s)this._context.bezierCurveTo(a[0][o],r[0][o],a[1][o],r[1][o],e[s],n[s]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,n){this._x.push(+e),this._y.push(+n)}};function controlPoints(e){var n,t=e.length-1,a,r=new Array(t),o=new Array(t),s=new Array(t);for(r[0]=0,o[0]=2,s[0]=e[0]+2*e[1],n=1;n<t-1;++n)r[n]=1,o[n]=4,s[n]=4*e[n]+2*e[n+1];for(r[t-1]=2,o[t-1]=7,s[t-1]=8*e[t-1]+e[t],n=1;n<t;++n)a=r[n]/o[n-1],o[n]-=a,s[n]-=a*s[n-1];for(r[t-1]=s[t-1]/o[t-1],n=t-2;n>=0;--n)r[n]=(s[n]-r[n+1])/o[n];for(o[t-1]=(e[t]+r[t-1])/2,n=0;n<t-1;++n)o[n]=2*e[n+1]-r[n+1];return[r,o]}function curveNatural(e){return new Natural(e)}function Step(e,n){this._context=e,this._t=n}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,n){if((s=e.length)>1)for(var t=1,a,r,o=e[n[0]],s,i=o.length;t<s;++t)for(r=o,o=e[n[t]],a=0;a<i;++a)o[a][1]+=o[a][0]=isNaN(r[a][1])?r[a][0]:r[a][1]}function stackOrderNone(e){for(var n=e.length,t=new Array(n);--n>=0;)t[n]=n;return t}function stackValue(e,n){return e[n]}function stackSeries(e){const n=[];return n.key=e,n}function stack(){var e=constant$2([]),n=stackOrderNone,t=none$1,a=stackValue;function r(o){var s=Array.from(e.apply(this,arguments),stackSeries),i,l=s.length,u=-1,c;for(const d of o)for(i=0,++u;i<l;++i)(s[i][u]=[0,+a(d,s[i].key,u,o)]).data=d;for(i=0,c=array$1(n(s));i<l;++i)s[c[i]].index=i;return t(s,c),s}return r.keys=function(o){return arguments.length?(e=typeof o=="function"?o:constant$2(Array.from(o)),r):e},r.value=function(o){return arguments.length?(a=typeof o=="function"?o:constant$2(+o),r):a},r.order=function(o){return arguments.length?(n=o==null?stackOrderNone:typeof o=="function"?o:constant$2(Array.from(o)),r):n},r.offset=function(o){return arguments.length?(t=o??none$1,r):t},r}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(n,t){this.data=n,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(a=>a!==void 0,t),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=vue.ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:n,size:t}=this.config,a=this.config.axisSpace;return this.config.axis.primary.hide&&(a.y=0),this.config.axis.secondary.hide&&(a.x=0),{x:n.left+a.x,y:n.top,width:t.width-n.right,height:t.height-n.bottom-a.y}}getStackedData(n){return stack().keys(n).order(stackOrderNone)(this.data)}changeData(n){this.data=n,this.update("data")}changeConfig(n){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,n),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(n){this.layers.push(n),this.update("layers")}removeLayer(n){this.layers=this.layers.filter(t=>t.id!==n),this.update("layers")}getLayers(n){return n?this.layers.filter(t=>t.type===n):this.layers}getData(n){return n.reduce((t,a)=>t.concat(getCol(a,this.data)),[])}getKeys(n=-1,t=null){const a=this.layers.filter(r=>t?r.type===t:!0).map(r=>r.dataKeys);return n===-1?a:getCol(n,a)}getStackedKeys(n=-1,t=null){const a=this.layers.filter(r=>t?r.type===t&&r.props.stacked:r.props.stacked).map(r=>r.dataKeys);return n===-1?a:getCol(n,a)}update(n){const t=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,t,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var n=e+="",t=n.indexOf(":");return t>=0&&(n=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(n)?{space:namespaces[n],local:e}:e}function creatorInherit(e){return function(){var n=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&n.documentElement.namespaceURI===xhtml?n.createElement(e):n.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var n=namespace(e);return(n.local?creatorFixed:creatorInherit)(n)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var n=this._groups,t=n.length,a=new Array(t),r=0;r<t;++r)for(var o=n[r],s=o.length,i=a[r]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),i[c]=u);return new Selection(a,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty(){return[]}function selectorAll(e){return e==null?empty:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var n=this._groups,t=n.length,a=[],r=[],o=0;o<t;++o)for(var s=n[o],i=s.length,l,u=0;u<i;++u)(l=s[u])&&(a.push(e.call(l,l.__data__,u,s)),r.push(l));return new Selection(a,r)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(n){return n.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var n=this._groups,t=n.length,a=new Array(t),r=0;r<t;++r)for(var o=n[r],s=o.length,i=a[r]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&i.push(l);return new Selection(a,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$1(e){return function(){return e}}function bindIndex(e,n,t,a,r,o){for(var s=0,i,l=n.length,u=o.length;s<u;++s)(i=n[s])?(i.__data__=o[s],a[s]=i):t[s]=new EnterNode(e,o[s]);for(;s<l;++s)(i=n[s])&&(r[s]=i)}function bindKey(e,n,t,a,r,o,s){var i,l,u=new Map,c=n.length,d=o.length,f=new Array(c),v;for(i=0;i<c;++i)(l=n[i])&&(f[i]=v=s.call(l,l.__data__,i,n)+"",u.has(v)?r[i]=l:u.set(v,l));for(i=0;i<d;++i)v=s.call(e,o[i],i,o)+"",(l=u.get(v))?(a[i]=l,l.__data__=o[i],u.delete(v)):t[i]=new EnterNode(e,o[i]);for(i=0;i<c;++i)(l=n[i])&&u.get(f[i])===l&&(r[i]=l)}function datum(e){return e.__data__}function selection_data(e,n){if(!arguments.length)return Array.from(this,datum);var t=n?bindKey:bindIndex,a=this._parents,r=this._groups;typeof e!="function"&&(e=constant$1(e));for(var o=r.length,s=new Array(o),i=new Array(o),l=new Array(o),u=0;u<o;++u){var c=a[u],d=r[u],f=d.length,v=arraylike(e.call(c,c&&c.__data__,u,a)),p=v.length,h=i[u]=new Array(p),g=s[u]=new Array(p),m=l[u]=new Array(f);t(c,d,h,g,m,v,n);for(var _=0,b=0,S,k;_<p;++_)if(S=h[_]){for(_>=b&&(b=_+1);!(k=g[b])&&++b<p;);S._next=k||null}}return s=new Selection(s,a),s._enter=i,s._exit=l,s}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,n,t){var a=this.enter(),r=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),n!=null&&(r=n(r),r&&(r=r.selection())),t==null?o.remove():t(o),a&&r?a.merge(r).order():r}function selection_merge(e){for(var n=e.selection?e.selection():e,t=this._groups,a=n._groups,r=t.length,o=a.length,s=Math.min(r,o),i=new Array(r),l=0;l<s;++l)for(var u=t[l],c=a[l],d=u.length,f=i[l]=new Array(d),v,p=0;p<d;++p)(v=u[p]||c[p])&&(f[p]=v);for(;l<r;++l)i[l]=t[l];return new Selection(i,this._parents)}function selection_order(){for(var e=this._groups,n=-1,t=e.length;++n<t;)for(var a=e[n],r=a.length-1,o=a[r],s;--r>=0;)(s=a[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function selection_sort(e){e||(e=ascending);function n(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var t=this._groups,a=t.length,r=new Array(a),o=0;o<a;++o){for(var s=t[o],i=s.length,l=r[o]=new Array(i),u,c=0;c<i;++c)(u=s[c])&&(l[c]=u);l.sort(n)}return new Selection(r,this._parents).order()}function ascending(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var a=e[n],r=0,o=a.length;r<o;++r){var s=a[r];if(s)return s}return null}function selection_size(){let e=0;for(const n of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var n=this._groups,t=0,a=n.length;t<a;++t)for(var r=n[t],o=0,s=r.length,i;o<s;++o)(i=r[o])&&e.call(i,i.__data__,o,r);return this}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,n){return function(){this.setAttribute(e,n)}}function attrConstantNS(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function attrFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,n){var t=namespace(e);if(arguments.length<2){var a=this.node();return t.local?a.getAttributeNS(t.space,t.local):a.getAttribute(t)}return this.each((n==null?t.local?attrRemoveNS:attrRemove:typeof n=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,n))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,n,t){return function(){this.style.setProperty(e,n,t)}}function styleFunction(e,n,t){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,t)}}function selection_style(e,n,t){return arguments.length>1?this.each((n==null?styleRemove:typeof n=="function"?styleFunction:styleConstant)(e,n,t??"")):styleValue(this.node(),e)}function styleValue(e,n){return e.style.getPropertyValue(n)||defaultView(e).getComputedStyle(e,null).getPropertyValue(n)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,n){return function(){this[e]=n}}function propertyFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,n){return arguments.length>1?this.each((n==null?propertyRemove:typeof n=="function"?propertyFunction:propertyConstant)(e,n)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,n){for(var t=classList(e),a=-1,r=n.length;++a<r;)t.add(n[a])}function classedRemove(e,n){for(var t=classList(e),a=-1,r=n.length;++a<r;)t.remove(n[a])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,n){return function(){(n.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,n){var t=classArray(e+"");if(arguments.length<2){for(var a=classList(this.node()),r=-1,o=t.length;++r<o;)if(!a.contains(t[r]))return!1;return!0}return this.each((typeof n=="function"?classedFunction:n?classedTrue:classedFalse)(t,n))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction:textConstant)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var n=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,n){var t=typeof e=="function"?e:creator(e),a=n==null?constantNull:typeof n=="function"?n:selector(n);return this.select(function(){return this.insertBefore(t.apply(this,arguments),a.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(n){e.call(this,n,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(n){var t="",a=n.indexOf(".");return a>=0&&(t=n.slice(a+1),n=n.slice(0,a)),{type:n,name:t}})}function onRemove(e){return function(){var n=this.__on;if(n){for(var t=0,a=-1,r=n.length,o;t<r;++t)o=n[t],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):n[++a]=o;++a?n.length=a:delete this.__on}}}function onAdd(e,n,t){return function(){var a=this.__on,r,o=contextListener(n);if(a){for(var s=0,i=a.length;s<i;++s)if((r=a[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=t),r.value=n;return}}this.addEventListener(e.type,o,t),r={type:e.type,name:e.name,value:n,listener:o,options:t},a?a.push(r):this.__on=[r]}}function selection_on(e,n,t){var a=parseTypenames(e+""),r,o=a.length,s;if(arguments.length<2){var i=this.node().__on;if(i){for(var l=0,u=i.length,c;l<u;++l)for(r=0,c=i[l];r<o;++r)if((s=a[r]).type===c.type&&s.name===c.name)return c.value}return}for(i=n?onAdd:onRemove,r=0;r<o;++r)this.each(i(a[r],n,t));return this}function dispatchEvent(e,n,t){var a=defaultView(e),r=a.CustomEvent;typeof r=="function"?r=new r(n,t):(r=a.document.createEvent("Event"),t?(r.initEvent(n,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(n,!1,!1)),e.dispatchEvent(r)}function dispatchConstant(e,n){return function(){return dispatchEvent(this,e,n)}}function dispatchFunction(e,n){return function(){return dispatchEvent(this,e,n.apply(this,arguments))}}function selection_dispatch(e,n){return this.each((typeof n=="function"?dispatchFunction:dispatchConstant)(e,n))}function*selection_iterator(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var a=e[n],r=0,o=a.length,s;r<o;++r)(s=a[r])&&(yield s)}var root=[null];function Selection(e,n){this._groups=e,this._parents=n}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection([[document.querySelector(e)]],[document.documentElement]):new Selection([[e]],root)}function sourceEvent(e){let n;for(;n=e.sourceEvent;)e=n;return e}function pointer(e,n){if(e=sourceEvent(e),n===void 0&&(n=e.currentTarget),n){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var a=t.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[e.clientX-r.left-n.clientLeft,e.clientY-r.top-n.clientTop]}}return[e.pageX,e.pageY]}function identity(e){return e}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(e){return"translate("+e+",0)"}function translateY(e){return"translate(0,"+e+")"}function number(e){return n=>+e(n)}function center(e,n){return n=Math.max(0,e.bandwidth()-n*2)/2,e.round()&&(n=Math.round(n)),t=>+e(t)+n}function entering(){return!this.__axis}function axis(e,n){var t=[],a=null,r=null,o=6,s=6,i=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===top||e===left?-1:1,c=e===left||e===right?"x":"y",d=e===top||e===bottom?translateX:translateY;function f(v){var p=a??(n.ticks?n.ticks.apply(n,t):n.domain()),h=r??(n.tickFormat?n.tickFormat.apply(n,t):identity),g=Math.max(o,0)+i,m=n.range(),_=+m[0]+l,b=+m[m.length-1]+l,S=(n.bandwidth?center:number)(n.copy(),l),k=v.selection?v.selection():v,V=k.selectAll(".domain").data([null]),L=k.selectAll(".tick").data(p,n).order(),$=L.exit(),A=L.enter().append("g").attr("class","tick"),F=L.select("line"),P=L.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(A),F=F.merge(A.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),P=P.merge(A.append("text").attr("fill","currentColor").attr(c,u*g).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),v!==k&&(V=V.transition(v),L=L.transition(v),F=F.transition(v),P=P.transition(v),$=$.transition(v).attr("opacity",epsilon).attr("transform",function(q){return isFinite(q=S(q))?d(q+l):this.getAttribute("transform")}),A.attr("opacity",epsilon).attr("transform",function(q){var M=this.parentNode.__axis;return d((M&&isFinite(M=M(q))?M:S(q))+l)})),$.remove(),V.attr("d",e===left||e===right?s?"M"+u*s+","+_+"H"+l+"V"+b+"H"+u*s:"M"+l+","+_+"V"+b:s?"M"+_+","+u*s+"V"+l+"H"+b+"V"+u*s:"M"+_+","+l+"H"+b),L.attr("opacity",1).attr("transform",function(q){return d(S(q)+l)}),F.attr(c+"2",u*o),P.attr(c,u*g).text(h),k.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),k.each(function(){this.__axis=S})}return f.scale=function(v){return arguments.length?(n=v,f):n},f.ticks=function(){return t=Array.from(arguments),f},f.tickArguments=function(v){return arguments.length?(t=v==null?[]:Array.from(v),f):t.slice()},f.tickValues=function(v){return arguments.length?(a=v==null?null:Array.from(v),f):a&&a.slice()},f.tickFormat=function(v){return arguments.length?(r=v,f):r},f.tickSize=function(v){return arguments.length?(o=s=+v,f):o},f.tickSizeInner=function(v){return arguments.length?(o=+v,f):o},f.tickSizeOuter=function(v){return arguments.length?(s=+v,f):s},f.tickPadding=function(v){return arguments.length?(i=+v,f):i},f.offset=function(v){return arguments.length?(l=+v,f):l},f}function axisBottom(e){return axis(bottom,e)}function axisLeft(e){return axis(left,e)}var useChart=()=>vue.inject("chart"),usePoints=(e,n={stacked:!1,type:"line"})=>{const t=vue.ref([]),a=useChart(),{stacked:r,type:o}=n;function s(l,u){const{primary:c,secondary:d}=a.scales;return a.config.direction==="horizontal"?u.map(v=>({x:c.mapOne(v.data[l]),y:d.mapOne(v[1]),props:{values:[...v],data:v.data}})).filter(v=>!isNaN(v.x)&&!isNaN(v.y)):a.config.direction==="vertical"?u.map(f=>({x:d.mapOne(f[1]),y:c.mapOne(f.data[l]),props:{values:[...f],data:f.data}})).filter(f=>!isNaN(f.x)&&!isNaN(f.y)):[]}function i(){const l=a.getStackedKeys(1,o),[u,c]=e,f=a.getStackedData(r?l:[e[1]]).find(v=>v.key===c);f&&(t.value=s(u,f))}return vue.watch(a.updates,()=>{i()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,n={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),a=useChart(),{stacked:r,type:o,gap:s}=n;function i(){const{primary:v,secondary:p}=a.scales,h=v.type==="band"?v:p,g=v.type==="band"?p:v;return{bandScale:h,linearScale:g}}function l(){if(r)return 0;const p=a.getLayers(o).findIndex(h=>h.dataKeys.join(",")===e.join(","));return p>-1?p:0}function u(){const{bandScale:v}=i(),p=n.maxWidth>-1?Math.min(v.bandwidth()-s,n.maxWidth):v.bandwidth()-s,h=a.getLayers(o);return h.length>0&&!r?p/h.length:p}function c(){if(r)return 0;const{bandScale:v}=i(),p=v.bandwidth()-s,h=a.getLayers(o).length*u();return(p-h)/2}function d(v,p){const{bandScale:h,linearScale:g}=i(),m=l(),_=u(),b=c();return p.map(S=>{const k={x:0,y:0,width:0,height:0,props:{values:[...S],data:S.data}},V=h.scale(S.data[v]),[L,$]=g.map(S);return a.config.direction==="horizontal"?(k.y=Math.min(L,$),k.height=Math.abs(L-$),k.x=b+V+m*_+s/2,k.width=_):a.config.direction==="vertical"&&(k.x=Math.min(L,$),k.width=Math.abs(L-$),k.y=b+V+m*_+s/2,k.height=_),k})}function f(){const v=r?a.getStackedKeys(1,o):[e[1]],[p,h]=e,m=a.getStackedData(v).find(_=>_.key===h);m&&(t.value=d(p,m))}return vue.watch(a.updates,()=>{f()}),{bars:t}},useTooltip=()=>{const e=useMouse(),n=useChart(),t=vue.computed(()=>e.hover),a=vue.ref({x:0,y:0}),r=vue.ref({});return vue.watch(e,()=>{const{primary:o}=n.scales,s=n.getKeys(0),i=n.getData(s),[l]=o.map([i[e.index]]);l&&(n.config.direction==="horizontal"?a.value={x:l,y:e.position.y}:n.config.direction==="vertical"?a.value={x:e.position.x,y:l}:a.value={x:e.position.x,y:e.position.y});const u=n.data[e.index];u&&(r.value=Object.assign(Object.assign({},u),{idx:e.index}))}),{position:a,payload:r,show:t}},useResize=e=>{const n=vue.ref(0),t=vue.ref(0);let a=null,r=null;function o(i,l){n.value=i,t.value=l,r&&r()}function s(i){r=i}return vue.onMounted(()=>{a=new window.ResizeObserver(i=>{const l=i[0].contentRect.width,u=i[0].contentRect.height;o(l,u)}),a.observe(e.value)}),vue.onUnmounted(()=>{a.disconnect()}),{width:n,height:t,onResize:s}},script$d=vue.defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(e){const n=vue.ref(),t=useChart(),a=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),r=vue.ref(t.canvas),o={ticks:5};function s(){if(t.data.length>0){const{primary:i,secondary:l}=t.scales,u=e.isPrimary?i:l,c=Object.assign({},e.isPrimary?i.config:l.config,o),d=a.value(u.scale);c.format&&d.tickFormat(c.format),c.ticks!==void 0&&d.ticks(c.ticks),c.tickValues!==void 0&&d.tickValues(c.tickValues),c.useConfig&&c.useConfig(d);const f=select(n.value).call(d);return e.position==="bottom"&&e.rotate&&f.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),d}return null}return vue.watch(()=>e.isPrimary,()=>{s()}),vue.watch(t.updates,()=>{r.value=t.canvas,s()}),{el:n,canvas:r}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,n,t,a,r,o){return e.position==="bottom"?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:vue.normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${e.canvas.height})`},null,8,_hoisted_1$b$1)):(vue.openBlock(),vue.createElementBlock("g",{key:1,class:vue.normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${e.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=vue.defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(e){const n=vue.ref(null),t=vue.ref(),a=vue.ref(),r=vue.reactive({x:40,y:20}),o=new Chart(e.data,e.config),s=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.rotate),i=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.hide),l=vue.computed(()=>e.axis&&e.axis.secondary&&e.axis.secondary.hide),u=vue.reactive({index:-1,position:{x:0,y:0},hover:!1});vue.provide("chart",o),vue.provide("chartMouse",u),vue.watch(()=>e.data,()=>{o&&o.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{o&&o.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},r),e.direction,e.size,e.margin,e.axis],()=>{o&&o.changeConfig({axisSpace:Object.assign({},r),direction:e.direction,size:e.size,margin:e.margin,axis:e.axis})},{immediate:!0});const c=new ResizeObserver(v=>{for(const p of v)a.value&&p.target===a.value.$el?r.y=p.contentRect.height:t.value&&p.target===t.value.$el&&(r.x=p.contentRect.width)});vue.onMounted(()=>{a.value&&c.observe(a.value.$el),t.value&&c.observe(t.value.$el)}),vue.onUnmounted(()=>{c.disconnect()});function d(){e.config.controlHover!==!1&&(u.index=-1,u.hover=!1)}function f(v){if(e.config.controlHover===!1)return;u.hover=!0,u.position={x:pointer(v)[0],y:pointer(v)[1]};const{primary:p}=o.scales,h=o.getKeys(0),g=o.getData(h);if(o.config.direction==="horizontal")if(p.type==="band"){const m=p.bandwidth(),_=u.position.x-o.canvas.x;u.index=Math.round((_+m/2)/m)-1}else u.index=bisectCenter(g,p.scale.invert(u.position.x));else if(o.config.direction==="vertical")if(p.type==="band"){const m=p.bandwidth(),_=u.position.y-o.canvas.y;u.index=Math.round((_+m/2)/m)-1}else u.index=bisectCenter(g,p.scale.invert(u.position.y))}return{axBottomEl:a,axLeftEl:t,chartEl:n,hideX:i,hideY:l,rotateX:s,onMouseMove:f,onMouseOut:d}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(e,n,t,a,r,o){const s=vue.resolveComponent("axis");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,onPointermove:n[0]||(n[0]=(...i)=>e.onMouseMove&&e.onMouseMove(...i)),onPointerleave:n[1]||(n[1]=(...i)=>e.onMouseOut&&e.onMouseOut(...i))},[vue.createElementVNode("g",_hoisted_3$6$1,[vue.renderSlot(e.$slots,"layers")]),vue.createElementVNode("g",_hoisted_4$3$1,[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:0,position:"bottom",ref:"axBottomEl",rotate:e.rotateX,isPrimary:e.direction==="horizontal"},null,8,["rotate","isPrimary"])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:1,position:"left",ref:"axLeftEl",isPrimary:e.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),vue.createElementVNode("div",_hoisted_5$3$1,[vue.renderSlot(e.$slots,"widgets")])],512)}function styleInject(e,n){n===void 0&&(n={});var t=n.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var css_248z$1=`
|
|
103
|
+
`);return[yMin,yMax]}}class Scales{constructor(n){this.config=n,this.primary=new Scale(n.primary),this.secondary=new Scale(n.secondary)}changeConfig(n){this.config=n,this.primary.changeConfig(n.primary),this.secondary.changeConfig(n.secondary)}updateRange(n,t){t==="horizontal"?(this.primary.updateRange([n.x,n.width]),this.secondary.updateRange([n.height,n.y])):t==="vertical"&&(this.primary.updateRange([n.y,n.height]),this.secondary.updateRange([n.x,n.width]))}updateDomain(n,t,a){this.primary.updateDomain(n,t,getCol(0,a)),this.secondary.updateDomain(n,t,getCol(1,a))}}function constant$2(e){return function(){return e}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(e){return e>1?0:e<-1?pi$1:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(e){this._+=e[0];for(let n=1,t=e.length;n<t;++n)this._+=arguments[n]+e[n]}function appendRound(e){let n=Math.floor(e);if(!(n>=0))throw new Error(`invalid digits: ${e}`);if(n>15)return append;const t=10**n;return function(a){this._+=a[0];for(let r=1,o=a.length;r<o;++r)this._+=Math.round(arguments[r]*t)/t+a[r]}}class Path{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?append:appendRound(n)}moveTo(n,t){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,t){this._append`L${this._x1=+n},${this._y1=+t}`}quadraticCurveTo(n,t,a,r){this._append`Q${+n},${+t},${this._x1=+a},${this._y1=+r}`}bezierCurveTo(n,t,a,r,o,s){this._append`C${+n},${+t},${+a},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(n,t,a,r,o){if(n=+n,t=+t,a=+a,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,i=this._y1,l=a-n,u=r-t,c=s-n,d=i-t,f=c*c+d*d;if(this._x1===null)this._append`M${this._x1=n},${this._y1=t}`;else if(f>epsilon$1)if(!(Math.abs(d*l-u*c)>epsilon$1)||!o)this._append`L${this._x1=n},${this._y1=t}`;else{let v=a-s,p=r-i,h=l*l+u*u,m=v*v+p*p,_=Math.sqrt(h),g=Math.sqrt(f),b=o*Math.tan((pi-Math.acos((h+f-m)/(2*_*g)))/2),S=b/g,k=b/_;Math.abs(S-1)>epsilon$1&&this._append`L${n+S*c},${t+S*d}`,this._append`A${o},${o},0,0,${+(d*v>c*p)},${this._x1=n+k*l},${this._y1=t+k*u}`}}arc(n,t,a,r,o,s){if(n=+n,t=+t,a=+a,s=!!s,a<0)throw new Error(`negative radius: ${a}`);let i=a*Math.cos(r),l=a*Math.sin(r),u=n+i,c=t+l,d=1^s,f=s?r-o:o-r;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-c)>epsilon$1)&&this._append`L${u},${c}`,a&&(f<0&&(f=f%tau+tau),f>tauEpsilon?this._append`A${a},${a},0,1,${d},${n-i},${t-l}A${a},${a},0,1,${d},${this._x1=u},${this._y1=c}`:f>epsilon$1&&this._append`A${a},${a},0,${+(f>=pi)},${d},${this._x1=n+a*Math.cos(o)},${this._y1=t+a*Math.sin(o)}`)}rect(n,t,a,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${a=+a}v${+r}h${-a}Z`}toString(){return this._}}function withPath(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const a=Math.floor(t);if(!(a>=0))throw new RangeError(`invalid digits: ${t}`);n=a}return e},()=>new Path(n)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,n,t,a,r,o,s,i){var l=t-e,u=a-n,c=s-r,d=i-o,f=d*l-c*u;if(!(f*f<epsilon$2))return f=(c*(n-o)-d*(e-r))/f,[e+f*l,n+f*u]}function cornerTangents(e,n,t,a,r,o,s){var i=e-t,l=n-a,u=(s?o:-o)/sqrt(i*i+l*l),c=u*l,d=-u*i,f=e+c,v=n+d,p=t+c,h=a+d,m=(f+p)/2,_=(v+h)/2,g=p-f,b=h-v,S=g*g+b*b,k=r-o,V=f*h-p*v,L=(b<0?-1:1)*sqrt(max(0,k*k*S-V*V)),$=(V*b-g*L)/S,A=(-V*g-b*L)/S,F=(V*b+g*L)/S,P=(-V*g+b*L)/S,q=$-m,M=A-_,j=F-m,Q=P-_;return q*q+M*M>j*j+Q*Q&&($=F,A=P),{cx:$,cy:A,x01:-c,y01:-d,x11:$*(r/k-1),y11:A*(r/k-1)}}function arc(){var e=arcInnerRadius,n=arcOuterRadius,t=constant$2(0),a=null,r=arcStartAngle,o=arcEndAngle,s=arcPadAngle,i=null,l=withPath(u);function u(){var c,d,f=+e.apply(this,arguments),v=+n.apply(this,arguments),p=r.apply(this,arguments)-halfPi,h=o.apply(this,arguments)-halfPi,m=abs(h-p),_=h>p;if(i||(i=c=l()),v<f&&(d=v,v=f,f=d),!(v>epsilon$2))i.moveTo(0,0);else if(m>tau$1-epsilon$2)i.moveTo(v*cos(p),v*sin(p)),i.arc(0,0,v,p,h,!_),f>epsilon$2&&(i.moveTo(f*cos(h),f*sin(h)),i.arc(0,0,f,h,p,_));else{var g=p,b=h,S=p,k=h,V=m,L=m,$=s.apply(this,arguments)/2,A=$>epsilon$2&&(a?+a.apply(this,arguments):sqrt(f*f+v*v)),F=min(abs(v-f)/2,+t.apply(this,arguments)),P=F,q=F,M,j;if(A>epsilon$2){var Q=asin(A/f*sin($)),J=asin(A/v*sin($));(V-=Q*2)>epsilon$2?(Q*=_?1:-1,S+=Q,k-=Q):(V=0,S=k=(p+h)/2),(L-=J*2)>epsilon$2?(J*=_?1:-1,g+=J,b-=J):(L=0,g=b=(p+h)/2)}var W=v*cos(g),C=v*sin(g),E=f*cos(k),T=f*sin(k);if(F>epsilon$2){var z=v*cos(b),Y=v*sin(b),w=f*cos(S),B=f*sin(S),N;if(m<pi$1)if(N=intersect(W,C,w,B,z,Y,E,T)){var D=W-N[0],I=C-N[1],R=z-N[0],H=Y-N[1],U=1/sin(acos((D*R+I*H)/(sqrt(D*D+I*I)*sqrt(R*R+H*H)))/2),G=sqrt(N[0]*N[0]+N[1]*N[1]);P=min(F,(f-G)/(U-1)),q=min(F,(v-G)/(U+1))}else P=q=0}L>epsilon$2?q>epsilon$2?(M=cornerTangents(w,B,W,C,v,q,_),j=cornerTangents(z,Y,E,T,v,q,_),i.moveTo(M.cx+M.x01,M.cy+M.y01),q<F?i.arc(M.cx,M.cy,q,atan2(M.y01,M.x01),atan2(j.y01,j.x01),!_):(i.arc(M.cx,M.cy,q,atan2(M.y01,M.x01),atan2(M.y11,M.x11),!_),i.arc(0,0,v,atan2(M.cy+M.y11,M.cx+M.x11),atan2(j.cy+j.y11,j.cx+j.x11),!_),i.arc(j.cx,j.cy,q,atan2(j.y11,j.x11),atan2(j.y01,j.x01),!_))):(i.moveTo(W,C),i.arc(0,0,v,g,b,!_)):i.moveTo(W,C),!(f>epsilon$2)||!(V>epsilon$2)?i.lineTo(E,T):P>epsilon$2?(M=cornerTangents(E,T,z,Y,f,-P,_),j=cornerTangents(W,C,w,B,f,-P,_),i.lineTo(M.cx+M.x01,M.cy+M.y01),P<F?i.arc(M.cx,M.cy,P,atan2(M.y01,M.x01),atan2(j.y01,j.x01),!_):(i.arc(M.cx,M.cy,P,atan2(M.y01,M.x01),atan2(M.y11,M.x11),!_),i.arc(0,0,f,atan2(M.cy+M.y11,M.cx+M.x11),atan2(j.cy+j.y11,j.cx+j.x11),_),i.arc(j.cx,j.cy,P,atan2(j.y11,j.x11),atan2(j.y01,j.x01),!_))):i.arc(0,0,f,k,S,_)}if(i.closePath(),c)return i=null,c+""||null}return u.centroid=function(){var c=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,d=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-pi$1/2;return[cos(d)*c,sin(d)*c]},u.innerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:constant$2(+c),u):e},u.outerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:constant$2(+c),u):n},u.cornerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:constant$2(+c),u):t},u.padRadius=function(c){return arguments.length?(a=c==null?null:typeof c=="function"?c:constant$2(+c),u):a},u.startAngle=function(c){return arguments.length?(r=typeof c=="function"?c:constant$2(+c),u):r},u.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:constant$2(+c),u):o},u.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:constant$2(+c),u):s},u.context=function(c){return arguments.length?(i=c??null,u):i},u}function array$1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,n){var t=constant$2(!0),a=null,r=curveLinear,o=null,s=withPath(i);e=typeof e=="function"?e:e===void 0?x:constant$2(e),n=typeof n=="function"?n:n===void 0?y:constant$2(n);function i(l){var u,c=(l=array$1(l)).length,d,f=!1,v;for(a==null&&(o=r(v=s())),u=0;u<=c;++u)!(u<c&&t(d=l[u],u,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,u,l),+n(d,u,l));if(v)return o=null,v+""||null}return i.x=function(l){return arguments.length?(e=typeof l=="function"?l:constant$2(+l),i):e},i.y=function(l){return arguments.length?(n=typeof l=="function"?l:constant$2(+l),i):n},i.defined=function(l){return arguments.length?(t=typeof l=="function"?l:constant$2(!!l),i):t},i.curve=function(l){return arguments.length?(r=l,a!=null&&(o=r(a)),i):r},i.context=function(l){return arguments.length?(l==null?a=o=null:o=r(a=l),i):a},i}function area(e,n,t){var a=null,r=constant$2(!0),o=null,s=curveLinear,i=null,l=withPath(u);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),n=typeof n=="function"?n:constant$2(n===void 0?0:+n),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function u(d){var f,v,p,h=(d=array$1(d)).length,m,_=!1,g,b=new Array(h),S=new Array(h);for(o==null&&(i=s(g=l())),f=0;f<=h;++f){if(!(f<h&&r(m=d[f],f,d))===_)if(_=!_)v=f,i.areaStart(),i.lineStart();else{for(i.lineEnd(),i.lineStart(),p=f-1;p>=v;--p)i.point(b[p],S[p]);i.lineEnd(),i.areaEnd()}_&&(b[f]=+e(m,f,d),S[f]=+n(m,f,d),i.point(a?+a(m,f,d):b[f],t?+t(m,f,d):S[f]))}if(g)return i=null,g+""||null}function c(){return line().defined(r).curve(s).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),a=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:constant$2(+d),u):e},u.x1=function(d){return arguments.length?(a=d==null?null:typeof d=="function"?d:constant$2(+d),u):a},u.y=function(d){return arguments.length?(n=typeof d=="function"?d:constant$2(+d),t=null,u):n},u.y0=function(d){return arguments.length?(n=typeof d=="function"?d:constant$2(+d),u):n},u.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:constant$2(+d),u):t},u.lineX0=u.lineY0=function(){return c().x(e).y(n)},u.lineY1=function(){return c().x(e).y(t)},u.lineX1=function(){return c().x(a).y(n)},u.defined=function(d){return arguments.length?(r=typeof d=="function"?d:constant$2(!!d),u):r},u.curve=function(d){return arguments.length?(s=d,o!=null&&(i=s(o)),u):s},u.context=function(d){return arguments.length?(d==null?o=i=null:i=s(o=d),u):o},u}function descending(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,n=descending,t=null,a=constant$2(0),r=constant$2(tau$1),o=constant$2(0);function s(i){var l,u=(i=array$1(i)).length,c,d,f=0,v=new Array(u),p=new Array(u),h=+a.apply(this,arguments),m=Math.min(tau$1,Math.max(-tau$1,r.apply(this,arguments)-h)),_,g=Math.min(Math.abs(m)/u,o.apply(this,arguments)),b=g*(m<0?-1:1),S;for(l=0;l<u;++l)(S=p[v[l]=l]=+e(i[l],l,i))>0&&(f+=S);for(n!=null?v.sort(function(k,V){return n(p[k],p[V])}):t!=null&&v.sort(function(k,V){return t(i[k],i[V])}),l=0,d=f?(m-u*b)/f:0;l<u;++l,h=_)c=v[l],S=p[c],_=h+(S>0?S*d:0)+b,p[c]={data:i[c],index:l,value:S,startAngle:h,endAngle:_,padAngle:g};return p}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:constant$2(+i),s):e},s.sortValues=function(i){return arguments.length?(n=i,t=null,s):n},s.sort=function(i){return arguments.length?(t=i,n=null,s):t},s.startAngle=function(i){return arguments.length?(a=typeof i=="function"?i:constant$2(+i),s):a},s.endAngle=function(i){return arguments.length?(r=typeof i=="function"?i:constant$2(+i),s):r},s.padAngle=function(i){return arguments.length?(o=typeof i=="function"?i:constant$2(+i),s):o},s}function sign(e){return e<0?-1:1}function slope3(e,n,t){var a=e._x1-e._x0,r=n-e._x1,o=(e._y1-e._y0)/(a||r<0&&-0),s=(t-e._y1)/(r||a<0&&-0),i=(o*r+s*a)/(a+r);return(sign(o)+sign(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(i))||0}function slope2(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function point(e,n,t){var a=e._x0,r=e._y0,o=e._x1,s=e._y1,i=(o-a)/3;e._context.bezierCurveTo(a+i,r+i*n,o-i,s-i*t,o,s)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,n)),t);break;default:point(this,this._t0,t=slope3(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,n){MonotoneX.prototype.point.call(this,n,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,a,r,o){this._context.bezierCurveTo(n,e,a,t,o,r)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var a=controlPoints(e),r=controlPoints(n),o=0,s=1;s<t;++o,++s)this._context.bezierCurveTo(a[0][o],r[0][o],a[1][o],r[1][o],e[s],n[s]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,n){this._x.push(+e),this._y.push(+n)}};function controlPoints(e){var n,t=e.length-1,a,r=new Array(t),o=new Array(t),s=new Array(t);for(r[0]=0,o[0]=2,s[0]=e[0]+2*e[1],n=1;n<t-1;++n)r[n]=1,o[n]=4,s[n]=4*e[n]+2*e[n+1];for(r[t-1]=2,o[t-1]=7,s[t-1]=8*e[t-1]+e[t],n=1;n<t;++n)a=r[n]/o[n-1],o[n]-=a,s[n]-=a*s[n-1];for(r[t-1]=s[t-1]/o[t-1],n=t-2;n>=0;--n)r[n]=(s[n]-r[n+1])/o[n];for(o[t-1]=(e[t]+r[t-1])/2,n=0;n<t-1;++n)o[n]=2*e[n+1]-r[n+1];return[r,o]}function curveNatural(e){return new Natural(e)}function Step(e,n){this._context=e,this._t=n}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,n){if((s=e.length)>1)for(var t=1,a,r,o=e[n[0]],s,i=o.length;t<s;++t)for(r=o,o=e[n[t]],a=0;a<i;++a)o[a][1]+=o[a][0]=isNaN(r[a][1])?r[a][0]:r[a][1]}function stackOrderNone(e){for(var n=e.length,t=new Array(n);--n>=0;)t[n]=n;return t}function stackValue(e,n){return e[n]}function stackSeries(e){const n=[];return n.key=e,n}function stack(){var e=constant$2([]),n=stackOrderNone,t=none$1,a=stackValue;function r(o){var s=Array.from(e.apply(this,arguments),stackSeries),i,l=s.length,u=-1,c;for(const d of o)for(i=0,++u;i<l;++i)(s[i][u]=[0,+a(d,s[i].key,u,o)]).data=d;for(i=0,c=array$1(n(s));i<l;++i)s[c[i]].index=i;return t(s,c),s}return r.keys=function(o){return arguments.length?(e=typeof o=="function"?o:constant$2(Array.from(o)),r):e},r.value=function(o){return arguments.length?(a=typeof o=="function"?o:constant$2(+o),r):a},r.order=function(o){return arguments.length?(n=o==null?stackOrderNone:typeof o=="function"?o:constant$2(Array.from(o)),r):n},r.offset=function(o){return arguments.length?(t=o??none$1,r):t},r}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(n,t){this.data=n,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(a=>a!==void 0,t),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=vue.ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:n,size:t}=this.config,a=this.config.axisSpace;return this.config.axis.primary.hide&&(a.y=0),this.config.axis.secondary.hide&&(a.x=0),{x:n.left+a.x,y:n.top,width:t.width-n.right,height:t.height-n.bottom-a.y}}getStackedData(n){return stack().keys(n).order(stackOrderNone)(this.data)}changeData(n){this.data=n,this.update("data")}changeConfig(n){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,n),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(n){this.layers.push(n),this.update("layers")}removeLayer(n){this.layers=this.layers.filter(t=>t.id!==n),this.update("layers")}getLayers(n){return n?this.layers.filter(t=>t.type===n):this.layers}getData(n){return n.reduce((t,a)=>t.concat(getCol(a,this.data)),[])}getKeys(n=-1,t=null){const a=this.layers.filter(r=>t?r.type===t:!0).map(r=>r.dataKeys);return n===-1?a:getCol(n,a)}getStackedKeys(n=-1,t=null){const a=this.layers.filter(r=>t?r.type===t&&r.props.stacked:r.props.stacked).map(r=>r.dataKeys);return n===-1?a:getCol(n,a)}update(n){const t=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,t,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var n=e+="",t=n.indexOf(":");return t>=0&&(n=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(n)?{space:namespaces[n],local:e}:e}function creatorInherit(e){return function(){var n=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&n.documentElement.namespaceURI===xhtml?n.createElement(e):n.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var n=namespace(e);return(n.local?creatorFixed:creatorInherit)(n)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var n=this._groups,t=n.length,a=new Array(t),r=0;r<t;++r)for(var o=n[r],s=o.length,i=a[r]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),i[c]=u);return new Selection(a,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty(){return[]}function selectorAll(e){return e==null?empty:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var n=this._groups,t=n.length,a=[],r=[],o=0;o<t;++o)for(var s=n[o],i=s.length,l,u=0;u<i;++u)(l=s[u])&&(a.push(e.call(l,l.__data__,u,s)),r.push(l));return new Selection(a,r)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(n){return n.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var n=this._groups,t=n.length,a=new Array(t),r=0;r<t;++r)for(var o=n[r],s=o.length,i=a[r]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&i.push(l);return new Selection(a,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$1(e){return function(){return e}}function bindIndex(e,n,t,a,r,o){for(var s=0,i,l=n.length,u=o.length;s<u;++s)(i=n[s])?(i.__data__=o[s],a[s]=i):t[s]=new EnterNode(e,o[s]);for(;s<l;++s)(i=n[s])&&(r[s]=i)}function bindKey(e,n,t,a,r,o,s){var i,l,u=new Map,c=n.length,d=o.length,f=new Array(c),v;for(i=0;i<c;++i)(l=n[i])&&(f[i]=v=s.call(l,l.__data__,i,n)+"",u.has(v)?r[i]=l:u.set(v,l));for(i=0;i<d;++i)v=s.call(e,o[i],i,o)+"",(l=u.get(v))?(a[i]=l,l.__data__=o[i],u.delete(v)):t[i]=new EnterNode(e,o[i]);for(i=0;i<c;++i)(l=n[i])&&u.get(f[i])===l&&(r[i]=l)}function datum(e){return e.__data__}function selection_data(e,n){if(!arguments.length)return Array.from(this,datum);var t=n?bindKey:bindIndex,a=this._parents,r=this._groups;typeof e!="function"&&(e=constant$1(e));for(var o=r.length,s=new Array(o),i=new Array(o),l=new Array(o),u=0;u<o;++u){var c=a[u],d=r[u],f=d.length,v=arraylike(e.call(c,c&&c.__data__,u,a)),p=v.length,h=i[u]=new Array(p),m=s[u]=new Array(p),_=l[u]=new Array(f);t(c,d,h,m,_,v,n);for(var g=0,b=0,S,k;g<p;++g)if(S=h[g]){for(g>=b&&(b=g+1);!(k=m[b])&&++b<p;);S._next=k||null}}return s=new Selection(s,a),s._enter=i,s._exit=l,s}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,n,t){var a=this.enter(),r=this,o=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),n!=null&&(r=n(r),r&&(r=r.selection())),t==null?o.remove():t(o),a&&r?a.merge(r).order():r}function selection_merge(e){for(var n=e.selection?e.selection():e,t=this._groups,a=n._groups,r=t.length,o=a.length,s=Math.min(r,o),i=new Array(r),l=0;l<s;++l)for(var u=t[l],c=a[l],d=u.length,f=i[l]=new Array(d),v,p=0;p<d;++p)(v=u[p]||c[p])&&(f[p]=v);for(;l<r;++l)i[l]=t[l];return new Selection(i,this._parents)}function selection_order(){for(var e=this._groups,n=-1,t=e.length;++n<t;)for(var a=e[n],r=a.length-1,o=a[r],s;--r>=0;)(s=a[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function selection_sort(e){e||(e=ascending);function n(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var t=this._groups,a=t.length,r=new Array(a),o=0;o<a;++o){for(var s=t[o],i=s.length,l=r[o]=new Array(i),u,c=0;c<i;++c)(u=s[c])&&(l[c]=u);l.sort(n)}return new Selection(r,this._parents).order()}function ascending(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var a=e[n],r=0,o=a.length;r<o;++r){var s=a[r];if(s)return s}return null}function selection_size(){let e=0;for(const n of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var n=this._groups,t=0,a=n.length;t<a;++t)for(var r=n[t],o=0,s=r.length,i;o<s;++o)(i=r[o])&&e.call(i,i.__data__,o,r);return this}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,n){return function(){this.setAttribute(e,n)}}function attrConstantNS(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function attrFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,n){var t=namespace(e);if(arguments.length<2){var a=this.node();return t.local?a.getAttributeNS(t.space,t.local):a.getAttribute(t)}return this.each((n==null?t.local?attrRemoveNS:attrRemove:typeof n=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,n))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,n,t){return function(){this.style.setProperty(e,n,t)}}function styleFunction(e,n,t){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,t)}}function selection_style(e,n,t){return arguments.length>1?this.each((n==null?styleRemove:typeof n=="function"?styleFunction:styleConstant)(e,n,t??"")):styleValue(this.node(),e)}function styleValue(e,n){return e.style.getPropertyValue(n)||defaultView(e).getComputedStyle(e,null).getPropertyValue(n)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,n){return function(){this[e]=n}}function propertyFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,n){return arguments.length>1?this.each((n==null?propertyRemove:typeof n=="function"?propertyFunction:propertyConstant)(e,n)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,n){for(var t=classList(e),a=-1,r=n.length;++a<r;)t.add(n[a])}function classedRemove(e,n){for(var t=classList(e),a=-1,r=n.length;++a<r;)t.remove(n[a])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,n){return function(){(n.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,n){var t=classArray(e+"");if(arguments.length<2){for(var a=classList(this.node()),r=-1,o=t.length;++r<o;)if(!a.contains(t[r]))return!1;return!0}return this.each((typeof n=="function"?classedFunction:n?classedTrue:classedFalse)(t,n))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction:textConstant)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var n=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,n){var t=typeof e=="function"?e:creator(e),a=n==null?constantNull:typeof n=="function"?n:selector(n);return this.select(function(){return this.insertBefore(t.apply(this,arguments),a.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(n){e.call(this,n,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(n){var t="",a=n.indexOf(".");return a>=0&&(t=n.slice(a+1),n=n.slice(0,a)),{type:n,name:t}})}function onRemove(e){return function(){var n=this.__on;if(n){for(var t=0,a=-1,r=n.length,o;t<r;++t)o=n[t],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):n[++a]=o;++a?n.length=a:delete this.__on}}}function onAdd(e,n,t){return function(){var a=this.__on,r,o=contextListener(n);if(a){for(var s=0,i=a.length;s<i;++s)if((r=a[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=t),r.value=n;return}}this.addEventListener(e.type,o,t),r={type:e.type,name:e.name,value:n,listener:o,options:t},a?a.push(r):this.__on=[r]}}function selection_on(e,n,t){var a=parseTypenames(e+""),r,o=a.length,s;if(arguments.length<2){var i=this.node().__on;if(i){for(var l=0,u=i.length,c;l<u;++l)for(r=0,c=i[l];r<o;++r)if((s=a[r]).type===c.type&&s.name===c.name)return c.value}return}for(i=n?onAdd:onRemove,r=0;r<o;++r)this.each(i(a[r],n,t));return this}function dispatchEvent(e,n,t){var a=defaultView(e),r=a.CustomEvent;typeof r=="function"?r=new r(n,t):(r=a.document.createEvent("Event"),t?(r.initEvent(n,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(n,!1,!1)),e.dispatchEvent(r)}function dispatchConstant(e,n){return function(){return dispatchEvent(this,e,n)}}function dispatchFunction(e,n){return function(){return dispatchEvent(this,e,n.apply(this,arguments))}}function selection_dispatch(e,n){return this.each((typeof n=="function"?dispatchFunction:dispatchConstant)(e,n))}function*selection_iterator(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var a=e[n],r=0,o=a.length,s;r<o;++r)(s=a[r])&&(yield s)}var root=[null];function Selection(e,n){this._groups=e,this._parents=n}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection([[document.querySelector(e)]],[document.documentElement]):new Selection([[e]],root)}function sourceEvent(e){let n;for(;n=e.sourceEvent;)e=n;return e}function pointer(e,n){if(e=sourceEvent(e),n===void 0&&(n=e.currentTarget),n){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var a=t.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[e.clientX-r.left-n.clientLeft,e.clientY-r.top-n.clientTop]}}return[e.pageX,e.pageY]}function identity(e){return e}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(e){return"translate("+e+",0)"}function translateY(e){return"translate(0,"+e+")"}function number(e){return n=>+e(n)}function center(e,n){return n=Math.max(0,e.bandwidth()-n*2)/2,e.round()&&(n=Math.round(n)),t=>+e(t)+n}function entering(){return!this.__axis}function axis(e,n){var t=[],a=null,r=null,o=6,s=6,i=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===top||e===left?-1:1,c=e===left||e===right?"x":"y",d=e===top||e===bottom?translateX:translateY;function f(v){var p=a??(n.ticks?n.ticks.apply(n,t):n.domain()),h=r??(n.tickFormat?n.tickFormat.apply(n,t):identity),m=Math.max(o,0)+i,_=n.range(),g=+_[0]+l,b=+_[_.length-1]+l,S=(n.bandwidth?center:number)(n.copy(),l),k=v.selection?v.selection():v,V=k.selectAll(".domain").data([null]),L=k.selectAll(".tick").data(p,n).order(),$=L.exit(),A=L.enter().append("g").attr("class","tick"),F=L.select("line"),P=L.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(A),F=F.merge(A.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),P=P.merge(A.append("text").attr("fill","currentColor").attr(c,u*m).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),v!==k&&(V=V.transition(v),L=L.transition(v),F=F.transition(v),P=P.transition(v),$=$.transition(v).attr("opacity",epsilon).attr("transform",function(q){return isFinite(q=S(q))?d(q+l):this.getAttribute("transform")}),A.attr("opacity",epsilon).attr("transform",function(q){var M=this.parentNode.__axis;return d((M&&isFinite(M=M(q))?M:S(q))+l)})),$.remove(),V.attr("d",e===left||e===right?s?"M"+u*s+","+g+"H"+l+"V"+b+"H"+u*s:"M"+l+","+g+"V"+b:s?"M"+g+","+u*s+"V"+l+"H"+b+"V"+u*s:"M"+g+","+l+"H"+b),L.attr("opacity",1).attr("transform",function(q){return d(S(q)+l)}),F.attr(c+"2",u*o),P.attr(c,u*m).text(h),k.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),k.each(function(){this.__axis=S})}return f.scale=function(v){return arguments.length?(n=v,f):n},f.ticks=function(){return t=Array.from(arguments),f},f.tickArguments=function(v){return arguments.length?(t=v==null?[]:Array.from(v),f):t.slice()},f.tickValues=function(v){return arguments.length?(a=v==null?null:Array.from(v),f):a&&a.slice()},f.tickFormat=function(v){return arguments.length?(r=v,f):r},f.tickSize=function(v){return arguments.length?(o=s=+v,f):o},f.tickSizeInner=function(v){return arguments.length?(o=+v,f):o},f.tickSizeOuter=function(v){return arguments.length?(s=+v,f):s},f.tickPadding=function(v){return arguments.length?(i=+v,f):i},f.offset=function(v){return arguments.length?(l=+v,f):l},f}function axisBottom(e){return axis(bottom,e)}function axisLeft(e){return axis(left,e)}var useChart=()=>vue.inject("chart"),usePoints=(e,n={stacked:!1,type:"line"})=>{const t=vue.ref([]),a=useChart(),{stacked:r,type:o}=n;function s(l,u){const{primary:c,secondary:d}=a.scales;return a.config.direction==="horizontal"?u.map(v=>({x:c.mapOne(v.data[l]),y:d.mapOne(v[1]),props:{values:[...v],data:v.data}})).filter(v=>!isNaN(v.x)&&!isNaN(v.y)):a.config.direction==="vertical"?u.map(f=>({x:d.mapOne(f[1]),y:c.mapOne(f.data[l]),props:{values:[...f],data:f.data}})).filter(f=>!isNaN(f.x)&&!isNaN(f.y)):[]}function i(){const l=a.getStackedKeys(1,o),[u,c]=e,f=a.getStackedData(r?l:[e[1]]).find(v=>v.key===c);f&&(t.value=s(u,f))}return vue.watch(a.updates,()=>{i()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,n={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),a=useChart(),{stacked:r,type:o,gap:s}=n;function i(){const{primary:v,secondary:p}=a.scales,h=v.type==="band"?v:p,m=v.type==="band"?p:v;return{bandScale:h,linearScale:m}}function l(){if(r)return 0;const p=a.getLayers(o).findIndex(h=>h.dataKeys.join(",")===e.join(","));return p>-1?p:0}function u(){const{bandScale:v}=i(),p=n.maxWidth>-1?Math.min(v.bandwidth()-s,n.maxWidth):v.bandwidth()-s,h=a.getLayers(o);return h.length>0&&!r?p/h.length:p}function c(){if(r)return 0;const{bandScale:v}=i(),p=v.bandwidth()-s,h=a.getLayers(o).length*u();return(p-h)/2}function d(v,p){const{bandScale:h,linearScale:m}=i(),_=l(),g=u(),b=c();return p.map(S=>{const k={x:0,y:0,width:0,height:0,props:{values:[...S],data:S.data}},V=h.scale(S.data[v]),[L,$]=m.map(S);return a.config.direction==="horizontal"?(k.y=Math.min(L,$),k.height=Math.abs(L-$),k.x=b+V+_*g+s/2,k.width=g):a.config.direction==="vertical"&&(k.x=Math.min(L,$),k.width=Math.abs(L-$),k.y=b+V+_*g+s/2,k.height=g),k})}function f(){const v=r?a.getStackedKeys(1,o):[e[1]],[p,h]=e,_=a.getStackedData(v).find(g=>g.key===h);_&&(t.value=d(p,_))}return vue.watch(a.updates,()=>{f()}),{bars:t}},useTooltip=()=>{const e=useMouse(),n=useChart(),t=vue.computed(()=>e.hover),a=vue.ref({x:0,y:0}),r=vue.ref({});return vue.watch(e,()=>{const{primary:o}=n.scales,s=n.getKeys(0),i=n.getData(s),[l]=o.map([i[e.index]]);l&&(n.config.direction==="horizontal"?a.value={x:l,y:e.position.y}:n.config.direction==="vertical"?a.value={x:e.position.x,y:l}:a.value={x:e.position.x,y:e.position.y});const u=n.data[e.index];u&&(r.value=Object.assign(Object.assign({},u),{idx:e.index}))}),{position:a,payload:r,show:t}},useResize=e=>{const n=vue.ref(0),t=vue.ref(0);let a=null,r=null;function o(i,l){n.value=i,t.value=l,r&&r()}function s(i){r=i}return vue.onMounted(()=>{a=new window.ResizeObserver(i=>{const l=i[0].contentRect.width,u=i[0].contentRect.height;o(l,u)}),a.observe(e.value)}),vue.onUnmounted(()=>{a.disconnect()}),{width:n,height:t,onResize:s}},script$d=vue.defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(e){const n=vue.ref(),t=useChart(),a=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),r=vue.ref(t.canvas),o={ticks:5};function s(){if(t.data.length>0){const{primary:i,secondary:l}=t.scales,u=e.isPrimary?i:l,c=Object.assign({},e.isPrimary?i.config:l.config,o),d=a.value(u.scale);c.format&&d.tickFormat(c.format),c.ticks!==void 0&&d.ticks(c.ticks),c.tickValues!==void 0&&d.tickValues(c.tickValues),c.useConfig&&c.useConfig(d);const f=select(n.value).call(d);return e.position==="bottom"&&e.rotate&&f.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),d}return null}return vue.watch(()=>e.isPrimary,()=>{s()}),vue.watch(t.updates,()=>{r.value=t.canvas,s()}),{el:n,canvas:r}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,n,t,a,r,o){return e.position==="bottom"?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:vue.normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${e.canvas.height})`},null,8,_hoisted_1$b$1)):(vue.openBlock(),vue.createElementBlock("g",{key:1,class:vue.normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${e.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=vue.defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(e){const n=vue.ref(null),t=vue.ref(),a=vue.ref(),r=vue.reactive({x:40,y:20}),o=new Chart(e.data,e.config),s=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.rotate),i=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.hide),l=vue.computed(()=>e.axis&&e.axis.secondary&&e.axis.secondary.hide),u=vue.reactive({index:-1,position:{x:0,y:0},hover:!1});vue.provide("chart",o),vue.provide("chartMouse",u),vue.watch(()=>e.data,()=>{o&&o.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{o&&o.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},r),e.direction,e.size,e.margin,e.axis],()=>{o&&o.changeConfig({axisSpace:Object.assign({},r),direction:e.direction,size:e.size,margin:e.margin,axis:e.axis})},{immediate:!0});const c=new ResizeObserver(v=>{for(const p of v)a.value&&p.target===a.value.$el?r.y=p.contentRect.height:t.value&&p.target===t.value.$el&&(r.x=p.contentRect.width)});vue.onMounted(()=>{a.value&&c.observe(a.value.$el),t.value&&c.observe(t.value.$el)}),vue.onUnmounted(()=>{c.disconnect()});function d(){e.config.controlHover!==!1&&(u.index=-1,u.hover=!1)}function f(v){if(e.config.controlHover===!1)return;u.hover=!0,u.position={x:pointer(v)[0],y:pointer(v)[1]};const{primary:p}=o.scales,h=o.getKeys(0),m=o.getData(h);if(o.config.direction==="horizontal")if(p.type==="band"){const _=p.bandwidth(),g=u.position.x-o.canvas.x;u.index=Math.round((g+_/2)/_)-1}else u.index=bisectCenter(m,p.scale.invert(u.position.x));else if(o.config.direction==="vertical")if(p.type==="band"){const _=p.bandwidth(),g=u.position.y-o.canvas.y;u.index=Math.round((g+_/2)/_)-1}else u.index=bisectCenter(m,p.scale.invert(u.position.y))}return{axBottomEl:a,axLeftEl:t,chartEl:n,hideX:i,hideY:l,rotateX:s,onMouseMove:f,onMouseOut:d}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(e,n,t,a,r,o){const s=vue.resolveComponent("axis");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,onPointermove:n[0]||(n[0]=(...i)=>e.onMouseMove&&e.onMouseMove(...i)),onPointerleave:n[1]||(n[1]=(...i)=>e.onMouseOut&&e.onMouseOut(...i))},[vue.createElementVNode("g",_hoisted_3$6$1,[vue.renderSlot(e.$slots,"layers")]),vue.createElementVNode("g",_hoisted_4$3$1,[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:0,position:"bottom",ref:"axBottomEl",rotate:e.rotateX,isPrimary:e.direction==="horizontal"},null,8,["rotate","isPrimary"])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(s,{key:1,position:"left",ref:"axLeftEl",isPrimary:e.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),vue.createElementVNode("div",_hoisted_5$3$1,[vue.renderSlot(e.$slots,"widgets")])],512)}function styleInject(e,n){n===void 0&&(n={});var t=n.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var css_248z$1=`
|
|
104
104
|
.chart {
|
|
105
105
|
position: relative;
|
|
106
106
|
}
|
|
107
107
|
`;styleInject(css_248z$1);script$c.render=render$c;script$c.__file="src/components/Chart/index.vue";var script$b=vue.defineComponent({name:"Layer",props:{type:{type:String,default:"custom"},dataKeys:{type:Object,required:!0}},setup(e){const n=useChart(),t=new Date().getTime().toString(),a=vue.inject("layerProps",{});return vue.onMounted(()=>{n.addLayer({id:t,type:e.type,dataKeys:e.dataKeys,props:a})}),vue.onUnmounted(()=>{n.removeLayer(t)}),{}}});function render$b(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(`layer-${e.type}`)},[vue.renderSlot(e.$slots,"default")],2)}script$b.render=render$b;script$b.__file="src/components/Layer/index.vue";var script$a=vue.defineComponent({name:"AreaComponent",components:{Layer:script$b},props:{areaStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"},gap:{type:Number,default:0}},setup(e){const n=useChart(),{stacked:t}=vue.inject("layerProps",{stacked:!1}),{points:a}=usePoints(e.dataKeys,{stacked:!1,type:"area"}),{bars:r}=useBars(e.dataKeys,{stacked:t,type:"area",gap:e.gap,maxWidth:-1}),o=vue.ref(""),s=c=>({normal:curveLinear,natural:curveNatural,step:curveStep,monotone:n.config.direction==="horizontal"?monotoneX:monotoneY})[c],i=()=>{console.log(a.value);const{secondary:c}=n.scales;return t?area().curve(s(e.type)).x0(d=>d.x+d.width/2).y0(d=>d.y).x1(d=>d.x+d.width/2).y1(d=>d.y+d.height):n.config.direction==="vertical"?area().curve(s(e.type)).y0(d=>d.y).y1(d=>d.y).x0(d=>d.x).x1(()=>c.scale(0)):area().curve(s(e.type)).x0(d=>d.x).x1(d=>d.x).y0(d=>d.y).y1(()=>c.scale(0))},l=vue.computed(()=>()=>Object.assign({fill:"blue",fillOpacity:.25,stroke:"none"},e.areaStyle)),u=c=>mapKeys(kebabize,c);return vue.watch(a,()=>{o.value=t?i()(r.value):i()(a.value)}),{d:o,getStyle:l,toKebabCase:u}}});const _hoisted_1$9$1=["d"];function render$a(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{type:"area",dataKeys:e.dataKeys},{default:vue.withCtx(()=>[vue.createElementVNode("path",vue.mergeProps(e.toKebabCase(e.getStyle()),{d:e.d}),null,16,_hoisted_1$9$1)]),_:1},8,["dataKeys"])}script$a.render=render$a;script$a.__file="src/components/Area/index.vue";var script$9=vue.defineComponent({name:"LineComponent",components:{Layer:script$b},props:{lineStyle:{type:Object,required:!1},dotStyle:{type:Object,required:!1},hideDot:{type:Boolean,default:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"}},setup(e){const{stacked:n}=vue.inject("layerProps",{stacked:!1}),t=useMouse(),a=useChart(),r=vue.ref(""),{points:o}=usePoints(e.dataKeys,{stacked:n,type:"line"}),s={normal:curveLinear,natural:curveNatural,step:stepAfter,monotone:monotoneX};function i(){let f=s[e.type];e.type==="monotone"&&a.config.direction==="vertical"&&(f=monotoneY),r.value=line().x(v=>v.x).y(v=>v.y).curve(f)(o.value)}function l(f){const v=e.dotStyle,p=u.value();return Object.assign({r:f?5:3,stroke:p.stroke,strokeWidth:p.strokeWidth,fill:"white"},v)}const u=vue.computed(()=>is$1(Function,e.lineStyle)?e.lineStyle:()=>Object.assign({stroke:"#8884d8",strokeWidth:2},e.lineStyle)),c=vue.computed(()=>is$1(Function,e.dotStyle)?e.dotStyle:({active:f})=>l(f));return vue.watch(o,()=>i()),vue.watch(a.updates,()=>i()),{d:r,mouse:t,points:o,toKebabCase:f=>mapKeys(kebabize,f),getStyle:u,getDotStyle:c}}});const _hoisted_1$8$1=["d"],_hoisted_2$6$1={key:0},_hoisted_3$5$1=["cx","cy"];function render$9(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"line"},{default:vue.withCtx(()=>[vue.createElementVNode("path",vue.mergeProps({class:"chart-line"},e.toKebabCase(e.getStyle()),{d:e.d,fill:"none"}),null,16,_hoisted_1$8$1),vue.createCommentVNode(` :stroke="stroke"
|
|
108
108
|
:stroke-width="strokeWidth"
|
|
109
109
|
stroke-linejoin="round"
|
|
110
|
-
stroke-linecap="round" `),e.hideDot?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$6$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.points,(i,l)=>(vue.openBlock(),vue.createElementBlock("circle",vue.mergeProps(e.toKebabCase(e.getDotStyle({active:l===e.mouse.index,index:l})),{key:l,cx:i.x,cy:i.y}),null,16,_hoisted_3$5$1))),128))]))]),_:1},8,["dataKeys"])}script$9.render=render$9;script$9.__file="src/components/Line/index.vue";var script$8=vue.defineComponent({name:"Bar",components:{Layer:script$b},props:{selectedBar:{type:Object,default:()=>null},barStyle:{type:[Function,Object],default:()=>({fill:"blue"})},barStyleSelected:{type:[Function,Object],default:()=>({fill:"darkblue"})},maxWidth:{type:Number,default:-1},dataKeys:{type:Object,required:!0},gap:{type:Number,default:5}},setup(e,{emit:n}){const t=useMouse(),{stacked:a,maxWidth:r}=vue.inject("layerProps",{stacked:!1,maxWidth:-1}),{bars:o}=useBars(e.dataKeys,{maxWidth:Math.max(e.maxWidth,r),stacked:a,gap:e.gap,type:"bar"}),s=vue.computed(()=>is$1(Function,e.barStyle)?e.barStyle:()=>e.barStyle),i=vue.computed(()=>is$1(Function,e.barStyleSelected)?e.barStyleSelected:()=>e.barStyleSelected),l=c=>mapKeys(kebabize,c);function u(c,d){n("barClick",Object.assign(Object.assign({},c),{idx:d}))}return{getStyle:s,getStyleSelected:i,toKebabCase:l,bars:o,mouse:t,onBarClick:u}}});const _hoisted_1$7$1={key:0},_hoisted_2$5$1=["x","y","width","height","onClick"],_hoisted_3$4$1=["x","y","width","height"];function render$8(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"bar"},{default:vue.withCtx(()=>[e.bars.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$7$1,"No Data")):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.bars,(i,l)=>(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({class:"chart-bar"},e.toKebabCase(e.getStyle({...i.props,active:l===e.mouse.index})),{key:l,x:i.x,y:i.y,width:i.width>0?i.width:0,height:i.height>0?i.height:0,onClick:()=>e.onBarClick(i,l)}),null,16,_hoisted_2$5$1))),128)),e.selectedBar?(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({key:1,class:"chart-bar"},e.toKebabCase(e.getStyleSelected({...e.selectedBar.props})),{x:e.selectedBar.x,y:e.selectedBar.y,width:e.selectedBar.width>0?e.selectedBar.width:0,height:e.selectedBar.height>0?e.selectedBar.height:0}),null,16,_hoisted_3$4$1)):vue.createCommentVNode("v-if",!0)]),_:1},8,["dataKeys"])}script$8.render=render$8;script$8.__file="src/components/Bar/index.vue";const PieSort=String;var script$7=vue.defineComponent({name:"PieLayer",components:{Layer:script$b},props:{pieStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},sort:{type:PieSort,default:"desc",required:!1},sortFunc:{type:Function,required:!1}},setup(e){var n;const t=useChart(),a=useMouse(),r=vue.ref(Math.min(t.canvas.width-t.canvas.x,t.canvas.height-t.canvas.y)/2),o=vue.computed(()=>()=>Object.assign({colors:["#4daf4a","#377eb8","#ff7f00","#984ea3","#e41a1c"],innerRadius:2,cornerRadius:0,padAngle:.01},e.pieStyle)),s=o.value(),i=vue.ref([]),l=ordinal(o.value().colors),u=()=>arc().outerRadius(r.value).innerRadius(s.innerRadius).cornerRadius(s.cornerRadius).padAngle(s.padAngle),c=vue.ref(`translate(${r.value+t.canvas.x}, ${r.value+t.canvas.y})`);let d;switch(e.sort){case"desc":d=descending$1;break;case"asc":d=ascending$1;break;case"none":d=null;break;case"custom":d=(n=e.sortFunc)!==null&&n!==void 0?n:null;break;default:d=null}function f(){const m=t.getData([e.dataKeys[1]]);i.value=pie().sort(d)(m)}function v(m){return l(m.toString())}function p(m,_){a.hover=!0,a.index=_;const[b,S]=pointer(m);a.position={x:b+r.value,y:S+r.value}}function h(){a.hover=!1,a.index=-1}function g(m){mapKeys(kebabize,m)}return vue.watch(t.updates,()=>{r.value=Math.min(t.canvas.width-t.canvas.x,(t.canvas.height-t.canvas.y)/2),c.value=`translate(${r.value+t.canvas.x}, ${r.value+t.canvas.y})`,f()}),{arcs:i,arcGen:u,getStyle:o,transform:c,getColor:v,hideTooltip:h,toKebabCase:g,showTooltip:p}}});const _hoisted_1$6$1={key:0},_hoisted_2$4$1=["transform"],_hoisted_3$3$1=["id","fill","d","onMousemove"];function render$7(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"pie"},{default:vue.withCtx(()=>[e.arcs.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$6$1,"No Data")):vue.createCommentVNode("v-if",!0),vue.createElementVNode("g",{transform:e.transform},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.arcs,(i,l)=>(vue.openBlock(),vue.createElementBlock("path",vue.mergeProps({key:l,id:`arc-${l}`,class:"chart-pie"},e.toKebabCase(e.getStyle()),{fill:e.getColor(l),d:e.arcGen()(i),onMousemove:u=>e.showTooltip(u,l),onMouseleave:n[0]||(n[0]=u=>e.hideTooltip())}),null,16,_hoisted_3$3$1))),128))],8,_hoisted_2$4$1)]),_:1},8,["dataKeys"])}script$7.render=render$7;script$7.__file="src/components/Pie/index.vue";var script$6=vue.defineComponent({name:"Responsive",setup(){const e=vue.ref(null),{width:n,height:t}=useResize(e);return{el:e,width:n,height:t}}});const _hoisted_1$5$1={ref:"el"};function render$6(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5$1,[vue.renderSlot(e.$slots,"main",{width:e.width,height:e.height})],512)}script$6.render=render$6;script$6.__file="src/components/Responsive/index.vue";var script$5=vue.defineComponent({name:"Grid",props:{strokeDasharray:{type:String,default:()=>"3 3"},hideX:{type:Boolean,default:!1},hideY:{type:Boolean,default:!1},center:{type:Boolean,default:!0}},setup(e){const n=useChart(),t=vue.ref([]),a=vue.ref(null),r=vue.ref([]),o=vue.ref([]);function s(){const{primary:l,secondary:u}=n.scales,c=n.config.direction==="horizontal"?u:l;if(c.type==="band"&&!e.center){const d=c.map(n.getData(n.getKeys(0))).map(f=>f+c.bandwidth()/2);d.pop(),r.value=d}else{const d=c.ticks();r.value=c.map(d)}}function i(){const{primary:l,secondary:u}=n.scales,c=n.config.direction==="horizontal"?l:u;if(c.type==="band"&&!e.center){const d=c.map(n.getData(n.getKeys(0))).map(f=>f+c.bandwidth()/2);d.pop(),o.value=d}else{const d=c.ticks();o.value=c.map(d)}}return vue.watch(n.updates,()=>{t.value=n.data,a.value=n.canvas,s(),i()}),{data:t,canvas:a,xLines:r,yLines:o}}});const _hoisted_1$4$1=["stroke-dasharray"],_hoisted_2$3$1={key:0,class:"grid-x"},_hoisted_3$2$1=["x1","y1","x2","y2"],_hoisted_4$2$1={key:1,class:"grid-y"},_hoisted_5$2$1=["x1","y1","x2","y2"],_hoisted_6$2$1=["x1","y1","x2","y2"],_hoisted_7$g=["x1","y1","x2","y2"];function render$5(e,n,t,a,r,o){return e.data.length?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:"layer-grid",stroke:"black","stroke-opacity":"0.15","stroke-width":"1","stroke-dasharray":e.strokeDasharray},[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$3$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.xLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:e.canvas.x,y1:s,x2:e.canvas.width,y2:s},null,8,_hoisted_3$2$1))),128))])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$2$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.yLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:s,y1:e.canvas.y,x2:s,y2:e.canvas.height},null,8,_hoisted_5$2$1))),128))])),vue.createElementVNode("g",null,[vue.createElementVNode("line",{x1:e.canvas.x,y1:e.canvas.y,x2:e.canvas.width,y2:e.canvas.y},null,8,_hoisted_6$2$1),vue.createElementVNode("line",{x1:e.canvas.width-1,y1:e.canvas.y,x2:e.canvas.width-1,y2:e.canvas.height},null,8,_hoisted_7$g)])],8,_hoisted_1$4$1)):vue.createCommentVNode("v-if",!0)}script$5.render=render$5;script$5.__file="src/components/Grid/index.vue";var script$4=vue.defineComponent({name:"Tooltip",components:{},props:{format:{type:String,default:",.0f"},color:{type:String,default:"#7876ec"},hideLine:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},setup(e){const n=vue.ref(null),t=useChart(),a=vue.ref(t.canvas),r=vue.ref(t.config.direction),{position:o,payload:s,show:i}=useTooltip(),l=vue.computed(()=>o.value.x>=a.value.width/4*3),u=vue.computed(()=>r.value==="vertical"?{top:o.value.y-.5+"px",left:a.value.x+"px"}:r.value==="horizontal"?{top:a.value.y+"px",left:o.value.x-.5+"px"}:{top:a.value.y+"px",left:a.value.x+"px"}),c=vue.computed(()=>r.value==="vertical"?{top:"5px",left:o.value.x-30+"px"}:r.value==="horizontal"?{top:o.value.y+"px",transform:`translateX(${l.value?"-100%":0})`}:{top:o.value.y+"px",left:o.value.x+"px"}),d=(v,p)=>is$1(Function,p)?p(v):is$1(Number,v)?format(p)(v):v,f=vue.computed(()=>Object.keys(omit$1(["idx"],s.value)).map(v=>{const p=Object.assign({label:v,format:e.format,color:e.color,hide:!1},e.config[v]);return{key:v,label:p.label,value:s.value[v],valueFormatted:d(s.value[v],p.format),color:is$1(Function,p.color)?p.color(s.value):p.color,hide:p.hide}}).filter(v=>!v.hide));return vue.watch(t.updates,()=>{r.value=t.config.direction,a.value=t.canvas}),{el:n,show:i,canvas:a,direction:r,style:u,styleContent:c,position:o,items:f,isRight:l}}});const _hoisted_1$3$1={key:0};function render$4(e,n,t,a,r,o){return e.show?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip",style:vue.normalizeStyle(e.style)},[vue.createElementVNode("div",{class:"v-tooltip-content",style:vue.normalizeStyle(e.styleContent),ref:"el"},[vue.renderSlot(e.$slots,"default",{payload:e.items},()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderColor:e.color})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.items,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,style:vue.normalizeStyle({color:s.color})},[vue.createElementVNode("b",null,vue.toDisplayString(s.label),1),vue.createTextVNode(": "+vue.toDisplayString(s.valueFormatted),1)],4))),128))],4)])],4),e.hideLine?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3$1,[e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip-line-vertical",style:vue.normalizeStyle({height:e.canvas.height+"px"})},null,4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"v-tooltip-line-horizontal",style:vue.normalizeStyle({width:e.canvas.width-40+"px"})},null,4))]))],4)):vue.createCommentVNode("v-if",!0)}var css_248z=`
|
|
110
|
+
stroke-linecap="round" `),e.hideDot?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$6$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.points,(i,l)=>(vue.openBlock(),vue.createElementBlock("circle",vue.mergeProps(e.toKebabCase(e.getDotStyle({active:l===e.mouse.index,index:l})),{key:l,cx:i.x,cy:i.y}),null,16,_hoisted_3$5$1))),128))]))]),_:1},8,["dataKeys"])}script$9.render=render$9;script$9.__file="src/components/Line/index.vue";var script$8=vue.defineComponent({name:"Bar",components:{Layer:script$b},props:{selectedBar:{type:Object,default:()=>null},barStyle:{type:[Function,Object],default:()=>({fill:"blue"})},barStyleSelected:{type:[Function,Object],default:()=>({fill:"darkblue"})},maxWidth:{type:Number,default:-1},dataKeys:{type:Object,required:!0},gap:{type:Number,default:5}},setup(e,{emit:n}){const t=useMouse(),{stacked:a,maxWidth:r}=vue.inject("layerProps",{stacked:!1,maxWidth:-1}),{bars:o}=useBars(e.dataKeys,{maxWidth:Math.max(e.maxWidth,r),stacked:a,gap:e.gap,type:"bar"}),s=vue.computed(()=>is$1(Function,e.barStyle)?e.barStyle:()=>e.barStyle),i=vue.computed(()=>is$1(Function,e.barStyleSelected)?e.barStyleSelected:()=>e.barStyleSelected),l=c=>mapKeys(kebabize,c);function u(c,d){n("barClick",Object.assign(Object.assign({},c),{idx:d}))}return{getStyle:s,getStyleSelected:i,toKebabCase:l,bars:o,mouse:t,onBarClick:u}}});const _hoisted_1$7$1={key:0},_hoisted_2$5$1=["x","y","width","height","onClick"],_hoisted_3$4$1=["x","y","width","height"];function render$8(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"bar"},{default:vue.withCtx(()=>[e.bars.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$7$1,"No Data")):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.bars,(i,l)=>(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({class:"chart-bar"},e.toKebabCase(e.getStyle({...i.props,active:l===e.mouse.index})),{key:l,x:i.x,y:i.y,width:i.width>0?i.width:0,height:i.height>0?i.height:0,onClick:()=>e.onBarClick(i,l)}),null,16,_hoisted_2$5$1))),128)),e.selectedBar?(vue.openBlock(),vue.createElementBlock("rect",vue.mergeProps({key:1,class:"chart-bar"},e.toKebabCase(e.getStyleSelected({...e.selectedBar.props})),{x:e.selectedBar.x,y:e.selectedBar.y,width:e.selectedBar.width>0?e.selectedBar.width:0,height:e.selectedBar.height>0?e.selectedBar.height:0}),null,16,_hoisted_3$4$1)):vue.createCommentVNode("v-if",!0)]),_:1},8,["dataKeys"])}script$8.render=render$8;script$8.__file="src/components/Bar/index.vue";const PieSort=String;var script$7=vue.defineComponent({name:"PieLayer",components:{Layer:script$b},props:{pieStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},sort:{type:PieSort,default:"desc",required:!1},sortFunc:{type:Function,required:!1}},setup(e){var n;const t=useChart(),a=useMouse(),r=vue.ref(Math.min(t.canvas.width-t.canvas.x,t.canvas.height-t.canvas.y)/2),o=vue.computed(()=>()=>Object.assign({colors:["#4daf4a","#377eb8","#ff7f00","#984ea3","#e41a1c"],innerRadius:2,cornerRadius:0,padAngle:.01},e.pieStyle)),s=o.value(),i=vue.ref([]),l=ordinal(o.value().colors),u=()=>arc().outerRadius(r.value).innerRadius(s.innerRadius).cornerRadius(s.cornerRadius).padAngle(s.padAngle),c=vue.ref(`translate(${r.value+t.canvas.x}, ${r.value+t.canvas.y})`);let d;switch(e.sort){case"desc":d=descending$1;break;case"asc":d=ascending$1;break;case"none":d=null;break;case"custom":d=(n=e.sortFunc)!==null&&n!==void 0?n:null;break;default:d=null}function f(){const _=t.getData([e.dataKeys[1]]);i.value=pie().sort(d)(_)}function v(_){return l(_.toString())}function p(_,g){a.hover=!0,a.index=g;const[b,S]=pointer(_);a.position={x:b+r.value,y:S+r.value}}function h(){a.hover=!1,a.index=-1}function m(_){mapKeys(kebabize,_)}return vue.watch(t.updates,()=>{r.value=Math.min(t.canvas.width-t.canvas.x,(t.canvas.height-t.canvas.y)/2),c.value=`translate(${r.value+t.canvas.x}, ${r.value+t.canvas.y})`,f()}),{arcs:i,arcGen:u,getStyle:o,transform:c,getColor:v,hideTooltip:h,toKebabCase:m,showTooltip:p}}});const _hoisted_1$6$1={key:0},_hoisted_2$4$1=["transform"],_hoisted_3$3$1=["id","fill","d","onMousemove"];function render$7(e,n,t,a,r,o){const s=vue.resolveComponent("Layer");return vue.openBlock(),vue.createBlock(s,{dataKeys:e.dataKeys,type:"pie"},{default:vue.withCtx(()=>[e.arcs.length===0?(vue.openBlock(),vue.createElementBlock("text",_hoisted_1$6$1,"No Data")):vue.createCommentVNode("v-if",!0),vue.createElementVNode("g",{transform:e.transform},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.arcs,(i,l)=>(vue.openBlock(),vue.createElementBlock("path",vue.mergeProps({key:l,id:`arc-${l}`,class:"chart-pie"},e.toKebabCase(e.getStyle()),{fill:e.getColor(l),d:e.arcGen()(i),onMousemove:u=>e.showTooltip(u,l),onMouseleave:n[0]||(n[0]=u=>e.hideTooltip())}),null,16,_hoisted_3$3$1))),128))],8,_hoisted_2$4$1)]),_:1},8,["dataKeys"])}script$7.render=render$7;script$7.__file="src/components/Pie/index.vue";var script$6=vue.defineComponent({name:"Responsive",setup(){const e=vue.ref(null),{width:n,height:t}=useResize(e);return{el:e,width:n,height:t}}});const _hoisted_1$5$1={ref:"el"};function render$6(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5$1,[vue.renderSlot(e.$slots,"main",{width:e.width,height:e.height})],512)}script$6.render=render$6;script$6.__file="src/components/Responsive/index.vue";var script$5=vue.defineComponent({name:"Grid",props:{strokeDasharray:{type:String,default:()=>"3 3"},hideX:{type:Boolean,default:!1},hideY:{type:Boolean,default:!1},center:{type:Boolean,default:!0}},setup(e){const n=useChart(),t=vue.ref([]),a=vue.ref(null),r=vue.ref([]),o=vue.ref([]);function s(){const{primary:l,secondary:u}=n.scales,c=n.config.direction==="horizontal"?u:l;if(c.type==="band"&&!e.center){const d=c.map(n.getData(n.getKeys(0))).map(f=>f+c.bandwidth()/2);d.pop(),r.value=d}else{const d=c.ticks();r.value=c.map(d)}}function i(){const{primary:l,secondary:u}=n.scales,c=n.config.direction==="horizontal"?l:u;if(c.type==="band"&&!e.center){const d=c.map(n.getData(n.getKeys(0))).map(f=>f+c.bandwidth()/2);d.pop(),o.value=d}else{const d=c.ticks();o.value=c.map(d)}}return vue.watch(n.updates,()=>{t.value=n.data,a.value=n.canvas,s(),i()}),{data:t,canvas:a,xLines:r,yLines:o}}});const _hoisted_1$4$1=["stroke-dasharray"],_hoisted_2$3$1={key:0,class:"grid-x"},_hoisted_3$2$1=["x1","y1","x2","y2"],_hoisted_4$2$1={key:1,class:"grid-y"},_hoisted_5$2$1=["x1","y1","x2","y2"],_hoisted_6$2$1=["x1","y1","x2","y2"],_hoisted_7$g=["x1","y1","x2","y2"];function render$5(e,n,t,a,r,o){return e.data.length?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:"layer-grid",stroke:"black","stroke-opacity":"0.15","stroke-width":"1","stroke-dasharray":e.strokeDasharray},[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_2$3$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.xLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:e.canvas.x,y1:s,x2:e.canvas.width,y2:s},null,8,_hoisted_3$2$1))),128))])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$2$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.yLines,(s,i)=>(vue.openBlock(),vue.createElementBlock("line",{key:i,x1:s,y1:e.canvas.y,x2:s,y2:e.canvas.height},null,8,_hoisted_5$2$1))),128))])),vue.createElementVNode("g",null,[vue.createElementVNode("line",{x1:e.canvas.x,y1:e.canvas.y,x2:e.canvas.width,y2:e.canvas.y},null,8,_hoisted_6$2$1),vue.createElementVNode("line",{x1:e.canvas.width-1,y1:e.canvas.y,x2:e.canvas.width-1,y2:e.canvas.height},null,8,_hoisted_7$g)])],8,_hoisted_1$4$1)):vue.createCommentVNode("v-if",!0)}script$5.render=render$5;script$5.__file="src/components/Grid/index.vue";var script$4=vue.defineComponent({name:"Tooltip",components:{},props:{format:{type:String,default:",.0f"},color:{type:String,default:"#7876ec"},hideLine:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},setup(e){const n=vue.ref(null),t=useChart(),a=vue.ref(t.canvas),r=vue.ref(t.config.direction),{position:o,payload:s,show:i}=useTooltip(),l=vue.computed(()=>o.value.x>=a.value.width/4*3),u=vue.computed(()=>r.value==="vertical"?{top:o.value.y-.5+"px",left:a.value.x+"px"}:r.value==="horizontal"?{top:a.value.y+"px",left:o.value.x-.5+"px"}:{top:a.value.y+"px",left:a.value.x+"px"}),c=vue.computed(()=>r.value==="vertical"?{top:"5px",left:o.value.x-30+"px"}:r.value==="horizontal"?{top:o.value.y+"px",transform:`translateX(${l.value?"-100%":0})`}:{top:o.value.y+"px",left:o.value.x+"px"}),d=(v,p)=>is$1(Function,p)?p(v):is$1(Number,v)?format(p)(v):v,f=vue.computed(()=>Object.keys(omit$1(["idx"],s.value)).map(v=>{const p=Object.assign({label:v,format:e.format,color:e.color,hide:!1},e.config[v]);return{key:v,label:p.label,value:s.value[v],valueFormatted:d(s.value[v],p.format),color:is$1(Function,p.color)?p.color(s.value):p.color,hide:p.hide}}).filter(v=>!v.hide));return vue.watch(t.updates,()=>{r.value=t.config.direction,a.value=t.canvas}),{el:n,show:i,canvas:a,direction:r,style:u,styleContent:c,position:o,items:f,isRight:l}}});const _hoisted_1$3$1={key:0};function render$4(e,n,t,a,r,o){return e.show?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip",style:vue.normalizeStyle(e.style)},[vue.createElementVNode("div",{class:"v-tooltip-content",style:vue.normalizeStyle(e.styleContent),ref:"el"},[vue.renderSlot(e.$slots,"default",{payload:e.items},()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderColor:e.color})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.items,(s,i)=>(vue.openBlock(),vue.createElementBlock("div",{key:i,style:vue.normalizeStyle({color:s.color})},[vue.createElementVNode("b",null,vue.toDisplayString(s.label),1),vue.createTextVNode(": "+vue.toDisplayString(s.valueFormatted),1)],4))),128))],4)])],4),e.hideLine?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3$1,[e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-tooltip-line-vertical",style:vue.normalizeStyle({height:e.canvas.height+"px"})},null,4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"v-tooltip-line-horizontal",style:vue.normalizeStyle({width:e.canvas.width-40+"px"})},null,4))]))],4)):vue.createCommentVNode("v-if",!0)}var css_248z=`
|
|
111
111
|
.v-tooltip[data-v-43da20c6] {
|
|
112
112
|
position: absolute;
|
|
113
113
|
pointer-events: none;
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
pointer-events: none;
|
|
148
148
|
opacity: 0.3;
|
|
149
149
|
}
|
|
150
|
-
`;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=vue.defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(e){vue.provide("layerProps",e)}});function render$3(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=vue.defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(e){const n=useChart(),t=vue.ref(0),a=vue.ref("horizontal"),r=vue.ref({});return vue.watch(n.updates,()=>{e.value!==void 0&&(t.value=n.scales.secondary.scale(e.value)),r.value=n.canvas,a.value=n.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=n.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:r,direction:a}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(e,n,t,a,r,o){return e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$2$1,[vue.createElementVNode("text",{x:e.canvas.x+5,y:e.y-5,"text-anchor":"start",fill:e.color},vue.toDisplayString(e.label),9,_hoisted_2$2$1),vue.createElementVNode("line",{x1:e.canvas.x,y1:e.y,x2:e.canvas.width,y2:e.y,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_3$1$1)])):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$1$1,[vue.createElementVNode("text",{x:e.y+10,y:e.canvas.y+5,"text-anchor":"start",fill:e.color,style:{"writing-mode":"tb"}},vue.toDisplayString(e.label),9,_hoisted_5$1$1),vue.createElementVNode("line",{x1:e.y,y1:e.canvas.y,x2:e.y,y2:e.canvas.height,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(e){var n=0,t=e.children,a=t&&t.length;if(!a)n=1;else for(;--a>=0;)n+=t[a].value;e.value=n}function node_count(){return this.eachAfter(count)}function node_each(e,n){let t=-1;for(const a of this)e.call(n,a,++t,this);return this}function node_eachBefore(e,n){for(var t=this,a=[t],r,o,s=-1;t=a.pop();)if(e.call(n,t,++s,this),r=t.children)for(o=r.length-1;o>=0;--o)a.push(r[o]);return this}function node_eachAfter(e,n){for(var t=this,a=[t],r=[],o,s,i,l=-1;t=a.pop();)if(r.push(t),o=t.children)for(s=0,i=o.length;s<i;++s)a.push(o[s]);for(;t=r.pop();)e.call(n,t,++l,this);return this}function node_find(e,n){let t=-1;for(const a of this)if(e.call(n,a,++t,this))return a}function node_sum(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,a=n.children,r=a&&a.length;--r>=0;)t+=a[r].value;n.value=t})}function node_sort(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function node_path(e){for(var n=this,t=leastCommonAncestor(n,e),a=[n];n!==t;)n=n.parent,a.push(n);for(var r=a.length;e!==t;)a.splice(r,0,e),e=e.parent;return a}function leastCommonAncestor(e,n){if(e===n)return e;var t=e.ancestors(),a=n.ancestors(),r=null;for(e=t.pop(),n=a.pop();e===n;)r=e,e=t.pop(),n=a.pop();return r}function node_ancestors(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function node_links(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n}function*node_iterator(){var e=this,n,t=[e],a,r,o;do for(n=t.reverse(),t=[];e=n.pop();)if(yield e,a=e.children)for(r=0,o=a.length;r<o;++r)t.push(a[r]);while(t.length)}function hierarchy(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=mapChildren)):n===void 0&&(n=objectChildren);for(var t=new Node$2(e),a,r=[t],o,s,i,l;a=r.pop();)if((s=n(a.data))&&(l=(s=Array.from(s)).length))for(a.children=s,i=l-1;i>=0;--i)r.push(o=s[i]=new Node$2(s[i])),o.parent=a,o.depth=a.depth+1;return t.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(e){return e.children}function mapChildren(e){return Array.isArray(e)?e[1]:null}function copyData(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function computeHeight(e){var n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function Node$2(e){this.data=e,this.depth=this.height=0,this.parent=null}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(e){return e==null?null:required$2(e)}function required$2(e){if(typeof e!="function")throw new Error;return e}function constantZero(){return 0}function constant(e){return function(){return e}}function roundNode(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function treemapDice(e,n,t,a,r){for(var o=e.children,s,i=-1,l=o.length,u=e.value&&(a-n)/e.value;++i<l;)s=o[i],s.y0=t,s.y1=r,s.x0=n,s.x1=n+=s.value*u}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(e){return e.id}function defaultParentId(e){return e.parentId}function stratify(){var e=defaultId,n=defaultParentId,t;function a(r){var o=Array.from(r),s=e,i=n,l,u,c,d,f,v,p,h,g=new Map;if(t!=null){const m=o.map((S,k)=>normalize(t(S,k,r))),_=m.map(parentof),b=new Set(m).add("");for(const S of _)b.has(S)||(b.add(S),m.push(S),_.push(parentof(S)),o.push(imputed));s=(S,k)=>m[k],i=(S,k)=>_[k]}for(c=0,l=o.length;c<l;++c)u=o[c],v=o[c]=new Node$2(u),(p=s(u,c,r))!=null&&(p+="")&&(h=v.id=p,g.set(h,g.has(h)?ambiguous:v)),(p=i(u,c,r))!=null&&(p+="")&&(v.parent=p);for(c=0;c<l;++c)if(v=o[c],p=v.parent){if(f=g.get(p),!f)throw new Error("missing: "+p);if(f===ambiguous)throw new Error("ambiguous: "+p);f.children?f.children.push(v):f.children=[v],v.parent=f}else{if(d)throw new Error("multiple roots");d=v}if(!d)throw new Error("no root");if(t!=null){for(;d.data===imputed&&d.children.length===1;)d=d.children[0],--l;for(let m=o.length-1;m>=0&&(v=o[m],v.data===imputed);--m)v.data=null}if(d.parent=preroot,d.eachBefore(function(m){m.depth=m.parent.depth+1,--l}).eachBefore(computeHeight),d.parent=null,l>0)throw new Error("cycle");return d}return a.id=function(r){return arguments.length?(e=optional(r),a):e},a.parentId=function(r){return arguments.length?(n=optional(r),a):n},a.path=function(r){return arguments.length?(t=optional(r),a):t},a}function normalize(e){e=`${e}`;let n=e.length;return slash(e,n-1)&&!slash(e,n-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let n=e.length;if(n<2)return"";for(;--n>1&&!slash(e,n););return e.slice(0,n)}function slash(e,n){if(e[n]==="/"){let t=0;for(;n>0&&e[--n]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,n,t,a,r){for(var o=e.children,s,i=-1,l=o.length,u=e.value&&(r-t)/e.value;++i<l;)s=o[i],s.x0=n,s.x1=a,s.y0=t,s.y1=t+=s.value*u}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,n,t,a,r,o){for(var s=[],i=n.children,l,u,c=0,d=0,f=i.length,v,p,h=n.value,g,m,_,b,S,k,V;c<f;){v=r-t,p=o-a;do g=i[d++].value;while(!g&&d<f);for(m=_=g,k=Math.max(p/v,v/p)/(h*e),V=g*g*k,S=Math.max(_/V,V/m);d<f;++d){if(g+=u=i[d].value,u<m&&(m=u),u>_&&(_=u),V=g*g*k,b=Math.max(_/V,V/m),b>S){g-=u;break}S=b}s.push(l={value:g,dice:v<p,children:i.slice(c,d)}),l.dice?treemapDice(l,t,a,r,h?a+=p*g/h:o):treemapSlice(l,t,a,h?t+=v*g/h:r,o),h-=g,c=d}return s}var squarify=function e(n){function t(a,r,o,s,i){squarifyRatio(n,a,r,o,s,i)}return t.ratio=function(a){return e((a=+a)>1?a:1)},t}(phi);function treemap(){var e=squarify,n=!1,t=1,a=1,r=[0],o=constantZero,s=constantZero,i=constantZero,l=constantZero,u=constantZero;function c(f){return f.x0=f.y0=0,f.x1=t,f.y1=a,f.eachBefore(d),r=[0],n&&f.eachBefore(roundNode),f}function d(f){var v=r[f.depth],p=f.x0+v,h=f.y0+v,g=f.x1-v,m=f.y1-v;g<p&&(p=g=(p+g)/2),m<h&&(h=m=(h+m)/2),f.x0=p,f.y0=h,f.x1=g,f.y1=m,f.children&&(v=r[f.depth+1]=o(f)/2,p+=u(f)-v,h+=s(f)-v,g-=i(f)-v,m-=l(f)-v,g<p&&(p=g=(p+g)/2),m<h&&(h=m=(h+m)/2),e(f,p,h,g,m))}return c.round=function(f){return arguments.length?(n=!!f,c):n},c.size=function(f){return arguments.length?(t=+f[0],a=+f[1],c):[t,a]},c.tile=function(f){return arguments.length?(e=required$2(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:constant(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(s=typeof f=="function"?f:constant(+f),c):s},c.paddingRight=function(f){return arguments.length?(i=typeof f=="function"?f:constant(+f),c):i},c.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:constant(+f),c):l},c.paddingLeft=function(f){return arguments.length?(u=typeof f=="function"?f:constant(+f),c):u},c}var script$1=vue.defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(e){const n=vue.ref(null),t=vue.ref(e.data),a=vue.ref(null),r=vue.ref({x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom}),o=vue.ref([]);function s(){const v=extent(t.value.map(g=>g[e.dataKeys[1]])),p=linear().domain(v).range([0,100]).nice(),h=sequential().domain(v).interpolator(e.colorFn());return{x:p,y:h}}function i(){const{y:v}=s();return l(t.value).leaves().map((h,g)=>({idx:g,x0:r.value.x+h.x0,x1:r.value.x+h.x1,y0:r.value.y+h.y0,y1:r.value.y+h.y1,width:h.x1-h.x0,height:h.y1-h.y0,data:h.data,color:v(h.value)}))}function l(v){const{x:p}=s(),h=treemap().size([r.value.width-r.value.x,r.value.height-r.value.y]).padding(e.padding),m=stratify().id(_=>_.name).parentId(_=>_.parent)([{name:"root"}].concat(v.map(_=>({name:_[e.dataKeys[0]],value:_[e.dataKeys[1]],parent:"root"}))));return m.sum(_=>p(_.value)),h(m),m}const u=v=>mapKeys(kebabize,v),c=v=>{const p={stroke:v.color,strokeWidth:5,fill:v.color,fillOpacity:.9};return e.rcStyle&&typeof e.rcStyle=="function"?Object.assign(Object.assign({},p),e.rcStyle(v)):p};function d(v){a.value=v}function f(){a.value=null}return vue.watch(e,()=>{t.value=e.data,r.value={x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom},o.value=i()},{immediate:!0}),{el:n,rectangles:o,selected:a,getStyle:c,toKebabCase:u,onMouseOver:d,onMouseOut:f}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$W={class:"layer-rectangles"},_hoisted_4$I=["transform","onMouseover"],_hoisted_5$u=["width","height"],_hoisted_6$l={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,ref:"el"},[vue.createElementVNode("g",_hoisted_3$W,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.rectangles,(s,i)=>(vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(["rectangle",{selected:e.selected===i}]),key:i,transform:`translate(${s.x0}, ${s.y0})`,onMouseover:()=>e.onMouseOver(i),onMouseleave:n[0]||(n[0]=(...l)=>e.onMouseOut&&e.onMouseOut(...l))},[vue.renderSlot(e.$slots,"default",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("rect",vue.mergeProps(e.toKebabCase(e.getStyle(s)),{x:0,y:0,width:s.width,height:s.height}),null,16,_hoisted_5$u),vue.renderSlot(e.$slots,"text",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("text",_hoisted_6$l,vue.toDisplayString(s.data.name),1)])])],42,_hoisted_4$I))),128))])],8,_hoisted_2$1$1)),vue.renderSlot(e.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=vue.defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const e=useChart(),n=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),a=vue.ref("horizontal"),r=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{r.value=e.canvas,a.value=e.config.direction},{immediate:!0}),vue.watch(n,()=>{if(e.bandScale){const o=e.getData(e.getKeys(0)),[s]=e.bandScale.map([o[n.index]]),i=e.bandScale.bandwidth();s&&(e.config.direction==="horizontal"?t.value={x:s-i/2,y:0,width:i,height:r.value.height}:t.value={x:40,y:s-i/2,width:r.value.width-40,height:i})}}),{bar:t,canvas:r,direction:a,mouse:n}}});const _hoisted_1$1u={key:0,class:"layer-hover-bar"},_hoisted_2$16=["x","y","width","height"];function render(e,n,t,a,r,o){return e.mouse.hover?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$1u,[vue.createElementVNode("rect",vue.mergeProps({class:"hover-bar"},e.barStyle,{x:e.bar.x,y:e.bar.y,width:e.bar.width>0?e.bar.width:0,height:e.bar.height>0?e.bar.height:0}),null,16,_hoisted_2$16)])):vue.createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$1V={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,Chart:script$c,Grid:script$5,Bar:script$8,Responsive:script$6},mixins:[LoadingSpinner.dataLayerMixin],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:()=>[]},language:{type:String,default:"en-gb"}},data(){return{chartDirection:vue.ref("horizontal"),chartAxis:vue.ref({primary:{type:"band"}}),cssProps:`--chart-label: '${this.labelsMap.kgsOf}'`,tokens:LoadingSpinner.designTokens}},computed:{chartData(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison(){let e=this.labelsMap.comparison;for(let n=0;n<this.comparisonReplacements.length;n++)e=e.replace(this.comparisonReplacements[n].repl,(this.totalKilos/this.comparisonReplacements[n].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return e},interpolKGsPerDay(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent(){return this.transportKilos/this.totalKilos*100},accommodationPercent(){return this.accommodationKilos/this.totalKilos*100},foodPercent(){return this.foodKilos/this.totalKilos*100},totalPerDay(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin(e){return e>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}},_hoisted_1$1t={class:"vs-carbon-calculator-results__headline"},_hoisted_2$15={class:"mb-050"},_hoisted_3$V={class:"vs-carbon-calculator-results__total"},_hoisted_4$H=["innerHTML"],_hoisted_5$t={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$k={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1C(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsIcon"),c=vue.resolveComponent("Grid"),d=vue.resolveComponent("Bar"),f=vue.resolveComponent("Chart"),v=vue.resolveComponent("Responsive");return vue.openBlock(),vue.createBlock(l,{"data-test":"vs-carbon-calculator-results",style:vue.normalizeStyle(r.cssProps)},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.results),1)]),_:1})]),_:1}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-carbon-calculator-results__summary"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("p",_hoisted_2$15,vue.toDisplayString(o.labelsMap.resultsIntro),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_3$V,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(i,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:o.interpolComparison},null,8,_hoisted_4$H)]),_:1})]),_:1})]),_:1}),o.totalPerDay<=o.labelsMap.perDayTarget?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$t,[vue.createVNode(u,{icon:"fa-kit fa-vs-unicorn",size:"lg",variant:"highlight",class:"vs-carbon-calculator-results__unicorn-icon"})]),vue.createElementVNode("div",_hoisted_6$k,[vue.createVNode(s,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.interpolPerDaySuccess),1)])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.chartTitle),1)]),_:1})]),_:1}),vue.createVNode(i,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{main:vue.withCtx(({width:p})=>[vue.createVNode(f,{class:"vs-carbon-calculator-results__chart",size:{width:p,height:420},data:o.chartData,margin:o.responsiveMargin(p),direction:r.chartDirection,axis:r.chartAxis},{layers:vue.withCtx(()=>[vue.createVNode(c,{"stroke-dasharray":"2,2"}),vue.createVNode(d,{"data-keys":["name","emissions"],"bar-style":{fill:r.tokens["vs-color-background-highlight"]},gap:20},null,8,["bar-style"])]),_:2},1032,["size","data","margin","direction","axis"])]),_:1})]),_:1})]),_:1},8,["style"])}const VsCarbonCalculatorResults=LoadingSpinner._export_sfc(_sfc_main$1V,[["render",_sfc_render$1C]]),_sfc_main$1U={name:"VsCarbonCalculatorRunningTotal",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},language:{type:String,default:"en-gb"}}},_hoisted_1$1s={class:"vs-carbon-calculator-running-total","data-test":"vs-carbon-calculator-running-total"},_hoisted_2$14={class:"vs-carbon-calculator-running-total__icon"},_hoisted_3$U={class:"vs-carbon-calculator-running-total__content"},_hoisted_4$G={class:"vs-carbon-calculator-running-total__value"};function _sfc_render$1B(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1s,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(s,{icon:"fa-regular fa-pen-field",size:"md"})]),vue.createElementVNode("div",_hoisted_3$U,[vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$G,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=LoadingSpinner._export_sfc(_sfc_main$1U,[["render",_sfc_render$1B]]),_sfc_main$1T={name:"VsCarbonCalculatorIntro",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},inject:["labelsMap"]},_hoisted_1$1r={class:"vs-carbon-calculator-intro","data-test":"vs-carbon-calculator-intro"};function _sfc_render$1A(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createVNode(s,{level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=LoadingSpinner._export_sfc(_sfc_main$1T,[["render",_sfc_render$1A]]);function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function _objectSpread2$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(a){_defineProperty$2(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function _defineProperty$2(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function unwrapObj(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,a)=>(n.includes(a)||(t[a]=vue.unref(e[a])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get(e,n,t){let a=e;const r=n.split(".");for(let o=0;o<r.length;o++){if(!a[r[o]])return t;a=a[r[o]]}return a}function gatherBooleanGroupProperties(e,n,t){return vue.computed(()=>e.some(a=>get(n,a,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,n,t){return vue.computed(()=>e.reduce((a,r)=>{const o=get(n,r,{[t]:!1})[t]||[];return a.concat(o)},[]))}function callRule(e,n,t,a){return e.call(a,vue.unref(n),vue.unref(t),a)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,n,t,a,r,o,s){let{$lazy:i,$rewardEarly:l}=r,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const v=vue.ref(!!a.value),p=vue.ref(0);t.value=!1;const h=vue.watch([n,a].concat(u,f),()=>{if(i&&!a.value||l&&!d.value&&!t.value)return;let g;try{g=callRule(e,n,c,s)}catch(m){g=Promise.reject(m)}p.value++,t.value=!!p.value,v.value=!1,Promise.resolve(g).then(m=>{p.value--,t.value=!!p.value,o.value=m,v.value=normalizeValidatorResponse(m)}).catch(m=>{p.value--,t.value=!!p.value,o.value=m,v.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:v,$unwatch:h}}function createSyncResult(e,n,t,a,r,o,s,i){let{$lazy:l,$rewardEarly:u}=a;const c=()=>({}),d=vue.computed(()=>{if(l&&!t.value||u&&!i.value)return!1;let f=!0;try{const v=callRule(e,n,s,o);r.value=v,f=normalizeValidatorResponse(v)}catch(v){r.value=v}return f});return{$unwatch:c,$invalid:d}}function createValidatorResult(e,n,t,a,r,o,s,i,l,u,c){const d=vue.ref(!1),f=e.$params||{},v=vue.ref(null);let p,h;e.$async?{$invalid:p,$unwatch:h}=createAsyncResult(e.$validator,n,d,t,a,v,r,e.$watchTargets,l,u,c):{$invalid:p,$unwatch:h}=createSyncResult(e.$validator,n,t,a,v,r,l,u);const g=e.$message;return{$message:isFunction$2(g)?vue.computed(()=>g(unwrapObj({$pending:d,$invalid:p,$params:unwrapObj(f),$model:n,$response:v,$validator:o,$propertyPath:i,$property:s}))):g||"",$params:f,$pending:d,$invalid:p,$response:v,$unwatch:h}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=vue.unref(e),t=Object.keys(n),a={},r={},o={};let s=null;return t.forEach(i=>{const l=n[i];switch(!0){case isFunction$2(l.$validator):a[i]=l;break;case isFunction$2(l):a[i]={$validator:l};break;case i==="$validationGroups":s=l;break;case i.startsWith("$"):o[i]=l;break;default:r[i]=l}}),{rules:a,nestedValidators:r,config:o,validationGroups:s}}const ROOT_PATH="__root";function createValidationResults(e,n,t,a,r,o,s,i,l){const u=Object.keys(e),c=a.get(r,e),d=vue.ref(!1),f=vue.ref(!1),v=vue.ref(0);if(c){if(!c.$partial)return c;c.$unwatch(),d.value=c.$dirty.value}const p={$dirty:d,$path:r,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return u.length?(u.forEach(h=>{p[h]=createValidatorResult(e[h],n,p.$dirty,o,s,h,t,r,l,f,v)}),p.$externalResults=vue.computed(()=>i.value?[].concat(i.value).map((h,g)=>({$propertyPath:r,$property:t,$validator:"$externalResults",$uid:`${r}-externalResult-${g}`,$message:h,$params:{},$response:null,$pending:!1})):[]),p.$invalid=vue.computed(()=>{const h=u.some(g=>vue.unref(p[g].$invalid));return f.value=h,!!p.$externalResults.value.length||h}),p.$pending=vue.computed(()=>u.some(h=>vue.unref(p[h].$pending))),p.$error=vue.computed(()=>p.$dirty.value?p.$pending.value||p.$invalid.value:!1),p.$silentErrors=vue.computed(()=>u.filter(h=>vue.unref(p[h].$invalid)).map(h=>{const g=p[h];return vue.reactive({$propertyPath:r,$property:t,$validator:h,$uid:`${r}-${h}`,$message:g.$message,$params:g.$params,$response:g.$response,$pending:g.$pending})}).concat(p.$externalResults.value)),p.$errors=vue.computed(()=>p.$dirty.value?p.$silentErrors.value:[]),p.$unwatch=()=>u.forEach(h=>{p[h].$unwatch()}),p.$commit=()=>{f.value=!0,v.value=Date.now()},a.set(r,e,p),p):(c&&a.set(r,e,p),p)}function collectNestedValidationResults(e,n,t,a,r,o,s){const i=Object.keys(e);return i.length?i.reduce((l,u)=>(l[u]=setValidations({validations:e[u],state:n,key:u,parentKey:t,resultsCache:a,globalConfig:r,instance:o,externalResults:s}),l),{}):{}}function createMetaFields(e,n,t){const a=vue.computed(()=>[n,t].filter(p=>p).reduce((p,h)=>p.concat(Object.values(vue.unref(h))),[])),r=vue.computed({get(){return e.$dirty.value||(a.value.length?a.value.every(p=>p.$dirty):!1)},set(p){e.$dirty.value=p}}),o=vue.computed(()=>{const p=vue.unref(e.$silentErrors)||[],h=a.value.filter(g=>(vue.unref(g).$silentErrors||[]).length).reduce((g,m)=>g.concat(...m.$silentErrors),[]);return p.concat(h)}),s=vue.computed(()=>{const p=vue.unref(e.$errors)||[],h=a.value.filter(g=>(vue.unref(g).$errors||[]).length).reduce((g,m)=>g.concat(...m.$errors),[]);return p.concat(h)}),i=vue.computed(()=>a.value.some(p=>p.$invalid)||vue.unref(e.$invalid)||!1),l=vue.computed(()=>a.value.some(p=>vue.unref(p.$pending))||vue.unref(e.$pending)||!1),u=vue.computed(()=>a.value.some(p=>p.$dirty)||a.value.some(p=>p.$anyDirty)||r.value),c=vue.computed(()=>r.value?l.value||i.value:!1),d=()=>{e.$touch(),a.value.forEach(p=>{p.$touch()})},f=()=>{e.$commit(),a.value.forEach(p=>{p.$commit()})},v=()=>{e.$reset(),a.value.forEach(p=>{p.$reset()})};return a.value.length&&a.value.every(p=>p.$dirty)&&d(),{$dirty:r,$errors:s,$invalid:i,$anyDirty:u,$error:c,$pending:l,$touch:d,$reset:v,$silentErrors:o,$commit:f}}function setValidations(e){let{validations:n,state:t,key:a,parentKey:r,childResults:o,resultsCache:s,globalConfig:i={},instance:l,externalResults:u}=e;const c=r?`${r}.${a}`:a,{rules:d,nestedValidators:f,config:v,validationGroups:p}=sortValidations(n),h=_objectSpread2$1(_objectSpread2$1({},i),v),g=a?vue.computed(()=>{const T=vue.unref(t);return T?vue.unref(T[a]):void 0}):t,m=_objectSpread2$1({},vue.unref(u)||{}),_=vue.computed(()=>{const T=vue.unref(u);return a?T?vue.unref(T[a]):void 0:T}),b=createValidationResults(d,g,a,s,c,h,l,_,t),S=collectNestedValidationResults(f,g,c,s,h,l,_),k={};p&&Object.entries(p).forEach(T=>{let[z,Y]=T;k[z]={$invalid:gatherBooleanGroupProperties(Y,S,"$invalid"),$error:gatherBooleanGroupProperties(Y,S,"$error"),$pending:gatherBooleanGroupProperties(Y,S,"$pending"),$errors:gatherArrayGroupProperties(Y,S,"$errors"),$silentErrors:gatherArrayGroupProperties(Y,S,"$silentErrors")}});const{$dirty:V,$errors:L,$invalid:$,$anyDirty:A,$error:F,$pending:P,$touch:q,$reset:M,$silentErrors:j,$commit:Q}=createMetaFields(b,S,o),J=a?vue.computed({get:()=>vue.unref(g),set:T=>{V.value=!0;const z=vue.unref(t),Y=vue.unref(u);Y&&(Y[a]=m[a]),vue.isRef(z[a])?z[a].value=T:z[a]=T}}):null;a&&h.$autoDirty&&vue.watch(g,()=>{V.value||q();const T=vue.unref(u);T&&(T[a]=m[a])},{flush:"sync"});async function W(){return q(),h.$rewardEarly&&(Q(),await vue.nextTick()),await vue.nextTick(),new Promise(T=>{if(!P.value)return T(!$.value);const z=vue.watch(P,()=>{T(!$.value),z()})})}function C(T){return(o.value||{})[T]}function E(){vue.isRef(u)?u.value=m:Object.keys(m).length===0?Object.keys(u).forEach(T=>{delete u[T]}):Object.assign(u,m)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},b),{},{$model:J,$dirty:V,$error:F,$errors:L,$invalid:$,$anyDirty:A,$pending:P,$touch:q,$reset:M,$path:c||ROOT_PATH,$silentErrors:j,$validate:W,$commit:Q},o&&{$getResultsForChild:C,$clearExternalResults:E,$validationGroups:k}),S))}class ResultsStorage{constructor(){this.storage=new Map}set(n,t,a){this.storage.set(n,{rules:t,result:a})}checkRulesValidity(n,t,a){const r=Object.keys(a),o=Object.keys(t);return o.length!==r.length||!o.every(i=>r.includes(i))?!1:o.every(i=>t[i].$params?Object.keys(t[i].$params).every(l=>vue.unref(a[i].$params[l])===vue.unref(t[i].$params[l])):!0)}get(n,t){const a=this.storage.get(n);if(!a)return;const{rules:r,result:o}=a,s=this.checkRulesValidity(n,t,r),i=o.$unwatch?o.$unwatch:()=>({});return s?o:{$dirty:o.$dirty,$partial:!0,$unwatch:i}}}const CollectFlag={COLLECT_ALL:!0,COLLECT_NONE:!1},VuelidateInjectChildResults=Symbol("vuelidate#injectChildResults"),VuelidateRemoveChildResults=Symbol("vuelidate#removeChildResults");function nestedValidations(e){let{$scope:n,instance:t}=e;const a={},r=vue.ref([]),o=vue.computed(()=>r.value.reduce((c,d)=>(c[d]=vue.unref(a[d]),c),{}));function s(c,d){let{$registerAs:f,$scope:v,$stopPropagation:p}=d;p||n===CollectFlag.COLLECT_NONE||v===CollectFlag.COLLECT_NONE||n!==CollectFlag.COLLECT_ALL&&n!==v||(a[f]=c,r.value.push(f))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],s);function i(c){r.value=r.value.filter(d=>d!==c),delete a[c]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],i);const l=vue.inject(VuelidateInjectChildResults,[]);vue.provide(VuelidateInjectChildResults,t.__vuelidateInjectInstances);const u=vue.inject(VuelidateRemoveChildResults,[]);return vue.provide(VuelidateRemoveChildResults,t.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:l,removeValidationResultsFromParent:u}}function ComputedProxyFactory(e){return new Proxy(e,{get(n,t){return typeof n[t]=="object"?ComputedProxyFactory(n[t]):vue.computed(()=>n[t])}})}let uid=0;function useVuelidate(e,n){var t;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(a=e,e=void 0,n=void 0);let{$registerAs:r,$scope:o=CollectFlag.COLLECT_ALL,$stopPropagation:s,$externalResults:i,currentVueInstance:l}=a;const u=l||((t=vue.getCurrentInstance())===null||t===void 0?void 0:t.proxy),c=u?u.$options:{};r||(uid+=1,r=`_vuelidate_${uid}`);const d=vue.ref({}),f=new ResultsStorage,{childResults:v,sendValidationResultsToParent:p,removeValidationResultsFromParent:h}=u?nestedValidations({$scope:o,instance:u}):{childResults:vue.ref({})};if(!e&&c.validations){const g=c.validations;n=vue.ref({}),vue.onBeforeMount(()=>{n.value=u,vue.watch(()=>isFunction$2(g)?g.call(n.value,new ComputedProxyFactory(n.value)):g,m=>{d.value=setValidations({validations:m,state:n,childResults:v,resultsCache:f,globalConfig:a,instance:u,externalResults:i||u.vuelidateExternalResults})},{immediate:!0})}),a=c.validationsConfig||a}else{const g=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(g,m=>{d.value=setValidations({validations:m,state:n,childResults:v,resultsCache:f,globalConfig:a,instance:u??{},externalResults:i})},{immediate:!0})}return u&&(p.forEach(g=>g(d,{$registerAs:r,$scope:o,$stopPropagation:s})),vue.onBeforeUnmount(()=>h.forEach(g=>g(r)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(d.value)),v.value))}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(a){_defineProperty$1(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function _defineProperty$1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function isFunction$1(e){return typeof e=="function"}function isObject$1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function normalizeValidatorObject(e){return isFunction$1(e.$validator)?_objectSpread2({},e):{$validator:e}}function unwrapValidatorResponse(e){return typeof e=="object"?e.$valid:e}function unwrapNormalizedValidator(e){return e.$validator||e}function withParams(e,n){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,n){if(!isFunction$1(e)&&typeof vue.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$message=e,t}function withAsync(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:n})}function forEach(e){return{$validator(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return vue.unref(n).reduce((o,s,i)=>{const l=Object.entries(s).reduce((u,c)=>{let[d,f]=c;const v=e[d]||{},p=Object.entries(v).reduce((h,g)=>{let[m,_]=g;const S=unwrapNormalizedValidator(_).call(this,f,s,i,...a),k=unwrapValidatorResponse(S);if(h.$data[m]=S,h.$data.$invalid=!k||!!h.$data.$invalid,h.$data.$error=h.$data.$invalid,!k){let V=_.$message||"";const L=_.$params||{};typeof V=="function"&&(V=V({$pending:!1,$invalid:!k,$params:L,$model:f,$response:S})),h.$errors.push({$property:d,$message:V,$params:L,$response:S,$model:f,$pending:!1,$validator:m})}return{$valid:h.$valid&&k,$data:h.$data,$errors:h.$errors}},{$valid:!0,$data:{},$errors:[]});return u.$data[d]=p.$data,u.$errors[d]=p.$errors,{$valid:u.$valid&&p.$valid,$data:u.$data,$errors:u.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&l.$valid,$data:o.$data.concat(l.$data),$errors:o.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:t}=n;return t?t.$errors.map(a=>Object.values(a).map(r=>r.map(o=>o.$message)).reduce((r,o)=>r.concat(o),[])):[]}}}const req=e=>{if(e=vue.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length},len=e=>(e=vue.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function regex(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return a=>(a=vue.unref(a),!req(a)||n.every(r=>(r.lastIndex=0,r.test(a))))}var common$1=Object.freeze({__proto__:null,forEach,len,normalizeValidatorObject,regex,req,unwrap:vue.unref,unwrapNormalizedValidator,unwrapValidatorResponse,withAsync,withMessage,withParams});regex(/^[a-zA-Z]*$/);regex(/^[a-zA-Z0-9]*$/);regex(/^\d*(\.\d+)?$/);const emailRegex=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var email$1=regex(emailRegex),email={$validator:email$1,$message:"Value is not a valid email address",$params:{type:"email"}};function maxLength$1(e){return n=>!req(n)||len(n)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:n=>{let{$params:t}=n;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return n=>!req(n)||len(n)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:n=>{let{$params:t}=n;return`This field should be at least ${t.min} characters long`},$params:{min:e,type:"minLength"}}}function required$1(e){return typeof e=="string"&&(e=e.trim()),req(e)}var required={$validator:required$1,$message:"Value is required",$params:{type:"required"}};const urlRegex=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;regex(urlRegex);regex(/(^[0-9]*$)|(^-[0-9]+$)/);regex(/^[-]?\d*(\.\d+)?$/);const postcode=common$1.regex(/^([A-Za-z][A-HJ-Ya-hj-y]?\d[A-Za-z\d]? ?\d[A-Za-z]{2}|GIR ?0A{2})$/),validateFormElementMixin={emits:["status-update"],data(){return{inputVal:this.value,isInvalid:this.invalid}},computed:{isRequired(){return typeof required<"u"&&"required"in this.validationRules},rules(){let e={};for(const[n,t]of Object.entries(this.validationRules))n==="required"?e={...e,required}:n==="email"?e={...e,email}:n==="minLength"?e={...e,minLength:minLength(t)}:n==="maxLength"?e={...e,maxLength:maxLength(t)}:n==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:n==="postcode"&&(e={...e,postcode});return typeof e<"u"?(e={...e},{inputVal:e}):{}},errorsList(){const e=[];return Object.keys(this.rules.inputVal).forEach(t=>{this.v$.$errors&&this.v$.$errors.forEach(a=>{a.$validator===t&&e.push(t)})}),e}},watch:{errorsList(e){e.length?this.isInvalid=!0:this.isInvalid=!1}},methods:{manualValidate(){if(this.isInvalid=!1,"required"in this.rules.inputVal){let e=!1;typeof this.inputVal=="string"?/\S/.test(this.inputVal)||(e=!0):this.inputVal||(e=!0),e&&this.errorsList.indexOf("required")===-1&&this.errorsList.push("required")}else this.errorsList.forEach((e,n)=>{e==="required"&&this.errorsList.splice(n,1)});this.errorsList.length&&(this.isInvalid=!0),this.touched=!0,this.$emit("status-update",{field:this.fieldName,value:this.inputVal,errors:this.errorsList})},emitStatus(){setTimeout(()=>{this.manualValidate(),this.touched=!0,this.v$.$touch()},50)}}},ariaDescriptionMixin={computed:{ariaDescription(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?`error-${this.fieldName}`:this.hintText?`hint-${this.fieldName}`:null}}},_sfc_main$1S={name:"VsRadioButton",status:"prototype",release:"0.0.1",components:{BFormRadioGroup:LoadingSpinner.Ou,BFormRadio:LoadingSpinner.pn},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1},options:{type:Array,required:!0},hintText:{type:String,default:""}},emits:["updated","updateFieldData"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1,checkedValue:this.value}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},valueChanged(e){this.checkedValue=e.value,this.$emit("updateFieldData",e)}},validations(){return this.rules}},_hoisted_1$1q={class:"vs-radio-button","data-test":"vs-radio-button"},_hoisted_2$13=["id"],_hoisted_3$T={class:"visually-hidden"},_hoisted_4$F=["id"];function _sfc_render$1z(e,n,t,a,r,o){const s=vue.resolveComponent("BFormRadio"),i=vue.resolveComponent("BFormRadioGroup");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1q,[e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_3$T,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_2$13)):vue.createCommentVNode("",!0),vue.createVNode(i,{id:t.fieldName,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,(l,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-radio-button__option",[r.checkedValue===l.value?"vs-radio-button__option--checked":"",{"vs-radio-button__option--disabled":l.disabled}]]),key:u},[vue.createVNode(s,{value:l.value,name:t.fieldName,id:t.fieldName+l.value,onChange:c=>o.valueChanged({field:t.fieldName,value:l.value}),disabled:l.disabled},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(l.text),1)]),_:2},1032,["value","name","id","onChange","disabled"])],2))),128))]),_:1},8,["id","aria-invalid","aria-describedby","onBlur","onChange","onFocus"]),t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_4$F)):vue.createCommentVNode("",!0)])}const VsRadioButton=LoadingSpinner._export_sfc(_sfc_main$1S,[["render",_sfc_render$1z]]),_sfc_main$1R={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:LoadingSpinner.Tu,VsButton:LoadingSpinner.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=0},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},controlBlurred(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},decrementValue(e){e&&e.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue(e){e&&e.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations(){return this.rules}},_hoisted_1$1p={"data-test":"vs-number-input"},_hoisted_2$12=["id"],_hoisted_3$S=["id"],_hoisted_4$E={class:"visually-hidden"},_hoisted_5$s={class:"visually-hidden"};function _sfc_render$1y(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("BFormInput");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1p,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$12)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$E,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$S)):vue.createCommentVNode("",!0),vue.createVNode(s,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"fa-regular fa-minus",disabled:r.inputVal<=t.minimumNumber?!0:null,onClick:o.decrementValue},{default:vue.withCtx(()=>n[2]||(n[2]=[vue.createTextVNode(" Remove 1 ")])),_:1,__:[2]},8,["disabled","onClick"]),vue.createVNode(i,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",o.elementClass]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>r.inputVal=l),id:t.fieldName,name:t.fieldName,required:e.isRequired,v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.minimumNumber||null,max:t.maximumNumber||null,onBlur:o.controlBlurred,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),vue.createVNode(s,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"fa-regular fa-plus",disabled:r.inputVal>=t.maximumNumber?!0:null,onClick:o.incrementValue},{default:vue.withCtx(()=>n[3]||(n[3]=[vue.createTextVNode(" Add 1 ")])),_:1,__:[3]},8,["disabled","onClick"]),o.showClearButton?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:n[1]||(n[1]=vue.withModifiers(l=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$s,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsNumberInput=LoadingSpinner._export_sfc(_sfc_main$1R,[["render",_sfc_render$1y]]),_sfc_main$1Q={name:"VsCarbonCalculatorQuestion",status:"prototype",release:"0.0.1",components:{BFormGroup:LoadingSpinner.ku,VsRadioButton,VsNumberInput},props:{label:{type:String,required:!0},labelFor:{type:String,required:!0},hint:{type:String,default:""},fieldClass:{type:String,required:!0},fieldType:{type:String,default:"radio",validator:e=>e.match(/(radio|number)/)},fieldName:{type:String,required:!0},options:{type:Array,required:!0},minimum:{type:Number,default:0},maximum:{type:Number,default:0}},emits:["updateFieldData"],methods:{valueChanged(e){this.$emit("updateFieldData",e)}}},_hoisted_1$1o=["for"];function _sfc_render$1x(e,n,t,a,r,o){const s=vue.resolveComponent("VsRadioButton"),i=vue.resolveComponent("VsNumberInput"),l=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass([t.fieldClass,"vs-carbon-calculator-question"]),"data-test":"vs-carbon-calculator-question"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(t.fieldClass)},[vue.createElementVNode("label",{class:"vs-carbon-calculator-question__label mb-200",for:t.fieldName},vue.toDisplayString(t.label),9,_hoisted_1$1o),t.fieldType==="radio"?(vue.openBlock(),vue.createBlock(s,{key:0,"field-name":t.fieldName,options:t.options,required:!0,"hint-text":t.hint,onUpdateFieldData:o.valueChanged},null,8,["field-name","options","hint-text","onUpdateFieldData"])):vue.createCommentVNode("",!0),t.fieldType==="number"?(vue.openBlock(),vue.createBlock(i,{key:1,"field-name":t.fieldName,"increment-controls":!0,value:0,"minimum-number":t.minimum,"maximum-number":t.maximum,"hint-text":t.hint,onUpdated:o.valueChanged},null,8,["field-name","minimum-number","maximum-number","hint-text","onUpdated"])):vue.createCommentVNode("",!0)],2)]),_:1},8,["class"])}const VsCarbonCalculatorQuestion=LoadingSpinner._export_sfc(_sfc_main$1Q,[["render",_sfc_render$1x]]),_sfc_main$1P={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsWarning:LoadingSpinner.VsWarning,VsProgressBar,VsHeading:LoadingSpinner.VsHeading,VsCarbonCalculatorResults,VsCarbonCalculatorTip,VsCarbonCalculatorRunningTotal,VsCarbonCalculatorIntro,VsCarbonCalculatorQuestion},mixins:[LoadingSpinner.dataLayerMixin],provide(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data(){return this.initialState()},computed:{currentQuestion(){return!this.formData||!this.activeStage?null:this.formData.fields[this.activeStage-1]},currentTip(){return this.activeStage&&this.labelsMap[`stage-${this.activeStage}.tip`]?this.labelsMap[`stage-${this.activeStage}.tip`]:""},stayDuration(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory(){return this.labelsMap[`stage-${this.activeStage}.title`]?this.labelsMap[`stage-${this.activeStage}.title`]:""},activeStageRepeatable(){return this.labelsMap[`stage-${this.activeStage}.repeat`]?this.labelsMap[`stage-${this.activeStage}.repeat`]:""}},mounted(){this.getFormData()},methods:{initialState(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart(){const{formData:e,repeatableStages:n}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=n,this.cleanFields()},cleanFields(){for(let e=this.formData.fields.length-1;e>=0;e--)this.formData.fields[e].isClone&&this.formData.fields.splice(e,1);for(let e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData(){LoadingSpinner.axios.get(this.labelsMap.formUrl).then(e=>{if(this.formData=e.data,e.data.fields.forEach(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let n=0;n<e.data.repeatableStages.length;n++)this.repeatableStages[e.data.repeatableStages[n]]={generations:0}})},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getQuestionLabel(e,n){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-question`])return this.labelsMap[`question-${e.originalNumber+1}.clone-question`];if(this.labelsMap[`question-${e.originalNumber+1}.question`])return this.labelsMap[`question-${e.originalNumber+1}.question`]}return this.labelsMap[`question-${n+1}.question`]?this.labelsMap[`question-${n+1}.question`]:""},getQuestionHint(e,n){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-hint`])return this.labelsMap[`question-${e.originalNumber+1}.clone-hint`];if(this.labelsMap[`question-${e.originalNumber+1}.hint`])return this.labelsMap[`question-${e.originalNumber+1}.hint`]}return this.labelsMap[`question-${n+1}.hint`]?this.labelsMap[`question-${n+1}.hint`]:""},getQuestionOptions(e,n){let t;if(e.isClone?t=e.originalNumber:t=n,e.element==="radio"){const{options:a}=e;for(let r=0;r<a.length;r++)a[r].text=this.labelsMap[`question-${t+1}.option-${r+1}`];return a}return[]},updateFieldData(e){this.form[e.field]=e.value||"",e.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus(e,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},getRadioValue(e,n){if(!n)return 0;let t;for(let r=0;r<this.formData.fields.length;r++)this.formData.fields[r].name===e&&(t=this.formData.fields[r]);const a=t.values[n];if(t.multiplyByNumber)return a*t.multiplyByNumber;if(t.multiplyByAnswer){let r=this.form[t.multiplyByAnswer.question]||0;return r=Math.max(r,t.multiplyByAnswer.minimum),a*r}if(t.multiplyByValue&&e!==t.multiplyByValue){let r=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question])||0;return r=Math.max(r,t.multiplyByValue.minimum),a*r}return a},getNumberValue(e,n){if(!n)return 0;let t;for(let a=0;a<this.formData.fields.length;a++)this.formData.fields[a].name===e&&(t=this.formData.fields[a]);if(t.multiplyByNumber)return parseInt(n,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const a=this.form[t.multiplyByAnswer.question]||0;return parseInt(n,10)*a}if(t.multiplyByValue&&e!==t.multiplyByValue){const a=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(n,10)*a}return 0},getFieldValue(e){return e.element==="radio"?this.getRadioValue(e.name,this.form[e.name]):e.element==="number"?this.getNumberValue(e.name,this.form[e.name]):0},calculateEmissions(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(let e=0;e<this.formData.fields.length;e++){const n=this.formData.fields[e];switch(n.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(n);break;case 2:this.accommodationKilos+=this.getFieldValue(n);break;case 4:this.foodKilos+=this.getFieldValue(n);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(a=>a.name===e);let t=!0;Object.keys(n.conditional).forEach(a=>{const r=n.conditional[a];Array.isArray(r)?r.indexOf(this.form[a])===-1&&(t=!1):this.form[a]!==r&&(t=!1),t?this.conditionalFields[e]=!0:(this.conditionalFields[e]=!1,this.manageErrorStatus(e,[]))})})},forwardPage(e){e&&e.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage(e){e&&e.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet(){if(this.activeStage>this.formData.stages){this.answerSet=!0;return}this.answerSet=!0;for(let e=0;e<this.formData.fields.length;e++)if(this.formData.fields[e].stage===this.activeStage){const n=this.formData.fields[e];n.element==="radio"&&!this.form[n.name]?this.answerSet=!1:n.element==="number"&&!this.form[n.name]&&(this.form[n.name]=n.validation.min)}},isRepeatable(e){return!!(this.repeatableStages[e]&&this.repeatableStages[e].generations<3)},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"},resetFocus(){this.$nextTick(()=>{this.$nextTick(()=>{try{this.$refs.questions[this.activeStage-1].$el.focus(),this.$refs.progress.$el.scrollIntoView()}catch{}})})},duplicateCurrentStage(e){e&&e.preventDefault();const n=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const a=this.formData.fields[t];if(a.stage===this.activeStage&&!a.isClone){const r=JSON.parse(JSON.stringify(a));r.isClone=!0;const o=`${a.name}${n}`;r.name=o,r.originalNumber=t,this.form[o]="",this.formData.fields.push(r)}}this.repeatableStages[this.activeStage].generations=n}}},_hoisted_1$1n={class:"vs-carbon-calculator__wrapper"},_hoisted_2$11={key:1};function _sfc_render$1w(e,n,t,a,r,o){const s=vue.resolveComponent("VsCarbonCalculatorIntro"),i=vue.resolveComponent("VsProgressBar"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCarbonCalculatorQuestion"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsCarbonCalculatorTip"),f=vue.resolveComponent("VsCol"),v=vue.resolveComponent("VsCarbonCalculatorRunningTotal"),p=vue.resolveComponent("VsCarbonCalculatorResults"),h=vue.resolveComponent("VsRow"),g=vue.resolveComponent("VsContainer"),m=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1n,[vue.createVNode(g,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(h,{key:0,class:"vs-carbon-calculator__survey"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[e.activeStage?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0})),e.activeStage?(vue.openBlock(),vue.createElementBlock("form",_hoisted_2$11,[vue.createElementVNode("fieldset",null,[vue.createVNode(i,{max:e.formData.stages,"current-step":e.activeStage<=e.formData.stages?e.activeStage:e.formData.stages,"is-stepped":!0,"is-full":e.activeStage>e.formData.stages,"progress-label":t.labelsMap.progress,ref:"progress"},null,8,["max","current-step","is-full","progress-label"]),vue.withDirectives(vue.createElementVNode("div",null,[o.currentCategory?(vue.openBlock(),vue.createBlock(l,{key:0,level:"2","heading-style":"heading-m",class:"vs-carbon-calculator__category-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(_,b)=>vue.withDirectives((vue.openBlock(),vue.createBlock(u,{ref_for:!0,ref:"questions",tabindex:"0",key:_.name,label:o.getQuestionLabel(_,b),"label-for":_.name,hint:o.getQuestionHint(_,b),"field-class":o.conditionalElementClass(_.name),"field-type":_.element,"field-name":_.name,options:o.getQuestionOptions(_,b),minimum:_.element==="number"?_.validation.min:0,maximum:_.element==="number"?_.validation.max:0,onUpdateFieldData:o.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,_.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),o.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(c,{key:2,class:"my-100",variant:"secondary",icon:"fa-regular fa-plus",onClick:n[0]||(n[0]=_=>o.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),o.currentTip?(vue.openBlock(),vue.createBlock(d,{key:3,tip:o.currentTip},null,8,["tip"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(f,{cols:"12"},{default:vue.withCtx(()=>[e.activeStage>0&&e.activeStage<=e.formData.stages?(vue.openBlock(),vue.createBlock(v,{key:0,"total-kilos":e.totalKilos,language:t.language},null,8,["total-kilos","language"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(p,{key:1,"total-kilos":e.totalKilos,"transport-kilos":e.transportKilos,"food-kilos":e.foodKilos,"accommodation-kilos":e.accommodationKilos,"stay-duration":o.stayDuration,"comparison-replacements":e.formData.comparisonReplacements,language:t.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparison-replacements","language"])):vue.createCommentVNode("",!0)]),_:1}),e.activeStage===0?(vue.openBlock(),vue.createBlock(f,{key:0,class:"text-center",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(c,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:n[1]||(n[1]=_=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.begin),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.activeStage>0?(vue.openBlock(),vue.createBlock(f,{key:1,cols:"12"},{default:vue.withCtx(()=>[e.activeStage>1?(vue.openBlock(),vue.createBlock(c,{key:0,variant:"secondary",type:"submit",class:"vs-form__submit mt-300 float-start",ref:"backPage",onClick:n[2]||(n[2]=_=>o.backwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.previous),1)]),_:1},512)):vue.createCommentVNode("",!0),e.activeStage<e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",ref:"forwardPage",disabled:e.activeStage>0&&!e.answerSet,onClick:n[3]||(n[3]=_=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.next),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage===e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",disabled:!e.answerSet,onClick:n[4]||(n[4]=_=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.results),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",onClick:n[5]||(n[5]=_=>o.restart())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.restart),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=LoadingSpinner._export_sfc(_sfc_main$1P,[["render",_sfc_render$1w]]),_sfc_main$1O={name:"VsCard",status:"prototype",release:"0.1.0",props:{cardStyle:{type:String,default:null,validator:e=>e.match(/(elevated|outlined|overlay)/)},fillColor:{type:String,default:"vs-color-interaction-cta-subtle"},accentBar:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1}},data(){return{tokens:LoadingSpinner.designTokens}},computed:{cardClasses(){return[{"vs-card--horizontal":this.horizontal,"vs-card--accent-bar":this.accentBar},this.cardStyle?`vs-card--${this.cardStyle}`:null]},cardStyles(){return this.fillColor?{"background-color":this.tokens[this.fillColor]||this.fillColor}:null}}},_hoisted_1$1m={key:0,class:"vs-card__header"},_hoisted_2$10={class:"vs-card__body"},_hoisted_3$R={key:1,class:"vs-card__footer"},_hoisted_4$D={key:2,class:"vs-card__image"};function _sfc_render$1v(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-card",o.cardClasses]),"data-test":"vs-card",style:vue.normalizeStyle(o.cardStyles)},[e.$slots["vs-card-header"]&&e.$slots["vs-card-header"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1m,[vue.renderSlot(e.$slots,"vs-card-header")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$10,[vue.renderSlot(e.$slots,"vs-card-body")]),e.$slots["vs-card-footer"]&&e.$slots["vs-card-footer"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$R,[vue.renderSlot(e.$slots,"vs-card-footer")])):vue.createCommentVNode("",!0),t.cardStyle==="overlay"&&e.$slots["vs-card-image"]&&e.$slots["vs-card-image"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$D,[vue.renderSlot(e.$slots,"vs-card-image")])):vue.createCommentVNode("",!0)],6)}const VsCard=LoadingSpinner._export_sfc(_sfc_main$1O,[["render",_sfc_render$1v]]),_sfc_main$1N={name:"VsCardGroup",status:"prototype",release:"0.1.0",props:{variant:{type:String,default:"grid",validator:e=>e.match(/(grid)/)},cardsPerRow:{type:Number,default:3,validator:e=>[3,4].includes(e)},scrollSnap:{type:[Boolean,String],default:!1,validator:e=>[!1,!0,"always"].includes(e)}},computed:{cardGroupClasses(){return["vs-card-group",{"is-scroll-snap-responsive":this.scrollSnap===!0,"is-scroll-snap-always":this.scrollSnap==="always","is-grid":this.variant==="grid"}]}}};function _sfc_render$1u(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.cardGroupClasses),style:vue.normalizeStyle({"--cards-in-row":t.cardsPerRow}),"data-test":"vs-card-group"},[vue.renderSlot(e.$slots,"default")],6)}const VsCardGroup=LoadingSpinner._export_sfc(_sfc_main$1N,[["render",_sfc_render$1u]]),noJsClass="no-js",jsIsDisabled=()=>document.getElementsByClassName(noJsClass).length>0,useVideoStore=pinia.defineStore("video",{state:()=>({videos:{}}),actions:{addVideo(e){this.videos[e.videoId]={...e}}}}),cookieCheckerMixin={data(){return{requiredCookies:[],requiredCookiesAllowed:!1,cookieManagerLoaded:!1}},methods:{managerLoaded(){this.cookieManagerLoaded=!0},cookiesUpdated(){let e=!1;typeof CookieControl<"u"&&(e=this.requiredCookies.every(n=>CookieControl&&CookieControl.getCategoryConsent(n)===!0)),this.requiredCookiesAllowed=e,typeof this.callbackOnUpdated<"u"&&this.callbackOnUpdated()}},computed:{cookiesAllowed(){return typeof window<"u"&&window.bypassCookiesRequired?!0:this.requiredCookiesAllowed},cookiesLoaded(){return typeof window<"u"&&window.bypassCookiesLoaded?!0:this.cookieManagerLoaded}},mounted(){window.addEventListener("cookieManagerLoaded",()=>{this.managerLoaded()}),window.addEventListener("cookiesUpdated",()=>{this.cookiesUpdated()})}},cookieCategories=Object.freeze({analytical:0,marketing:1}),cookieValues$5={youtube:[cookieCategories.marketing],embed:[cookieCategories.analytical,cookieCategories.marketing],google_maps:[cookieCategories.analytical,cookieCategories.marketing]},cookieValues$4=cookieValues$5.youtube,_sfc_main$1M={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsLink,VsImg:LoadingSpinner.VsImg,VsButton:LoadingSpinner.VsButton,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:null},theme:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:e=>e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],default:"heading-xs",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)},type:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:e=>e.match(/(image|full)/)},warningSize:{type:String,default:"small",validator:e=>e.match(/(normal|small)/)},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},setup(){return{videoStore:useVideoStore()}},data(){return{jsDisabled:!0,requiredCookies:cookieValues$4}},computed:{formattedVideoBtnText(){return`${this.videoBtnText} | `},formattedVideoDuration(){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`},stretchedLinkCardClasses(){let e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),this.type==="video"&&(e+=" vs-stretched-link-card--video"),this.showWarning&&this.type==="video"&&(e+=" vs-stretched-link-card--warning"),e},videoDetails(){return this.videoStore?this.videoStore.videos[this.videoId]:null},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},warningClass(){let e="";return this.videoId&&(this.jsDisabled||!this.cookiesAllowed)&&(e="vs-stretched-link-card__img-container--warning ",this.errorType==="full"&&(this.cookiesLoaded||this.jsDisabled)&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning(){return!!(this.videoId&&!this.jsDisabled&&!this.cookiesAllowed&&this.cookiesLoaded)},showError(){return!!(this.videoId&&this.errorMessage!==""&&!this.cookiesLoaded)},showWarning(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage(){let e="";return this.showCookieWarning?e=this.noCookiesMessage:e=this.errorMessage,e},warningAttrs(){const e={};return this.type==="cookie"&&(e.class="vs-warning__cookie-trigger"),this.size==="small"&&(e.size="sm"),e},isSvg(){return!!(this.imgSrc&&this.imgSrc.includes(".svg"))}},mounted(){this.jsDisabled=jsIsDisabled()},methods:{emitShowModal(){!this.videoId||!this.cookiesAllowed||this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$1l={key:0,class:"vs-stretched-link-card__video-btn-text"},_hoisted_2$$={key:4,class:"card-body"},_hoisted_3$Q={key:0,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},_hoisted_4$C={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},_hoisted_5$r={key:2,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1t(e,n,t,a,r,o){const s=vue.resolveComponent("VsWarning"),i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["card vs-stretched-link-card",o.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:n[0]||(n[0]=(...d)=>o.emitShowModal&&o.emitShowModal(...d)),onKeypress:n[1]||(n[1]=(...d)=>o.emitShowModal&&o.emitShowModal(...d))},[o.showWarning==="full"?(vue.openBlock(),vue.createBlock(s,{key:0,size:t.warningSize,type:o.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage)+" ",1)]),_:2},[o.cookieLinkText!==""&&o.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.errorType==="full"&&t.videoId!==""?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.imgSrc?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["vs-stretched-link-card__img-container",o.warningClass])},[t.imgSrc?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(i,{src:t.imgSrc,alt:t.imgAlt,class:vue.normalizeClass(["vs-stretched-link-card__img",o.isSvg?"vs-stretched-link-card__img--svg":""]),"data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt","class"]),t.videoId&&o.videoLoaded&&e.cookiesAllowed?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"fa-regular fa-play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1l,vue.toDisplayString(o.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(o.formattedVideoDuration),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),o.showWarning==="image"?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,type:o.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage)+" ",1)]),_:2},[o.cookieLinkText!==""&&o.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.videoId!==""&&t.errorType==="image"?(vue.openBlock(),vue.createBlock(s,{key:2,size:t.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?vue.renderSlot(e.$slots,"stretched-card-panels",{key:3}):vue.createCommentVNode("",!0),o.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$$,[e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$Q,[vue.renderSlot(e.$slots,"stretched-card-category")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?(vue.openBlock(),vue.createBlock(c,{key:1,level:t.headingLevel,"heading-style":t.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:vue.withCtx(()=>[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?vue.renderSlot(e.$slots,"stretched-card-header",{key:0}):!t.businessSupport&&t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(u,{key:2,href:t.link,type:t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:o.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:(t.videoId||t.disabled)&&!t.businessSupport?"-1":"0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-header")]),_:3},8,["href","type","class","variant","disabled","tabindex"]))]),_:3},8,["level","heading-style"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$C,[vue.renderSlot(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$r,[vue.renderSlot(e.$slots,"stretched-card-badges")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(vue.openBlock(),vue.createBlock(u,{key:3,href:t.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-link")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],34)}const VsStretchedLinkCard=LoadingSpinner._export_sfc(_sfc_main$1M,[["render",_sfc_render$1t]]),_sfc_main$1L={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}},_hoisted_1$1k={class:"vs-stretched-link-panels"},_hoisted_2$_={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},_hoisted_3$P={"data-test":""},_hoisted_4$B={class:"vs-stretched-link-panels__days"},_hoisted_5$q={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$j={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1s(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1k,[vue.createElementVNode("div",_hoisted_2$_,[vue.createElementVNode("p",_hoisted_3$P,[vue.createElementVNode("span",_hoisted_4$B,vue.toDisplayString(t.days),1),vue.createTextVNode(vue.toDisplayString(t.daysLabel),1)])]),vue.createElementVNode("div",_hoisted_5$q,[vue.createVNode(s,{icon:t.transport,variant:"inverse",size:"sm",class:"vs-stretched-link-panels__icon"},null,8,["icon"]),vue.createElementVNode("p",_hoisted_6$j,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=LoadingSpinner._export_sfc(_sfc_main$1L,[["render",_sfc_render$1s]]),_sfc_main$1K={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsStretchedLinkPanels,VsCol:LoadingSpinner.VsCol},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download)/)},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible(e){const n=parseInt(e,10);return this.visibleSlides.indexOf(n)>=0}}},_hoisted_1$1j={class:"vs-carousel-slide"},_hoisted_2$Z={class:"visually-hidden"},_hoisted_3$O={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function _sfc_render$1r(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsStretchedLinkCard"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!o.isVisible(t.slideIndex)},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(i,{link:t.linkUrl,type:t.linkType,"img-src":t.imgSrc,"img-alt":t.imgAlt,class:vue.normalizeClass([o.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!o.isVisible(t.slideIndex),"data-test":"vs-carousel-card"},vue.createSlots({"stretched-card-category":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$Z,vue.toDisplayString(t.categoryLabel)+": ",1),vue.createTextVNode(vue.toDisplayString(t.category),1)]),"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$O,[vue.renderSlot(e.$slots,"vs-carousel-slide-heading")])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const CarouselSlide=LoadingSpinner._export_sfc(_sfc_main$1K,[["render",_sfc_render$1r]]),_sfc_main$1J={name:"VsCheckbox",status:"prototype",release:"0.0.1",components:{BFormCheckbox:LoadingSpinner.fn},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{fieldName:{type:String,required:!0},value:{type:String,default:""},label:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},infoText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:e=>e.match(/(sm|md|lg)/)}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:"",errors:[]}},computed:{checkBoxClasses(){return{"vs-checkbox":!0,"vs-checkbox--error":this.isInvalid,"vs-checkbox--small":this.size==="sm"}}},watch:{value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},validations(){return this.rules}},_hoisted_1$1i=["id"],_hoisted_2$Y=["innerHTML"],_hoisted_3$N=["id"],_hoisted_4$A={class:"visually-hidden"},_hoisted_5$p={class:"vs-checkbox__label"};function _sfc_render$1q(e,n,t,a,r,o){const s=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.checkBoxClasses)},[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_1$1i),t.infoText!==""?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:t.infoText},null,8,_hoisted_2$Y)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$A,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$N)):vue.createCommentVNode("",!0),t.fieldName?(vue.openBlock(),vue.createBlock(s,vue.mergeProps({key:2,modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i),class:"me-100",name:t.fieldName,id:t.fieldName,value:t.value,unchecked_value:`not_${t.value}`},e.$attrs,{"data-test":"vs-checkbox",onBlur:e.emitStatus,onChange:e.emitStatus,required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription}),{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$p,vue.toDisplayString(t.label),1)]),_:1},16,["modelValue","name","id","value","unchecked_value","onBlur","onChange","required","aria-invalid","aria-describedby"])):vue.createCommentVNode("",!0)],2)}const VsCheckbox=LoadingSpinner._export_sfc(_sfc_main$1J,[["render",_sfc_render$1q]]),_sfc_main$1I={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1p(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("dl",{class:vue.normalizeClass(["vs-description-list",{"list-inline":t.inline}])},[vue.renderSlot(e.$slots,"default")],2)}const DescriptionList=LoadingSpinner._export_sfc(_sfc_main$1I,[["render",_sfc_render$1p]]),_sfc_main$1H={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1o(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(s,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":o.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!o.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!o.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=LoadingSpinner._export_sfc(_sfc_main$1H,[["render",_sfc_render$1o],["__scopeId","data-v-46cd5138"]]),_sfc_main$1G={name:"VsDetail",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{size:{type:String,default:"medium",validator:e=>e.match(/(small|medium|large)/)},color:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|tertiary)/)},noMargins:{type:Boolean,default:!1},icon:{type:String,default:""},iconVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|tertiary|cta|inverse|disabled|highlight|error|warning|success)/)}},computed:{detailClasses(){return["vs-detail",`vs-detail--${this.size}`,`vs-detail--${this.color}`,...this.icon?["d-flex","align-items-baseline"]:[],...this.noMargins?[]:["vs-detail--with-margins"]]},iconSize(){return this.size==="small"?"xxs":"xs"}}};function _sfc_render$1n(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("p",{class:vue.normalizeClass(o.detailClasses)},[t.icon?(vue.openBlock(),vue.createBlock(s,{key:0,class:"me-050 flex-shrink-0",icon:t.icon,size:o.iconSize,variant:t.iconVariant},null,8,["icon","size","variant"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",null,[vue.renderSlot(e.$slots,"default")])],2)}const VsDetail=LoadingSpinner._export_sfc(_sfc_main$1G,[["render",_sfc_render$1n]]),_sfc_main$1F={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:LoadingSpinner.un},props:{text:{type:String,default:""},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary)/)}},computed:{nonButtonContentSlots(){return LoadingSpinner.lodashExports.reject(this.$slots,{name:"button-content"})}}},_hoisted_1$1h={class:"dropdown-menu overflow-auto",role:"menu"};function _sfc_render$1m(e,n,t,a,r,o){const s=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(s,vue.mergeProps(e.$attrs,{variant:t.variant,class:"vs-dropdown"}),vue.createSlots({"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content",{},()=>[vue.createTextVNode(vue.toDisplayString(t.text),1)])]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:2},[vue.renderList(o.nonButtonContentSlots,(i,l)=>({name:l,fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,l)])}))]),1040,["variant"]),vue.createElementVNode("div",{class:vue.normalizeClass([e.$attrs.class,"dropdown vs-dropdown vs-dropdown--fallback"])},[vue.createElementVNode("ul",_hoisted_1$1h,[vue.renderSlot(e.$slots,"default")])],2)],64)}const VsDropdown=LoadingSpinner._export_sfc(_sfc_main$1F,[["render",_sfc_render$1m]]),_sfc_main$1E={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:LoadingSpinner.Xi}};function _sfc_render$1l(e,n,t,a,r,o){const s=vue.resolveComponent("BDropdownItem");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{role:"menuitem"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsDropdownItem=LoadingSpinner._export_sfc(_sfc_main$1E,[["render",_sfc_render$1l]]),cookieValues$3=cookieValues$5.embed,_sfc_main$1D={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0},extraContent:{type:String,default:""},embeddedScript:{type:String,default:""}},data(){return{requiredCookies:this.noCookiesRequired?null:cookieValues$3}},computed:{showError(){return this.noCookiesRequired?!1:!this.cookiesAllowed&&this.cookiesLoaded===!0||!this.cookiesLoaded},warningText(){let e="";return this.cookiesLoaded||(e=this.errorText),!this.cookiesAllowed&&this.cookiesLoaded===!0&&(e=this.noCookieText),e}},methods:{callbackOnUpdated(){if(this.embeddedScript&&this.cookiesLoaded&&this.requiredCookiesAllowed){const e=document.createElement("script");e.src=this.embeddedScript,document.head.appendChild(e)}}}},_hoisted_1$1g={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},_hoisted_2$X={class:"vs-embed-wrapper__container",key:"embeddedContent"},_hoisted_3$M={key:"fallback"},_hoisted_4$z=["innerHTML"];function _sfc_render$1k(e,n,t,a,r,o){const s=vue.resolveComponent("VsBody"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsWarning"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:vue.withCtx(()=>[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!o.showError?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-intro-copy")]),_:3})):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[e.cookiesAllowed||t.noCookiesRequired?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$X,[vue.renderSlot(e.$slots,"embed-widget")])):vue.createCommentVNode("",!0),o.showError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$M,[vue.createVNode(l,{type:e.cookiesLoaded===!0?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[t.extraContent?{name:"extra-content",fn:vue.withCtx(()=>[vue.createElementVNode("div",{innerHTML:t.extraContent},null,8,_hoisted_4$z)]),key:"0"}:void 0,!e.cookiesAllowed&&e.cookiesLoaded===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-button-text")]),key:"1"}:void 0]),1032,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(l,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsText),1)]),_:1})]),_:3})]),_:3})]),_:3})])}const EmbedWrapper=LoadingSpinner._export_sfc(_sfc_main$1D,[["render",_sfc_render$1k]]),_sfc_main$1C={name:"VsEventCard",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsButton:LoadingSpinner.VsButton,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow},props:{ctaHref:{type:String,default:"#"},ctaLabel:{type:String,default:""},ctaIcon:{type:String,default:""}}},_hoisted_1$1f={class:"card vs-event-card","data-test":"vs-event-card"},_hoisted_2$W={class:"card-body"},_hoisted_3$L={class:"vs-event-card__date"},_hoisted_4$y={key:0,class:"vs-event-card__content","data-test":"vs-event-card__content"},_hoisted_5$o={key:1,class:"vs-event-card__cta","data-test":"vs-event-card__cta"};function _sfc_render$1j(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1f,[vue.createElementVNode("div",_hoisted_2$W,[vue.createVNode(l,{class:"vs-event-card__header"},{default:vue.withCtx(()=>[vue.createVNode(i,{sm:"12",md:"9",class:"p-0"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-event-card__heading","heading-style":"heading-xs",level:"3","data-test":"vs-event-card__heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"event-card-header")]),_:3})]),_:3}),e.$slots["event-card-date"]?(vue.openBlock(),vue.createBlock(i,{key:0,sm:"12",md:"3",class:"my-auto p-0","data-test":"vs-event-card__date"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3$L,[vue.renderSlot(e.$slots,"event-card-date")])]),_:3})):vue.createCommentVNode("",!0)]),_:3}),e.$slots["event-card-content"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$y,[vue.renderSlot(e.$slots,"event-card-content")])):vue.createCommentVNode("",!0),t.ctaHref&&t.ctaLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$o,[vue.createVNode(u,{href:t.ctaHref,icon:t.ctaIcon,"icon-position":"right","data-test":"vs-event-card__cta"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaLabel),1)]),_:1},8,["href","icon"])])):vue.createCommentVNode("",!0)])])}const EventCard=LoadingSpinner._export_sfc(_sfc_main$1C,[["render",_sfc_render$1j]]),_hoisted_1$1e=["id"],_hoisted_2$V={class:"vs-filter__panel-wrapper"},_hoisted_3$K={class:"vs-filter__legend"},_sfc_main$1B={__name:"VsFilter",props:{filterId:{type:String,required:!0},filterLabel:{type:String,required:!0}},emits:["filter-updated"],setup(e,{expose:n}){const t=e,a=vue.ref(),r=i=>{const l=i;l.type==="checkbox"?l.checked=!1:l.type==="date"&&(l.value="")};return n({clearFilter:r,resetAll:()=>{a.value.querySelectorAll('input[type="checkbox"], input[type="date"]').forEach(l=>{r(l)})},resetOne:i=>{const l=a.value.querySelector(`#${i}`);r(l)}}),(i,l)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"vs-filter","data-test":"vs-filter",id:t.filterId,ref_key:"filter",ref:a},[vue.createElementVNode("div",_hoisted_2$V,[vue.createElementVNode("fieldset",{class:"vs-filter__panel","data-test":"vs-filter__panel",onChange:l[0]||(l[0]=u=>i.$emit("filter-updated",u))},[vue.createElementVNode("legend",_hoisted_3$K,[vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-filters",size:"sm"}),vue.createTextVNode(" "+vue.toDisplayString(t.filterLabel),1)]),vue.renderSlot(i.$slots,"default")],32)])],8,_hoisted_1$1e),i.$slots["no-js"]?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsWarning,{key:0,class:"vs-filter__warning"},{default:vue.withCtx(()=>[vue.renderSlot(i.$slots,"no-js")]),_:3})):vue.createCommentVNode("",!0)],64))}},_hoisted_1$1d={key:0,class:"vs-filter-section__details"},_hoisted_2$U={class:"vs-filter-section__summary"},_hoisted_3$J={key:1,class:"vs-filter-section__section"},_sfc_main$1A={__name:"VsFilterSection",props:{sectionTitle:{type:String,default:void 0},type:{type:String,default:"list",validator:e=>e.match(/(inline|group|list)/)}},setup(e){const n=e,t=vue.computed(()=>({"vs-filter-section":!0,"vs-filter-section--inline":n.type==="inline"}));return(a,r)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(t.value),"data-test":"vs-filter-section"},[n.type==="group"?(vue.openBlock(),vue.createElementBlock("details",_hoisted_1$1d,[vue.createElementVNode("summary",_hoisted_2$U,[vue.createTextVNode(vue.toDisplayString(n.sectionTitle)+" ",1),vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-expand",variant:"highlight"})]),vue.renderSlot(a.$slots,"default")])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$J,[vue.renderSlot(a.$slots,"default")]))],2))}};function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(a=>(a(),!1))},onCleanup:a=>{e.push(a)}}}function createHydrationPromise(e){let n=()=>{};const t=new Promise(r=>{n=()=>{e(),r()}});return{promise:t,resolvePromise:n,onResolvedPromise:r=>{t.then(r)}}}function trackDepsOnRender(e){const n=e.effect.fn,t=e.render;e.render=(...a)=>{e.effect.fn=()=>t(...a);const r=e.effect.run();return e.effect.fn=n,e.render=t,r}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,n){if(vue.isVNode(e)&&(n(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,n));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const a=e.children[t]();if(Array.isArray(a)){a.forEach(r=>traverseChildren(r,n));return}traverseChildren(a,n)})}}function isAsyncWrapper(e){var n,t;return((n=e.type)==null?void 0:n.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},n){const t=[];if(traverseChildren(e,a=>{isAsyncWrapper(a)&&t.push(a.type.__asyncLoader())}),t.length>0){Promise.all(t).then(n);return}n()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const n=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=n),e.u=t})}function useLazyHydration(){const e=vue.getCurrentInstance();if(!e||e.isMounted)throw new Error("useLazyHydration must be called from the setup method.");const n=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!n)return{willPerformHydration:n,onHydrated:()=>{}};const{cleanup:t,onCleanup:a}=createHydrationCleanup(),{promise:r,resolvePromise:o,onResolvedPromise:s}=createHydrationPromise(t),i=l=>s(()=>vue.nextTick(()=>waitForAsyncComponents(e,l)));return e.type.__asyncLoader=()=>r,ensureParentHasSubTreeEl(e.parent),vue.onBeforeMount(()=>{e.asyncDep=new Promise(l=>{l(!0)})}),s(()=>{trackDepsOnRender(e),e.asyncDep=null}),vue.onUnmounted(t),{willPerformHydration:n,hydrate:o,onHydrated:i,onCleanup:a}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:n,onCleanup:t},a=2e3){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenIdle must be called from the setup or lifecycle hook methods.");if(!("requestIdleCallback"in window)){n();return}const r=requestIdleCallback(()=>{n()},{timeout:a});t(()=>{cancelIdleCallback(r)})}const DOMNodeTypes={ELEMENT:1,COMMENT:8},isElement=e=>e&&e.nodeType===DOMNodeTypes.ELEMENT,isComment=e=>e&&e.nodeType===DOMNodeTypes.COMMENT,isFragmentStart=e=>isComment(e)&&(e==null?void 0:e.data)==="[",isFragmentEnd=e=>isComment(e)&&(e==null?void 0:e.data)==="]";function getRootElements({vnode:e,subTree:n}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(n&&isFragmentStart(n.el)&&isFragmentEnd(n.anchor)){let a=e.el.nextSibling;for(;a;){if(a&&isElement(a)&&t.push(a),a===n.anchor)return t;a=a.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:n,onCleanup:t},a=["focus"]){if(!e)return;const r=vue.getCurrentInstance();if(!r||r.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const o=vue.unref(a);vue.onMounted(()=>{const s=getRootElements(r),i=s.length>1?s[0].parentElement||document:s[0],l={capture:!0,once:!1,passive:!0},u=c=>{c.stopPropagation();const d=c.composedPath&&c.composedPath()||c.path;if(!d){let f=c.target;for(;f;){if(s.includes(f)){n();return}if(f===i)return;f=f.parentElement}return}s.forEach(f=>{d.includes(f)&&n()})};o.forEach(c=>{i.addEventListener(c,u,l)}),t(()=>{o.forEach(c=>{i.removeEventListener(c,u,l)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:n,onCleanup:t},a){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenTriggered must be called from the setup or lifecycle hook methods.");const r=vue.watch(vue.isRef(a)?a:()=>a,o=>{o&&n()},{immediate:!0});t(r)}const observers=new Map;function createHydrationObserver(e){const n=typeof IntersectionObserver<"u";if(!n)return{supported:n};const t=JSON.stringify(e);if(observers.has(t))return{supported:n,observer:observers.get(t)};const a=new IntersectionObserver(r=>{r.forEach(o=>{!(o.isIntersecting||o.intersectionRatio>0)||!o.target.hydrate||o.target.hydrate()})},e);return observers.set(t,a),{supported:n,observer:a}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:n,onCleanup:t},a){if(!e)return;const r=vue.getCurrentInstance();if(!r||r.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:o,observer:s}=createHydrationObserver(a);if(!o){n();return}vue.onMounted(()=>{const i=getRootElements(r);i.forEach(l=>{l.hydrate=n,s.observe(l)}),t(()=>{i.forEach(l=>{delete l.hydrate,s.unobserve(l)})})})}const normalizeSlot=e=>e.length===1?e[0]:e,LazyHydrationWrapper=vue.defineComponent({name:"LazyHydrationWrapper",inheritAttrs:!1,suspensible:!1,props:{whenIdle:{default:!1,type:[Boolean,Number]},whenVisible:{default:!1,type:[Boolean,Object]},onInteraction:{default:!1,type:[Array,Boolean,String]},whenTriggered:{default:void 0,type:[Boolean,Object]}},emits:["hydrated"],setup(e,{slots:n,emit:t}){const a=useLazyHydration();if(!a.willPerformHydration)return()=>normalizeSlot(n.default());if(a.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(a,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(a,e.whenVisible!==!0?e.whenVisible:void 0),e.onInteraction){let r;e.onInteraction!==!0&&(r=vue.computed(()=>Array.isArray(e.onInteraction)?e.onInteraction:[e.onInteraction]).value),useHydrateOnInteraction(a,r)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(a,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(n.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1z={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1c={class:"vs-footer-nav-list"};function _sfc_render$1i(e,n,t,a,r,o){const s=vue.resolveComponent("VsRow"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("LazyHydrationWrapper"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createBlock(u,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:vue.withCtx(()=>[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1c,[vue.createVNode(i,{"break-point":t.breakPoint},{default:vue.withCtx(()=>[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["break-point"])])]),_:3})]),_:3})}const VsFooterNavList=LoadingSpinner._export_sfc(_sfc_main$1z,[["render",_sfc_render$1i]]),_sfc_main$1y={name:"VsFooter",status:"prototype",release:"0.1.0",components:{VsFooterNavList,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow}},_hoisted_1$1b={class:"vs-footer pt-150 pt-md-300","data-unique-id":"vs-footer",id:"site-footer"},_hoisted_2$T={class:"vs-footer__social-menu-wrapper"};function _sfc_render$1h(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsFooterNavList"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("footer",_hoisted_1$1b,[vue.createVNode(i,{"break-point":"md"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"accordion-items"),vue.createVNode(s,{cols:"12",lg:"3",xl:"2",class:"d-none d-lg-block","data-unique-id":"vs-footer-social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$T,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"d-block d-lg-none","data-unique-id":"vs-footer-mobile_social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3})]),_:3})]),vue.renderSlot(e.$slots,"default")])}const Footer=LoadingSpinner._export_sfc(_sfc_main$1y,[["render",_sfc_render$1h]]),_sfc_main$1x={name:"VsFooterAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionItem},props:{controlId:{type:String,required:!0},itemBreakPoint:{type:String,default:e=>e.breakPoint,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},title:{type:String,required:!0},variant:{type:String,default:"primary"}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-footer-${e}`}}};function _sfc_render$1g(e,n,t,a,r,o){const s=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-footer-accordion-item mb-md-150","data-test":"vs-footer-accordion-item","data-unique-id":o.getUniqueId,"control-id":t.controlId,"item-break-point":t.itemBreakPoint,"open-by-default":t.openByDefault,variant:t.variant},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open")]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed")]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["data-unique-id","control-id","item-break-point","open-by-default","variant"])}const FooterAccordionItem=LoadingSpinner._export_sfc(_sfc_main$1x,[["render",_sfc_render$1g]]),_sfc_main$1w={name:"VsFooterNavListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},linkText:{type:String,default:""}}},_hoisted_1$1a={class:"vs-footer-nav-list-item","data-test":"vs-footer-nav-list-item",role:"menuitem"};function _sfc_render$1f(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$1a,[vue.createVNode(s,{href:t.href,type:t.type,variant:"on-dark","data-test":"vs-footer-nav-list-item__link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkText),1)]),_:1},8,["href","type"])])}const FooterNavListItem=LoadingSpinner._export_sfc(_sfc_main$1w,[["render",_sfc_render$1f]]),_sfc_main$1v={name:"VsList",status:"prototype",release:"0.0.1",props:{ordered:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}}};function _sfc_render$1e(e,n,t,a,r,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.ordered?"ol":"ul"),vue.mergeProps({class:["vs-list",{"vs-list--unstyled":t.unstyled,"vs-list--inline":t.inline,"vs-list--ordered":t.ordered}]},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["class"])}const VsList=LoadingSpinner._export_sfc(_sfc_main$1v,[["render",_sfc_render$1e]]),_sfc_main$1u={name:"VsFooterSocialMenu",status:"prototype",release:"0.0.1",components:{VsList,VsHeading:LoadingSpinner.VsHeading}},_hoisted_1$19={class:"vs-footer-social-menu px-0 py-150 py-md-200 py-lg-0 px-lg-075","data-test":"vs-footer-social-menu"};function _sfc_render$1d(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$19,[vue.createVNode(s,{level:"2","heading-style":"heading-xxs",class:"vs-footer-social-menu__title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3}),vue.createVNode(i,{unstyled:"",class:"mt-125 mt-md-0 mt-lg-125 pe-lg-400 pe-xl-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const FooterSocialMenu=LoadingSpinner._export_sfc(_sfc_main$1u,[["render",_sfc_render$1d]]),_sfc_main$1t={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,required:!0},icon:{type:String,required:!0},ariaLabelOverride:{type:String,default:""}}},_hoisted_1$18={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function _sfc_render$1c(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$18,[vue.createVNode(i,{"data-test":"vs-footer-social-item__link",href:t.href,type:"external","aria-label":t.ariaLabelOverride?t.ariaLabelOverride:t.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:vue.withCtx(()=>[vue.createVNode(s,{icon:t.icon,variant:"inverse",size:"sm"},null,8,["icon"])]),_:1},8,["href","aria-label"])])}const FooterSocialItem=LoadingSpinner._export_sfc(_sfc_main$1t,[["render",_sfc_render$1c]]),_sfc_main$1s={name:"VsFooterUtilityList",status:"prototype",release:"0.0.1",components:{VsList,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol}},_hoisted_1$17={class:"vs-footer-utility-list","data-test":"vs-footer-utility-list","data-unique-id":"vs-footer-utility_links"};function _sfc_render$1b(e,n,t,a,r,o){const s=vue.resolveComponent("VsList"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$17,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"7",md:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{unstyled:"",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})])}const FooterUtilityList=LoadingSpinner._export_sfc(_sfc_main$1s,[["render",_sfc_render$1b]]);function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dist$3={exports:{}},interopRequireDefault={exports:{}};(function(e){function n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function n(t,a){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(a.indexOf(o)!==-1)continue;r[o]=t[o]}return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var path$2={exports:{}},util$3={},isBufferBrowser$1,hasRequiredIsBufferBrowser$1;function requireIsBufferBrowser$1(){return hasRequiredIsBufferBrowser$1||(hasRequiredIsBufferBrowser$1=1,isBufferBrowser$1=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),isBufferBrowser$1}var inherits_browser$1={exports:{}},hasRequiredInherits_browser$1;function requireInherits_browser$1(){return hasRequiredInherits_browser$1||(hasRequiredInherits_browser$1=1,typeof Object.create=="function"?inherits_browser$1.exports=function(n,t){n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(n,t){n.super_=t;var a=function(){};a.prototype=t.prototype,n.prototype=new a,n.prototype.constructor=n}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var n={},t=/%[sdj%]/g;e.format=function(C){if(!S(C)){for(var E=[],T=0;T<arguments.length;T++)E.push(o(arguments[T]));return E.join(" ")}for(var T=1,z=arguments,Y=z.length,w=String(C).replace(t,function(N){if(N==="%%")return"%";if(T>=Y)return N;switch(N){case"%s":return String(z[T++]);case"%d":return Number(z[T++]);case"%j":try{return JSON.stringify(z[T++])}catch{return"[Circular]"}default:return N}}),B=z[T];T<Y;B=z[++T])m(B)||!$(B)?w+=" "+B:w+=" "+o(B);return w},e.deprecate=function(C,E){if(V(LoadingSpinner.commonjsGlobal.process))return function(){return e.deprecate(C,E).apply(this,arguments)};if(process.noDeprecation===!0)return C;var T=!1;function z(){if(!T){if(process.throwDeprecation)throw new Error(E);process.traceDeprecation?console.trace(E):console.error(E),T=!0}return C.apply(this,arguments)}return z};var a={},r;e.debuglog=function(C){if(V(r)&&(r=n.NODE_DEBUG||""),C=C.toUpperCase(),!a[C])if(new RegExp("\\b"+C+"\\b","i").test(r)){var E=process.pid;a[C]=function(){var T=e.format.apply(e,arguments);console.error("%s %d: %s",C,E,T)}}else a[C]=function(){};return a[C]};function o(C,E){var T={seen:[],stylize:i};return arguments.length>=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),g(E)?T.showHidden=E:E&&e._extend(T,E),V(T.showHidden)&&(T.showHidden=!1),V(T.depth)&&(T.depth=2),V(T.colors)&&(T.colors=!1),V(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=s),u(T,C,T.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(C,E){var T=o.styles[E];return T?"\x1B["+o.colors[T][0]+"m"+C+"\x1B["+o.colors[T][1]+"m":C}function i(C,E){return C}function l(C){var E={};return C.forEach(function(T,z){E[T]=!0}),E}function u(C,E,T){if(C.customInspect&&E&&P(E.inspect)&&E.inspect!==e.inspect&&!(E.constructor&&E.constructor.prototype===E)){var z=E.inspect(T,C);return S(z)||(z=u(C,z,T)),z}var Y=c(C,E);if(Y)return Y;var w=Object.keys(E),B=l(w);if(C.showHidden&&(w=Object.getOwnPropertyNames(E)),F(E)&&(w.indexOf("message")>=0||w.indexOf("description")>=0))return d(E);if(w.length===0){if(P(E)){var N=E.name?": "+E.name:"";return C.stylize("[Function"+N+"]","special")}if(L(E))return C.stylize(RegExp.prototype.toString.call(E),"regexp");if(A(E))return C.stylize(Date.prototype.toString.call(E),"date");if(F(E))return d(E)}var D="",I=!1,R=["{","}"];if(h(E)&&(I=!0,R=["[","]"]),P(E)){var H=E.name?": "+E.name:"";D=" [Function"+H+"]"}if(L(E)&&(D=" "+RegExp.prototype.toString.call(E)),A(E)&&(D=" "+Date.prototype.toUTCString.call(E)),F(E)&&(D=" "+d(E)),w.length===0&&(!I||E.length==0))return R[0]+D+R[1];if(T<0)return L(E)?C.stylize(RegExp.prototype.toString.call(E),"regexp"):C.stylize("[Object]","special");C.seen.push(E);var U;return I?U=f(C,E,T,B,w):U=w.map(function(G){return v(C,E,T,B,G,I)}),C.seen.pop(),p(U,D,R)}function c(C,E){if(V(E))return C.stylize("undefined","undefined");if(S(E)){var T="'"+JSON.stringify(E).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return C.stylize(T,"string")}if(b(E))return C.stylize(""+E,"number");if(g(E))return C.stylize(""+E,"boolean");if(m(E))return C.stylize("null","null")}function d(C){return"["+Error.prototype.toString.call(C)+"]"}function f(C,E,T,z,Y){for(var w=[],B=0,N=E.length;B<N;++B)W(E,String(B))?w.push(v(C,E,T,z,String(B),!0)):w.push("");return Y.forEach(function(D){D.match(/^\d+$/)||w.push(v(C,E,T,z,D,!0))}),w}function v(C,E,T,z,Y,w){var B,N,D;if(D=Object.getOwnPropertyDescriptor(E,Y)||{value:E[Y]},D.get?D.set?N=C.stylize("[Getter/Setter]","special"):N=C.stylize("[Getter]","special"):D.set&&(N=C.stylize("[Setter]","special")),W(z,Y)||(B="["+Y+"]"),N||(C.seen.indexOf(D.value)<0?(m(T)?N=u(C,D.value,null):N=u(C,D.value,T-1),N.indexOf(`
|
|
150
|
+
`;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=vue.defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(e){vue.provide("layerProps",e)}});function render$3(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=vue.defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(e){const n=useChart(),t=vue.ref(0),a=vue.ref("horizontal"),r=vue.ref({});return vue.watch(n.updates,()=>{e.value!==void 0&&(t.value=n.scales.secondary.scale(e.value)),r.value=n.canvas,a.value=n.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=n.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:r,direction:a}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(e,n,t,a,r,o){return e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$2$1,[vue.createElementVNode("text",{x:e.canvas.x+5,y:e.y-5,"text-anchor":"start",fill:e.color},vue.toDisplayString(e.label),9,_hoisted_2$2$1),vue.createElementVNode("line",{x1:e.canvas.x,y1:e.y,x2:e.canvas.width,y2:e.y,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_3$1$1)])):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$1$1,[vue.createElementVNode("text",{x:e.y+10,y:e.canvas.y+5,"text-anchor":"start",fill:e.color,style:{"writing-mode":"tb"}},vue.toDisplayString(e.label),9,_hoisted_5$1$1),vue.createElementVNode("line",{x1:e.y,y1:e.canvas.y,x2:e.y,y2:e.canvas.height,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(e){var n=0,t=e.children,a=t&&t.length;if(!a)n=1;else for(;--a>=0;)n+=t[a].value;e.value=n}function node_count(){return this.eachAfter(count)}function node_each(e,n){let t=-1;for(const a of this)e.call(n,a,++t,this);return this}function node_eachBefore(e,n){for(var t=this,a=[t],r,o,s=-1;t=a.pop();)if(e.call(n,t,++s,this),r=t.children)for(o=r.length-1;o>=0;--o)a.push(r[o]);return this}function node_eachAfter(e,n){for(var t=this,a=[t],r=[],o,s,i,l=-1;t=a.pop();)if(r.push(t),o=t.children)for(s=0,i=o.length;s<i;++s)a.push(o[s]);for(;t=r.pop();)e.call(n,t,++l,this);return this}function node_find(e,n){let t=-1;for(const a of this)if(e.call(n,a,++t,this))return a}function node_sum(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,a=n.children,r=a&&a.length;--r>=0;)t+=a[r].value;n.value=t})}function node_sort(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function node_path(e){for(var n=this,t=leastCommonAncestor(n,e),a=[n];n!==t;)n=n.parent,a.push(n);for(var r=a.length;e!==t;)a.splice(r,0,e),e=e.parent;return a}function leastCommonAncestor(e,n){if(e===n)return e;var t=e.ancestors(),a=n.ancestors(),r=null;for(e=t.pop(),n=a.pop();e===n;)r=e,e=t.pop(),n=a.pop();return r}function node_ancestors(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function node_links(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n}function*node_iterator(){var e=this,n,t=[e],a,r,o;do for(n=t.reverse(),t=[];e=n.pop();)if(yield e,a=e.children)for(r=0,o=a.length;r<o;++r)t.push(a[r]);while(t.length)}function hierarchy(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=mapChildren)):n===void 0&&(n=objectChildren);for(var t=new Node$2(e),a,r=[t],o,s,i,l;a=r.pop();)if((s=n(a.data))&&(l=(s=Array.from(s)).length))for(a.children=s,i=l-1;i>=0;--i)r.push(o=s[i]=new Node$2(s[i])),o.parent=a,o.depth=a.depth+1;return t.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(e){return e.children}function mapChildren(e){return Array.isArray(e)?e[1]:null}function copyData(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function computeHeight(e){var n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}function Node$2(e){this.data=e,this.depth=this.height=0,this.parent=null}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(e){return e==null?null:required$2(e)}function required$2(e){if(typeof e!="function")throw new Error;return e}function constantZero(){return 0}function constant(e){return function(){return e}}function roundNode(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function treemapDice(e,n,t,a,r){for(var o=e.children,s,i=-1,l=o.length,u=e.value&&(a-n)/e.value;++i<l;)s=o[i],s.y0=t,s.y1=r,s.x0=n,s.x1=n+=s.value*u}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(e){return e.id}function defaultParentId(e){return e.parentId}function stratify(){var e=defaultId,n=defaultParentId,t;function a(r){var o=Array.from(r),s=e,i=n,l,u,c,d,f,v,p,h,m=new Map;if(t!=null){const _=o.map((S,k)=>normalize(t(S,k,r))),g=_.map(parentof),b=new Set(_).add("");for(const S of g)b.has(S)||(b.add(S),_.push(S),g.push(parentof(S)),o.push(imputed));s=(S,k)=>_[k],i=(S,k)=>g[k]}for(c=0,l=o.length;c<l;++c)u=o[c],v=o[c]=new Node$2(u),(p=s(u,c,r))!=null&&(p+="")&&(h=v.id=p,m.set(h,m.has(h)?ambiguous:v)),(p=i(u,c,r))!=null&&(p+="")&&(v.parent=p);for(c=0;c<l;++c)if(v=o[c],p=v.parent){if(f=m.get(p),!f)throw new Error("missing: "+p);if(f===ambiguous)throw new Error("ambiguous: "+p);f.children?f.children.push(v):f.children=[v],v.parent=f}else{if(d)throw new Error("multiple roots");d=v}if(!d)throw new Error("no root");if(t!=null){for(;d.data===imputed&&d.children.length===1;)d=d.children[0],--l;for(let _=o.length-1;_>=0&&(v=o[_],v.data===imputed);--_)v.data=null}if(d.parent=preroot,d.eachBefore(function(_){_.depth=_.parent.depth+1,--l}).eachBefore(computeHeight),d.parent=null,l>0)throw new Error("cycle");return d}return a.id=function(r){return arguments.length?(e=optional(r),a):e},a.parentId=function(r){return arguments.length?(n=optional(r),a):n},a.path=function(r){return arguments.length?(t=optional(r),a):t},a}function normalize(e){e=`${e}`;let n=e.length;return slash(e,n-1)&&!slash(e,n-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let n=e.length;if(n<2)return"";for(;--n>1&&!slash(e,n););return e.slice(0,n)}function slash(e,n){if(e[n]==="/"){let t=0;for(;n>0&&e[--n]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,n,t,a,r){for(var o=e.children,s,i=-1,l=o.length,u=e.value&&(r-t)/e.value;++i<l;)s=o[i],s.x0=n,s.x1=a,s.y0=t,s.y1=t+=s.value*u}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,n,t,a,r,o){for(var s=[],i=n.children,l,u,c=0,d=0,f=i.length,v,p,h=n.value,m,_,g,b,S,k,V;c<f;){v=r-t,p=o-a;do m=i[d++].value;while(!m&&d<f);for(_=g=m,k=Math.max(p/v,v/p)/(h*e),V=m*m*k,S=Math.max(g/V,V/_);d<f;++d){if(m+=u=i[d].value,u<_&&(_=u),u>g&&(g=u),V=m*m*k,b=Math.max(g/V,V/_),b>S){m-=u;break}S=b}s.push(l={value:m,dice:v<p,children:i.slice(c,d)}),l.dice?treemapDice(l,t,a,r,h?a+=p*m/h:o):treemapSlice(l,t,a,h?t+=v*m/h:r,o),h-=m,c=d}return s}var squarify=function e(n){function t(a,r,o,s,i){squarifyRatio(n,a,r,o,s,i)}return t.ratio=function(a){return e((a=+a)>1?a:1)},t}(phi);function treemap(){var e=squarify,n=!1,t=1,a=1,r=[0],o=constantZero,s=constantZero,i=constantZero,l=constantZero,u=constantZero;function c(f){return f.x0=f.y0=0,f.x1=t,f.y1=a,f.eachBefore(d),r=[0],n&&f.eachBefore(roundNode),f}function d(f){var v=r[f.depth],p=f.x0+v,h=f.y0+v,m=f.x1-v,_=f.y1-v;m<p&&(p=m=(p+m)/2),_<h&&(h=_=(h+_)/2),f.x0=p,f.y0=h,f.x1=m,f.y1=_,f.children&&(v=r[f.depth+1]=o(f)/2,p+=u(f)-v,h+=s(f)-v,m-=i(f)-v,_-=l(f)-v,m<p&&(p=m=(p+m)/2),_<h&&(h=_=(h+_)/2),e(f,p,h,m,_))}return c.round=function(f){return arguments.length?(n=!!f,c):n},c.size=function(f){return arguments.length?(t=+f[0],a=+f[1],c):[t,a]},c.tile=function(f){return arguments.length?(e=required$2(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:constant(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(s=typeof f=="function"?f:constant(+f),c):s},c.paddingRight=function(f){return arguments.length?(i=typeof f=="function"?f:constant(+f),c):i},c.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:constant(+f),c):l},c.paddingLeft=function(f){return arguments.length?(u=typeof f=="function"?f:constant(+f),c):u},c}var script$1=vue.defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(e){const n=vue.ref(null),t=vue.ref(e.data),a=vue.ref(null),r=vue.ref({x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom}),o=vue.ref([]);function s(){const v=extent(t.value.map(m=>m[e.dataKeys[1]])),p=linear().domain(v).range([0,100]).nice(),h=sequential().domain(v).interpolator(e.colorFn());return{x:p,y:h}}function i(){const{y:v}=s();return l(t.value).leaves().map((h,m)=>({idx:m,x0:r.value.x+h.x0,x1:r.value.x+h.x1,y0:r.value.y+h.y0,y1:r.value.y+h.y1,width:h.x1-h.x0,height:h.y1-h.y0,data:h.data,color:v(h.value)}))}function l(v){const{x:p}=s(),h=treemap().size([r.value.width-r.value.x,r.value.height-r.value.y]).padding(e.padding),_=stratify().id(g=>g.name).parentId(g=>g.parent)([{name:"root"}].concat(v.map(g=>({name:g[e.dataKeys[0]],value:g[e.dataKeys[1]],parent:"root"}))));return _.sum(g=>p(g.value)),h(_),_}const u=v=>mapKeys(kebabize,v),c=v=>{const p={stroke:v.color,strokeWidth:5,fill:v.color,fillOpacity:.9};return e.rcStyle&&typeof e.rcStyle=="function"?Object.assign(Object.assign({},p),e.rcStyle(v)):p};function d(v){a.value=v}function f(){a.value=null}return vue.watch(e,()=>{t.value=e.data,r.value={x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom},o.value=i()},{immediate:!0}),{el:n,rectangles:o,selected:a,getStyle:c,toKebabCase:u,onMouseOver:d,onMouseOut:f}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$W={class:"layer-rectangles"},_hoisted_4$I=["transform","onMouseover"],_hoisted_5$u=["width","height"],_hoisted_6$l={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,ref:"el"},[vue.createElementVNode("g",_hoisted_3$W,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.rectangles,(s,i)=>(vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(["rectangle",{selected:e.selected===i}]),key:i,transform:`translate(${s.x0}, ${s.y0})`,onMouseover:()=>e.onMouseOver(i),onMouseleave:n[0]||(n[0]=(...l)=>e.onMouseOut&&e.onMouseOut(...l))},[vue.renderSlot(e.$slots,"default",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("rect",vue.mergeProps(e.toKebabCase(e.getStyle(s)),{x:0,y:0,width:s.width,height:s.height}),null,16,_hoisted_5$u),vue.renderSlot(e.$slots,"text",{r:s,selected:e.selected===i},()=>[vue.createElementVNode("text",_hoisted_6$l,vue.toDisplayString(s.data.name),1)])])],42,_hoisted_4$I))),128))])],8,_hoisted_2$1$1)),vue.renderSlot(e.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=vue.defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const e=useChart(),n=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),a=vue.ref("horizontal"),r=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{r.value=e.canvas,a.value=e.config.direction},{immediate:!0}),vue.watch(n,()=>{if(e.bandScale){const o=e.getData(e.getKeys(0)),[s]=e.bandScale.map([o[n.index]]),i=e.bandScale.bandwidth();s&&(e.config.direction==="horizontal"?t.value={x:s-i/2,y:0,width:i,height:r.value.height}:t.value={x:40,y:s-i/2,width:r.value.width-40,height:i})}}),{bar:t,canvas:r,direction:a,mouse:n}}});const _hoisted_1$1u={key:0,class:"layer-hover-bar"},_hoisted_2$16=["x","y","width","height"];function render(e,n,t,a,r,o){return e.mouse.hover?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$1u,[vue.createElementVNode("rect",vue.mergeProps({class:"hover-bar"},e.barStyle,{x:e.bar.x,y:e.bar.y,width:e.bar.width>0?e.bar.width:0,height:e.bar.height>0?e.bar.height:0}),null,16,_hoisted_2$16)])):vue.createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$1V={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,Chart:script$c,Grid:script$5,Bar:script$8,Responsive:script$6},mixins:[LoadingSpinner.dataLayerMixin],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:()=>[]},language:{type:String,default:"en-gb"}},data(){return{chartDirection:vue.ref("horizontal"),chartAxis:vue.ref({primary:{type:"band"}}),cssProps:`--chart-label: '${this.labelsMap.kgsOf}'`,tokens:LoadingSpinner.designTokens}},computed:{chartData(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison(){let e=this.labelsMap.comparison;for(let n=0;n<this.comparisonReplacements.length;n++)e=e.replace(this.comparisonReplacements[n].repl,(this.totalKilos/this.comparisonReplacements[n].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return e},interpolKGsPerDay(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent(){return this.transportKilos/this.totalKilos*100},accommodationPercent(){return this.accommodationKilos/this.totalKilos*100},foodPercent(){return this.foodKilos/this.totalKilos*100},totalPerDay(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin(e){return e>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}},_hoisted_1$1t={class:"vs-carbon-calculator-results__headline"},_hoisted_2$15={class:"mb-050"},_hoisted_3$V={class:"vs-carbon-calculator-results__total"},_hoisted_4$H=["innerHTML"],_hoisted_5$t={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$k={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1C(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsIcon"),c=vue.resolveComponent("Grid"),d=vue.resolveComponent("Bar"),f=vue.resolveComponent("Chart"),v=vue.resolveComponent("Responsive");return vue.openBlock(),vue.createBlock(l,{"data-test":"vs-carbon-calculator-results",style:vue.normalizeStyle(r.cssProps)},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.results),1)]),_:1})]),_:1}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-carbon-calculator-results__summary"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("p",_hoisted_2$15,vue.toDisplayString(o.labelsMap.resultsIntro),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_3$V,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(i,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:o.interpolComparison},null,8,_hoisted_4$H)]),_:1})]),_:1})]),_:1}),o.totalPerDay<=o.labelsMap.perDayTarget?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$t,[vue.createVNode(u,{icon:"fa-kit fa-vs-unicorn",size:"lg",variant:"highlight",class:"vs-carbon-calculator-results__unicorn-icon"})]),vue.createElementVNode("div",_hoisted_6$k,[vue.createVNode(s,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.interpolPerDaySuccess),1)])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.chartTitle),1)]),_:1})]),_:1}),vue.createVNode(i,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{main:vue.withCtx(({width:p})=>[vue.createVNode(f,{class:"vs-carbon-calculator-results__chart",size:{width:p,height:420},data:o.chartData,margin:o.responsiveMargin(p),direction:r.chartDirection,axis:r.chartAxis},{layers:vue.withCtx(()=>[vue.createVNode(c,{"stroke-dasharray":"2,2"}),vue.createVNode(d,{"data-keys":["name","emissions"],"bar-style":{fill:r.tokens["vs-color-background-highlight"]},gap:20},null,8,["bar-style"])]),_:2},1032,["size","data","margin","direction","axis"])]),_:1})]),_:1})]),_:1},8,["style"])}const VsCarbonCalculatorResults=LoadingSpinner._export_sfc(_sfc_main$1V,[["render",_sfc_render$1C]]),_sfc_main$1U={name:"VsCarbonCalculatorRunningTotal",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},language:{type:String,default:"en-gb"}}},_hoisted_1$1s={class:"vs-carbon-calculator-running-total","data-test":"vs-carbon-calculator-running-total"},_hoisted_2$14={class:"vs-carbon-calculator-running-total__icon"},_hoisted_3$U={class:"vs-carbon-calculator-running-total__content"},_hoisted_4$G={class:"vs-carbon-calculator-running-total__value"};function _sfc_render$1B(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1s,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(s,{icon:"fa-regular fa-pen-field",size:"md"})]),vue.createElementVNode("div",_hoisted_3$U,[vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$G,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=LoadingSpinner._export_sfc(_sfc_main$1U,[["render",_sfc_render$1B]]),_sfc_main$1T={name:"VsCarbonCalculatorIntro",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},inject:["labelsMap"]},_hoisted_1$1r={class:"vs-carbon-calculator-intro","data-test":"vs-carbon-calculator-intro"};function _sfc_render$1A(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createVNode(s,{level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=LoadingSpinner._export_sfc(_sfc_main$1T,[["render",_sfc_render$1A]]);function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function _objectSpread2$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(a){_defineProperty$2(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function _defineProperty$2(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function unwrapObj(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,a)=>(n.includes(a)||(t[a]=vue.unref(e[a])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get(e,n,t){let a=e;const r=n.split(".");for(let o=0;o<r.length;o++){if(!a[r[o]])return t;a=a[r[o]]}return a}function gatherBooleanGroupProperties(e,n,t){return vue.computed(()=>e.some(a=>get(n,a,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,n,t){return vue.computed(()=>e.reduce((a,r)=>{const o=get(n,r,{[t]:!1})[t]||[];return a.concat(o)},[]))}function callRule(e,n,t,a){return e.call(a,vue.unref(n),vue.unref(t),a)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,n,t,a,r,o,s){let{$lazy:i,$rewardEarly:l}=r,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const v=vue.ref(!!a.value),p=vue.ref(0);t.value=!1;const h=vue.watch([n,a].concat(u,f),()=>{if(i&&!a.value||l&&!d.value&&!t.value)return;let m;try{m=callRule(e,n,c,s)}catch(_){m=Promise.reject(_)}p.value++,t.value=!!p.value,v.value=!1,Promise.resolve(m).then(_=>{p.value--,t.value=!!p.value,o.value=_,v.value=normalizeValidatorResponse(_)}).catch(_=>{p.value--,t.value=!!p.value,o.value=_,v.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:v,$unwatch:h}}function createSyncResult(e,n,t,a,r,o,s,i){let{$lazy:l,$rewardEarly:u}=a;const c=()=>({}),d=vue.computed(()=>{if(l&&!t.value||u&&!i.value)return!1;let f=!0;try{const v=callRule(e,n,s,o);r.value=v,f=normalizeValidatorResponse(v)}catch(v){r.value=v}return f});return{$unwatch:c,$invalid:d}}function createValidatorResult(e,n,t,a,r,o,s,i,l,u,c){const d=vue.ref(!1),f=e.$params||{},v=vue.ref(null);let p,h;e.$async?{$invalid:p,$unwatch:h}=createAsyncResult(e.$validator,n,d,t,a,v,r,e.$watchTargets,l,u,c):{$invalid:p,$unwatch:h}=createSyncResult(e.$validator,n,t,a,v,r,l,u);const m=e.$message;return{$message:isFunction$2(m)?vue.computed(()=>m(unwrapObj({$pending:d,$invalid:p,$params:unwrapObj(f),$model:n,$response:v,$validator:o,$propertyPath:i,$property:s}))):m||"",$params:f,$pending:d,$invalid:p,$response:v,$unwatch:h}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=vue.unref(e),t=Object.keys(n),a={},r={},o={};let s=null;return t.forEach(i=>{const l=n[i];switch(!0){case isFunction$2(l.$validator):a[i]=l;break;case isFunction$2(l):a[i]={$validator:l};break;case i==="$validationGroups":s=l;break;case i.startsWith("$"):o[i]=l;break;default:r[i]=l}}),{rules:a,nestedValidators:r,config:o,validationGroups:s}}const ROOT_PATH="__root";function createValidationResults(e,n,t,a,r,o,s,i,l){const u=Object.keys(e),c=a.get(r,e),d=vue.ref(!1),f=vue.ref(!1),v=vue.ref(0);if(c){if(!c.$partial)return c;c.$unwatch(),d.value=c.$dirty.value}const p={$dirty:d,$path:r,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return u.length?(u.forEach(h=>{p[h]=createValidatorResult(e[h],n,p.$dirty,o,s,h,t,r,l,f,v)}),p.$externalResults=vue.computed(()=>i.value?[].concat(i.value).map((h,m)=>({$propertyPath:r,$property:t,$validator:"$externalResults",$uid:`${r}-externalResult-${m}`,$message:h,$params:{},$response:null,$pending:!1})):[]),p.$invalid=vue.computed(()=>{const h=u.some(m=>vue.unref(p[m].$invalid));return f.value=h,!!p.$externalResults.value.length||h}),p.$pending=vue.computed(()=>u.some(h=>vue.unref(p[h].$pending))),p.$error=vue.computed(()=>p.$dirty.value?p.$pending.value||p.$invalid.value:!1),p.$silentErrors=vue.computed(()=>u.filter(h=>vue.unref(p[h].$invalid)).map(h=>{const m=p[h];return vue.reactive({$propertyPath:r,$property:t,$validator:h,$uid:`${r}-${h}`,$message:m.$message,$params:m.$params,$response:m.$response,$pending:m.$pending})}).concat(p.$externalResults.value)),p.$errors=vue.computed(()=>p.$dirty.value?p.$silentErrors.value:[]),p.$unwatch=()=>u.forEach(h=>{p[h].$unwatch()}),p.$commit=()=>{f.value=!0,v.value=Date.now()},a.set(r,e,p),p):(c&&a.set(r,e,p),p)}function collectNestedValidationResults(e,n,t,a,r,o,s){const i=Object.keys(e);return i.length?i.reduce((l,u)=>(l[u]=setValidations({validations:e[u],state:n,key:u,parentKey:t,resultsCache:a,globalConfig:r,instance:o,externalResults:s}),l),{}):{}}function createMetaFields(e,n,t){const a=vue.computed(()=>[n,t].filter(p=>p).reduce((p,h)=>p.concat(Object.values(vue.unref(h))),[])),r=vue.computed({get(){return e.$dirty.value||(a.value.length?a.value.every(p=>p.$dirty):!1)},set(p){e.$dirty.value=p}}),o=vue.computed(()=>{const p=vue.unref(e.$silentErrors)||[],h=a.value.filter(m=>(vue.unref(m).$silentErrors||[]).length).reduce((m,_)=>m.concat(..._.$silentErrors),[]);return p.concat(h)}),s=vue.computed(()=>{const p=vue.unref(e.$errors)||[],h=a.value.filter(m=>(vue.unref(m).$errors||[]).length).reduce((m,_)=>m.concat(..._.$errors),[]);return p.concat(h)}),i=vue.computed(()=>a.value.some(p=>p.$invalid)||vue.unref(e.$invalid)||!1),l=vue.computed(()=>a.value.some(p=>vue.unref(p.$pending))||vue.unref(e.$pending)||!1),u=vue.computed(()=>a.value.some(p=>p.$dirty)||a.value.some(p=>p.$anyDirty)||r.value),c=vue.computed(()=>r.value?l.value||i.value:!1),d=()=>{e.$touch(),a.value.forEach(p=>{p.$touch()})},f=()=>{e.$commit(),a.value.forEach(p=>{p.$commit()})},v=()=>{e.$reset(),a.value.forEach(p=>{p.$reset()})};return a.value.length&&a.value.every(p=>p.$dirty)&&d(),{$dirty:r,$errors:s,$invalid:i,$anyDirty:u,$error:c,$pending:l,$touch:d,$reset:v,$silentErrors:o,$commit:f}}function setValidations(e){let{validations:n,state:t,key:a,parentKey:r,childResults:o,resultsCache:s,globalConfig:i={},instance:l,externalResults:u}=e;const c=r?`${r}.${a}`:a,{rules:d,nestedValidators:f,config:v,validationGroups:p}=sortValidations(n),h=_objectSpread2$1(_objectSpread2$1({},i),v),m=a?vue.computed(()=>{const T=vue.unref(t);return T?vue.unref(T[a]):void 0}):t,_=_objectSpread2$1({},vue.unref(u)||{}),g=vue.computed(()=>{const T=vue.unref(u);return a?T?vue.unref(T[a]):void 0:T}),b=createValidationResults(d,m,a,s,c,h,l,g,t),S=collectNestedValidationResults(f,m,c,s,h,l,g),k={};p&&Object.entries(p).forEach(T=>{let[z,Y]=T;k[z]={$invalid:gatherBooleanGroupProperties(Y,S,"$invalid"),$error:gatherBooleanGroupProperties(Y,S,"$error"),$pending:gatherBooleanGroupProperties(Y,S,"$pending"),$errors:gatherArrayGroupProperties(Y,S,"$errors"),$silentErrors:gatherArrayGroupProperties(Y,S,"$silentErrors")}});const{$dirty:V,$errors:L,$invalid:$,$anyDirty:A,$error:F,$pending:P,$touch:q,$reset:M,$silentErrors:j,$commit:Q}=createMetaFields(b,S,o),J=a?vue.computed({get:()=>vue.unref(m),set:T=>{V.value=!0;const z=vue.unref(t),Y=vue.unref(u);Y&&(Y[a]=_[a]),vue.isRef(z[a])?z[a].value=T:z[a]=T}}):null;a&&h.$autoDirty&&vue.watch(m,()=>{V.value||q();const T=vue.unref(u);T&&(T[a]=_[a])},{flush:"sync"});async function W(){return q(),h.$rewardEarly&&(Q(),await vue.nextTick()),await vue.nextTick(),new Promise(T=>{if(!P.value)return T(!$.value);const z=vue.watch(P,()=>{T(!$.value),z()})})}function C(T){return(o.value||{})[T]}function E(){vue.isRef(u)?u.value=_:Object.keys(_).length===0?Object.keys(u).forEach(T=>{delete u[T]}):Object.assign(u,_)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},b),{},{$model:J,$dirty:V,$error:F,$errors:L,$invalid:$,$anyDirty:A,$pending:P,$touch:q,$reset:M,$path:c||ROOT_PATH,$silentErrors:j,$validate:W,$commit:Q},o&&{$getResultsForChild:C,$clearExternalResults:E,$validationGroups:k}),S))}class ResultsStorage{constructor(){this.storage=new Map}set(n,t,a){this.storage.set(n,{rules:t,result:a})}checkRulesValidity(n,t,a){const r=Object.keys(a),o=Object.keys(t);return o.length!==r.length||!o.every(i=>r.includes(i))?!1:o.every(i=>t[i].$params?Object.keys(t[i].$params).every(l=>vue.unref(a[i].$params[l])===vue.unref(t[i].$params[l])):!0)}get(n,t){const a=this.storage.get(n);if(!a)return;const{rules:r,result:o}=a,s=this.checkRulesValidity(n,t,r),i=o.$unwatch?o.$unwatch:()=>({});return s?o:{$dirty:o.$dirty,$partial:!0,$unwatch:i}}}const CollectFlag={COLLECT_ALL:!0,COLLECT_NONE:!1},VuelidateInjectChildResults=Symbol("vuelidate#injectChildResults"),VuelidateRemoveChildResults=Symbol("vuelidate#removeChildResults");function nestedValidations(e){let{$scope:n,instance:t}=e;const a={},r=vue.ref([]),o=vue.computed(()=>r.value.reduce((c,d)=>(c[d]=vue.unref(a[d]),c),{}));function s(c,d){let{$registerAs:f,$scope:v,$stopPropagation:p}=d;p||n===CollectFlag.COLLECT_NONE||v===CollectFlag.COLLECT_NONE||n!==CollectFlag.COLLECT_ALL&&n!==v||(a[f]=c,r.value.push(f))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],s);function i(c){r.value=r.value.filter(d=>d!==c),delete a[c]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],i);const l=vue.inject(VuelidateInjectChildResults,[]);vue.provide(VuelidateInjectChildResults,t.__vuelidateInjectInstances);const u=vue.inject(VuelidateRemoveChildResults,[]);return vue.provide(VuelidateRemoveChildResults,t.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:l,removeValidationResultsFromParent:u}}function ComputedProxyFactory(e){return new Proxy(e,{get(n,t){return typeof n[t]=="object"?ComputedProxyFactory(n[t]):vue.computed(()=>n[t])}})}let uid=0;function useVuelidate(e,n){var t;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(a=e,e=void 0,n=void 0);let{$registerAs:r,$scope:o=CollectFlag.COLLECT_ALL,$stopPropagation:s,$externalResults:i,currentVueInstance:l}=a;const u=l||((t=vue.getCurrentInstance())===null||t===void 0?void 0:t.proxy),c=u?u.$options:{};r||(uid+=1,r=`_vuelidate_${uid}`);const d=vue.ref({}),f=new ResultsStorage,{childResults:v,sendValidationResultsToParent:p,removeValidationResultsFromParent:h}=u?nestedValidations({$scope:o,instance:u}):{childResults:vue.ref({})};if(!e&&c.validations){const m=c.validations;n=vue.ref({}),vue.onBeforeMount(()=>{n.value=u,vue.watch(()=>isFunction$2(m)?m.call(n.value,new ComputedProxyFactory(n.value)):m,_=>{d.value=setValidations({validations:_,state:n,childResults:v,resultsCache:f,globalConfig:a,instance:u,externalResults:i||u.vuelidateExternalResults})},{immediate:!0})}),a=c.validationsConfig||a}else{const m=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(m,_=>{d.value=setValidations({validations:_,state:n,childResults:v,resultsCache:f,globalConfig:a,instance:u??{},externalResults:i})},{immediate:!0})}return u&&(p.forEach(m=>m(d,{$registerAs:r,$scope:o,$stopPropagation:s})),vue.onBeforeUnmount(()=>h.forEach(m=>m(r)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(d.value)),v.value))}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(a){_defineProperty$1(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function _defineProperty$1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function isFunction$1(e){return typeof e=="function"}function isObject$1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function normalizeValidatorObject(e){return isFunction$1(e.$validator)?_objectSpread2({},e):{$validator:e}}function unwrapValidatorResponse(e){return typeof e=="object"?e.$valid:e}function unwrapNormalizedValidator(e){return e.$validator||e}function withParams(e,n){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,n){if(!isFunction$1(e)&&typeof vue.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$message=e,t}function withAsync(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:n})}function forEach(e){return{$validator(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return vue.unref(n).reduce((o,s,i)=>{const l=Object.entries(s).reduce((u,c)=>{let[d,f]=c;const v=e[d]||{},p=Object.entries(v).reduce((h,m)=>{let[_,g]=m;const S=unwrapNormalizedValidator(g).call(this,f,s,i,...a),k=unwrapValidatorResponse(S);if(h.$data[_]=S,h.$data.$invalid=!k||!!h.$data.$invalid,h.$data.$error=h.$data.$invalid,!k){let V=g.$message||"";const L=g.$params||{};typeof V=="function"&&(V=V({$pending:!1,$invalid:!k,$params:L,$model:f,$response:S})),h.$errors.push({$property:d,$message:V,$params:L,$response:S,$model:f,$pending:!1,$validator:_})}return{$valid:h.$valid&&k,$data:h.$data,$errors:h.$errors}},{$valid:!0,$data:{},$errors:[]});return u.$data[d]=p.$data,u.$errors[d]=p.$errors,{$valid:u.$valid&&p.$valid,$data:u.$data,$errors:u.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&l.$valid,$data:o.$data.concat(l.$data),$errors:o.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:t}=n;return t?t.$errors.map(a=>Object.values(a).map(r=>r.map(o=>o.$message)).reduce((r,o)=>r.concat(o),[])):[]}}}const req=e=>{if(e=vue.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length},len=e=>(e=vue.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function regex(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return a=>(a=vue.unref(a),!req(a)||n.every(r=>(r.lastIndex=0,r.test(a))))}var common$1=Object.freeze({__proto__:null,forEach,len,normalizeValidatorObject,regex,req,unwrap:vue.unref,unwrapNormalizedValidator,unwrapValidatorResponse,withAsync,withMessage,withParams});regex(/^[a-zA-Z]*$/);regex(/^[a-zA-Z0-9]*$/);regex(/^\d*(\.\d+)?$/);const emailRegex=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var email$1=regex(emailRegex),email={$validator:email$1,$message:"Value is not a valid email address",$params:{type:"email"}};function maxLength$1(e){return n=>!req(n)||len(n)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:n=>{let{$params:t}=n;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return n=>!req(n)||len(n)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:n=>{let{$params:t}=n;return`This field should be at least ${t.min} characters long`},$params:{min:e,type:"minLength"}}}function required$1(e){return typeof e=="string"&&(e=e.trim()),req(e)}var required={$validator:required$1,$message:"Value is required",$params:{type:"required"}};const urlRegex=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;regex(urlRegex);regex(/(^[0-9]*$)|(^-[0-9]+$)/);regex(/^[-]?\d*(\.\d+)?$/);const postcode=common$1.regex(/^([A-Za-z][A-HJ-Ya-hj-y]?\d[A-Za-z\d]? ?\d[A-Za-z]{2}|GIR ?0A{2})$/),validateFormElementMixin={emits:["status-update"],data(){return{inputVal:this.value,isInvalid:this.invalid}},computed:{isRequired(){return typeof required<"u"&&"required"in this.validationRules},rules(){let e={};for(const[n,t]of Object.entries(this.validationRules))n==="required"?e={...e,required}:n==="email"?e={...e,email}:n==="minLength"?e={...e,minLength:minLength(t)}:n==="maxLength"?e={...e,maxLength:maxLength(t)}:n==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:n==="postcode"&&(e={...e,postcode});return typeof e<"u"?(e={...e},{inputVal:e}):{}},errorsList(){const e=[];return Object.keys(this.rules.inputVal).forEach(t=>{this.v$.$errors&&this.v$.$errors.forEach(a=>{a.$validator===t&&e.push(t)})}),e}},watch:{errorsList(e){e.length?this.isInvalid=!0:this.isInvalid=!1}},methods:{manualValidate(){if(this.isInvalid=!1,"required"in this.rules.inputVal){let e=!1;typeof this.inputVal=="string"?/\S/.test(this.inputVal)||(e=!0):this.inputVal||(e=!0),e&&this.errorsList.indexOf("required")===-1&&this.errorsList.push("required")}else this.errorsList.forEach((e,n)=>{e==="required"&&this.errorsList.splice(n,1)});this.errorsList.length&&(this.isInvalid=!0),this.touched=!0,this.$emit("status-update",{field:this.fieldName,value:this.inputVal,errors:this.errorsList})},emitStatus(){setTimeout(()=>{this.manualValidate(),this.touched=!0,this.v$.$touch()},50)}}},ariaDescriptionMixin={computed:{ariaDescription(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?`error-${this.fieldName}`:this.hintText?`hint-${this.fieldName}`:null}}},_sfc_main$1S={name:"VsRadioButton",status:"prototype",release:"0.0.1",components:{BFormRadioGroup:LoadingSpinner.Ou,BFormRadio:LoadingSpinner.pn},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1},options:{type:Array,required:!0},hintText:{type:String,default:""}},emits:["updated","updateFieldData"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1,checkedValue:this.value}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},valueChanged(e){this.checkedValue=e.value,this.$emit("updateFieldData",e)}},validations(){return this.rules}},_hoisted_1$1q={class:"vs-radio-button","data-test":"vs-radio-button"},_hoisted_2$13=["id"],_hoisted_3$T={class:"visually-hidden"},_hoisted_4$F=["id"];function _sfc_render$1z(e,n,t,a,r,o){const s=vue.resolveComponent("BFormRadio"),i=vue.resolveComponent("BFormRadioGroup");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1q,[e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_3$T,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_2$13)):vue.createCommentVNode("",!0),vue.createVNode(i,{id:t.fieldName,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,(l,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-radio-button__option",[r.checkedValue===l.value?"vs-radio-button__option--checked":"",{"vs-radio-button__option--disabled":l.disabled}]]),key:u},[vue.createVNode(s,{value:l.value,name:t.fieldName,id:t.fieldName+l.value,onChange:c=>o.valueChanged({field:t.fieldName,value:l.value}),disabled:l.disabled},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(l.text),1)]),_:2},1032,["value","name","id","onChange","disabled"])],2))),128))]),_:1},8,["id","aria-invalid","aria-describedby","onBlur","onChange","onFocus"]),t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_4$F)):vue.createCommentVNode("",!0)])}const VsRadioButton=LoadingSpinner._export_sfc(_sfc_main$1S,[["render",_sfc_render$1z]]),_sfc_main$1R={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:LoadingSpinner.Tu,VsButton:LoadingSpinner.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=0},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},controlBlurred(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},decrementValue(e){e&&e.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue(e){e&&e.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations(){return this.rules}},_hoisted_1$1p={"data-test":"vs-number-input"},_hoisted_2$12=["id"],_hoisted_3$S=["id"],_hoisted_4$E={class:"visually-hidden"},_hoisted_5$s={class:"visually-hidden"};function _sfc_render$1y(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("BFormInput");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1p,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$12)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$E,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$S)):vue.createCommentVNode("",!0),vue.createVNode(s,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"fa-regular fa-minus",disabled:r.inputVal<=t.minimumNumber?!0:null,onClick:o.decrementValue},{default:vue.withCtx(()=>n[2]||(n[2]=[vue.createTextVNode(" Remove 1 ")])),_:1,__:[2]},8,["disabled","onClick"]),vue.createVNode(i,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",o.elementClass]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>r.inputVal=l),id:t.fieldName,name:t.fieldName,required:e.isRequired,v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.minimumNumber||null,max:t.maximumNumber||null,onBlur:o.controlBlurred,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),vue.createVNode(s,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"fa-regular fa-plus",disabled:r.inputVal>=t.maximumNumber?!0:null,onClick:o.incrementValue},{default:vue.withCtx(()=>n[3]||(n[3]=[vue.createTextVNode(" Add 1 ")])),_:1,__:[3]},8,["disabled","onClick"]),o.showClearButton?(vue.openBlock(),vue.createBlock(s,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:n[1]||(n[1]=vue.withModifiers(l=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$s,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsNumberInput=LoadingSpinner._export_sfc(_sfc_main$1R,[["render",_sfc_render$1y]]),_sfc_main$1Q={name:"VsCarbonCalculatorQuestion",status:"prototype",release:"0.0.1",components:{BFormGroup:LoadingSpinner.ku,VsRadioButton,VsNumberInput},props:{label:{type:String,required:!0},labelFor:{type:String,required:!0},hint:{type:String,default:""},fieldClass:{type:String,required:!0},fieldType:{type:String,default:"radio",validator:e=>e.match(/(radio|number)/)},fieldName:{type:String,required:!0},options:{type:Array,required:!0},minimum:{type:Number,default:0},maximum:{type:Number,default:0}},emits:["updateFieldData"],methods:{valueChanged(e){this.$emit("updateFieldData",e)}}},_hoisted_1$1o=["for"];function _sfc_render$1x(e,n,t,a,r,o){const s=vue.resolveComponent("VsRadioButton"),i=vue.resolveComponent("VsNumberInput"),l=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass([t.fieldClass,"vs-carbon-calculator-question"]),"data-test":"vs-carbon-calculator-question"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(t.fieldClass)},[vue.createElementVNode("label",{class:"vs-carbon-calculator-question__label mb-200",for:t.fieldName},vue.toDisplayString(t.label),9,_hoisted_1$1o),t.fieldType==="radio"?(vue.openBlock(),vue.createBlock(s,{key:0,"field-name":t.fieldName,options:t.options,required:!0,"hint-text":t.hint,onUpdateFieldData:o.valueChanged},null,8,["field-name","options","hint-text","onUpdateFieldData"])):vue.createCommentVNode("",!0),t.fieldType==="number"?(vue.openBlock(),vue.createBlock(i,{key:1,"field-name":t.fieldName,"increment-controls":!0,value:0,"minimum-number":t.minimum,"maximum-number":t.maximum,"hint-text":t.hint,onUpdated:o.valueChanged},null,8,["field-name","minimum-number","maximum-number","hint-text","onUpdated"])):vue.createCommentVNode("",!0)],2)]),_:1},8,["class"])}const VsCarbonCalculatorQuestion=LoadingSpinner._export_sfc(_sfc_main$1Q,[["render",_sfc_render$1x]]),_sfc_main$1P={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsWarning:LoadingSpinner.VsWarning,VsProgressBar,VsHeading:LoadingSpinner.VsHeading,VsCarbonCalculatorResults,VsCarbonCalculatorTip,VsCarbonCalculatorRunningTotal,VsCarbonCalculatorIntro,VsCarbonCalculatorQuestion},mixins:[LoadingSpinner.dataLayerMixin],provide(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data(){return this.initialState()},computed:{currentQuestion(){return!this.formData||!this.activeStage?null:this.formData.fields[this.activeStage-1]},currentTip(){return this.activeStage&&this.labelsMap[`stage-${this.activeStage}.tip`]?this.labelsMap[`stage-${this.activeStage}.tip`]:""},stayDuration(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory(){return this.labelsMap[`stage-${this.activeStage}.title`]?this.labelsMap[`stage-${this.activeStage}.title`]:""},activeStageRepeatable(){return this.labelsMap[`stage-${this.activeStage}.repeat`]?this.labelsMap[`stage-${this.activeStage}.repeat`]:""}},mounted(){this.getFormData()},methods:{initialState(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart(){const{formData:e,repeatableStages:n}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=n,this.cleanFields()},cleanFields(){for(let e=this.formData.fields.length-1;e>=0;e--)this.formData.fields[e].isClone&&this.formData.fields.splice(e,1);for(let e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData(){LoadingSpinner.axios.get(this.labelsMap.formUrl).then(e=>{if(this.formData=e.data,e.data.fields.forEach(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let n=0;n<e.data.repeatableStages.length;n++)this.repeatableStages[e.data.repeatableStages[n]]={generations:0}})},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getQuestionLabel(e,n){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-question`])return this.labelsMap[`question-${e.originalNumber+1}.clone-question`];if(this.labelsMap[`question-${e.originalNumber+1}.question`])return this.labelsMap[`question-${e.originalNumber+1}.question`]}return this.labelsMap[`question-${n+1}.question`]?this.labelsMap[`question-${n+1}.question`]:""},getQuestionHint(e,n){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-hint`])return this.labelsMap[`question-${e.originalNumber+1}.clone-hint`];if(this.labelsMap[`question-${e.originalNumber+1}.hint`])return this.labelsMap[`question-${e.originalNumber+1}.hint`]}return this.labelsMap[`question-${n+1}.hint`]?this.labelsMap[`question-${n+1}.hint`]:""},getQuestionOptions(e,n){let t;if(e.isClone?t=e.originalNumber:t=n,e.element==="radio"){const{options:a}=e;for(let r=0;r<a.length;r++)a[r].text=this.labelsMap[`question-${t+1}.option-${r+1}`];return a}return[]},updateFieldData(e){this.form[e.field]=e.value||"",e.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus(e,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},getRadioValue(e,n){if(!n)return 0;let t;for(let r=0;r<this.formData.fields.length;r++)this.formData.fields[r].name===e&&(t=this.formData.fields[r]);const a=t.values[n];if(t.multiplyByNumber)return a*t.multiplyByNumber;if(t.multiplyByAnswer){let r=this.form[t.multiplyByAnswer.question]||0;return r=Math.max(r,t.multiplyByAnswer.minimum),a*r}if(t.multiplyByValue&&e!==t.multiplyByValue){let r=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question])||0;return r=Math.max(r,t.multiplyByValue.minimum),a*r}return a},getNumberValue(e,n){if(!n)return 0;let t;for(let a=0;a<this.formData.fields.length;a++)this.formData.fields[a].name===e&&(t=this.formData.fields[a]);if(t.multiplyByNumber)return parseInt(n,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const a=this.form[t.multiplyByAnswer.question]||0;return parseInt(n,10)*a}if(t.multiplyByValue&&e!==t.multiplyByValue){const a=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(n,10)*a}return 0},getFieldValue(e){return e.element==="radio"?this.getRadioValue(e.name,this.form[e.name]):e.element==="number"?this.getNumberValue(e.name,this.form[e.name]):0},calculateEmissions(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(let e=0;e<this.formData.fields.length;e++){const n=this.formData.fields[e];switch(n.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(n);break;case 2:this.accommodationKilos+=this.getFieldValue(n);break;case 4:this.foodKilos+=this.getFieldValue(n);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(a=>a.name===e);let t=!0;Object.keys(n.conditional).forEach(a=>{const r=n.conditional[a];Array.isArray(r)?r.indexOf(this.form[a])===-1&&(t=!1):this.form[a]!==r&&(t=!1),t?this.conditionalFields[e]=!0:(this.conditionalFields[e]=!1,this.manageErrorStatus(e,[]))})})},forwardPage(e){e&&e.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage(e){e&&e.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet(){if(this.activeStage>this.formData.stages){this.answerSet=!0;return}this.answerSet=!0;for(let e=0;e<this.formData.fields.length;e++)if(this.formData.fields[e].stage===this.activeStage){const n=this.formData.fields[e];n.element==="radio"&&!this.form[n.name]?this.answerSet=!1:n.element==="number"&&!this.form[n.name]&&(this.form[n.name]=n.validation.min)}},isRepeatable(e){return!!(this.repeatableStages[e]&&this.repeatableStages[e].generations<3)},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"},resetFocus(){this.$nextTick(()=>{this.$nextTick(()=>{try{this.$refs.questions[this.activeStage-1].$el.focus(),this.$refs.progress.$el.scrollIntoView()}catch{}})})},duplicateCurrentStage(e){e&&e.preventDefault();const n=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const a=this.formData.fields[t];if(a.stage===this.activeStage&&!a.isClone){const r=JSON.parse(JSON.stringify(a));r.isClone=!0;const o=`${a.name}${n}`;r.name=o,r.originalNumber=t,this.form[o]="",this.formData.fields.push(r)}}this.repeatableStages[this.activeStage].generations=n}}},_hoisted_1$1n={class:"vs-carbon-calculator__wrapper"},_hoisted_2$11={key:1};function _sfc_render$1w(e,n,t,a,r,o){const s=vue.resolveComponent("VsCarbonCalculatorIntro"),i=vue.resolveComponent("VsProgressBar"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsCarbonCalculatorQuestion"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsCarbonCalculatorTip"),f=vue.resolveComponent("VsCol"),v=vue.resolveComponent("VsCarbonCalculatorRunningTotal"),p=vue.resolveComponent("VsCarbonCalculatorResults"),h=vue.resolveComponent("VsRow"),m=vue.resolveComponent("VsContainer"),_=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1n,[vue.createVNode(m,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(h,{key:0,class:"vs-carbon-calculator__survey"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[e.activeStage?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0})),e.activeStage?(vue.openBlock(),vue.createElementBlock("form",_hoisted_2$11,[vue.createElementVNode("fieldset",null,[vue.createVNode(i,{max:e.formData.stages,"current-step":e.activeStage<=e.formData.stages?e.activeStage:e.formData.stages,"is-stepped":!0,"is-full":e.activeStage>e.formData.stages,"progress-label":t.labelsMap.progress,ref:"progress"},null,8,["max","current-step","is-full","progress-label"]),vue.withDirectives(vue.createElementVNode("div",null,[o.currentCategory?(vue.openBlock(),vue.createBlock(l,{key:0,level:"2","heading-style":"heading-m",class:"vs-carbon-calculator__category-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(g,b)=>vue.withDirectives((vue.openBlock(),vue.createBlock(u,{ref_for:!0,ref:"questions",tabindex:"0",key:g.name,label:o.getQuestionLabel(g,b),"label-for":g.name,hint:o.getQuestionHint(g,b),"field-class":o.conditionalElementClass(g.name),"field-type":g.element,"field-name":g.name,options:o.getQuestionOptions(g,b),minimum:g.element==="number"?g.validation.min:0,maximum:g.element==="number"?g.validation.max:0,onUpdateFieldData:o.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,g.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),o.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(c,{key:2,class:"my-100",variant:"secondary",icon:"fa-regular fa-plus",onClick:n[0]||(n[0]=g=>o.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),o.currentTip?(vue.openBlock(),vue.createBlock(d,{key:3,tip:o.currentTip},null,8,["tip"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(f,{cols:"12"},{default:vue.withCtx(()=>[e.activeStage>0&&e.activeStage<=e.formData.stages?(vue.openBlock(),vue.createBlock(v,{key:0,"total-kilos":e.totalKilos,language:t.language},null,8,["total-kilos","language"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(p,{key:1,"total-kilos":e.totalKilos,"transport-kilos":e.transportKilos,"food-kilos":e.foodKilos,"accommodation-kilos":e.accommodationKilos,"stay-duration":o.stayDuration,"comparison-replacements":e.formData.comparisonReplacements,language:t.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparison-replacements","language"])):vue.createCommentVNode("",!0)]),_:1}),e.activeStage===0?(vue.openBlock(),vue.createBlock(f,{key:0,class:"text-center",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(c,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:n[1]||(n[1]=g=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.begin),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.activeStage>0?(vue.openBlock(),vue.createBlock(f,{key:1,cols:"12"},{default:vue.withCtx(()=>[e.activeStage>1?(vue.openBlock(),vue.createBlock(c,{key:0,variant:"secondary",type:"submit",class:"vs-form__submit mt-300 float-start",ref:"backPage",onClick:n[2]||(n[2]=g=>o.backwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.previous),1)]),_:1},512)):vue.createCommentVNode("",!0),e.activeStage<e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",ref:"forwardPage",disabled:e.activeStage>0&&!e.answerSet,onClick:n[3]||(n[3]=g=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.next),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage===e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",disabled:!e.answerSet,onClick:n[4]||(n[4]=g=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.results),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(c,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",onClick:n[5]||(n[5]=g=>o.restart())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.restart),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=LoadingSpinner._export_sfc(_sfc_main$1P,[["render",_sfc_render$1w]]),_sfc_main$1O={name:"VsCard",status:"prototype",release:"0.1.0",props:{cardStyle:{type:String,default:null,validator:e=>e.match(/(elevated|outlined|overlay)/)},fillColor:{type:String,default:"vs-color-interaction-cta-subtle"},accentBar:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1}},data(){return{tokens:LoadingSpinner.designTokens}},computed:{cardClasses(){return[{"vs-card--horizontal":this.horizontal,"vs-card--accent-bar":this.accentBar},this.cardStyle?`vs-card--${this.cardStyle}`:null]},cardStyles(){return this.fillColor?{"background-color":this.tokens[this.fillColor]||this.fillColor}:null}}},_hoisted_1$1m={key:0,class:"vs-card__header"},_hoisted_2$10={class:"vs-card__body"},_hoisted_3$R={key:1,class:"vs-card__footer"},_hoisted_4$D={key:2,class:"vs-card__image"};function _sfc_render$1v(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-card",o.cardClasses]),"data-test":"vs-card",style:vue.normalizeStyle(o.cardStyles)},[e.$slots["vs-card-header"]&&e.$slots["vs-card-header"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1m,[vue.renderSlot(e.$slots,"vs-card-header")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$10,[vue.renderSlot(e.$slots,"vs-card-body")]),e.$slots["vs-card-footer"]&&e.$slots["vs-card-footer"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$R,[vue.renderSlot(e.$slots,"vs-card-footer")])):vue.createCommentVNode("",!0),t.cardStyle==="overlay"&&e.$slots["vs-card-image"]&&e.$slots["vs-card-image"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$D,[vue.renderSlot(e.$slots,"vs-card-image")])):vue.createCommentVNode("",!0)],6)}const VsCard=LoadingSpinner._export_sfc(_sfc_main$1O,[["render",_sfc_render$1v]]),_sfc_main$1N={name:"VsCardGroup",status:"prototype",release:"0.1.0",props:{variant:{type:String,default:"grid",validator:e=>e.match(/(grid)/)},cardsPerRow:{type:Number,default:3,validator:e=>[3,4].includes(e)},scrollSnap:{type:[Boolean,String],default:!1,validator:e=>[!1,!0,"always"].includes(e)}},computed:{cardGroupClasses(){return["vs-card-group",{"is-scroll-snap-responsive":this.scrollSnap===!0,"is-scroll-snap-always":this.scrollSnap==="always","is-grid":this.variant==="grid"}]}}};function _sfc_render$1u(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.cardGroupClasses),style:vue.normalizeStyle({"--cards-in-row":t.cardsPerRow}),"data-test":"vs-card-group"},[vue.renderSlot(e.$slots,"default")],6)}const VsCardGroup=LoadingSpinner._export_sfc(_sfc_main$1N,[["render",_sfc_render$1u]]),noJsClass="no-js",jsIsDisabled=()=>document.getElementsByClassName(noJsClass).length>0,useVideoStore=pinia.defineStore("video",{state:()=>({videos:{}}),actions:{addVideo(e){this.videos[e.videoId]={...e}}}}),cookieCheckerMixin={data(){return{requiredCookies:[],requiredCookiesAllowed:!1,cookieManagerLoaded:!1}},methods:{managerLoaded(){this.cookieManagerLoaded=!0},cookiesUpdated(){let e=!1;typeof CookieControl<"u"&&(e=this.requiredCookies.every(n=>CookieControl&&CookieControl.getCategoryConsent(n)===!0)),this.requiredCookiesAllowed=e,typeof this.callbackOnUpdated<"u"&&this.callbackOnUpdated()}},computed:{cookiesAllowed(){return typeof window<"u"&&window.bypassCookiesRequired?!0:this.requiredCookiesAllowed},cookiesLoaded(){return typeof window<"u"&&window.bypassCookiesLoaded?!0:this.cookieManagerLoaded}},mounted(){window.addEventListener("cookieManagerLoaded",()=>{this.managerLoaded()}),window.addEventListener("cookiesUpdated",()=>{this.cookiesUpdated()})}},cookieCategories=Object.freeze({analytical:0,marketing:1}),cookieValues$5={youtube:[cookieCategories.marketing],embed:[cookieCategories.analytical,cookieCategories.marketing],google_maps:[cookieCategories.analytical,cookieCategories.marketing]},cookieValues$4=cookieValues$5.youtube,_sfc_main$1M={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsLink,VsImg:LoadingSpinner.VsImg,VsButton:LoadingSpinner.VsButton,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:null},theme:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:e=>e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],default:"heading-xs",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)},type:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:e=>e.match(/(image|full)/)},warningSize:{type:String,default:"small",validator:e=>e.match(/(normal|small)/)},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},setup(){return{videoStore:useVideoStore()}},data(){return{jsDisabled:!0,requiredCookies:cookieValues$4}},computed:{formattedVideoBtnText(){return`${this.videoBtnText} | `},formattedVideoDuration(){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`},stretchedLinkCardClasses(){let e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),this.type==="video"&&(e+=" vs-stretched-link-card--video"),this.showWarning&&this.type==="video"&&(e+=" vs-stretched-link-card--warning"),e},videoDetails(){return this.videoStore?this.videoStore.videos[this.videoId]:null},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},warningClass(){let e="";return this.videoId&&(this.jsDisabled||!this.cookiesAllowed)&&(e="vs-stretched-link-card__img-container--warning ",this.errorType==="full"&&(this.cookiesLoaded||this.jsDisabled)&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning(){return!!(this.videoId&&!this.jsDisabled&&!this.cookiesAllowed&&this.cookiesLoaded)},showError(){return!!(this.videoId&&this.errorMessage!==""&&!this.cookiesLoaded)},showWarning(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage(){let e="";return this.showCookieWarning?e=this.noCookiesMessage:e=this.errorMessage,e},warningAttrs(){const e={};return this.type==="cookie"&&(e.class="vs-warning__cookie-trigger"),this.size==="small"&&(e.size="sm"),e},isSvg(){return!!(this.imgSrc&&this.imgSrc.includes(".svg"))}},mounted(){this.jsDisabled=jsIsDisabled()},methods:{emitShowModal(){!this.videoId||!this.cookiesAllowed||this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$1l={key:0,class:"vs-stretched-link-card__video-btn-text"},_hoisted_2$$={key:4,class:"card-body"},_hoisted_3$Q={key:0,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},_hoisted_4$C={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},_hoisted_5$r={key:2,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1t(e,n,t,a,r,o){const s=vue.resolveComponent("VsWarning"),i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["card vs-stretched-link-card",o.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:n[0]||(n[0]=(...d)=>o.emitShowModal&&o.emitShowModal(...d)),onKeypress:n[1]||(n[1]=(...d)=>o.emitShowModal&&o.emitShowModal(...d))},[o.showWarning==="full"?(vue.openBlock(),vue.createBlock(s,{key:0,size:t.warningSize,type:o.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage)+" ",1)]),_:2},[o.cookieLinkText!==""&&o.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.errorType==="full"&&t.videoId!==""?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.imgSrc?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["vs-stretched-link-card__img-container",o.warningClass])},[t.imgSrc?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(i,{src:t.imgSrc,alt:t.imgAlt,class:vue.normalizeClass(["vs-stretched-link-card__img",o.isSvg?"vs-stretched-link-card__img--svg":""]),"data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt","class"]),t.videoId&&o.videoLoaded&&e.cookiesAllowed?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"fa-regular fa-play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1l,vue.toDisplayString(o.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(o.formattedVideoDuration),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),o.showWarning==="image"?(vue.openBlock(),vue.createBlock(s,{key:1,size:t.warningSize,type:o.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage)+" ",1)]),_:2},[o.cookieLinkText!==""&&o.showCookieWarning?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),key:"0"}:void 0]),1032,["size","type"])):vue.createCommentVNode("",!0),t.videoId!==""&&t.errorType==="image"?(vue.openBlock(),vue.createBlock(s,{key:2,size:t.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?vue.renderSlot(e.$slots,"stretched-card-panels",{key:3}):vue.createCommentVNode("",!0),o.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$$,[e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$Q,[vue.renderSlot(e.$slots,"stretched-card-category")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?(vue.openBlock(),vue.createBlock(c,{key:1,level:t.headingLevel,"heading-style":t.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:vue.withCtx(()=>[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?vue.renderSlot(e.$slots,"stretched-card-header",{key:0}):!t.businessSupport&&t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(u,{key:2,href:t.link,type:t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:o.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:(t.videoId||t.disabled)&&!t.businessSupport?"-1":"0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-header")]),_:3},8,["href","type","class","variant","disabled","tabindex"]))]),_:3},8,["level","heading-style"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$C,[vue.renderSlot(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$r,[vue.renderSlot(e.$slots,"stretched-card-badges")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(vue.openBlock(),vue.createBlock(u,{key:3,href:t.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-link")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],34)}const VsStretchedLinkCard=LoadingSpinner._export_sfc(_sfc_main$1M,[["render",_sfc_render$1t]]),_sfc_main$1L={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}},_hoisted_1$1k={class:"vs-stretched-link-panels"},_hoisted_2$_={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},_hoisted_3$P={"data-test":""},_hoisted_4$B={class:"vs-stretched-link-panels__days"},_hoisted_5$q={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$j={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1s(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1k,[vue.createElementVNode("div",_hoisted_2$_,[vue.createElementVNode("p",_hoisted_3$P,[vue.createElementVNode("span",_hoisted_4$B,vue.toDisplayString(t.days),1),vue.createTextVNode(vue.toDisplayString(t.daysLabel),1)])]),vue.createElementVNode("div",_hoisted_5$q,[vue.createVNode(s,{icon:t.transport,variant:"inverse",size:"sm",class:"vs-stretched-link-panels__icon"},null,8,["icon"]),vue.createElementVNode("p",_hoisted_6$j,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=LoadingSpinner._export_sfc(_sfc_main$1L,[["render",_sfc_render$1s]]),_sfc_main$1K={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsStretchedLinkPanels,VsCol:LoadingSpinner.VsCol},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download)/)},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible(e){const n=parseInt(e,10);return this.visibleSlides.indexOf(n)>=0}}},_hoisted_1$1j={class:"vs-carousel-slide"},_hoisted_2$Z={class:"visually-hidden"},_hoisted_3$O={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function _sfc_render$1r(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsStretchedLinkCard"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!o.isVisible(t.slideIndex)},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(i,{link:t.linkUrl,type:t.linkType,"img-src":t.imgSrc,"img-alt":t.imgAlt,class:vue.normalizeClass([o.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!o.isVisible(t.slideIndex),"data-test":"vs-carousel-card"},vue.createSlots({"stretched-card-category":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$Z,vue.toDisplayString(t.categoryLabel)+": ",1),vue.createTextVNode(vue.toDisplayString(t.category),1)]),"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$O,[vue.renderSlot(e.$slots,"vs-carousel-slide-heading")])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const CarouselSlide=LoadingSpinner._export_sfc(_sfc_main$1K,[["render",_sfc_render$1r]]),_sfc_main$1J={name:"VsCheckbox",status:"prototype",release:"0.0.1",components:{BFormCheckbox:LoadingSpinner.fn},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{fieldName:{type:String,required:!0},value:{type:String,default:""},label:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},infoText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},size:{type:String,default:void 0,validator:e=>e.match(/(sm|md|lg)/)}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:"",errors:[]}},computed:{checkBoxClasses(){return{"vs-checkbox":!0,"vs-checkbox--error":this.isInvalid,"vs-checkbox--small":this.size==="sm"}}},watch:{value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},validations(){return this.rules}},_hoisted_1$1i=["id"],_hoisted_2$Y=["innerHTML"],_hoisted_3$N=["id"],_hoisted_4$A={class:"visually-hidden"},_hoisted_5$p={class:"vs-checkbox__label"};function _sfc_render$1q(e,n,t,a,r,o){const s=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.checkBoxClasses)},[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_1$1i),t.infoText!==""?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:t.infoText},null,8,_hoisted_2$Y)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$A,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$N)):vue.createCommentVNode("",!0),t.fieldName?(vue.openBlock(),vue.createBlock(s,vue.mergeProps({key:2,modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i),class:"me-100",name:t.fieldName,id:t.fieldName,value:t.value,unchecked_value:`not_${t.value}`},e.$attrs,{"data-test":"vs-checkbox",onBlur:e.emitStatus,onChange:e.emitStatus,required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription}),{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$p,vue.toDisplayString(t.label),1)]),_:1},16,["modelValue","name","id","value","unchecked_value","onBlur","onChange","required","aria-invalid","aria-describedby"])):vue.createCommentVNode("",!0)],2)}const VsCheckbox=LoadingSpinner._export_sfc(_sfc_main$1J,[["render",_sfc_render$1q]]),_sfc_main$1I={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1p(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("dl",{class:vue.normalizeClass(["vs-description-list",{"list-inline":t.inline}])},[vue.renderSlot(e.$slots,"default")],2)}const DescriptionList=LoadingSpinner._export_sfc(_sfc_main$1I,[["render",_sfc_render$1p]]),_sfc_main$1H={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1o(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(s,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":o.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!o.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!o.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=LoadingSpinner._export_sfc(_sfc_main$1H,[["render",_sfc_render$1o],["__scopeId","data-v-cf7a6cc3"]]),_sfc_main$1G={name:"VsDetail",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{size:{type:String,default:"medium",validator:e=>e.match(/(small|medium|large)/)},color:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|tertiary)/)},noMargins:{type:Boolean,default:!1},icon:{type:String,default:""},iconVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|tertiary|cta|inverse|disabled|highlight|error|warning|success)/)}},computed:{detailClasses(){return["vs-detail",`vs-detail--${this.size}`,`vs-detail--${this.color}`,...this.icon?["d-flex","align-items-baseline"]:[],...this.noMargins?[]:["vs-detail--with-margins"]]},iconSize(){return this.size==="small"?"xxs":"xs"}}};function _sfc_render$1n(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("p",{class:vue.normalizeClass(o.detailClasses)},[t.icon?(vue.openBlock(),vue.createBlock(s,{key:0,class:"me-050 flex-shrink-0",icon:t.icon,size:o.iconSize,variant:t.iconVariant},null,8,["icon","size","variant"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",null,[vue.renderSlot(e.$slots,"default")])],2)}const VsDetail=LoadingSpinner._export_sfc(_sfc_main$1G,[["render",_sfc_render$1n]]),_sfc_main$1F={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:LoadingSpinner.un},props:{text:{type:String,default:""},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary)/)}},computed:{nonButtonContentSlots(){return LoadingSpinner.lodashExports.reject(this.$slots,{name:"button-content"})}}},_hoisted_1$1h={class:"dropdown-menu overflow-auto",role:"menu"};function _sfc_render$1m(e,n,t,a,r,o){const s=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(s,vue.mergeProps(e.$attrs,{variant:t.variant,class:"vs-dropdown"}),vue.createSlots({"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content",{},()=>[vue.createTextVNode(vue.toDisplayString(t.text),1)])]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:2},[vue.renderList(o.nonButtonContentSlots,(i,l)=>({name:l,fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,l)])}))]),1040,["variant"]),vue.createElementVNode("div",{class:vue.normalizeClass([e.$attrs.class,"dropdown vs-dropdown vs-dropdown--fallback"])},[vue.createElementVNode("ul",_hoisted_1$1h,[vue.renderSlot(e.$slots,"default")])],2)],64)}const VsDropdown=LoadingSpinner._export_sfc(_sfc_main$1F,[["render",_sfc_render$1m]]),_sfc_main$1E={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:LoadingSpinner.Xi}};function _sfc_render$1l(e,n,t,a,r,o){const s=vue.resolveComponent("BDropdownItem");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{role:"menuitem"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsDropdownItem=LoadingSpinner._export_sfc(_sfc_main$1E,[["render",_sfc_render$1l]]),cookieValues$3=cookieValues$5.embed,_sfc_main$1D={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0},extraContent:{type:String,default:""},embeddedScript:{type:String,default:""}},data(){return{requiredCookies:this.noCookiesRequired?null:cookieValues$3}},computed:{showError(){return this.noCookiesRequired?!1:!this.cookiesAllowed&&this.cookiesLoaded===!0||!this.cookiesLoaded},warningText(){let e="";return this.cookiesLoaded||(e=this.errorText),!this.cookiesAllowed&&this.cookiesLoaded===!0&&(e=this.noCookieText),e}},methods:{callbackOnUpdated(){if(this.embeddedScript&&this.cookiesLoaded&&this.requiredCookiesAllowed){const e=document.createElement("script");e.src=this.embeddedScript,document.head.appendChild(e)}}}},_hoisted_1$1g={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},_hoisted_2$X={class:"vs-embed-wrapper__container",key:"embeddedContent"},_hoisted_3$M={key:"fallback"},_hoisted_4$z=["innerHTML"];function _sfc_render$1k(e,n,t,a,r,o){const s=vue.resolveComponent("VsBody"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsWarning"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:vue.withCtx(()=>[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!o.showError?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-intro-copy")]),_:3})):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12"},{default:vue.withCtx(()=>[e.cookiesAllowed||t.noCookiesRequired?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$X,[vue.renderSlot(e.$slots,"embed-widget")])):vue.createCommentVNode("",!0),o.showError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$M,[vue.createVNode(l,{type:e.cookiesLoaded===!0?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[t.extraContent?{name:"extra-content",fn:vue.withCtx(()=>[vue.createElementVNode("div",{innerHTML:t.extraContent},null,8,_hoisted_4$z)]),key:"0"}:void 0,!e.cookiesAllowed&&e.cookiesLoaded===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-button-text")]),key:"1"}:void 0]),1032,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(l,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsText),1)]),_:1})]),_:3})]),_:3})]),_:3})])}const EmbedWrapper=LoadingSpinner._export_sfc(_sfc_main$1D,[["render",_sfc_render$1k]]),_sfc_main$1C={name:"VsEventCard",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsButton:LoadingSpinner.VsButton,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow},props:{ctaHref:{type:String,default:"#"},ctaLabel:{type:String,default:""},ctaIcon:{type:String,default:""}}},_hoisted_1$1f={class:"card vs-event-card","data-test":"vs-event-card"},_hoisted_2$W={class:"card-body"},_hoisted_3$L={class:"vs-event-card__date"},_hoisted_4$y={key:0,class:"vs-event-card__content","data-test":"vs-event-card__content"},_hoisted_5$o={key:1,class:"vs-event-card__cta","data-test":"vs-event-card__cta"};function _sfc_render$1j(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1f,[vue.createElementVNode("div",_hoisted_2$W,[vue.createVNode(l,{class:"vs-event-card__header"},{default:vue.withCtx(()=>[vue.createVNode(i,{sm:"12",md:"9",class:"p-0"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-event-card__heading","heading-style":"heading-xs",level:"3","data-test":"vs-event-card__heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"event-card-header")]),_:3})]),_:3}),e.$slots["event-card-date"]?(vue.openBlock(),vue.createBlock(i,{key:0,sm:"12",md:"3",class:"my-auto p-0","data-test":"vs-event-card__date"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3$L,[vue.renderSlot(e.$slots,"event-card-date")])]),_:3})):vue.createCommentVNode("",!0)]),_:3}),e.$slots["event-card-content"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$y,[vue.renderSlot(e.$slots,"event-card-content")])):vue.createCommentVNode("",!0),t.ctaHref&&t.ctaLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$o,[vue.createVNode(u,{href:t.ctaHref,icon:t.ctaIcon,"icon-position":"right","data-test":"vs-event-card__cta"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaLabel),1)]),_:1},8,["href","icon"])])):vue.createCommentVNode("",!0)])])}const EventCard=LoadingSpinner._export_sfc(_sfc_main$1C,[["render",_sfc_render$1j]]),_hoisted_1$1e=["id"],_hoisted_2$V={class:"vs-filter__panel-wrapper"},_hoisted_3$K={class:"vs-filter__legend"},_sfc_main$1B={__name:"VsFilter",props:{filterId:{type:String,required:!0},filterLabel:{type:String,required:!0}},emits:["filter-updated"],setup(e,{expose:n}){const t=e,a=vue.ref(),r=i=>{const l=i;l.type==="checkbox"?l.checked=!1:l.type==="date"&&(l.value="")};return n({clearFilter:r,resetAll:()=>{a.value.querySelectorAll('input[type="checkbox"], input[type="date"]').forEach(l=>{r(l)})},resetOne:i=>{const l=a.value.querySelector(`#${i}`);r(l)}}),(i,l)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"vs-filter","data-test":"vs-filter",id:t.filterId,ref_key:"filter",ref:a},[vue.createElementVNode("div",_hoisted_2$V,[vue.createElementVNode("fieldset",{class:"vs-filter__panel","data-test":"vs-filter__panel",onChange:l[0]||(l[0]=u=>i.$emit("filter-updated",u))},[vue.createElementVNode("legend",_hoisted_3$K,[vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-filters",size:"sm"}),vue.createTextVNode(" "+vue.toDisplayString(t.filterLabel),1)]),vue.renderSlot(i.$slots,"default")],32)])],8,_hoisted_1$1e),i.$slots["no-js"]?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsWarning,{key:0,class:"vs-filter__warning"},{default:vue.withCtx(()=>[vue.renderSlot(i.$slots,"no-js")]),_:3})):vue.createCommentVNode("",!0)],64))}},_hoisted_1$1d={key:0,class:"vs-filter-section__details"},_hoisted_2$U={class:"vs-filter-section__summary"},_hoisted_3$J={key:1,class:"vs-filter-section__section"},_sfc_main$1A={__name:"VsFilterSection",props:{sectionTitle:{type:String,default:void 0},type:{type:String,default:"list",validator:e=>e.match(/(inline|group|list)/)}},setup(e){const n=e,t=vue.computed(()=>({"vs-filter-section":!0,"vs-filter-section--inline":n.type==="inline"}));return(a,r)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(t.value),"data-test":"vs-filter-section"},[n.type==="group"?(vue.openBlock(),vue.createElementBlock("details",_hoisted_1$1d,[vue.createElementVNode("summary",_hoisted_2$U,[vue.createTextVNode(vue.toDisplayString(n.sectionTitle)+" ",1),vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-expand",variant:"highlight"})]),vue.renderSlot(a.$slots,"default")])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$J,[vue.renderSlot(a.$slots,"default")]))],2))}};function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(a=>(a(),!1))},onCleanup:a=>{e.push(a)}}}function createHydrationPromise(e){let n=()=>{};const t=new Promise(r=>{n=()=>{e(),r()}});return{promise:t,resolvePromise:n,onResolvedPromise:r=>{t.then(r)}}}function trackDepsOnRender(e){const n=e.effect.fn,t=e.render;e.render=(...a)=>{e.effect.fn=()=>t(...a);const r=e.effect.run();return e.effect.fn=n,e.render=t,r}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,n){if(vue.isVNode(e)&&(n(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,n));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const a=e.children[t]();if(Array.isArray(a)){a.forEach(r=>traverseChildren(r,n));return}traverseChildren(a,n)})}}function isAsyncWrapper(e){var n,t;return((n=e.type)==null?void 0:n.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},n){const t=[];if(traverseChildren(e,a=>{isAsyncWrapper(a)&&t.push(a.type.__asyncLoader())}),t.length>0){Promise.all(t).then(n);return}n()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const n=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=n),e.u=t})}function useLazyHydration(){const e=vue.getCurrentInstance();if(!e||e.isMounted)throw new Error("useLazyHydration must be called from the setup method.");const n=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!n)return{willPerformHydration:n,onHydrated:()=>{}};const{cleanup:t,onCleanup:a}=createHydrationCleanup(),{promise:r,resolvePromise:o,onResolvedPromise:s}=createHydrationPromise(t),i=l=>s(()=>vue.nextTick(()=>waitForAsyncComponents(e,l)));return e.type.__asyncLoader=()=>r,ensureParentHasSubTreeEl(e.parent),vue.onBeforeMount(()=>{e.asyncDep=new Promise(l=>{l(!0)})}),s(()=>{trackDepsOnRender(e),e.asyncDep=null}),vue.onUnmounted(t),{willPerformHydration:n,hydrate:o,onHydrated:i,onCleanup:a}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:n,onCleanup:t},a=2e3){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenIdle must be called from the setup or lifecycle hook methods.");if(!("requestIdleCallback"in window)){n();return}const r=requestIdleCallback(()=>{n()},{timeout:a});t(()=>{cancelIdleCallback(r)})}const DOMNodeTypes={ELEMENT:1,COMMENT:8},isElement=e=>e&&e.nodeType===DOMNodeTypes.ELEMENT,isComment=e=>e&&e.nodeType===DOMNodeTypes.COMMENT,isFragmentStart=e=>isComment(e)&&(e==null?void 0:e.data)==="[",isFragmentEnd=e=>isComment(e)&&(e==null?void 0:e.data)==="]";function getRootElements({vnode:e,subTree:n}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(n&&isFragmentStart(n.el)&&isFragmentEnd(n.anchor)){let a=e.el.nextSibling;for(;a;){if(a&&isElement(a)&&t.push(a),a===n.anchor)return t;a=a.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:n,onCleanup:t},a=["focus"]){if(!e)return;const r=vue.getCurrentInstance();if(!r||r.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const o=vue.unref(a);vue.onMounted(()=>{const s=getRootElements(r),i=s.length>1?s[0].parentElement||document:s[0],l={capture:!0,once:!1,passive:!0},u=c=>{c.stopPropagation();const d=c.composedPath&&c.composedPath()||c.path;if(!d){let f=c.target;for(;f;){if(s.includes(f)){n();return}if(f===i)return;f=f.parentElement}return}s.forEach(f=>{d.includes(f)&&n()})};o.forEach(c=>{i.addEventListener(c,u,l)}),t(()=>{o.forEach(c=>{i.removeEventListener(c,u,l)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:n,onCleanup:t},a){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenTriggered must be called from the setup or lifecycle hook methods.");const r=vue.watch(vue.isRef(a)?a:()=>a,o=>{o&&n()},{immediate:!0});t(r)}const observers=new Map;function createHydrationObserver(e){const n=typeof IntersectionObserver<"u";if(!n)return{supported:n};const t=JSON.stringify(e);if(observers.has(t))return{supported:n,observer:observers.get(t)};const a=new IntersectionObserver(r=>{r.forEach(o=>{!(o.isIntersecting||o.intersectionRatio>0)||!o.target.hydrate||o.target.hydrate()})},e);return observers.set(t,a),{supported:n,observer:a}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:n,onCleanup:t},a){if(!e)return;const r=vue.getCurrentInstance();if(!r||r.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:o,observer:s}=createHydrationObserver(a);if(!o){n();return}vue.onMounted(()=>{const i=getRootElements(r);i.forEach(l=>{l.hydrate=n,s.observe(l)}),t(()=>{i.forEach(l=>{delete l.hydrate,s.unobserve(l)})})})}const normalizeSlot=e=>e.length===1?e[0]:e,LazyHydrationWrapper=vue.defineComponent({name:"LazyHydrationWrapper",inheritAttrs:!1,suspensible:!1,props:{whenIdle:{default:!1,type:[Boolean,Number]},whenVisible:{default:!1,type:[Boolean,Object]},onInteraction:{default:!1,type:[Array,Boolean,String]},whenTriggered:{default:void 0,type:[Boolean,Object]}},emits:["hydrated"],setup(e,{slots:n,emit:t}){const a=useLazyHydration();if(!a.willPerformHydration)return()=>normalizeSlot(n.default());if(a.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(a,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(a,e.whenVisible!==!0?e.whenVisible:void 0),e.onInteraction){let r;e.onInteraction!==!0&&(r=vue.computed(()=>Array.isArray(e.onInteraction)?e.onInteraction:[e.onInteraction]).value),useHydrateOnInteraction(a,r)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(a,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(n.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1z={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1c={class:"vs-footer-nav-list"};function _sfc_render$1i(e,n,t,a,r,o){const s=vue.resolveComponent("VsRow"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("LazyHydrationWrapper"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createBlock(u,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:vue.withCtx(()=>[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1c,[vue.createVNode(i,{"break-point":t.breakPoint},{default:vue.withCtx(()=>[vue.createVNode(s,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["break-point"])])]),_:3})]),_:3})}const VsFooterNavList=LoadingSpinner._export_sfc(_sfc_main$1z,[["render",_sfc_render$1i]]),_sfc_main$1y={name:"VsFooter",status:"prototype",release:"0.1.0",components:{VsFooterNavList,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow}},_hoisted_1$1b={class:"vs-footer pt-150 pt-md-300","data-unique-id":"vs-footer",id:"site-footer"},_hoisted_2$T={class:"vs-footer__social-menu-wrapper"};function _sfc_render$1h(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsFooterNavList"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("footer",_hoisted_1$1b,[vue.createVNode(i,{"break-point":"md"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"accordion-items"),vue.createVNode(s,{cols:"12",lg:"3",xl:"2",class:"d-none d-lg-block","data-unique-id":"vs-footer-social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$T,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"d-block d-lg-none","data-unique-id":"vs-footer-mobile_social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3})]),_:3})]),vue.renderSlot(e.$slots,"default")])}const Footer=LoadingSpinner._export_sfc(_sfc_main$1y,[["render",_sfc_render$1h]]),_sfc_main$1x={name:"VsFooterAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionItem},props:{controlId:{type:String,required:!0},itemBreakPoint:{type:String,default:e=>e.breakPoint,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},title:{type:String,required:!0},variant:{type:String,default:"primary"}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-footer-${e}`}}};function _sfc_render$1g(e,n,t,a,r,o){const s=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-footer-accordion-item mb-md-150","data-test":"vs-footer-accordion-item","data-unique-id":o.getUniqueId,"control-id":t.controlId,"item-break-point":t.itemBreakPoint,"open-by-default":t.openByDefault,variant:t.variant},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open")]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed")]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["data-unique-id","control-id","item-break-point","open-by-default","variant"])}const FooterAccordionItem=LoadingSpinner._export_sfc(_sfc_main$1x,[["render",_sfc_render$1g]]),_sfc_main$1w={name:"VsFooterNavListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},linkText:{type:String,default:""}}},_hoisted_1$1a={class:"vs-footer-nav-list-item","data-test":"vs-footer-nav-list-item",role:"menuitem"};function _sfc_render$1f(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$1a,[vue.createVNode(s,{href:t.href,type:t.type,variant:"on-dark","data-test":"vs-footer-nav-list-item__link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkText),1)]),_:1},8,["href","type"])])}const FooterNavListItem=LoadingSpinner._export_sfc(_sfc_main$1w,[["render",_sfc_render$1f]]),_sfc_main$1v={name:"VsList",status:"prototype",release:"0.0.1",props:{ordered:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}}};function _sfc_render$1e(e,n,t,a,r,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.ordered?"ol":"ul"),vue.mergeProps({class:["vs-list",{"vs-list--unstyled":t.unstyled,"vs-list--inline":t.inline,"vs-list--ordered":t.ordered}]},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["class"])}const VsList=LoadingSpinner._export_sfc(_sfc_main$1v,[["render",_sfc_render$1e]]),_sfc_main$1u={name:"VsFooterSocialMenu",status:"prototype",release:"0.0.1",components:{VsList,VsHeading:LoadingSpinner.VsHeading}},_hoisted_1$19={class:"vs-footer-social-menu px-0 py-150 py-md-200 py-lg-0 px-lg-075","data-test":"vs-footer-social-menu"};function _sfc_render$1d(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$19,[vue.createVNode(s,{level:"2","heading-style":"heading-xxs",class:"vs-footer-social-menu__title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3}),vue.createVNode(i,{unstyled:"",class:"mt-125 mt-md-0 mt-lg-125 pe-lg-400 pe-xl-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const FooterSocialMenu=LoadingSpinner._export_sfc(_sfc_main$1u,[["render",_sfc_render$1d]]),_sfc_main$1t={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,required:!0},icon:{type:String,required:!0},ariaLabelOverride:{type:String,default:""}}},_hoisted_1$18={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function _sfc_render$1c(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$18,[vue.createVNode(i,{"data-test":"vs-footer-social-item__link",href:t.href,type:"external","aria-label":t.ariaLabelOverride?t.ariaLabelOverride:t.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:vue.withCtx(()=>[vue.createVNode(s,{icon:t.icon,variant:"inverse",size:"sm"},null,8,["icon"])]),_:1},8,["href","aria-label"])])}const FooterSocialItem=LoadingSpinner._export_sfc(_sfc_main$1t,[["render",_sfc_render$1c]]),_sfc_main$1s={name:"VsFooterUtilityList",status:"prototype",release:"0.0.1",components:{VsList,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol}},_hoisted_1$17={class:"vs-footer-utility-list","data-test":"vs-footer-utility-list","data-unique-id":"vs-footer-utility_links"};function _sfc_render$1b(e,n,t,a,r,o){const s=vue.resolveComponent("VsList"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$17,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",sm:"7",md:"12"},{default:vue.withCtx(()=>[vue.createVNode(s,{unstyled:"",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})])}const FooterUtilityList=LoadingSpinner._export_sfc(_sfc_main$1s,[["render",_sfc_render$1b]]);function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dist$3={exports:{}},interopRequireDefault={exports:{}};(function(e){function n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function n(t,a){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(a.indexOf(o)!==-1)continue;r[o]=t[o]}return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var path$2={exports:{}},util$3={},isBufferBrowser$1,hasRequiredIsBufferBrowser$1;function requireIsBufferBrowser$1(){return hasRequiredIsBufferBrowser$1||(hasRequiredIsBufferBrowser$1=1,isBufferBrowser$1=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),isBufferBrowser$1}var inherits_browser$1={exports:{}},hasRequiredInherits_browser$1;function requireInherits_browser$1(){return hasRequiredInherits_browser$1||(hasRequiredInherits_browser$1=1,typeof Object.create=="function"?inherits_browser$1.exports=function(n,t){n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(n,t){n.super_=t;var a=function(){};a.prototype=t.prototype,n.prototype=new a,n.prototype.constructor=n}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var n={},t=/%[sdj%]/g;e.format=function(C){if(!S(C)){for(var E=[],T=0;T<arguments.length;T++)E.push(o(arguments[T]));return E.join(" ")}for(var T=1,z=arguments,Y=z.length,w=String(C).replace(t,function(N){if(N==="%%")return"%";if(T>=Y)return N;switch(N){case"%s":return String(z[T++]);case"%d":return Number(z[T++]);case"%j":try{return JSON.stringify(z[T++])}catch{return"[Circular]"}default:return N}}),B=z[T];T<Y;B=z[++T])_(B)||!$(B)?w+=" "+B:w+=" "+o(B);return w},e.deprecate=function(C,E){if(V(LoadingSpinner.commonjsGlobal.process))return function(){return e.deprecate(C,E).apply(this,arguments)};if(process.noDeprecation===!0)return C;var T=!1;function z(){if(!T){if(process.throwDeprecation)throw new Error(E);process.traceDeprecation?console.trace(E):console.error(E),T=!0}return C.apply(this,arguments)}return z};var a={},r;e.debuglog=function(C){if(V(r)&&(r=n.NODE_DEBUG||""),C=C.toUpperCase(),!a[C])if(new RegExp("\\b"+C+"\\b","i").test(r)){var E=process.pid;a[C]=function(){var T=e.format.apply(e,arguments);console.error("%s %d: %s",C,E,T)}}else a[C]=function(){};return a[C]};function o(C,E){var T={seen:[],stylize:i};return arguments.length>=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),m(E)?T.showHidden=E:E&&e._extend(T,E),V(T.showHidden)&&(T.showHidden=!1),V(T.depth)&&(T.depth=2),V(T.colors)&&(T.colors=!1),V(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=s),u(T,C,T.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(C,E){var T=o.styles[E];return T?"\x1B["+o.colors[T][0]+"m"+C+"\x1B["+o.colors[T][1]+"m":C}function i(C,E){return C}function l(C){var E={};return C.forEach(function(T,z){E[T]=!0}),E}function u(C,E,T){if(C.customInspect&&E&&P(E.inspect)&&E.inspect!==e.inspect&&!(E.constructor&&E.constructor.prototype===E)){var z=E.inspect(T,C);return S(z)||(z=u(C,z,T)),z}var Y=c(C,E);if(Y)return Y;var w=Object.keys(E),B=l(w);if(C.showHidden&&(w=Object.getOwnPropertyNames(E)),F(E)&&(w.indexOf("message")>=0||w.indexOf("description")>=0))return d(E);if(w.length===0){if(P(E)){var N=E.name?": "+E.name:"";return C.stylize("[Function"+N+"]","special")}if(L(E))return C.stylize(RegExp.prototype.toString.call(E),"regexp");if(A(E))return C.stylize(Date.prototype.toString.call(E),"date");if(F(E))return d(E)}var D="",I=!1,R=["{","}"];if(h(E)&&(I=!0,R=["[","]"]),P(E)){var H=E.name?": "+E.name:"";D=" [Function"+H+"]"}if(L(E)&&(D=" "+RegExp.prototype.toString.call(E)),A(E)&&(D=" "+Date.prototype.toUTCString.call(E)),F(E)&&(D=" "+d(E)),w.length===0&&(!I||E.length==0))return R[0]+D+R[1];if(T<0)return L(E)?C.stylize(RegExp.prototype.toString.call(E),"regexp"):C.stylize("[Object]","special");C.seen.push(E);var U;return I?U=f(C,E,T,B,w):U=w.map(function(G){return v(C,E,T,B,G,I)}),C.seen.pop(),p(U,D,R)}function c(C,E){if(V(E))return C.stylize("undefined","undefined");if(S(E)){var T="'"+JSON.stringify(E).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return C.stylize(T,"string")}if(b(E))return C.stylize(""+E,"number");if(m(E))return C.stylize(""+E,"boolean");if(_(E))return C.stylize("null","null")}function d(C){return"["+Error.prototype.toString.call(C)+"]"}function f(C,E,T,z,Y){for(var w=[],B=0,N=E.length;B<N;++B)W(E,String(B))?w.push(v(C,E,T,z,String(B),!0)):w.push("");return Y.forEach(function(D){D.match(/^\d+$/)||w.push(v(C,E,T,z,D,!0))}),w}function v(C,E,T,z,Y,w){var B,N,D;if(D=Object.getOwnPropertyDescriptor(E,Y)||{value:E[Y]},D.get?D.set?N=C.stylize("[Getter/Setter]","special"):N=C.stylize("[Getter]","special"):D.set&&(N=C.stylize("[Setter]","special")),W(z,Y)||(B="["+Y+"]"),N||(C.seen.indexOf(D.value)<0?(_(T)?N=u(C,D.value,null):N=u(C,D.value,T-1),N.indexOf(`
|
|
151
151
|
`)>-1&&(w?N=N.split(`
|
|
152
152
|
`).map(function(I){return" "+I}).join(`
|
|
153
153
|
`).substr(2):N=`
|
|
@@ -156,24 +156,24 @@
|
|
|
156
156
|
`))):N=C.stylize("[Circular]","special")),V(B)){if(w&&Y.match(/^\d+$/))return N;B=JSON.stringify(""+Y),B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),B=C.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=C.stylize(B,"string"))}return B+": "+N}function p(C,E,T){var z=C.reduce(function(Y,w){return w.indexOf(`
|
|
157
157
|
`)>=0,Y+w.replace(/\u001b\[\d\d?m/g,"").length+1},0);return z>60?T[0]+(E===""?"":E+`
|
|
158
158
|
`)+" "+C.join(`,
|
|
159
|
-
`)+" "+T[1]:T[0]+E+" "+C.join(", ")+" "+T[1]}function h(C){return Array.isArray(C)}e.isArray=h;function g(C){return typeof C=="boolean"}e.isBoolean=g;function m(C){return C===null}e.isNull=m;function _(C){return C==null}e.isNullOrUndefined=_;function b(C){return typeof C=="number"}e.isNumber=b;function S(C){return typeof C=="string"}e.isString=S;function k(C){return typeof C=="symbol"}e.isSymbol=k;function V(C){return C===void 0}e.isUndefined=V;function L(C){return $(C)&&M(C)==="[object RegExp]"}e.isRegExp=L;function $(C){return typeof C=="object"&&C!==null}e.isObject=$;function A(C){return $(C)&&M(C)==="[object Date]"}e.isDate=A;function F(C){return $(C)&&(M(C)==="[object Error]"||C instanceof Error)}e.isError=F;function P(C){return typeof C=="function"}e.isFunction=P;function q(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||typeof C=="symbol"||typeof C>"u"}e.isPrimitive=q,e.isBuffer=requireIsBufferBrowser$1();function M(C){return Object.prototype.toString.call(C)}function j(C){return C<10?"0"+C.toString(10):C.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J(){var C=new Date,E=[j(C.getHours()),j(C.getMinutes()),j(C.getSeconds())].join(":");return[C.getDate(),Q[C.getMonth()],E].join(" ")}e.log=function(){console.log("%s - %s",J(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(C,E){if(!E||!$(E))return C;for(var T=Object.keys(E),z=T.length;z--;)C[T[z]]=E[T[z]];return C};function W(C,E){return Object.prototype.hasOwnProperty.call(C,E)}}(util$3)),util$3}var hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$2.exports;hasRequiredPath=1;var e={},n=requireUtil$1();function t(v,p){for(var h=[],g=0;g<v.length;g++){var m=v[g];!m||m==="."||(m===".."?h.length&&h[h.length-1]!==".."?h.pop():p&&h.push(".."):h.push(m))}return h}function a(v){for(var p=v.length-1,h=0;h<=p&&!v[h];h++);for(var g=p;g>=0&&!v[g];g--);return h===0&&g===p?v:h>g?[]:v.slice(h,g+1)}var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={};function i(v){var p=r.exec(v),h=(p[1]||"")+(p[2]||""),g=p[3]||"",m=o.exec(g),_=m[1],b=m[2],S=m[3];return[h,_,b,S]}function l(v){var p=r.exec(v),h=p[1]||"",g=!!h&&h[1]!==":";return{device:h,isUnc:g,isAbsolute:g||!!p[2],tail:p[3]}}function u(v){return"\\\\"+v.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}s.resolve=function(){for(var v="",p="",h=!1,g=arguments.length-1;g>=-1;g--){var m;if(g>=0?m=arguments[g]:v?(m=e["="+v],(!m||m.substr(0,3).toLowerCase()!==v.toLowerCase()+"\\")&&(m=v+"\\")):m=process.cwd(),n.isString(m)){if(!m)continue}else throw new TypeError("Arguments to path.resolve must be strings");var _=l(m),b=_.device,S=_.isUnc,k=_.isAbsolute,V=_.tail;if(!(b&&v&&b.toLowerCase()!==v.toLowerCase())&&(v||(v=b),h||(p=V+"\\"+p,h=k),v&&h))break}return S&&(v=u(v)),p=t(p.split(/[\\\/]+/),!h).join("\\"),v+(h?"\\":"")+p||"."},s.normalize=function(v){var p=l(v),h=p.device,g=p.isUnc,m=p.isAbsolute,_=p.tail,b=/[\\\/]$/.test(_);return _=t(_.split(/[\\\/]+/),!m).join("\\"),!_&&!m&&(_="."),_&&b&&(_+="\\"),g&&(h=u(h)),h+(m?"\\":"")+_},s.isAbsolute=function(v){return l(v).isAbsolute},s.join=function(){for(var v=[],p=0;p<arguments.length;p++){var h=arguments[p];if(!n.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&v.push(h)}var g=v.join("\\");return/^[\\\/]{2}[^\\\/]/.test(v[0])||(g=g.replace(/^[\\\/]{2,}/,"\\")),s.normalize(g)},s.relative=function(v,p){v=s.resolve(v),p=s.resolve(p);for(var h=v.toLowerCase(),g=p.toLowerCase(),m=a(p.split("\\")),_=a(h.split("\\")),b=a(g.split("\\")),S=Math.min(_.length,b.length),k=S,V=0;V<S;V++)if(_[V]!==b[V]){k=V;break}if(k==0)return p;for(var L=[],V=k;V<_.length;V++)L.push("..");return L=L.concat(m.slice(k)),L.join("\\")},s._makeLong=function(v){if(!n.isString(v))return v;if(!v)return"";var p=s.resolve(v);return/^[a-zA-Z]\:\\/.test(p)?"\\\\?\\"+p:/^\\\\[^?.]/.test(p)?"\\\\?\\UNC\\"+p.substring(2):v},s.dirname=function(v){var p=i(v),h=p[0],g=p[1];return!h&&!g?".":(g&&(g=g.substr(0,g.length-1)),h+g)},s.basename=function(v,p){var h=i(v)[2];return p&&h.substr(-1*p.length)===p&&(h=h.substr(0,h.length-p.length)),h},s.extname=function(v){return i(v)[3]},s.format=function(v){if(!n.isObject(v))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof v);var p=v.root||"";if(!n.isString(p))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof v.root);var h=v.dir,g=v.base||"";return h?h[h.length-1]===s.sep?h+g:h+s.sep+g:g},s.parse=function(v){if(!n.isString(v))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof v);var p=i(v);if(!p||p.length!==4)throw new TypeError("Invalid path '"+v+"'");return{root:p[0],dir:p[0]+p[1].slice(0,-1),base:p[2],ext:p[3],name:p[2].slice(0,p[2].length-p[3].length)}},s.sep="\\",s.delimiter=";";var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d={};function f(v){return c.exec(v).slice(1)}return d.resolve=function(){for(var v="",p=!1,h=arguments.length-1;h>=-1&&!p;h--){var g=h>=0?arguments[h]:process.cwd();if(n.isString(g)){if(!g)continue}else throw new TypeError("Arguments to path.resolve must be strings");v=g+"/"+v,p=g[0]==="/"}return v=t(v.split("/"),!p).join("/"),(p?"/":"")+v||"."},d.normalize=function(v){var p=d.isAbsolute(v),h=v&&v[v.length-1]==="/";return v=t(v.split("/"),!p).join("/"),!v&&!p&&(v="."),v&&h&&(v+="/"),(p?"/":"")+v},d.isAbsolute=function(v){return v.charAt(0)==="/"},d.join=function(){for(var v="",p=0;p<arguments.length;p++){var h=arguments[p];if(!n.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&(v?v+="/"+h:v+=h)}return d.normalize(v)},d.relative=function(v,p){v=d.resolve(v).substr(1),p=d.resolve(p).substr(1);for(var h=a(v.split("/")),g=a(p.split("/")),m=Math.min(h.length,g.length),_=m,b=0;b<m;b++)if(h[b]!==g[b]){_=b;break}for(var S=[],b=_;b<h.length;b++)S.push("..");return S=S.concat(g.slice(_)),S.join("/")},d._makeLong=function(v){return v},d.dirname=function(v){var p=f(v),h=p[0],g=p[1];return!h&&!g?".":(g&&(g=g.substr(0,g.length-1)),h+g)},d.basename=function(v,p){var h=f(v)[2];return p&&h.substr(-1*p.length)===p&&(h=h.substr(0,h.length-p.length)),h},d.extname=function(v){return f(v)[3]},d.format=function(v){if(!n.isObject(v))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof v);var p=v.root||"";if(!n.isString(p))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof v.root);var h=v.dir?v.dir+d.sep:"",g=v.base||"";return h+g},d.parse=function(v){if(!n.isString(v))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof v);var p=f(v);if(!p||p.length!==4)throw new TypeError("Invalid path '"+v+"'");return p[1]=p[1]||"",p[2]=p[2]||"",p[3]=p[3]||"",{root:p[0],dir:p[0]+p[1].slice(0,-1),base:p[2],ext:p[3],name:p[2].slice(0,p[2].length-p[3].length)}},d.sep="/",d.delimiter=":",path$2.exports=d,path$2.exports.posix=d,path$2.exports.win32=s,path$2.exports}var homedir,hasRequiredHomedir;function requireHomedir(){if(hasRequiredHomedir)return homedir;hasRequiredHomedir=1;var e={},n=LoadingSpinner.require$$0;return homedir=n.homedir||function(){var a=e.HOME,r=e.LOGNAME||e.USER||e.LNAME||e.USERNAME;return a||(()=>-1()===0?"/root":r?"/home/"+r:null)},homedir}var caller,hasRequiredCaller;function requireCaller(){return hasRequiredCaller||(hasRequiredCaller=1,caller=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,a){return a};var n=new Error().stack;return Error.prepareStackTrace=e,n[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,n={};function t(s){return e.exec(s).slice(1)}n.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=t(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0]===i[1]?i[0]:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};var a=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,r={};function o(s){return a.exec(s).slice(1)}return r.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=o(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}},pathParse.exports=r.parse,pathParse.exports.posix=r.parse,pathParse.exports.win32=n.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),n=e.parse||requirePathParse(),t=function(r,o){var s="/";/^([A-Za-z]:)/.test(r)?s="":/^\\\\/.test(r)&&(s="\\\\");for(var i=[r],l=n(r);l.dir!==i[i.length-1];)i.push(l.dir),l=n(l.dir);return i.reduce(function(u,c){return u.concat(o.map(function(d){return e.resolve(s,c,d)}))},[])};return nodeModulesPaths=function(r,o,s){var i=o&&o.moduleDirectory?[].concat(o.moduleDirectory):["node_modules"];if(o&&typeof o.paths=="function")return o.paths(s,r,function(){return t(r,i)},o);var l=t(r,i);return o&&o.paths?l.concat(o.paths):l},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={};const n=requirePath();return normalizeOptions=function(t,a){if(a=a||{},a.forceNodeResolution||!e.pnp)return a;const{findPnpApi:r}=LoadingSpinner.require$$0,o=(d,f)=>{const v=d.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!v)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${d}")`);f.charAt(f.length-1)!=="/"&&(f=n.join(f,"/"));const p=r(f);if(p===null)return;let h;try{h=p.resolveToUnqualified(`${v[1]}/package.json`,f,{considerBuiltins:!1})}catch{return null}if(h===null)throw new Error(`Assertion failed: The resolution thinks that "${v[1]}" is a Node builtin`);const g=n.dirname(h),m=typeof v[2]<"u"?n.join(g,v[2]):g;return{packagePath:g,unqualifiedPath:m}},s=(d,f)=>{for(let v=0;v<f.length;v++){const p=o(d,f[v]);if(p||v===f.length-1)return p}return null},i=Array.isArray(a.paths)?a.paths:[],l=(d,f,v,p)=>{const h=[f].concat(i),g=s(d,h);return g==null?v():[g.unqualifiedPath]},u=(d,f,v,p)=>{const h=[f].concat(i),g=s(d,h);if(g==null)return v().concat(i);let m=n.dirname(g.packagePath);return d.match(/^@[^/]+\//)&&(m=n.dirname(m)),[m]};let c=!1;return a.__skipPackageIterator||(a.packageIterator=function(d,f,v,p){c=!0;try{return l(d,f,v,p)}finally{c=!1}}),a.paths=function(d,f,v,p){return c?v().concat(i):u(d,f,v)},a},normalizeOptions}const assert$1=!0,async_hooks$1=">= 8",buffer_ieee754$1=">= 0.5 && < 0.9.7",buffer$1=!0,child_process$1=!0,cluster$1=">= 0.5",console$2=!0,constants$1=!0,crypto$1=!0,_debug_agent$1=">= 1 && < 8",_debugger$1="< 8",dgram$1=!0,diagnostics_channel$1=[">= 14.17 && < 15",">= 15.1"],dns$1=!0,domain$1=">= 0.7.12",events$1=!0,freelist$1="< 6",fs$1=!0,_http_agent$1=">= 0.11.1",_http_client$1=">= 0.11.1",_http_common$1=">= 0.11.1",_http_incoming$1=">= 0.11.1",_http_outgoing$1=">= 0.11.1",_http_server$1=">= 0.11.1",http$1=!0,http2$1=">= 8.8",https$1=!0,inspector$1=">= 8",_linklist$1="< 8",module$2=!0,net$1=!0,os$1=!0,path$1=!0,perf_hooks$1=">= 8.5",process$2=">= 1",punycode$1=">= 0.5",querystring$1=!0,readline$1=!0,repl$1=!0,smalloc$1=">= 0.11.5 && < 3",_stream_duplex$1=">= 0.9.4",_stream_transform$1=">= 0.9.4",_stream_wrap$1=">= 1.4.1",_stream_passthrough$1=">= 0.9.4",_stream_readable$1=">= 0.9.4",_stream_writable$1=">= 0.9.4",stream$1=!0,string_decoder$1=!0,sys$1=[">= 0.4 && < 0.7",">= 0.8"],timers$1=!0,_tls_common$1=">= 0.11.13",_tls_legacy$1=">= 0.11.3 && < 10",_tls_wrap$1=">= 0.11.3",tls$1=!0,trace_events$1=">= 10",tty$1=!0,url$1=!0,util$2=!0,v8$1=">= 1",vm$1=!0,wasi$1=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads$1=">= 11.7",zlib$1=">= 0.5",require$$1$1={assert:assert$1,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:async_hooks$1,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:buffer_ieee754$1,buffer:buffer$1,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:child_process$1,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:cluster$1,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$2,"node:console":[">= 14.18 && < 15",">= 16"],constants:constants$1,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:crypto$1,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_debug_agent$1,_debugger:_debugger$1,dgram:dgram$1,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:diagnostics_channel$1,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:dns$1,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:domain$1,"node:domain":[">= 14.18 && < 15",">= 16"],events:events$1,"node:events":[">= 14.18 && < 15",">= 16"],freelist:freelist$1,fs:fs$1,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_http_agent$1,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_http_client$1,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:_http_common$1,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:_http_incoming$1,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:_http_outgoing$1,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:_http_server$1,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:http$1,"node:http":[">= 14.18 && < 15",">= 16"],http2:http2$1,"node:http2":[">= 14.18 && < 15",">= 16"],https:https$1,"node:https":[">= 14.18 && < 15",">= 16"],inspector:inspector$1,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:_linklist$1,module:module$2,"node:module":[">= 14.18 && < 15",">= 16"],net:net$1,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:os$1,"node:os":[">= 14.18 && < 15",">= 16"],path:path$1,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:perf_hooks$1,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$2,"node:process":[">= 14.18 && < 15",">= 16"],punycode:punycode$1,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:querystring$1,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:readline$1,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:repl$1,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:smalloc$1,"node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:_stream_duplex$1,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:_stream_transform$1,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:_stream_wrap$1,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:_stream_passthrough$1,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:_stream_readable$1,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:_stream_writable$1,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:stream$1,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:string_decoder$1,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:sys$1,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:timers$1,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:_tls_common$1,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:_tls_legacy$1,_tls_wrap:_tls_wrap$1,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:tls$1,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:trace_events$1,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tty$1,"node:tty":[">= 14.18 && < 15",">= 16"],url:url$1,"node:url":[">= 14.18 && < 15",">= 16"],util:util$2,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:v8$1,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vm$1,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:wasi$1,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:worker_threads$1,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:zlib$1,"node:zlib":[">= 14.18 && < 15",">= 16"]};var isCoreModule,hasRequiredIsCoreModule;function requireIsCoreModule(){if(hasRequiredIsCoreModule)return isCoreModule;hasRequiredIsCoreModule=1;var e={node:"20.19.5",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.5",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.16",simdutf:"6.4.2",tz:"2025b",undici:"6.21.2",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.30",zlib:"1.3.1-470d3a2"},n=LoadingSpinner.requireHasown();function t(s,i){for(var l=s.split("."),u=i.split(" "),c=u.length>1?u[0]:"=",d=(u.length>1?u[1]:u[0]).split("."),f=0;f<3;++f){var v=parseInt(l[f]||0,10),p=parseInt(d[f]||0,10);if(v!==p)return c==="<"?v<p:c===">="?v>=p:!1}return c===">="}function a(s,i){var l=i.split(/ ?&& ?/);if(l.length===0)return!1;for(var u=0;u<l.length;++u)if(!t(s,l[u]))return!1;return!0}function r(s,i){if(typeof i=="boolean")return i;var l=typeof s>"u"?e&&e.node:s;if(typeof l!="string")throw new TypeError(typeof s>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(i&&typeof i=="object"){for(var u=0;u<i.length;++u)if(a(l,i[u]))return!0;return!1}return a(l,i)}var o=require$$1$1;return isCoreModule=function(i,l){return n(o,i)&&r(l,o[i])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=LoadingSpinner.require$$0,n=requireHomedir(),t=requirePath(),a=requireCaller(),r=requireNodeModulesPaths(),o=requireNormalizeOptions(),s=requireIsCoreModule(),i=e.realpath&&typeof e.realpath.native=="function"?e.realpath.native:e.realpath,l=n(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(m,_){e.stat(m,function(b,S){return b?b.code==="ENOENT"||b.code==="ENOTDIR"?_(null,!1):_(b):_(null,S.isFile()||S.isFIFO())})},d=function(m,_){e.stat(m,function(b,S){return b?b.code==="ENOENT"||b.code==="ENOTDIR"?_(null,!1):_(b):_(null,S.isDirectory())})},f=function(m,_){i(m,function(b,S){b&&b.code!=="ENOENT"?_(b):_(null,b?m:S)})},v=function(m,_,b,S){b&&b.preserveSymlinks===!1?m(_,S):S(null,_)},p=function(m,_,b){m(_,function(S,k){if(S)b(S);else try{var V=JSON.parse(k);b(null,V)}catch{b(null)}})},h=function(m,_,b){for(var S=r(_,b,m),k=0;k<S.length;k++)S[k]=t.join(S[k],m);return S};return async=function(m,_,b){var S=b,k=_;if(typeof _=="function"&&(S=k,k={}),typeof m!="string"){var V=new TypeError("Path must be a string.");return process.nextTick(function(){S(V)})}k=o(m,k);var L=k.isFile||c,$=k.isDirectory||d,A=k.readFile||e.readFile,F=k.realpath||f,P=k.readPackage||p;if(k.readFile&&k.readPackage){var q=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){S(q)})}var M=k.packageIterator,j=k.extensions||[".js"],Q=k.includeCoreModules!==!1,J=k.basedir||t.dirname(a()),W=k.filename||J;k.paths=k.paths||u();var C=t.resolve(J);v(F,C,k,function(I,R){I?S(I):T(R)});var E;function T(I){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(m))E=t.resolve(I,m),(m==="."||m===".."||m.slice(-1)==="/")&&(E+="/"),/\/$/.test(m)&&E===I?B(E,k.package,z):Y(E,k.package,z);else{if(Q&&s(m))return S(null,m);D(m,I,function(R,H,U){if(R)S(R);else{if(H)return v(F,H,k,function(Z,X){Z?S(Z):S(null,X,U)});var G=new Error("Cannot find module '"+m+"' from '"+W+"'");G.code="MODULE_NOT_FOUND",S(G)}})}}function z(I,R,H){I?S(I):R?S(null,R,H):B(E,function(U,G,Z){if(U)S(U);else if(G)v(F,G,k,function(ee,te){ee?S(ee):S(null,te,Z)});else{var X=new Error("Cannot find module '"+m+"' from '"+W+"'");X.code="MODULE_NOT_FOUND",S(X)}})}function Y(I,R,H){var U=R,G=H;typeof U=="function"&&(G=U,U=void 0);var Z=[""].concat(j);X(Z,I,U);function X(ee,te,ne){if(ee.length===0)return G(null,void 0,ne);var oe=te+ee[0],ae=ne;ae?O(null,ae):w(t.dirname(oe),O);function O(se,ue,ie){if(ae=ue,se)return G(se);if(ie&&ae&&k.pathFilter){var de=t.relative(ie,oe),fe=de.slice(0,de.length-ee[0].length),ce=k.pathFilter(ae,te,fe);if(ce)return X([""].concat(j.slice()),t.resolve(ie,ce),ae)}L(oe,le)}function le(se,ue){if(se)return G(se);if(ue)return G(null,oe,ae);X(ee.slice(1),te,ae)}}}function w(I,R){if(I===""||I==="/"||/[/\\]node_modules[/\\]*$/.test(I))return R(null);v(F,I,k,function(H,U){if(H)return w(t.dirname(I),R);var G=t.join(U,"package.json");L(G,function(Z,X){if(!X)return w(t.dirname(I),R);P(A,G,function(ee,te){ee&&R(ee);var ne=te;ne&&k.packageFilter&&(ne=k.packageFilter(ne,G)),R(null,ne,I)})})})}function B(I,R,H){var U=H,G=R;typeof G=="function"&&(U=G,G=k.package),v(F,I,k,function(Z,X){if(Z)return U(Z);var ee=t.join(X,"package.json");L(ee,function(te,ne){if(te)return U(te);if(!ne)return Y(t.join(I,"index"),G,U);P(A,ee,function(oe,ae){if(oe)return U(oe);var O=ae;if(O&&k.packageFilter&&(O=k.packageFilter(O,ee)),O&&O.main){if(typeof O.main!="string"){var le=new TypeError("package “"+O.name+"” `main` must be a string");return le.code="INVALID_PACKAGE_MAIN",U(le)}(O.main==="."||O.main==="./")&&(O.main="index"),Y(t.resolve(I,O.main),O,function(se,ue,ie){if(se)return U(se);if(ue)return U(null,ue,ie);if(!ie)return Y(t.join(I,"index"),ie,U);var de=t.resolve(I,ie.main);B(de,ie,function(fe,ce,ve){if(fe)return U(fe);if(ce)return U(null,ce,ve);Y(t.join(I,"index"),ve,U)})});return}Y(t.join(I,"/index"),O,U)})})})}function N(I,R){if(R.length===0)return I(null,void 0);var H=R[0];$(t.dirname(H),U);function U(X,ee){if(X)return I(X);if(!ee)return N(I,R.slice(1));Y(H,k.package,G)}function G(X,ee,te){if(X)return I(X);if(ee)return I(null,ee,te);B(H,k.package,Z)}function Z(X,ee,te){if(X)return I(X);if(ee)return I(null,ee,te);N(I,R.slice(1))}}function D(I,R,H){var U=function(){return h(I,R,k)};N(H,M?M(I,R,U,k):U())}},async}const assert=!0,async_hooks=">= 8",buffer_ieee754=">= 0.5 && < 0.9.7",buffer=!0,child_process=!0,cluster=">= 0.5",console$1=!0,constants=!0,crypto=!0,_debug_agent=">= 1 && < 8",_debugger="< 8",dgram=!0,diagnostics_channel=[">= 14.17 && < 15",">= 15.1"],dns=!0,domain=">= 0.7.12",events=!0,freelist="< 6",fs=!0,_http_agent=">= 0.11.1",_http_client=">= 0.11.1",_http_common=">= 0.11.1",_http_incoming=">= 0.11.1",_http_outgoing=">= 0.11.1",_http_server=">= 0.11.1",http=!0,http2=">= 8.8",https=!0,inspector=">= 8",_linklist="< 8",module$1=!0,net=!0,os=!0,path=!0,perf_hooks=">= 8.5",process$1=">= 1",punycode=">= 0.5",querystring=!0,readline=!0,repl=!0,smalloc=">= 0.11.5 && < 3",_stream_duplex=">= 0.9.4",_stream_transform=">= 0.9.4",_stream_wrap=">= 1.4.1",_stream_passthrough=">= 0.9.4",_stream_readable=">= 0.9.4",_stream_writable=">= 0.9.4",stream=!0,string_decoder=!0,sys=[">= 0.4 && < 0.7",">= 0.8"],timers=!0,_tls_common=">= 0.11.13",_tls_legacy=">= 0.11.3 && < 10",_tls_wrap=">= 0.11.3",tls=!0,trace_events=">= 10",tty=!0,url=!0,util$1=!0,v8=">= 1",vm=!0,wasi=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads=">= 11.7",zlib=">= 0.5",require$$1={assert,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754,buffer,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$1,"node:console":[">= 14.18 && < 15",">= 16"],constants,"node:constants":[">= 14.18 && < 15",">= 16"],crypto,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent,_debugger,dgram,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain,"node:domain":[">= 14.18 && < 15",">= 16"],events,"node:events":[">= 14.18 && < 15",">= 16"],freelist,fs,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server,"node:_http_server":[">= 14.18 && < 15",">= 16"],http,"node:http":[">= 14.18 && < 15",">= 16"],http2,"node:http2":[">= 14.18 && < 15",">= 16"],https,"node:https":[">= 14.18 && < 15",">= 16"],inspector,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist,module:module$1,"node:module":[">= 14.18 && < 15",">= 16"],net,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os,"node:os":[">= 14.18 && < 15",">= 16"],path,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$1,"node:process":[">= 14.18 && < 15",">= 16"],punycode,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring,"node:querystring":[">= 14.18 && < 15",">= 16"],readline,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc,"node:sqlite":">= 23.4",_stream_duplex,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy,_tls_wrap,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty,"node:tty":[">= 14.18 && < 15",">= 16"],url,"node:url":[">= 14.18 && < 15",">= 16"],util:util$1,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8,"node:v8":[">= 14.18 && < 15",">= 16"],vm,"node:vm":[">= 14.18 && < 15",">= 16"],wasi,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib,"node:zlib":[">= 14.18 && < 15",">= 16"]};var core_1,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core_1;hasRequiredCore=1;var e=requireIsCoreModule(),n=require$$1,t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=e(a));return core_1=t,core_1}var isCore,hasRequiredIsCore;function requireIsCore(){if(hasRequiredIsCore)return isCore;hasRequiredIsCore=1;var e=requireIsCoreModule();return isCore=function(t){return e(t)},isCore}var sync,hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;var e=requireIsCoreModule(),n=LoadingSpinner.require$$0,t=requirePath(),a=requireHomedir(),r=requireCaller(),o=requireNodeModulesPaths(),s=requireNormalizeOptions(),i=n.realpathSync&&typeof n.realpathSync.native=="function"?n.realpathSync.native:n.realpathSync,l=a(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(m){try{var _=n.statSync(m,{throwIfNoEntry:!1})}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR"))return!1;throw b}return!!_&&(_.isFile()||_.isFIFO())},d=function(m){try{var _=n.statSync(m,{throwIfNoEntry:!1})}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR"))return!1;throw b}return!!_&&_.isDirectory()},f=function(m){try{return i(m)}catch(_){if(_.code!=="ENOENT")throw _}return m},v=function(m,_,b){return b&&b.preserveSymlinks===!1?m(_):_},p=function(m,_){var b=m(_);try{var S=JSON.parse(b);return S}catch{}},h=function(m,_,b){for(var S=o(_,b,m),k=0;k<S.length;k++)S[k]=t.join(S[k],m);return S};return sync=function(m,_){if(typeof m!="string")throw new TypeError("Path must be a string.");var b=s(m,_),S=b.isFile||c,k=b.readFileSync||n.readFileSync,V=b.isDirectory||d,L=b.realpathSync||f,$=b.readPackageSync||p;if(b.readFileSync&&b.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var A=b.packageIterator,F=b.extensions||[".js"],P=b.includeCoreModules!==!1,q=b.basedir||t.dirname(r()),M=b.filename||q;b.paths=b.paths||u();var j=v(L,t.resolve(q),b);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(m)){var Q=t.resolve(j,m);(m==="."||m===".."||m.slice(-1)==="/")&&(Q+="/");var J=E(Q)||z(Q);if(J)return v(L,J,b)}else{if(P&&e(m))return m;var W=Y(m,j);if(W)return v(L,W,b)}var C=new Error("Cannot find module '"+m+"' from '"+M+"'");throw C.code="MODULE_NOT_FOUND",C;function E(w){var B=T(t.dirname(w));if(B&&B.dir&&B.pkg&&b.pathFilter){var N=t.relative(B.dir,w),D=b.pathFilter(B.pkg,w,N);D&&(w=t.resolve(B.dir,D))}if(S(w))return w;for(var I=0;I<F.length;I++){var R=w+F[I];if(S(R))return R}}function T(w){if(!(w===""||w==="/")&&!/[/\\]node_modules[/\\]*$/.test(w)){var B=t.join(v(L,w,b),"package.json");if(!S(B))return T(t.dirname(w));var N=$(k,B);return N&&b.packageFilter&&(N=b.packageFilter(N,w)),{pkg:N,dir:w}}}function z(w){var B=t.join(v(L,w,b),"/package.json");if(S(B)){try{var N=$(k,B)}catch{}if(N&&b.packageFilter&&(N=b.packageFilter(N,w)),N&&N.main){if(typeof N.main!="string"){var D=new TypeError("package “"+N.name+"” `main` must be a string");throw D.code="INVALID_PACKAGE_MAIN",D}(N.main==="."||N.main==="./")&&(N.main="index");try{var I=E(t.resolve(w,N.main));if(I)return I;var R=z(t.resolve(w,N.main));if(R)return R}catch{}}}return E(t.join(w,"/index"))}function Y(w,B){for(var N=function(){return h(w,B,b)},D=A?A(w,B,N,b):N(),I=0;I<D.length;I++){var R=D[I];if(V(t.dirname(R))){var H=E(R);if(H)return H;var U=z(R);if(U)return U}}}},sync}var resolve,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve;hasRequiredResolve=1;var e=requireAsync();return e.core=requireCore(),e.isCore=requireIsCore(),e.sync=requireSync(),resolve=e,resolve}var dist$2={},Explorer={},ExplorerBase={},loaders={},resolveFrom={exports:{}},hasRequiredResolveFrom;function requireResolveFrom(){if(hasRequiredResolveFrom)return resolveFrom.exports;hasRequiredResolveFrom=1;const e=requirePath(),n=LoadingSpinner.require$$0,t=LoadingSpinner.require$$0,a=(r,o,s)=>{if(typeof r!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof r}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{r=t.realpathSync(r)}catch(u){if(u.code==="ENOENT")r=e.resolve(r);else{if(s)return null;throw u}}const i=e.join(r,"noop.js"),l=()=>n._resolveFilename(o,{id:i,filename:i,paths:n._nodeModulePaths(r)});if(s)try{return l()}catch{return null}return l()};return resolveFrom.exports=(r,o)=>a(r,o),resolveFrom.exports.silent=(r,o)=>a(r,o,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const n=Error.prepareStackTrace;Error.prepareStackTrace=(a,r)=>r;const t=new Error().stack.slice(1);return Error.prepareStackTrace=n,t};return callsites.exports=e,callsites.exports.default=e,callsites.exports}var parentModule,hasRequiredParentModule;function requireParentModule(){if(hasRequiredParentModule)return parentModule;hasRequiredParentModule=1;const e=requireCallsites();return parentModule=n=>{const t=e();if(!n)return t[2].getFileName();let a=!1;t.shift();for(const r of t){const o=r.getFileName();if(typeof o=="string"){if(o===n){a=!0;continue}if(o!=="module.js"&&a&&o!==n)return o}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),n=requireResolveFrom(),t=requireParentModule();return importFresh=a=>{if(typeof a!="string")throw new TypeError("Expected a string");const r=t(__filename),o=r?e.dirname(r):__dirname,s=n(o,a),i=require.cache[s];if(i&&i.parent){let u=i.parent.children.length;for(;u--;)i.parent.children[u].id===s&&i.parent.children.splice(u,1)}delete require.cache[s];const l=require.cache[r];return l===void 0||l.require===void 0?commonjsRequire(s):l.require(s)},importFresh}var util={},types={},isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=LoadingSpinner.requireShams()(),n=LoadingSpinner.callBound,t=n("Object.prototype.toString"),a=function(i){return e&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:t(i)==="[object Arguments]"},r=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&"length"in i&&typeof i.length=="number"&&i.length>=0&&t(i)!=="[object Array]"&&"callee"in i&&t(i.callee)==="[object Function]"},o=function(){return a(arguments)}();return a.isLegacyArguments=r,isArguments=o?a:r,isArguments}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var n=requireIsArguments(),t=LoadingSpinner.isGeneratorFunction,a=LoadingSpinner.whichTypedArray,r=LoadingSpinner.isTypedArray;function o(O){return O.call.bind(O)}var s=typeof BigInt<"u",i=typeof Symbol<"u",l=o(Object.prototype.toString),u=o(Number.prototype.valueOf),c=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(s)var f=o(BigInt.prototype.valueOf);if(i)var v=o(Symbol.prototype.valueOf);function p(O,le){if(typeof O!="object")return!1;try{return le(O),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=t,e.isTypedArray=r;function h(O){return typeof Promise<"u"&&O instanceof Promise||O!==null&&typeof O=="object"&&typeof O.then=="function"&&typeof O.catch=="function"}e.isPromise=h;function g(O){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(O):r(O)||w(O)}e.isArrayBufferView=g;function m(O){return a(O)==="Uint8Array"}e.isUint8Array=m;function _(O){return a(O)==="Uint8ClampedArray"}e.isUint8ClampedArray=_;function b(O){return a(O)==="Uint16Array"}e.isUint16Array=b;function S(O){return a(O)==="Uint32Array"}e.isUint32Array=S;function k(O){return a(O)==="Int8Array"}e.isInt8Array=k;function V(O){return a(O)==="Int16Array"}e.isInt16Array=V;function L(O){return a(O)==="Int32Array"}e.isInt32Array=L;function $(O){return a(O)==="Float32Array"}e.isFloat32Array=$;function A(O){return a(O)==="Float64Array"}e.isFloat64Array=A;function F(O){return a(O)==="BigInt64Array"}e.isBigInt64Array=F;function P(O){return a(O)==="BigUint64Array"}e.isBigUint64Array=P;function q(O){return l(O)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function M(O){return typeof Map>"u"?!1:q.working?q(O):O instanceof Map}e.isMap=M;function j(O){return l(O)==="[object Set]"}j.working=typeof Set<"u"&&j(new Set);function Q(O){return typeof Set>"u"?!1:j.working?j(O):O instanceof Set}e.isSet=Q;function J(O){return l(O)==="[object WeakMap]"}J.working=typeof WeakMap<"u"&&J(new WeakMap);function W(O){return typeof WeakMap>"u"?!1:J.working?J(O):O instanceof WeakMap}e.isWeakMap=W;function C(O){return l(O)==="[object WeakSet]"}C.working=typeof WeakSet<"u"&&C(new WeakSet);function E(O){return C(O)}e.isWeakSet=E;function T(O){return l(O)==="[object ArrayBuffer]"}T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer);function z(O){return typeof ArrayBuffer>"u"?!1:T.working?T(O):O instanceof ArrayBuffer}e.isArrayBuffer=z;function Y(O){return l(O)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function w(O){return typeof DataView>"u"?!1:Y.working?Y(O):O instanceof DataView}e.isDataView=w;var B=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(O){return l(O)==="[object SharedArrayBuffer]"}function D(O){return typeof B>"u"?!1:(typeof N.working>"u"&&(N.working=N(new B)),N.working?N(O):O instanceof B)}e.isSharedArrayBuffer=D;function I(O){return l(O)==="[object AsyncFunction]"}e.isAsyncFunction=I;function R(O){return l(O)==="[object Map Iterator]"}e.isMapIterator=R;function H(O){return l(O)==="[object Set Iterator]"}e.isSetIterator=H;function U(O){return l(O)==="[object Generator]"}e.isGeneratorObject=U;function G(O){return l(O)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=G;function Z(O){return p(O,u)}e.isNumberObject=Z;function X(O){return p(O,c)}e.isStringObject=X;function ee(O){return p(O,d)}e.isBooleanObject=ee;function te(O){return s&&p(O,f)}e.isBigIntObject=te;function ne(O){return i&&p(O,v)}e.isSymbolObject=ne;function oe(O){return Z(O)||X(O)||ee(O)||te(O)||ne(O)}e.isBoxedPrimitive=oe;function ae(O){return typeof Uint8Array<"u"&&(z(O)||D(O))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(O){Object.defineProperty(e,O,{enumerable:!1,value:function(){throw new Error(O+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var a=function(){};a.prototype=t.prototype,n.prototype=new a,n.prototype.constructor=n}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n={},t=Object.getOwnPropertyDescriptors||function(B){for(var N=Object.keys(B),D={},I=0;I<N.length;I++)D[N[I]]=Object.getOwnPropertyDescriptor(B,N[I]);return D},a=/%[sdj%]/g;e.format=function(w){if(!V(w)){for(var B=[],N=0;N<arguments.length;N++)B.push(i(arguments[N]));return B.join(" ")}for(var N=1,D=arguments,I=D.length,R=String(w).replace(a,function(U){if(U==="%%")return"%";if(N>=I)return U;switch(U){case"%s":return String(D[N++]);case"%d":return Number(D[N++]);case"%j":try{return JSON.stringify(D[N++])}catch{return"[Circular]"}default:return U}}),H=D[N];N<I;H=D[++N])b(H)||!F(H)?R+=" "+H:R+=" "+i(H);return R},e.deprecate=function(w,B){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,B).apply(this,arguments)};var N=!1;function D(){if(!N){if(process.throwDeprecation)throw new Error(B);process.traceDeprecation?console.trace(B):console.error(B),N=!0}return w.apply(this,arguments)}return D};var r={},o=/^$/;if(n.NODE_DEBUG){var s=n.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!r[w])if(o.test(w)){var B=process.pid;r[w]=function(){var N=e.format.apply(e,arguments);console.error("%s %d: %s",w,B,N)}}else r[w]=function(){};return r[w]};function i(w,B){var N={seen:[],stylize:u};return arguments.length>=3&&(N.depth=arguments[2]),arguments.length>=4&&(N.colors=arguments[3]),_(B)?N.showHidden=B:B&&e._extend(N,B),$(N.showHidden)&&(N.showHidden=!1),$(N.depth)&&(N.depth=2),$(N.colors)&&(N.colors=!1),$(N.customInspect)&&(N.customInspect=!0),N.colors&&(N.stylize=l),d(N,w,N.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(w,B){var N=i.styles[B];return N?"\x1B["+i.colors[N][0]+"m"+w+"\x1B["+i.colors[N][1]+"m":w}function u(w,B){return w}function c(w){var B={};return w.forEach(function(N,D){B[N]=!0}),B}function d(w,B,N){if(w.customInspect&&B&&M(B.inspect)&&B.inspect!==e.inspect&&!(B.constructor&&B.constructor.prototype===B)){var D=B.inspect(N,w);return V(D)||(D=d(w,D,N)),D}var I=f(w,B);if(I)return I;var R=Object.keys(B),H=c(R);if(w.showHidden&&(R=Object.getOwnPropertyNames(B)),q(B)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return v(B);if(R.length===0){if(M(B)){var U=B.name?": "+B.name:"";return w.stylize("[Function"+U+"]","special")}if(A(B))return w.stylize(RegExp.prototype.toString.call(B),"regexp");if(P(B))return w.stylize(Date.prototype.toString.call(B),"date");if(q(B))return v(B)}var G="",Z=!1,X=["{","}"];if(m(B)&&(Z=!0,X=["[","]"]),M(B)){var ee=B.name?": "+B.name:"";G=" [Function"+ee+"]"}if(A(B)&&(G=" "+RegExp.prototype.toString.call(B)),P(B)&&(G=" "+Date.prototype.toUTCString.call(B)),q(B)&&(G=" "+v(B)),R.length===0&&(!Z||B.length==0))return X[0]+G+X[1];if(N<0)return A(B)?w.stylize(RegExp.prototype.toString.call(B),"regexp"):w.stylize("[Object]","special");w.seen.push(B);var te;return Z?te=p(w,B,N,H,R):te=R.map(function(ne){return h(w,B,N,H,ne,Z)}),w.seen.pop(),g(te,G,X)}function f(w,B){if($(B))return w.stylize("undefined","undefined");if(V(B)){var N="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(N,"string")}if(k(B))return w.stylize(""+B,"number");if(_(B))return w.stylize(""+B,"boolean");if(b(B))return w.stylize("null","null")}function v(w){return"["+Error.prototype.toString.call(w)+"]"}function p(w,B,N,D,I){for(var R=[],H=0,U=B.length;H<U;++H)E(B,String(H))?R.push(h(w,B,N,D,String(H),!0)):R.push("");return I.forEach(function(G){G.match(/^\d+$/)||R.push(h(w,B,N,D,G,!0))}),R}function h(w,B,N,D,I,R){var H,U,G;if(G=Object.getOwnPropertyDescriptor(B,I)||{value:B[I]},G.get?G.set?U=w.stylize("[Getter/Setter]","special"):U=w.stylize("[Getter]","special"):G.set&&(U=w.stylize("[Setter]","special")),E(D,I)||(H="["+I+"]"),U||(w.seen.indexOf(G.value)<0?(b(N)?U=d(w,G.value,null):U=d(w,G.value,N-1),U.indexOf(`
|
|
159
|
+
`)+" "+T[1]:T[0]+E+" "+C.join(", ")+" "+T[1]}function h(C){return Array.isArray(C)}e.isArray=h;function m(C){return typeof C=="boolean"}e.isBoolean=m;function _(C){return C===null}e.isNull=_;function g(C){return C==null}e.isNullOrUndefined=g;function b(C){return typeof C=="number"}e.isNumber=b;function S(C){return typeof C=="string"}e.isString=S;function k(C){return typeof C=="symbol"}e.isSymbol=k;function V(C){return C===void 0}e.isUndefined=V;function L(C){return $(C)&&M(C)==="[object RegExp]"}e.isRegExp=L;function $(C){return typeof C=="object"&&C!==null}e.isObject=$;function A(C){return $(C)&&M(C)==="[object Date]"}e.isDate=A;function F(C){return $(C)&&(M(C)==="[object Error]"||C instanceof Error)}e.isError=F;function P(C){return typeof C=="function"}e.isFunction=P;function q(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||typeof C=="symbol"||typeof C>"u"}e.isPrimitive=q,e.isBuffer=requireIsBufferBrowser$1();function M(C){return Object.prototype.toString.call(C)}function j(C){return C<10?"0"+C.toString(10):C.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J(){var C=new Date,E=[j(C.getHours()),j(C.getMinutes()),j(C.getSeconds())].join(":");return[C.getDate(),Q[C.getMonth()],E].join(" ")}e.log=function(){console.log("%s - %s",J(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(C,E){if(!E||!$(E))return C;for(var T=Object.keys(E),z=T.length;z--;)C[T[z]]=E[T[z]];return C};function W(C,E){return Object.prototype.hasOwnProperty.call(C,E)}}(util$3)),util$3}var hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$2.exports;hasRequiredPath=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",EVENTS_API_URL:"https://i-api.visitscotland.com/events/search",CLUDO_API_KEY:"abba43e006424824befb855918e2b9db",CLUDO_CUSTOMER_ID:"623",CLUDO_ENGINE_ID:"14069",GOOGLE_MAPS_API_KEY:"AIzaSyDF_4LHHrXolwxJ0zCuHXSgkZgu2WcOy68"},n=requireUtil$1();function t(v,p){for(var h=[],m=0;m<v.length;m++){var _=v[m];!_||_==="."||(_===".."?h.length&&h[h.length-1]!==".."?h.pop():p&&h.push(".."):h.push(_))}return h}function a(v){for(var p=v.length-1,h=0;h<=p&&!v[h];h++);for(var m=p;m>=0&&!v[m];m--);return h===0&&m===p?v:h>m?[]:v.slice(h,m+1)}var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={};function i(v){var p=r.exec(v),h=(p[1]||"")+(p[2]||""),m=p[3]||"",_=o.exec(m),g=_[1],b=_[2],S=_[3];return[h,g,b,S]}function l(v){var p=r.exec(v),h=p[1]||"",m=!!h&&h[1]!==":";return{device:h,isUnc:m,isAbsolute:m||!!p[2],tail:p[3]}}function u(v){return"\\\\"+v.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}s.resolve=function(){for(var v="",p="",h=!1,m=arguments.length-1;m>=-1;m--){var _;if(m>=0?_=arguments[m]:v?(_=e["="+v],(!_||_.substr(0,3).toLowerCase()!==v.toLowerCase()+"\\")&&(_=v+"\\")):_=process.cwd(),n.isString(_)){if(!_)continue}else throw new TypeError("Arguments to path.resolve must be strings");var g=l(_),b=g.device,S=g.isUnc,k=g.isAbsolute,V=g.tail;if(!(b&&v&&b.toLowerCase()!==v.toLowerCase())&&(v||(v=b),h||(p=V+"\\"+p,h=k),v&&h))break}return S&&(v=u(v)),p=t(p.split(/[\\\/]+/),!h).join("\\"),v+(h?"\\":"")+p||"."},s.normalize=function(v){var p=l(v),h=p.device,m=p.isUnc,_=p.isAbsolute,g=p.tail,b=/[\\\/]$/.test(g);return g=t(g.split(/[\\\/]+/),!_).join("\\"),!g&&!_&&(g="."),g&&b&&(g+="\\"),m&&(h=u(h)),h+(_?"\\":"")+g},s.isAbsolute=function(v){return l(v).isAbsolute},s.join=function(){for(var v=[],p=0;p<arguments.length;p++){var h=arguments[p];if(!n.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&v.push(h)}var m=v.join("\\");return/^[\\\/]{2}[^\\\/]/.test(v[0])||(m=m.replace(/^[\\\/]{2,}/,"\\")),s.normalize(m)},s.relative=function(v,p){v=s.resolve(v),p=s.resolve(p);for(var h=v.toLowerCase(),m=p.toLowerCase(),_=a(p.split("\\")),g=a(h.split("\\")),b=a(m.split("\\")),S=Math.min(g.length,b.length),k=S,V=0;V<S;V++)if(g[V]!==b[V]){k=V;break}if(k==0)return p;for(var L=[],V=k;V<g.length;V++)L.push("..");return L=L.concat(_.slice(k)),L.join("\\")},s._makeLong=function(v){if(!n.isString(v))return v;if(!v)return"";var p=s.resolve(v);return/^[a-zA-Z]\:\\/.test(p)?"\\\\?\\"+p:/^\\\\[^?.]/.test(p)?"\\\\?\\UNC\\"+p.substring(2):v},s.dirname=function(v){var p=i(v),h=p[0],m=p[1];return!h&&!m?".":(m&&(m=m.substr(0,m.length-1)),h+m)},s.basename=function(v,p){var h=i(v)[2];return p&&h.substr(-1*p.length)===p&&(h=h.substr(0,h.length-p.length)),h},s.extname=function(v){return i(v)[3]},s.format=function(v){if(!n.isObject(v))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof v);var p=v.root||"";if(!n.isString(p))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof v.root);var h=v.dir,m=v.base||"";return h?h[h.length-1]===s.sep?h+m:h+s.sep+m:m},s.parse=function(v){if(!n.isString(v))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof v);var p=i(v);if(!p||p.length!==4)throw new TypeError("Invalid path '"+v+"'");return{root:p[0],dir:p[0]+p[1].slice(0,-1),base:p[2],ext:p[3],name:p[2].slice(0,p[2].length-p[3].length)}},s.sep="\\",s.delimiter=";";var c=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,d={};function f(v){return c.exec(v).slice(1)}return d.resolve=function(){for(var v="",p=!1,h=arguments.length-1;h>=-1&&!p;h--){var m=h>=0?arguments[h]:process.cwd();if(n.isString(m)){if(!m)continue}else throw new TypeError("Arguments to path.resolve must be strings");v=m+"/"+v,p=m[0]==="/"}return v=t(v.split("/"),!p).join("/"),(p?"/":"")+v||"."},d.normalize=function(v){var p=d.isAbsolute(v),h=v&&v[v.length-1]==="/";return v=t(v.split("/"),!p).join("/"),!v&&!p&&(v="."),v&&h&&(v+="/"),(p?"/":"")+v},d.isAbsolute=function(v){return v.charAt(0)==="/"},d.join=function(){for(var v="",p=0;p<arguments.length;p++){var h=arguments[p];if(!n.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&(v?v+="/"+h:v+=h)}return d.normalize(v)},d.relative=function(v,p){v=d.resolve(v).substr(1),p=d.resolve(p).substr(1);for(var h=a(v.split("/")),m=a(p.split("/")),_=Math.min(h.length,m.length),g=_,b=0;b<_;b++)if(h[b]!==m[b]){g=b;break}for(var S=[],b=g;b<h.length;b++)S.push("..");return S=S.concat(m.slice(g)),S.join("/")},d._makeLong=function(v){return v},d.dirname=function(v){var p=f(v),h=p[0],m=p[1];return!h&&!m?".":(m&&(m=m.substr(0,m.length-1)),h+m)},d.basename=function(v,p){var h=f(v)[2];return p&&h.substr(-1*p.length)===p&&(h=h.substr(0,h.length-p.length)),h},d.extname=function(v){return f(v)[3]},d.format=function(v){if(!n.isObject(v))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof v);var p=v.root||"";if(!n.isString(p))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof v.root);var h=v.dir?v.dir+d.sep:"",m=v.base||"";return h+m},d.parse=function(v){if(!n.isString(v))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof v);var p=f(v);if(!p||p.length!==4)throw new TypeError("Invalid path '"+v+"'");return p[1]=p[1]||"",p[2]=p[2]||"",p[3]=p[3]||"",{root:p[0],dir:p[0]+p[1].slice(0,-1),base:p[2],ext:p[3],name:p[2].slice(0,p[2].length-p[3].length)}},d.sep="/",d.delimiter=":",path$2.exports=s,path$2.exports.posix=d,path$2.exports.win32=s,path$2.exports}var homedir,hasRequiredHomedir;function requireHomedir(){if(hasRequiredHomedir)return homedir;hasRequiredHomedir=1;var e={},n=LoadingSpinner.require$$0;return homedir=n.homedir||function(){var a=e.HOME;return e.USERPROFILE||e.HOMEDRIVE+e.HOMEPATH||a||null},homedir}var caller,hasRequiredCaller;function requireCaller(){return hasRequiredCaller||(hasRequiredCaller=1,caller=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,a){return a};var n=new Error().stack;return Error.prepareStackTrace=e,n[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,n={};function t(s){return e.exec(s).slice(1)}n.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=t(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0]===i[1]?i[0]:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};var a=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,r={};function o(s){return a.exec(s).slice(1)}return r.parse=function(s){if(typeof s!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var i=o(s);if(!i||i.length!==5)throw new TypeError("Invalid path '"+s+"'");return{root:i[1],dir:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}},pathParse.exports=n.parse,pathParse.exports.posix=r.parse,pathParse.exports.win32=n.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),n=e.parse||requirePathParse(),t=function(r,o){var s="/";/^([A-Za-z]:)/.test(r)?s="":/^\\\\/.test(r)&&(s="\\\\");for(var i=[r],l=n(r);l.dir!==i[i.length-1];)i.push(l.dir),l=n(l.dir);return i.reduce(function(u,c){return u.concat(o.map(function(d){return e.resolve(s,c,d)}))},[])};return nodeModulesPaths=function(r,o,s){var i=o&&o.moduleDirectory?[].concat(o.moduleDirectory):["node_modules"];if(o&&typeof o.paths=="function")return o.paths(s,r,function(){return t(r,i)},o);var l=t(r,i);return o&&o.paths?l.concat(o.paths):l},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={};const n=requirePath();return normalizeOptions=function(t,a){if(a=a||{},a.forceNodeResolution||!e.pnp)return a;const{findPnpApi:r}=LoadingSpinner.require$$0,o=(d,f)=>{const v=d.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!v)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${d}")`);f.charAt(f.length-1)!=="/"&&(f=n.join(f,"/"));const p=r(f);if(p===null)return;let h;try{h=p.resolveToUnqualified(`${v[1]}/package.json`,f,{considerBuiltins:!1})}catch{return null}if(h===null)throw new Error(`Assertion failed: The resolution thinks that "${v[1]}" is a Node builtin`);const m=n.dirname(h),_=typeof v[2]<"u"?n.join(m,v[2]):m;return{packagePath:m,unqualifiedPath:_}},s=(d,f)=>{for(let v=0;v<f.length;v++){const p=o(d,f[v]);if(p||v===f.length-1)return p}return null},i=Array.isArray(a.paths)?a.paths:[],l=(d,f,v,p)=>{const h=[f].concat(i),m=s(d,h);return m==null?v():[m.unqualifiedPath]},u=(d,f,v,p)=>{const h=[f].concat(i),m=s(d,h);if(m==null)return v().concat(i);let _=n.dirname(m.packagePath);return d.match(/^@[^/]+\//)&&(_=n.dirname(_)),[_]};let c=!1;return a.__skipPackageIterator||(a.packageIterator=function(d,f,v,p){c=!0;try{return l(d,f,v,p)}finally{c=!1}}),a.paths=function(d,f,v,p){return c?v().concat(i):u(d,f,v)},a},normalizeOptions}const assert$1=!0,async_hooks$1=">= 8",buffer_ieee754$1=">= 0.5 && < 0.9.7",buffer$1=!0,child_process$1=!0,cluster$1=">= 0.5",console$2=!0,constants$1=!0,crypto$1=!0,_debug_agent$1=">= 1 && < 8",_debugger$1="< 8",dgram$1=!0,diagnostics_channel$1=[">= 14.17 && < 15",">= 15.1"],dns$1=!0,domain$1=">= 0.7.12",events$1=!0,freelist$1="< 6",fs$1=!0,_http_agent$1=">= 0.11.1",_http_client$1=">= 0.11.1",_http_common$1=">= 0.11.1",_http_incoming$1=">= 0.11.1",_http_outgoing$1=">= 0.11.1",_http_server$1=">= 0.11.1",http$1=!0,http2$1=">= 8.8",https$1=!0,inspector$1=">= 8",_linklist$1="< 8",module$2=!0,net$1=!0,os$1=!0,path$1=!0,perf_hooks$1=">= 8.5",process$2=">= 1",punycode$1=">= 0.5",querystring$1=!0,readline$1=!0,repl$1=!0,smalloc$1=">= 0.11.5 && < 3",_stream_duplex$1=">= 0.9.4",_stream_transform$1=">= 0.9.4",_stream_wrap$1=">= 1.4.1",_stream_passthrough$1=">= 0.9.4",_stream_readable$1=">= 0.9.4",_stream_writable$1=">= 0.9.4",stream$1=!0,string_decoder$1=!0,sys$1=[">= 0.4 && < 0.7",">= 0.8"],timers$1=!0,_tls_common$1=">= 0.11.13",_tls_legacy$1=">= 0.11.3 && < 10",_tls_wrap$1=">= 0.11.3",tls$1=!0,trace_events$1=">= 10",tty$1=!0,url$1=!0,util$2=!0,v8$1=">= 1",vm$1=!0,wasi$1=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads$1=">= 11.7",zlib$1=">= 0.5",require$$1$1={assert:assert$1,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:async_hooks$1,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:buffer_ieee754$1,buffer:buffer$1,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:child_process$1,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:cluster$1,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$2,"node:console":[">= 14.18 && < 15",">= 16"],constants:constants$1,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:crypto$1,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_debug_agent$1,_debugger:_debugger$1,dgram:dgram$1,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:diagnostics_channel$1,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:dns$1,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:domain$1,"node:domain":[">= 14.18 && < 15",">= 16"],events:events$1,"node:events":[">= 14.18 && < 15",">= 16"],freelist:freelist$1,fs:fs$1,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_http_agent$1,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_http_client$1,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:_http_common$1,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:_http_incoming$1,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:_http_outgoing$1,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:_http_server$1,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:http$1,"node:http":[">= 14.18 && < 15",">= 16"],http2:http2$1,"node:http2":[">= 14.18 && < 15",">= 16"],https:https$1,"node:https":[">= 14.18 && < 15",">= 16"],inspector:inspector$1,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:_linklist$1,module:module$2,"node:module":[">= 14.18 && < 15",">= 16"],net:net$1,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:os$1,"node:os":[">= 14.18 && < 15",">= 16"],path:path$1,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:perf_hooks$1,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$2,"node:process":[">= 14.18 && < 15",">= 16"],punycode:punycode$1,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:querystring$1,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:readline$1,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:repl$1,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:smalloc$1,"node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:_stream_duplex$1,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:_stream_transform$1,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:_stream_wrap$1,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:_stream_passthrough$1,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:_stream_readable$1,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:_stream_writable$1,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:stream$1,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:string_decoder$1,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:sys$1,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:timers$1,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:_tls_common$1,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:_tls_legacy$1,_tls_wrap:_tls_wrap$1,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:tls$1,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:trace_events$1,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tty$1,"node:tty":[">= 14.18 && < 15",">= 16"],url:url$1,"node:url":[">= 14.18 && < 15",">= 16"],util:util$2,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:v8$1,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vm$1,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:wasi$1,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:worker_threads$1,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:zlib$1,"node:zlib":[">= 14.18 && < 15",">= 16"]};var isCoreModule,hasRequiredIsCoreModule;function requireIsCoreModule(){if(hasRequiredIsCoreModule)return isCoreModule;hasRequiredIsCoreModule=1;var e={node:"20.19.6",acorn:"8.15.0",ada:"2.9.2",ares:"1.34.5",brotli:"1.1.0",cjs_module_lexer:"2.1.0",cldr:"47.0",icu:"77.1",llhttp:"9.3.0",modules:"115",napi:"9",nghttp2:"1.61.0",openssl:"3.0.17",simdutf:"6.4.2",tz:"2025b",undici:"6.22.0",unicode:"16.0",uv:"1.46.0",uvwasi:"0.0.23",v8:"11.3.244.8-node.33",zlib:"1.3.1-470d3a2"},n=LoadingSpinner.requireHasown();function t(s,i){for(var l=s.split("."),u=i.split(" "),c=u.length>1?u[0]:"=",d=(u.length>1?u[1]:u[0]).split("."),f=0;f<3;++f){var v=parseInt(l[f]||0,10),p=parseInt(d[f]||0,10);if(v!==p)return c==="<"?v<p:c===">="?v>=p:!1}return c===">="}function a(s,i){var l=i.split(/ ?&& ?/);if(l.length===0)return!1;for(var u=0;u<l.length;++u)if(!t(s,l[u]))return!1;return!0}function r(s,i){if(typeof i=="boolean")return i;var l=typeof s>"u"?e&&e.node:s;if(typeof l!="string")throw new TypeError(typeof s>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(i&&typeof i=="object"){for(var u=0;u<i.length;++u)if(a(l,i[u]))return!0;return!1}return a(l,i)}var o=require$$1$1;return isCoreModule=function(i,l){return n(o,i)&&r(l,o[i])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=LoadingSpinner.require$$0,n=requireHomedir(),t=requirePath(),a=requireCaller(),r=requireNodeModulesPaths(),o=requireNormalizeOptions(),s=requireIsCoreModule(),i=e.realpath,l=n(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(_,g){e.stat(_,function(b,S){return b?b.code==="ENOENT"||b.code==="ENOTDIR"?g(null,!1):g(b):g(null,S.isFile()||S.isFIFO())})},d=function(_,g){e.stat(_,function(b,S){return b?b.code==="ENOENT"||b.code==="ENOTDIR"?g(null,!1):g(b):g(null,S.isDirectory())})},f=function(_,g){i(_,function(b,S){b&&b.code!=="ENOENT"?g(b):g(null,b?_:S)})},v=function(_,g,b,S){b&&b.preserveSymlinks===!1?_(g,S):S(null,g)},p=function(_,g,b){_(g,function(S,k){if(S)b(S);else try{var V=JSON.parse(k);b(null,V)}catch{b(null)}})},h=function(_,g,b){for(var S=r(g,b,_),k=0;k<S.length;k++)S[k]=t.join(S[k],_);return S};return async=function(_,g,b){var S=b,k=g;if(typeof g=="function"&&(S=k,k={}),typeof _!="string"){var V=new TypeError("Path must be a string.");return process.nextTick(function(){S(V)})}k=o(_,k);var L=k.isFile||c,$=k.isDirectory||d,A=k.readFile||e.readFile,F=k.realpath||f,P=k.readPackage||p;if(k.readFile&&k.readPackage){var q=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){S(q)})}var M=k.packageIterator,j=k.extensions||[".js"],Q=k.includeCoreModules!==!1,J=k.basedir||t.dirname(a()),W=k.filename||J;k.paths=k.paths||u();var C=t.resolve(J);v(F,C,k,function(I,R){I?S(I):T(R)});var E;function T(I){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(_))E=t.resolve(I,_),(_==="."||_===".."||_.slice(-1)==="/")&&(E+="/"),/\/$/.test(_)&&E===I?B(E,k.package,z):Y(E,k.package,z);else{if(Q&&s(_))return S(null,_);D(_,I,function(R,H,U){if(R)S(R);else{if(H)return v(F,H,k,function(Z,X){Z?S(Z):S(null,X,U)});var G=new Error("Cannot find module '"+_+"' from '"+W+"'");G.code="MODULE_NOT_FOUND",S(G)}})}}function z(I,R,H){I?S(I):R?S(null,R,H):B(E,function(U,G,Z){if(U)S(U);else if(G)v(F,G,k,function(ee,te){ee?S(ee):S(null,te,Z)});else{var X=new Error("Cannot find module '"+_+"' from '"+W+"'");X.code="MODULE_NOT_FOUND",S(X)}})}function Y(I,R,H){var U=R,G=H;typeof U=="function"&&(G=U,U=void 0);var Z=[""].concat(j);X(Z,I,U);function X(ee,te,ne){if(ee.length===0)return G(null,void 0,ne);var oe=te+ee[0],ae=ne;ae?O(null,ae):w(t.dirname(oe),O);function O(se,ue,ie){if(ae=ue,se)return G(se);if(ie&&ae&&k.pathFilter){var de=t.relative(ie,oe),fe=de.slice(0,de.length-ee[0].length),ce=k.pathFilter(ae,te,fe);if(ce)return X([""].concat(j.slice()),t.resolve(ie,ce),ae)}L(oe,le)}function le(se,ue){if(se)return G(se);if(ue)return G(null,oe,ae);X(ee.slice(1),te,ae)}}}function w(I,R){if(I===""||I==="/"||/^\w:[/\\]*$/.test(I)||/[/\\]node_modules[/\\]*$/.test(I))return R(null);v(F,I,k,function(H,U){if(H)return w(t.dirname(I),R);var G=t.join(U,"package.json");L(G,function(Z,X){if(!X)return w(t.dirname(I),R);P(A,G,function(ee,te){ee&&R(ee);var ne=te;ne&&k.packageFilter&&(ne=k.packageFilter(ne,G)),R(null,ne,I)})})})}function B(I,R,H){var U=H,G=R;typeof G=="function"&&(U=G,G=k.package),v(F,I,k,function(Z,X){if(Z)return U(Z);var ee=t.join(X,"package.json");L(ee,function(te,ne){if(te)return U(te);if(!ne)return Y(t.join(I,"index"),G,U);P(A,ee,function(oe,ae){if(oe)return U(oe);var O=ae;if(O&&k.packageFilter&&(O=k.packageFilter(O,ee)),O&&O.main){if(typeof O.main!="string"){var le=new TypeError("package “"+O.name+"” `main` must be a string");return le.code="INVALID_PACKAGE_MAIN",U(le)}(O.main==="."||O.main==="./")&&(O.main="index"),Y(t.resolve(I,O.main),O,function(se,ue,ie){if(se)return U(se);if(ue)return U(null,ue,ie);if(!ie)return Y(t.join(I,"index"),ie,U);var de=t.resolve(I,ie.main);B(de,ie,function(fe,ce,ve){if(fe)return U(fe);if(ce)return U(null,ce,ve);Y(t.join(I,"index"),ve,U)})});return}Y(t.join(I,"/index"),O,U)})})})}function N(I,R){if(R.length===0)return I(null,void 0);var H=R[0];$(t.dirname(H),U);function U(X,ee){if(X)return I(X);if(!ee)return N(I,R.slice(1));Y(H,k.package,G)}function G(X,ee,te){if(X)return I(X);if(ee)return I(null,ee,te);B(H,k.package,Z)}function Z(X,ee,te){if(X)return I(X);if(ee)return I(null,ee,te);N(I,R.slice(1))}}function D(I,R,H){var U=function(){return h(I,R,k)};N(H,M?M(I,R,U,k):U())}},async}const assert=!0,async_hooks=">= 8",buffer_ieee754=">= 0.5 && < 0.9.7",buffer=!0,child_process=!0,cluster=">= 0.5",console$1=!0,constants=!0,crypto=!0,_debug_agent=">= 1 && < 8",_debugger="< 8",dgram=!0,diagnostics_channel=[">= 14.17 && < 15",">= 15.1"],dns=!0,domain=">= 0.7.12",events=!0,freelist="< 6",fs=!0,_http_agent=">= 0.11.1",_http_client=">= 0.11.1",_http_common=">= 0.11.1",_http_incoming=">= 0.11.1",_http_outgoing=">= 0.11.1",_http_server=">= 0.11.1",http=!0,http2=">= 8.8",https=!0,inspector=">= 8",_linklist="< 8",module$1=!0,net=!0,os=!0,path=!0,perf_hooks=">= 8.5",process$1=">= 1",punycode=">= 0.5",querystring=!0,readline=!0,repl=!0,smalloc=">= 0.11.5 && < 3",_stream_duplex=">= 0.9.4",_stream_transform=">= 0.9.4",_stream_wrap=">= 1.4.1",_stream_passthrough=">= 0.9.4",_stream_readable=">= 0.9.4",_stream_writable=">= 0.9.4",stream=!0,string_decoder=!0,sys=[">= 0.4 && < 0.7",">= 0.8"],timers=!0,_tls_common=">= 0.11.13",_tls_legacy=">= 0.11.3 && < 10",_tls_wrap=">= 0.11.3",tls=!0,trace_events=">= 10",tty=!0,url=!0,util$1=!0,v8=">= 1",vm=!0,wasi=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads=">= 11.7",zlib=">= 0.5",require$$1={assert,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754,buffer,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$1,"node:console":[">= 14.18 && < 15",">= 16"],constants,"node:constants":[">= 14.18 && < 15",">= 16"],crypto,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent,_debugger,dgram,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain,"node:domain":[">= 14.18 && < 15",">= 16"],events,"node:events":[">= 14.18 && < 15",">= 16"],freelist,fs,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server,"node:_http_server":[">= 14.18 && < 15",">= 16"],http,"node:http":[">= 14.18 && < 15",">= 16"],http2,"node:http2":[">= 14.18 && < 15",">= 16"],https,"node:https":[">= 14.18 && < 15",">= 16"],inspector,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist,module:module$1,"node:module":[">= 14.18 && < 15",">= 16"],net,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os,"node:os":[">= 14.18 && < 15",">= 16"],path,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$1,"node:process":[">= 14.18 && < 15",">= 16"],punycode,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring,"node:querystring":[">= 14.18 && < 15",">= 16"],readline,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc,"node:sqlite":">= 23.4",_stream_duplex,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy,_tls_wrap,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty,"node:tty":[">= 14.18 && < 15",">= 16"],url,"node:url":[">= 14.18 && < 15",">= 16"],util:util$1,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8,"node:v8":[">= 14.18 && < 15",">= 16"],vm,"node:vm":[">= 14.18 && < 15",">= 16"],wasi,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib,"node:zlib":[">= 14.18 && < 15",">= 16"]};var core_1,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core_1;hasRequiredCore=1;var e=requireIsCoreModule(),n=require$$1,t={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=e(a));return core_1=t,core_1}var isCore,hasRequiredIsCore;function requireIsCore(){if(hasRequiredIsCore)return isCore;hasRequiredIsCore=1;var e=requireIsCoreModule();return isCore=function(t){return e(t)},isCore}var sync,hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;var e=requireIsCoreModule(),n=LoadingSpinner.require$$0,t=requirePath(),a=requireHomedir(),r=requireCaller(),o=requireNodeModulesPaths(),s=requireNormalizeOptions(),i=n.realpathSync,l=a(),u=function(){return[t.join(l,".node_modules"),t.join(l,".node_libraries")]},c=function(_){try{var g=n.statSync(_,{throwIfNoEntry:!1})}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR"))return!1;throw b}return!!g&&(g.isFile()||g.isFIFO())},d=function(_){try{var g=n.statSync(_,{throwIfNoEntry:!1})}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR"))return!1;throw b}return!!g&&g.isDirectory()},f=function(_){try{return i(_)}catch(g){if(g.code!=="ENOENT")throw g}return _},v=function(_,g,b){return b&&b.preserveSymlinks===!1?_(g):g},p=function(_,g){var b=_(g);try{var S=JSON.parse(b);return S}catch{}},h=function(_,g,b){for(var S=o(g,b,_),k=0;k<S.length;k++)S[k]=t.join(S[k],_);return S};return sync=function(_,g){if(typeof _!="string")throw new TypeError("Path must be a string.");var b=s(_,g),S=b.isFile||c,k=b.readFileSync||n.readFileSync,V=b.isDirectory||d,L=b.realpathSync||f,$=b.readPackageSync||p;if(b.readFileSync&&b.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var A=b.packageIterator,F=b.extensions||[".js"],P=b.includeCoreModules!==!1,q=b.basedir||t.dirname(r()),M=b.filename||q;b.paths=b.paths||u();var j=v(L,t.resolve(q),b);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(_)){var Q=t.resolve(j,_);(_==="."||_===".."||_.slice(-1)==="/")&&(Q+="/");var J=E(Q)||z(Q);if(J)return v(L,J,b)}else{if(P&&e(_))return _;var W=Y(_,j);if(W)return v(L,W,b)}var C=new Error("Cannot find module '"+_+"' from '"+M+"'");throw C.code="MODULE_NOT_FOUND",C;function E(w){var B=T(t.dirname(w));if(B&&B.dir&&B.pkg&&b.pathFilter){var N=t.relative(B.dir,w),D=b.pathFilter(B.pkg,w,N);D&&(w=t.resolve(B.dir,D))}if(S(w))return w;for(var I=0;I<F.length;I++){var R=w+F[I];if(S(R))return R}}function T(w){if(!(w===""||w==="/")&&!/^\w:[/\\]*$/.test(w)&&!/[/\\]node_modules[/\\]*$/.test(w)){var B=t.join(v(L,w,b),"package.json");if(!S(B))return T(t.dirname(w));var N=$(k,B);return N&&b.packageFilter&&(N=b.packageFilter(N,w)),{pkg:N,dir:w}}}function z(w){var B=t.join(v(L,w,b),"/package.json");if(S(B)){try{var N=$(k,B)}catch{}if(N&&b.packageFilter&&(N=b.packageFilter(N,w)),N&&N.main){if(typeof N.main!="string"){var D=new TypeError("package “"+N.name+"” `main` must be a string");throw D.code="INVALID_PACKAGE_MAIN",D}(N.main==="."||N.main==="./")&&(N.main="index");try{var I=E(t.resolve(w,N.main));if(I)return I;var R=z(t.resolve(w,N.main));if(R)return R}catch{}}}return E(t.join(w,"/index"))}function Y(w,B){for(var N=function(){return h(w,B,b)},D=A?A(w,B,N,b):N(),I=0;I<D.length;I++){var R=D[I];if(V(t.dirname(R))){var H=E(R);if(H)return H;var U=z(R);if(U)return U}}}},sync}var resolve,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve;hasRequiredResolve=1;var e=requireAsync();return e.core=requireCore(),e.isCore=requireIsCore(),e.sync=requireSync(),resolve=e,resolve}var dist$2={},Explorer={},ExplorerBase={},loaders={},resolveFrom={exports:{}},hasRequiredResolveFrom;function requireResolveFrom(){if(hasRequiredResolveFrom)return resolveFrom.exports;hasRequiredResolveFrom=1;const e=requirePath(),n=LoadingSpinner.require$$0,t=LoadingSpinner.require$$0,a=(r,o,s)=>{if(typeof r!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof r}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{r=t.realpathSync(r)}catch(u){if(u.code==="ENOENT")r=e.resolve(r);else{if(s)return null;throw u}}const i=e.join(r,"noop.js"),l=()=>n._resolveFilename(o,{id:i,filename:i,paths:n._nodeModulePaths(r)});if(s)try{return l()}catch{return null}return l()};return resolveFrom.exports=(r,o)=>a(r,o),resolveFrom.exports.silent=(r,o)=>a(r,o,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const n=Error.prepareStackTrace;Error.prepareStackTrace=(a,r)=>r;const t=new Error().stack.slice(1);return Error.prepareStackTrace=n,t};return callsites.exports=e,callsites.exports.default=e,callsites.exports}var parentModule,hasRequiredParentModule;function requireParentModule(){if(hasRequiredParentModule)return parentModule;hasRequiredParentModule=1;const e=requireCallsites();return parentModule=n=>{const t=e();if(!n)return t[2].getFileName();let a=!1;t.shift();for(const r of t){const o=r.getFileName();if(typeof o=="string"){if(o===n){a=!0;continue}if(o!=="module.js"&&a&&o!==n)return o}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),n=requireResolveFrom(),t=requireParentModule();return importFresh=a=>{if(typeof a!="string")throw new TypeError("Expected a string");const r=t(__filename),o=r?e.dirname(r):__dirname,s=n(o,a),i=require.cache[s];if(i&&i.parent){let u=i.parent.children.length;for(;u--;)i.parent.children[u].id===s&&i.parent.children.splice(u,1)}delete require.cache[s];const l=require.cache[r];return l===void 0||l.require===void 0?commonjsRequire(s):l.require(s)},importFresh}var util={},types={},isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=LoadingSpinner.requireShams()(),n=LoadingSpinner.callBound,t=n("Object.prototype.toString"),a=function(i){return e&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:t(i)==="[object Arguments]"},r=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&"length"in i&&typeof i.length=="number"&&i.length>=0&&t(i)!=="[object Array]"&&"callee"in i&&t(i.callee)==="[object Function]"},o=function(){return a(arguments)}();return a.isLegacyArguments=r,isArguments=o?a:r,isArguments}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var n=requireIsArguments(),t=LoadingSpinner.isGeneratorFunction,a=LoadingSpinner.whichTypedArray,r=LoadingSpinner.isTypedArray;function o(O){return O.call.bind(O)}var s=typeof BigInt<"u",i=typeof Symbol<"u",l=o(Object.prototype.toString),u=o(Number.prototype.valueOf),c=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(s)var f=o(BigInt.prototype.valueOf);if(i)var v=o(Symbol.prototype.valueOf);function p(O,le){if(typeof O!="object")return!1;try{return le(O),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=t,e.isTypedArray=r;function h(O){return typeof Promise<"u"&&O instanceof Promise||O!==null&&typeof O=="object"&&typeof O.then=="function"&&typeof O.catch=="function"}e.isPromise=h;function m(O){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(O):r(O)||w(O)}e.isArrayBufferView=m;function _(O){return a(O)==="Uint8Array"}e.isUint8Array=_;function g(O){return a(O)==="Uint8ClampedArray"}e.isUint8ClampedArray=g;function b(O){return a(O)==="Uint16Array"}e.isUint16Array=b;function S(O){return a(O)==="Uint32Array"}e.isUint32Array=S;function k(O){return a(O)==="Int8Array"}e.isInt8Array=k;function V(O){return a(O)==="Int16Array"}e.isInt16Array=V;function L(O){return a(O)==="Int32Array"}e.isInt32Array=L;function $(O){return a(O)==="Float32Array"}e.isFloat32Array=$;function A(O){return a(O)==="Float64Array"}e.isFloat64Array=A;function F(O){return a(O)==="BigInt64Array"}e.isBigInt64Array=F;function P(O){return a(O)==="BigUint64Array"}e.isBigUint64Array=P;function q(O){return l(O)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function M(O){return typeof Map>"u"?!1:q.working?q(O):O instanceof Map}e.isMap=M;function j(O){return l(O)==="[object Set]"}j.working=typeof Set<"u"&&j(new Set);function Q(O){return typeof Set>"u"?!1:j.working?j(O):O instanceof Set}e.isSet=Q;function J(O){return l(O)==="[object WeakMap]"}J.working=typeof WeakMap<"u"&&J(new WeakMap);function W(O){return typeof WeakMap>"u"?!1:J.working?J(O):O instanceof WeakMap}e.isWeakMap=W;function C(O){return l(O)==="[object WeakSet]"}C.working=typeof WeakSet<"u"&&C(new WeakSet);function E(O){return C(O)}e.isWeakSet=E;function T(O){return l(O)==="[object ArrayBuffer]"}T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer);function z(O){return typeof ArrayBuffer>"u"?!1:T.working?T(O):O instanceof ArrayBuffer}e.isArrayBuffer=z;function Y(O){return l(O)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function w(O){return typeof DataView>"u"?!1:Y.working?Y(O):O instanceof DataView}e.isDataView=w;var B=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function N(O){return l(O)==="[object SharedArrayBuffer]"}function D(O){return typeof B>"u"?!1:(typeof N.working>"u"&&(N.working=N(new B)),N.working?N(O):O instanceof B)}e.isSharedArrayBuffer=D;function I(O){return l(O)==="[object AsyncFunction]"}e.isAsyncFunction=I;function R(O){return l(O)==="[object Map Iterator]"}e.isMapIterator=R;function H(O){return l(O)==="[object Set Iterator]"}e.isSetIterator=H;function U(O){return l(O)==="[object Generator]"}e.isGeneratorObject=U;function G(O){return l(O)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=G;function Z(O){return p(O,u)}e.isNumberObject=Z;function X(O){return p(O,c)}e.isStringObject=X;function ee(O){return p(O,d)}e.isBooleanObject=ee;function te(O){return s&&p(O,f)}e.isBigIntObject=te;function ne(O){return i&&p(O,v)}e.isSymbolObject=ne;function oe(O){return Z(O)||X(O)||ee(O)||te(O)||ne(O)}e.isBoxedPrimitive=oe;function ae(O){return typeof Uint8Array<"u"&&(z(O)||D(O))}e.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(O){Object.defineProperty(e,O,{enumerable:!1,value:function(){throw new Error(O+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var a=function(){};a.prototype=t.prototype,n.prototype=new a,n.prototype.constructor=n}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n={},t=Object.getOwnPropertyDescriptors||function(B){for(var N=Object.keys(B),D={},I=0;I<N.length;I++)D[N[I]]=Object.getOwnPropertyDescriptor(B,N[I]);return D},a=/%[sdj%]/g;e.format=function(w){if(!V(w)){for(var B=[],N=0;N<arguments.length;N++)B.push(i(arguments[N]));return B.join(" ")}for(var N=1,D=arguments,I=D.length,R=String(w).replace(a,function(U){if(U==="%%")return"%";if(N>=I)return U;switch(U){case"%s":return String(D[N++]);case"%d":return Number(D[N++]);case"%j":try{return JSON.stringify(D[N++])}catch{return"[Circular]"}default:return U}}),H=D[N];N<I;H=D[++N])b(H)||!F(H)?R+=" "+H:R+=" "+i(H);return R},e.deprecate=function(w,B){if(typeof process<"u"&&process.noDeprecation===!0)return w;if(typeof process>"u")return function(){return e.deprecate(w,B).apply(this,arguments)};var N=!1;function D(){if(!N){if(process.throwDeprecation)throw new Error(B);process.traceDeprecation?console.trace(B):console.error(B),N=!0}return w.apply(this,arguments)}return D};var r={},o=/^$/;if(n.NODE_DEBUG){var s=n.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+s+"$","i")}e.debuglog=function(w){if(w=w.toUpperCase(),!r[w])if(o.test(w)){var B=process.pid;r[w]=function(){var N=e.format.apply(e,arguments);console.error("%s %d: %s",w,B,N)}}else r[w]=function(){};return r[w]};function i(w,B){var N={seen:[],stylize:u};return arguments.length>=3&&(N.depth=arguments[2]),arguments.length>=4&&(N.colors=arguments[3]),g(B)?N.showHidden=B:B&&e._extend(N,B),$(N.showHidden)&&(N.showHidden=!1),$(N.depth)&&(N.depth=2),$(N.colors)&&(N.colors=!1),$(N.customInspect)&&(N.customInspect=!0),N.colors&&(N.stylize=l),d(N,w,N.depth)}e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(w,B){var N=i.styles[B];return N?"\x1B["+i.colors[N][0]+"m"+w+"\x1B["+i.colors[N][1]+"m":w}function u(w,B){return w}function c(w){var B={};return w.forEach(function(N,D){B[N]=!0}),B}function d(w,B,N){if(w.customInspect&&B&&M(B.inspect)&&B.inspect!==e.inspect&&!(B.constructor&&B.constructor.prototype===B)){var D=B.inspect(N,w);return V(D)||(D=d(w,D,N)),D}var I=f(w,B);if(I)return I;var R=Object.keys(B),H=c(R);if(w.showHidden&&(R=Object.getOwnPropertyNames(B)),q(B)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return v(B);if(R.length===0){if(M(B)){var U=B.name?": "+B.name:"";return w.stylize("[Function"+U+"]","special")}if(A(B))return w.stylize(RegExp.prototype.toString.call(B),"regexp");if(P(B))return w.stylize(Date.prototype.toString.call(B),"date");if(q(B))return v(B)}var G="",Z=!1,X=["{","}"];if(_(B)&&(Z=!0,X=["[","]"]),M(B)){var ee=B.name?": "+B.name:"";G=" [Function"+ee+"]"}if(A(B)&&(G=" "+RegExp.prototype.toString.call(B)),P(B)&&(G=" "+Date.prototype.toUTCString.call(B)),q(B)&&(G=" "+v(B)),R.length===0&&(!Z||B.length==0))return X[0]+G+X[1];if(N<0)return A(B)?w.stylize(RegExp.prototype.toString.call(B),"regexp"):w.stylize("[Object]","special");w.seen.push(B);var te;return Z?te=p(w,B,N,H,R):te=R.map(function(ne){return h(w,B,N,H,ne,Z)}),w.seen.pop(),m(te,G,X)}function f(w,B){if($(B))return w.stylize("undefined","undefined");if(V(B)){var N="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(N,"string")}if(k(B))return w.stylize(""+B,"number");if(g(B))return w.stylize(""+B,"boolean");if(b(B))return w.stylize("null","null")}function v(w){return"["+Error.prototype.toString.call(w)+"]"}function p(w,B,N,D,I){for(var R=[],H=0,U=B.length;H<U;++H)E(B,String(H))?R.push(h(w,B,N,D,String(H),!0)):R.push("");return I.forEach(function(G){G.match(/^\d+$/)||R.push(h(w,B,N,D,G,!0))}),R}function h(w,B,N,D,I,R){var H,U,G;if(G=Object.getOwnPropertyDescriptor(B,I)||{value:B[I]},G.get?G.set?U=w.stylize("[Getter/Setter]","special"):U=w.stylize("[Getter]","special"):G.set&&(U=w.stylize("[Setter]","special")),E(D,I)||(H="["+I+"]"),U||(w.seen.indexOf(G.value)<0?(b(N)?U=d(w,G.value,null):U=d(w,G.value,N-1),U.indexOf(`
|
|
160
160
|
`)>-1&&(R?U=U.split(`
|
|
161
161
|
`).map(function(Z){return" "+Z}).join(`
|
|
162
162
|
`).slice(2):U=`
|
|
163
163
|
`+U.split(`
|
|
164
164
|
`).map(function(Z){return" "+Z}).join(`
|
|
165
|
-
`))):U=w.stylize("[Circular]","special")),$(H)){if(R&&I.match(/^\d+$/))return U;H=JSON.stringify(""+I),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=w.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=w.stylize(H,"string"))}return H+": "+U}function
|
|
165
|
+
`))):U=w.stylize("[Circular]","special")),$(H)){if(R&&I.match(/^\d+$/))return U;H=JSON.stringify(""+I),H.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=w.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=w.stylize(H,"string"))}return H+": "+U}function m(w,B,N){var D=w.reduce(function(I,R){return R.indexOf(`
|
|
166
166
|
`)>=0,I+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return D>60?N[0]+(B===""?"":B+`
|
|
167
167
|
`)+" "+w.join(`,
|
|
168
|
-
`)+" "+N[1]:N[0]+B+" "+w.join(", ")+" "+N[1]}e.types=requireTypes();function
|
|
169
|
-
`)},set:function(v){l=v}});var u=null,c=Object.getOwnPropertyDescriptor(this,"stack"),d=c.get,f=c.value;delete c.value,delete c.writable,c.set=function(v){u=v},c.get=function(){var v=(u||(d?d.call(this):f)).split(/\r?\n+/g);u||(v[0]=this.name+": "+this.message);var p=1;for(var h in o)if(o.hasOwnProperty(h)){var
|
|
170
|
-
`)},Object.defineProperty(this,"stack",c)};return Object.setPrototypeOf?(Object.setPrototypeOf(s.prototype,Error.prototype),Object.setPrototypeOf(s,Error)):e.inherits(s,Error),s};return t.append=function(a,r){return{message:function(o,s){return o=o||r,o&&(s[0]+=" "+a.replace("%s",o.toString())),s}}},t.line=function(a,r){return{line:function(o){return o=o||r,o?a.replace("%s",o.toString()):null}}},errorEx_1=t,errorEx_1}var jsonParseEvenBetterErrors,hasRequiredJsonParseEvenBetterErrors;function requireJsonParseEvenBetterErrors(){if(hasRequiredJsonParseEvenBetterErrors)return jsonParseEvenBetterErrors;hasRequiredJsonParseEvenBetterErrors=1;const e=u=>{const c=u.charCodeAt(0).toString(16).toUpperCase();return"0x"+(c.length%2?"0":"")+c},n=(u,c,d)=>{if(!c)return{message:u.message+" while parsing empty string",position:0};const f=u.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),v=f?+f[2]:u.message.match(/^Unexpected end of JSON.*/i)?c.length-1:null,p=f?u.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(f[1])} (${e(f[1])})`):u.message;if(v!=null){const h=v<=d?0:v-d,
|
|
168
|
+
`)+" "+N[1]:N[0]+B+" "+w.join(", ")+" "+N[1]}e.types=requireTypes();function _(w){return Array.isArray(w)}e.isArray=_;function g(w){return typeof w=="boolean"}e.isBoolean=g;function b(w){return w===null}e.isNull=b;function S(w){return w==null}e.isNullOrUndefined=S;function k(w){return typeof w=="number"}e.isNumber=k;function V(w){return typeof w=="string"}e.isString=V;function L(w){return typeof w=="symbol"}e.isSymbol=L;function $(w){return w===void 0}e.isUndefined=$;function A(w){return F(w)&&Q(w)==="[object RegExp]"}e.isRegExp=A,e.types.isRegExp=A;function F(w){return typeof w=="object"&&w!==null}e.isObject=F;function P(w){return F(w)&&Q(w)==="[object Date]"}e.isDate=P,e.types.isDate=P;function q(w){return F(w)&&(Q(w)==="[object Error]"||w instanceof Error)}e.isError=q,e.types.isNativeError=q;function M(w){return typeof w=="function"}e.isFunction=M;function j(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}e.isPrimitive=j,e.isBuffer=requireIsBufferBrowser();function Q(w){return Object.prototype.toString.call(w)}function J(w){return w<10?"0"+w.toString(10):w.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var w=new Date,B=[J(w.getHours()),J(w.getMinutes()),J(w.getSeconds())].join(":");return[w.getDate(),W[w.getMonth()],B].join(" ")}e.log=function(){console.log("%s - %s",C(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(w,B){if(!B||!F(B))return w;for(var N=Object.keys(B),D=N.length;D--;)w[N[D]]=B[N[D]];return w};function E(w,B){return Object.prototype.hasOwnProperty.call(w,B)}var T=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(T&&B[T]){var N=B[T];if(typeof N!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,T,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var D,I,R=new Promise(function(G,Z){D=G,I=Z}),H=[],U=0;U<arguments.length;U++)H.push(arguments[U]);H.push(function(G,Z){G?I(G):D(Z)});try{B.apply(this,H)}catch(G){I(G)}return R}return Object.setPrototypeOf(N,Object.getPrototypeOf(B)),T&&Object.defineProperty(N,T,{value:N,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(N,t(B))},e.promisify.custom=T;function z(w,B){if(!w){var N=new Error("Promise was rejected with a falsy value");N.reason=w,w=N}return B(w)}function Y(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');function B(){for(var N=[],D=0;D<arguments.length;D++)N.push(arguments[D]);var I=N.pop();if(typeof I!="function")throw new TypeError("The last argument must be of type Function");var R=this,H=function(){return I.apply(R,arguments)};w.apply(this,N).then(function(U){process.nextTick(H.bind(null,null,U))},function(U){process.nextTick(z.bind(null,U,H))})}return Object.setPrototypeOf(B,Object.getPrototypeOf(w)),Object.defineProperties(B,t(w)),B}e.callbackify=Y}(util)),util}var isArrayish,hasRequiredIsArrayish;function requireIsArrayish(){return hasRequiredIsArrayish||(hasRequiredIsArrayish=1,isArrayish=function(n){return n?n instanceof Array||Array.isArray(n)||n.length>=0&&n.splice instanceof Function:!1}),isArrayish}var errorEx_1,hasRequiredErrorEx;function requireErrorEx(){if(hasRequiredErrorEx)return errorEx_1;hasRequiredErrorEx=1;var e=requireUtil(),n=requireIsArrayish(),t=function(r,o){(!r||r.constructor!==String)&&(o=r||{},r=Error.name);var s=function i(l){if(!this)return new i(l);l=l instanceof Error?l.message:l||this.message,Error.call(this,l),Error.captureStackTrace(this,s),this.name=r,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var v=l.split(/\r?\n/g);for(var p in o)if(o.hasOwnProperty(p)){var h=o[p];"message"in h&&(v=h.message(this[p],v)||v,n(v)||(v=[v]))}return v.join(`
|
|
169
|
+
`)},set:function(v){l=v}});var u=null,c=Object.getOwnPropertyDescriptor(this,"stack"),d=c.get,f=c.value;delete c.value,delete c.writable,c.set=function(v){u=v},c.get=function(){var v=(u||(d?d.call(this):f)).split(/\r?\n+/g);u||(v[0]=this.name+": "+this.message);var p=1;for(var h in o)if(o.hasOwnProperty(h)){var m=o[h];if("line"in m){var _=m.line(this[h]);_&&v.splice(p++,0," "+_)}"stack"in m&&m.stack(this[h],v)}return v.join(`
|
|
170
|
+
`)},Object.defineProperty(this,"stack",c)};return Object.setPrototypeOf?(Object.setPrototypeOf(s.prototype,Error.prototype),Object.setPrototypeOf(s,Error)):e.inherits(s,Error),s};return t.append=function(a,r){return{message:function(o,s){return o=o||r,o&&(s[0]+=" "+a.replace("%s",o.toString())),s}}},t.line=function(a,r){return{line:function(o){return o=o||r,o?a.replace("%s",o.toString()):null}}},errorEx_1=t,errorEx_1}var jsonParseEvenBetterErrors,hasRequiredJsonParseEvenBetterErrors;function requireJsonParseEvenBetterErrors(){if(hasRequiredJsonParseEvenBetterErrors)return jsonParseEvenBetterErrors;hasRequiredJsonParseEvenBetterErrors=1;const e=u=>{const c=u.charCodeAt(0).toString(16).toUpperCase();return"0x"+(c.length%2?"0":"")+c},n=(u,c,d)=>{if(!c)return{message:u.message+" while parsing empty string",position:0};const f=u.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),v=f?+f[2]:u.message.match(/^Unexpected end of JSON.*/i)?c.length-1:null,p=f?u.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(f[1])} (${e(f[1])})`):u.message;if(v!=null){const h=v<=d?0:v-d,m=v+d>=c.length?c.length:v+d,_=(h===0?"":"...")+c.slice(h,m)+(m===c.length?"":"...");return{message:p+` while parsing ${c===_?"":"near "}${JSON.stringify(_)}`,position:v}}else return{message:p+` while parsing '${c.slice(0,d*2)}'`,position:0}};class t extends SyntaxError{constructor(c,d,f,v){f=f||20;const p=n(c,d,f);super(p.message),Object.assign(this,p),this.code="EJSONPARSE",this.systemError=c,Error.captureStackTrace(this,v||this.constructor)}get name(){return this.constructor.name}set name(c){}get[Symbol.toStringTag](){return this.constructor.name}}const a=Symbol.for("indent"),r=Symbol.for("newline"),o=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,s=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,i=(u,c,d)=>{const f=l(u);d=d||20;try{const[,v=`
|
|
171
171
|
`,p=" "]=f.match(s)||f.match(o)||[,"",""],h=JSON.parse(f,c);return h&&typeof h=="object"&&(h[r]=v,h[a]=p),h}catch(v){if(typeof u!="string"&&!Buffer.isBuffer(u)){const p=Array.isArray(u)&&u.length===0;throw Object.assign(new TypeError(`Cannot parse ${p?"an empty array":String(u)}`),{code:"EJSONPARSE",systemError:v})}throw new t(v,f,d,i)}},l=u=>String(u).replace(/^\uFEFF/,"");return jsonParseEvenBetterErrors=i,i.JSONParseError=t,i.noExceptions=(u,c)=>{try{return JSON.parse(l(u),c)}catch{}},jsonParseEvenBetterErrors}var build={},hasRequiredBuild;function requireBuild(){return hasRequiredBuild||(hasRequiredBuild=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var n=`
|
|
172
172
|
`,t="\r",a=function(){function r(o){this.string=o;for(var s=[0],i=0;i<o.length;)switch(o[i]){case n:i+=n.length,s.push(i);break;case t:i+=t.length,o[i]===n&&(i+=n.length),s.push(i);break;default:i++;break}this.offsets=s}return r.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var s=0,i=this.offsets;i[s+1]<=o;)s++;var l=o-i[s];return{line:s,column:l}},r.prototype.indexForLocation=function(o){var s=o.line,i=o.column;return s<0||s>=this.offsets.length||i<0||i>this.lengthOfLine(s)?null:this.offsets[s]+i},r.prototype.lengthOfLine=function(o){var s=this.offsets[o],i=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return i-s},r}();e.LinesAndColumns=a,e.default=a}(build)),build}var lib$1={},picocolors_browser={exports:{}},hasRequiredPicocolors_browser;function requirePicocolors_browser(){if(hasRequiredPicocolors_browser)return picocolors_browser.exports;hasRequiredPicocolors_browser=1;var e=String,n=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return picocolors_browser.exports=n(),picocolors_browser.exports.createColors=n,picocolors_browser.exports}var jsTokens={},hasRequiredJsTokens;function requireJsTokens(){return hasRequiredJsTokens||(hasRequiredJsTokens=1,Object.defineProperty(jsTokens,"__esModule",{value:!0}),jsTokens.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,jsTokens.matchToToken=function(e){var n={type:"invalid",value:e[0],closed:void 0};return e[1]?(n.type="string",n.closed=!!(e[3]||e[4])):e[5]?n.type="comment":e[6]?(n.type="comment",n.closed=!!e[7]):e[8]?n.type="regex":e[9]?n.type="number":e[10]?n.type="name":e[11]?n.type="punctuator":e[12]&&(n.type="whitespace"),n}),jsTokens}var lib={},identifier={},hasRequiredIdentifier;function requireIdentifier(){if(hasRequiredIdentifier)return identifier;hasRequiredIdentifier=1,Object.defineProperty(identifier,"__esModule",{value:!0}),identifier.isIdentifierChar=l,identifier.isIdentifierName=u,identifier.isIdentifierStart=i;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t=new RegExp("["+e+"]"),a=new RegExp("["+e+n+"]");e=n=null;const r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function s(c,d){let f=65536;for(let v=0,p=d.length;v<p;v+=2){if(f+=d[v],f>c)return!1;if(f+=d[v+1],f>=c)return!0}return!1}function i(c){return c<65?c===36:c<=90?!0:c<97?c===95:c<=122?!0:c<=65535?c>=170&&t.test(String.fromCharCode(c)):s(c,r)}function l(c){return c<48?c===36:c<58?!0:c<65?!1:c<=90?!0:c<97?c===95:c<=122?!0:c<=65535?c>=170&&a.test(String.fromCharCode(c)):s(c,r)||s(c,o)}function u(c){let d=!0;for(let f=0;f<c.length;f++){let v=c.charCodeAt(f);if((v&64512)===55296&&f+1<c.length){const p=c.charCodeAt(++f);(p&64512)===56320&&(v=65536+((v&1023)<<10)+(p&1023))}if(d){if(d=!1,!i(v))return!1}else if(!l(v))return!1}return!d}return identifier}var keyword={},hasRequiredKeyword;function requireKeyword(){if(hasRequiredKeyword)return keyword;hasRequiredKeyword=1,Object.defineProperty(keyword,"__esModule",{value:!0}),keyword.isKeyword=l,keyword.isReservedWord=r,keyword.isStrictBindOnlyReservedWord=s,keyword.isStrictBindReservedWord=i,keyword.isStrictReservedWord=o;const e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},n=new Set(e.keyword),t=new Set(e.strict),a=new Set(e.strictBind);function r(u,c){return c&&u==="await"||u==="enum"}function o(u,c){return r(u,c)||t.has(u)}function s(u){return a.has(u)}function i(u,c){return o(u,c)||s(u)}function l(u){return n.has(u)}return keyword}var hasRequiredLib$1;function requireLib$1(){return hasRequiredLib$1||(hasRequiredLib$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}});var n=requireIdentifier(),t=requireKeyword()}(lib)),lib}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$1;hasRequiredLib=1;var e={};Object.defineProperty(lib$1,"__esModule",{value:!0});var n=requirePicocolors_browser(),t=requireJsTokens(),a=requireLib$1();function r(){return typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?!1:n.isColorSupported}const o=(S,k)=>V=>S(k(V));function s(S){return{keyword:S.cyan,capitalized:S.yellow,jsxIdentifier:S.yellow,punctuator:S.yellow,number:S.magenta,string:S.green,regex:S.magenta,comment:S.gray,invalid:o(o(S.white,S.bgRed),S.bold),gutter:S.gray,marker:o(S.red,S.bold),message:o(S.red,S.bold),reset:S.reset}}const i=s(n.createColors(!0)),l=s(n.createColors(!1));function u(S){return S?i:l}const c=new Set(["as","async","from","get","of","set"]),d=/\r\n|[\n\r\u2028\u2029]/,f=/^[()[\]{}]$/;let v;{const S=/^[a-z][\w-]*$/i,k=function(V,L,$){if(V.type==="name"){if(a.isKeyword(V.value)||a.isStrictReservedWord(V.value,!0)||c.has(V.value))return"keyword";if(S.test(V.value)&&($[L-1]==="<"||$.slice(L-2,L)==="</"))return"jsxIdentifier";if(V.value[0]!==V.value[0].toLowerCase())return"capitalized"}return V.type==="punctuator"&&f.test(V.value)?"bracket":V.type==="invalid"&&(V.value==="@"||V.value==="#")?"punctuator":V.type};v=function*(V){let L;for(;L=t.default.exec(V);){const $=t.matchToToken(L);yield{type:k($,L.index,V),value:$.value}}}}function p(S){if(S==="")return"";const k=u(!0);let V="";for(const{type:L,value:$}of v(S))L in k?V+=$.split(d).map(A=>k[L](A)).join(`
|
|
173
|
-
`):V+=$;return V}let h=!1;const
|
|
173
|
+
`):V+=$;return V}let h=!1;const m=/\r\n|[\n\r\u2028\u2029]/;function _(S,k,V){const L=Object.assign({column:0,line:-1},S.start),$=Object.assign({},L,S.end),{linesAbove:A=2,linesBelow:F=3}=V||{},P=L.line,q=L.column,M=$.line,j=$.column;let Q=Math.max(P-(A+1),0),J=Math.min(k.length,M+F);P===-1&&(Q=0),M===-1&&(J=k.length);const W=M-P,C={};if(W)for(let E=0;E<=W;E++){const T=E+P;if(!q)C[T]=!0;else if(E===0){const z=k[T-1].length;C[T]=[q,z-q+1]}else if(E===W)C[T]=[0,j];else{const z=k[T-E].length;C[T]=[0,z]}}else q===j?q?C[P]=[q,0]:C[P]=!0:C[P]=[q,j-q];return{start:Q,end:J,markerLines:C}}function g(S,k,V={}){const L=V.forceColor||r()&&V.highlightCode,$=u(L),A=S.split(m),{start:F,end:P,markerLines:q}=_(k,A,V),M=k.start&&typeof k.start.column=="number",j=String(P).length;let J=(L?p(S):S).split(m,P).slice(F,P).map((W,C)=>{const E=F+1+C,z=` ${` ${E}`.slice(-j)} |`,Y=q[E],w=!q[E+1];if(Y){let B="";if(Array.isArray(Y)){const N=W.slice(0,Math.max(Y[0]-1,0)).replace(/[^\t]/g," "),D=Y[1]||1;B=[`
|
|
174
174
|
`,$.gutter(z.replace(/\d/g," "))," ",N,$.marker("^").repeat(D)].join(""),w&&V.message&&(B+=" "+$.message(V.message))}return[$.marker(">"),$.gutter(z),W.length>0?` ${W}`:"",B].join("")}else return` ${$.gutter(z)}${W.length>0?` ${W}`:""}`}).join(`
|
|
175
175
|
`);return V.message&&!M&&(J=`${" ".repeat(j+1)}${V.message}
|
|
176
|
-
${J}`),L?$.reset(J):J}function b(S,k,V,L={}){if(!h){h=!0;const A="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(A,"DeprecationWarning");else{const F=new Error(A);F.name="DeprecationWarning",console.warn(new Error(A))}}return V=Math.max(V,0),
|
|
176
|
+
${J}`),L?$.reset(J):J}function b(S,k,V,L={}){if(!h){h=!0;const A="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(A,"DeprecationWarning");else{const F=new Error(A);F.name="DeprecationWarning",console.warn(new Error(A))}}return V=Math.max(V,0),g(S,{start:{column:V,line:k}},L)}return lib$1.codeFrameColumns=g,lib$1.default=b,lib$1.highlight=p,lib$1}var parseJson_1,hasRequiredParseJson;function requireParseJson(){if(hasRequiredParseJson)return parseJson_1;hasRequiredParseJson=1;const e=requireErrorEx(),n=requireJsonParseEvenBetterErrors(),{default:t}=requireBuild(),{codeFrameColumns:a}=requireLib(),r=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append(`
|
|
177
177
|
|
|
178
178
|
%s
|
|
179
179
|
`)}),o=(s,i,l)=>{typeof i=="string"&&(l=i,i=null);try{try{return JSON.parse(s,i)}catch(u){throw n(s,i),u}}catch(u){u.message=u.message.replace(/\n/g,"");const c=u.message.match(/in JSON at position (\d+) while parsing/),d=new r(u);if(l&&(d.fileName=l),c&&c.length>0){const f=new t(s),v=Number(c[1]),p=f.locationForIndex(v),h=a(s,{start:{line:p.line+1,column:p.column+1}},{highlightCode:!0});d.codeFrame=h}throw d}};return o.JSONError=r,parseJson_1=o,parseJson_1}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),e}function _defineProperty(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&_setPrototypeOf(e,n)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},_setPrototypeOf(e,n)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,n,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(r,o,s){var i=[null];i.push.apply(i,o);var l=Function.bind.apply(r,i),u=new l;return s&&_setPrototypeOf(u,s.prototype),u},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var n=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(a){if(a===null||!_isNativeFunction(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(a))return n.get(a);n.set(a,r)}function r(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,a)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,n){return n&&(typeof n=="object"||typeof n=="function")?n:_assertThisInitialized(e)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var a=_getPrototypeOf(e),r;if(n){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&(e=_getPrototypeOf(e),e!==null););return e}function _get(e,n,t){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(r,o,s){var i=_superPropBase(r,o);if(i){var l=Object.getOwnPropertyDescriptor(i,o);return l.get?l.get.call(s):l.value}},_get(e,n,t||e)}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _iterableToArrayLimit(e,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var t=[],a=!0,r=!1,o=void 0;try{for(var s=e[Symbol.iterator](),i;!(a=(i=s.next()).done)&&(t.push(i.value),!(n&&t.length===n));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&s.return!=null&&s.return()}finally{if(r)throw o}}return t}}function _unsupportedIterableToArray(e,n){if(e){if(typeof e=="string")return _arrayLikeToArray(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,n)}}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -206,58 +206,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
206
206
|
`.concat(c,`
|
|
207
207
|
`))}delete this.source}}}]),t}(_wrapNativeSuper(Error)),YAMLReferenceError=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){return _classCallCheck(this,t),n.call(this,"YAMLReferenceError",a,r)}return t}(YAMLError),YAMLSemanticError=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){return _classCallCheck(this,t),n.call(this,"YAMLSemanticError",a,r)}return t}(YAMLError),YAMLSyntaxError=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){return _classCallCheck(this,t),n.call(this,"YAMLSyntaxError",a,r)}return t}(YAMLError),YAMLWarning=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){return _classCallCheck(this,t),n.call(this,"YAMLWarning",a,r)}return t}(YAMLError),PlainValue=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var r=this.valueRange,o=r.start,s=r.end,i=this.context.src,l=i[s-1];o<s&&(l===`
|
|
208
208
|
`||l===" "||l===" ");)l=i[--s-1];for(var u="",c=o;c<s;++c){var d=i[c];if(d===`
|
|
209
|
-
`){var f=Node$1.foldNewline(i,c,-1),v=f.fold,p=f.offset;u+=v,c=p}else if(d===" "||d===" "){for(var h=c,
|
|
210
|
-
`&&(u+=c>h?i.slice(h,c+1):d)}else u+=d}var
|
|
209
|
+
`){var f=Node$1.foldNewline(i,c,-1),v=f.fold,p=f.offset;u+=v,c=p}else if(d===" "||d===" "){for(var h=c,m=i[c+1];c<s&&(m===" "||m===" ");)c+=1,m=i[c+1];m!==`
|
|
210
|
+
`&&(u+=c>h?i.slice(h,c+1):d)}else u+=d}var _=i[o];switch(_){case" ":{var g="Plain value cannot start with a tab character",b=[new YAMLSemanticError(this,g)];return{errors:b,str:u}}case"@":case"`":{var S="Plain value cannot start with reserved character ".concat(_),k=[new YAMLSemanticError(this,S)];return{errors:k,str:u}}default:return u}}},{key:"parseBlockValue",value:function(r){for(var o=this.context,s=o.indent,i=o.inFlow,l=o.src,u=r,c=r,d=l[u];d===`
|
|
211
211
|
`&&!Node$1.atDocumentBoundary(l,u+1);d=l[u]){var f=Node$1.endOfBlockIndent(l,s,u+1);if(f===null||l[f]==="#")break;l[f]===`
|
|
212
212
|
`?u=f:(c=t.endOfLine(l,f,i),u=c)}return this.valueRange.isEmpty()&&(this.valueRange.start=r),this.valueRange.end=c,c}},{key:"parse",value:function(r,o){this.context=r;var s=r.inFlow,i=r.src,l=o,u=i[l];return u&&u!=="#"&&u!==`
|
|
213
213
|
`&&(l=t.endOfLine(i,o,s)),this.valueRange=new Range(o,l),l=Node$1.endOfWhiteSpace(i,l),l=this.parseComment(l),(!this.hasComment||this.valueRange.isEmpty())&&(l=this.parseBlockValue(l)),l}}],[{key:"endOfLine",value:function(r,o,s){for(var i=r[o],l=o;i&&i!==`
|
|
214
214
|
`&&!(s&&(i==="["||i==="]"||i==="{"||i==="}"||i===","));){var u=r[l+1];if(i===":"&&(!u||u===`
|
|
215
215
|
`||u===" "||u===" "||s&&u===",")||(i===" "||i===" ")&&u==="#")break;l+=1,i=u}return l}}]),t}(Node$1),BlankLine=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.call(this,Type.BLANK_LINE)}return _createClass(t,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(r,o){return this.context=r,this.range=new Range(o,o+1),o+1}}]),t}(Node$1),CollectionItem=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){var o;return _classCallCheck(this,t),o=n.call(this,a,r),o.node=null,o}return _createClass(t,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(r,o){this.context=r;var s=r.parseNode,i=r.src,l=r.atLineStart,u=r.lineStart;!l&&this.type===Type.SEQ_ITEM&&(this.error=new YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var c=l?o-u:r.indent,d=Node$1.endOfWhiteSpace(i,o+1),f=i[d],v=f==="#",p=[],h=null;f===`
|
|
216
|
-
`||f==="#";){if(f==="#"){var
|
|
217
|
-
`&&p.length===0&&(h=new BlankLine,u=h.parse({src:i},u)),d=Node$1.endOfIndent(i,u)}f=i[d]}if(Node$1.nextNodeIsIndented(f,d-(u+c),this.type!==Type.SEQ_ITEM)?this.node=s({atLineStart:l,inCollection:!1,indent:c,lineStart:u,parent:this},d):f&&u>o+1&&(d=u-1),this.node){if(h){var
|
|
216
|
+
`||f==="#";){if(f==="#"){var m=Node$1.endOfLine(i,d+1);p.push(new Range(d,m)),d=m}else{l=!0,u=d+1;var _=Node$1.endOfWhiteSpace(i,u);i[_]===`
|
|
217
|
+
`&&p.length===0&&(h=new BlankLine,u=h.parse({src:i},u)),d=Node$1.endOfIndent(i,u)}f=i[d]}if(Node$1.nextNodeIsIndented(f,d-(u+c),this.type!==Type.SEQ_ITEM)?this.node=s({atLineStart:l,inCollection:!1,indent:c,lineStart:u,parent:this},d):f&&u>o+1&&(d=u-1),this.node){if(h){var g=r.parent.items||r.parent.contents;g&&g.push(h)}p.length&&Array.prototype.push.apply(this.props,p),d=this.node.range.end}else if(v){var b=p[0];this.props.push(b),d=b.end}else d=Node$1.endOfLine(i,o+1);var S=this.node?this.node.valueRange.end:d;return this.valueRange=new Range(o,S),d}},{key:"setOrigRanges",value:function(r,o){return o=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,r,o),this.node?this.node.setOrigRanges(r,o):o}},{key:"toString",value:function(){var r=this.context.src,o=this.node,s=this.range,i=this.value;if(i!=null)return i;var l=o?r.slice(s.start,o.range.start)+String(o):r.slice(s.start,s.end);return Node$1.addStringTerminator(r,s.end,l)}}]),t}(Node$1),Comment=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.call(this,Type.COMMENT)}return _createClass(t,[{key:"parse",value:function(r,o){this.context=r;var s=this.parseComment(o);return this.range=new Range(o,s),s}}]),t}(Node$1);function grabCollectionEndComments(e){for(var n=e;n instanceof CollectionItem;)n=n.node;if(!(n instanceof Collection$1))return null;for(var t=n.items.length,a=-1,r=t-1;r>=0;--r){var o=n.items[r];if(o.type===Type.COMMENT){var s=o.context,i=s.indent,l=s.lineStart;if(i>0&&o.range.start>=l+i)break;a=r}else if(o.type===Type.BLANK_LINE)a=r;else break}if(a===-1)return null;for(var u=n.items.splice(a,t-a),c=u[0].range.start;n.range.end=c,n.valueRange&&n.valueRange.end>c&&(n.valueRange.end=c),n!==e;)n=n.context.parent;return u}var Collection$1=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;_classCallCheck(this,t),r=n.call(this,a.type===Type.SEQ_ITEM?Type.SEQ:Type.MAP);for(var o=a.props.length-1;o>=0;--o)if(a.props[o].start<a.context.lineStart){r.props=a.props.slice(0,o+1),a.props=a.props.slice(o+1);var s=a.props[0]||a.valueRange;a.range.start=s.start;break}r.items=[a];var i=grabCollectionEndComments(a);return i&&Array.prototype.push.apply(r.items,i),r}return _createClass(t,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(r,o){this.context=r;var s=r.parseNode,i=r.src,l=Node$1.startOfLine(i,o),u=this.items[0];u.context.parent=this,this.valueRange=Range.copy(u.valueRange);var c=u.range.start-u.context.lineStart,d=o;d=Node$1.normalizeOffset(i,d);for(var f=i[d],v=Node$1.endOfWhiteSpace(i,l)===d,p=!1;f;){for(;f===`
|
|
218
218
|
`||f==="#";){if(v&&f===`
|
|
219
|
-
`&&!p){var h=new BlankLine;if(d=h.parse({src:i},d),this.valueRange.end=d,d>=i.length){f=null;break}this.items.push(h),d-=1}else if(f==="#"){if(d<l+c&&!t.nextContentHasIndent(i,d,c))return d;var
|
|
220
|
-
`||
|
|
219
|
+
`&&!p){var h=new BlankLine;if(d=h.parse({src:i},d),this.valueRange.end=d,d>=i.length){f=null;break}this.items.push(h),d-=1}else if(f==="#"){if(d<l+c&&!t.nextContentHasIndent(i,d,c))return d;var m=new Comment;if(d=m.parse({indent:c,lineStart:l,src:i},d),this.items.push(m),this.valueRange.end=d,d>=i.length){f=null;break}}if(l=d+1,d=Node$1.endOfIndent(i,l),Node$1.atBlank(i,d)){var _=Node$1.endOfWhiteSpace(i,d),g=i[_];(!g||g===`
|
|
220
|
+
`||g==="#")&&(d=_)}f=i[d],v=!0}if(!f)break;if(d!==l+c&&(v||f!==":")){if(d<l+c){l>o&&(d=l);break}else if(!this.error){var b="All collection items must start at the same column";this.error=new YAMLSyntaxError(this,b)}}if(u.type===Type.SEQ_ITEM){if(f!=="-"){l>o&&(d=l);break}}else if(f==="-"&&!this.error){var S=i[d+1];if(!S||S===`
|
|
221
221
|
`||S===" "||S===" "){var k="A collection cannot be both a mapping and a sequence";this.error=new YAMLSyntaxError(this,k)}}var V=s({atLineStart:v,inCollection:!0,indent:c,lineStart:l,parent:this},d);if(!V)return d;if(this.items.push(V),this.valueRange.end=V.valueRange.end,d=Node$1.normalizeOffset(i,V.range.end),f=i[d],v=!1,p=V.includesTrailingLines,f){for(var L=d-1,$=i[L];$===" "||$===" ";)$=i[--L];$===`
|
|
222
222
|
`&&(l=L+1,v=!0)}var A=grabCollectionEndComments(V);A&&Array.prototype.push.apply(this.items,A)}return d}},{key:"setOrigRanges",value:function(r,o){return o=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,r,o),this.items.forEach(function(s){o=s.setOrigRanges(r,o)}),o}},{key:"toString",value:function(){var r=this.context.src,o=this.items,s=this.range,i=this.value;if(i!=null)return i;for(var l=r.slice(s.start,o[0].range.start)+String(o[0]),u=1;u<o.length;++u){var c=o[u],d=c.context,f=d.atLineStart,v=d.indent;if(f)for(var p=0;p<v;++p)l+=" ";l+=String(c)}return Node$1.addStringTerminator(r,s.end,l)}}],[{key:"nextContentHasIndent",value:function(r,o,s){var i=Node$1.endOfLine(r,o)+1;o=Node$1.endOfWhiteSpace(r,i);var l=r[o];return l?o>=i+s?!0:l!=="#"&&l!==`
|
|
223
223
|
`?!1:t.nextContentHasIndent(r,o,s):!1}}]),t}(Node$1),Directive=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this,Type.DIRECTIVE),a.name=null,a}return _createClass(t,[{key:"parameters",get:function(){var r=this.rawValue;return r?r.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(r){for(var o=this.context.src,s=r,i=o[s];i&&i!==`
|
|
224
224
|
`&&i!==" "&&i!==" ";)i=o[s+=1];return this.name=o.slice(r,s),s}},{key:"parseParameters",value:function(r){for(var o=this.context.src,s=r,i=o[s];i&&i!==`
|
|
225
225
|
`&&i!=="#";)i=o[s+=1];return this.valueRange=new Range(r,s),s}},{key:"parse",value:function(r,o){this.context=r;var s=this.parseName(o+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new Range(o,s),s}}]),t}(Node$1),Document$2=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this,Type.DOCUMENT),a.directives=null,a.contents=null,a.directivesEndMarker=null,a.documentEndMarker=null,a}return _createClass(t,[{key:"parseDirectives",value:function(r){var o=this.context.src;this.directives=[];for(var s=!0,i=!1,l=r;!Node$1.atDocumentBoundary(o,l,Char.DIRECTIVES_END);)switch(l=t.startCommentOrEndBlankLine(o,l),o[l]){case`
|
|
226
226
|
`:if(s){var u=new BlankLine;l=u.parse({src:o},l),l<o.length&&this.directives.push(u)}else l+=1,s=!0;break;case"#":{var c=new Comment;l=c.parse({src:o},l),this.directives.push(c),s=!1}break;case"%":{var d=new Directive;l=d.parse({parent:this,src:o},l),this.directives.push(d),i=!0,s=!1}break;default:return i?this.error=new YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l}return o[l]?(this.directivesEndMarker=new Range(l,l+3),l+3):(i?this.error=new YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),l)}},{key:"parseContents",value:function(r){var o=this.context,s=o.parseNode,i=o.src;this.contents||(this.contents=[]);for(var l=r;i[l-1]==="-";)l-=1;var u=Node$1.endOfWhiteSpace(i,r),c=l===r;for(this.valueRange=new Range(u);!Node$1.atDocumentBoundary(i,u,Char.DOCUMENT_END);){switch(i[u]){case`
|
|
227
|
-
`:if(c){var d=new BlankLine;u=d.parse({src:i},u),u<i.length&&this.contents.push(d)}else u+=1,c=!0;l=u;break;case"#":{var f=new Comment;u=f.parse({src:i},u),this.contents.push(f),c=!1}break;default:{var v=Node$1.endOfIndent(i,u),p={atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:l,parent:this},h=s(p,v);if(!h)return this.valueRange.end=v;this.contents.push(h),u=h.range.end,c=!1;var
|
|
227
|
+
`:if(c){var d=new BlankLine;u=d.parse({src:i},u),u<i.length&&this.contents.push(d)}else u+=1,c=!0;l=u;break;case"#":{var f=new Comment;u=f.parse({src:i},u),this.contents.push(f),c=!1}break;default:{var v=Node$1.endOfIndent(i,u),p={atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:l,parent:this},h=s(p,v);if(!h)return this.valueRange.end=v;this.contents.push(h),u=h.range.end,c=!1;var m=grabCollectionEndComments(h);m&&Array.prototype.push.apply(this.contents,m)}}u=t.startCommentOrEndBlankLine(i,u)}if(this.valueRange.end=u,i[u]&&(this.documentEndMarker=new Range(u,u+3),u+=3,i[u])){if(u=Node$1.endOfWhiteSpace(i,u),i[u]==="#"){var _=new Comment;u=_.parse({src:i},u),this.contents.push(_)}switch(i[u]){case`
|
|
228
228
|
`:u+=1;break;case void 0:break;default:this.error=new YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return u}},{key:"parse",value:function(r,o){r.root=this,this.context=r;var s=r.src,i=s.charCodeAt(o)===65279?o+1:o;return i=this.parseDirectives(i),i=this.parseContents(i),i}},{key:"setOrigRanges",value:function(r,o){return o=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,r,o),this.directives.forEach(function(s){o=s.setOrigRanges(r,o)}),this.directivesEndMarker&&(o=this.directivesEndMarker.setOrigRange(r,o)),this.contents.forEach(function(s){o=s.setOrigRanges(r,o)}),this.documentEndMarker&&(o=this.documentEndMarker.setOrigRange(r,o)),o}},{key:"toString",value:function(){var r=this.contents,o=this.directives,s=this.value;if(s!=null)return s;var i=o.join("");return r.length>0&&((o.length>0||r[0].type===Type.COMMENT)&&(i+=`---
|
|
229
229
|
`),i+=r.join("")),i[i.length-1]!==`
|
|
230
230
|
`&&(i+=`
|
|
231
231
|
`),i}}],[{key:"startCommentOrEndBlankLine",value:function(r,o){var s=Node$1.endOfWhiteSpace(r,o),i=r[s];return i==="#"||i===`
|
|
232
232
|
`?s:o}}]),t}(Node$1),Alias$1=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"parse",value:function(r,o){this.context=r;var s=r.src,i=Node$1.endOfIdentifier(s,o+1);return this.valueRange=new Range(o+1,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}]),t}(Node$1),Chomp={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},BlockValue=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){var o;return _classCallCheck(this,t),o=n.call(this,a,r),o.blockIndent=null,o.chomping=Chomp.CLIP,o.header=null,o}return _createClass(t,[{key:"includesTrailingLines",get:function(){return this.chomping===Chomp.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var r=this.valueRange,o=r.start,s=r.end,i=this.context,l=i.indent,u=i.src;if(this.valueRange.isEmpty())return"";for(var c=null,d=u[s-1];d===`
|
|
233
233
|
`||d===" "||d===" ";){if(s-=1,s<=o){if(this.chomping===Chomp.KEEP)break;return""}d===`
|
|
234
|
-
`&&(c=s),d=u[s-1]}var f=s+1;c&&(this.chomping===Chomp.KEEP?(f=c,s=this.valueRange.end):s=c);for(var v=l+this.blockIndent,p=this.type===Type.BLOCK_FOLDED,h=!0,
|
|
235
|
-
`)
|
|
236
|
-
`?
|
|
237
|
-
`:
|
|
238
|
-
`;else{var V=Node$1.endOfLine(u,b),L=u.slice(b,V);b=V,p&&(k===" "||k===" ")&&b<f?(
|
|
239
|
-
`:!
|
|
240
|
-
`&&(
|
|
234
|
+
`&&(c=s),d=u[s-1]}var f=s+1;c&&(this.chomping===Chomp.KEEP?(f=c,s=this.valueRange.end):s=c);for(var v=l+this.blockIndent,p=this.type===Type.BLOCK_FOLDED,h=!0,m="",_="",g=!1,b=o;b<s;++b){for(var S=0;S<v&&u[b]===" ";++S)b+=1;var k=u[b];if(k===`
|
|
235
|
+
`)_===`
|
|
236
|
+
`?m+=`
|
|
237
|
+
`:_=`
|
|
238
|
+
`;else{var V=Node$1.endOfLine(u,b),L=u.slice(b,V);b=V,p&&(k===" "||k===" ")&&b<f?(_===" "?_=`
|
|
239
|
+
`:!g&&!h&&_===`
|
|
240
|
+
`&&(_=`
|
|
241
241
|
|
|
242
|
-
`),
|
|
243
|
-
`,
|
|
242
|
+
`),m+=_+L,_=V<s&&u[V]||"",g=!0):(m+=_+L,_=p&&b<f?" ":`
|
|
243
|
+
`,g=!1),h&&L!==""&&(h=!1)}}return this.chomping===Chomp.STRIP?m:m+`
|
|
244
244
|
`}},{key:"parseBlockHeader",value:function(r){for(var o=this.context.src,s=r+1,i="";;){var l=o[s];switch(l){case"-":this.chomping=Chomp.STRIP;break;case"+":this.chomping=Chomp.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=l;break;default:return this.blockIndent=Number(i)||null,this.header=new Range(r,s),s}s+=1}}},{key:"parseBlockValue",value:function(r){for(var o=this.context,s=o.indent,i=o.src,l=!!this.blockIndent,u=r,c=r,d=1,f=i[u];f===`
|
|
245
245
|
`&&(u+=1,!Node$1.atDocumentBoundary(i,u));f=i[u]){var v=Node$1.endOfBlockIndent(i,s,u);if(v===null)break;var p=i[v],h=v-(u+s);if(this.blockIndent){if(p&&p!==`
|
|
246
|
-
`&&h<this.blockIndent){if(i[v]==="#")break;if(!this.error){var
|
|
247
|
-
`){if(h<d){var
|
|
246
|
+
`&&h<this.blockIndent){if(i[v]==="#")break;if(!this.error){var _=l?"explicit indentation indicator":"first line",g="Block scalars must not be less indented than their ".concat(_);this.error=new YAMLSemanticError(this,g)}}}else if(i[v]!==`
|
|
247
|
+
`){if(h<d){var m="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new YAMLSemanticError(this,m)}this.blockIndent=h}else h>d&&(d=h);i[v]===`
|
|
248
248
|
`?u=v:u=c=Node$1.endOfLine(i,v)}return this.chomping!==Chomp.KEEP&&(u=i[c]?c+1:c),this.valueRange=new Range(r+1,u),u}},{key:"parse",value:function(r,o){this.context=r;var s=r.src,i=this.parseBlockHeader(o);return i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}},{key:"setOrigRanges",value:function(r,o){return o=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,r,o),this.header?this.header.setOrigRange(r,o):o}}]),t}(Node$1),FlowCollection=function(e){_inherits(t,e);var n=_createSuper(t);function t(a,r){var o;return _classCallCheck(this,t),o=n.call(this,a,r),o.items=null,o}return _createClass(t,[{key:"prevNodeIsJsonLike",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,o=this.items[r-1];return!!o&&(o.jsonLike||o.type===Type.COMMENT&&this.prevNodeIsJsonLike(r-1))}},{key:"parse",value:function(r,o){this.context=r;var s=r.parseNode,i=r.src,l=r.indent,u=r.lineStart,c=i[o];this.items=[{char:c,offset:o}];var d=Node$1.endOfWhiteSpace(i,o+1);for(c=i[d];c&&c!=="]"&&c!=="}";){switch(c){case`
|
|
249
249
|
`:{u=d+1;var f=Node$1.endOfWhiteSpace(i,u);if(i[f]===`
|
|
250
|
-
`){var v=new BlankLine;u=v.parse({src:i},u),this.items.push(v)}if(d=Node$1.endOfIndent(i,u),d<=u+l&&(c=i[d],d<u+l||c!=="]"&&c!=="}")){var p="Insufficient indentation in flow collection";this.error=new YAMLSemanticError(this,p)}}break;case",":this.items.push({char:c,offset:d}),d+=1;break;case"#":{var h=new Comment;d=h.parse({src:i},d),this.items.push(h)}break;case"?":case":":{var
|
|
251
|
-
`||
|
|
250
|
+
`){var v=new BlankLine;u=v.parse({src:i},u),this.items.push(v)}if(d=Node$1.endOfIndent(i,u),d<=u+l&&(c=i[d],d<u+l||c!=="]"&&c!=="}")){var p="Insufficient indentation in flow collection";this.error=new YAMLSemanticError(this,p)}}break;case",":this.items.push({char:c,offset:d}),d+=1;break;case"#":{var h=new Comment;d=h.parse({src:i},d),this.items.push(h)}break;case"?":case":":{var m=i[d+1];if(m===`
|
|
251
|
+
`||m===" "||m===" "||m===","||c===":"&&this.prevNodeIsJsonLike()){this.items.push({char:c,offset:d}),d+=1;break}}default:{var _=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:u,parent:this},d);if(!_)return this.valueRange=new Range(o,d),d;this.items.push(_),d=Node$1.normalizeOffset(i,_.range.end)}}d=Node$1.endOfWhiteSpace(i,d),c=i[d]}return this.valueRange=new Range(o,d+1),c&&(this.items.push({char:c,offset:d}),d=Node$1.endOfWhiteSpace(i,d+1),d=this.parseComment(d)),d}},{key:"setOrigRanges",value:function(r,o){return o=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,r,o),this.items.forEach(function(s){if(s instanceof Node$1)o=s.setOrigRanges(r,o);else if(r.length===0)s.origOffset=s.offset;else{for(var i=o;i<r.length&&!(r[i]>s.offset);)++i;s.origOffset=s.offset+i,o=i}}),o}},{key:"toString",value:function(){var r=this.context.src,o=this.items,s=this.range,i=this.value;if(i!=null)return i;var l=o.filter(function(d){return d instanceof Node$1}),u="",c=s.start;return l.forEach(function(d){var f=r.slice(c,d.range.start);c=d.range.end,u+=f+String(d),u[u.length-1]===`
|
|
252
252
|
`&&r[c-1]!==`
|
|
253
253
|
`&&r[c]===`
|
|
254
254
|
`&&(c+=1)}),u+=r.slice(c,s.end),Node$1.addStringTerminator(r,s.end,u)}}]),t}(Node$1),QuoteDouble=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var r=[],o=this.valueRange,s=o.start,i=o.end,l=this.context,u=l.indent,c=l.src;c[i-1]!=='"'&&r.push(new YAMLSyntaxError(this,'Missing closing "quote'));for(var d="",f=s+1;f<i-1;++f){var v=c[f];if(v===`
|
|
255
|
-
`){Node$1.atDocumentBoundary(c,f+1)&&r.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var p=Node$1.foldNewline(c,f,u),h=p.fold,
|
|
255
|
+
`){Node$1.atDocumentBoundary(c,f+1)&&r.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var p=Node$1.foldNewline(c,f,u),h=p.fold,m=p.offset,_=p.error;d+=h,f=m,_&&r.push(new YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(v==="\\")switch(f+=1,c[f]){case"0":d+="\0";break;case"a":d+="\x07";break;case"b":d+="\b";break;case"e":d+="\x1B";break;case"f":d+="\f";break;case"n":d+=`
|
|
256
256
|
`;break;case"r":d+="\r";break;case"t":d+=" ";break;case"v":d+="\v";break;case"N":d+="
";break;case"_":d+=" ";break;case"L":d+="\u2028";break;case"P":d+="\u2029";break;case" ":d+=" ";break;case'"':d+='"';break;case"/":d+="/";break;case"\\":d+="\\";break;case" ":d+=" ";break;case"x":d+=this.parseCharCode(f+1,2,r),f+=2;break;case"u":d+=this.parseCharCode(f+1,4,r),f+=4;break;case"U":d+=this.parseCharCode(f+1,8,r),f+=8;break;case`
|
|
257
|
-
`:for(;c[f+1]===" "||c[f+1]===" ";)f+=1;break;default:r.push(new YAMLSyntaxError(this,"Invalid escape sequence ".concat(c.substr(f-1,2)))),d+="\\"+c[f]}else if(v===" "||v===" "){for(var
|
|
258
|
-
`&&(d+=f>
|
|
259
|
-
`){Node$1.atDocumentBoundary(c,f+1)&&r.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var p=Node$1.foldNewline(c,f,u),h=p.fold,
|
|
260
|
-
`&&(d+=f>
|
|
257
|
+
`:for(;c[f+1]===" "||c[f+1]===" ";)f+=1;break;default:r.push(new YAMLSyntaxError(this,"Invalid escape sequence ".concat(c.substr(f-1,2)))),d+="\\"+c[f]}else if(v===" "||v===" "){for(var g=f,b=c[f+1];b===" "||b===" ";)f+=1,b=c[f+1];b!==`
|
|
258
|
+
`&&(d+=f>g?c.slice(g,f+1):v)}else d+=v}return r.length>0?{errors:r,str:d}:d}},{key:"parseCharCode",value:function(r,o,s){var i=this.context.src,l=i.substr(r,o),u=l.length===o&&/^[0-9a-fA-F]+$/.test(l),c=u?parseInt(l,16):NaN;return isNaN(c)?(s.push(new YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(r-2,o+2)))),i.substr(r-2,o+2)):String.fromCodePoint(c)}},{key:"parse",value:function(r,o){this.context=r;var s=r.src,i=t.endOfQuote(s,o+1);return this.valueRange=new Range(o,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}],[{key:"endOfQuote",value:function(r,o){for(var s=r[o];s&&s!=='"';)o+=s==="\\"?2:1,s=r[o];return o+1}}]),t}(Node$1),QuoteSingle=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var r=[],o=this.valueRange,s=o.start,i=o.end,l=this.context,u=l.indent,c=l.src;c[i-1]!=="'"&&r.push(new YAMLSyntaxError(this,"Missing closing 'quote"));for(var d="",f=s+1;f<i-1;++f){var v=c[f];if(v===`
|
|
259
|
+
`){Node$1.atDocumentBoundary(c,f+1)&&r.push(new YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var p=Node$1.foldNewline(c,f,u),h=p.fold,m=p.offset,_=p.error;d+=h,f=m,_&&r.push(new YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(v==="'")d+=v,f+=1,c[f]!=="'"&&r.push(new YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(v===" "||v===" "){for(var g=f,b=c[f+1];b===" "||b===" ";)f+=1,b=c[f+1];b!==`
|
|
260
|
+
`&&(d+=f>g?c.slice(g,f+1):v)}else d+=v}return r.length>0?{errors:r,str:d}:d}},{key:"parse",value:function(r,o){this.context=r;var s=r.src,i=t.endOfQuote(s,o+1);return this.valueRange=new Range(o,i),i=Node$1.endOfWhiteSpace(s,i),i=this.parseComment(i),i}}],[{key:"endOfQuote",value:function(r,o){for(var s=r[o];s;)if(s==="'"){if(r[o+1]!=="'")break;s=r[o+=2]}else s=r[o+=1];return o+1}}]),t}(Node$1);function createNewNode(e,n){switch(e){case Type.ALIAS:return new Alias$1(e,n);case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:return new BlockValue(e,n);case Type.FLOW_MAP:case Type.FLOW_SEQ:return new FlowCollection(e,n);case Type.MAP_KEY:case Type.MAP_VALUE:case Type.SEQ_ITEM:return new CollectionItem(e,n);case Type.COMMENT:case Type.PLAIN:return new PlainValue(e,n);case Type.QUOTE_DOUBLE:return new QuoteDouble(e,n);case Type.QUOTE_SINGLE:return new QuoteSingle(e,n);default:return null}}var ParseContext=function(){function e(){var n=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=a.atLineStart,o=a.inCollection,s=a.inFlow,i=a.indent,l=a.lineStart,u=a.parent;_classCallCheck(this,e),_defineProperty(this,"parseNode",function(c,d){if(Node$1.atDocumentBoundary(n.src,d))return null;var f=new e(n,c),v=f.parseProps(d),p=v.props,h=v.type,m=v.valueStart,_=createNewNode(h,p),g=_.parse(f,m);if(_.range=new Range(d,g),g<=d&&(_.error=new Error("Node#parse consumed no characters"),_.error.parseEnd=g,_.error.source=_,_.range.end=d+1),f.nodeStartsCollection(_)){!_.error&&!f.atLineStart&&f.parent.type===Type.DOCUMENT&&(_.error=new YAMLSyntaxError(_,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var b=new Collection$1(_);return g=b.parse(new e(f),g),b.range=new Range(d,g),b}return _}),this.atLineStart=r??(t.atLineStart||!1),this.inCollection=o??(t.inCollection||!1),this.inFlow=s??(t.inFlow||!1),this.indent=i??t.indent,this.lineStart=l??t.lineStart,this.parent=u??(t.parent||{}),this.root=t.root,this.src=t.src}return _createClass(e,[{key:"nodeStartsCollection",value:function(t){var a=this.inCollection,r=this.inFlow,o=this.src;if(a||r)return!1;if(t instanceof CollectionItem)return!0;var s=t.range.end;return o[s]===`
|
|
261
261
|
`||o[s-1]===`
|
|
262
262
|
`?!1:(s=Node$1.endOfWhiteSpace(o,s),o[s]===":")}},{key:"parseProps",value:function(t){var a=this.inFlow,r=this.parent,o=this.src,s=[],i=!1;t=this.atLineStart?Node$1.endOfIndent(o,t):Node$1.endOfWhiteSpace(o,t);for(var l=o[t];l===Char.ANCHOR||l===Char.COMMENT||l===Char.TAG||l===`
|
|
263
263
|
`;){if(l===`
|
|
@@ -267,25 +267,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
267
267
|
`)},t}function addCommentBefore(e,n,t){if(!t)return e;var a=t.replace(/[\s\S]^/gm,"$&".concat(n,"#"));return"#".concat(a,`
|
|
268
268
|
`).concat(n).concat(e)}function addComment(e,n,t){return t?t.indexOf(`
|
|
269
269
|
`)===-1?"".concat(e," #").concat(t):"".concat(e,`
|
|
270
|
-
`)+t.replace(/^/gm,"".concat(n||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,n,t){if(Array.isArray(e))return e.map(function(o,s){return toJSON(o,String(s),t)});if(e&&typeof e.toJSON=="function"){var a=t&&t.anchors&&t.anchors.get(e);a&&(t.onCreate=function(o){a.res=o,delete t.onCreate});var r=e.toJSON(n,t);return a&&t.onCreate&&t.onCreate(r),r}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;return _classCallCheck(this,t),r=n.call(this),r.value=a,r}return _createClass(t,[{key:"toJSON",value:function(r,o){return o&&o.keep?this.value:toJSON(this.value,r,o)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,n,t){for(var a=t,r=n.length-1;r>=0;--r){var o=n[r];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=a,a=s}else{var i={};Object.defineProperty(i,o,{value:a,writable:!0,enumerable:!0,configurable:!0}),a=i}}return e.createNode(a,!1)}var isEmptyPath=function e(n){return n==null||_typeof(n)==="object"&&n[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;return _classCallCheck(this,t),r=n.call(this),_defineProperty(_assertThisInitialized(r),"items",[]),r.schema=a,r}return _createClass(t,[{key:"addIn",value:function(r,o){if(isEmptyPath(r))this.add(o);else{var s=_toArray(r),i=s[0],l=s.slice(1),u=this.get(i,!0);if(u instanceof t)u.addIn(l,o);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,o));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"deleteIn",value:function(r){var o=_toArray(r),s=o[0],i=o.slice(1);if(i.length===0)return this.delete(s);var l=this.get(s,!0);if(l instanceof t)return l.deleteIn(i);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(i))}},{key:"getIn",value:function(r,o){var s=_toArray(r),i=s[0],l=s.slice(1),u=this.get(i,!0);return l.length===0?!o&&u instanceof Scalar?u.value:u:u instanceof t?u.getIn(l,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(r){if(!r||r.type!=="PAIR")return!1;var o=r.value;return o==null||o instanceof Scalar&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(r){var o=_toArray(r),s=o[0],i=o.slice(1);if(i.length===0)return this.has(s);var l=this.get(s,!0);return l instanceof t?l.hasIn(i):!1}},{key:"setIn",value:function(r,o){var s=_toArray(r),i=s[0],l=s.slice(1);if(l.length===0)this.set(i,o);else{var u=this.get(i,!0);if(u instanceof t)u.setIn(l,o);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,o));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(r,o,s,i){var l=this,u=o.blockItem,c=o.flowChars,d=o.isMap,f=o.itemIndent,v=r,p=v.indent,h=v.indentStep,
|
|
271
|
-
`)&&(S=!0),
|
|
270
|
+
`)+t.replace(/^/gm,"".concat(n||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,n,t){if(Array.isArray(e))return e.map(function(o,s){return toJSON(o,String(s),t)});if(e&&typeof e.toJSON=="function"){var a=t&&t.anchors&&t.anchors.get(e);a&&(t.onCreate=function(o){a.res=o,delete t.onCreate});var r=e.toJSON(n,t);return a&&t.onCreate&&t.onCreate(r),r}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;return _classCallCheck(this,t),r=n.call(this),r.value=a,r}return _createClass(t,[{key:"toJSON",value:function(r,o){return o&&o.keep?this.value:toJSON(this.value,r,o)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,n,t){for(var a=t,r=n.length-1;r>=0;--r){var o=n[r];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=a,a=s}else{var i={};Object.defineProperty(i,o,{value:a,writable:!0,enumerable:!0,configurable:!0}),a=i}}return e.createNode(a,!1)}var isEmptyPath=function e(n){return n==null||_typeof(n)==="object"&&n[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;return _classCallCheck(this,t),r=n.call(this),_defineProperty(_assertThisInitialized(r),"items",[]),r.schema=a,r}return _createClass(t,[{key:"addIn",value:function(r,o){if(isEmptyPath(r))this.add(o);else{var s=_toArray(r),i=s[0],l=s.slice(1),u=this.get(i,!0);if(u instanceof t)u.addIn(l,o);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,o));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"deleteIn",value:function(r){var o=_toArray(r),s=o[0],i=o.slice(1);if(i.length===0)return this.delete(s);var l=this.get(s,!0);if(l instanceof t)return l.deleteIn(i);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(i))}},{key:"getIn",value:function(r,o){var s=_toArray(r),i=s[0],l=s.slice(1),u=this.get(i,!0);return l.length===0?!o&&u instanceof Scalar?u.value:u:u instanceof t?u.getIn(l,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(r){if(!r||r.type!=="PAIR")return!1;var o=r.value;return o==null||o instanceof Scalar&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(r){var o=_toArray(r),s=o[0],i=o.slice(1);if(i.length===0)return this.has(s);var l=this.get(s,!0);return l instanceof t?l.hasIn(i):!1}},{key:"setIn",value:function(r,o){var s=_toArray(r),i=s[0],l=s.slice(1);if(l.length===0)this.set(i,o);else{var u=this.get(i,!0);if(u instanceof t)u.setIn(l,o);else if(u===void 0&&this.schema)this.set(i,collectionFromPath(this.schema,l,o));else throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(r,o,s,i){var l=this,u=o.blockItem,c=o.flowChars,d=o.isMap,f=o.itemIndent,v=r,p=v.indent,h=v.indentStep,m=v.stringify,_=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||r.inFlow;_&&(f+=h);var g=d&&this.hasAllNullValues();r=Object.assign({},r,{allNullValues:g,indent:f,inFlow:_,type:null});var b=!1,S=!1,k=this.items.reduce(function(W,C,E){var T;C&&(!b&&C.spaceBefore&&W.push({type:"comment",str:""}),C.commentBefore&&C.commentBefore.match(/^.*$/gm).forEach(function(Y){W.push({type:"comment",str:"#".concat(Y)})}),C.comment&&(T=C.comment),_&&(!b&&C.spaceBefore||C.commentBefore||C.comment||C.key&&(C.key.commentBefore||C.key.comment)||C.value&&(C.value.commentBefore||C.value.comment))&&(S=!0)),b=!1;var z=m(C,r,function(){return T=null},function(){return b=!0});return _&&!S&&z.includes(`
|
|
271
|
+
`)&&(S=!0),_&&E<l.items.length-1&&(z+=","),z=addComment(z,f,T),b&&(T||_)&&(b=!1),W.push({type:"item",str:z}),W},[]),V;if(k.length===0)V=c.start+c.end;else if(_){var L=c.start,$=c.end,A=k.map(function(W){return W.str});if(S||A.reduce(function(W,C){return W+C.length+2},2)>t.maxFlowStringSingleLineLength){V=L;var F=_createForOfIteratorHelper(A),P;try{for(F.s();!(P=F.n()).done;){var q=P.value;V+=q?`
|
|
272
272
|
`.concat(h).concat(p).concat(q):`
|
|
273
273
|
`}}catch(W){F.e(W)}finally{F.f()}V+=`
|
|
274
274
|
`.concat(p).concat($)}else V="".concat(L," ").concat(A.join(" ")," ").concat($)}else{var M=k.map(u);V=M.shift();var j=_createForOfIteratorHelper(M),Q;try{for(j.s();!(Q=j.n()).done;){var J=Q.value;V+=J?`
|
|
275
275
|
`.concat(p).concat(J):`
|
|
276
276
|
`}}catch(W){j.e(W)}finally{j.f()}}return this.comment?(V+=`
|
|
277
|
-
`+this.comment.replace(/^/gm,"".concat(p,"#")),s&&s()):b&&i&&i(),V}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var n=e instanceof Scalar?e.value:e;return n&&typeof n=="string"&&(n=Number(n)),Number.isInteger(n)&&n>=0?n:null}var YAMLSeq=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(r){this.items.push(r)}},{key:"delete",value:function(r){var o=asItemIndex(r);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(r,o){var s=asItemIndex(r);if(typeof s=="number"){var i=this.items[s];return!o&&i instanceof Scalar?i.value:i}}},{key:"has",value:function(r){var o=asItemIndex(r);return typeof o=="number"&&o<this.items.length}},{key:"set",value:function(r,o){var s=asItemIndex(r);if(typeof s!="number")throw new Error("Expected a valid index, not ".concat(r,"."));this.items[s]=o}},{key:"toJSON",value:function(r,o){var s=[];o&&o.onCreate&&o.onCreate(s);var i=0,l=_createForOfIteratorHelper(this.items),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;s.push(toJSON(c,String(i++),o))}}catch(d){l.e(d)}finally{l.f()}return s}},{key:"toString",value:function(r,o,s){return r?_get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,{blockItem:function(l){return l.type==="comment"?l.str:"- ".concat(l.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(r.indent||"")+" "},o,s):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(n,t,a){return t===null?"":_typeof(t)!=="object"?String(t):n instanceof Node&&a&&a.doc?n.toString({anchors:Object.create(null),doc:a.doc,indent:"",indentStep:a.indentStep,inFlow:!0,inStringifyKey:!0,stringify:a.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),r=n.call(this),r.key=a,r.value=o,r.type=t.Type.PAIR,r}return _createClass(t,[{key:"commentBefore",get:function(){return this.key instanceof Node?this.key.commentBefore:void 0},set:function(r){if(this.key==null&&(this.key=new Scalar(null)),this.key instanceof Node)this.key.commentBefore=r;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(r,o){var s=toJSON(this.key,"",r);if(o instanceof Map){var i=toJSON(this.value,s,r);o.set(s,i)}else if(o instanceof Set)o.add(s);else{var l=stringifyKey(this.key,s,r),u=toJSON(this.value,l,r);l in o?Object.defineProperty(o,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[l]=u}return o}},{key:"toJSON",value:function(r,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(r,o,s){if(!r||!r.doc)return JSON.stringify(this);var i=r.doc.options,l=i.indent,u=i.indentSeq,c=i.simpleKeys,d=this.key,f=this.value,v=d instanceof Node&&d.comment;if(c){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof Collection){var p="With simple keys, collection cannot be used as a key value";throw new Error(p)}}var h=!c&&(!d||v||(d instanceof Node?d instanceof Collection||d.type===Type.BLOCK_FOLDED||d.type===Type.BLOCK_LITERAL:_typeof(d)==="object")),
|
|
278
|
-
`).concat(
|
|
277
|
+
`+this.comment.replace(/^/gm,"".concat(p,"#")),s&&s()):b&&i&&i(),V}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var n=e instanceof Scalar?e.value:e;return n&&typeof n=="string"&&(n=Number(n)),Number.isInteger(n)&&n>=0?n:null}var YAMLSeq=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(r){this.items.push(r)}},{key:"delete",value:function(r){var o=asItemIndex(r);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(r,o){var s=asItemIndex(r);if(typeof s=="number"){var i=this.items[s];return!o&&i instanceof Scalar?i.value:i}}},{key:"has",value:function(r){var o=asItemIndex(r);return typeof o=="number"&&o<this.items.length}},{key:"set",value:function(r,o){var s=asItemIndex(r);if(typeof s!="number")throw new Error("Expected a valid index, not ".concat(r,"."));this.items[s]=o}},{key:"toJSON",value:function(r,o){var s=[];o&&o.onCreate&&o.onCreate(s);var i=0,l=_createForOfIteratorHelper(this.items),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;s.push(toJSON(c,String(i++),o))}}catch(d){l.e(d)}finally{l.f()}return s}},{key:"toString",value:function(r,o,s){return r?_get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,{blockItem:function(l){return l.type==="comment"?l.str:"- ".concat(l.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(r.indent||"")+" "},o,s):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(n,t,a){return t===null?"":_typeof(t)!=="object"?String(t):n instanceof Node&&a&&a.doc?n.toString({anchors:Object.create(null),doc:a.doc,indent:"",indentStep:a.indentStep,inFlow:!0,inStringifyKey:!0,stringify:a.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),r=n.call(this),r.key=a,r.value=o,r.type=t.Type.PAIR,r}return _createClass(t,[{key:"commentBefore",get:function(){return this.key instanceof Node?this.key.commentBefore:void 0},set:function(r){if(this.key==null&&(this.key=new Scalar(null)),this.key instanceof Node)this.key.commentBefore=r;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(r,o){var s=toJSON(this.key,"",r);if(o instanceof Map){var i=toJSON(this.value,s,r);o.set(s,i)}else if(o instanceof Set)o.add(s);else{var l=stringifyKey(this.key,s,r),u=toJSON(this.value,l,r);l in o?Object.defineProperty(o,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[l]=u}return o}},{key:"toJSON",value:function(r,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(r,o,s){if(!r||!r.doc)return JSON.stringify(this);var i=r.doc.options,l=i.indent,u=i.indentSeq,c=i.simpleKeys,d=this.key,f=this.value,v=d instanceof Node&&d.comment;if(c){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(d instanceof Collection){var p="With simple keys, collection cannot be used as a key value";throw new Error(p)}}var h=!c&&(!d||v||(d instanceof Node?d instanceof Collection||d.type===Type.BLOCK_FOLDED||d.type===Type.BLOCK_LITERAL:_typeof(d)==="object")),m=r,_=m.doc,g=m.indent,b=m.indentStep,S=m.stringify;r=Object.assign({},r,{implicitKey:!h,indent:g+b});var k=!1,V=S(d,r,function(){return v=null},function(){return k=!0});if(V=addComment(V,r.indent,v),!h&&V.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.allNullValues&&!c)return this.comment?(V=addComment(V,r.indent,this.comment),o&&o()):k&&!v&&s&&s(),r.inFlow&&!h?V:"? ".concat(V);V=h?"? ".concat(V,`
|
|
278
|
+
`).concat(g,":"):"".concat(V,":"),this.comment&&(V=addComment(V,r.indent,this.comment),o&&o());var L="",$=null;if(f instanceof Node){if(f.spaceBefore&&(L=`
|
|
279
279
|
`),f.commentBefore){var A=f.commentBefore.replace(/^/gm,"".concat(r.indent,"#"));L+=`
|
|
280
|
-
`.concat(A)}$=f.comment}else f&&_typeof(f)==="object"&&(f=
|
|
280
|
+
`.concat(A)}$=f.comment}else f&&_typeof(f)==="object"&&(f=_.schema.createNode(f,!0));r.implicitKey=!1,!h&&!this.comment&&f instanceof Scalar&&(r.indentAtStart=V.length+1),k=!1,!u&&l>=2&&!r.inFlow&&!h&&f instanceof YAMLSeq&&f.type!==Type.FLOW_SEQ&&!f.tag&&!_.anchors.getName(f)&&(r.indent=r.indent.substr(2));var F=S(f,r,function(){return $=null},function(){return k=!0}),P=" ";if(L||this.comment)P="".concat(L,`
|
|
281
281
|
`).concat(r.indent);else if(!h&&f instanceof Collection){var q=F[0]==="["||F[0]==="{";(!q||F.includes(`
|
|
282
282
|
`))&&(P=`
|
|
283
283
|
`.concat(r.indent))}else F[0]===`
|
|
284
284
|
`&&(P="");return k&&!$&&s&&s(),addComment(V+P+F,r.indent,$)}}]),t}(Node);_defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var getAliasCount=function e(n,t){if(n instanceof Alias){var a=t.get(n.source);return a.count*a.aliasCount}else if(n instanceof Collection){var r=0,o=_createForOfIteratorHelper(n.items),s;try{for(o.s();!(s=o.n()).done;){var i=s.value,l=e(i,t);l>r&&(r=l)}}catch(d){o.e(d)}finally{o.f()}return r}else if(n instanceof Pair){var u=e(n.key,t),c=e(n.value,t);return Math.max(u,c)}return 1},Alias=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;return _classCallCheck(this,t),r=n.call(this),r.source=a,r.type=Type.ALIAS,r}return _createClass(t,[{key:"tag",set:function(r){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(r,o){if(!o)return toJSON(this.source,r,o);var s=o.anchors,i=o.maxAliasCount,l=s.get(this.source);if(!l||l.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new YAMLReferenceError(this.cstNode,u):new ReferenceError(u)}if(i>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=getAliasCount(this.source,s)),l.count*l.aliasCount>i)){var c="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new YAMLReferenceError(this.cstNode,c):new ReferenceError(c)}return l.res}},{key:"toString",value:function(r){return t.stringify(this,r)}}],[{key:"stringify",value:function(r,o){var s=r.range,i=r.source,l=o.anchors,u=o.doc,c=o.implicitKey,d=o.inStringifyKey,f=Object.keys(l).find(function(p){return l[p]===i});if(!f&&d&&(f=u.anchors.getName(i)||u.anchors.newName()),f)return"*".concat(f).concat(c?" ":"");var v=u.anchors.getName(i)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(v," [").concat(s,"]"))}}]),t}(Node);_defineProperty(Alias,"default",!0);function findPair(e,n){var t=n instanceof Scalar?n.value:n,a=_createForOfIteratorHelper(e),r;try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o instanceof Pair&&(o.key===n||o.key===t||o.key&&o.key.value===t))return o}}catch(s){a.e(s)}finally{a.f()}}var YAMLMap=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(r,o){r?r instanceof Pair||(r=new Pair(r.key||r,r.value)):r=new Pair(r);var s=findPair(this.items,r.key),i=this.schema&&this.schema.sortMapEntries;if(s)if(o)s.value=r.value;else throw new Error("Key ".concat(r.key," already set"));else if(i){var l=this.items.findIndex(function(u){return i(r,u)<0});l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}},{key:"delete",value:function(r){var o=findPair(this.items,r);if(!o)return!1;var s=this.items.splice(this.items.indexOf(o),1);return s.length>0}},{key:"get",value:function(r,o){var s=findPair(this.items,r),i=s&&s.value;return!o&&i instanceof Scalar?i.value:i}},{key:"has",value:function(r){return!!findPair(this.items,r)}},{key:"set",value:function(r,o){this.add(new Pair(r,o),!0)}},{key:"toJSON",value:function(r,o,s){var i=s?new s:o&&o.mapAsMap?new Map:{};o&&o.onCreate&&o.onCreate(i);var l=_createForOfIteratorHelper(this.items),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;c.addToJSMap(o,i)}}catch(d){l.e(d)}finally{l.f()}return i}},{key:"toString",value:function(r,o,s){if(!r)return JSON.stringify(this);var i=_createForOfIteratorHelper(this.items),l;try{for(i.s();!(l=i.n()).done;){var u=l.value;if(!(u instanceof Pair))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(c){i.e(c)}finally{i.f()}return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,{blockItem:function(d){return d.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:r.indent||""},o,s)}}]),t}(Collection),MERGE_KEY="<<",Merge=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){var r;if(_classCallCheck(this,t),a instanceof Pair){var o=a.value;o instanceof YAMLSeq||(o=new YAMLSeq,o.items.push(a.value),o.range=a.value.range),r=n.call(this,a.key,o),r.range=a.range}else r=n.call(this,new Scalar(MERGE_KEY),new YAMLSeq);return r.type=Pair.Type.MERGE_PAIR,_possibleConstructorReturn(r)}return _createClass(t,[{key:"addToJSMap",value:function(r,o){var s=_createForOfIteratorHelper(this.value.items),i;try{for(s.s();!(i=s.n()).done;){var l=i.value.source;if(!(l instanceof YAMLMap))throw new Error("Merge sources must be maps");var u=l.toJSON(null,r,Map),c=_createForOfIteratorHelper(u),d;try{for(c.s();!(d=c.n()).done;){var f=_slicedToArray(d.value,2),v=f[0],p=f[1];o instanceof Map?o.has(v)||o.set(v,p):o instanceof Set?o.add(v):Object.prototype.hasOwnProperty.call(o,v)||Object.defineProperty(o,v,{value:p,writable:!0,enumerable:!0,configurable:!0})}}catch(h){c.e(h)}finally{c.f()}}}catch(h){s.e(h)}finally{s.f()}return o}},{key:"toString",value:function(r,o){var s=this.value;if(s.items.length>1)return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,o);this.value=s.items[0];var i=_get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,o);return this.value=s,i}}]),t}(Pair),binaryOptions={defaultType:Type.BLOCK_LITERAL,lineWidth:76},boolOptions={trueStr:"true",falseStr:"false"},intOptions={asBigInt:!1},nullOptions={nullStr:"null"},strOptions={defaultType:Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,n,t){var a=_createForOfIteratorHelper(n),r;try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.format,i=o.test,l=o.resolve;if(i){var u=e.match(i);if(u){var c=l.apply(null,u);return c instanceof Scalar||(c=new Scalar(c)),s&&(c.format=s),c}}}}catch(d){a.e(d)}finally{a.f()}return t&&(e=t(e)),new Scalar(e)}var FOLD_FLOW="flow",FOLD_BLOCK="block",FOLD_QUOTED="quoted",consumeMoreIndentedLines=function e(n,t){for(var a=n[t+1];a===" "||a===" ";){do a=n[t+=1];while(a&&a!==`
|
|
285
|
-
`);a=n[t+1]}return t};function foldFlowLines(e,n,t,a){var r=a.indentAtStart,o=a.lineWidth,s=o===void 0?80:o,i=a.minContentWidth,l=i===void 0?20:i,u=a.onFold,c=a.onOverflow;if(!s||s<0)return e;var d=Math.max(1+l,1+s-n.length);if(e.length<=d)return e;var f=[],v={},p=s-n.length;typeof r=="number"&&(r>s-Math.max(2,l)?f.push(0):p=s-r);var h=void 0,
|
|
286
|
-
`)t===FOLD_BLOCK&&(
|
|
287
|
-
`&&
|
|
288
|
-
`&&V!==" "&&(h=
|
|
285
|
+
`);a=n[t+1]}return t};function foldFlowLines(e,n,t,a){var r=a.indentAtStart,o=a.lineWidth,s=o===void 0?80:o,i=a.minContentWidth,l=i===void 0?20:i,u=a.onFold,c=a.onOverflow;if(!s||s<0)return e;var d=Math.max(1+l,1+s-n.length);if(e.length<=d)return e;var f=[],v={},p=s-n.length;typeof r=="number"&&(r>s-Math.max(2,l)?f.push(0):p=s-r);var h=void 0,m=void 0,_=!1,g=-1,b=-1,S=-1;t===FOLD_BLOCK&&(g=consumeMoreIndentedLines(e,g),g!==-1&&(p=g+d));for(var k;k=e[g+=1];){if(t===FOLD_QUOTED&&k==="\\"){switch(b=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}S=g}if(k===`
|
|
286
|
+
`)t===FOLD_BLOCK&&(g=consumeMoreIndentedLines(e,g)),p=g+d,h=void 0;else{if(k===" "&&m&&m!==" "&&m!==`
|
|
287
|
+
`&&m!==" "){var V=e[g+1];V&&V!==" "&&V!==`
|
|
288
|
+
`&&V!==" "&&(h=g)}if(g>=p)if(h)f.push(h),p=h+d,h=void 0;else if(t===FOLD_QUOTED){for(;m===" "||m===" ";)m=k,k=e[g+=1],_=!0;var L=g>S+1?g-2:b-1;if(v[L])return e;f.push(L),v[L]=!0,p=L+d,h=void 0}else _=!0}m=k}if(_&&c&&c(),f.length===0)return e;u&&u();for(var $=e.slice(0,f[0]),A=0;A<f.length;++A){var F=f[A],P=f[A+1]||e.length;F===0?$=`
|
|
289
289
|
`.concat(n).concat(e.slice(0,P)):(t===FOLD_QUOTED&&v[F]&&($+="".concat(e[F],"\\")),$+=`
|
|
290
290
|
`.concat(n).concat(e.slice(F+1,P)))}return $}var getFoldOptions=function e(n){var t=n.indentAtStart;return t?Object.assign({indentAtStart:t},strOptions.fold):strOptions.fold},containsDocumentMarker=function e(n){return/^(%|---|\.\.\.)/m.test(n)};function lineLengthOverLimit(e,n,t){if(!n||n<0)return!1;var a=n-t,r=e.length;if(r<=a)return!1;for(var o=0,s=0;o<r;++o)if(e[o]===`
|
|
291
291
|
`){if(o-s>a)return!0;if(s=o+1,r-s<=a)return!1}return!0}function doubleQuotedString(e,n){var t=n.implicitKey,a=strOptions.doubleQuoted,r=a.jsonEncoding,o=a.minMultiLineLength,s=JSON.stringify(e);if(r)return s;for(var i=n.indent||(containsDocumentMarker(e)?" ":""),l="",u=0,c=0,d=s[c];d;d=s[++c])if(d===" "&&s[c+1]==="\\"&&s[c+2]==="n"&&(l+=s.slice(u,c)+"\\ ",c+=1,u=c,d="\\"),d==="\\")switch(s[c+1]){case"u":{l+=s.slice(u,c);var f=s.substr(c+2,4);switch(f){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:f.substr(0,2)==="00"?l+="\\x"+f.substr(2):l+=s.substr(c,6)}c+=5,u=c+1}break;case"n":if(t||s[c+2]==='"'||s.length<o)c+=1;else{for(l+=s.slice(u,c)+`
|
|
@@ -306,28 +306,28 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
|
|
|
306
306
|
`)!==-1)?(t&&t(),addCommentBefore(p,u,r)):p}function stringifyString(e,n,t,a){var r=strOptions.defaultType,o=n.implicitKey,s=n.inFlow,i=e,l=i.type,u=i.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var c=function(v){switch(v){case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:return blockString(e,n,t,a);case Type.QUOTE_DOUBLE:return doubleQuotedString(u,n);case Type.QUOTE_SINGLE:return singleQuotedString(u,n);case Type.PLAIN:return plainString(e,n,t,a);default:return null}};(l!==Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||s)&&(l===Type.BLOCK_FOLDED||l===Type.BLOCK_LITERAL))&&(l=Type.QUOTE_DOUBLE);var d=c(l);if(d===null&&(d=c(r),d===null))throw new Error("Unsupported default string type ".concat(r));return d}function stringifyNumber(e){var n=e.format,t=e.minFractionDigits,a=e.tag,r=e.value;if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";var o=JSON.stringify(r);if(!n&&t&&(!a||a==="tag:yaml.org,2002:float")&&/^\d/.test(o)){var s=o.indexOf(".");s<0&&(s=o.length,o+=".");for(var i=t-(o.length-s-1);i-- >0;)o+="0"}return o}function checkFlowCollectionEnd(e,n){var t,a;switch(n.type){case Type.FLOW_MAP:t="}",a="flow map";break;case Type.FLOW_SEQ:t="]",a="flow sequence";break;default:e.push(new YAMLSemanticError(n,"Not a flow collection!?"));return}for(var r,o=n.items.length-1;o>=0;--o){var s=n.items[o];if(!s||s.type!==Type.COMMENT){r=s;break}}if(r&&r.char!==t){var i="Expected ".concat(a," to end with ").concat(t),l;typeof r.offset=="number"?(l=new YAMLSemanticError(n,i),l.offset=r.offset+1):(l=new YAMLSemanticError(r,i),r.range&&r.range.end&&(l.offset=r.range.end-r.range.start)),e.push(l)}}function checkFlowCommentSpace(e,n){var t=n.context.src[n.range.start-1];if(t!==`
|
|
307
307
|
`&&t!==" "&&t!==" "){var a="Comments must be separated from other tokens by white space characters";e.push(new YAMLSemanticError(n,a))}}function getLongKeyError(e,n){var t=String(n),a=t.substr(0,8)+"..."+t.substr(-8);return new YAMLSemanticError(e,'The "'.concat(a,'" key is too long'))}function resolveComments(e,n){var t=_createForOfIteratorHelper(n),a;try{for(t.s();!(a=t.n()).done;){var r=a.value,o=r.afterKey,s=r.before,i=r.comment,l=e.items[s];l?(o&&l.value&&(l=l.value),i===void 0?(o||!l.commentBefore)&&(l.spaceBefore=!0):l.commentBefore?l.commentBefore+=`
|
|
308
308
|
`+i:l.commentBefore=i):i!==void 0&&(e.comment?e.comment+=`
|
|
309
|
-
`+i:e.comment=i)}}catch(u){t.e(u)}finally{t.f()}}function resolveString(e,n){var t=n.strValue;return t?typeof t=="string"?t:(t.errors.forEach(function(a){a.source||(a.source=n),e.errors.push(a)}),t.str):""}function resolveTagHandle(e,n){var t=n.tag,a=t.handle,r=t.suffix,o=e.tagPrefixes.find(function(l){return l.handle===a});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(l){return l.handle===a})),!o)throw new YAMLSemanticError(n,"The ".concat(a," tag handle is non-default and was not declared."))}if(!r)throw new YAMLSemanticError(n,"The ".concat(a," tag has no suffix."));if(a==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^")return e.warnings.push(new YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){var i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?"tag:".concat(i[1],".yaml.org,2002:").concat(i[2]):"tag:".concat(r)}}return o.prefix+decodeURIComponent(r)}function resolveTagName(e,n){var t=n.tag,a=n.type,r=!1;if(t){var o=t.handle,s=t.suffix,i=t.verbatim;if(i){if(i!=="!"&&i!=="!!")return i;var l="Verbatim tags aren't resolved, so ".concat(i," is invalid.");e.errors.push(new YAMLSemanticError(n,l))}else if(o==="!"&&!s)r=!0;else try{return resolveTagHandle(e,n)}catch(u){e.errors.push(u)}}switch(a){case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:case Type.QUOTE_DOUBLE:case Type.QUOTE_SINGLE:return defaultTags.STR;case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;case Type.PLAIN:return r?defaultTags.STR:null;default:return null}}function resolveByTagName(e,n,t){var a=e.schema.tags,r=[],o=_createForOfIteratorHelper(a),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;if(i.tag===t)if(i.test)r.push(i);else{var l=i.resolve(e,n);return l instanceof Collection?l:new Scalar(l)}}}catch(c){o.e(c)}finally{o.f()}var u=resolveString(e,n);return typeof u=="string"&&r.length>0?resolveScalar(u,r,a.scalarFallback):null}function getFallbackTagName(e){var n=e.type;switch(n){case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;default:return defaultTags.STR}}function resolveTag(e,n,t){try{var a=resolveByTagName(e,n,t);if(a)return t&&n.tag&&(a.tag=t),a}catch(l){return l.source||(l.source=n),e.errors.push(l),null}try{var r=getFallbackTagName(n);if(!r)throw new Error("The tag ".concat(t," is unavailable"));var o="The tag ".concat(t," is unavailable, falling back to ").concat(r);e.warnings.push(new YAMLWarning(n,o));var s=resolveByTagName(e,n,r);return s.tag=t,s}catch(l){var i=new YAMLReferenceError(n,l.message);return i.stack=l.stack,e.errors.push(i),null}}var isCollectionItem=function e(n){if(!n)return!1;var t=n.type;return t===Type.MAP_KEY||t===Type.MAP_VALUE||t===Type.SEQ_ITEM};function resolveNodeProps(e,n){var t={before:[],after:[]},a=!1,r=!1,o=isCollectionItem(n.context.parent)?n.context.parent.props.concat(n.props):n.props,s=_createForOfIteratorHelper(o),i;try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.start,c=l.end;switch(n.context.src[u]){case Char.COMMENT:{if(!n.commentHasRequiredWhitespace(u)){var d="Comments must be separated from other tokens by white space characters";e.push(new YAMLSemanticError(n,d))}var f=n.header,v=n.valueRange,p=v&&(u>v.start||f&&u>f.start)?t.after:t.before;p.push(n.context.src.slice(u+1,c));break}case Char.ANCHOR:if(a){var h="A node can have at most one anchor";e.push(new YAMLSemanticError(n,h))}a=!0;break;case Char.TAG:if(r){var
|
|
309
|
+
`+i:e.comment=i)}}catch(u){t.e(u)}finally{t.f()}}function resolveString(e,n){var t=n.strValue;return t?typeof t=="string"?t:(t.errors.forEach(function(a){a.source||(a.source=n),e.errors.push(a)}),t.str):""}function resolveTagHandle(e,n){var t=n.tag,a=t.handle,r=t.suffix,o=e.tagPrefixes.find(function(l){return l.handle===a});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(l){return l.handle===a})),!o)throw new YAMLSemanticError(n,"The ".concat(a," tag handle is non-default and was not declared."))}if(!r)throw new YAMLSemanticError(n,"The ".concat(a," tag has no suffix."));if(a==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^")return e.warnings.push(new YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){var i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?"tag:".concat(i[1],".yaml.org,2002:").concat(i[2]):"tag:".concat(r)}}return o.prefix+decodeURIComponent(r)}function resolveTagName(e,n){var t=n.tag,a=n.type,r=!1;if(t){var o=t.handle,s=t.suffix,i=t.verbatim;if(i){if(i!=="!"&&i!=="!!")return i;var l="Verbatim tags aren't resolved, so ".concat(i," is invalid.");e.errors.push(new YAMLSemanticError(n,l))}else if(o==="!"&&!s)r=!0;else try{return resolveTagHandle(e,n)}catch(u){e.errors.push(u)}}switch(a){case Type.BLOCK_FOLDED:case Type.BLOCK_LITERAL:case Type.QUOTE_DOUBLE:case Type.QUOTE_SINGLE:return defaultTags.STR;case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;case Type.PLAIN:return r?defaultTags.STR:null;default:return null}}function resolveByTagName(e,n,t){var a=e.schema.tags,r=[],o=_createForOfIteratorHelper(a),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;if(i.tag===t)if(i.test)r.push(i);else{var l=i.resolve(e,n);return l instanceof Collection?l:new Scalar(l)}}}catch(c){o.e(c)}finally{o.f()}var u=resolveString(e,n);return typeof u=="string"&&r.length>0?resolveScalar(u,r,a.scalarFallback):null}function getFallbackTagName(e){var n=e.type;switch(n){case Type.FLOW_MAP:case Type.MAP:return defaultTags.MAP;case Type.FLOW_SEQ:case Type.SEQ:return defaultTags.SEQ;default:return defaultTags.STR}}function resolveTag(e,n,t){try{var a=resolveByTagName(e,n,t);if(a)return t&&n.tag&&(a.tag=t),a}catch(l){return l.source||(l.source=n),e.errors.push(l),null}try{var r=getFallbackTagName(n);if(!r)throw new Error("The tag ".concat(t," is unavailable"));var o="The tag ".concat(t," is unavailable, falling back to ").concat(r);e.warnings.push(new YAMLWarning(n,o));var s=resolveByTagName(e,n,r);return s.tag=t,s}catch(l){var i=new YAMLReferenceError(n,l.message);return i.stack=l.stack,e.errors.push(i),null}}var isCollectionItem=function e(n){if(!n)return!1;var t=n.type;return t===Type.MAP_KEY||t===Type.MAP_VALUE||t===Type.SEQ_ITEM};function resolveNodeProps(e,n){var t={before:[],after:[]},a=!1,r=!1,o=isCollectionItem(n.context.parent)?n.context.parent.props.concat(n.props):n.props,s=_createForOfIteratorHelper(o),i;try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.start,c=l.end;switch(n.context.src[u]){case Char.COMMENT:{if(!n.commentHasRequiredWhitespace(u)){var d="Comments must be separated from other tokens by white space characters";e.push(new YAMLSemanticError(n,d))}var f=n.header,v=n.valueRange,p=v&&(u>v.start||f&&u>f.start)?t.after:t.before;p.push(n.context.src.slice(u+1,c));break}case Char.ANCHOR:if(a){var h="A node can have at most one anchor";e.push(new YAMLSemanticError(n,h))}a=!0;break;case Char.TAG:if(r){var m="A node can have at most one tag";e.push(new YAMLSemanticError(n,m))}r=!0;break}}}catch(_){s.e(_)}finally{s.f()}return{comments:t,hasAnchor:a,hasTag:r}}function resolveNodeValue(e,n){var t=e.anchors,a=e.errors,r=e.schema;if(n.type===Type.ALIAS){var o=n.rawValue,s=t.getNode(o);if(!s){var i="Aliased anchor not found: ".concat(o);return a.push(new YAMLReferenceError(n,i)),null}var l=new Alias(s);return t._cstAliases.push(l),l}var u=resolveTagName(e,n);if(u)return resolveTag(e,n,u);if(n.type!==Type.PLAIN){var c="Failed to resolve ".concat(n.type," node here");return a.push(new YAMLSyntaxError(n,c)),null}try{var d=resolveString(e,n);return resolveScalar(d,r.tags,r.tags.scalarFallback)}catch(f){return f.source||(f.source=n),a.push(f),null}}function resolveNode(e,n){if(!n)return null;n.error&&e.errors.push(n.error);var t=resolveNodeProps(e.errors,n),a=t.comments,r=t.hasAnchor,o=t.hasTag;if(r){var s=e.anchors,i=n.anchor,l=s.getNode(i);l&&(s.map[s.newName(i)]=l),s.map[i]=n}if(n.type===Type.ALIAS&&(r||o)){var u="An alias node must not specify any properties";e.errors.push(new YAMLSemanticError(n,u))}var c=resolveNodeValue(e,n);if(c){c.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(c.cstNode=n),e.options.keepNodeTypes&&(c.type=n.type);var d=a.before.join(`
|
|
310
310
|
`);d&&(c.commentBefore=c.commentBefore?"".concat(c.commentBefore,`
|
|
311
311
|
`).concat(d):d);var f=a.after.join(`
|
|
312
312
|
`);f&&(c.comment=c.comment?"".concat(c.comment,`
|
|
313
|
-
`).concat(f):f)}return n.resolved=c}function resolveMap(e,n){if(n.type!==Type.MAP&&n.type!==Type.FLOW_MAP){var t="A ".concat(n.type," node cannot be resolved as a mapping");return e.errors.push(new YAMLSyntaxError(n,t)),null}var a=n.type===Type.FLOW_MAP?resolveFlowMapItems(e,n):resolveBlockMapItems(e,n),r=a.comments,o=a.items,s=new YAMLMap;s.items=o,resolveComments(s,r);for(var i=!1,l=0;l<o.length;++l){var u=o[l].key;if(u instanceof Collection&&(i=!0),e.schema.merge&&u&&u.value===MERGE_KEY){o[l]=new Merge(o[l]);var c=o[l].value.items,d=null;c.some(function(
|
|
314
|
-
`)return!1;return!0};function resolvePairComment(e,n){if(valueHasPairComment(e)){var t=e.getPropValue(0,Char.COMMENT,!0),a=!1,r=n.value.commentBefore;if(r&&r.startsWith(t))n.value.commentBefore=r.substr(t.length+1),a=!0;else{var o=n.value.comment;!e.node&&o&&o.startsWith(t)&&(n.value.comment=o.substr(t.length+1),a=!0)}a&&(n.comment=t)}}function resolveBlockMapItems(e,n){for(var t=[],a=[],r=void 0,o=null,s=0;s<n.items.length;++s){var i=n.items[s];switch(i.type){case Type.BLANK_LINE:t.push({afterKey:!!r,before:a.length});break;case Type.COMMENT:t.push({afterKey:!!r,before:a.length,comment:i.comment});break;case Type.MAP_KEY:r!==void 0&&a.push(new Pair(r)),i.error&&e.errors.push(i.error),r=resolveNode(e,i.node),o=null;break;case Type.MAP_VALUE:{if(r===void 0&&(r=null),i.error&&e.errors.push(i.error),!i.context.atLineStart&&i.node&&i.node.type===Type.MAP&&!i.node.context.atLineStart){var l="Nested mappings are not allowed in compact mappings";e.errors.push(new YAMLSemanticError(i.node,l))}var u=i.node;if(!u&&i.props.length>0){u=new PlainValue(Type.PLAIN,[]),u.context={parent:i,src:i.context.src};var c=i.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},typeof i.range.origStart=="number"){var d=i.range.origStart+1;u.range.origStart=u.range.origEnd=d,u.valueRange.origStart=u.valueRange.origEnd=d}}var f=new Pair(r,resolveNode(e,u));resolvePairComment(i,f),a.push(f),r&&typeof o=="number"&&i.range.start>o+1024&&e.errors.push(getLongKeyError(n,r)),r=void 0,o=null}break;default:r!==void 0&&a.push(new Pair(r)),r=resolveNode(e,i),o=i.range.start,i.error&&e.errors.push(i.error);e:for(var v=s+1;;++v){var p=n.items[v];switch(p&&p.type){case Type.BLANK_LINE:case Type.COMMENT:continue e;case Type.MAP_VALUE:break e;default:{var h="Implicit map keys need to be followed by map values";e.errors.push(new YAMLSemanticError(i,h));break e}}}if(i.valueRangeContainsNewline){var
|
|
315
|
-
`){var
|
|
313
|
+
`).concat(f):f)}return n.resolved=c}function resolveMap(e,n){if(n.type!==Type.MAP&&n.type!==Type.FLOW_MAP){var t="A ".concat(n.type," node cannot be resolved as a mapping");return e.errors.push(new YAMLSyntaxError(n,t)),null}var a=n.type===Type.FLOW_MAP?resolveFlowMapItems(e,n):resolveBlockMapItems(e,n),r=a.comments,o=a.items,s=new YAMLMap;s.items=o,resolveComments(s,r);for(var i=!1,l=0;l<o.length;++l){var u=o[l].key;if(u instanceof Collection&&(i=!0),e.schema.merge&&u&&u.value===MERGE_KEY){o[l]=new Merge(o[l]);var c=o[l].value.items,d=null;c.some(function(m){if(m instanceof Alias){var _=m.source.type;return _===Type.MAP||_===Type.FLOW_MAP?!1:d="Merge nodes aliases can only point to maps"}return d="Merge nodes can only have Alias nodes as values"}),d&&e.errors.push(new YAMLSemanticError(n,d))}else for(var f=l+1;f<o.length;++f){var v=o[f].key;if(u===v||u&&v&&Object.prototype.hasOwnProperty.call(u,"value")&&u.value===v.value){var p='Map keys must be unique; "'.concat(u,'" is repeated');e.errors.push(new YAMLSemanticError(n,p));break}}}if(i&&!e.options.mapAsMap){var h="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(n,h))}return n.resolved=s,s}var valueHasPairComment=function e(n){var t=n.context,a=t.lineStart,r=t.node,o=t.src,s=n.props;if(s.length===0)return!1;var i=s[0].start;if(r&&i>r.valueRange.start||o[i]!==Char.COMMENT)return!1;for(var l=a;l<i;++l)if(o[l]===`
|
|
314
|
+
`)return!1;return!0};function resolvePairComment(e,n){if(valueHasPairComment(e)){var t=e.getPropValue(0,Char.COMMENT,!0),a=!1,r=n.value.commentBefore;if(r&&r.startsWith(t))n.value.commentBefore=r.substr(t.length+1),a=!0;else{var o=n.value.comment;!e.node&&o&&o.startsWith(t)&&(n.value.comment=o.substr(t.length+1),a=!0)}a&&(n.comment=t)}}function resolveBlockMapItems(e,n){for(var t=[],a=[],r=void 0,o=null,s=0;s<n.items.length;++s){var i=n.items[s];switch(i.type){case Type.BLANK_LINE:t.push({afterKey:!!r,before:a.length});break;case Type.COMMENT:t.push({afterKey:!!r,before:a.length,comment:i.comment});break;case Type.MAP_KEY:r!==void 0&&a.push(new Pair(r)),i.error&&e.errors.push(i.error),r=resolveNode(e,i.node),o=null;break;case Type.MAP_VALUE:{if(r===void 0&&(r=null),i.error&&e.errors.push(i.error),!i.context.atLineStart&&i.node&&i.node.type===Type.MAP&&!i.node.context.atLineStart){var l="Nested mappings are not allowed in compact mappings";e.errors.push(new YAMLSemanticError(i.node,l))}var u=i.node;if(!u&&i.props.length>0){u=new PlainValue(Type.PLAIN,[]),u.context={parent:i,src:i.context.src};var c=i.range.start+1;if(u.range={start:c,end:c},u.valueRange={start:c,end:c},typeof i.range.origStart=="number"){var d=i.range.origStart+1;u.range.origStart=u.range.origEnd=d,u.valueRange.origStart=u.valueRange.origEnd=d}}var f=new Pair(r,resolveNode(e,u));resolvePairComment(i,f),a.push(f),r&&typeof o=="number"&&i.range.start>o+1024&&e.errors.push(getLongKeyError(n,r)),r=void 0,o=null}break;default:r!==void 0&&a.push(new Pair(r)),r=resolveNode(e,i),o=i.range.start,i.error&&e.errors.push(i.error);e:for(var v=s+1;;++v){var p=n.items[v];switch(p&&p.type){case Type.BLANK_LINE:case Type.COMMENT:continue e;case Type.MAP_VALUE:break e;default:{var h="Implicit map keys need to be followed by map values";e.errors.push(new YAMLSemanticError(i,h));break e}}}if(i.valueRangeContainsNewline){var m="Implicit map keys need to be on a single line";e.errors.push(new YAMLSemanticError(i,m))}}}return r!==void 0&&a.push(new Pair(r)),{comments:t,items:a}}function resolveFlowMapItems(e,n){for(var t=[],a=[],r=void 0,o=!1,s="{",i=0;i<n.items.length;++i){var l=n.items[i];if(typeof l.char=="string"){var u=l.char,c=l.offset;if(u==="?"&&r===void 0&&!o){o=!0,s=":";continue}if(u===":"){if(r===void 0&&(r=null),s===":"){s=",";continue}}else if(o&&(r===void 0&&u!==","&&(r=null),o=!1),r!==void 0&&(a.push(new Pair(r)),r=void 0,u===",")){s=":";continue}if(u==="}"){if(i===n.items.length-1)continue}else if(u===s){s=":";continue}var d="Flow map contains an unexpected ".concat(u),f=new YAMLSyntaxError(n,d);f.offset=c,e.errors.push(f)}else l.type===Type.BLANK_LINE?t.push({afterKey:!!r,before:a.length}):l.type===Type.COMMENT?(checkFlowCommentSpace(e.errors,l),t.push({afterKey:!!r,before:a.length,comment:l.comment})):r===void 0?(s===","&&e.errors.push(new YAMLSemanticError(l,"Separator , missing in flow map")),r=resolveNode(e,l)):(s!==","&&e.errors.push(new YAMLSemanticError(l,"Indicator : missing in flow map entry")),a.push(new Pair(r,resolveNode(e,l))),r=void 0,o=!1)}return checkFlowCollectionEnd(e.errors,n),r!==void 0&&a.push(new Pair(r)),{comments:t,items:a}}function resolveSeq(e,n){if(n.type!==Type.SEQ&&n.type!==Type.FLOW_SEQ){var t="A ".concat(n.type," node cannot be resolved as a sequence");return e.errors.push(new YAMLSyntaxError(n,t)),null}var a=n.type===Type.FLOW_SEQ?resolveFlowSeqItems(e,n):resolveBlockSeqItems(e,n),r=a.comments,o=a.items,s=new YAMLSeq;if(s.items=o,resolveComments(s,r),!e.options.mapAsMap&&o.some(function(l){return l instanceof Pair&&l.key instanceof Collection})){var i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(n,i))}return n.resolved=s,s}function resolveBlockSeqItems(e,n){for(var t=[],a=[],r=0;r<n.items.length;++r){var o=n.items[r];switch(o.type){case Type.BLANK_LINE:t.push({before:a.length});break;case Type.COMMENT:t.push({comment:o.comment,before:a.length});break;case Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),a.push(resolveNode(e,o.node)),o.hasProps){var s="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new YAMLSemanticError(o,s))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:t,items:a}}function resolveFlowSeqItems(e,n){for(var t=[],a=[],r=!1,o=void 0,s=null,i="[",l=null,u=0;u<n.items.length;++u){var c=n.items[u];if(typeof c.char=="string"){var d=c.char,f=c.offset;if(d!==":"&&(r||o!==void 0)&&(r&&o===void 0&&(o=i?a.pop():null),a.push(new Pair(o)),r=!1,o=void 0,s=null),d===i)i=null;else if(!i&&d==="?")r=!0;else if(i!=="["&&d===":"&&o===void 0){if(i===","){if(o=a.pop(),o instanceof Pair){var v="Chaining flow sequence pairs is invalid",p=new YAMLSemanticError(n,v);p.offset=f,e.errors.push(p)}if(!r&&typeof s=="number"){var h=c.range?c.range.start:c.offset;h>s+1024&&e.errors.push(getLongKeyError(n,o));for(var m=l.context.src,_=s;_<h;++_)if(m[_]===`
|
|
315
|
+
`){var g="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(l,g));break}}}else o=null;s=null,r=!1,i=null}else if(i==="["||d!=="]"||u<n.items.length-1){var b="Flow sequence contains an unexpected ".concat(d),S=new YAMLSyntaxError(n,b);S.offset=f,e.errors.push(S)}}else if(c.type===Type.BLANK_LINE)t.push({before:a.length});else if(c.type===Type.COMMENT)checkFlowCommentSpace(e.errors,c),t.push({comment:c.comment,before:a.length});else{if(i){var k="Expected a ".concat(i," in flow sequence");e.errors.push(new YAMLSemanticError(c,k))}var V=resolveNode(e,c);o===void 0?(a.push(V),l=c):(a.push(new Pair(o,V)),o=void 0),s=c.range.start,i=","}}return checkFlowCollectionEnd(e.errors,n),o!==void 0&&a.push(new Pair(o)),{comments:t,items:a}}var define_process_env_default$4={},binary={identify:function e(n){return n instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(n,t){var a=resolveString(n,t);if(typeof Buffer=="function")return Buffer.from(a,"base64");if(typeof atob=="function"){for(var r=atob(a.replace(/[\n\r]/g,"")),o=new Uint8Array(r.length),s=0;s<r.length;++s)o[s]=r.charCodeAt(s);return o}else{var i="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new YAMLReferenceError(t,i)),null}},options:binaryOptions,stringify:function e(n,t,a,r){var o=n.comment,s=n.type,i=n.value,l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){for(var u="",c=0;c<i.length;++c)u+=String.fromCharCode(i[c]);l=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(s||(s=binaryOptions.defaultType),s===Type.QUOTE_DOUBLE)i=l;else{for(var d=binaryOptions.lineWidth,f=Math.ceil(l.length/d),v=new Array(f),p=0,h=0;p<f;++p,h+=d)v[p]=l.substr(h,d);i=v.join(s===Type.BLOCK_LITERAL?`
|
|
316
316
|
`:" ")}return stringifyString({comment:o,type:s,value:i},t,a,r)}};function parsePairs(e,n){for(var t=resolveSeq(e,n),a=0;a<t.items.length;++a){var r=t.items[a];if(!(r instanceof Pair)){if(r instanceof YAMLMap){if(r.items.length>1){var o="Each pair must have its own sequence indicator";throw new YAMLSemanticError(n,o)}var s=r.items[0]||new Pair;r.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(r.commentBefore,`
|
|
317
317
|
`).concat(s.commentBefore):r.commentBefore),r.comment&&(s.comment=s.comment?"".concat(r.comment,`
|
|
318
|
-
`).concat(s.comment):r.comment),r=s}t.items[a]=r instanceof Pair?r:new Pair(r)}}return t}function createPairs(e,n,t){var a=new YAMLSeq(e);a.tag="tag:yaml.org,2002:pairs";var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value,i=void 0,l=void 0;if(Array.isArray(s))if(s.length===2)i=s[0],l=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)i=u[0],l=s[i];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else i=s;var c=e.createPair(i,l,t);a.items.push(c)}}catch(d){r.e(d)}finally{r.f()}return a}var pairs={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs},YAMLOMap=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this),_defineProperty(_assertThisInitialized(a),"add",YAMLMap.prototype.add.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"delete",YAMLMap.prototype.delete.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"get",YAMLMap.prototype.get.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"has",YAMLMap.prototype.has.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"set",YAMLMap.prototype.set.bind(_assertThisInitialized(a))),a.tag=t.tag,a}return _createClass(t,[{key:"toJSON",value:function(r,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var i=_createForOfIteratorHelper(this.items),l;try{for(i.s();!(l=i.n()).done;){var u=l.value,c=void 0,d=void 0;if(u instanceof Pair?(c=toJSON(u.key,"",o),d=toJSON(u.value,c,o)):c=toJSON(u,"",o),s.has(c))throw new Error("Ordered maps must not include duplicate keys");s.set(c,d)}}catch(f){i.e(f)}finally{i.f()}return s}}]),t}(YAMLSeq);_defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,n){var t=parsePairs(e,n),a=[],r=_createForOfIteratorHelper(t.items),o;try{for(r.s();!(o=r.n()).done;){var s=o.value.key;if(s instanceof Scalar)if(a.includes(s.value)){var i="Ordered maps must not include duplicate keys";throw new YAMLSemanticError(n,i)}else a.push(s.value)}}catch(l){r.e(l)}finally{r.f()}return Object.assign(new YAMLOMap,t)}function createOMap(e,n,t){var a=createPairs(e,n,t),r=new YAMLOMap;return r.items=a.items,r}var omap={identify:function e(n){return n instanceof Map},nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap},YAMLSet=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this),a.tag=t.tag,a}return _createClass(t,[{key:"add",value:function(r){var o=r instanceof Pair?r:new Pair(r),s=findPair(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(r,o){var s=findPair(this.items,r);return!o&&s instanceof Pair?s.key instanceof Scalar?s.key.value:s.key:s}},{key:"set",value:function(r,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(o)));var s=findPair(this.items,r);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new Pair(r))}},{key:"toJSON",value:function(r,o){return _get(_getPrototypeOf(t.prototype),"toJSON",this).call(this,r,o,Set)}},{key:"toString",value:function(r,o,s){if(!r)return JSON.stringify(this);if(this.hasAllNullValues())return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,o,s);throw new Error("Set items must all have null values")}}]),t}(YAMLMap);_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,n){var t=resolveMap(e,n);if(!t.hasAllNullValues())throw new YAMLSemanticError(n,"Set items must all have null values");return Object.assign(new YAMLSet,t)}function createSet(e,n,t){var a=new YAMLSet,r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;a.items.push(e.createPair(s,null,t))}}catch(i){r.e(i)}finally{r.f()}return a}var set={identify:function e(n){return n instanceof Set},nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet},parseSexagesimal=function e(n,t){var a=t.split(":").reduce(function(r,o){return r*60+Number(o)},0);return n==="-"?-a:a},stringifySexagesimal=function e(n){var t=n.value;if(isNaN(t)||!isFinite(t))return stringifyNumber(t);var a="";t<0&&(a="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),a+r.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},intTime={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function e(n,t,a){return parseSexagesimal(t,a.replace(/_/g,""))},stringify:stringifySexagesimal},floatTime={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function e(n,t,a){return parseSexagesimal(t,a.replace(/_/g,""))},stringify:stringifySexagesimal},timestamp={identify:function e(n){return n instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function e(n,t,a,r,o,s,i,l,u){l&&(l=(l+"00").substr(1,3));var c=Date.UTC(t,a-1,r,o||0,s||0,i||0,l||0);if(u&&u!=="Z"){var d=parseSexagesimal(u[0],u.slice(1));Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:function e(n){var t=n.value;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function shouldWarn(e){var n=typeof process<"u"&&define_process_env_default$4||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!n.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!n.YAML_SILENCE_WARNINGS}function warn(e,n){if(shouldWarn(!1)){var t=typeof process<"u"&&process.emitWarning;t?t(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}}var warned={};function warnOptionDeprecation(e,n){if(!warned[e]&&shouldWarn(!0)){warned[e]=!0;var t="The option '".concat(e,"' will be removed in a future release");t+=", use '".concat(n,"' instead."),warn(t,"DeprecationWarning")}}function createMap(e,n,t){var a=new YAMLMap(e);if(n instanceof Map){var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=_slicedToArray(o.value,2),i=s[0],l=s[1];a.items.push(e.createPair(i,l,t))}}catch(f){r.e(f)}finally{r.f()}}else if(n&&_typeof(n)==="object")for(var u=0,c=Object.keys(n);u<c.length;u++){var d=c[u];a.items.push(e.createPair(d,n[d],t))}return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}var map={createNode:createMap,default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:resolveMap};function createSeq(e,n,t){var a=new YAMLSeq(e);if(n&&n[Symbol.iterator]){var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value,i=e.createNode(s,t.wrapScalars,null,t);a.items.push(i)}}catch(l){r.e(l)}finally{r.f()}}return a}var seq={createNode:createSeq,default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:resolveSeq},string={identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:function e(n,t,a,r){return t=Object.assign({actualString:!0},t),stringifyString(n,t,a,r)},options:strOptions},failsafe=[map,seq,string],intIdentify$2=function e(n){return typeof n=="bigint"||Number.isInteger(n)},intResolve$1=function e(n,t,a){return intOptions.asBigInt?BigInt(n):parseInt(t,a)};function intStringify$1(e,n,t){var a=e.value;return intIdentify$2(a)&&a>=0?t+a.toString(n):stringifyNumber(e)}var nullObj={identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},boolObj={identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function e(n){return n[0]==="t"||n[0]==="T"},options:boolOptions,stringify:function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr}},octObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function e(n,t){return intResolve$1(n,t,8)},options:intOptions,stringify:function e(n){return intStringify$1(n,8,"0o")}},intObj={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function e(n){return intResolve$1(n,n,10)},options:intOptions,stringify:stringifyNumber},hexObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function e(n,t){return intResolve$1(n,t,16)},options:intOptions,stringify:function e(n){return intStringify$1(n,16,"0x")}},nanObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},expObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n)},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},floatObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function e(n,t,a){var r=t||a,o=new Scalar(parseFloat(n));return r&&r[r.length-1]==="0"&&(o.minFractionDigits=r.length),o},stringify:stringifyNumber},core=failsafe.concat([nullObj,boolObj,octObj,intObj,hexObj,nanObj,expObj,floatObj]),intIdentify$1=function e(n){return typeof n=="bigint"||Number.isInteger(n)},stringifyJSON=function e(n){var t=n.value;return JSON.stringify(t)},json=[map,seq,{identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:stringifyJSON},{identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function e(){return null},stringify:stringifyJSON},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function e(n){return n==="true"},stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function e(n){return intOptions.asBigInt?BigInt(n):parseInt(n,10)},stringify:function e(n){var t=n.value;return intIdentify$1(t)?t.toString():JSON.stringify(t)}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function e(n){return parseFloat(n)},stringify:stringifyJSON}];json.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var boolStringify=function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr},intIdentify=function e(n){return typeof n=="bigint"||Number.isInteger(n)};function intResolve(e,n,t){var a=n.replace(/_/g,"");if(intOptions.asBigInt){switch(t){case 2:a="0b".concat(a);break;case 8:a="0o".concat(a);break;case 16:a="0x".concat(a);break}var r=BigInt(a);return e==="-"?BigInt(-1)*r:r}var o=parseInt(a,t);return e==="-"?-1*o:o}function intStringify(e,n,t){var a=e.value;if(intIdentify(a)){var r=a.toString(n);return a<0?"-"+t+r.substr(1):t+r}return stringifyNumber(e)}var yaml11=failsafe.concat([{identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function e(){return!0},options:boolOptions,stringify:boolStringify},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function e(){return!1},options:boolOptions,stringify:boolStringify},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,2)},stringify:function e(n){return intStringify(n,2,"0b")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,8)},stringify:function e(n){return intStringify(n,8,"0")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function e(n,t,a){return intResolve(t,a,10)},stringify:stringifyNumber},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,16)},stringify:function e(n){return intStringify(n,16,"0x")}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n.replace(/_/g,""))},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function e(n,t){var a=new Scalar(parseFloat(n.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");r[r.length-1]==="0"&&(a.minFractionDigits=r.length)}return a},stringify:stringifyNumber}],binary,omap,pairs,set,intTime,floatTime,timestamp),schemas={core,failsafe,json,yaml11},tags={binary,bool:boolObj,float:floatObj,floatExp:expObj,floatNaN:nanObj,floatTime,int:intObj,intHex:hexObj,intOct:octObj,intTime,map,null:nullObj,omap,pairs,seq,set,timestamp};function findTagObject(e,n,t){if(n){var a=t.filter(function(o){return o.tag===n}),r=a.find(function(o){return!o.format})||a[0];if(!r)throw new Error("Tag ".concat(n," not found"));return r}return t.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function createNode$1(e,n,t){if(e instanceof Node)return e;var a=t.defaultPrefix,r=t.onTagObj,o=t.prevObjects,s=t.schema,i=t.wrapScalars;n&&n.startsWith("!!")&&(n=a+n.slice(2));var l=findTagObject(e,n,s.tags);if(!l){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||_typeof(e)!=="object")return i?new Scalar(e):e;l=e instanceof Map?map:e[Symbol.iterator]?seq:map}r&&(r(l),delete t.onTagObj);var u={value:void 0,node:void 0};if(e&&_typeof(e)==="object"&&o){var c=o.get(e);if(c){var d=new Alias(c);return t.aliasNodes.push(d),d}u.value=e,o.set(e,u)}return u.node=l.createNode?l.createNode(t.schema,e,t):i?new Scalar(e):e,n&&u.node instanceof Node&&(u.node.tag=n),u.node}function getSchemaTags(e,n,t,a){var r=e[a.replace(/\W/g,"")];if(!r){var o=Object.keys(e).map(function(v){return JSON.stringify(v)}).join(", ");throw new Error('Unknown schema "'.concat(a,'"; use one of ').concat(o))}if(Array.isArray(t)){var s=_createForOfIteratorHelper(t),i;try{for(s.s();!(i=s.n()).done;){var l=i.value;r=r.concat(l)}}catch(v){s.e(v)}finally{s.f()}}else typeof t=="function"&&(r=t(r.slice()));for(var u=0;u<r.length;++u){var c=r[u];if(typeof c=="string"){var d=n[c];if(!d){var f=Object.keys(n).map(function(v){return JSON.stringify(v)}).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(f))}r[u]=d}}return r}var sortMapEntriesByKey=function e(n,t){return n.key<t.key?-1:n.key>t.key?1:0},Schema=function(){function e(n){var t=n.customTags,a=n.merge,r=n.schema,o=n.sortMapEntries,s=n.tags;_classCallCheck(this,e),this.merge=!!a,this.name=r,this.sortMapEntries=o===!0?sortMapEntriesByKey:o||null,!t&&s&&warnOptionDeprecation("tags","customTags"),this.tags=getSchemaTags(schemas,tags,t||s,r)}return _createClass(e,[{key:"createNode",value:function(t,a,r,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:a},i=o?Object.assign(o,s):s;return createNode$1(t,r,i)}},{key:"createPair",value:function(t,a,r){r||(r={wrapScalars:!0});var o=this.createNode(t,r.wrapScalars,null,r),s=this.createNode(a,r.wrapScalars,null,r);return new Pair(o,s)}}]),e}();_defineProperty(Schema,"defaultPrefix",defaultTagPrefix);_defineProperty(Schema,"defaultTags",defaultTags);var defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions={get binary(){return binaryOptions},set binary(e){Object.assign(binaryOptions,e)},get bool(){return boolOptions},set bool(e){Object.assign(boolOptions,e)},get int(){return intOptions},set int(e){Object.assign(intOptions,e)},get null(){return nullOptions},set null(e){Object.assign(nullOptions,e)},get str(){return strOptions},set str(e){Object.assign(strOptions,e)}},documentOptions={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]}};function stringifyTag(e,n){if((e.version||e.options.version)==="1.0"){var t=n.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var a=n.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return a?"!".concat(a[1],"/").concat(a[2]):"!".concat(n.replace(/^tag:/,""))}var r=e.tagPrefixes.find(function(i){return n.indexOf(i.prefix)===0});if(!r){var o=e.getDefaults().tagPrefixes;r=o&&o.find(function(i){return n.indexOf(i.prefix)===0})}if(!r)return n[0]==="!"?n:"!<".concat(n,">");var s=n.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(i){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[i]});return r.handle+s}function getTagObject(e,n){if(n instanceof Alias)return Alias;if(n.tag){var t=e.filter(function(i){return i.tag===n.tag});if(t.length>0)return t.find(function(i){return i.format===n.format})||t[0]}var a,r;if(n instanceof Scalar){r=n.value;var o=e.filter(function(i){return i.identify&&i.identify(r)||i.class&&r instanceof i.class});a=o.find(function(i){return i.format===n.format})||o.find(function(i){return!i.format})}else r=n,a=e.find(function(i){return i.nodeClass&&r instanceof i.nodeClass});if(!a){var s=r&&r.constructor?r.constructor.name:_typeof(r);throw new Error("Tag not resolved for ".concat(s," value"))}return a}function stringifyProps(e,n,t){var a=t.anchors,r=t.doc,o=[],s=r.anchors.getName(e);return s&&(a[s]=e,o.push("&".concat(s))),e.tag?o.push(stringifyTag(r,e.tag)):n.default||o.push(stringifyTag(r,n.tag)),o.join(" ")}function stringify$1(e,n,t,a){var r=n.doc,o=r.anchors,s=r.schema,i;if(!(e instanceof Node)){var l={aliasNodes:[],onTagObj:function(g){return i=g},prevObjects:new Map};e=s.createNode(e,!0,null,l);var u=_createForOfIteratorHelper(l.aliasNodes),c;try{for(u.s();!(c=u.n()).done;){var d=c.value;d.source=d.source.node;var f=o.getName(d.source);f||(f=o.newName(),o.map[f]=d.source)}}catch(h){u.e(h)}finally{u.f()}}if(e instanceof Pair)return e.toString(n,t,a);i||(i=getTagObject(s.tags,e));var v=stringifyProps(e,i,n);v.length>0&&(n.indentAtStart=(n.indentAtStart||0)+v.length+1);var p=typeof i.stringify=="function"?i.stringify(e,n,t,a):e instanceof Scalar?stringifyString(e,n,t,a):e.toString(n,t,a);return v?e instanceof Scalar||p[0]==="{"||p[0]==="["?"".concat(v," ").concat(p):"".concat(v,`
|
|
318
|
+
`).concat(s.comment):r.comment),r=s}t.items[a]=r instanceof Pair?r:new Pair(r)}}return t}function createPairs(e,n,t){var a=new YAMLSeq(e);a.tag="tag:yaml.org,2002:pairs";var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value,i=void 0,l=void 0;if(Array.isArray(s))if(s.length===2)i=s[0],l=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)i=u[0],l=s[i];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else i=s;var c=e.createPair(i,l,t);a.items.push(c)}}catch(d){r.e(d)}finally{r.f()}return a}var pairs={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs},YAMLOMap=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this),_defineProperty(_assertThisInitialized(a),"add",YAMLMap.prototype.add.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"delete",YAMLMap.prototype.delete.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"get",YAMLMap.prototype.get.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"has",YAMLMap.prototype.has.bind(_assertThisInitialized(a))),_defineProperty(_assertThisInitialized(a),"set",YAMLMap.prototype.set.bind(_assertThisInitialized(a))),a.tag=t.tag,a}return _createClass(t,[{key:"toJSON",value:function(r,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var i=_createForOfIteratorHelper(this.items),l;try{for(i.s();!(l=i.n()).done;){var u=l.value,c=void 0,d=void 0;if(u instanceof Pair?(c=toJSON(u.key,"",o),d=toJSON(u.value,c,o)):c=toJSON(u,"",o),s.has(c))throw new Error("Ordered maps must not include duplicate keys");s.set(c,d)}}catch(f){i.e(f)}finally{i.f()}return s}}]),t}(YAMLSeq);_defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,n){var t=parsePairs(e,n),a=[],r=_createForOfIteratorHelper(t.items),o;try{for(r.s();!(o=r.n()).done;){var s=o.value.key;if(s instanceof Scalar)if(a.includes(s.value)){var i="Ordered maps must not include duplicate keys";throw new YAMLSemanticError(n,i)}else a.push(s.value)}}catch(l){r.e(l)}finally{r.f()}return Object.assign(new YAMLOMap,t)}function createOMap(e,n,t){var a=createPairs(e,n,t),r=new YAMLOMap;return r.items=a.items,r}var omap={identify:function e(n){return n instanceof Map},nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap},YAMLSet=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var a;return _classCallCheck(this,t),a=n.call(this),a.tag=t.tag,a}return _createClass(t,[{key:"add",value:function(r){var o=r instanceof Pair?r:new Pair(r),s=findPair(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(r,o){var s=findPair(this.items,r);return!o&&s instanceof Pair?s.key instanceof Scalar?s.key.value:s.key:s}},{key:"set",value:function(r,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(o)));var s=findPair(this.items,r);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new Pair(r))}},{key:"toJSON",value:function(r,o){return _get(_getPrototypeOf(t.prototype),"toJSON",this).call(this,r,o,Set)}},{key:"toString",value:function(r,o,s){if(!r)return JSON.stringify(this);if(this.hasAllNullValues())return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,r,o,s);throw new Error("Set items must all have null values")}}]),t}(YAMLMap);_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,n){var t=resolveMap(e,n);if(!t.hasAllNullValues())throw new YAMLSemanticError(n,"Set items must all have null values");return Object.assign(new YAMLSet,t)}function createSet(e,n,t){var a=new YAMLSet,r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;a.items.push(e.createPair(s,null,t))}}catch(i){r.e(i)}finally{r.f()}return a}var set={identify:function e(n){return n instanceof Set},nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet},parseSexagesimal=function e(n,t){var a=t.split(":").reduce(function(r,o){return r*60+Number(o)},0);return n==="-"?-a:a},stringifySexagesimal=function e(n){var t=n.value;if(isNaN(t)||!isFinite(t))return stringifyNumber(t);var a="";t<0&&(a="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),a+r.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},intTime={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function e(n,t,a){return parseSexagesimal(t,a.replace(/_/g,""))},stringify:stringifySexagesimal},floatTime={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function e(n,t,a){return parseSexagesimal(t,a.replace(/_/g,""))},stringify:stringifySexagesimal},timestamp={identify:function e(n){return n instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function e(n,t,a,r,o,s,i,l,u){l&&(l=(l+"00").substr(1,3));var c=Date.UTC(t,a-1,r,o||0,s||0,i||0,l||0);if(u&&u!=="Z"){var d=parseSexagesimal(u[0],u.slice(1));Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:function e(n){var t=n.value;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function shouldWarn(e){var n=typeof process<"u"&&define_process_env_default$4||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!n.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!n.YAML_SILENCE_WARNINGS}function warn(e,n){if(shouldWarn(!1)){var t=typeof process<"u"&&process.emitWarning;t?t(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}}var warned={};function warnOptionDeprecation(e,n){if(!warned[e]&&shouldWarn(!0)){warned[e]=!0;var t="The option '".concat(e,"' will be removed in a future release");t+=", use '".concat(n,"' instead."),warn(t,"DeprecationWarning")}}function createMap(e,n,t){var a=new YAMLMap(e);if(n instanceof Map){var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=_slicedToArray(o.value,2),i=s[0],l=s[1];a.items.push(e.createPair(i,l,t))}}catch(f){r.e(f)}finally{r.f()}}else if(n&&_typeof(n)==="object")for(var u=0,c=Object.keys(n);u<c.length;u++){var d=c[u];a.items.push(e.createPair(d,n[d],t))}return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}var map={createNode:createMap,default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:resolveMap};function createSeq(e,n,t){var a=new YAMLSeq(e);if(n&&n[Symbol.iterator]){var r=_createForOfIteratorHelper(n),o;try{for(r.s();!(o=r.n()).done;){var s=o.value,i=e.createNode(s,t.wrapScalars,null,t);a.items.push(i)}}catch(l){r.e(l)}finally{r.f()}}return a}var seq={createNode:createSeq,default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:resolveSeq},string={identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:function e(n,t,a,r){return t=Object.assign({actualString:!0},t),stringifyString(n,t,a,r)},options:strOptions},failsafe=[map,seq,string],intIdentify$2=function e(n){return typeof n=="bigint"||Number.isInteger(n)},intResolve$1=function e(n,t,a){return intOptions.asBigInt?BigInt(n):parseInt(t,a)};function intStringify$1(e,n,t){var a=e.value;return intIdentify$2(a)&&a>=0?t+a.toString(n):stringifyNumber(e)}var nullObj={identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},boolObj={identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function e(n){return n[0]==="t"||n[0]==="T"},options:boolOptions,stringify:function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr}},octObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function e(n,t){return intResolve$1(n,t,8)},options:intOptions,stringify:function e(n){return intStringify$1(n,8,"0o")}},intObj={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function e(n){return intResolve$1(n,n,10)},options:intOptions,stringify:stringifyNumber},hexObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function e(n,t){return intResolve$1(n,t,16)},options:intOptions,stringify:function e(n){return intStringify$1(n,16,"0x")}},nanObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},expObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n)},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},floatObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function e(n,t,a){var r=t||a,o=new Scalar(parseFloat(n));return r&&r[r.length-1]==="0"&&(o.minFractionDigits=r.length),o},stringify:stringifyNumber},core=failsafe.concat([nullObj,boolObj,octObj,intObj,hexObj,nanObj,expObj,floatObj]),intIdentify$1=function e(n){return typeof n=="bigint"||Number.isInteger(n)},stringifyJSON=function e(n){var t=n.value;return JSON.stringify(t)},json=[map,seq,{identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:stringifyJSON},{identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function e(){return null},stringify:stringifyJSON},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function e(n){return n==="true"},stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function e(n){return intOptions.asBigInt?BigInt(n):parseInt(n,10)},stringify:function e(n){var t=n.value;return intIdentify$1(t)?t.toString():JSON.stringify(t)}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function e(n){return parseFloat(n)},stringify:stringifyJSON}];json.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var boolStringify=function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr},intIdentify=function e(n){return typeof n=="bigint"||Number.isInteger(n)};function intResolve(e,n,t){var a=n.replace(/_/g,"");if(intOptions.asBigInt){switch(t){case 2:a="0b".concat(a);break;case 8:a="0o".concat(a);break;case 16:a="0x".concat(a);break}var r=BigInt(a);return e==="-"?BigInt(-1)*r:r}var o=parseInt(a,t);return e==="-"?-1*o:o}function intStringify(e,n,t){var a=e.value;if(intIdentify(a)){var r=a.toString(n);return a<0?"-"+t+r.substr(1):t+r}return stringifyNumber(e)}var yaml11=failsafe.concat([{identify:function e(n){return n==null},createNode:function e(n,t,a){return a.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function e(){return!0},options:boolOptions,stringify:boolStringify},{identify:function e(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function e(){return!1},options:boolOptions,stringify:boolStringify},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,2)},stringify:function e(n){return intStringify(n,2,"0b")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,8)},stringify:function e(n){return intStringify(n,8,"0")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function e(n,t,a){return intResolve(t,a,10)},stringify:stringifyNumber},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function e(n,t,a){return intResolve(t,a,16)},stringify:function e(n){return intStringify(n,16,"0x")}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n.replace(/_/g,""))},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function e(n,t){var a=new Scalar(parseFloat(n.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");r[r.length-1]==="0"&&(a.minFractionDigits=r.length)}return a},stringify:stringifyNumber}],binary,omap,pairs,set,intTime,floatTime,timestamp),schemas={core,failsafe,json,yaml11},tags={binary,bool:boolObj,float:floatObj,floatExp:expObj,floatNaN:nanObj,floatTime,int:intObj,intHex:hexObj,intOct:octObj,intTime,map,null:nullObj,omap,pairs,seq,set,timestamp};function findTagObject(e,n,t){if(n){var a=t.filter(function(o){return o.tag===n}),r=a.find(function(o){return!o.format})||a[0];if(!r)throw new Error("Tag ".concat(n," not found"));return r}return t.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function createNode$1(e,n,t){if(e instanceof Node)return e;var a=t.defaultPrefix,r=t.onTagObj,o=t.prevObjects,s=t.schema,i=t.wrapScalars;n&&n.startsWith("!!")&&(n=a+n.slice(2));var l=findTagObject(e,n,s.tags);if(!l){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||_typeof(e)!=="object")return i?new Scalar(e):e;l=e instanceof Map?map:e[Symbol.iterator]?seq:map}r&&(r(l),delete t.onTagObj);var u={value:void 0,node:void 0};if(e&&_typeof(e)==="object"&&o){var c=o.get(e);if(c){var d=new Alias(c);return t.aliasNodes.push(d),d}u.value=e,o.set(e,u)}return u.node=l.createNode?l.createNode(t.schema,e,t):i?new Scalar(e):e,n&&u.node instanceof Node&&(u.node.tag=n),u.node}function getSchemaTags(e,n,t,a){var r=e[a.replace(/\W/g,"")];if(!r){var o=Object.keys(e).map(function(v){return JSON.stringify(v)}).join(", ");throw new Error('Unknown schema "'.concat(a,'"; use one of ').concat(o))}if(Array.isArray(t)){var s=_createForOfIteratorHelper(t),i;try{for(s.s();!(i=s.n()).done;){var l=i.value;r=r.concat(l)}}catch(v){s.e(v)}finally{s.f()}}else typeof t=="function"&&(r=t(r.slice()));for(var u=0;u<r.length;++u){var c=r[u];if(typeof c=="string"){var d=n[c];if(!d){var f=Object.keys(n).map(function(v){return JSON.stringify(v)}).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(f))}r[u]=d}}return r}var sortMapEntriesByKey=function e(n,t){return n.key<t.key?-1:n.key>t.key?1:0},Schema=function(){function e(n){var t=n.customTags,a=n.merge,r=n.schema,o=n.sortMapEntries,s=n.tags;_classCallCheck(this,e),this.merge=!!a,this.name=r,this.sortMapEntries=o===!0?sortMapEntriesByKey:o||null,!t&&s&&warnOptionDeprecation("tags","customTags"),this.tags=getSchemaTags(schemas,tags,t||s,r)}return _createClass(e,[{key:"createNode",value:function(t,a,r,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:a},i=o?Object.assign(o,s):s;return createNode$1(t,r,i)}},{key:"createPair",value:function(t,a,r){r||(r={wrapScalars:!0});var o=this.createNode(t,r.wrapScalars,null,r),s=this.createNode(a,r.wrapScalars,null,r);return new Pair(o,s)}}]),e}();_defineProperty(Schema,"defaultPrefix",defaultTagPrefix);_defineProperty(Schema,"defaultTags",defaultTags);var defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions={get binary(){return binaryOptions},set binary(e){Object.assign(binaryOptions,e)},get bool(){return boolOptions},set bool(e){Object.assign(boolOptions,e)},get int(){return intOptions},set int(e){Object.assign(intOptions,e)},get null(){return nullOptions},set null(e){Object.assign(nullOptions,e)},get str(){return strOptions},set str(e){Object.assign(strOptions,e)}},documentOptions={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]}};function stringifyTag(e,n){if((e.version||e.options.version)==="1.0"){var t=n.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var a=n.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return a?"!".concat(a[1],"/").concat(a[2]):"!".concat(n.replace(/^tag:/,""))}var r=e.tagPrefixes.find(function(i){return n.indexOf(i.prefix)===0});if(!r){var o=e.getDefaults().tagPrefixes;r=o&&o.find(function(i){return n.indexOf(i.prefix)===0})}if(!r)return n[0]==="!"?n:"!<".concat(n,">");var s=n.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(i){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[i]});return r.handle+s}function getTagObject(e,n){if(n instanceof Alias)return Alias;if(n.tag){var t=e.filter(function(i){return i.tag===n.tag});if(t.length>0)return t.find(function(i){return i.format===n.format})||t[0]}var a,r;if(n instanceof Scalar){r=n.value;var o=e.filter(function(i){return i.identify&&i.identify(r)||i.class&&r instanceof i.class});a=o.find(function(i){return i.format===n.format})||o.find(function(i){return!i.format})}else r=n,a=e.find(function(i){return i.nodeClass&&r instanceof i.nodeClass});if(!a){var s=r&&r.constructor?r.constructor.name:_typeof(r);throw new Error("Tag not resolved for ".concat(s," value"))}return a}function stringifyProps(e,n,t){var a=t.anchors,r=t.doc,o=[],s=r.anchors.getName(e);return s&&(a[s]=e,o.push("&".concat(s))),e.tag?o.push(stringifyTag(r,e.tag)):n.default||o.push(stringifyTag(r,n.tag)),o.join(" ")}function stringify$1(e,n,t,a){var r=n.doc,o=r.anchors,s=r.schema,i;if(!(e instanceof Node)){var l={aliasNodes:[],onTagObj:function(m){return i=m},prevObjects:new Map};e=s.createNode(e,!0,null,l);var u=_createForOfIteratorHelper(l.aliasNodes),c;try{for(u.s();!(c=u.n()).done;){var d=c.value;d.source=d.source.node;var f=o.getName(d.source);f||(f=o.newName(),o.map[f]=d.source)}}catch(h){u.e(h)}finally{u.f()}}if(e instanceof Pair)return e.toString(n,t,a);i||(i=getTagObject(s.tags,e));var v=stringifyProps(e,i,n);v.length>0&&(n.indentAtStart=(n.indentAtStart||0)+v.length+1);var p=typeof i.stringify=="function"?i.stringify(e,n,t,a):e instanceof Scalar?stringifyString(e,n,t,a):e.toString(n,t,a);return v?e instanceof Scalar||p[0]==="{"||p[0]==="["?"".concat(v," ").concat(p):"".concat(v,`
|
|
319
319
|
`).concat(n.indent).concat(p):p}var Anchors=function(){function e(n){_classCallCheck(this,e),_defineProperty(this,"map",Object.create(null)),this.prefix=n}return _createClass(e,[{key:"createAlias",value:function(t,a){return this.setAnchor(t,a),new Alias(t)}},{key:"createMergePair",value:function(){for(var t=this,a=new Merge,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return a.value.items=o.map(function(i){if(i instanceof Alias){if(i.source instanceof YAMLMap)return i}else if(i instanceof YAMLMap)return t.createAlias(i);throw new Error("Merge sources must be Map nodes or their Aliases")}),a}},{key:"getName",value:function(t){var a=this.map;return Object.keys(a).find(function(r){return a[r]===t})}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(t){return this.map[t]}},{key:"newName",value:function(t){t||(t=this.prefix);for(var a=Object.keys(this.map),r=1;;++r){var o="".concat(t).concat(r);if(!a.includes(o))return o}}},{key:"resolveNodes",value:function(){var t=this.map,a=this._cstAliases;Object.keys(t).forEach(function(r){t[r]=t[r].resolved}),a.forEach(function(r){r.source=r.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,a){if(t!=null&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(a&&/[\x00-\x19\s,[\]{}]/.test(a))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,o=t&&Object.keys(r).find(function(s){return r[s]===t});if(o)if(a)o!==a&&(delete r[o],r[a]=t);else return o;else{if(!a){if(!t)return null;a=this.newName()}r[a]=t}return a}}],[{key:"validAnchorNode",value:function(t){return t instanceof Scalar||t instanceof YAMLSeq||t instanceof YAMLMap}}]),e}(),visit=function e(n,t){if(n&&_typeof(n)==="object"){var a=n.tag;n instanceof Collection?(a&&(t[a]=!0),n.items.forEach(function(r){return e(r,t)})):n instanceof Pair?(e(n.key,t),e(n.value,t)):n instanceof Scalar&&a&&(t[a]=!0)}return t},listTagNames=function e(n){return Object.keys(visit(n,{}))};function parseContents(e,n){var t={before:[],after:[]},a=void 0,r=!1,o=_createForOfIteratorHelper(n),s;try{for(o.s();!(s=o.n()).done;){var i=s.value;if(i.valueRange){if(a!==void 0){var l="Document contains trailing content not separated by a ... or --- line";e.errors.push(new YAMLSyntaxError(i,l));break}var u=resolveNode(e,i);r&&(u.spaceBefore=!0,r=!1),a=u}else if(i.comment!==null){var c=a===void 0?t.before:t.after;c.push(i.comment)}else i.type===Type.BLANK_LINE&&(r=!0,a===void 0&&t.before.length>0&&!e.commentBefore&&(e.commentBefore=t.before.join(`
|
|
320
320
|
`),t.before=[]))}}catch(v){o.e(v)}finally{o.f()}if(e.contents=a||null,!a)e.comment=t.before.concat(t.after).join(`
|
|
321
321
|
`)||null;else{var d=t.before.join(`
|
|
322
322
|
`);if(d){var f=a instanceof Collection&&a.items[0]?a.items[0]:a;f.commentBefore=f.commentBefore?"".concat(d,`
|
|
323
323
|
`).concat(f.commentBefore):d}e.comment=t.after.join(`
|
|
324
|
-
`)||null}}function resolveTagDirective(e,n){var t=e.tagPrefixes,a=_slicedToArray(n.parameters,2),r=a[0],o=a[1];if(!r||!o){var s="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(n,s)}if(t.some(function(l){return l.handle===r})){var i="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(n,i)}return{handle:r,prefix:o}}function resolveYamlDirective(e,n){var t=_slicedToArray(n.parameters,1),a=t[0];if(n.name==="YAML:1.0"&&(a="1.0"),!a){var r="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(n,r)}if(!documentOptions[a]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(a);e.warnings.push(new YAMLWarning(n,s))}return a}function parseDirectives(e,n,t){var a=[],r=!1,o=_createForOfIteratorHelper(n),s;try{for(o.s();!(s=o.n()).done;){var i=s.value,l=i.comment,u=i.name;switch(u){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,i))}catch(v){e.errors.push(v)}r=!0;break;case"YAML":case"YAML:1.0":if(e.version){var c="The %YAML directive must only be given at most once per document.";e.errors.push(new YAMLSemanticError(i,c))}try{e.version=resolveYamlDirective(e,i)}catch(v){e.errors.push(v)}r=!0;break;default:if(u){var d="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new YAMLWarning(i,d))}}l&&a.push(l)}}catch(v){o.e(v)}finally{o.f()}if(t&&!r&&(e.version||t.version||e.options.version)==="1.1"){var f=function(p){var h=p.handle,
|
|
325
|
-
`)||null}function assertCollection(e){if(e instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function e(n){_classCallCheck(this,e),this.anchors=new Anchors(n.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=n,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(e,[{key:"add",value:function(t){return assertCollection(this.contents),this.contents.add(t)}},{key:"addIn",value:function(t,a){assertCollection(this.contents),this.contents.addIn(t,a)}},{key:"delete",value:function(t){return assertCollection(this.contents),this.contents.delete(t)}},{key:"deleteIn",value:function(t){return isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(t))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(t,a){return this.contents instanceof Collection?this.contents.get(t,a):void 0}},{key:"getIn",value:function(t,a){return isEmptyPath(t)?!a&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(t,a):void 0}},{key:"has",value:function(t){return this.contents instanceof Collection?this.contents.has(t):!1}},{key:"hasIn",value:function(t){return isEmptyPath(t)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(t):!1}},{key:"set",value:function(t,a){assertCollection(this.contents),this.contents.set(t,a)}},{key:"setIn",value:function(t,a){isEmptyPath(t)?this.contents=a:(assertCollection(this.contents),this.contents.setIn(t,a))}},{key:"setSchema",value:function(t,a){if(!(!t&&!a&&this.schema)){typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(a)&&(this.options.customTags=a);var r=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(r)}}},{key:"parse",value:function(t,a){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");var r=t.directives,o=r===void 0?[]:r,s=t.contents,i=s===void 0?[]:s,l=t.directivesEndMarker,u=t.error,c=t.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),parseDirectives(this,o,a),l&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){var d=_createForOfIteratorHelper(this.errors),f;try{for(d.s();!(f=d.n()).done;){var v=f.value;v instanceof YAMLError&&v.makePretty()}}catch(
|
|
324
|
+
`)||null}}function resolveTagDirective(e,n){var t=e.tagPrefixes,a=_slicedToArray(n.parameters,2),r=a[0],o=a[1];if(!r||!o){var s="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(n,s)}if(t.some(function(l){return l.handle===r})){var i="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(n,i)}return{handle:r,prefix:o}}function resolveYamlDirective(e,n){var t=_slicedToArray(n.parameters,1),a=t[0];if(n.name==="YAML:1.0"&&(a="1.0"),!a){var r="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(n,r)}if(!documentOptions[a]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(a);e.warnings.push(new YAMLWarning(n,s))}return a}function parseDirectives(e,n,t){var a=[],r=!1,o=_createForOfIteratorHelper(n),s;try{for(o.s();!(s=o.n()).done;){var i=s.value,l=i.comment,u=i.name;switch(u){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,i))}catch(v){e.errors.push(v)}r=!0;break;case"YAML":case"YAML:1.0":if(e.version){var c="The %YAML directive must only be given at most once per document.";e.errors.push(new YAMLSemanticError(i,c))}try{e.version=resolveYamlDirective(e,i)}catch(v){e.errors.push(v)}r=!0;break;default:if(u){var d="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new YAMLWarning(i,d))}}l&&a.push(l)}}catch(v){o.e(v)}finally{o.f()}if(t&&!r&&(e.version||t.version||e.options.version)==="1.1"){var f=function(p){var h=p.handle,m=p.prefix;return{handle:h,prefix:m}};e.tagPrefixes=t.tagPrefixes.map(f),e.version=t.version}e.commentBefore=a.join(`
|
|
325
|
+
`)||null}function assertCollection(e){if(e instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function e(n){_classCallCheck(this,e),this.anchors=new Anchors(n.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=n,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(e,[{key:"add",value:function(t){return assertCollection(this.contents),this.contents.add(t)}},{key:"addIn",value:function(t,a){assertCollection(this.contents),this.contents.addIn(t,a)}},{key:"delete",value:function(t){return assertCollection(this.contents),this.contents.delete(t)}},{key:"deleteIn",value:function(t){return isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(t))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(t,a){return this.contents instanceof Collection?this.contents.get(t,a):void 0}},{key:"getIn",value:function(t,a){return isEmptyPath(t)?!a&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(t,a):void 0}},{key:"has",value:function(t){return this.contents instanceof Collection?this.contents.has(t):!1}},{key:"hasIn",value:function(t){return isEmptyPath(t)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(t):!1}},{key:"set",value:function(t,a){assertCollection(this.contents),this.contents.set(t,a)}},{key:"setIn",value:function(t,a){isEmptyPath(t)?this.contents=a:(assertCollection(this.contents),this.contents.setIn(t,a))}},{key:"setSchema",value:function(t,a){if(!(!t&&!a&&this.schema)){typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(a)&&(this.options.customTags=a);var r=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(r)}}},{key:"parse",value:function(t,a){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");var r=t.directives,o=r===void 0?[]:r,s=t.contents,i=s===void 0?[]:s,l=t.directivesEndMarker,u=t.error,c=t.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),parseDirectives(this,o,a),l&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){var d=_createForOfIteratorHelper(this.errors),f;try{for(d.s();!(f=d.n()).done;){var v=f.value;v instanceof YAMLError&&v.makePretty()}}catch(_){d.e(_)}finally{d.f()}var p=_createForOfIteratorHelper(this.warnings),h;try{for(p.s();!(h=p.n()).done;){var m=h.value;m instanceof YAMLError&&m.makePretty()}}catch(_){p.e(_)}finally{p.f()}}return this}},{key:"listNonDefaultTags",value:function(){return listTagNames(this.contents).filter(function(t){return t.indexOf(Schema.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(t,a){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(a){var r=this.tagPrefixes.find(function(o){return o.handle===t});r?r.prefix=a:this.tagPrefixes.push({handle:t,prefix:a})}else this.tagPrefixes=this.tagPrefixes.filter(function(o){return o.handle!==t})}},{key:"toJSON",value:function(t,a){var r=this,o=this.options,s=o.keepBlobsInJSON,i=o.mapAsMap,l=o.maxAliasCount,u=s&&(typeof t!="string"||!(this.contents instanceof Scalar)),c={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!i,maxAliasCount:l,stringify:stringify$1},d=Object.keys(this.anchors.map);d.length>0&&(c.anchors=new Map(d.map(function(g){return[r.anchors.map[g],{alias:[],aliasCount:0,count:1}]})));var f=toJSON(this.contents,t,c);if(typeof a=="function"&&c.anchors){var v=_createForOfIteratorHelper(c.anchors.values()),p;try{for(v.s();!(p=v.n()).done;){var h=p.value,m=h.count,_=h.res;a(_,m)}}catch(g){v.e(g)}finally{v.f()}}return f}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var t=this.options.indent;if(!Number.isInteger(t)||t<=0){var a=JSON.stringify(t);throw new Error('"indent" option must be a positive integer, not '.concat(a))}this.setSchema();var r=[],o=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),r.push(s),o=!0}var i=this.listNonDefaultTags();this.tagPrefixes.forEach(function(v){var p=v.handle,h=v.prefix;i.some(function(m){return m.indexOf(h)===0})&&(r.push("%TAG ".concat(p," ").concat(h)),o=!0)}),(o||this.directivesEndMarker)&&r.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&r.unshift(""),r.unshift(this.commentBefore.replace(/^/gm,"#")));var l={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:stringify$1},u=!1,c=null;if(this.contents){this.contents instanceof Node&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&r.push(""),this.contents.commentBefore&&r.push(this.contents.commentBefore.replace(/^/gm,"#")),l.forceBlockIndent=!!this.comment,c=this.contents.comment);var d=c?null:function(){return u=!0},f=stringify$1(this.contents,l,function(){return c=null},d);r.push(addComment(f,"",c))}else this.contents!==void 0&&r.push(stringify$1(this.contents,l));return this.comment&&((!u||c)&&r[r.length-1]!==""&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join(`
|
|
326
326
|
`)+`
|
|
327
327
|
`}}]),e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2?arguments[2]:void 0;t===void 0&&typeof n=="string"&&(t=n,n=!0);var a=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),r=new Schema(a);return r.createNode(e,n,t)}var Document=function(e){_inherits(t,e);var n=_createSuper(t);function t(a){return _classCallCheck(this,t),n.call(this,Object.assign({},defaultOptions,a))}return t}(Document$1);function parseAllDocuments(e,n){var t=[],a,r=_createForOfIteratorHelper(parse$1(e)),o;try{for(r.s();!(o=r.n()).done;){var s=o.value,i=new Document(n);i.parse(s,a),t.push(i),a=i}}catch(l){r.e(l)}finally{r.f()}return t}function parseDocument(e,n){var t=parse$1(e),a=new Document(n).parse(t[0]);if(t.length>1){var r="Source contains multiple documents; please use YAML.parseAllDocuments()";a.errors.unshift(new YAMLSemanticError(t[1],r))}return a}function parse(e,n){var t=parseDocument(e,n);if(t.warnings.forEach(function(a){return warn(a)}),t.errors.length>0)throw t.errors[0];return t.toJSON()}function stringify(e,n){var t=new Document(n);return t.contents=e,String(t)}var YAML={createNode,defaultOptions,Document,parse,parseAllDocuments,parseCST:parse$1,parseDocument,scalarOptions,stringify};const dist$1=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=LoadingSpinner.getAugmentedNamespace(dist$1);var browser$1,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser$1=require$$0.YAML),browser$1}var hasRequiredLoaders;function requireLoaders(){if(hasRequiredLoaders)return loaders;hasRequiredLoaders=1,Object.defineProperty(loaders,"__esModule",{value:!0}),loaders.loaders=void 0;let e;const n=function(l){return e===void 0&&(e=requireImportFresh()),e(l)};let t;const a=function(l,u){t===void 0&&(t=requireParseJson());try{return t(u)}catch(c){throw c.message=`JSON Error in ${l}:
|
|
328
328
|
${c.message}`,c}};let r;const s={loadJs:n,loadJson:a,loadYaml:function(l,u){r===void 0&&(r=requireBrowser());try{return r.parse(u,{prettyErrors:!0})}catch(c){throw c.message=`YAML Error in ${l}:
|
|
329
|
-
${c.message}`,c}}};return loaders.loaders=s,loaders}var getPropertyByPath={},hasRequiredGetPropertyByPath;function requireGetPropertyByPath(){if(hasRequiredGetPropertyByPath)return getPropertyByPath;hasRequiredGetPropertyByPath=1,Object.defineProperty(getPropertyByPath,"__esModule",{value:!0}),getPropertyByPath.getPropertyByPath=e;function e(n,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:(typeof t=="string"?t.split("."):t).reduce((r,o)=>r===void 0?r:r[o],n)}return getPropertyByPath}var hasRequiredExplorerBase;function requireExplorerBase(){if(hasRequiredExplorerBase)return ExplorerBase;hasRequiredExplorerBase=1,Object.defineProperty(ExplorerBase,"__esModule",{value:!0}),ExplorerBase.getExtensionDescription=s,ExplorerBase.ExplorerBase=void 0;var e=a(requirePath()),n=requireLoaders(),t=requireGetPropertyByPath();function a(i){return i&&i.__esModule?i:{default:i}}let r=class{constructor(l){l.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=l,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const l=this.config;l.searchPlaces.forEach(u=>{const c=e.default.extname(u)||"noExt",d=l.loaders[c];if(!d)throw new Error(`No loader specified for ${s(u)}, so searchPlaces item "${u}" is invalid`);if(typeof d!="function")throw new Error(`loader for ${s(u)} is not a function (type provided: "${typeof d}"), so searchPlaces item "${u}" is invalid`)})}shouldSearchStopWithResult(l){return!(l===null||l.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(l,u){if(this.shouldSearchStopWithResult(u))return null;const c=o(l);return c===l||l===this.config.stopDir?null:c}loadPackageProp(l,u){const c=n.loaders.loadJson(l,u);return(0,t.getPropertyByPath)(c,this.config.packageProp)||null}getLoaderEntryForFile(l){if(e.default.basename(l)==="package.json")return this.loadPackageProp.bind(this);const u=e.default.extname(l)||"noExt",c=this.config.loaders[u];if(!c)throw new Error(`No loader specified for ${s(l)}`);return c}loadedContentToCosmiconfigResult(l,u){return u===null?null:u===void 0?{filepath:l,config:void 0,isEmpty:!0}:{config:u,filepath:l}}validateFilePath(l){if(!l)throw new Error("load must pass a non-empty string")}};ExplorerBase.ExplorerBase=r;function o(i){return e.default.dirname(i)}function s(i){const l=e.default.extname(i);return l?`extension "${l}"`:"files without extensions"}return ExplorerBase}var readFile={},hasRequiredReadFile;function requireReadFile(){if(hasRequiredReadFile)return readFile;hasRequiredReadFile=1,Object.defineProperty(readFile,"__esModule",{value:!0}),readFile.readFile=a,readFile.readFileSync=r;var e=n(LoadingSpinner.require$$0);function n(o){return o&&o.__esModule?o:{default:o}}async function t(o,s){return new Promise((i,l)=>{e.default.readFile(o,s,(u,c)=>{if(u){l(u);return}i(c)})})}async function a(o,s={}){const i=s.throwNotFound===!0;try{return await t(o,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}function r(o,s={}){const i=s.throwNotFound===!0;try{return e.default.readFileSync(o,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}return readFile}var cacheWrapper={},hasRequiredCacheWrapper;function requireCacheWrapper(){if(hasRequiredCacheWrapper)return cacheWrapper;hasRequiredCacheWrapper=1,Object.defineProperty(cacheWrapper,"__esModule",{value:!0}),cacheWrapper.cacheWrapper=e,cacheWrapper.cacheWrapperSync=n;async function e(t,a,r){const o=t.get(a);if(o!==void 0)return o;const s=await r();return t.set(a,s),s}function n(t,a,r){const o=t.get(a);if(o!==void 0)return o;const s=r();return t.set(a,s),s}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),n=LoadingSpinner.require$$0;async function t(r,o,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return(await e(n[r])(s))[o]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function a(r,o,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return n[r](s)[o]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}return pathType.isFile=t.bind(null,"stat","isFile"),pathType.isDirectory=t.bind(null,"stat","isDirectory"),pathType.isSymlink=t.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=a.bind(null,"statSync","isFile"),pathType.isDirectorySync=a.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=a.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=a,getDirectory.getDirectorySync=r;var e=t(requirePath()),n=requirePathType();function t(o){return o&&o.__esModule?o:{default:o}}async function a(o){return await(0,n.isDirectory)(o)===!0?o:e.default.dirname(o)}function r(o){return(0,n.isDirectorySync)(o)===!0?o:e.default.dirname(o)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=o(requirePath()),n=requireExplorerBase(),t=requireReadFile(),a=requireCacheWrapper(),r=requireGetDirectory();function o(l){return l&&l.__esModule?l:{default:l}}function s(l){var u;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(u=l[Symbol.asyncIterator],u!=null)||Symbol.iterator&&(u=l[Symbol.iterator],u!=null)))return u.call(l);throw new TypeError("Object is not async iterable")}let i=class extends n.ExplorerBase{constructor(u){super(u)}async search(u=process.cwd()){const c=await(0,r.getDirectory)(u);return await this.searchFromDirectory(c)}async searchFromDirectory(u){const c=e.default.resolve(process.cwd(),u),d=async()=>{const f=await this.searchDirectory(c),v=this.nextDirectoryToSearch(c,f);return v?this.searchFromDirectory(v):await this.config.transform(f)};return this.searchCache?(0,a.cacheWrapper)(this.searchCache,c,d):d()}async searchDirectory(u){var c=!0,d=!1,f;try{for(var v=s(this.config.searchPlaces),p,h;p=await v.next(),c=p.done,h=await p.value,!c;c=!0){const g=h,m=await this.loadSearchPlace(u,g);if(this.shouldSearchStopWithResult(m)===!0)return m}}catch(g){d=!0,f=g}finally{try{!c&&v.return!=null&&await v.return()}finally{if(d)throw f}}return null}async loadSearchPlace(u,c){const d=e.default.join(u,c),f=await(0,t.readFile)(d);return await this.createCosmiconfigResult(d,f)}async loadFileContent(u,c){return c===null?null:c.trim()===""?void 0:await this.getLoaderEntryForFile(u)(u,c)}async createCosmiconfigResult(u,c){const d=await this.loadFileContent(u,c);return this.loadedContentToCosmiconfigResult(u,d)}async load(u){this.validateFilePath(u);const c=e.default.resolve(process.cwd(),u),d=async()=>{const f=await(0,t.readFile)(c,{throwNotFound:!0}),v=await this.createCosmiconfigResult(c,f);return await this.config.transform(v)};return this.loadCache?(0,a.cacheWrapper)(this.loadCache,c,d):d()}};return Explorer.Explorer=i,Explorer}var ExplorerSync={},hasRequiredExplorerSync;function requireExplorerSync(){if(hasRequiredExplorerSync)return ExplorerSync;hasRequiredExplorerSync=1,Object.defineProperty(ExplorerSync,"__esModule",{value:!0}),ExplorerSync.ExplorerSync=void 0;var e=o(requirePath()),n=requireExplorerBase(),t=requireReadFile(),a=requireCacheWrapper(),r=requireGetDirectory();function o(i){return i&&i.__esModule?i:{default:i}}let s=class extends n.ExplorerBase{constructor(l){super(l)}searchSync(l=process.cwd()){const u=(0,r.getDirectorySync)(l);return this.searchFromDirectorySync(u)}searchFromDirectorySync(l){const u=e.default.resolve(process.cwd(),l),c=()=>{const d=this.searchDirectorySync(u),f=this.nextDirectoryToSearch(u,d);return f?this.searchFromDirectorySync(f):this.config.transform(d)};return this.searchCache?(0,a.cacheWrapperSync)(this.searchCache,u,c):c()}searchDirectorySync(l){for(const u of this.config.searchPlaces){const c=this.loadSearchPlaceSync(l,u);if(this.shouldSearchStopWithResult(c)===!0)return c}return null}loadSearchPlaceSync(l,u){const c=e.default.join(l,u),d=(0,t.readFileSync)(c);return this.createCosmiconfigResultSync(c,d)}loadFileContentSync(l,u){return u===null?null:u.trim()===""?void 0:this.getLoaderEntryForFile(l)(l,u)}createCosmiconfigResultSync(l,u){const c=this.loadFileContentSync(l,u);return this.loadedContentToCosmiconfigResult(l,c)}loadSync(l){this.validateFilePath(l);const u=e.default.resolve(process.cwd(),l),c=()=>{const d=(0,t.readFileSync)(u,{throwNotFound:!0}),f=this.createCosmiconfigResultSync(u,d);return this.config.transform(f)};return this.loadCache?(0,a.cacheWrapperSync)(this.loadCache,u,c):c()}};return ExplorerSync.ExplorerSync=s,ExplorerSync}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist$2;hasRequiredDist=1,Object.defineProperty(dist$2,"__esModule",{value:!0}),dist$2.cosmiconfig=o,dist$2.cosmiconfigSync=s,dist$2.defaultLoaders=void 0;var e=r(LoadingSpinner.require$$0),n=requireExplorer(),t=requireExplorerSync(),a=requireLoaders();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,d={}){const f=l(c,d),v=new n.Explorer(f);return{search:v.search.bind(v),load:v.load.bind(v),clearLoadCache:v.clearLoadCache.bind(v),clearSearchCache:v.clearSearchCache.bind(v),clearCaches:v.clearCaches.bind(v)}}function s(c,d={}){const f=l(c,d),v=new t.ExplorerSync(f);return{search:v.searchSync.bind(v),load:v.loadSync.bind(v),clearLoadCache:v.clearLoadCache.bind(v),clearSearchCache:v.clearSearchCache.bind(v),clearCaches:v.clearCaches.bind(v)}}const i=Object.freeze({".js":a.loaders.loadJs,".json":a.loaders.loadJson,".yaml":a.loaders.loadYaml,".yml":a.loaders.loadYaml,noExt:a.loaders.loadYaml});dist$2.defaultLoaders=i;function l(c,d){const f={packageProp:c,searchPlaces:["package.json",`.${c}rc`,`.${c}rc.json`,`.${c}rc.yaml`,`.${c}rc.yml`,`.${c}rc.js`,`${c}.config.js`],ignoreEmptySearchPlaces:!0,stopDir:e.default.homedir(),cache:!0,transform:u,loaders:i};return{...f,...d,loaders:{...f.loaders,...d.loaders}}}const u=function(d){return d};return dist$2}(function(e){var n=interopRequireDefaultExports,t=n(require_extends()),a=n(requireObjectWithoutPropertiesLoose());const r=requirePath(),o=requireResolve(),s=/[./]macro(\.js)?$/,i=k=>s.test(k);class l extends Error{constructor(V){super(V),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(V).stack)}}let u=null;function c(){return u=u||requireDist().cosmiconfigSync("babel-plugin-macros",{searchPlaces:["package.json",".babel-plugin-macrosrc",".babel-plugin-macrosrc.json",".babel-plugin-macrosrc.yaml",".babel-plugin-macrosrc.yml",".babel-plugin-macrosrc.js","babel-plugin-macros.config.js"],packageProp:"babelMacros"})}function d(k,V={}){if(V.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return L.isBabelMacro=!0,L.options=V,L;function L($){const{source:A,isBabelMacrosCall:F}=$;if(!F)throw new l(`The macro you imported from "${A}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);return k($)}}function f(k,V){return o.sync(k,{basedir:V,paths:[r.resolve(__dirname,"../../")]})}function v(k,V={}){let{require:L=commonjsRequire,resolvePath:$=f,isMacrosName:A=i}=V,F=(0,a.default)(V,["require","resolvePath","isMacrosName"]);function P(q){const M=L(q);return M&&M.__esModule&&M.default?M.default:M}return{name:"macros",visitor:{Program(q,M){q.traverse({ImportDeclaration(j){if(!b(j,{node:{source:{value:E=>A(E)}}}))return;const J=j.node.specifiers.map(E=>({localName:E.local.name,importedName:E.type==="ImportDefaultSpecifier"?"default":E.imported.name})),W=j.node.source.value,C=p({path:j,imports:J,source:W,state:M,babel:k,interopRequire:P,resolvePath:$,options:F});(!C||!C.keepImports)&&j.remove()},VariableDeclaration(j){const Q=J=>b(J,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:W=>W.length===1&&A(W[0].value)}}});j.get("declarations").filter(Q).forEach(J=>{const W=J.node.id.name?[{localName:J.node.id.name,importedName:"default"}]:J.node.id.properties.map(z=>({localName:z.value.name,importedName:z.key.name})),C=J.get("init"),E=C.node.arguments[0].value,T=p({path:C,imports:W,source:E,state:M,babel:k,interopRequire:P,resolvePath:$,options:F});(!T||!T.keepImports)&&J.remove()})}})}}}}function p({path:k,imports:V,source:L,state:$,babel:A,interopRequire:F,resolvePath:P,options:q}){const{file:{opts:{filename:M=""}}}=$;let j=!1;const Q=V.reduce((z,{importedName:Y,localName:w})=>{const B=k.scope.getBinding(w);return z[Y]=B.referencePaths,j=j||!!z[Y].length,z},{}),J=L.indexOf(".")===0,W=P(L,r.dirname(_(M))),C=F(W);if(!C.isBabelMacro)throw new Error(`The macro imported from "${L}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);const E=m(C,M,L,q);let T;try{$.file.scope.path.traverse({Identifier(){}}),T=C({references:Q,source:L,state:$,babel:A,config:E,isBabelMacrosCall:!0})}catch(z){throw z.name==="MacroError"||(z.message=`${L}: ${z.message}`,J||(z.message=`${z.message} Learn more: https://www.npmjs.com/package/${L.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),z}return T}function h(k,V){try{const L=c().search(V);if(L)return{options:L.config[k],path:L.filepath}}catch(L){return{error:L}}return{}}function g(k,V){if(V.hasOwnProperty(k))if(V[k]&&typeof V[k]!="object")console.error(`The macro plugin options' ${k} property was not an object or null.`);else return{options:V[k]};return{}}function m(k,V,L,$){const{configName:A}=k.options;if(A){const F=h(A,V),P=g(A,$);if(P.options===void 0&&F.options===void 0&&F.error!==void 0)throw console.error(`There was an error trying to load the config "${A}" for the macro imported from "${L}. Please see the error thrown for more information.`),F.error;if(F.options!==void 0&&P.options!==void 0&&typeof F.options!="object")throw new Error(`${F.path} specified a ${A} config of type ${typeof P.options}, but the the macros plugin's options.${A} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},P.options,{},F.options)}}function _(k){return r.isAbsolute(k)?k:r.join(process.cwd(),k)}function b(k,V){return k&&V&&Object.keys(V).every(L=>{const $=V[L],A=k[L];return typeof $=="function"?$(A):S($)?$===A:b(A,$)})}function S(k){return k==null||/^[sbn]/.test(typeof k)}e.exports=v,Object.assign(e.exports,{createMacro:d,MacroError:l})})(dist$3);var distExports$1=dist$3.exports,define_process_env_default$3={};const{createMacro}=distExports$1;function requireContext({references:e,state:n,babel:{types:t}}){define_process_env_default$3.NODE_ENV==="test"?e.default.forEach(a=>a.parentPath.replaceWith(t.callExpression(t.identifier("require('require-context.macro/context')"),[t.identifier("__dirname"),...a.parent.arguments]))):e.default.forEach(a=>a.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...a.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=LoadingSpinner.getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__$1={};let files=null;if(typeof jest<"u")files=requireContext$1("../assets/svg",!0,/^\.\/.*\.svg$/);else if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.tagName.toUpperCase()==="SCRIPT"&&_documentCurrentScript.src||new URL("vs-component-library.js",document.baseURI).href}&&__vite_import_meta_env__$1){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(n=>n.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(n=>n.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-CRm5ANrL.js")).then(n=>n.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BeepnBTk.js")).then(n=>n.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-Cl9osRH8.js")).then(n=>n.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-ggLuAMuB.js")).then(n=>n.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-DSUouF6L.js")).then(n=>n.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-Bi0lAugE.js")).then(n=>n.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(n=>n.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(n=>n.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-DOUatF7F.js")).then(n=>n.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-CF9QEvIX.js")).then(n=>n.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-yAzNpi5x.js")).then(n=>n.default)});const e={};for(const[n,t]of Object.entries(files)){const a=n.replace("../assets/svg",".");e[a]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1r={name:"VsSvg",release:"0.1.1",status:"prototype",props:{path:{type:String,required:!0},fill:{type:String,default:""},height:{type:[Number,String],default:""},width:{type:[Number,String],default:""}},data(){return{svg:null}},computed:{nativeAttrs(){if(this.svg){const n=LoadingSpinner.lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=LoadingSpinner.lodashExports.fromPairs(LoadingSpinner.lodashExports.map(n,LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.split,LoadingSpinner.lodashExports.partial.placeholder,"=",2)));return LoadingSpinner.lodashExports.mapValues(t,LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.replace,LoadingSpinner.lodashExports.partial.placeholder,/"/g,""))}return null},attributes(){if(this.svg){const e={};let n={};return this.fill&&(LoadingSpinner.lodashExports.has(this.nativeAttrs,"style")?(n=this.nativeStyleAttrMap,n.fill=this.fill):n={fill:this.fill},e.style=LoadingSpinner.lodashExports.join(LoadingSpinner.lodashExports.map(LoadingSpinner.lodashExports.toPairs(n),LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.join,LoadingSpinner.lodashExports.partial.placeholder,":")),";")),this.height&&(e.height=this.height),this.width&&(e.width=this.width),LoadingSpinner.lodashExports.extend({},this.nativeAttrs,e)}return null},nativeStyleAttrMap(){if(this.svg){const e=LoadingSpinner.lodashExports.map(LoadingSpinner.lodashExports.split(this.nativeAttrs.style,";"),LoadingSpinner.lodashExports.ary(LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.split,LoadingSpinner.lodashExports.partial.placeholder,":"),1));return LoadingSpinner.lodashExports.fromPairs(e)}return null},children(){return this.svg?LoadingSpinner.lodashExports.nth(this.svg.match(/(<svg[^>]+.*?>)([\s\S]*)(<\/svg>)/),2):null}},mounted(){typeof output=="function"?this.svg=output(`./${this.path}.svg`):output[`./${this.path}.svg`]().then(e=>{this.svg=e})}},_hoisted_1$16=["innerHTML"];function _sfc_render$1a(e,n,t,a,r,o){return r.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},o.attributes,{innerHTML:o.children,focusable:"false"}),null,16,_hoisted_1$16)):vue.createCommentVNode("",!0)}const VsSvg=LoadingSpinner._export_sfc(_sfc_main$1r,[["render",_sfc_render$1a]]),_sfc_main$1q={name:"VsSvgLink",status:"prototype",release:"0.0.1",components:{VsSvg,VsLink},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0},svgFill:{type:String,default:""},svgPath:{type:String,required:!0},svgHeight:{type:[Number,String],default:""},svgWidth:{type:[Number,String],default:""},dataLayerValue:{type:String,default:null},linkVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)}}},_hoisted_1$15={class:"visually-hidden","data-test":"link-alt-text"};function _sfc_render$19(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvg"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(i,{class:"vs-svg-link","data-test":"vs-svg-link",href:t.href,"data-layer-value":t.dataLayerValue,variant:t.linkVariant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$15,vue.toDisplayString(t.linkAltText),1),vue.createVNode(s,{"data-test":"vs-svg-link__svg",focusable:"false",path:t.svgPath,fill:t.svgFill,width:t.svgWidth,height:t.svgHeight},null,8,["path","fill","width","height"])]),_:1},8,["href","data-layer-value","variant"])}const VsSvgLink=LoadingSpinner._export_sfc(_sfc_main$1q,[["render",_sfc_render$19]]),_sfc_main$1p={name:"VsFooterCopyright",status:"prototype",release:"0.0.1",components:{VsSvgLink,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0}},data(){return{currentYear:""}},computed:{getCurrentYear(){return new Date().getFullYear()}}},_hoisted_1$14={class:"vs-footer-copyright","data-unique-id":"vs-footer-sub_footer","data-test":"vs-footer-copyright"},_hoisted_2$S={class:"vs-footer-copyright__text"};function _sfc_render$18(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$14,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"text-center"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-footer-copyright__logo mb-100","data-test":"vs-footer-copyright-logo","link-alt-text":t.linkAltText,href:t.href,"svg-fill":"#ffffff","svg-path":"brandscotland-logo","link-variant":"on-dark"},null,8,["link-alt-text","href"]),vue.createElementVNode("p",_hoisted_2$S,[vue.createTextVNode(" © "+vue.toDisplayString(o.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=LoadingSpinner._export_sfc(_sfc_main$1p,[["render",_sfc_render$18]]),_sfc_main$1o={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{dropdownLabel:{type:String,default:"Our Websites"}},data(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}},_hoisted_1$13={class:"vs-global-menu"};function _sfc_render$17(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$13,[vue.createVNode(u,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(l,{fluid:"lg",class:"px-025 px-sm-075"},{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"vs-global-menu__wrapper"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"third-menu-item")]),_:3})]),_:3})]),_:3})]),_:3})])}const GlobalMenu=LoadingSpinner._export_sfc(_sfc_main$1o,[["render",_sfc_render$17]]),_sfc_main$1n={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown,VsIcon:LoadingSpinner.VsIcon},mixins:[cookieMixin],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}},_hoisted_1$12={class:"vs-global-menu__languages__text"},_hoisted_2$R={class:"vs-global-menu__languages__selected"},_hoisted_3$I={class:"vs-global-menu__languages__label",role:"menuitem"};function _sfc_render$16(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(i,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":vue.withCtx(()=>[vue.createVNode(s,{class:"vs-global-menu__languages__icon",icon:"fa-regular fa-globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createElementVNode("span",_hoisted_1$12,vue.toDisplayString(t.languageLabel),1),vue.createElementVNode("span",_hoisted_2$R,vue.toDisplayString(e.selectedLanguage),1)]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_3$I,[vue.createVNode(s,{icon:"fa-regular fa-globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createTextVNode(" "+vue.toDisplayString(t.languageLabel),1)]),vue.renderSlot(e.$slots,"default")]),_:3})}const GlobalMenuLanguage=LoadingSpinner._export_sfc(_sfc_main$1n,[["render",_sfc_render$16]]),_sfc_main$1m={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem},mixins:[cookieMixin],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage(){const e=this.cookieExists("vs_locale"),n=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!n)}}};function _sfc_render$15(e,n,t,a,r,o){const s=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:n[0]||(n[0]=i=>o.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=LoadingSpinner._export_sfc(_sfc_main$1m,[["render",_sfc_render$15]]),_sfc_main$1l={name:"VsHeroSectionImage",status:"prototype",release:"0.0.1",components:{VsCaption,VsImg:LoadingSpinner.VsImg},props:{src:{type:String,required:!0},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},split:{type:Boolean,default:!1}},computed:{isSplit(){return this.split?"vs-hero-section-image--split":""}}};function _sfc_render$14(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsCaption");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-hero-section-image",o.isSplit]),"data-test":"vs-hero-section-image"},[vue.createVNode(s,{class:"vs-hero-section-image__img",src:t.src,alt:t.imgAlt},null,8,["src","alt"]),t.imgCaption||t.imgCredit?(vue.openBlock(),vue.createBlock(i,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section-image__caption"},vue.createSlots({credit:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCredit),1)]),_:2},[t.split?void 0:{name:"caption",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCaption),1)]),key:"0"}]),1024)):vue.createCommentVNode("",!0)],2)}const VsHeroSectionImage=LoadingSpinner._export_sfc(_sfc_main$1l,[["render",_sfc_render$14]]),_sfc_main$1k={name:"VsHeroSectionVideoControl",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},inject:{videoPlayingStatus:{default:"Playing"},videoPausedStatus:{default:"Paused"}},emits:["videoToggled"],data(){return{isPlaying:!0}},methods:{toggleVideo(){this.$emit("videoToggled",this.isPlaying),this.isPlaying?this.isPlaying=!1:this.isPlaying=!0}}},_hoisted_1$11={"data-test":"vs-hero-section-video-control"},_hoisted_2$Q={"aria-live":"polite",class:"visually-hidden",role:"status"},_hoisted_3$H={key:0},_hoisted_4$x={key:1};function _sfc_render$13(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$11,[vue.createVNode(s,{"icon-only":"",class:"vs-hero-section-video-control",icon:r.isPlaying?"vs-icon-control-pause":"vs-icon-control-play",onClick:o.toggleVideo},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["icon","onClick"]),vue.createElementVNode("div",_hoisted_2$Q,[r.isPlaying&&o.videoPlayingStatus?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$H,vue.toDisplayString(o.videoPlayingStatus),1)):vue.createCommentVNode("",!0),!r.isPlaying&&o.videoPausedStatus?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$x,vue.toDisplayString(o.videoPausedStatus),1)):vue.createCommentVNode("",!0)])])}const VsHeroSectionVideoControl=LoadingSpinner._export_sfc(_sfc_main$1k,[["render",_sfc_render$13]]),_sfc_main$1j={name:"VsHeroSection",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsHeroSectionImage,VsHeroSectionVideoControl},provide(){return{videoPlayingStatus:this.videoPlayingStatus,videoPausedStatus:this.videoPausedStatus}},props:{heading:{type:String,default:"",required:!0},lede:{type:String,default:"",required:!0},imgSrc:{type:String,default:""},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},inset:{type:Boolean,default:!1},split:{type:Boolean,default:!1},videoSrc:{type:String,default:""},videoBtnText:{type:String,default:""},videoPlayingStatus:{type:String,default:""},videoPausedStatus:{type:String,default:""}},computed:{imageClasses(){return{"vs-hero-section__image--inset":this.inset}},textContainerClasses(){return[{"vs-hero-section__text-container--video":this.videoSrc},"vs-hero-section__text-container"]}},methods:{onToggleVideo(e){e?this.$refs.heroVideo.pause():this.$refs.heroVideo.play()}}},_hoisted_1$10={class:"vs-hero-section__grid"},_hoisted_2$P={key:1,class:"vs-hero-section__video-wrapper"},_hoisted_3$G=["poster"],_hoisted_4$w=["src"],_hoisted_5$n={key:2,class:"vs-hero-section__divider"},_hoisted_6$i={class:"vs-hero-section__text"},_hoisted_7$f=["innerHTML"],_hoisted_8$6={class:"mb-0"};function _sfc_render$12(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeroSectionImage"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsHeroSectionVideoControl");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-hero-section",{"vs-hero-section--split":t.split}]),"data-test":"vs-hero-section"},[vue.createElementVNode("div",_hoisted_1$10,[t.imgSrc&&!t.videoSrc?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-hero-section__image",o.imageClasses])},[vue.createVNode(s,{"img-alt":t.imgAlt,src:t.imgSrc,"img-caption":t.imgCaption,"img-credit":t.imgCredit,split:t.split},null,8,["img-alt","src","img-caption","img-credit","split"])],2)):t.videoSrc?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$P,[vue.createElementVNode("video",{loop:"",muted:"",autoplay:"",playsinline:"",preload:"auto",poster:t.imgSrc,class:"vs-hero-section__video",ref:"heroVideo","aria-hidden":"true",fetchpriority:"high"},[vue.createElementVNode("source",{src:t.videoSrc,type:"video/mp4"},null,8,_hoisted_4$w)],8,_hoisted_3$G),n[0]||(n[0]=vue.createElementVNode("div",{class:"vs-hero-section__video-overlay"},null,-1))])):(vue.openBlock(),vue.createElementBlock("hr",_hoisted_5$n)),vue.createElementVNode("div",{class:vue.normalizeClass(o.textContainerClasses)},[vue.createElementVNode("div",_hoisted_6$i,[vue.createVNode(i,{class:"vs-hero-section__heading","data-test":"vs-hero-section__heading",level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.createElementVNode("span",{innerHTML:t.heading},null,8,_hoisted_7$f)]),_:1}),t.lede?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-hero-section__lede","data-test":"vs-hero-section__lede",variant:"lead"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_8$6,vue.toDisplayString(t.lede),1)]),_:1})):vue.createCommentVNode("",!0)]),t.videoSrc?(vue.openBlock(),vue.createBlock(u,{key:0,"video-btn-text":"Toggle video",onVideoToggled:o.onToggleVideo,"video-playing-status":t.videoPlayingStatus,"video-paused-status":t.videoPausedStatus},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onVideoToggled","video-playing-status","video-paused-status"])):vue.createCommentVNode("",!0)],2)])],2)}const HeroSection=LoadingSpinner._export_sfc(_sfc_main$1j,[["render",_sfc_render$12]]),_sfc_main$1i={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[LoadingSpinner.dataLayerMixin],props:{statusCode:{type:String,required:!0}},mounted(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}},_hoisted_1$$={class:"d-none"};function _sfc_render$11(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$$)}const HtmlError=LoadingSpinner._export_sfc(_sfc_main$1i,[["render",_sfc_render$11]]),_sfc_main$1h={name:"VsTourismInfo",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol}},_hoisted_1$_={class:"vs-tourism-info","data-test":"vs-tourism-info"},_hoisted_2$O={key:0,class:"vs-tourism-info__links","data-test":"vs-tourism-info__standalone-links"},_hoisted_3$F={class:"vs-tourism-info__quote-block"},_hoisted_4$v={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$10(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$_,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-tourism-info__intro-content"},{default:vue.withCtx(()=>[e.$slots["tourism-info-links"]&&e.$slots["tourism-info-links"]()&&!(e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]())?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$O,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(s,{cols:"12",md:"10","offset-md":"1",class:vue.normalizeClass({"vs-tourism-info__image-offset":e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"tourism-info-image-with-caption")]),_:3},8,["class"]),e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"10","offset-md":"1",lg:"7","offset-lg":"5",class:"vs-tourism-info__quote-block-container"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$F,[vue.renderSlot(e.$slots,"tourism-info-quote"),e.$slots["tourism-info-links"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$v,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=LoadingSpinner._export_sfc(_sfc_main$1h,[["render",_sfc_render$10]]),_sfc_main$1g={name:"VsIconList",status:"prototype",release:"0.0.1",props:{title:{type:String,default:""}}},_hoisted_1$Z={class:"vs-icon-list","data-test":"vs-icon-list"},_hoisted_2$N={key:0,class:"vs-icon-list__title"},_hoisted_3$E={class:"vs-icon-list__list mb-0"};function _sfc_render$$(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Z,[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$N,vue.toDisplayString(t.title),1)):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_3$E,[vue.renderSlot(e.$slots,"default")])])}const IconList=LoadingSpinner._export_sfc(_sfc_main$1g,[["render",_sfc_render$$]]),_sfc_main$1f={name:"VsIconListItem",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{label:{type:String,required:!0},icon:{type:String,required:!0}}},_hoisted_1$Y={class:"vs-icon-list__item","data-test":"vs-icon-list__item"};function _sfc_render$_(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$Y,[vue.createVNode(s,{icon:t.icon,size:"md",class:"d-block mx-auto"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(t.label),1)])}const IconListItem=LoadingSpinner._export_sfc(_sfc_main$1f,[["render",_sfc_render$_]]),_sfc_main$1e={name:"VsToggleButton",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsIcon:LoadingSpinner.VsIcon},props:{toggleId:{type:String,default:""}},emits:["toggleAction"],data(){return{show:!1}},methods:{toggleAction(){this.show=!this.show,this.$emit("toggleAction",this.show)}}};function _sfc_render$Z(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{class:"vs-toggle-btn","data-test":"vs-toggle-btn",variant:"subtle","aria-controls":t.toggleId,"aria-expanded":r.show?"true":"false",onClick:o.toggleAction},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),r.show?(vue.openBlock(),vue.createBlock(s,{key:0,class:"fa-icon-colours fa-icon-colours--white",icon:"fa-duotone fa-solid fa-circle-xmark"})):vue.renderSlot(e.$slots,"toggle-icon",{key:1},()=>[vue.createVNode(s,{class:"fa-icon-colours",icon:"fa-duotone fa-solid fa-circle-info"})])]),_:3},8,["aria-controls","aria-expanded","onClick"])}const VsToggleButton=LoadingSpinner._export_sfc(_sfc_main$1e,[["render",_sfc_render$Z]]),cookieValues$2=cookieValues$5.youtube,_sfc_main$1d={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsToggleButton,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:e=>e.match(/(wide|narrow)/)}},emits:["toggleAction"],setup(){return{videoStore:useVideoStore()}},data(){return{showErrorMessage:!1,requiredCookies:cookieValues$2}},computed:{videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},showCookieMessage(){return!!(!this.cookiesAllowed&&this.noCookiesMessage)}},methods:{emitToggle(){this.$emit("toggleAction")},emitShowModal(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$X={key:0,class:"vs-video-caption__buttons-container"},_hoisted_2$M={class:"container"},_hoisted_3$D={key:1,class:"vs-video-caption__details"},_hoisted_4$u={class:"vs-video-caption__title"},_hoisted_5$m={class:"vs-video-caption__duration"},_hoisted_6$h={key:1,class:"vs-video-caption vs-video-caption--warning"},_hoisted_7$e={key:2,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$Y(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption",class:vue.normalizeClass(["vs-video-caption__wrapper",`vs-video-caption__wrapper--${t.variant}`])},[o.videoLoaded&&e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption-variants",class:vue.normalizeClass(["vs-video-caption",`vs-video-caption--${t.variant}`]),key:"video-caption"},[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$X,[vue.createElementVNode("div",_hoisted_2$M,[vue.createVNode(s,{class:"vs-video-caption__button",icon:"vs-icon-control-play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(i,{key:0,onToggleAction:o.emitToggle},{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1)])),_:1,__:[0]},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$D,[vue.createElementVNode("p",_hoisted_4$u,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_5$m,vue.toDisplayString(o.videoDetails.videoDurationMsg),1)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),!(o.videoLoaded&&e.cookiesAllowed)&&o.showCookieMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$h,[vue.createVNode(l,{size:"small",type:"cookie"},{"button-text":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noCookiesMessage)+" ",1)]),_:1})])):vue.createCommentVNode("",!0),o.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$e,[vue.createVNode(l,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=LoadingSpinner._export_sfc(_sfc_main$1d,[["render",_sfc_render$Y]]),cookieValues$1=cookieValues$5.youtube,_sfc_main$1c={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsToggleButton,VsVideoCaption},mixins:[cookieCheckerMixin],provide(){return{noJsMessage:this.noJsMessage,errorMessage:this.errorMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data(){return{showCaption:!1,uniqueCaptionId:"",requiredCookies:cookieValues$1}},computed:{isSvg(){return this.imageSrc.endsWith(".svg")},imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--show-caption":!this.cookiesAllowed&&this.cookiesLoaded,"vs-image-with-caption--video":this.isVideo,"vs-image-with-caption--svg":this.isSvg}},captionWrapperClasses(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted(){this.uniqueCaptionId=this._uid},methods:{toggleCaption(){this.showCaption=!this.showCaption}}},_hoisted_1$W={class:"visually-hidden"},_hoisted_2$L={class:"vs-image-with-caption__captions"},_hoisted_3$C=["id"];function _sfc_render$X(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsVideoCaption");return vue.openBlock(),vue.createElementBlock("figure",{class:vue.normalizeClass(["vs-image-with-caption",o.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__image-wrapper",t.mobileOverlap?"vs-image-with-caption--overlapped":""])},[vue.renderSlot(e.$slots,"default",{},()=>[t.imageSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imageSrc,alt:t.altText,"use-lazy-loading":t.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):vue.createCommentVNode("",!0)]),t.showToggle?(vue.openBlock(),vue.createBlock(i,{key:0,"img-src":t.imageSrc,"toggle-id":r.uniqueCaptionId,onToggleAction:o.toggleCaption},{"toggle-icon":vue.withCtx(()=>[vue.renderSlot(e.$slots,"toggle-icon")]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$W,vue.toDisplayString(t.toggleButtonText),1)]),_:3},8,["img-src","toggle-id","onToggleAction"])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("figcaption",_hoisted_2$L,[t.isVideo?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-image-with-caption__video-caption-wrapper",t.isHeroImage?"container-lg":""])},[vue.createVNode(l,{"video-btn-text":t.playButtonText,"with-toggle-btn":t.showToggle,onToggleAction:o.toggleCaption,"video-id":t.videoId,"cookie-link-text":t.cookieLinkText,"error-message":t.errorMessage,variant:t.smallPlayButton?"narrow":"wide"},{"video-title":vue.withCtx(()=>[vue.renderSlot(e.$slots,"video-title")]),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","cookie-link-text","error-message","variant"])],2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__caption-wrapper",o.captionWrapperClasses]),id:r.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$C)])],2)}const ImageWithCaption=LoadingSpinner._export_sfc(_sfc_main$1c,[["render",_sfc_render$X]]),_sfc_main$1b={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:LoadingSpinner.Tu,VsButton:LoadingSpinner.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(e){let n;switch(e){case"firstName":n="given-name";break;case"lastName":n="family-name";break;case"Email":n="email";break;case"PostalCode":n="postal-code";break;default:n=this.autoComplete?"on":"off";break}return n},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$V={"data-test":"vs-input"},_hoisted_2$K=["id"],_hoisted_3$B=["id"],_hoisted_4$t={class:"visually-hidden"};function _sfc_render$W(e,n,t,a,r,o){const s=vue.resolveComponent("BFormInput"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$K)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$t,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$B)):vue.createCommentVNode("",!0),vue.createVNode(s,{ref:"input",type:t.type,class:vue.normalizeClass(["vs-input",[r.inputVal?"show-cancel":"",o.elementClass]]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>r.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.validationRules.min!==void 0?t.validationRules.min:null,max:t.validationRules.max!==void 0?t.validationRules.max:null,disabled:t.disabled,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),o.showClearButton?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:n[1]||(n[1]=vue.withModifiers(l=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=LoadingSpinner._export_sfc(_sfc_main$1b,[["render",_sfc_render$W]]),_sfc_main$1a={name:"VsItinerary",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsAccordion,VsButton:LoadingSpinner.VsButton},props:{listViewText:{type:String,default:"List view"},mapViewText:{type:String,default:"Map view"}},data(){return{showMap:!1,isDesktop:!1,withinItineraryMain:!1}},mounted(){const e=document.querySelector(".vds-example");window.addEventListener("resize",this.resizeWidth),e===null?window.addEventListener("scroll",this.onScroll):e.addEventListener("scroll",this.onScroll),this.resizeWidth()},unmounted(){window.removeEventListener("resize",this.resizeWidth)},methods:{resizeWidth(){this.isDesktop=window.innerWidth>=1200,this.showMap=window.innerWidth>=1200},onScroll(){const e=this.$el.getBoundingClientRect(),n=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(n&&!t)},toggleShowMap(){this.showMap=!this.showMap}}},_hoisted_1$U={class:"vs-itinerary","data-test":"vs-itinerary"},_hoisted_2$J={class:"fixed-bottom"},_hoisted_3$A={class:"d-flex justify-content-center pb-050"},_hoisted_4$s={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$V(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$U,[vue.withDirectives(vue.createElementVNode("div",_hoisted_2$J,[vue.createElementVNode("div",_hoisted_3$A,[vue.createVNode(s,{class:"vs-itinerary__map-toggle-button",onClick:n[0]||(n[0]=d=>o.toggleShowMap()),icon:r.showMap?"fa-regular fa-list":"fa-regular fa-map","data-test":"vs-itinerary-btn"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.showMap?t.listViewText:t.mapViewText),1)]),_:1},8,["icon"])])],512),[[vue.vShow,!r.isDesktop&&r.withinItineraryMain]]),r.isDesktop||r.showMap?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$s,[vue.renderSlot(e.$slots,"map")])):vue.createCommentVNode("",!0),vue.createVNode(c,{class:"vs-itinerary__outer-container"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"p-0 vs-itinerary__accordion-container"},{default:vue.withCtx(()=>[vue.createVNode(i,{"break-point":"lg"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"list")]),_:3})]),_:3})]),_:3})]),_:3})])}const Itinerary=LoadingSpinner._export_sfc(_sfc_main$1a,[["render",_sfc_render$V]]),_sfc_main$19={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsIcon:LoadingSpinner.VsIcon,VsAccordionItem},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data(){return{show:this.defaultShow}}},_hoisted_1$T={class:"vs-itinerary-day"},_hoisted_2$I={class:"vs-itinerary-day__header"},_hoisted_3$z={class:"vs-itinerary-day__title"},_hoisted_4$r={class:"vs-itinerary-day__sub-heading"},_hoisted_5$l=["id"],_hoisted_6$g={class:"vs-itinerary-day__intro-content"},_hoisted_7$d={class:"list-unstyled"};function _sfc_render$U(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionItem"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$T,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{"open-by-default":r.show,"control-id":`itinerary-day-${t.dayNumber}`,variant:"subtle","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$I,[vue.createElementVNode("span",_hoisted_3$z,vue.toDisplayString(t.dayLabel)+" "+vue.toDisplayString(t.dayNumber),1),vue.createElementVNode("span",_hoisted_4$r,vue.toDisplayString(t.dayTitle),1)])]),"icon-open":vue.withCtx(()=>[vue.createVNode(s,{icon:"vs-icon-control-collapse",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),"icon-closed":vue.withCtx(()=>[vue.createVNode(s,{icon:"vs-icon-control-expand",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),default:vue.withCtx(()=>[vue.createElementVNode("div",{id:`dayPanel_${t.dayNumber}`,class:"vs-itinerary-day__panel"},[vue.createElementVNode("div",_hoisted_6$g,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$d,[vue.renderSlot(e.$slots,"stops")])],8,_hoisted_5$l)]),_:3},8,["open-by-default","control-id"])]),_:3})]),_:3})]),_:3})])}const ItineraryDay=LoadingSpinner._export_sfc(_sfc_main$19,[["render",_sfc_render$U]]),_sfc_main$18={name:"VsItineraryStop",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,VsBody:LoadingSpinner.VsBody,VsDetail},props:{stopLabel:{type:String,required:!0},stopNumber:{type:String,required:!0},stopTitle:{type:String,required:!0}}},_hoisted_1$S={class:"vs-itinerary-stop","data-test":"vs-itinerary-stop"},_hoisted_2$H={class:"vs-itinerary-stop__border"},_hoisted_3$y={class:"vs-itinerary-stop__header","data-test":"vs-itinerary-stop-heading"},_hoisted_4$q={class:"vs-itinerary-stop__marker"},_hoisted_5$k={class:"vs-itinerary-stop__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$f={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$c={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$T(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsDetail"),u=vue.resolveComponent("VsBody");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$S,[vue.createElementVNode("div",_hoisted_2$H,[vue.createElementVNode("div",_hoisted_3$y,[vue.createElementVNode("div",_hoisted_4$q,[vue.createVNode(s,{icon:"fa-solid fa-location-pin",variant:"highlight",size:"xl"}),vue.createElementVNode("span",_hoisted_5$k,vue.toDisplayString(t.stopNumber),1)]),vue.createVNode(i,{level:"3","heading-style":"heading-s",class:"vs-itinerary-stop__title mb-025","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopLabel),1)]),_:1}),vue.createVNode(l,{class:"vs-itinerary-stop__detail","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopTitle),1)]),_:1})]),vue.renderSlot(e.$slots,"default"),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-description")]),_:3}),vue.renderSlot(e.$slots,"stop-time-to-explore"),vue.renderSlot(e.$slots,"stop-tips"),vue.createElementVNode("div",_hoisted_6$f,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$c,[vue.renderSlot(e.$slots,"stop-address")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"stop-info")]),vue.renderSlot(e.$slots,"stop-facilities")]),e.$slots["stop-buttons"]?vue.renderSlot(e.$slots,"stop-buttons",{key:0}):vue.createCommentVNode("",!0)])}const ItineraryStop=LoadingSpinner._export_sfc(_sfc_main$18,[["render",_sfc_render$T]]),_sfc_main$17={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsLink},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage(){let e="";if(this.closedLongTerm)e=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":e=this.closedText;break;case"closing soon":e=this.closingSoonText;break;case"open":e=this.openText;break;default:e=""}return e},provisionalMessage(){let e="";if(typeof this.currentDayData[0]<"u"){const n=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${n.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${n.toLowerCase()} ${this.currentDayData[0].day}`,this.currentDayData[0].state!=="closed"&&typeof this.currentDayData[this.dayDataIndex]<"u"&&typeof this.currentDayData[this.dayDataIndex].startTime<"u"&&typeof this.currentDayData[this.dayDataIndex].endTime<"u"&&this.currentDayData[this.dayDataIndex].startTime!==""&&this.currentDayData[this.dayDataIndex].endTime!==""&&this.currentDayData.forEach((t,a)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,a+1<this.currentDayData.length&&(e+=` ${this.andText} `)})}return e}},created(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData(){if(typeof this.openingHours!="object"){const e=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(e)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime(){const e=new Date,n=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=n.substring(0,2),a=n.substring(3,6),r=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(a,10),this.currentTime.day=r},isActiveDate(){if(typeof this.parsedHours.period<"u"){const e=`${this.ukDate.substring(3,5)}/${this.ukDate.substring(0,2)}/${this.ukDate.substring(6,10)}`,n=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),a=new Date(e);a<t&&a>n?this.isCurrentTimeframe=!0:this.isCurrentTimeframe=!1}else this.isCurrentTimeframe=!0},getCurrentHoursInfo(){const e=this.returnDayName(this.currentTime.day);if(typeof this.parsedHours.days<"u"){const n=this.parsedHours.days.filter(t=>t.key===e);typeof n<"u"&&(this.currentDayData=n,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,n,t){if(typeof n[t].startTime<"u"&&typeof n[t].endTime<"u"&&n[t].startTime.length>0&&n[t].endTime.length>0){const a=n[t].startTime,r=n[t].endTime,o=parseInt(a.substring(0,a.indexOf(":")),10),s=parseInt(a.substring(a.indexOf(":")+1,a.length),10),i=parseInt(r.substring(0,r.indexOf(":")),10),l=parseInt(r.substring(r.indexOf(":")+1,r.length),10),u=this.calculateClosingSoon(i,l);n[t].state==="closed"?this.openingMessage="closed":o>e.hours||o===e.hours&&s>e.minutes||i<e.hours||i===e.hours&&l<e.minutes?this.openingMessage="closed":this.withinClosingSoonTime(e,u)?this.openingMessage="closing soon":this.openingMessage="open",this.openingMessage==="closed"&&n.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else n[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let n="";switch(e){case 1:n="monday";break;case 2:n="tuesday";break;case 3:n="wednesday";break;case 4:n="thursday";break;case 5:n="friday";break;case 6:n="saturday";break;case 7:n="sunday";break;default:n=""}return n},calculateClosingSoon(e,n){let t,a;return n<30?(t=e-1,a=60+(n-30)):(t=e,a=n-30),{hours:t,mins:a}},withinClosingSoonTime(e,n){return!(n.hours>e.hours||n.hours===e.hours&&n.mins>e.minutes)}}},_hoisted_1$R={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},_hoisted_2$G={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},_hoisted_3$x={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_4$p={key:1,"data-test":"vs-stop-link"},_hoisted_5$j={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$S(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$R,[vue.createVNode(s,{icon:"vs-icon-feedback-information",class:"vs-address__map-marker me-050"}),vue.createElementVNode("div",null,[r.isCurrentTimeframe?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[o.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$G,[vue.createTextVNode(vue.toDisplayString(o.hoursMessage),1),n[0]||(n[0]=vue.createElementVNode("br",null,null,-1))])):vue.createCommentVNode("",!0),!r.closedLongTerm&&typeof r.currentDayData[0]<"u"&&typeof r.currentDayData[0].state<"u"&&o.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$x,vue.toDisplayString(o.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$p,[vue.createVNode(i,{href:t.openingTimesLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-link-text")]),_:3},8,["href"])])):vue.createCommentVNode("",!0),e.$slots["stop-charge-text"]?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$j,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=LoadingSpinner._export_sfc(_sfc_main$17,[["render",_sfc_render$S]]),_sfc_main$16={name:"VsItineraryTips",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$Q={class:"vs-itinerary-tips position-relative my-175"},_hoisted_2$F={class:"vs-itinerary-tips__text"},_hoisted_3$w={class:"vs-itinerary-tips__svg position-absolute"};function _sfc_render$R(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createElementVNode("div",_hoisted_2$F,[vue.renderSlot(e.$slots,"text")]),vue.createElementVNode("div",_hoisted_3$w,[vue.renderSlot(e.$slots,"svg")])])}const ItineraryTips=LoadingSpinner._export_sfc(_sfc_main$16,[["render",_sfc_render$R]]),_sfc_main$15={name:"VsItineraryBorderOverlapWrapper",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$P={class:"vs-itinerary-border-overlap__wrapper d-flex d-sm-inline-flex flex-column justify-content-start border-left"};function _sfc_render$Q(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$P,[vue.renderSlot(e.$slots,"default")])}const ItineraryBorderOverlapWrapper=LoadingSpinner._export_sfc(_sfc_main$15,[["render",_sfc_render$Q]]),_sfc_main$14={name:"VsLinkList",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},props:{toc:{type:Boolean,default:!1}},computed:{classes(){return{"link-list":!0,"link-list--toc":this.toc}},dataTest(){return this.toc?"link-list--toc":"link-list"},hasHeadingSlot(){return!!this.$slots.heading}}},_hoisted_1$O=["data-test"],_hoisted_2$E={class:"link-list__list"};function _sfc_render$P(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.classes),"data-test":o.dataTest},[vue.createElementVNode("nav",null,[o.hasHeadingSlot?(vue.openBlock(),vue.createBlock(s,{key:0,level:"2","no-margins":"","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"heading")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_2$E,[vue.renderSlot(e.$slots,"default")])])],10,_hoisted_1$O)}const VsLinkList=LoadingSpinner._export_sfc(_sfc_main$14,[["render",_sfc_render$P]]),_sfc_main$13={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download|video)/)},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},setup(){return{videoStore:useVideoStore()}},computed:{formattedVideoDuration(){if(this.videoDetails){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`}return""},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$N={class:"link-list-item"};function _sfc_render$O(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$N,[vue.createVNode(s,{href:t.href,type:t.type==="video"?"default":t.type,role:t.type==="video"?"button":null,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type==="video"&&o.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(o.formattedVideoDuration),1)],64)):vue.createCommentVNode("",!0)]),_:3},8,["href","type","role","onClick"])])}const LinkListItem=LoadingSpinner._export_sfc(_sfc_main$13,[["render",_sfc_render$O]]),_sfc_main$12={name:"VsListicleItem",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsDetail},props:{index:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{hasKeyFacilitiesSlot(){return!!this.$slots["facilities-slot"]}}},_hoisted_1$M={class:"vs-listicle-item border","data-test":"vs-listicle-item"},_hoisted_2$D={class:"vs-listicle-item__header","data-test":"vs-listicle-item-heading"},_hoisted_3$v={class:"count__bg"},_hoisted_4$o={class:"count","aria-hidden":"true"};function _sfc_render$N(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsDetail"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$M,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$D,[vue.createElementVNode("div",_hoisted_3$v,[vue.createElementVNode("span",_hoisted_4$o,vue.toDisplayString(t.index),1)]),vue.createVNode(s,{level:"2","heading-style":"heading-s",class:"vs-listicle-item__title mb-025","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.createVNode(i,{class:"vs-listicle-item__detail","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subTitle),1)]),_:1})]),vue.renderSlot(e.$slots,"image-slot"),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,{cols:"12",lg:"8",class:"mt-050 mt-sm-300 mb-100 mt-lg-050 pe-lg-300"},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"description-slot")]),_:3})]),_:3}),vue.createVNode(u,{cols:"12",lg:"4",class:vue.normalizeClass(["key-facilities-list mt-lg-400",[o.hasKeyFacilitiesSlot?"has-facilities":""]])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"facilities-slot")]),_:3},8,["class"])]),_:3})])}const ListicleItem=LoadingSpinner._export_sfc(_sfc_main$12,[["render",_sfc_render$N]]),__vite_import_meta_env__={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var define_process_env_default$2={};const getEnvValue=e=>define_process_env_default$2?define_process_env_default$2[e]:__vite_import_meta_env__[e],_sfc_main$11={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:LoadingSpinner.Lu},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1}},emits:["toggleAction","updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions(){return this.countries?this.countryList:this.options}},watch:{inputVal(e){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},beforeMount(){this.countries&&LoadingSpinner.axios.get(this.countryListUrl).then(e=>{this.countryList=e.data.countries})},methods:{autocompleteValue(e){let n;switch(e){case"Country":n="country-name";break;default:n="on";break}return n}},validations(){return this.rules}},_hoisted_1$L={class:"vs-select"},_hoisted_2$C=["id"],_hoisted_3$u=["id"],_hoisted_4$n={class:"visually-hidden"},_hoisted_5$i={class:"vs-select__container mt-050"};function _sfc_render$M(e,n,t,a,r,o){const s=vue.resolveComponent("BFormSelect");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$L,[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$C),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$n,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$u)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$i,[vue.createVNode(s,vue.mergeProps({modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i)},e.$attrs,{options:o.fieldOptions,name:t.fieldName,id:t.fieldName,onChange:e.emitStatus,onBlur:e.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",o.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:o.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),n[1]||(n[1]=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1))])])}const VsSelect=LoadingSpinner._export_sfc(_sfc_main$11,[["render",_sfc_render$M]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_extends.apply(this,arguments)}var defer=function e(){var n=!1,t=[],a=function(){if(!n){n=!0;for(var i=0,l=t.length;i<l;i++)t[i]()}},r=function(i){if(!n){t.push(i);return}i()},o={resolved:function(){return n},resolve:a,promise:{then:r}};return o},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,a,r){this.wait().then(function(){r(window.grecaptcha.render(t,a))})},reset:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(t)}))},execute:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(t)}))},checkRecaptchaLoad:function(){ownProp.call(window,"grecaptcha")&&ownProp.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var recaptcha=createRecaptcha();typeof window<"u"&&(window.vueRecaptchaApiLoaded=recaptcha.notify);var Recaptcha=vue.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function e(n,t){var a=t.slots,r=t.emit,o=vue.ref(null),s=vue.ref(null),i=function(d){r("verify",d)},l=function(){r("expired")},u=function(){r("error")};return vue.onMounted(function(){if(recaptcha.checkRecaptchaLoad(),n.loadRecaptchaScript&&!document.getElementById(n.recaptchaScriptId)){var c=document.createElement("script");c.id=n.recaptchaScriptId,c.src="https://"+n.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+n.language,c.async=!0,c.defer=!0,document.head.appendChild(c)}var d=_extends({},n,{callback:i,"expired-callback":l,"error-callback":u}),f=o.value,v=a.default?f.children[0]:f;recaptcha.render(v,d,function(p){s.value=p,r("render",p)})}),{root:o,widgetId:s,reset:function(){recaptcha.reset(s.value)},execute:function(){recaptcha.execute(s.value)}}},render:function e(){var n=this.$slots.default,t;return typeof n=="function"?t=n():t=n,vue.h("div",{ref:"root"},t)}});const _sfc_main$10={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:Recaptcha},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},emits:["verified"],data(){return{response:null,recaptchaSiteKey:""}},created(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=getEnvValue("RECAPTCHA_TOKEN")},methods:{verified(e){this.$emit("verified",e)},render(){const e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){const n=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),a=document.createElement("label");a.setAttribute("for","g-recaptcha-response"),a.setAttribute("class","visually-hidden"),a.textContent=this.textareaLabel,t||n.insertBefore(a,e[0])}}}},_hoisted_1$K={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$B={key:0,class:"error"};function _sfc_render$L(e,n,t,a,r,o){const s=vue.resolveComponent("VueRecaptcha");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[t.invalid&&!t.reAlertErrors?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$B,vue.toDisplayString(t.errorMsg),1)):vue.createCommentVNode("",!0),r.recaptchaSiteKey?(vue.openBlock(),vue.createBlock(s,{key:1,sitekey:r.recaptchaSiteKey,onVerify:o.verified,onRender:o.render,class:vue.normalizeClass(["vs-recaptcha__embed",t.invalid?"vs-recaptcha__embed--error":""]),language:t.language},null,8,["sitekey","onVerify","onRender","class","language"])):vue.createCommentVNode("",!0)])}const VsRecaptcha=LoadingSpinner._export_sfc(_sfc_main$10,[["render",_sfc_render$L]]),_sfc_main$$={name:"VsTextarea",status:"prototype",release:"0.0.1",components:{BFormTextarea:LoadingSpinner.ld},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},rows:{type:Number||String,default:2}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(){return this.autoComplete?"on":"off"},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$J={"data-test":"vs-textarea"},_hoisted_2$A=["id"],_hoisted_3$t=["id"],_hoisted_4$m={class:"visually-hidden"};function _sfc_render$K(e,n,t,a,r,o){const s=vue.resolveComponent("BFormTextarea");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$A)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$m,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$t)):vue.createCommentVNode("",!0),vue.createVNode(s,{ref:"input",class:vue.normalizeClass(["vs-textarea",o.elementClass]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,disabled:t.disabled,rows:t.rows,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["class","modelValue","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","disabled","rows","onBlur","onChange","onFocus"])])}const VsTextarea=LoadingSpinner._export_sfc(_sfc_main$$,[["render",_sfc_render$K]]),_sfc_main$_={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput,VsSelect,VsCheckbox,BFormGroup:LoadingSpinner.ku,VsRecaptcha,VsButton:LoadingSpinner.VsButton,VsHeading:LoadingSpinner.VsHeading,VsWarning:LoadingSpinner.VsWarning,VsTextarea},mixins:[LoadingSpinner.dataLayerMixin],props:{isMarketo:{type:Boolean,default:!0},submissionType:{type:String,default:"breg"},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:getEnvValue("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData(){LoadingSpinner.axios.get(this.dataUrl).then(e=>{this.formData=e.data,this.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(this.marketoInstance,this.munchkinId,this.formId),e.data.fields.forEach(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.checkConditionalFields()}).catch(()=>{})},getGlobalMessaging(){LoadingSpinner.axios.get(this.messagingUrl).then(e=>{this.messagingData=e.data}).catch(()=>{})},getLanguageObj(){let e;return this.isUndefined(this.formData[this.language])?e={}:e=this.formData[this.language]||void 0,e},getTranslatedLabel(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?a=t[e].label:a=this.formData.fields[n].label,this.showOptionalText(this.formData.fields[n])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(a=`${a} (${this.getMessagingData("optional",this.language)})`),a},getTranslatedLegend(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?a=t[e].descriptor:a=this.formData.fields[n].descriptor,a},getTranslatedInfo(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?a=t[e].info:a=this.formData.fields[n].info,a},getTranslatedValidation(e,n){const t=this.getLanguageObj();let a;return this.language==="en"&&!this.isUndefined(this.formData.fields[n].validationMessages)?a=this.formData.fields[n].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?a=t[e].validationMessages:this.language==="en"&&(a=this.formData.fields[n].validationMessages),a},getTranslatedOptions(e,n){const t=this.getLanguageObj();let a=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?a=t[e].options:a=this.formData.fields[n].options,typeof a>"u"&&(a=[]),a},getTranslatedHint(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?a=t[e].hint:this.isUndefined(this.formData.fields[n].hint)?a="":a=this.formData.fields[n].hint,a},getTranslatedContent(e){let n;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?n=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?n=t.content[e]:n=this.getMessagingData(e,this.language),n},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getHiddenFields(){return[...this.$el.querySelectorAll("input[type=hidden]")].map(this.parseBooleanStringsFromInputField).reduce((e,n)=>(e[n.name]=n.value,e),{})},parseBooleanStringsFromInputField(e){let n=e.value;return n==="true"?n=!0:n==="false"&&(n=!1),{name:e.name,value:n}},isUndefined(e){return typeof e>"u"},updateFieldData(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=e.errors!==null,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus(e,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},showOptionalText(e){return!!(this.isUndefined(e.validation)||this.isUndefined(e.validation.required))},needsLabel(e){return!(e.element==="radio"||e.element==="submit"||e.element==="checkbox")},preSubmit(e){e.preventDefault(),this.submitError=!1;function n(a){return a.validation&&a.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(n);t.length===0?this.formIsInvalid=!1:t.forEach(a=>{if(!/\S/.test(this.form[a.name])){let r=!0;a.name in this.conditionalFields&&!this.conditionalFields[a.name]&&(r=!1),this.formIsInvalid=r}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([a,r])=>{r||(this.form[a]="")}),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout(()=>{this.reAlertErrors=!1},100))},marketoSubmit(){this.createDataLayerObject("formsDataEvent");const e=window.MktoForms2.allForms()[0];e.addHiddenFields(this.form),window.grecaptcha&&e.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),e.onSuccess(()=>(this.submitting=!1,this.submitted=!0,!1)),e.onSubmit(()=>{this.submitting=!0}),e.submit()},axiosSubmit(){this.createDataLayerObject("formsDataEvent"),this.submitting=!0;let e="";window.grecaptcha&&(e=window.grecaptcha.getResponse());const n=this.getHiddenFields();LoadingSpinner.axios.post(this.submitUrl,{...this.form,...n,formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":e}).then(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)).catch(()=>(this.submitError=!0,!1))},attachEmail(){this.submissionType&&this.submissionType==="breg"&&(this.formData.fields.forEach(e=>{e.type==="email"&&!this.emailFieldName&&(this.emailFieldName=e.name)}),this.emailFieldName&&typeof exponea<"u"&&exponea.identify({email_id:this.form[this.emailFieldName]},{},()=>{},()=>{},!0))},onRecaptchaVerify(){window.grecaptcha&&typeof window.grecaptcha.getResponse=="function"&&window.grecaptcha.getResponse()!==""?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(a=>a.name===e);let t=!0;Object.keys(n.conditional).forEach(a=>{const r=n.conditional[a];Array.isArray(r)?r.indexOf(this.form[a])===-1&&(t=!1):this.form[a]!==r&&(t=!1),t?this.conditionalFields[e]||(this.conditionalFields[e]=!0,this.$refs[e]&&this.$refs[e][0].manualValidate()):(this.manageErrorStatus(e,[]),this.conditionalFields[e]=!1)})})},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"}}},_hoisted_1$I={class:"vs-form","data-test":"vs-form"},_hoisted_2$z={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_3$s={key:0},_hoisted_4$l={"aria-live":"assertive"},_hoisted_5$h={key:0},_hoisted_6$e=["innerHTML"],_hoisted_7$b={key:2,class:"mt-200"};function _sfc_render$J(e,n,t,a,r,o){const s=vue.resolveComponent("VsInput"),i=vue.resolveComponent("VsSelect"),l=vue.resolveComponent("VsCheckbox"),u=vue.resolveComponent("VsTextarea"),c=vue.resolveComponent("BFormGroup"),d=vue.resolveComponent("VsRecaptcha"),f=vue.resolveComponent("VsButton"),v=vue.resolveComponent("VsWarning"),p=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[n[1]||(n[1]=vue.createElementVNode("form",{class:"d-none"},null,-1)),r.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:n[0]||(n[0]=vue.withModifiers((...h)=>o.preSubmit&&o.preSubmit(...h),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_2$z,vue.toDisplayString(o.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.formData.fields,(h,g)=>(vue.openBlock(),vue.createBlock(c,{key:h.name,label:o.needsLabel(h)?o.getTranslatedLabel(h.name,g):"","label-for":o.needsLabel(h)?h.name:"",class:vue.normalizeClass(o.conditionalElementClass(h.name))},{default:vue.withCtx(()=>[!o.isUndefined(h.descriptor)&&h.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_3$s,vue.toDisplayString(o.getTranslatedLegend(h.name,g)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(o.conditionalElementClass(h.name))},[h.element==="input"?(vue.openBlock(),vue.createBlock(s,{key:0,ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,type:h.type,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,g)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"hint-text":o.getTranslatedHint(h.name,g),placeholder:h.placeholder||"","re-alert-errors":r.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="select"?(vue.openBlock(),vue.createBlock(i,{key:1,options:o.getTranslatedOptions(h.name,g),ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,g)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"country-list-url":t.countryListUrl,countries:h.countries,"hint-text":o.getTranslatedHint(h.name,g),"re-alert-errors":r.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="checkbox"?(vue.openBlock(),vue.createBlock(l,{key:h.name,ref_for:!0,ref:h.name,name:h.name,value:h.value,label:o.getTranslatedLabel(h.name,g),onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,g)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"optional-text":o.getMessagingData("optional",t.language),"hint-text":o.getTranslatedHint(h.name,g),"info-text":o.getTranslatedInfo(h.name,g),"re-alert-errors":r.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="textarea"?(vue.openBlock(),vue.createBlock(u,{key:3,ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,g)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"hint-text":o.getTranslatedHint(h.name,g),placeholder:h.placeholder||"","re-alert-errors":r.reAlertErrors,rows:h.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):vue.createCommentVNode("",!0)],2)]),_:2},1032,["label","label-for","class"]))),128))]),vue.renderSlot(e.$slots,"hidden-fields"),vue.createVNode(d,{onVerified:o.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!r.recaptchaVerified&&r.showErrorMessage,language:t.language,"error-msg":o.getMessagingData("recaptchaError",t.language),class:"mt-300","textarea-label":t.recaptchaTextareaLabel,"re-alert-errors":r.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),vue.createVNode(f,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:o.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("submit")),1)]),_:1},8,["onClick"])],32)),vue.createVNode(v,{class:"vs-form__no-js"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"no-js")]),_:3}),vue.createElementVNode("div",_hoisted_4$l,[r.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$h,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),r.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[o.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(p,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:o.getTranslatedContent("successContent")},null,8,_hoisted_6$e)],64)):vue.createCommentVNode("",!0),r.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$b,[vue.renderSlot(e.$slots,"submit-error")])):vue.createCommentVNode("",!0)])])}const Form=LoadingSpinner._export_sfc(_sfc_main$_,[["render",_sfc_render$J]]),_sfc_main$Z={name:"VsMegaNavTopMenu",status:"prototype",release:"0.1.0",components:{VsList},inject:["isStatic"]};function _sfc_render$I(e,n,t,a,r,o){const s=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(s,{unstyled:"",class:"vs-mega-nav-top-menu","data-test":"vs-mega-nav-top-menu",role:"menubar"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})}const VsMegaNavTopMenu=LoadingSpinner._export_sfc(_sfc_main$Z,[["render",_sfc_render$I]]),_sfc_main$Y={name:"VsMegaNavMobileMenu",status:"prototype",release:"0.1.0",mixins:[LoadingSpinner.dataLayerMixin],mounted(){this.emitter&&this.emitter.on("navAccordionClick",e=>{this.dataLayerSubmit(e)})},methods:{dataLayerSubmit(e){const n={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}},_hoisted_1$H={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$H(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$H,[vue.renderSlot(e.$slots,"default")])}const VsMegaNavMobileMenu=LoadingSpinner._export_sfc(_sfc_main$Y,[["render",_sfc_render$H]]),_sfc_main$X={name:"VsSiteSearch",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},props:{isShowing:{type:Boolean,default:!1}},emits:["toggleAction"],data(){return{showSearchForm:!0}},methods:{toggleAction(){this.showSearchForm=!this.showSearchForm,this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$G={class:"visually-hidden-xxl-down"};function _sfc_render$G(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{"data-test":"vs-site-search",class:vue.normalizeClass(["vs-site-search",t.isShowing?"vs-site-search--active":""]),icon:"vs-icon-control-search",size:"md",animate:!1,onClick:o.toggleAction,id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$G,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class","onClick"])}const VsSiteSearch=LoadingSpinner._export_sfc(_sfc_main$X,[["render",_sfc_render$G]]),_sfc_main$W={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsInput,VsButton:LoadingSpinner.VsButton,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},emits:["toggleAction"],data(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing(e){e&&this.focusOnInput()}},methods:{focusOnInput(){this.$nextTick(()=>this.$refs.searchInput.$refs.input.focus())},tabFromClose(e){e.shiftKey||this.closeSearchForm()},updateVal(e){this.searchTerm=e.value},onSubmit(e){this.searchTerm===""&&e.preventDefault()},closeSearchForm(){this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$F={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},_hoisted_2$y={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},_hoisted_3$r={class:"d-flex flex-column flex-grow-1 position-relative"},_hoisted_4$k={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$g={class:"visually-hidden"};function _sfc_render$F(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsInput"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return r.showSearchForm?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$F,[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$y,[vue.createElementVNode("div",_hoisted_3$r,[vue.createElementVNode("label",_hoisted_4$k,[vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(t.labelText),1),vue.createVNode(s,{icon:"vs-icon-control-search",size:"xs"})]),vue.createVNode(i,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:t.labelText,"auto-complete":!1,onUpdated:o.updateVal},null,8,["placeholder","onUpdated"])]),vue.createVNode(l,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",rounded:!1,onClick:o.closeSearchForm},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.submitButtonText),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:o.closeSearchForm,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeButtonText),1)]),_:1},8,["onClick","onKeydown"])])):vue.createCommentVNode("",!0)}const VsSiteSearchForm=LoadingSpinner._export_sfc(_sfc_main$W,[["render",_sfc_render$F]]),clickOutside={mounted(e,n){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||n.value(t)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},_sfc_main$V={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsSvgLink,VsMegaNavTopMenu,VsMegaNavMobileMenu,VsSiteSearch,VsSiteSearchForm,VsButton:LoadingSpinner.VsButton},directives:{clickOutside},mixins:[LoadingSpinner.dataLayerMixin],provide(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},mapButtonText:{type:String,default:void 0},noSearch:{type:Boolean,default:!1},searchLink:{type:String,default:void 0},mapLink:{type:String,default:void 0},isStatic:{type:Boolean,default:!1}},data(){return{isOpen:!1,showSearch:!1,tokens:LoadingSpinner.designTokens}},mounted(){this.addTabClose()},methods:{menuToggle(){this.isOpen=!this.isOpen},toggleSearch(){this.showSearch=!this.showSearch},closeMenu(e){const n=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!n.contains(e.target)&&(this.isOpen=!1)},addTabClose(){document.body.addEventListener("focusin",e=>{this.isOpen&&(e.target.closest("#vs-mega-nav__menu-mobile")||(this.isOpen=!1))})}}},_hoisted_1$E={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},_hoisted_2$x={class:"visually-hidden-xxl-down"},_hoisted_3$q={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function _sfc_render$E(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsMegaNavTopMenu"),u=vue.resolveComponent("VsButton"),c=vue.resolveComponent("VsSiteSearch"),d=vue.resolveComponent("VsMegaNavMobileMenu"),f=vue.resolveComponent("VsRow"),v=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("VsSiteSearchForm"),h=vue.resolveDirective("click-outside");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("nav",_hoisted_1$E,[vue.createVNode(v,{fluid:"lg",class:"h-100"},{default:vue.withCtx(()=>[vue.createVNode(f,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"7",md:"4",lg:"3"},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(s,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":t.logoAltText,href:t.href,"svg-fill":r.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]),_:1}),vue.createVNode(i,{cols:"4",md:"6",lg:t.noSearch?7:5,class:"vs-mega-nav__menu d-none d-lg-block"},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-top-menu-items")]),_:3})]),_:3},8,["lg"]),vue.createVNode(i,{cols:"5",md:"8",lg:"4",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:vue.withCtx(()=>[t.mapButtonText&&t.mapLink?(vue.openBlock(),vue.createBlock(u,{key:0,variant:"subtle",icon:"fa-regular fa-map","icon-only":"",size:"md",rounded:!1,href:t.mapLink,class:"vs-mega-nav__map-button d-flex","data-test":"vs-mega-nav__map-button"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.mapButtonText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),!t.noSearch&&!t.searchLink?(vue.openBlock(),vue.createBlock(c,{key:1,onToggleAction:o.toggleSearch,"is-showing":r.showSearch},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["onToggleAction","is-showing"])):vue.createCommentVNode("",!0),!t.noSearch&&t.searchLink?(vue.openBlock(),vue.createBlock(u,{key:2,animate:!1,class:"vs-site-search",href:t.searchLink,icon:"vs-icon-control-search",id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$x,vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$q,[vue.createVNode(u,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:r.isOpen?"vs-icon-control-dismiss":"vs-icon-control-menu",variant:"subtle",onClick:n[0]||(n[0]=g=>o.menuToggle()),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["icon"]),r.isOpen?vue.withDirectives((vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-accordion-items")]),_:3})),[[h,o.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(p,{onToggleAction:o.toggleSearch,"is-showing":r.showSearch,"label-text":t.searchLabelText,"submit-button-text":t.searchButtonText,"close-button-text":t.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","close-button-text"]),[[vue.vShow,r.showSearch]])])}const MegaNav=LoadingSpinner._export_sfc(_sfc_main$V,[["render",_sfc_render$E]]),_sfc_main$U={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:LoadingSpinner.un,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsButton:LoadingSpinner.VsButton},mixins:[LoadingSpinner.dataLayerMixin],props:{menuToggleAltText:{type:String,required:!0}},emits:["menuToggled"],mounted(){this.emitter&&(this.emitter.on("bv::dropdown::show",()=>{this.$emit("menuToggled")}),this.emitter.on("bv::dropdown::hide",()=>{this.$emit("menuToggled")})),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu(){this.$refs.dropdown.hide()},tabFromClose(e){e.shiftKey||this.closeMenu()},dataLayerSubmit(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){const n={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}}},_hoisted_1$D={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown",role:"menuitem"},_hoisted_2$w={role:"menuitem"},_hoisted_3$p={class:"dropdown-menu dropdown-menu--fallback overflow-auto",role:"menu"},_hoisted_4$j={role:"menuitem"};function _sfc_render$D(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[vue.createVNode(c,{variant:"subtle",ref:"dropdown",onShow:n[0]||(n[0]=d=>o.dataLayerSubmit(d))},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_2$w,[vue.createVNode(u,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(s,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"vs-icon-control-dismiss","icon-only":"",size:"sm",variant:"subtle",onClick:o.closeMenu,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick","onKeydown"])]),_:3})]),_:3})]),_:3})])]),_:3},512),vue.createElementVNode("ul",_hoisted_3$p,[vue.createElementVNode("li",_hoisted_4$j,[vue.createVNode(u,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(s,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"vs-icon-control-dismiss","icon-only":"",size:"sm",variant:"subtle",onClick:o.closeMenu},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick"])]),_:3})]),_:3})]),_:3})])])])}const VsMegaNavDropdown=LoadingSpinner._export_sfc(_sfc_main$U,[["render",_sfc_render$D]]),_sfc_main$T={name:"VsMegaNavDropdownContainer",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown,VsLink,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:e=>e.match(/(left|bottom|top)/)}},computed:{hasFeaturedItem(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass(){return this.align==="bottom"?"vs-mega-nav-dropdown-container__featured--bottom":""}}},_hoisted_1$C={class:"vs-mega-nav-dropdown-container","data-test":"vs-mega-nav-dropdown-container",ref:"menuToggle",role:"presentation"},_hoisted_2$v={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_3$o={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$C(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsMegaNavDropdown"),l=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$C,[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(i,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),"cta-link":vue.withCtx(()=>[t.href&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,href:t.href,"data-test":"vs-mega-nav-dropdown-container__cta-link",class:"vs-mega-nav-dropdown-container__cta-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1))]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$v,[vue.renderSlot(e.$slots,"dropdown-content"),o.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),o.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),o.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$o,[vue.renderSlot(e.$slots,"nav-featured-event")])):vue.createCommentVNode("",!0)])]),_:3})]),_:3})],512)}const MegaNavDropdownContainer=LoadingSpinner._export_sfc(_sfc_main$T,[["render",_sfc_render$C]]),_sfc_main$S={name:"VsMegaNavList",status:"prototype",release:"0.1.0",components:{VsList,VsHeading:LoadingSpinner.VsHeading},props:{listHeading:{type:String,default:""}},computed:{listHeadingId(){return this.listHeading?`vsMeganav${this.listHeading.replace(/\W/g,"")}`:""}}},_hoisted_1$B=["aria-label"];function _sfc_render$B(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-mega-nav-list","data-test":"vs-mega-nav-list","aria-label":o.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-list__heading",id:o.listHeadingId,level:"2","heading-style":"heading-xxxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.listHeading),1)]),_:1},8,["id"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"vs-mega-nav-list__list",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"nav-heading-cta-link"),vue.renderSlot(e.$slots,"nav-list-items")]),_:3})],8,_hoisted_1$B)}const MegaNavList=LoadingSpinner._export_sfc(_sfc_main$S,[["render",_sfc_render$B]]),_sfc_main$R={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1}},computed:{navItemClasses(){return{"vs-mega-nav-list-item__heading":this.href==="#","vs-mega-nav-list-item__link":this.href!=="#","vs-mega-nav-list-item__subheading-link":this.subheadingLink}}}};function _sfc_render$A(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[vue.createVNode(s,{href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavListItem=LoadingSpinner._export_sfc(_sfc_main$R,[["render",_sfc_render$A]]),_sfc_main$Q={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem,VsLink},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:e=>e.match(/(1|2)/)},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-mega-nav-${e}`},accordionItemClasses(){return[`vs-mega-nav-accordion-item--level-${this.level}`]}}};function _sfc_render$z(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(i,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",o.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":o.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${o.getUniqueId}-${t.controlId}`},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),default:vue.withCtx(()=>[t.ctaLink&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:t.ctaLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")]),_:3},8,["class","data-unique-id","control-id"])}const MegaNavAccordionItem=LoadingSpinner._export_sfc(_sfc_main$Q,[["render",_sfc_render$z]]),_sfc_main$P={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}};function _sfc_render$y(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createBlock(s,{link:t.link,type:"internal","img-src":t.imgUrl,"img-alt":t.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-header")]),"stretched-card-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-content")]),"stretched-card-link":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-link")]),_:3},8,["link","img-src","img-alt"])}const MegaNavFeaturedItem=LoadingSpinner._export_sfc(_sfc_main$P,[["render",_sfc_render$y]]),_sfc_main$O={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{sourceUrl:{type:String,default:""}},data(){return{featuredEvent:null}},mounted(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent(){LoadingSpinner.axios.get(this.sourceUrl).then(e=>{e.data.data.products&&e.data.data.products.length&&([this.featuredEvent]=e.data.data.products)}).catch(()=>{this.featuredEvent=null})}}},_hoisted_1$A={key:0,class:"vs-mega-nav-featured-event__date-range"},_hoisted_2$u={class:"vs-mega-nav-featured-event__date-detail"},_hoisted_3$n={class:"vs-mega-nav-featured-event__title"},_hoisted_4$i={key:1,class:"vs-mega-nav-featured-event__location"};function _sfc_render$x(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkCard");return r.featuredEvent?(vue.openBlock(),vue.createBlock(s,{key:0,link:r.featuredEvent.productLink.link,type:"internal","img-src":r.featuredEvent.images[0].mediaUrl,"img-alt":r.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":vue.withCtx(()=>[r.featuredEvent&&r.featuredEvent.opening?(vue.openBlock(),vue.createElementBlock("p",_hoisted_1$A,[vue.createTextVNode(vue.toDisplayString(r.featuredEvent.opening.period.label)+" ",1),vue.createElementVNode("span",_hoisted_2$u,vue.toDisplayString(r.featuredEvent.opening.period.startDay),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("p",_hoisted_3$n,vue.toDisplayString(r.featuredEvent.name),1),r.featuredEvent&&r.featuredEvent.address?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$i,vue.toDisplayString(r.featuredEvent.address.shortAddress),1)):vue.createCommentVNode("",!0)]),"stretched-card-link":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.featuredEvent.productLink.label),1)]),_:1},8,["link","img-src","img-alt"])):vue.createCommentVNode("",!0)}const MegaNavFeaturedEvent=LoadingSpinner._export_sfc(_sfc_main$O,[["render",_sfc_render$x]]),_sfc_main$N={name:"VsMegaNavStaticLink",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:"#"},isFullWidth:{type:Boolean,default:!1}}};function _sfc_render$w(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-static-link",t.isFullWidth?"vs-mega-nav-static-link--full-width":""]),"data-test":"vs-mega-nav-static-link",role:"presentation"},[vue.createVNode(s,{class:"vs-mega-nav-static-link__inner",href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavStaticLink=LoadingSpinner._export_sfc(_sfc_main$N,[["render",_sfc_render$w]]),_sfc_main$M={name:"VsMegalinks",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsHeading:LoadingSpinner.VsHeading,VsButton:LoadingSpinner.VsButton,VsBody:LoadingSpinner.VsBody},provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,theme:this.theme}},props:{title:{type:String,required:!1,default:null},sectionId:{type:String,required:!1,default:null},buttonLink:{type:String,required:!1,default:null},variant:{type:String,required:!1,default:null,validator:e=>e.match(/(multi-image|single-image|link-list)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},noJsMessage:{type:String,default:""},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)}},computed:{megalinksClasses(){return[this.variant?`vs-megalinks--${this.variant}`:"",`vs-megalinks--${this.theme}`]}}},_hoisted_1$z={key:0,class:"vs-megalinks__intro","data-test":"vs-megalinks__intro"},_hoisted_2$t={class:"row vs-megalinks__links-wrapper"},_hoisted_3$m={class:"vs-megalinks__button","data-test":"vs-megalinks__button"};function _sfc_render$v(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(["vs-megalinks",o.megalinksClasses]),"data-test":"megalinks"},[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$z,[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:"vs-megalinks__heading","data-test":"vs-megalinks__heading",id:t.sectionId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["level","heading-style","id"]),e.$slots["vs-megalinks-intro"]&&e.$slots["vs-megalinks-intro"]()?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-megalinks__intro-content",variant:"lead","data-test":"vs-megalinks__intro-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-intro")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$t,[vue.renderSlot(e.$slots,"default")]),t.buttonLink&&t.variant!=="single-image"?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$m,[vue.createVNode(c,{href:t.buttonLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-button")]),_:3},8,["href"])])]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2)}const Megalinks=LoadingSpinner._export_sfc(_sfc_main$M,[["render",_sfc_render$v]]),_sfc_main$L={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsBody:LoadingSpinner.VsBody,VsStretchedLinkPanels},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass(){let e="";return this.theme&&(e+=`vs-megalink-link-list--${this.theme} `),this.isHomePage||(e+="vs-megalink-link-list--internal-page "),this.businessSupport&&(e+="vs-megalink-link-list--business-support "),e}}},_hoisted_1$y={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$u(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-link-list",o.megalinkClass]),"data-test":"vs-megalink-link-list"},[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:"vs-megalink-link-list__wrapper","img-src":t.imgSrc,"img-alt":t.imgAlt,theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"error-type":"full","business-support":t.businessSupport,"is-home-page":t.isHomePage},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$y,[vue.renderSlot(e.$slots,"vs-link-list-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3},8,["class"])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0,t.businessSupport&&!t.isHomePage?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-badges")]),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],2)}const MegalinkLinkList=LoadingSpinner._export_sfc(_sfc_main$L,[["render",_sfc_render$u]]),_sfc_main$K={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsBody:LoadingSpinner.VsBody,VsStretchedLinkPanels},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses(){return[`vs-megalink-multi-image-card--${this.theme}`,{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}},_hoisted_1$x={class:"vs-megalink-multi-image"},_hoisted_2$s={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function _sfc_render$t(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$x,[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:vue.normalizeClass(["vs-megalink-multi-image-card p-050",o.multiImageClasses]),"heading-style":t.featured?"heading-s":"heading-xs","img-src":t.imgSrc,"img-alt":t.imgAlt,"data-test":t.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"warning-size":t.featured?"normal":"small"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$s,[vue.renderSlot(e.$slots,"vs-multi-image-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-badges")]),key:"1"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}const MegalinkMultiImage=LoadingSpinner._export_sfc(_sfc_main$K,[["render",_sfc_render$t]]),_sfc_main$J={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsButton:LoadingSpinner.VsButton,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsLinkList},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""}},data(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses(){return[this.alternate?"vs-megalink-single-image--alternate":""]},cssVars(){return{"--negative-margin":`-${this.negativeMargin}`,"--image-height":`${this.imageHeight}`}}},mounted(){const e=this.$el.querySelector(".vs-image-with-caption");if(e){const n=e.querySelector("img");n.addEventListener("load",()=>{const t=n.clientHeight/2.5/n.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${n.clientHeight}px`})}}},_hoisted_1$w={class:"vs-megalink-single-image__image-container"},_hoisted_2$r={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},_hoisted_3$l={class:"vs-megalink-single-image__button"};function _sfc_render$s(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsLinkList"),u=vue.resolveComponent("VsButton"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-single-image",o.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(o.cssVars)},[vue.createElementVNode("div",_hoisted_1$w,[vue.renderSlot(e.$slots,"vs-single-image")]),vue.createVNode(d,{class:"vs-megalink-single-image__text-container"},{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",sm:"10",lg:"6",class:vue.normalizeClass(["offset-sm-1",t.alternate?"offset-lg-6":"offset-lg-0"])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$r,[t.title?(vue.openBlock(),vue.createBlock(s,{key:0,level:"3","heading-style":"heading-m",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-content")]),_:3}),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-links")]),_:3}),vue.createElementVNode("div",_hoisted_3$l,[t.buttonLink?(vue.openBlock(),vue.createBlock(u,{key:0,href:t.buttonLink,variant:"secondary"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-button-text")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])])]),_:3},8,["class"])]),_:3})],6)}const MegalinkSingleImage=LoadingSpinner._export_sfc(_sfc_main$J,[["render",_sfc_render$s]]),_sfc_main$I={name:"VsModal",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsButton:LoadingSpinner.VsButton,BModal:LoadingSpinner._a},props:{modalId:{type:String,required:!0},closeBtnText:{type:String,required:!0},isVideoModal:{type:Boolean,default:!1},autoMount:{type:Boolean,default:!1}},data(){return{show:!1,mounted:this.autoMount}},mounted(){this.mounted=!0,this.emitter&&(this.emitter.on("showModal",e=>this.showModal(e)),this.emitter.on("hideModal",()=>this.hideModal()),this.isVideoModal&&this.emitter.on("showModal",e=>{this.emitter.emit("video-controls",{action:"modal-opened",id:e})}))},methods:{hideModal(){this.emitter&&this.emitter.emit("video-controls",{action:"modal-closed",id:this.modalId}),this.show=!1},showModal(e){e===this.modalId&&(this.show=!0)}}};function _sfc_render$r(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BModal");return r.mounted?(vue.openBlock(),vue.createBlock(c,{key:0,"modal-class":"vs-modal","data-test":"vs-modal",ref:`modal-${t.modalId}`,id:t.modalId,size:"xl","hide-footer":"","hide-header":"",static:t.isVideoModal,modelValue:r.show,"onUpdate:modelValue":n[0]||(n[0]=d=>r.show=d),onHidden:o.hideModal},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",lg:"1",class:"d-flex justify-content-end align-items-start order-lg-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-modal__close-btn mb-125 mb-lg-0","data-test":"vs-modal__close-btn",variant:"subtle","icon-only":"",icon:"vs-icon-control-dismiss",onClick:o.hideModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1}),vue.createVNode(i,{cols:"12",lg:"11"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["id","static","modelValue","onHidden"])):vue.createCommentVNode("",!0)}const Modal=LoadingSpinner._export_sfc(_sfc_main$I,[["render",_sfc_render$r]]),_sfc_main$H={name:"VsPageIntro",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{background:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},heroIntro:{type:Boolean,default:!1},isItinerary:{type:Boolean,default:!1},fullscreenMobile:{type:Boolean,default:!1},hasToc:{type:Boolean,default:!1}},computed:{introClasses(){return[`vs-page-intro--${this.background}`,this.heroIntro?"vs-page-intro--hero":"",this.fullscreenMobile?"vs-page-intro__fullscreen-mobile-header":""]},contentColProps(){const e={};return this.isItinerary?(e.md="6",e.lg="5",e.xl="6",e["offset-lg"]="1"):this.heroIntro?(e.md="12",e.lg="7",e.xl="8",e["offset-lg"]="1"):this.hasToc?e.md="7":e.md="8",e}}},_hoisted_1$v={key:0,class:"vs-page-intro__fs-mobile-heading-wrapper","data-test":"vs-page-intro__mobile-breadcrumb"},_hoisted_2$q={class:"vs-page-intro__wrapper"},_hoisted_3$k={class:"vs-page-intro__share"},_hoisted_4$h={key:0,class:"list-inline"},_hoisted_5$f={key:0,class:"vs-page-intro__lower py-300","data-test":"vs-page-intro__lower"};function _sfc_render$q(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsBody");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-page-intro",o.introClasses]),"data-test":"vs-page-intro"},[t.fullscreenMobile?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$v,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.fullscreenMobile?"d-none-md":"")},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"9",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"])]),_:3})])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-hero"),vue.createElementVNode("div",_hoisted_2$q,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.fullscreenMobile?"d-none d-lg-flex":"")},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"9",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"]),vue.createElementVNode("div",_hoisted_3$k,[vue.renderSlot(e.$slots,"vs-share-button")]),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"11",md:t.heroIntro?"11":"10",lg:t.heroIntro?"7":"10",xl:t.heroIntro?"8":"10","offset-lg":t.heroIntro?"1":"0",class:"mt-050"},{default:vue.withCtx(()=>[vue.createVNode(u,{level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-heading")]),_:3}),vue.renderSlot(e.$slots,"vs-article-data")]),_:3},8,["md","lg","xl","offset-lg"])]),_:3}),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({"data-test":"vs-page-intro__content",cols:"12"},o.contentColProps),{default:vue.withCtx(()=>[vue.createVNode(c,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-content")]),_:3}),e.$slots["vs-intro-start-finish"]&&e.$slots["vs-intro-start-finish"]()?(vue.openBlock(),vue.createElementBlock("dl",_hoisted_4$h,[vue.renderSlot(e.$slots,"vs-intro-start-finish")])):vue.createCommentVNode("",!0)]),_:3},16),e.$slots["vs-intro-table-of-contents"]&&e.$slots["vs-intro-table-of-contents"]()?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"5"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-table-of-contents")]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-summary-box")]),_:3})]),_:3}),e.$slots["vs-intro-lower"]&&e.$slots["vs-intro-lower"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$f,[vue.renderSlot(e.$slots,"vs-intro-lower")])):vue.createCommentVNode("",!0)])],2)}const PageIntro=LoadingSpinner._export_sfc(_sfc_main$H,[["render",_sfc_render$q]]),_hoisted_1$u={"aria-label":"Pagination",class:"vs-pagination","data-test":"vs-pagination"},_hoisted_2$p={"aria-live":"polite",class:"vs-pagination__count"},_hoisted_3$j={class:"vs-pagination__controls"},_hoisted_4$g={class:"vs-pagination__prev"},_hoisted_5$e={class:"vs-pagination__list"},_hoisted_6$d={key:0},_hoisted_7$a={class:"vs-pagination__next"},limit=7,_sfc_main$G={__name:"VsPagination",props:vue.mergeModels({nextButtonLabel:{type:String,required:!0},numberOfPages:{type:Number,required:!0},pageLabel:{type:String,required:!0},ofLabel:{type:String,required:!0},previousButtonLabel:{type:String,required:!0}},{modelValue:{type:Number,default:1},modelModifiers:{}}),emits:vue.mergeModels(["page-click"],["update:modelValue"]),setup(e,{emit:n}){const t=e,a=n,r=vue.useModel(e,"modelValue"),o=vue.computed(()=>`${t.pageLabel} ${r.value} ${t.ofLabel} ${t.numberOfPages}`),s=u=>({"vs-pagination__item":!0,"vs-pagination__item--active":r.value===u,"vs-pagination__item--ellipses":u==="ellipses"}),i=vue.computed(()=>{if(t.numberOfPages<=limit)return Array.from({length:t.numberOfPages},(d,f)=>f+1);let u=[];const c=Math.floor(limit/2);if(r.value<=c){for(let d=1;d<limit-1;d++)u=[...u,d];u=[...u,"ellipses",t.numberOfPages]}else if(r.value>t.numberOfPages-c){u=[1,"ellipses"];const d=t.numberOfPages-limit+2;for(let f=1;f<limit-1;f++)u=[...u,d+f]}else{const d=r.value-c+1;u=[1,"ellipses"];for(let f=1;f<limit-3;f++)u=[...u,d+f];u=[...u,"ellipses",t.numberOfPages]}return u}),l=(u,c)=>{r.value!==c&&(a("page-click",c),r.value=c)};return vue.watch(()=>t.numberOfPages,()=>{r.value=1}),(u,c)=>(vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$u,[vue.createElementVNode("div",_hoisted_2$p,[vue.createElementVNode("p",null,vue.toDisplayString(o.value),1)]),vue.createElementVNode("div",_hoisted_3$j,[vue.createElementVNode("div",_hoisted_4$g,[vue.createVNode(LoadingSpinner.VsButton,{disabled:r.value===1,icon:"fa-regular fa-arrow-left",size:"sm",variant:"subtle",onClick:c[0]||(c[0]=d=>l(d,r.value-1))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.previousButtonLabel),1)]),_:1},8,["disabled"])]),vue.createElementVNode("ul",_hoisted_5$e,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(i.value,(d,f)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(s(d)),key:f},[d==="ellipses"?(vue.openBlock(),vue.createElementBlock("span",_hoisted_6$d,"⋯")):(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,"aria-current":r.value===d?"page":null,"aria-label":`Page ${d}`,size:"sm",onClick:v=>l(v,d)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d),1)]),_:2},1032,["aria-current","aria-label","onClick"]))],2))),128))]),vue.createElementVNode("div",_hoisted_7$a,[vue.createVNode(LoadingSpinner.VsButton,{disabled:r.value===t.numberOfPages,icon:"fa-regular fa-arrow-right","icon-position":"right",size:"sm",variant:"subtle",onClick:c[1]||(c[1]=d=>l(d,r.value+1))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.nextButtonLabel),1)]),_:1},8,["disabled"])])])]))}},_sfc_main$F={name:"VsPanel",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"secondary",validator:e=>e.match(/(secondary|information)/)}},computed:{panelClasses(){return`vs-panel--${this.variant}`}}};function _sfc_render$p(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-panel",o.panelClasses]),"data-test":"vs-panel"},[vue.renderSlot(e.$slots,"vs-panel-title"),vue.renderSlot(e.$slots,"default")],2)}const Panel=LoadingSpinner._export_sfc(_sfc_main$F,[["render",_sfc_render$p]]);let VS$1;function setWindowObj(){typeof window<"u"?VS$1=typeof window.VS=="object"?window.VS:{}:VS$1={}}function getLabelText(e,n,t){setWindowObj();let a="";return Object.keys(VS$1).length>0&&(typeof t<"u"?a=VS$1.search_config.basic_config.search_module[t][e]:a=VS$1.search_config.basic_config.search_module[e]),a||n}function getProductName(e,n){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(a=>{const r=VS$1.search_config.basic_config.productTypes[a];t[r.value]=r.text}),t[e]?t[e]:n}function getLocale(){let e=document.documentElement.lang.toLocaleLowerCase().slice(0,2)||"";return e==="en"&&(e=""),e}let VS;typeof window<"u"?VS=typeof window.VS=="object"?window.VS:{}:VS={};function getProductTypes(){if(Object.keys(VS).length<=0)return LoadingSpinner.products;const e=VS.search_config.basic_config.productTypes,n=[];return Object.keys(e).forEach(a=>{n.push({key:e[a].value,text:e[a].text,value:e[a].value})}),n}async function getData(e){try{const{data:n}=await LoadingSpinner.axios.get(e);return n}catch(n){console.error(`Axios error: ${n}`)}}var define_process_env_default$1={},controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,n){return e[n]!==void 0}function hasKeyCode(e,n){return e===n.keyCode}function getItemIndex(e,n,t){return e!==void 0?e:t.length?t.indexOf(n):-1}function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function requiredProp(e,n){console.error('The property "'+n+'" is required in "'+e+'"')}function getNextNonDisabledIndex(e,n,t,a,r){var o=a(n);if(!o||!o.hasAttribute("disabled"))return n;if(e>0)for(var s=n+1;s<t;s+=1){var i=a(s),l=i.hasAttribute("disabled");if(!l)return s}else for(var u=n-1;u>=0;u-=1)if(!a(u).hasAttribute("disabled"))return u;return r?e>0?getNextNonDisabledIndex(1,0,t,a,!1):getNextNonDisabledIndex(-1,t-1,t,a,!1):-1}function scrollToElement(e,n,t){var a=n.clientHeight,r=n.scrollTop,o=e.offsetHeight,s=e.offsetTop;if(s<r)t===0?n.scrollTop=0:n.scrollTop=s;else{var i=s+o,l=r+a;i>l&&(n.scrollTop=i-a)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(n){return n?String(n):""}},stateReducer:{type:Function,default:function(n,t){return t.changes}},getItemId:{type:Function,default:function(t){return"v-"+this.idCounter+"-vue-combo-blocks-item-"+t}},menuId:{type:String,default:""},inputId:{type:String,default:""},labelId:{type:String,default:""},scrollIntoView:{type:Boolean,default:!0},circular:{type:Boolean,default:!0}})}function getInitialData(e,n){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:n(e)}}var computed={menuElement:function e(){return document.querySelector("#"+this.computedMenuId)},computedMenuId:function e(){return this.menuId||"v-"+this.idCounter+"-vue-combo-blocks-menu"},computedInputId:function e(){return this.inputId||"v-"+this.idCounter+"-vue-combo-blocks-input"},computedLabelId:function e(){return this.labelId||"v-"+this.idCounter+"-vue-combo-blocks-label"},selectedIndex:function e(){return this.items.indexOf(this.selectedItem)}},InputKeyDownArrowDown="InputKeyDownArrowDown",InputKeyDownArrowUp="InputKeyDownArrowUp",InputKeyDownTab="InputKeyDownTab",InputKeyUpEscape="InputKeyUpEscape",InputKeyUpEnter="InputKeyUpEnter",InputChange="InputChange",InputBlur="InputBlur",MenuMouseLeave="MenuMouseLeave",ItemMouseMove="ItemMouseMove",ItemClick="ItemClick",FunctionOpenMenu="FunctionOpenMenu",FunctionCloseMenu="FunctionCloseMenu",FunctionSelectItem="FunctionSelectItem",FunctionSetInputValue="FunctionSetInputValue",FunctionReset="FunctionReset",ControlledPropUpdatedSelectedItem="ControlledPropUpdatedSelectedItem",sct=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem,FunctionCloseMenu,FunctionOpenMenu,FunctionReset,FunctionSelectItem,FunctionSetInputValue,InputBlur,InputChange,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownTab,InputKeyUpEnter,InputKeyUpEscape,ItemClick,ItemMouseMove,MenuMouseLeave}),inputPropsAndListeners={getInputProps:function e(){return{value:this.inputValue||"","aria-activedescendant":this.hovered?this.getItemId(this.hoveredIndex):"","aria-autocomplete":"list","aria-controls":this.computedMenuId,"aria-labelledby":this.computedLabelId,id:this.computedInputId,autocomplete:"off"}},getInputEventListeners:function e(n){n===void 0&&(n={});var t=n.blur,a=n.input,r=n.keydown,o=n.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(a)?a:this.onInput,keydown:isFn(r)?r:this.onInputKeyDown,keyup:isFn(o)?o:this.onInputKeyUp}},onInputKeyDown:function e(n){n.key==="Enter"&&this.isOpen?n.preventDefault():hasKeyCode(controls.arrowDownKey,n)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(n)):this.moveSelection(n)},onInputKeyUp:function e(n){var t=controls.enterKey,a=controls.escKey;if(this.isOpen)if(hasKeyCode(t,n)){if(this.hoveredIndex>=0){n.preventDefault();var r=this.getItemNodeFromIndex(this.hoveredIndex);if(r&&r.hasAttribute("disabled"))return;this.setState({inputValue:this.itemToString(this.hovered),selectedItem:this.hovered,hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEnter)}}else hasKeyCode(a,n)&&this.setState({hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEscape)},onInputBlur:function e(){this.setState({isOpen:!1,inputValue:this.itemToString(this.selectedItem),hovered:null,hoveredIndex:-1},InputBlur)},onInput:function e(n){var t=n.target?n.target.value:n;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(n){var t=this;n===void 0&&(n={});var a=n.index,r=n.disabled,o=n.item;o===void 0&&(o=define_process_env_default$1.NODE_ENV==="production"?void 0:requiredProp("getItemEventListeners","item"));var s=n.mousemove,i=n.mousedown,l=n.click;return r?{}:{mousemove:isFn(s)?s:function(){return t.onItemMouseMove(a,o)},mousedown:isFn(i)?i:this.onItemMouseDown,click:isFn(l)?l:function(){return t.onItemClick(o)}}},onItemMouseMove:function e(n,t){var a=getItemIndex(n,t,this.items);this.hoveredIndex!==a&&this.setState({hoveredIndex:a,hovered:t},ItemMouseMove)},onItemMouseDown:function e(n){n.preventDefault()},onItemClick:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(n){n===void 0&&(n={});var t=n.index,a=n.disabled,r=n.item;r===void 0&&(r=define_process_env_default$1.NODE_ENV==="production"?void 0:requiredProp("getItemProps","item"));var o=getItemIndex(t,r,this.items),s=this.getItemId(o);return{id:s,disabled:a?!0:void 0,role:"option","aria-selected":this.hoveredIndex===o||this.selectedItem===r?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(n){n===void 0&&(n={});var t=n.mouseleave,a=n.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(a)?a:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(n){n.preventDefault()}},methods=Object.assign({},inputPropsAndListeners,itemPropsAndListeners,menuPropsAndListeners,{getComboboxProps:function e(){return{role:"combobox","aria-haspopup":"listbox","aria-owns":this.computedMenuId,"aria-expanded":this.isOpen?"true":"false"}},getLabelProps:function e(){return{id:this.computedLabelId,for:this.computedInputId}},autocompleteText:function e(n){this.setInputValue(this.itemToString(n))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(n,t,a){n&&n!==this.hovered&&this.$emit("hover",n,a),this.hovered=n,this.hoveredIndex=typeof t=="number"?t:-1},closeMenu:function e(){this.setState({isOpen:!1,hoveredIndex:-1,hovered:null},FunctionCloseMenu)},openMenu:function e(){this.setState({isOpen:!0},FunctionOpenMenu)},getItemNodeFromIndex:function e(n){return this.menuElement.querySelector("#"+this.getItemId(n))},scrollItemIntoView:function e(n){var t=this.getItemNodeFromIndex(n);scrollToElement(t,this.menuElement,n)},moveSelection:function e(n){var t=this,a=this.items.length;if(!(!this.isOpen||!a)){var r=hasKeyCode(controls.arrowDownKey,n),o=hasKeyCode(controls.arrowUpKey,n);if(r||o){n.preventDefault();var s=r*2-1,i=r?0:a-1,l=r?this.hoveredIndex<a-1:this.hoveredIndex>0,u=l?this.hoveredIndex+s:i,c=getNextNonDisabledIndex(s,u,a,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(o&&c>this.hoveredIndex||r&&c<this.hoveredIndex))return;var d=this.items[c];this.scrollIntoView&&this.$nextTick(function(){t.scrollItemIntoView(u)}),this.setState({hoveredIndex:c,hovered:d},r?InputKeyDownArrowDown:InputKeyDownArrowUp)}}},setInputValue:function e(n){this.inputValue!==n&&this.setState({inputValue:n},FunctionSetInputValue)}});function slot(e){return{getInputProps:e.getInputProps,getItemProps:e.getItemProps,getMenuProps:e.getMenuProps,getComboboxProps:e.getComboboxProps,getLabelProps:e.getLabelProps,getInputEventListeners:e.getInputEventListeners,getMenuEventListeners:e.getMenuEventListeners,getItemEventListeners:e.getItemEventListeners,isOpen:e.isOpen,selectedItem:e.selectedItem,hoveredIndex:e.hoveredIndex,inputValue:e.inputValue,reset:e.reset,select:e.select,setInputValue:e.setInputValue,openMenu:e.openMenu,closeMenu:e.closeMenu}}var idCounter=0;function beforeCreate(){this.idCounter=idCounter.toString(),idCounter+=1}var isVue3=!!vue.defineComponent;!isVue3&&define_process_env_default$1.NODE_ENV!=="production"&&console.error(`Looks like your Vue version is 2.x, but you are using VueComboBlocks for Vue 3.
|
|
330
|
-
Install the correct version for Vue 2.x: "npm i vue-combo-blocks@vue2"`);var VueComboBlocks=vue.defineComponent({name:"vue-combo-blocks",emits:{select:null,"update:modelValue":null,"input-value-change":null,"is-open-change":null,"hovered-index-change":null,"state-change":null,change:null,"show-list":null,focus:null,hover:null},props:getProps(isVue3),watch:{modelValue:function e(n){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(n),this.selectedItem=n)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(n,t){var a=this.$data,r=this.stateReducer(a,{changes:n,type:t}),o=hasOwnProperty(r,"selectedItem"),s=r.selectedItem!==a.selectedItem;o&&(this.$emit("select",r.selectedItem,t),s&&this.$emit("update:modelValue",r.selectedItem,t));var i={};for(var l in r)hasOwnProperty(r,l)&&a[l]!==r[l]&&(i[l]=r[l],this[l]=i[l],l==="inputValue"?this.$emit("input-value-change",r[l],t):l==="isOpen"?this.$emit("is-open-change",r[l],t):l==="hoveredIndex"&&this.$emit("hovered-index-change",r[l],t));this.$emit("state-change",i,t)}},methods),render:function e(){return this.$slots.default(slot(this))}});VueComboBlocks.stateChangeTypes=sct;const _hoisted_1$t={"data-test":"vs-autocomplete",class:"vs-autocomplete mb-100"},_hoisted_2$o=["for"],_hoisted_3$i=["placeholder","onClick"],_hoisted_4$f=["name"],_sfc_main$E=vue.defineComponent({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref([]),o=vue.ref(t.options),s=f=>f?f[u.value]:"",i=f=>{o.value=t.options.filter(v=>v[u.value].toLowerCase().includes(f.toLowerCase()))},l=f=>{typeof t.trackBy<"u"?a("changeValue",f[t.trackBy]):a("changeValue",f.label)},u=vue.computed(()=>typeof t.multiselectLabel<"u"?t.multiselectLabel:"name"),c=vue.computed(()=>{if(typeof r.value=="string"){if(t.isTourLocation){const f=t.options.find(v=>v.name===r.value);if(typeof f<"u")return f.slug.trim()}return r.value.trim()}else if(typeof r.value=="object"&&Object.keys(r.value).length>0)return s(r.value).trim()}),d=vue.computed(()=>!!(c.value&&c.value.length>0));return vue.watch(()=>r.value,()=>{r.value===null&&(r.value=[])}),vue.onMounted(()=>{typeof t.defaultVal<"u"&&(r.value=t.defaultVal)}),(f,v)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$t,[vue.createElementVNode("label",{for:f.id},vue.toDisplayString(f.label),9,_hoisted_2$o),vue.createVNode(vue.unref(VueComboBlocks),{"input-id":f.id,modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=p=>r.value=p),itemToString:s,items:o.value,onInputValueChange:i,onSelect:l},{default:vue.withCtx(({getInputProps:p,getInputEventListeners:h,hoveredIndex:g,isOpen:m,getMenuProps:_,getMenuEventListeners:b,getItemProps:S,getItemEventListeners:k,getComboboxProps:V,openMenu:L})=>[vue.createElementVNode("div",vue.mergeProps(V(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},p(),vue.toHandlers(h(),!0),{placeholder:f.placeholder,onClick:$=>L()}),null,16,_hoisted_3$i),vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-expand",variant:"cta",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(_(),vue.toHandlers(b(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,($,A)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:$.id},{ref_for:!0},S({item:$,index:A}),vue.toHandlers(k({item:$,index:A}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":g===A}]}),vue.toDisplayString($[u.value]),17))),128))],16),[[vue.vShow,m]])],16)]),_:1},8,["input-id","modelValue","items"]),d.value?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:f.name,"onUpdate:modelValue":v[1]||(v[1]=p=>c.value=p)},null,8,_hoisted_4$f)),[[vue.vModelText,c.value]]):vue.createCommentVNode("",!0)]))}}),_hoisted_1$s={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},_hoisted_2$n={class:"vs-guest-selector-number-group__label"},_hoisted_3$h={class:"vs-guest-selector-number-group__buttons justify-content-end"},_hoisted_4$e=["disabled"],_hoisted_5$d=["name","disabled"],_sfc_main$D=vue.defineComponent({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(0),o=vue.ref(!1),s=vue.ref(t.name),i=()=>{r.value>t.minValue&&(r.value--,o.value=!0,u("decrease"))},l=()=>{r.value<t.maxValue&&(r.value++,o.value=!0,u("increase"))},u=c=>{a("changeHandler",t.name,r.value,c,t.id)};return vue.onMounted(()=>{o.value||(r.value=t.minValue),r.value<=t.maxValue&&(r.value=t.count),t.unitRemoved&&(t.name.includes("children")?(r.value=t.childrenCount,s.value=t.rowName+"children"):t.name.includes("infants")?(r.value=t.infantCount,s.value=t.rowName+"infants"):(r.value=t.adultCount,s.value=t.rowName+"a"))}),(c,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$s,[vue.createElementVNode("span",_hoisted_2$n,vue.toDisplayString(c.rowLabel),1),vue.createElementVNode("div",_hoisted_3$h,[vue.createVNode(LoadingSpinner.VsButton,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"fa-regular fa-minus","icon-only":"",value:"-",onClick:vue.withModifiers(i,["prevent"]),disabled:r.value===c.minValue},{default:vue.withCtx(()=>d[2]||(d[2]=[vue.createTextVNode(" Remove ")])),_:1,__:[2]},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{class:"vs-guest-selector-number-group__input",disabled:c.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f)},null,8,_hoisted_4$e),[[vue.vModelText,r.value]]),vue.createVNode(LoadingSpinner.VsButton,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"fa-regular fa-plus","icon-only":"",value:"+",onClick:vue.withModifiers(l,["prevent"]),disabled:r.value===c.maxValue},{default:vue.withCtx(()=>d[3]||(d[3]=[vue.createTextVNode(" Add ")])),_:1,__:[3]},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{type:"hidden","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),name:(c.unitRemoved&&c.rowName!=="r1",s.value),disabled:c.disabled},null,8,_hoisted_5$d),[[vue.vModelText,r.value]])])]))}}),_hoisted_1$r={class:"vs-guest-selector-row","data-test":"vs-guest-selector-row"},_hoisted_2$m={class:"vs-guest-selector-row__title"},_hoisted_3$g={key:1,class:"c-search__rooms-guests-picker__row"},_hoisted_4$d=["name"],_hoisted_5$c=["name"],_hoisted_6$c=["name"],_sfc_main$C=vue.defineComponent({__name:"GuestSelectorRow",props:{name:{},showRemoveBtn:{type:Boolean},unitLabel:{},unitOptions:{},unitRemoved:{type:Boolean}},emits:["numberChange","onRemove"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(t.unitOptions.numberGroups.adults.count),o=vue.ref(t.unitOptions.numberGroups.children.count),s=vue.ref(t.unitOptions.numberGroups.infants.count),i=getLabelText("remove","Remove","guests_rooms"),l=vue.computed(()=>o.value+s.value),u=(d,f,v,p)=>{let h="";d.includes("children")&&(o.value=f,h="children"),d.includes("infants")&&(s.value=f,h="infants"),(d.includes("r1a")||d.includes("r2a")||d.includes("r3a")||d.includes("r4a")||d.includes("r5a"))&&(r.value=f,h="adults"),a("numberChange",v,h,p)},c=()=>{a("onRemove",s.value+o.value+r.value,s.value+o.value,t.unitOptions.id)};return(d,f)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[vue.createElementVNode("div",_hoisted_2$m,vue.toDisplayString(d.unitLabel),1),d.name!=="r1"?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,class:"vs-guest-selector-row__remove",onClick:vue.withModifiers(c,["prevent"]),variant:"subtle",icon:"vs-icon-control-dismiss","icon-size":"sm","icon-position":"left","icon-only":"",size:"sm"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(i)),1)]),_:1})):vue.createCommentVNode("",!0),d.unitOptions?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.unitOptions.numberGroups,(v,p)=>(vue.openBlock(),vue.createBlock(_sfc_main$D,{"adult-count":r.value,"children-count":o.value,count:v.count,disabled:!1,id:d.unitOptions.id,"infant-count":s.value,"input-type":v,key:`${d.name}_${p}`,"max-value":v.maxCount,"min-value":v.minCount,name:v.name,"row-label":v.unitLabel,"row-name":d.name,"unit-removed":d.unitRemoved,onChangeHandler:u},null,8,["adult-count","children-count","count","id","infant-count","input-type","max-value","min-value","name","row-label","row-name","unit-removed"]))),128)),vue.withDirectives(vue.createElementVNode("input",{type:"hidden",name:`${d.name}c`,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v)},null,8,_hoisted_4$d),[[vue.vModelText,l.value]])])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(v,p)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${p}`,name:`${d.name}c${p}`,value:"10"},null,8,_hoisted_5$c))),128)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(v,p)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${p}`,name:`${d.name}c${p+o.value}`,value:"1"},null,8,_hoisted_6$c))),128))]))}}),_hoisted_1$q={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},_hoisted_2$l={class:"vs-guest-selector__label"},_hoisted_3$f=["disabled"],_hoisted_4$c={class:"vs-guest-selector__button-row mb-075"},_hoisted_5$b={class:"d-flex justify-content-between"},_hoisted_6$b=["value","disabled"],_hoisted_7$9=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$B=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const n=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),a=getLabelText("save_changes","Save","guests_rooms"),r=vue.ref(2),o=getLabelText("guest","Guest","guests_rooms"),s=getLabelText("guests","Guests","guests_rooms"),i=vue.ref(!1),l=vue.ref(0),u=vue.ref([{id:`${n.uid}`,showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}}]),c=vue.ref(1),d=getLabelText("room","Room","guests_rooms"),f=getLabelText("rooms","Rooms","guests_rooms"),v=vue.ref(!1),p=vue.ref(!1),h=()=>{p.value=!1},g=()=>{p.value=!p.value},m=()=>{if(u.value.length<unitLimit){const S={id:`${n.uid}`,showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(u.value.length+1)+"a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(u.value.length+1)+"children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(u.value.length+1)+"infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}};let k=u.value.slice();k.push(S),u.value=k,c.value=k.length,i.value=!0,r.value=r.value+adultDefaultCount}},_=(S,k,V)=>{const L=u.value.findIndex($=>$.id===V);u.value.splice(L,1),c.value=u.value.length,v.value=!0,r.value=r.value-S,l.value=l.value-k,u.value.length===1&&(i.value=!1)},b=(S,k,V)=>{r.value=S==="increase"?r.value+1:r.value-1,k!=="adults"&&(l.value=S==="increase"?l.value+1:l.value-1);const L=u.value.findIndex($=>$.id===V);u.value[L].numberGroups[k].count=S==="increase"?u.value[L].numberGroups[k].count+1:u.value[L].numberGroups[k].count-1};return(S,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$q,[vue.createElementVNode("span",_hoisted_2$l,vue.toDisplayString(vue.unref(s)),1),vue.createElementVNode("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:vue.withModifiers(g,["prevent"]),disabled:!S.availability},[vue.createElementVNode("span",null,vue.toDisplayString(c.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(c.value>1?vue.unref(f):vue.unref(d)),1),k[0]||(k[0]=vue.createTextVNode(", ")),vue.createElementVNode("span",null,vue.toDisplayString(r.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(r.value>1?vue.unref(s):vue.unref(o)),1)],8,_hoisted_3$f),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-guest-selector__modal",p.value?"vs-guest-selector__modal--visible":""])},[vue.createVNode(LoadingSpinner.VsButton,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:vue.withModifiers(h,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("close","Close","guests_rooms")),1)]),_:1}),vue.createElementVNode("div",_hoisted_4$c,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,(V,L)=>(vue.openBlock(),vue.createBlock(_sfc_main$C,{key:V.id,name:"r"+(L+1),"show-remove-btn":i.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(L+1),"unit-options":V,"unit-removed":v.value,onNumberChange:b,onOnRemove:_},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"]))),128))]),vue.createElementVNode("div",_hoisted_5$b,[u.value.length<unitLimit?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-050 align-self-start",onClick:vue.withModifiers(m,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(t)),1)]),_:1})):vue.createCommentVNode("",!0),u.value.length<unitLimit?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:vue.withModifiers(h,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(a)),1)]),_:1})):vue.createCommentVNode("",!0)])],2),u.value?(vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:c.value,disabled:!S.availability},null,8,_hoisted_6$b)):vue.createCommentVNode("",!0),u.value?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:r.value,disabled:!S.availability},null,8,_hoisted_7$9)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$p={class:"vs-date-input","data-test":"vs-date-input"},_hoisted_2$k=["for"],_hoisted_3$e=["min","name","id"],_sfc_main$A=vue.defineComponent({__name:"DateInput",props:{label:{},id:{},name:{},value:{},minDate:{}},emits:["changeDate"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(t.value),o=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,s=>{r.value=s,a("changeDate",r.value)}),(s,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$p,[vue.createElementVNode("label",{for:s.id},vue.toDisplayString(s.label),9,_hoisted_2$k),vue.withDirectives(vue.createElementVNode("input",{type:"date",min:typeof s.minDate<"u"&&s.minDate.length>0?s.minDate:o.value,name:s.name,id:s.id,"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),onChange:i[1]||(i[1]=l=>s.$emit("changeDate",r.value)),class:"form-control vs-input"},null,40,_hoisted_3$e),[[vue.vModelText,r.value]])]))}}),_hoisted_1$o={class:"vs-date-range","data-test":"vs-date-range"},_hoisted_2$j={class:"row align-items-center"},_hoisted_3$d={class:"col-12 col-sm-5 order-1"},_hoisted_4$b={class:"col-12 col-sm-5 order-2"},_hoisted_5$a={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},_hoisted_6$a={key:1,type:"hidden",name:"refine-date",value:"on"},_hoisted_7$8=["value"],_sfc_main$z=vue.defineComponent({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(""),o=vue.ref(""),s=vue.computed(()=>!!r.value||!!o.value),i=vue.computed(()=>{const _=new Date(o.value),b=new Date(r.value),S=_.getTime()-b.getTime();return isNaN(S)?1:S/(1e3*3600*24)});function l(){r.value="",o.value=""}const u=_=>{const b=_.toLocaleString("default",{year:"numeric"}),S=_.toLocaleString("default",{month:"2-digit"}),k=_.toLocaleString("default",{day:"2-digit"});return`${b}-${S}-${k}`},c=vue.computed(()=>r.value===""?u(new Date):""),d=vue.computed(()=>{let _;if(r.value!==""){const b=new Date(r.value);b.setDate(b.getDate()+1),_=u(b)}else if(t.defaultDates){const b=new Date,S=new Date(b);S.setDate(S.getDate()+1),_=u(S)}return _}),f=vue.computed(()=>{let _;if(r.value===""){const b=new Date,S=new Date(b);S.setDate(S.getDate()+1),_=u(S)}else{const b=new Date,S=new Date(r.value);b.setDate(S.getDate()+1),_=u(b)}return _});function v(){const _=new Date(r.value);new Date(o.value)<=_&&(o.value="")}function p(){const _=!(!r.value&&!o.value);a("dateUpdated",_)}function h(){p(),v()}const g=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),m=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(_,b)=>(vue.openBlock(),vue.createElementBlock("fieldset",_hoisted_1$o,[vue.createElementVNode("div",_hoisted_2$j,[vue.createElementVNode("div",_hoisted_3$d,[vue.createVNode(_sfc_main$A,{label:e.startLabel,value:e.defaultDates&&r.value===""&&o.value?c.value:r.value,name:g.value,id:"startDate",onChangeDate:b[0]||(b[0]=S=>{r.value=S,h()}),class:"mb-100"},null,8,["label","value","name"])]),vue.createElementVNode("div",_hoisted_4$b,[vue.createVNode(_sfc_main$A,{label:e.endLabel,value:e.defaultDates&&o.value===""&&r.value?d.value:o.value,"min-date":f.value,name:m.value,id:"endDate",onChangeDate:b[1]||(b[1]=S=>{o.value=S,h()}),class:"mb-100"},null,8,["label","value","min-date","name"])]),vue.createElementVNode("div",_hoisted_5$a,[s.value?(vue.openBlock(),vue.createElementBlock("button",{key:0,id:"clearDateRange",type:"button",onClick:l,class:"vs-date-range__clear"},vue.toDisplayString(vue.unref(getLabelText)("reset","Clear")),1)):vue.createCommentVNode("",!0),e.selectedProd!=="acco"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_6$a)):vue.createCommentVNode("",!0),vue.createElementVNode("input",{type:"hidden",name:"nights",value:i.value},null,8,_hoisted_7$8)])])]))}}),_hoisted_1$n={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},_hoisted_2$i={key:0,class:"container"},_hoisted_3$c={class:"row"},_hoisted_4$a={class:"col-12"},_hoisted_5$9=["action"],_hoisted_6$9={class:"form-group product-search__type mb-100"},_hoisted_7$7={for:"prodtypes"},_hoisted_8$5={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$4={"aria-live":"polite"},_hoisted_10$4=["disabled","value"],_hoisted_11$3=["disabled","value"],_hoisted_12$2=["value"],_hoisted_13$2={key:4,type:"hidden",name:"areaproxdist",value:"10"},_hoisted_14$1={key:5},_hoisted_15$1={key:0,class:"form-group"},_hoisted_16$1={for:"search-keyword"},_hoisted_17$1={key:2},_hoisted_18=["value"],_hoisted_19={key:0},_hoisted_20=["value"],__default__$1=vue.defineComponent({mixins:[LoadingSpinner.dataLayerMixin],methods:{trackSubmit(e,n){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:n.name},this.href)}}}),_sfc_main$y=vue.defineComponent({...__default__$1,__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup(e){const n=e,t=vue.ref(!1),a=vue.ref(),r=vue.ref([]);vue.ref(null);let o=vue.ref();o.value={id:"",key:"",name:"",type:""};const s=vue.ref("off"),i=vue.ref(!1),l=vue.computed(()=>{const C=typeof a.value>"u"?"see-do":a.value;return`/info/${LoadingSpinner.paths[C]}`});let u=vue.ref(!1);const c={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},d=vue.computed(()=>{let C=n.defaultLocale.length>0?n.defaultLocale:getLocale();return C==="en"&&(C=""),C}),f=vue.computed(()=>{if(typeof window<"u"){let C=window.location.origin;return C.includes("localhost")?"https://www.visitscotland.com":C}return"https://www.visitscotland.com"}),v=vue.computed(()=>`${f.value}${d.value?"/"+d.value:""}${l.value}/search-results`),h="https://www.visitscotland.com/data/locations"+`?locale=${d.value}`,g=vue.ref([]),m="https://www.visitscotland.com/tms-api/v1/attractions",_=vue.ref([]),b="https://www.visitscotland.com/tms-api/v1/origins?active=1",S=vue.ref([]),k=vue.ref([]),V=()=>{const C=getProductTypes(),E=[];C.forEach(T=>{E.push(T)}),k.value=E},L=vue.computed(()=>t.value?[]:k.value.map(E=>({...E,text:getProductName(E.value,E.text)}))),$=async()=>{const C=await getData(h);C&&(g.value=C.data)},A=async()=>{const C=await getData(b);C&&(S.value=C.data)},F=async()=>{const C=await getData(m);C&&(_.value=C.data)},P=(C,E)=>{E==="key"?o.value=g.value.find(T=>T.key===C):E==="id"?o.value=g.value.find(T=>T.id===C):o.value=g.value.find(T=>T.name===C.trim())},q=C=>{const E=C.value;a.value=E,E==="tour"&&(A(),F())},M=()=>c[n.defaultLocale]||"",j=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,n.defaultLocation!==""&&u&&P(n.defaultLocation,"id")})},Q=vue.computed(()=>a.value!=="cate"&&a.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const C=document.createElement("script");C.async=!1,C.onload=j,C.setAttribute("src",`https://www.visitscotland.com/${M().localeUrl}/data/template/search.js`),document.head.appendChild(C)}),vue.onMounted(async()=>{$(),u.value=!0,a.value=n.defaultProd,a.value==="tour"&&(A(),F()),V()});const J=C=>{s.value=C?"on":"off"},W=C=>{i.value=!0;const E=C.currentTarget;setTimeout(function(){E.submit()},500)};return(C,E)=>{var T,z,Y,w,B,N;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$n,[t.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$i,[vue.createElementVNode("div",_hoisted_3$c,[vue.createElementVNode("div",_hoisted_4$a,[vue.unref(u)?(vue.openBlock(),vue.createElementBlock("form",{key:0,action:v.value,onSubmit:vue.withModifiers(W,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$9,[vue.createElementVNode("label",_hoisted_7$7,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(Q.value)},[vue.createVNode(VsSelect,{options:L.value,value:e.defaultProd,onUpdated:E[0]||(E[0]=D=>q(D)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$4,[a.value!="tour"&&vue.unref(u)?(vue.openBlock(),vue.createBlock(_sfc_main$E,{key:0,id:"search-location",label:vue.unref(getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:g.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:E[1]||(E[1]=D=>P(D)),"default-val":vue.unref(o),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((T=vue.unref(o))==null?void 0:T.type)==="POLYGON",value:((z=vue.unref(o))==null?void 0:z.key)||""},null,8,_hoisted_10$4)):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((Y=vue.unref(o))==null?void 0:Y.type)!=="POLYGON",value:((w=vue.unref(o))==null?void 0:w.key)||""},null,8,_hoisted_11$3)):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((B=vue.unref(o))==null?void 0:B.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),a.value!=="tour"&&((N=vue.unref(o))==null?void 0:N.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),a.value==="even"||a.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createVNode(_sfc_main$z,{"start-label":vue.unref(getLabelText)("startdate","Start Date","dates"),"end-label":vue.unref(getLabelText)("enddate","End Date","dates"),onDateUpdated:E[2]||(E[2]=D=>J(D)),"default-dates":i.value,"selected-prod":a.value},null,8,["start-label","end-label","default-dates","selected-prod"]),a.value==="even"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1,[vue.createElementVNode("label",_hoisted_16$1,vue.toDisplayString(vue.unref(getLabelText)("keywords","Keywords")),1),vue.createVNode(VsInput,{"field-name":"search-keyword",placeholder:vue.unref(getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):vue.createCommentVNode("",!0),a.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$B,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),a.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17$1,[vue.createElementVNode("input",{hidden:"true",name:"avail",value:s.value},null,8,_hoisted_18)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),a.value==="tour"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.createVNode(_sfc_main$E,{id:"tour-origin",label:vue.unref(getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:S.value,placeholder:vue.unref(getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.value,D=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:D},null,8,_hoisted_20))),256)),vue.createVNode(_sfc_main$E,{id:"tour-month",label:vue.unref(getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:vue.unref(getLabelText)("months",vue.unref(LoadingSpinner.monthsEnglish)),placeholder:vue.unref(getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsButton,{class:"mt-150","data-test":"psw-submit",type:"submit",onClick:E[3]||(E[3]=D=>C.trackSubmit(a.value,typeof vue.unref(o)>"u"?"":vue.unref(o)))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("search","Search")),1)]),_:1})],40,_hoisted_5$9)):vue.createCommentVNode("",!0),vue.unref(u)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(LoadingSpinner.VsLoading,{key:1,variant:"dark"}))])])]))])}}}),_sfc_main$x={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsProductSearchEmbed:_sfc_main$y,VsHeading:LoadingSpinner.VsHeading,VsWarning:LoadingSpinner.VsWarning},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}},_hoisted_1$m={class:"vs-product-search","data-test":"vs-product-search"},_hoisted_2$h={class:"vs-product-search__intro"};function _sfc_render$o(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsProductSearchEmbed"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2",headingStyle:"heading-l",class:"vs-product-search__heading mt-0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-heading")]),_:3}),vue.createElementVNode("div",_hoisted_2$h,[vue.renderSlot(e.$slots,"vs-module-intro")])]),_:3}),vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-product-search__widget","default-location":t.defaultLocation,"default-locale":t.defaultLocale,"default-prod":t.defaultProd},null,8,["default-location","default-locale","default-prod"]),vue.createVNode(u,{class:"vs-product-search__no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})]),_:1})]),_:3})]),_:3})])}const ProductSearch=LoadingSpinner._export_sfc(_sfc_main$x,[["render",_sfc_render$o]]),_sfc_main$w={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:e=>e.match(/(narrow|wide)/)},withBorder:{type:Boolean,default:!1}},computed:{hasAuthorName(){return!!this.$slots["quote-author-name"]},hasAuthorTitle(){return!!this.$slots["quote-author-title"]},hasAuthorImage(){return!!this.$slots["quote-image"]},variantClass(){return[{"vs-quote--narrow":this.variant==="narrow","vs-quote--wide":this.variant==="wide","vs-quote--with-border":this.withBorder}]}}},_hoisted_1$l={key:0,class:"vs-quote__speech-container"},_hoisted_2$g={key:1,class:"vs-quote__author-container"},_hoisted_3$b={class:"vs-quote__content-container"},_hoisted_4$9={class:"vs-quote__content"},_hoisted_5$8={key:0,class:"vs-quote__author-name"},_hoisted_6$8={key:2,class:"vs-quote__quote-link"};function _sfc_render$n(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",o.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$l,n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1)]))),o.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$g,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$b,[vue.createElementVNode("div",_hoisted_4$9,[vue.renderSlot(e.$slots,"quote-content")]),o.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$8,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),o.hasAuthorTitle?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:vue.normalizeClass(["vs-quote__author-title",t.variant==="narrow"?"vs-quote__author-title--narrow-margin":null])},[vue.renderSlot(e.$slots,"quote-author-title")],2)):vue.createCommentVNode("",!0),e.$slots["quote-link"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$8,[vue.renderSlot(e.$slots,"quote-link",{if:"$slots['quote-link']"})])):vue.createCommentVNode("",!0)])],2)}const Quote=LoadingSpinner._export_sfc(_sfc_main$w,[["render",_sfc_render$n]]),_sfc_main$v={name:"VsSectionHeader",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{anchorId:{type:String,default:null},heading:{type:String,required:!0}}},_hoisted_1$k={class:"vs-section-header","data-test":"vs-section-header"},_hoisted_2$f={key:1,class:"mt-175","data-test":"vs-section-header__actions"};function _sfc_render$m(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsBody"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$k,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,null,{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-section-header__divider"},null,-1)])),_:1,__:[0]})]),_:1}),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",sm:"7",md:"6",lg:"4"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"2","heading-style":"heading-l","no-margins":"",class:"mb-175 mb-lg-0",id:t.anchorId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1},8,["id"])]),_:1}),vue.createVNode(s,{cols:"12",sm:"10",md:"9",lg:"8"},{default:vue.withCtx(()=>[e.$slots["section-header-lede"]?(vue.openBlock(),vue.createBlock(u,{key:0,variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"section-header-lede")]),_:3})):vue.createCommentVNode("",!0),e.$slots["section-header-actions"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$f,[vue.renderSlot(e.$slots,"section-header-actions")])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})])}const SectionHeader=LoadingSpinner._export_sfc(_sfc_main$v,[["render",_sfc_render$m]]),_sfc_main$u={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:LoadingSpinner.ol},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:e=>e.match(/(responsive|stacked)/)}},computed:{responsive(){return this.tableType==="responsive"},stacked(){return this.tableType==="stacked"}}},_hoisted_1$j={class:"visually-hidden","data-test":"vs-table__caption"};function _sfc_render$l(e,n,t,a,r,o){const s=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(s,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:o.responsive,stacked:o.stacked},{default:vue.withCtx(()=>[vue.createElementVNode("caption",_hoisted_1$j,vue.toDisplayString(t.tableCaption),1),vue.renderSlot(e.$slots,"default")]),_:3},8,["responsive","stacked"])}const VsTable=LoadingSpinner._export_sfc(_sfc_main$u,[["render",_sfc_render$l]]),_sfc_main$t={name:"VsTableHead",status:"prototype",release:"0.0.1",components:{BThead:LoadingSpinner.wn}};function _sfc_render$k(e,n,t,a,r,o){const s=vue.resolveComponent("BThead");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableHead=LoadingSpinner._export_sfc(_sfc_main$t,[["render",_sfc_render$k]]),_sfc_main$s={name:"VsTableHeaderCell",status:"prototype",release:"0.0.1",components:{BTh:LoadingSpinner.Ea},props:{stackedHeading:{type:String,default:void 0}}};function _sfc_render$j(e,n,t,a,r,o){const s=vue.resolveComponent("BTh");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-header-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableHeaderCell=LoadingSpinner._export_sfc(_sfc_main$s,[["render",_sfc_render$j]]),_sfc_main$r={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:LoadingSpinner.Bn}};function _sfc_render$i(e,n,t,a,r,o){const s=vue.resolveComponent("BTbody");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableBody=LoadingSpinner._export_sfc(_sfc_main$r,[["render",_sfc_render$i]]),_sfc_main$q={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:LoadingSpinner.Je}};function _sfc_render$h(e,n,t,a,r,o){const s=vue.resolveComponent("BTr");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableRow=LoadingSpinner._export_sfc(_sfc_main$q,[["render",_sfc_render$h]]),_sfc_main$p={name:"VsTableDataCell",status:"prototype",release:"0.0.1",components:{BTd:LoadingSpinner.St},props:{stackedHeading:{type:String,default:null}}};function _sfc_render$g(e,n,t,a,r,o){const s=vue.resolveComponent("BTd");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-data-cell","stacked-heading":t.stackedHeading},e.$attrs,{scope:null}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableDataCell=LoadingSpinner._export_sfc(_sfc_main$p,[["render",_sfc_render$g]]),_sfc_main$o={name:"VsTableFooter",status:"prototype",release:"0.0.1",components:{BTfoot:LoadingSpinner.Pa}};function _sfc_render$f(e,n,t,a,r,o){const s=vue.resolveComponent("BTfoot");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{role:"rowgroup"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableFooter=LoadingSpinner._export_sfc(_sfc_main$o,[["render",_sfc_render$f]]),_sfc_main$n={name:"VsSkiScotlandCard",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,VsWarning:LoadingSpinner.VsWarning,VsLoadingSpinner:LoadingSpinner.VsLoading,VsButton:LoadingSpinner.VsButton,VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter},props:{centreInfoUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},lastUpdatedLabel:{type:String,default:"Last Updated"},liftsLabel:{type:String,default:"Lifts"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},pisteMapLabel:{type:String,default:"View Piste Map"},moreDetailsLabel:{type:String,default:"More Details"},pisteMapLink:{type:String,default:""},moreDetailsLink:{type:String,required:!0,default:"#"}},data(){return{statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},runs:[],lifts:[],lastUpdate:"",jsDisabled:!0,isLoading:!0,displayError:!1}},mounted(){this.centreInfoUrl&&this.retrieveCentreInfo(),this.jsDisabled=!1},methods:{retrieveCentreInfo(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);LoadingSpinner.axios.get(this.centreInfoUrl).then(n=>{const t=this.cleanData(n.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(a=>a.runs).reduce((a,r)=>a.concat(r)).filter((a,r,o)=>r===o.findIndex(s=>s.name===a.name));n.runs=t}return n},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},a=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${a}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}this.runs=e}}},_hoisted_1$i={class:"card vs-ski-scotland-card","data-test":"vs-ski-scotland-card"},_hoisted_2$e={class:"vs-ski-scotland-card__img-container"},_hoisted_3$a={class:"card-body"},_hoisted_4$8={key:0,class:"text-center pb-200 position-relative"},_hoisted_5$7={"data-test":"vs-ski__status-label"},_hoisted_6$7={"data-test":"vs-ski__runs-label"},_hoisted_7$6={"data-test":"vs-ski__lifts-label"},_hoisted_8$4={"data-test":"vs-ski__open-label"},_hoisted_9$3={"data-test":"vs-ski__limited-patrol-label"},_hoisted_10$3={"data-test":"vs-ski__opening-label"},_hoisted_11$2={"data-test":"vs-ski__closed-label"},_hoisted_12$1={"data-test":"vs-ski__on-hold-label"},_hoisted_13$1={"data-test":"vs-ski__last-updated-label"};function _sfc_render$e(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsLoadingSpinner"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsTableHeaderCell"),d=vue.resolveComponent("VsTableHead"),f=vue.resolveComponent("VsIcon"),v=vue.resolveComponent("VsTableDataCell"),p=vue.resolveComponent("VsTableRow"),h=vue.resolveComponent("VsTableBody"),g=vue.resolveComponent("VsTableFooter"),m=vue.resolveComponent("VsTable"),_=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[vue.createElementVNode("div",_hoisted_2$e,[t.imgSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-ski-scotland-card__img","data-test":"vs-ski-scotland-card__img"},null,8,["src","alt"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_3$a,[vue.createVNode(i,{level:"3","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-name")]),_:3}),r.jsDisabled||r.isLoading||r.displayError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$8,[!r.jsDisabled&&r.isLoading?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{class:"mb-100 d-block"}),vue.renderSlot(e.$slots,"data-loading")],64)):vue.createCommentVNode("",!0),!r.jsDisabled&&r.displayError?(vue.openBlock(),vue.createBlock(u,{key:1,size:"small","data-test":"vs-ski-scotland-card__error"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})):vue.createCommentVNode("",!0),r.jsDisabled?(vue.openBlock(),vue.createBlock(u,{key:2,size:"small","data-test":"vs-ski-scotland-card__js-disabled"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(m,{key:1,"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$7,vue.toDisplayString(t.statusLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$7,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$6,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-check",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_8$4,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.open)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.open)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.limitedPatrol||r.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(p,{key:0},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_9$3,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-timer",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_10$3,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.opening)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.opening)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-ban",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_11$2,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.closed)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.closed)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.onHold||r.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(p,{key:1},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_12$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.onHold)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_13$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])):vue.createCommentVNode("",!0),vue.createVNode(_,{variant:"secondary",href:t.pisteMapLink,class:"mb-050",disabled:!t.pisteMapLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.pisteMapLabel),1)]),_:1},8,["href","disabled"]),vue.createVNode(_,{href:t.moreDetailsLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.moreDetailsLabel),1)]),_:1},8,["href"])])])}const SkiScotlandCard=LoadingSpinner._export_sfc(_sfc_main$n,[["render",_sfc_render$e]]),_sfc_main$m={name:"VsSkiScotlandStatus",status:"prototype",release:"0.0.1",components:{VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsAccordion,VsAccordionItem,VsIcon:LoadingSpinner.VsIcon,VsLink,VsHeading:LoadingSpinner.VsHeading,VsLoadingSpinner:LoadingSpinner.VsLoading,VsWarning:LoadingSpinner.VsWarning},props:{skiStatusUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},currentWeatherLabel:{type:String,default:"Current Weather"},detailedStatusLabel:{type:String,default:"Detailed Status"},difficultLabel:{type:String,default:"Difficult"},easyLabel:{type:String,default:"Easy"},intermediateLabel:{type:String,default:"Intermediate"},itinerariesLabel:{type:String,default:"Itineraries"},lastUpdatedLabel:{type:String,default:"Last Updated"},liftLabel:{type:String,default:"Lift"},liftsLabel:{type:String,default:"Lifts"},liftStatusLabel:{type:String,default:"Lift Status"},newsLabel:{type:String,default:"News From The Slopes"},otherLabel:{type:String,default:"Other"},roadsLabel:{type:String,default:"Road Status"},runLabel:{type:String,default:"Run"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},runStatusLabel:{type:String,default:"Run Status"},snowConditionsLabel:{type:String,default:"Snow Conditions Full Report"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},statusClosedLabel:{type:String,default:"Closed"},statusOpenLabel:{type:String,default:"Open"},statusOpeningLabel:{type:String,default:"Opening"},statusLimitedPatrolLabel:{type:String,default:"Limited Patrol"},statusOnHoldLabel:{type:String,default:"On Hold"},veryDifficultLabel:{type:String,default:"Very Difficult"},weatherForecastLabel:{type:String,default:"Weather Forecast"},greenLabel:{type:String,default:"Green"},blueLabel:{type:String,default:"Blue"},redLabel:{type:String,default:"Red"},blackLabel:{type:String,default:"Black"},orangeLabel:{type:String,default:"Orange"},greyLabel:{type:String,default:"Grey"}},data(){return{tokens:LoadingSpinner.designTokens,componentId:0,statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},lifts:[],runs:[],lastUpdate:"",report:"",currentWeather:"",weatherForecast:"",roadStatus:"",news:"",runLevels:[{colour:"green",colourToken:"",id:"easy",name:this.easyLabel,runs:[]},{colour:"blue",colourToken:"",id:"intermediate",name:this.intermediateLabel,runs:[]},{colour:"red",colourToken:"",id:"difficult",name:this.difficultLabel,runs:[]},{colour:"black",colourToken:"",id:"very-difficult",name:this.veryDifficultLabel,runs:[]},{colour:"orange",colourToken:"",id:"itineraries",name:this.itinerariesLabel,runs:[]},{colour:"grey",colourToken:"",id:"other",name:this.otherLabel,runs:[]}],jsDisabled:!0,isLoading:!0,displayError:!1,isCairngorms:!1}},computed:{filteredRunLevels(){return this.setColourToken().filter(n=>n.runs.length>0)}},mounted(){this.skiStatusUrl&&this.retrieveSkiStatus(),this.id=this._uid,this.jsDisabled=!1},methods:{retrieveSkiStatus(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);LoadingSpinner.axios.get(this.skiStatusUrl).then(n=>{const t=this.cleanData(n.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.processFullReport(t.report),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(a=>a.runs).reduce((a,r)=>a.concat(r)).filter((a,r,o)=>r===o.findIndex(s=>s.name===a.name));n.runs=t}if(n.runs)for(let t=0;t<n.runs.length;t++)n.runs[t].difficulty===null&&(n.runs[t].difficulty="orange");return n},processFullReport(e){this.report=e.runs,this.currentWeather=e.current_weather_conditions,this.weatherForecast=e.weather_forecast,this.roadStatus=e.access_roads,this.news=e.news_from_the_slopes},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},a=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${a}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let n=0;n<e.length;n++){switch(e[n].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}for(let t=0;t<this.runLevels.length;t++)this.runLevels[t].colour===e[n].difficulty&&this.runLevels[t].runs.push(e[n])}this.runs=e},getColourLabel(e){return this[`${e}Label`]},setColourToken(){return this.runLevels.map(({...e})=>({...e,colourToken:this.tokens[`vs-color-icon-ski-${e.id}`]}))}}},_hoisted_1$h={class:"vs-ski-scotland-status","data-test":"vs-ski-scotland-status"},_hoisted_2$d={"data-test":"vs-ski__status-label"},_hoisted_3$9={"data-test":"vs-ski__runs-label"},_hoisted_4$7={"data-test":"vs-ski__lifts-label"},_hoisted_5$6={"data-test":"vs-ski__open-label"},_hoisted_6$6={"data-test":"vs-ski__open-label"},_hoisted_7$5={"data-test":"vs-ski__opening-label"},_hoisted_8$3={"data-test":"vs-ski__closed-label"},_hoisted_9$2={"data-test":"vs-ski__open-label"},_hoisted_10$2={"data-test":"vs-ski__last-updated-label"},_hoisted_11$1=["innerHTML"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["data-test"],_hoisted_17={class:"visually-hidden"};function _sfc_render$d(e,n,t,a,r,o){const s=vue.resolveComponent("VsLoadingSpinner"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("VsWarning"),d=vue.resolveComponent("VsHeading"),f=vue.resolveComponent("VsTableHeaderCell"),v=vue.resolveComponent("VsTableHead"),p=vue.resolveComponent("VsIcon"),h=vue.resolveComponent("VsTableDataCell"),g=vue.resolveComponent("VsTableRow"),m=vue.resolveComponent("VsTableBody"),_=vue.resolveComponent("VsTableFooter"),b=vue.resolveComponent("VsTable"),S=vue.resolveComponent("VsLink"),k=vue.resolveComponent("VsAccordionItem"),V=vue.resolveComponent("VsAccordion");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$h,[!r.jsDisabled&&r.isLoading?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(s),vue.renderSlot(e.$slots,"data-loading")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),!r.jsDisabled&&r.displayError?(vue.openBlock(),vue.createBlock(u,{key:1},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[r.jsDisabled?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"6","data-test":"vs-ski__js-disabled"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})]),_:3})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(i,{key:1,cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-xs","data-test":"vs-ski__runs-lifts-status-label",class:"d-none d-md-block"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runsLiftsStatusLabel),1)]),_:1}),vue.createVNode(b,{"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$d,vue.toDisplayString(t.statusLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$9,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$7,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_5$6,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.open)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.open)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.limitedPatrol||r.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(g,{key:0},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_6$6,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_7$5,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.opening)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.opening)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$3,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.closed)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.closed)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.onHold||r.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(g,{key:1},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$2,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.onHold)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_10$2,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"]),vue.createVNode(S,{href:`#vs-ski-scotland-status__detailed-status-${e.id}`,type:"default",class:"vs-ski-scotland-status__detailed-status-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailedStatusLabel),1)]),_:1},8,["href"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{cols:"12",md:"5","offset-md":"1",class:"vs-ski-scotland-status__centre-info"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-information")]),_:3})]),_:3}),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(l,{key:0},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9",class:"vs-ski-scotland-status__full-report"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__snow-conditions-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.snowConditionsLabel),1)]),_:1}),vue.createElementVNode("div",{innerHTML:r.report},null,8,_hoisted_11$1),r.currentWeather.length?(vue.openBlock(),vue.createBlock(d,{key:0,level:"4","heading-style":"heading-xs","data-test":"vs-ski__current-weather-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.currentWeatherLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.currentWeather.length?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:r.currentWeather},null,8,_hoisted_12)):vue.createCommentVNode("",!0),r.weatherForecast.length?(vue.openBlock(),vue.createBlock(d,{key:2,level:"4","heading-style":"heading-xs","data-test":"vs-ski__weather-forecast-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.weatherForecastLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.weatherForecast.length?(vue.openBlock(),vue.createElementBlock("div",{key:3,innerHTML:r.weatherForecast},null,8,_hoisted_13)):vue.createCommentVNode("",!0),r.roadStatus.length?(vue.openBlock(),vue.createBlock(d,{key:4,level:"4","heading-style":"heading-xs","data-test":"vs-ski__roads-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.roadsLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.roadStatus.length?(vue.openBlock(),vue.createElementBlock("div",{key:5,innerHTML:r.roadStatus},null,8,_hoisted_14)):vue.createCommentVNode("",!0),r.news.length?(vue.openBlock(),vue.createBlock(d,{key:6,level:"4","heading-style":"heading-xs","data-test":"vs-ski__news-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.newsLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.news.length?(vue.openBlock(),vue.createElementBlock("div",{key:7,innerHTML:r.news},null,8,_hoisted_15)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(l,{key:1},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__lift-status-label",id:`vs-ski-scotland-status__detailed-status-${e.id}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftStatusLabel),1)]),_:1},8,["id"]),vue.createVNode(b,{"table-caption":t.liftStatusLabel,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftLabel),1)]),_:1})]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.lifts,L=>(vue.openBlock(),vue.createBlock(g,{key:L.name},{default:vue.withCtx(()=>[L.status==="0"||L.status===0?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="1"||L.status===1?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="2"||L.status===2?(vue.openBlock(),vue.createBlock(h,{key:2},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="3"||L.status===3?(vue.openBlock(),vue.createBlock(h,{key:3},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="4"||L.status===4?(vue.openBlock(),vue.createBlock(h,{key:4},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError&&r.runs.length?(vue.openBlock(),vue.createBlock(l,{key:2},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__run-status-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runStatusLabel),1)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.filteredRunLevels,L=>(vue.openBlock(),vue.createElementBlock("div",{key:L.name},[vue.createVNode(V,null,{default:vue.withCtx(()=>[vue.createVNode(k,{variant:"subtle","control-id":`accordion_item_${L.name}`,"colour-badge":L.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${L.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(o.getColourLabel(L.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(L.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(b,{"table-caption":`${L.colour} - ${L.name}`,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runLabel),1)]),_:1})]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(L.runs,$=>(vue.openBlock(),vue.createBlock(g,{key:$.name,"data-test":`vs-ski__${L.name}-row`},{default:vue.withCtx(()=>[$.status==="0"||$.status===0?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="1"||$.status===1?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="2"||$.status===2?(vue.openBlock(),vue.createBlock(h,{key:2},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="3"||$.status===3?(vue.openBlock(),vue.createBlock(h,{key:3},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="4"||$.status===4?(vue.openBlock(),vue.createBlock(h,{key:4},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString($.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["table-caption"])]),_:2},1032,["control-id","colour-badge"])]),_:2},1024)]))),128))]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:3})])}const SkiScotlandStatus=LoadingSpinner._export_sfc(_sfc_main$m,[["render",_sfc_render$d]]),_sfc_main$l={name:"VsSkipTo",status:"prototype",release:"0.0.1",components:{VsLink},props:{skipToText:{type:String,required:!0},hasSearchLink:{type:Boolean,default:!0}},methods:{mainMenuFocus(){const e=document.getElementsByClassName("vs-mega-nav__menu__mobile")[0],n=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(n)){let t=n.getElementsByClassName("btn")[0];e.offsetParent!==null?(e.querySelectorAll(".btn.dropdown-toggle")[0].click(),t=document.getElementsByClassName("vs-mega-nav-accordion-item--level-1")[0].querySelectorAll(".vs-button.vs-accordion-toggle")[0],setTimeout(()=>{t.focus()},200)):t.focus()}},footerFocus(){const e=document.getElementsByClassName("vs-footer")[0];if(!this.isUndefined(e)){const n=e.getElementsByClassName("vs-footer-accordion-item")[0],t=n.getElementsByClassName("vs-link")[0],a=n.getElementsByClassName("vs-accordion-toggle")[0];a.offsetParent!==null&&!this.isUndefined(a)&&a.click(),!this.isUndefined(e)&&!this.isUndefined(t)&&(e.scrollIntoView(!0),setTimeout(()=>{t.focus()},200))}},isUndefined(e){return typeof e>"u"}}},_hoisted_1$g=["aria-label"],_hoisted_2$c={class:"vs-skip-to__label",id:"skip-to-label"};function _sfc_render$c(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-skip-to d-flex","data-test":"vs-skip-to","aria-label":t.skipToText},[vue.createElementVNode("p",_hoisted_2$c,vue.toDisplayString(t.skipToText)+": ",1),vue.createVNode(s,{href:"#main-nav","data-test":"vs-skip-to-main-menu",onClick:n[0]||(n[0]=i=>o.mainMenuFocus()),id:"main-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-menu-text")]),_:3}),t.hasSearchLink?(vue.openBlock(),vue.createBlock(s,{key:0,href:"#site-search-btn","data-test":"vs-skip-to-search",class:"vs-skip-to__search"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"search-text")]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(s,{href:"#main-heading","data-test":"vs-skip-to-main-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-content-text")]),_:3}),vue.createVNode(s,{href:"#site-footer",onClick:n[1]||(n[1]=i=>o.footerFocus()),"data-test":"vs-skip-to-footer"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"footer-text")]),_:3})],8,_hoisted_1$g)}const SkipTo=LoadingSpinner._export_sfc(_sfc_main$l,[["render",_sfc_render$c]]),_sfc_main$k={name:"VsSocialCreditLink",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:LoadingSpinner.VsIcon},props:{credit:{type:String,required:!0},socialPostUrl:{type:String,required:!0},source:{type:String,required:!0,validator:e=>e.match(/(instagram)/)}}},_hoisted_1$f={class:"social-credit","data-test":"vs-social-credit-link"};function _sfc_render$b(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[t.source?(vue.openBlock(),vue.createBlock(s,{key:0,icon:`fa-brands fa-${t.source}`,variant:"inverse",size:"xs",class:"me-025","data-test":"vs-social-credit-link__icon"},null,8,["icon"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"social-credit__link","data-test":"vs-social-credit-link__link",href:t.socialPostUrl,variant:"on-dark",type:"external"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.credit),1)]),_:1},8,["href"])])}const SocialCreditLink=LoadingSpinner._export_sfc(_sfc_main$k,[["render",_sfc_render$b]]),_sfc_main$j={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsHeading:LoadingSpinner.VsHeading,VsModuleWrapper,BPopover:LoadingSpinner.Ka,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol},provide(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data(){return{copyLink:!1,renderPopover:!1}},mounted(){this.renderPopover=!0},methods:{onClose(e){this.$refs.popover.hide(e)},onShown(){this.focusFirst()},onHidden(){this.focusRef(this.$refs.shareButton)},onHide(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink(){this.copyLink=!0},focusRef(e){this.$nextTick(()=>{this.$nextTick(()=>{(e.$el||e).focus()})})},focusFirst(){this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()})})},tabFromClose(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}};function _sfc_render$a(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("BPopover"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("VsModuleWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-social-share",t.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[t.noJs?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-social-share__share-btn",variant:"subtle",icon:"fa-regular fa-share-nodes",id:`vs-social-share-popover--${t.id}`,ref:"shareButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.shareBtnText),1)]),_:1},8,["id"])),!t.noJs&&r.renderPopover?(vue.openBlock(),vue.createBlock(u,{key:1,"custom-class":"vs-social-share__popover",target:`vs-social-share-popover--${t.id}`,click:!0,container:"body",placement:"left-end",offset:"-100",onShown:o.onShown,onHidden:o.onHidden,onHide:o.onHide,ref:"popover"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3",tabindex:"0","heading-style":"heading-m",ref:"shareHeader",class:"vs-social-share__header",onKeydown:n[0]||(n[0]=vue.withKeys(v=>o.tabBackFromHidden(v),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1},512),vue.createVNode(l,{ref:"popoverShareRow"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{onCopyLink:o.onCopyLink})]),_:3},512),vue.createVNode(s,{"icon-only":"",class:"vs-social-share__close-btn",icon:"vs-icon-control-dismiss",variant:"subtle",ref:"closeButton",onClick:o.onClose,onKeydown:n[1]||(n[1]=vue.withKeys(v=>o.tabFromClose(v),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeAltText),1)]),_:1},8,["onClick"])]),_:3},8,["target","onShown","onHidden","onHide"])):vue.createCommentVNode("",!0),t.noJs?(vue.openBlock(),vue.createBlock(f,{key:2,class:"vs-social-share--module-list"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2","heading-style":"heading-l",class:"mb-300 mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"justify-content-center"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0)],2)}const SocialShare=LoadingSpinner._export_sfc(_sfc_main$j,[["render",_sfc_render$a]]),socialMediaData={facebook:{color:"#1877f2",icon:"fa-brands fa-facebook",getUrl:(e,n)=>`https://www.facebook.com/sharer/sharer.php?u=${e}&t=${n}`},"x-twitter":{color:"#0F1419",icon:"fa-brands fa-x-twitter",getUrl:(e,n)=>`https://twitter.com/intent/tweet?text=${n}%20@VisitScotland&url=${e}`},pinterest:{color:"#E60023",icon:"fa-brands fa-pinterest",getUrl:e=>`https://www.pinterest.com/pin/create/button/?url=${e}`},whatsapp:{color:"#455a64",icon:"fa-brands fa-whatsapp",getUrl:(e,n)=>`https://wa.me/?text=${n}%20-%20${e}`},email:{color:"#000000",icon:"fa-regular fa-envelope",getUrl:(e,n)=>`mailto:?body=${n}%20-%20${e}&subject=${n}`},link:{color:"#000000",icon:"fa-regular fa-link",getUrl:()=>"#"}},_sfc_main$i={name:"VsSocialShareItem",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsLink,VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],inject:{referringPageUrl:{default:""},pageTitle:{default:""},noJs:{default:""}},props:{name:{type:String,required:!0,validator:e=>e.match(/(facebook|twitter|pinterest|link|email|whatsapp)/)},linkText:{type:String,required:!0},linkCopiedText:{type:String,default:""}},emits:["copyLinkClicked"],data(){return{show:!1}},computed:{iconColour(){var e;return((e=socialMediaData[this.name])==null?void 0:e.color)||"#200F2E"},iconName(){var e;return((e=socialMediaData[this.name])==null?void 0:e.icon)||"fa-solid fa-link"},shareUrl(){const e=socialMediaData[this.name];return(e==null?void 0:e.getUrl(this.referringPageUrl,this.encodedPageTitle))||"#"},encodedPageTitle(){return encodeURI(this.pageTitle)}},methods:{copyToClipboard(e){if(this.name==="link"){if(this.$emit("copyLinkClicked"),!navigator.clipboard)return;navigator.clipboard.writeText&&navigator.clipboard.writeText(this.referringPageUrl),this.show=!0,setTimeout(()=>{this.show=!1},2e3)}this.trackShareClick(e)},trackShareClick(e){this.createDataLayerObject("socialShareDataEvent",e,this.href)}}},_hoisted_1$e={class:"vs-social-share-item__text"};function _sfc_render$9(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{class:"vs-social-share-item","data-test":"vs-social-share-item",cols:4,md:o.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-social-share-item__link",href:o.shareUrl,onClick:n[0]||(n[0]=u=>o.copyToClipboard(u)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(s,{icon:o.iconName,"custom-colour":o.iconColour,size:"xl","small-size":"lg"},null,8,["icon","custom-colour"]),vue.createElementVNode("span",_hoisted_1$e,vue.toDisplayString(r.show?t.linkCopiedText:t.linkText),1)]),_:1},8,["href","id"])]),_:1},8,["md"])}const SocialShareItem=LoadingSpinner._export_sfc(_sfc_main$i,[["render",_sfc_render$9]]),_sfc_main$h={name:"VsSpotlightSection",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsButton:LoadingSpinner.VsButton},props:{heading:{type:String,required:!0},description:{type:String,default:""},ctaLink:{type:String,required:!0},ctaText:{type:String,required:!0},imageSrc:{type:String,default:""},compact:{type:Boolean,default:!1}},computed:{spotlightSectionClasses(){return{"vs-spotlight-section":!0,"vs-spotlight-section--compact":this.compact,"vs-spotlight-section--standard":!this.compact,"vs-spotlight-section--no-image":!this.imageSrc}}}},_hoisted_1$d={class:"vs-spotlight-section__overlay"},_hoisted_2$b={class:"row w-100 m-0"},_hoisted_3$8={class:"col-12 col-sm-7 col-md-8 col-lg-7 col-xl-6 align-self-end p-0"},_hoisted_4$6={key:0,class:"col-12 col-sm-5 col-md-4 col-lg-5 col-xl-6 align-self-sm-end text-sm-end p-0"};function _sfc_render$8(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(o.spotlightSectionClasses),style:vue.normalizeStyle(t.imageSrc?{backgroundImage:`url(${t.imageSrc})`}:{}),"data-test":"vs-spotlight-section"},[vue.createElementVNode("div",_hoisted_1$d,[vue.createElementVNode("div",_hoisted_2$b,[vue.createElementVNode("div",_hoisted_3$8,[vue.createVNode(s,{class:"vs-spotlight-section__heading",level:"2","no-margins":"","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1}),t.description?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-spotlight-section__description","no-margins":""},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.description),1)]),_:1})):vue.createCommentVNode("",!0),t.compact?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(l,{key:1,class:"vs-spotlight-section__cta-button",href:t.ctaLink,size:"sm",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"]))]),t.compact?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$6,[vue.createVNode(l,{class:"vs-spotlight-section__cta-button",href:t.ctaLink,size:"sm",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])])):vue.createCommentVNode("",!0)])])],6)}const SpotlightSection=LoadingSpinner._export_sfc(_sfc_main$h,[["render",_sfc_render$8]]),_hoisted_1$c={class:"vs-styled-list__list"},_hoisted_2$a={class:"vs-styled-list__source"},_sfc_main$g={__name:"StyledList",props:{source:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${n.variant}`]),"data-test":"vs-styled-list"},[vue.createVNode(vue.unref(LoadingSpinner.VsContainer),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsRow),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsCol),{md:n.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$c,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),t.$slots["list-source"]&&t.$slots["list-source"]()?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$a,[vue.renderSlot(t.$slots,"list-source")])]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2))}},_hoisted_1$b={class:"vs-styled-list__item","data-test":"vs-styled-list__item"},_sfc_main$f={__name:"StyledListItem",props:{heading:{type:String,required:!0},headingLevel:{type:Number,default:3,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},imageSrc:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)},anchorLink:{type:String,default:""}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$b,[vue.createVNode(vue.unref(LoadingSpinner.VsRow),null,{default:vue.withCtx(()=>[n.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(LoadingSpinner.VsImg,{src:n.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(LoadingSpinner.VsCol),{md:n.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[n.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsImg,{key:0,src:n.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsHeading,{level:n.headingLevel,"heading-style":"heading-xxs",id:e.anchorLink?e.anchorLink:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.heading),1)]),_:1},8,["level","id"]),vue.createVNode(LoadingSpinner.VsBody,null,{default:vue.withCtx(()=>[vue.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["md"])]),_:3})]))}},_sfc_main$e={name:"VsSummaryBoxList",status:"prototype",release:"0.0.1"},_hoisted_1$a={class:"vs-summary-box","data-test":"vs-summary-box-list"},_hoisted_2$9={class:"vs-summary-box__list list-unstyled d-flex flex-wrap p-050 p-sm-075"};function _sfc_render$7(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("ul",_hoisted_2$9,[vue.renderSlot(e.$slots,"default")])])}const SummaryBoxList=LoadingSpinner._export_sfc(_sfc_main$e,[["render",_sfc_render$7]]),_sfc_main$d={name:"VsSummaryBoxListItem",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{text:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},iconLabel:{type:String,default:""}}},_hoisted_1$9={class:"vs-summary-box-item position-relative","data-test":"vs-summary-box-list-item"},_hoisted_2$8={key:0,class:"text-center vs-summary-box-item__label d-block position-absolute w-100","data-test":"vs-summary-box-list-item-label"},_hoisted_3$7={class:"vs-summary-box-item__label-inner"},_hoisted_4$5={key:1,class:"vs-summary-box-item__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-list-item-display"},_hoisted_5$5={key:2,class:"vs-summary-box-item__icon d-flex align-items-center position-absolute justify-content-center w-100","data-test":"vs-summary-box-list-item-icon-with-label"},_hoisted_6$5={class:"icon-wrapper text-end"},_hoisted_7$4={class:"text-wrapper d-block w-auto pt-100"};function _sfc_render$6(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$9,[t.label?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.createElementVNode("span",_hoisted_3$7,vue.toDisplayString(t.label),1)])):vue.createCommentVNode("",!0),t.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createElementVNode("span",null,vue.toDisplayString(t.text),1)])):vue.createCommentVNode("",!0),t.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$5,[vue.createElementVNode("div",_hoisted_6$5,[vue.createVNode(s,{icon:t.icon,size:"xl"},null,8,["icon"])]),vue.createElementVNode("div",_hoisted_7$4,[vue.createElementVNode("span",null,vue.toDisplayString(t.iconLabel),1)])])):vue.createCommentVNode("",!0)])}const SummaryBoxListItem=LoadingSpinner._export_sfc(_sfc_main$d,[["render",_sfc_render$6],["__scopeId","data-v-eab4f595"]]),_sfc_main$c={name:"VsSummaryBoxDistanceListItem",status:"prototype",release:"0.0.1",props:{miles:{type:String,default:""},kilometres:{type:String,default:""},distanceLabel:{type:String,default:"Distance"},milesLabel:{type:String,default:"miles"},kilometresLabel:{type:String,default:"km"},showMiles:{type:Boolean,default:!0}}},_hoisted_1$8={class:"vs-summary-box-distance position-relative","data-test":"vs-summary-box-distance-list-item"},_hoisted_2$7={key:0,class:"text-center vs-summary-box-distance__label d-block position-absolute w-100","data-test":"vs-summary-box-distance-list-item-label"},_hoisted_3$6={class:"vs-summary-box-distance__label-inner"},_hoisted_4$4={class:"vs-summary-box-distance__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-distance-display"},_hoisted_5$4={class:"vs-summary-box-distance__display-entry"},_hoisted_6$4={class:"vs-summary-box-distance__display-value"},_hoisted_7$3={class:"vs-summary-box-distance__display-label"},_hoisted_8$2={class:"vs-summary-box-distance__display-entry"},_hoisted_9$1={class:"vs-summary-box-distance__display-value"},_hoisted_10$1={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$8,[t.distanceLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[vue.createElementVNode("span",_hoisted_3$6,vue.toDisplayString(t.distanceLabel),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",_hoisted_5$4,[vue.createElementVNode("span",_hoisted_6$4,vue.toDisplayString(t.miles),1),vue.createElementVNode("span",_hoisted_7$3,vue.toDisplayString(t.milesLabel),1)]),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),vue.createElementVNode("div",_hoisted_8$2,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_10$1,vue.toDisplayString(t.kilometresLabel),1)])])])}const SummaryBoxDistanceListItem=LoadingSpinner._export_sfc(_sfc_main$c,[["render",_sfc_render$5],["__scopeId","data-v-f36a8377"]]),_sfc_main$b={name:"VsTabs",status:"prototype",release:"0.0.1",components:{BTabs:LoadingSpinner.vc},provide(){return{noContainer:vue.computed(()=>this.noContainer)}},props:{noContainer:{type:Boolean,default:!1}}};function _sfc_render$4(e,n,t,a,r,o){const s=vue.resolveComponent("BTabs");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(t.noContainer?"vs-tabs--no-container":"vs-tabs"),"data-test":"vs-tabs"},[vue.createVNode(s,{"no-container":t.noContainer,align:t.noContainer?"center":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["no-container","align"])],2)}const Tabs=LoadingSpinner._export_sfc(_sfc_main$b,[["render",_sfc_render$4]]),_sfc_main$a={name:"VsTabItem",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,BTab:LoadingSpinner.dc},mixins:[LoadingSpinner.dataLayerMixin],inject:["noContainer"],props:{title:{type:String,required:!0}},methods:{trackClick(e){this.createDataLayerObject("tabClickEvent",e,null)}}};function _sfc_render$3(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("BTab");return vue.openBlock(),vue.createBlock(i,{class:"vs-tab__item","data-test":"vs-tab__item","title-link-class":o.noContainer?"vs-tab-link--no-container vs-heading":"vs-tab-link vs-heading",title:t.title,onClick:o.trackClick},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"3","heading-style":"heading-xxs",class:"vs-tab__item__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.renderSlot(e.$slots,"default")]),_:3},8,["title-link-class","title","onClick"])}const TabItem=LoadingSpinner._export_sfc(_sfc_main$a,[["render",_sfc_render$3]]),_sfc_main$9={name:"VsTag",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,required:!0}}};function _sfc_render$2(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(s,{class:"vs-tag me-050 mb-100","data-test":"vs-tag",href:t.href},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])}const Tag=LoadingSpinner._export_sfc(_sfc_main$9,[["render",_sfc_render$2]]),_sfc_main$8={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[LoadingSpinner.dataLayerMixin],props:{payload:{type:Object,default:()=>{}}},mounted(){this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",()=>{this.dataLayerStore.setTestRun(!0),this.dataLayerStore.setPageUrl(window.location.href)}),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload(e){e!==void 0&&Object.keys(e).forEach(n=>{const t=n.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[n]})})}}},_hoisted_1$7={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$7)}const TagManagerWrapper=LoadingSpinner._export_sfc(_sfc_main$8,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
|
|
329
|
+
${c.message}`,c}}};return loaders.loaders=s,loaders}var getPropertyByPath={},hasRequiredGetPropertyByPath;function requireGetPropertyByPath(){if(hasRequiredGetPropertyByPath)return getPropertyByPath;hasRequiredGetPropertyByPath=1,Object.defineProperty(getPropertyByPath,"__esModule",{value:!0}),getPropertyByPath.getPropertyByPath=e;function e(n,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:(typeof t=="string"?t.split("."):t).reduce((r,o)=>r===void 0?r:r[o],n)}return getPropertyByPath}var hasRequiredExplorerBase;function requireExplorerBase(){if(hasRequiredExplorerBase)return ExplorerBase;hasRequiredExplorerBase=1,Object.defineProperty(ExplorerBase,"__esModule",{value:!0}),ExplorerBase.getExtensionDescription=s,ExplorerBase.ExplorerBase=void 0;var e=a(requirePath()),n=requireLoaders(),t=requireGetPropertyByPath();function a(i){return i&&i.__esModule?i:{default:i}}let r=class{constructor(l){l.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=l,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const l=this.config;l.searchPlaces.forEach(u=>{const c=e.default.extname(u)||"noExt",d=l.loaders[c];if(!d)throw new Error(`No loader specified for ${s(u)}, so searchPlaces item "${u}" is invalid`);if(typeof d!="function")throw new Error(`loader for ${s(u)} is not a function (type provided: "${typeof d}"), so searchPlaces item "${u}" is invalid`)})}shouldSearchStopWithResult(l){return!(l===null||l.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(l,u){if(this.shouldSearchStopWithResult(u))return null;const c=o(l);return c===l||l===this.config.stopDir?null:c}loadPackageProp(l,u){const c=n.loaders.loadJson(l,u);return(0,t.getPropertyByPath)(c,this.config.packageProp)||null}getLoaderEntryForFile(l){if(e.default.basename(l)==="package.json")return this.loadPackageProp.bind(this);const u=e.default.extname(l)||"noExt",c=this.config.loaders[u];if(!c)throw new Error(`No loader specified for ${s(l)}`);return c}loadedContentToCosmiconfigResult(l,u){return u===null?null:u===void 0?{filepath:l,config:void 0,isEmpty:!0}:{config:u,filepath:l}}validateFilePath(l){if(!l)throw new Error("load must pass a non-empty string")}};ExplorerBase.ExplorerBase=r;function o(i){return e.default.dirname(i)}function s(i){const l=e.default.extname(i);return l?`extension "${l}"`:"files without extensions"}return ExplorerBase}var readFile={},hasRequiredReadFile;function requireReadFile(){if(hasRequiredReadFile)return readFile;hasRequiredReadFile=1,Object.defineProperty(readFile,"__esModule",{value:!0}),readFile.readFile=a,readFile.readFileSync=r;var e=n(LoadingSpinner.require$$0);function n(o){return o&&o.__esModule?o:{default:o}}async function t(o,s){return new Promise((i,l)=>{e.default.readFile(o,s,(u,c)=>{if(u){l(u);return}i(c)})})}async function a(o,s={}){const i=s.throwNotFound===!0;try{return await t(o,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}function r(o,s={}){const i=s.throwNotFound===!0;try{return e.default.readFileSync(o,"utf8")}catch(l){if(i===!1&&l.code==="ENOENT")return null;throw l}}return readFile}var cacheWrapper={},hasRequiredCacheWrapper;function requireCacheWrapper(){if(hasRequiredCacheWrapper)return cacheWrapper;hasRequiredCacheWrapper=1,Object.defineProperty(cacheWrapper,"__esModule",{value:!0}),cacheWrapper.cacheWrapper=e,cacheWrapper.cacheWrapperSync=n;async function e(t,a,r){const o=t.get(a);if(o!==void 0)return o;const s=await r();return t.set(a,s),s}function n(t,a,r){const o=t.get(a);if(o!==void 0)return o;const s=r();return t.set(a,s),s}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),n=LoadingSpinner.require$$0;async function t(r,o,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return(await e(n[r])(s))[o]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function a(r,o,s){if(typeof s!="string")throw new TypeError(`Expected a string, got ${typeof s}`);try{return n[r](s)[o]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}return pathType.isFile=t.bind(null,"stat","isFile"),pathType.isDirectory=t.bind(null,"stat","isDirectory"),pathType.isSymlink=t.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=a.bind(null,"statSync","isFile"),pathType.isDirectorySync=a.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=a.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=a,getDirectory.getDirectorySync=r;var e=t(requirePath()),n=requirePathType();function t(o){return o&&o.__esModule?o:{default:o}}async function a(o){return await(0,n.isDirectory)(o)===!0?o:e.default.dirname(o)}function r(o){return(0,n.isDirectorySync)(o)===!0?o:e.default.dirname(o)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=o(requirePath()),n=requireExplorerBase(),t=requireReadFile(),a=requireCacheWrapper(),r=requireGetDirectory();function o(l){return l&&l.__esModule?l:{default:l}}function s(l){var u;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(u=l[Symbol.asyncIterator],u!=null)||Symbol.iterator&&(u=l[Symbol.iterator],u!=null)))return u.call(l);throw new TypeError("Object is not async iterable")}let i=class extends n.ExplorerBase{constructor(u){super(u)}async search(u=process.cwd()){const c=await(0,r.getDirectory)(u);return await this.searchFromDirectory(c)}async searchFromDirectory(u){const c=e.default.resolve(process.cwd(),u),d=async()=>{const f=await this.searchDirectory(c),v=this.nextDirectoryToSearch(c,f);return v?this.searchFromDirectory(v):await this.config.transform(f)};return this.searchCache?(0,a.cacheWrapper)(this.searchCache,c,d):d()}async searchDirectory(u){var c=!0,d=!1,f;try{for(var v=s(this.config.searchPlaces),p,h;p=await v.next(),c=p.done,h=await p.value,!c;c=!0){const m=h,_=await this.loadSearchPlace(u,m);if(this.shouldSearchStopWithResult(_)===!0)return _}}catch(m){d=!0,f=m}finally{try{!c&&v.return!=null&&await v.return()}finally{if(d)throw f}}return null}async loadSearchPlace(u,c){const d=e.default.join(u,c),f=await(0,t.readFile)(d);return await this.createCosmiconfigResult(d,f)}async loadFileContent(u,c){return c===null?null:c.trim()===""?void 0:await this.getLoaderEntryForFile(u)(u,c)}async createCosmiconfigResult(u,c){const d=await this.loadFileContent(u,c);return this.loadedContentToCosmiconfigResult(u,d)}async load(u){this.validateFilePath(u);const c=e.default.resolve(process.cwd(),u),d=async()=>{const f=await(0,t.readFile)(c,{throwNotFound:!0}),v=await this.createCosmiconfigResult(c,f);return await this.config.transform(v)};return this.loadCache?(0,a.cacheWrapper)(this.loadCache,c,d):d()}};return Explorer.Explorer=i,Explorer}var ExplorerSync={},hasRequiredExplorerSync;function requireExplorerSync(){if(hasRequiredExplorerSync)return ExplorerSync;hasRequiredExplorerSync=1,Object.defineProperty(ExplorerSync,"__esModule",{value:!0}),ExplorerSync.ExplorerSync=void 0;var e=o(requirePath()),n=requireExplorerBase(),t=requireReadFile(),a=requireCacheWrapper(),r=requireGetDirectory();function o(i){return i&&i.__esModule?i:{default:i}}let s=class extends n.ExplorerBase{constructor(l){super(l)}searchSync(l=process.cwd()){const u=(0,r.getDirectorySync)(l);return this.searchFromDirectorySync(u)}searchFromDirectorySync(l){const u=e.default.resolve(process.cwd(),l),c=()=>{const d=this.searchDirectorySync(u),f=this.nextDirectoryToSearch(u,d);return f?this.searchFromDirectorySync(f):this.config.transform(d)};return this.searchCache?(0,a.cacheWrapperSync)(this.searchCache,u,c):c()}searchDirectorySync(l){for(const u of this.config.searchPlaces){const c=this.loadSearchPlaceSync(l,u);if(this.shouldSearchStopWithResult(c)===!0)return c}return null}loadSearchPlaceSync(l,u){const c=e.default.join(l,u),d=(0,t.readFileSync)(c);return this.createCosmiconfigResultSync(c,d)}loadFileContentSync(l,u){return u===null?null:u.trim()===""?void 0:this.getLoaderEntryForFile(l)(l,u)}createCosmiconfigResultSync(l,u){const c=this.loadFileContentSync(l,u);return this.loadedContentToCosmiconfigResult(l,c)}loadSync(l){this.validateFilePath(l);const u=e.default.resolve(process.cwd(),l),c=()=>{const d=(0,t.readFileSync)(u,{throwNotFound:!0}),f=this.createCosmiconfigResultSync(u,d);return this.config.transform(f)};return this.loadCache?(0,a.cacheWrapperSync)(this.loadCache,u,c):c()}};return ExplorerSync.ExplorerSync=s,ExplorerSync}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist$2;hasRequiredDist=1,Object.defineProperty(dist$2,"__esModule",{value:!0}),dist$2.cosmiconfig=o,dist$2.cosmiconfigSync=s,dist$2.defaultLoaders=void 0;var e=r(LoadingSpinner.require$$0),n=requireExplorer(),t=requireExplorerSync(),a=requireLoaders();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,d={}){const f=l(c,d),v=new n.Explorer(f);return{search:v.search.bind(v),load:v.load.bind(v),clearLoadCache:v.clearLoadCache.bind(v),clearSearchCache:v.clearSearchCache.bind(v),clearCaches:v.clearCaches.bind(v)}}function s(c,d={}){const f=l(c,d),v=new t.ExplorerSync(f);return{search:v.searchSync.bind(v),load:v.loadSync.bind(v),clearLoadCache:v.clearLoadCache.bind(v),clearSearchCache:v.clearSearchCache.bind(v),clearCaches:v.clearCaches.bind(v)}}const i=Object.freeze({".js":a.loaders.loadJs,".json":a.loaders.loadJson,".yaml":a.loaders.loadYaml,".yml":a.loaders.loadYaml,noExt:a.loaders.loadYaml});dist$2.defaultLoaders=i;function l(c,d){const f={packageProp:c,searchPlaces:["package.json",`.${c}rc`,`.${c}rc.json`,`.${c}rc.yaml`,`.${c}rc.yml`,`.${c}rc.js`,`${c}.config.js`],ignoreEmptySearchPlaces:!0,stopDir:e.default.homedir(),cache:!0,transform:u,loaders:i};return{...f,...d,loaders:{...f.loaders,...d.loaders}}}const u=function(d){return d};return dist$2}(function(e){var n=interopRequireDefaultExports,t=n(require_extends()),a=n(requireObjectWithoutPropertiesLoose());const r=requirePath(),o=requireResolve(),s=/[./]macro(\.js)?$/,i=k=>s.test(k);class l extends Error{constructor(V){super(V),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(V).stack)}}let u=null;function c(){return u=u||requireDist().cosmiconfigSync("babel-plugin-macros",{searchPlaces:["package.json",".babel-plugin-macrosrc",".babel-plugin-macrosrc.json",".babel-plugin-macrosrc.yaml",".babel-plugin-macrosrc.yml",".babel-plugin-macrosrc.js","babel-plugin-macros.config.js"],packageProp:"babelMacros"})}function d(k,V={}){if(V.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return L.isBabelMacro=!0,L.options=V,L;function L($){const{source:A,isBabelMacrosCall:F}=$;if(!F)throw new l(`The macro you imported from "${A}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);return k($)}}function f(k,V){return o.sync(k,{basedir:V,paths:[r.resolve(__dirname,"../../")]})}function v(k,V={}){let{require:L=commonjsRequire,resolvePath:$=f,isMacrosName:A=i}=V,F=(0,a.default)(V,["require","resolvePath","isMacrosName"]);function P(q){const M=L(q);return M&&M.__esModule&&M.default?M.default:M}return{name:"macros",visitor:{Program(q,M){q.traverse({ImportDeclaration(j){if(!b(j,{node:{source:{value:E=>A(E)}}}))return;const J=j.node.specifiers.map(E=>({localName:E.local.name,importedName:E.type==="ImportDefaultSpecifier"?"default":E.imported.name})),W=j.node.source.value,C=p({path:j,imports:J,source:W,state:M,babel:k,interopRequire:P,resolvePath:$,options:F});(!C||!C.keepImports)&&j.remove()},VariableDeclaration(j){const Q=J=>b(J,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:W=>W.length===1&&A(W[0].value)}}});j.get("declarations").filter(Q).forEach(J=>{const W=J.node.id.name?[{localName:J.node.id.name,importedName:"default"}]:J.node.id.properties.map(z=>({localName:z.value.name,importedName:z.key.name})),C=J.get("init"),E=C.node.arguments[0].value,T=p({path:C,imports:W,source:E,state:M,babel:k,interopRequire:P,resolvePath:$,options:F});(!T||!T.keepImports)&&J.remove()})}})}}}}function p({path:k,imports:V,source:L,state:$,babel:A,interopRequire:F,resolvePath:P,options:q}){const{file:{opts:{filename:M=""}}}=$;let j=!1;const Q=V.reduce((z,{importedName:Y,localName:w})=>{const B=k.scope.getBinding(w);return z[Y]=B.referencePaths,j=j||!!z[Y].length,z},{}),J=L.indexOf(".")===0,W=P(L,r.dirname(g(M))),C=F(W);if(!C.isBabelMacro)throw new Error(`The macro imported from "${L}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);const E=_(C,M,L,q);let T;try{$.file.scope.path.traverse({Identifier(){}}),T=C({references:Q,source:L,state:$,babel:A,config:E,isBabelMacrosCall:!0})}catch(z){throw z.name==="MacroError"||(z.message=`${L}: ${z.message}`,J||(z.message=`${z.message} Learn more: https://www.npmjs.com/package/${L.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),z}return T}function h(k,V){try{const L=c().search(V);if(L)return{options:L.config[k],path:L.filepath}}catch(L){return{error:L}}return{}}function m(k,V){if(V.hasOwnProperty(k))if(V[k]&&typeof V[k]!="object")console.error(`The macro plugin options' ${k} property was not an object or null.`);else return{options:V[k]};return{}}function _(k,V,L,$){const{configName:A}=k.options;if(A){const F=h(A,V),P=m(A,$);if(P.options===void 0&&F.options===void 0&&F.error!==void 0)throw console.error(`There was an error trying to load the config "${A}" for the macro imported from "${L}. Please see the error thrown for more information.`),F.error;if(F.options!==void 0&&P.options!==void 0&&typeof F.options!="object")throw new Error(`${F.path} specified a ${A} config of type ${typeof P.options}, but the the macros plugin's options.${A} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},P.options,{},F.options)}}function g(k){return r.isAbsolute(k)?k:r.join(process.cwd(),k)}function b(k,V){return k&&V&&Object.keys(V).every(L=>{const $=V[L],A=k[L];return typeof $=="function"?$(A):S($)?$===A:b(A,$)})}function S(k){return k==null||/^[sbn]/.test(typeof k)}e.exports=v,Object.assign(e.exports,{createMacro:d,MacroError:l})})(dist$3);var distExports$1=dist$3.exports,define_process_env_default$3={};const{createMacro}=distExports$1;function requireContext({references:e,state:n,babel:{types:t}}){define_process_env_default$3.NODE_ENV==="test"?e.default.forEach(a=>a.parentPath.replaceWith(t.callExpression(t.identifier("require('require-context.macro/context')"),[t.identifier("__dirname"),...a.parent.arguments]))):e.default.forEach(a=>a.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...a.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=LoadingSpinner.getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__$1={};let files=null;if(typeof jest<"u")files=requireContext$1("../assets/svg",!0,/^\.\/.*\.svg$/);else if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.tagName.toUpperCase()==="SCRIPT"&&_documentCurrentScript.src||new URL("vs-component-library.js",document.baseURI).href}&&__vite_import_meta_env__$1){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(n=>n.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(n=>n.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(n=>n.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(n=>n.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(n=>n.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(n=>n.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(n=>n.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(n=>n.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(n=>n.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(n=>n.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(n=>n.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(n=>n.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(n=>n.default)});const e={};for(const[n,t]of Object.entries(files)){const a=n.replace("../assets/svg",".");e[a]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1r={name:"VsSvg",release:"0.1.1",status:"prototype",props:{path:{type:String,required:!0},fill:{type:String,default:""},height:{type:[Number,String],default:""},width:{type:[Number,String],default:""}},data(){return{svg:null}},computed:{nativeAttrs(){if(this.svg){const n=LoadingSpinner.lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=LoadingSpinner.lodashExports.fromPairs(LoadingSpinner.lodashExports.map(n,LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.split,LoadingSpinner.lodashExports.partial.placeholder,"=",2)));return LoadingSpinner.lodashExports.mapValues(t,LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.replace,LoadingSpinner.lodashExports.partial.placeholder,/"/g,""))}return null},attributes(){if(this.svg){const e={};let n={};return this.fill&&(LoadingSpinner.lodashExports.has(this.nativeAttrs,"style")?(n=this.nativeStyleAttrMap,n.fill=this.fill):n={fill:this.fill},e.style=LoadingSpinner.lodashExports.join(LoadingSpinner.lodashExports.map(LoadingSpinner.lodashExports.toPairs(n),LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.join,LoadingSpinner.lodashExports.partial.placeholder,":")),";")),this.height&&(e.height=this.height),this.width&&(e.width=this.width),LoadingSpinner.lodashExports.extend({},this.nativeAttrs,e)}return null},nativeStyleAttrMap(){if(this.svg){const e=LoadingSpinner.lodashExports.map(LoadingSpinner.lodashExports.split(this.nativeAttrs.style,";"),LoadingSpinner.lodashExports.ary(LoadingSpinner.lodashExports.partial(LoadingSpinner.lodashExports.split,LoadingSpinner.lodashExports.partial.placeholder,":"),1));return LoadingSpinner.lodashExports.fromPairs(e)}return null},children(){return this.svg?LoadingSpinner.lodashExports.nth(this.svg.match(/(<svg[^>]+.*?>)([\s\S]*)(<\/svg>)/),2):null}},mounted(){typeof output=="function"?this.svg=output(`./${this.path}.svg`):output[`./${this.path}.svg`]().then(e=>{this.svg=e})}},_hoisted_1$16=["innerHTML"];function _sfc_render$1a(e,n,t,a,r,o){return r.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},o.attributes,{innerHTML:o.children,focusable:"false"}),null,16,_hoisted_1$16)):vue.createCommentVNode("",!0)}const VsSvg=LoadingSpinner._export_sfc(_sfc_main$1r,[["render",_sfc_render$1a]]),_sfc_main$1q={name:"VsSvgLink",status:"prototype",release:"0.0.1",components:{VsSvg,VsLink},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0},svgFill:{type:String,default:""},svgPath:{type:String,required:!0},svgHeight:{type:[Number,String],default:""},svgWidth:{type:[Number,String],default:""},dataLayerValue:{type:String,default:null},linkVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)}}},_hoisted_1$15={class:"visually-hidden","data-test":"link-alt-text"};function _sfc_render$19(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvg"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(i,{class:"vs-svg-link","data-test":"vs-svg-link",href:t.href,"data-layer-value":t.dataLayerValue,variant:t.linkVariant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$15,vue.toDisplayString(t.linkAltText),1),vue.createVNode(s,{"data-test":"vs-svg-link__svg",focusable:"false",path:t.svgPath,fill:t.svgFill,width:t.svgWidth,height:t.svgHeight},null,8,["path","fill","width","height"])]),_:1},8,["href","data-layer-value","variant"])}const VsSvgLink=LoadingSpinner._export_sfc(_sfc_main$1q,[["render",_sfc_render$19]]),_sfc_main$1p={name:"VsFooterCopyright",status:"prototype",release:"0.0.1",components:{VsSvgLink,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0}},data(){return{currentYear:""}},computed:{getCurrentYear(){return new Date().getFullYear()}}},_hoisted_1$14={class:"vs-footer-copyright","data-unique-id":"vs-footer-sub_footer","data-test":"vs-footer-copyright"},_hoisted_2$S={class:"vs-footer-copyright__text"};function _sfc_render$18(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$14,[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"text-center"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-footer-copyright__logo mb-100","data-test":"vs-footer-copyright-logo","link-alt-text":t.linkAltText,href:t.href,"svg-fill":"#ffffff","svg-path":"brandscotland-logo","link-variant":"on-dark"},null,8,["link-alt-text","href"]),vue.createElementVNode("p",_hoisted_2$S,[vue.createTextVNode(" © "+vue.toDisplayString(o.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=LoadingSpinner._export_sfc(_sfc_main$1p,[["render",_sfc_render$18]]),_sfc_main$1o={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{dropdownLabel:{type:String,default:"Our Websites"}},data(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}},_hoisted_1$13={class:"vs-global-menu"};function _sfc_render$17(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$13,[vue.createVNode(u,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(l,{fluid:"lg",class:"px-025 px-sm-075"},{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",class:"vs-global-menu__wrapper"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"third-menu-item")]),_:3})]),_:3})]),_:3})]),_:3})])}const GlobalMenu=LoadingSpinner._export_sfc(_sfc_main$1o,[["render",_sfc_render$17]]),_sfc_main$1n={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown,VsIcon:LoadingSpinner.VsIcon},mixins:[cookieMixin],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}},_hoisted_1$12={class:"vs-global-menu__languages__text"},_hoisted_2$R={class:"vs-global-menu__languages__selected"},_hoisted_3$I={class:"vs-global-menu__languages__label",role:"menuitem"};function _sfc_render$16(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(i,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":vue.withCtx(()=>[vue.createVNode(s,{class:"vs-global-menu__languages__icon",icon:"fa-regular fa-globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createElementVNode("span",_hoisted_1$12,vue.toDisplayString(t.languageLabel),1),vue.createElementVNode("span",_hoisted_2$R,vue.toDisplayString(e.selectedLanguage),1)]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_3$I,[vue.createVNode(s,{icon:"fa-regular fa-globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createTextVNode(" "+vue.toDisplayString(t.languageLabel),1)]),vue.renderSlot(e.$slots,"default")]),_:3})}const GlobalMenuLanguage=LoadingSpinner._export_sfc(_sfc_main$1n,[["render",_sfc_render$16]]),_sfc_main$1m={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem},mixins:[cookieMixin],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage(){const e=this.cookieExists("vs_locale"),n=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!n)}}};function _sfc_render$15(e,n,t,a,r,o){const s=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(s,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:n[0]||(n[0]=i=>o.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=LoadingSpinner._export_sfc(_sfc_main$1m,[["render",_sfc_render$15]]),_sfc_main$1l={name:"VsHeroSectionImage",status:"prototype",release:"0.0.1",components:{VsCaption,VsImg:LoadingSpinner.VsImg},props:{src:{type:String,required:!0},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},split:{type:Boolean,default:!1}},computed:{isSplit(){return this.split?"vs-hero-section-image--split":""}}};function _sfc_render$14(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsCaption");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-hero-section-image",o.isSplit]),"data-test":"vs-hero-section-image"},[vue.createVNode(s,{class:"vs-hero-section-image__img",src:t.src,alt:t.imgAlt},null,8,["src","alt"]),t.imgCaption||t.imgCredit?(vue.openBlock(),vue.createBlock(i,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section-image__caption"},vue.createSlots({credit:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCredit),1)]),_:2},[t.split?void 0:{name:"caption",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCaption),1)]),key:"0"}]),1024)):vue.createCommentVNode("",!0)],2)}const VsHeroSectionImage=LoadingSpinner._export_sfc(_sfc_main$1l,[["render",_sfc_render$14]]),_sfc_main$1k={name:"VsHeroSectionVideoControl",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},inject:{videoPlayingStatus:{default:"Playing"},videoPausedStatus:{default:"Paused"}},emits:["videoToggled"],data(){return{isPlaying:!0}},methods:{toggleVideo(){this.$emit("videoToggled",this.isPlaying),this.isPlaying?this.isPlaying=!1:this.isPlaying=!0}}},_hoisted_1$11={"data-test":"vs-hero-section-video-control"},_hoisted_2$Q={"aria-live":"polite",class:"visually-hidden",role:"status"},_hoisted_3$H={key:0},_hoisted_4$x={key:1};function _sfc_render$13(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$11,[vue.createVNode(s,{"icon-only":"",class:"vs-hero-section-video-control",icon:r.isPlaying?"vs-icon-control-pause":"vs-icon-control-play",onClick:o.toggleVideo},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["icon","onClick"]),vue.createElementVNode("div",_hoisted_2$Q,[r.isPlaying&&o.videoPlayingStatus?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$H,vue.toDisplayString(o.videoPlayingStatus),1)):vue.createCommentVNode("",!0),!r.isPlaying&&o.videoPausedStatus?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$x,vue.toDisplayString(o.videoPausedStatus),1)):vue.createCommentVNode("",!0)])])}const VsHeroSectionVideoControl=LoadingSpinner._export_sfc(_sfc_main$1k,[["render",_sfc_render$13]]),_sfc_main$1j={name:"VsHeroSection",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsHeroSectionImage,VsHeroSectionVideoControl},provide(){return{videoPlayingStatus:this.videoPlayingStatus,videoPausedStatus:this.videoPausedStatus}},props:{heading:{type:String,default:"",required:!0},lede:{type:String,default:"",required:!0},imgSrc:{type:String,default:""},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},inset:{type:Boolean,default:!1},split:{type:Boolean,default:!1},videoSrc:{type:String,default:""},videoBtnText:{type:String,default:""},videoPlayingStatus:{type:String,default:""},videoPausedStatus:{type:String,default:""}},computed:{imageClasses(){return{"vs-hero-section__image--inset":this.inset}},textContainerClasses(){return[{"vs-hero-section__text-container--video":this.videoSrc},"vs-hero-section__text-container"]}},methods:{onToggleVideo(e){e?this.$refs.heroVideo.pause():this.$refs.heroVideo.play()}}},_hoisted_1$10={class:"vs-hero-section__grid"},_hoisted_2$P={key:1,class:"vs-hero-section__video-wrapper"},_hoisted_3$G=["poster"],_hoisted_4$w=["src"],_hoisted_5$n={key:2,class:"vs-hero-section__divider"},_hoisted_6$i={class:"vs-hero-section__text"},_hoisted_7$f=["innerHTML"],_hoisted_8$6={class:"mb-0"};function _sfc_render$12(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeroSectionImage"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsHeroSectionVideoControl");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-hero-section",{"vs-hero-section--split":t.split}]),"data-test":"vs-hero-section"},[vue.createElementVNode("div",_hoisted_1$10,[t.imgSrc&&!t.videoSrc?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-hero-section__image",o.imageClasses])},[vue.createVNode(s,{"img-alt":t.imgAlt,src:t.imgSrc,"img-caption":t.imgCaption,"img-credit":t.imgCredit,split:t.split},null,8,["img-alt","src","img-caption","img-credit","split"])],2)):t.videoSrc?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$P,[vue.createElementVNode("video",{loop:"",muted:"",autoplay:"",playsinline:"",preload:"auto",poster:t.imgSrc,class:"vs-hero-section__video",ref:"heroVideo","aria-hidden":"true",fetchpriority:"high"},[vue.createElementVNode("source",{src:t.videoSrc,type:"video/mp4"},null,8,_hoisted_4$w)],8,_hoisted_3$G),n[0]||(n[0]=vue.createElementVNode("div",{class:"vs-hero-section__video-overlay"},null,-1))])):(vue.openBlock(),vue.createElementBlock("hr",_hoisted_5$n)),vue.createElementVNode("div",{class:vue.normalizeClass(o.textContainerClasses)},[vue.createElementVNode("div",_hoisted_6$i,[vue.createVNode(i,{class:"vs-hero-section__heading","data-test":"vs-hero-section__heading",level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.createElementVNode("span",{innerHTML:t.heading},null,8,_hoisted_7$f)]),_:1}),t.lede?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-hero-section__lede","data-test":"vs-hero-section__lede",variant:"lead"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_8$6,vue.toDisplayString(t.lede),1)]),_:1})):vue.createCommentVNode("",!0)]),t.videoSrc?(vue.openBlock(),vue.createBlock(u,{key:0,"video-btn-text":"Toggle video",onVideoToggled:o.onToggleVideo,"video-playing-status":t.videoPlayingStatus,"video-paused-status":t.videoPausedStatus},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onVideoToggled","video-playing-status","video-paused-status"])):vue.createCommentVNode("",!0)],2)])],2)}const HeroSection=LoadingSpinner._export_sfc(_sfc_main$1j,[["render",_sfc_render$12]]),_sfc_main$1i={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[LoadingSpinner.dataLayerMixin],props:{statusCode:{type:String,required:!0}},mounted(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}},_hoisted_1$$={class:"d-none"};function _sfc_render$11(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$$)}const HtmlError=LoadingSpinner._export_sfc(_sfc_main$1i,[["render",_sfc_render$11]]),_sfc_main$1h={name:"VsTourismInfo",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol}},_hoisted_1$_={class:"vs-tourism-info","data-test":"vs-tourism-info"},_hoisted_2$O={key:0,class:"vs-tourism-info__links","data-test":"vs-tourism-info__standalone-links"},_hoisted_3$F={class:"vs-tourism-info__quote-block"},_hoisted_4$v={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$10(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$_,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-tourism-info__intro-content"},{default:vue.withCtx(()=>[e.$slots["tourism-info-links"]&&e.$slots["tourism-info-links"]()&&!(e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]())?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$O,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(s,{cols:"12",md:"10","offset-md":"1",class:vue.normalizeClass({"vs-tourism-info__image-offset":e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"tourism-info-image-with-caption")]),_:3},8,["class"]),e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"10","offset-md":"1",lg:"7","offset-lg":"5",class:"vs-tourism-info__quote-block-container"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$F,[vue.renderSlot(e.$slots,"tourism-info-quote"),e.$slots["tourism-info-links"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$v,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=LoadingSpinner._export_sfc(_sfc_main$1h,[["render",_sfc_render$10]]),_sfc_main$1g={name:"VsIconList",status:"prototype",release:"0.0.1",props:{title:{type:String,default:""}}},_hoisted_1$Z={class:"vs-icon-list","data-test":"vs-icon-list"},_hoisted_2$N={key:0,class:"vs-icon-list__title"},_hoisted_3$E={class:"vs-icon-list__list mb-0"};function _sfc_render$$(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Z,[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$N,vue.toDisplayString(t.title),1)):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_3$E,[vue.renderSlot(e.$slots,"default")])])}const IconList=LoadingSpinner._export_sfc(_sfc_main$1g,[["render",_sfc_render$$]]),_sfc_main$1f={name:"VsIconListItem",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{label:{type:String,required:!0},icon:{type:String,required:!0}}},_hoisted_1$Y={class:"vs-icon-list__item","data-test":"vs-icon-list__item"};function _sfc_render$_(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$Y,[vue.createVNode(s,{icon:t.icon,size:"md",class:"d-block mx-auto"},null,8,["icon"]),vue.createTextVNode(" "+vue.toDisplayString(t.label),1)])}const IconListItem=LoadingSpinner._export_sfc(_sfc_main$1f,[["render",_sfc_render$_]]),_sfc_main$1e={name:"VsToggleButton",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsIcon:LoadingSpinner.VsIcon},props:{toggleId:{type:String,default:""}},emits:["toggleAction"],data(){return{show:!1}},methods:{toggleAction(){this.show=!this.show,this.$emit("toggleAction",this.show)}}};function _sfc_render$Z(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{class:"vs-toggle-btn","data-test":"vs-toggle-btn",variant:"subtle","aria-controls":t.toggleId,"aria-expanded":r.show?"true":"false",onClick:o.toggleAction},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),r.show?(vue.openBlock(),vue.createBlock(s,{key:0,class:"fa-icon-colours fa-icon-colours--white",icon:"fa-duotone fa-solid fa-circle-xmark"})):vue.renderSlot(e.$slots,"toggle-icon",{key:1},()=>[vue.createVNode(s,{class:"fa-icon-colours",icon:"fa-duotone fa-solid fa-circle-info"})])]),_:3},8,["aria-controls","aria-expanded","onClick"])}const VsToggleButton=LoadingSpinner._export_sfc(_sfc_main$1e,[["render",_sfc_render$Z]]),cookieValues$2=cookieValues$5.youtube,_sfc_main$1d={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsToggleButton,VsWarning:LoadingSpinner.VsWarning},mixins:[cookieCheckerMixin],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:e=>e.match(/(wide|narrow)/)}},emits:["toggleAction"],setup(){return{videoStore:useVideoStore()}},data(){return{showErrorMessage:!1,requiredCookies:cookieValues$2}},computed:{videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},showCookieMessage(){return!!(!this.cookiesAllowed&&this.noCookiesMessage)}},methods:{emitToggle(){this.$emit("toggleAction")},emitShowModal(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$X={key:0,class:"vs-video-caption__buttons-container"},_hoisted_2$M={class:"container"},_hoisted_3$D={key:1,class:"vs-video-caption__details"},_hoisted_4$u={class:"vs-video-caption__title"},_hoisted_5$m={class:"vs-video-caption__duration"},_hoisted_6$h={key:1,class:"vs-video-caption vs-video-caption--warning"},_hoisted_7$e={key:2,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$Y(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption",class:vue.normalizeClass(["vs-video-caption__wrapper",`vs-video-caption__wrapper--${t.variant}`])},[o.videoLoaded&&e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption-variants",class:vue.normalizeClass(["vs-video-caption",`vs-video-caption--${t.variant}`]),key:"video-caption"},[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$X,[vue.createElementVNode("div",_hoisted_2$M,[vue.createVNode(s,{class:"vs-video-caption__button",icon:"vs-icon-control-play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(i,{key:0,onToggleAction:o.emitToggle},{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1)])),_:1,__:[0]},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$D,[vue.createElementVNode("p",_hoisted_4$u,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_5$m,vue.toDisplayString(o.videoDetails.videoDurationMsg),1)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),!(o.videoLoaded&&e.cookiesAllowed)&&o.showCookieMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$h,[vue.createVNode(l,{size:"small",type:"cookie"},{"button-text":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.cookieLinkText),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noCookiesMessage)+" ",1)]),_:1})])):vue.createCommentVNode("",!0),o.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$e,[vue.createVNode(l,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=LoadingSpinner._export_sfc(_sfc_main$1d,[["render",_sfc_render$Y]]),cookieValues$1=cookieValues$5.youtube,_sfc_main$1c={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsToggleButton,VsVideoCaption},mixins:[cookieCheckerMixin],provide(){return{noJsMessage:this.noJsMessage,errorMessage:this.errorMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data(){return{showCaption:!1,uniqueCaptionId:"",requiredCookies:cookieValues$1}},computed:{isSvg(){return this.imageSrc.endsWith(".svg")},imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--show-caption":!this.cookiesAllowed&&this.cookiesLoaded,"vs-image-with-caption--video":this.isVideo,"vs-image-with-caption--svg":this.isSvg}},captionWrapperClasses(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted(){this.uniqueCaptionId=this._uid},methods:{toggleCaption(){this.showCaption=!this.showCaption}}},_hoisted_1$W={class:"visually-hidden"},_hoisted_2$L={class:"vs-image-with-caption__captions"},_hoisted_3$C=["id"];function _sfc_render$X(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsToggleButton"),l=vue.resolveComponent("VsVideoCaption");return vue.openBlock(),vue.createElementBlock("figure",{class:vue.normalizeClass(["vs-image-with-caption",o.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__image-wrapper",t.mobileOverlap?"vs-image-with-caption--overlapped":""])},[vue.renderSlot(e.$slots,"default",{},()=>[t.imageSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imageSrc,alt:t.altText,"use-lazy-loading":t.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):vue.createCommentVNode("",!0)]),t.showToggle?(vue.openBlock(),vue.createBlock(i,{key:0,"img-src":t.imageSrc,"toggle-id":r.uniqueCaptionId,onToggleAction:o.toggleCaption},{"toggle-icon":vue.withCtx(()=>[vue.renderSlot(e.$slots,"toggle-icon")]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$W,vue.toDisplayString(t.toggleButtonText),1)]),_:3},8,["img-src","toggle-id","onToggleAction"])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("figcaption",_hoisted_2$L,[t.isVideo?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-image-with-caption__video-caption-wrapper",t.isHeroImage?"container-lg":""])},[vue.createVNode(l,{"video-btn-text":t.playButtonText,"with-toggle-btn":t.showToggle,onToggleAction:o.toggleCaption,"video-id":t.videoId,"cookie-link-text":t.cookieLinkText,"error-message":t.errorMessage,variant:t.smallPlayButton?"narrow":"wide"},{"video-title":vue.withCtx(()=>[vue.renderSlot(e.$slots,"video-title")]),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","cookie-link-text","error-message","variant"])],2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__caption-wrapper",o.captionWrapperClasses]),id:r.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$C)])],2)}const ImageWithCaption=LoadingSpinner._export_sfc(_sfc_main$1c,[["render",_sfc_render$X]]),_sfc_main$1b={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:LoadingSpinner.Tu,VsButton:LoadingSpinner.VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(e){let n;switch(e){case"firstName":n="given-name";break;case"lastName":n="family-name";break;case"Email":n="email";break;case"PostalCode":n="postal-code";break;default:n=this.autoComplete?"on":"off";break}return n},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$V={"data-test":"vs-input"},_hoisted_2$K=["id"],_hoisted_3$B=["id"],_hoisted_4$t={class:"visually-hidden"};function _sfc_render$W(e,n,t,a,r,o){const s=vue.resolveComponent("BFormInput"),i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$K)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$t,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$B)):vue.createCommentVNode("",!0),vue.createVNode(s,{ref:"input",type:t.type,class:vue.normalizeClass(["vs-input",[r.inputVal?"show-cancel":"",o.elementClass]]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>r.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.validationRules.min!==void 0?t.validationRules.min:null,max:t.validationRules.max!==void 0?t.validationRules.max:null,disabled:t.disabled,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),o.showClearButton?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:n[1]||(n[1]=vue.withModifiers(l=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=LoadingSpinner._export_sfc(_sfc_main$1b,[["render",_sfc_render$W]]),_sfc_main$1a={name:"VsItinerary",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsAccordion,VsButton:LoadingSpinner.VsButton},props:{listViewText:{type:String,default:"List view"},mapViewText:{type:String,default:"Map view"}},data(){return{showMap:!1,isDesktop:!1,withinItineraryMain:!1}},mounted(){const e=document.querySelector(".vds-example");window.addEventListener("resize",this.resizeWidth),e===null?window.addEventListener("scroll",this.onScroll):e.addEventListener("scroll",this.onScroll),this.resizeWidth()},unmounted(){window.removeEventListener("resize",this.resizeWidth)},methods:{resizeWidth(){this.isDesktop=window.innerWidth>=1200,this.showMap=window.innerWidth>=1200},onScroll(){const e=this.$el.getBoundingClientRect(),n=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(n&&!t)},toggleShowMap(){this.showMap=!this.showMap}}},_hoisted_1$U={class:"vs-itinerary","data-test":"vs-itinerary"},_hoisted_2$J={class:"fixed-bottom"},_hoisted_3$A={class:"d-flex justify-content-center pb-050"},_hoisted_4$s={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$V(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsAccordion"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$U,[vue.withDirectives(vue.createElementVNode("div",_hoisted_2$J,[vue.createElementVNode("div",_hoisted_3$A,[vue.createVNode(s,{class:"vs-itinerary__map-toggle-button",onClick:n[0]||(n[0]=d=>o.toggleShowMap()),icon:r.showMap?"fa-regular fa-list":"fa-regular fa-map","data-test":"vs-itinerary-btn"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.showMap?t.listViewText:t.mapViewText),1)]),_:1},8,["icon"])])],512),[[vue.vShow,!r.isDesktop&&r.withinItineraryMain]]),r.isDesktop||r.showMap?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$s,[vue.renderSlot(e.$slots,"map")])):vue.createCommentVNode("",!0),vue.createVNode(c,{class:"vs-itinerary__outer-container"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"p-0 vs-itinerary__accordion-container"},{default:vue.withCtx(()=>[vue.createVNode(i,{"break-point":"lg"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"list")]),_:3})]),_:3})]),_:3})]),_:3})])}const Itinerary=LoadingSpinner._export_sfc(_sfc_main$1a,[["render",_sfc_render$V]]),_sfc_main$19={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsIcon:LoadingSpinner.VsIcon,VsAccordionItem},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data(){return{show:this.defaultShow}}},_hoisted_1$T={class:"vs-itinerary-day"},_hoisted_2$I={class:"vs-itinerary-day__header"},_hoisted_3$z={class:"vs-itinerary-day__title"},_hoisted_4$r={class:"vs-itinerary-day__sub-heading"},_hoisted_5$l=["id"],_hoisted_6$g={class:"vs-itinerary-day__intro-content"},_hoisted_7$d={class:"list-unstyled"};function _sfc_render$U(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsAccordionItem"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$T,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{"open-by-default":r.show,"control-id":`itinerary-day-${t.dayNumber}`,variant:"subtle","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$I,[vue.createElementVNode("span",_hoisted_3$z,vue.toDisplayString(t.dayLabel)+" "+vue.toDisplayString(t.dayNumber),1),vue.createElementVNode("span",_hoisted_4$r,vue.toDisplayString(t.dayTitle),1)])]),"icon-open":vue.withCtx(()=>[vue.createVNode(s,{icon:"vs-icon-control-collapse",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),"icon-closed":vue.withCtx(()=>[vue.createVNode(s,{icon:"vs-icon-control-expand",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),default:vue.withCtx(()=>[vue.createElementVNode("div",{id:`dayPanel_${t.dayNumber}`,class:"vs-itinerary-day__panel"},[vue.createElementVNode("div",_hoisted_6$g,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$d,[vue.renderSlot(e.$slots,"stops")])],8,_hoisted_5$l)]),_:3},8,["open-by-default","control-id"])]),_:3})]),_:3})]),_:3})])}const ItineraryDay=LoadingSpinner._export_sfc(_sfc_main$19,[["render",_sfc_render$U]]),_sfc_main$18={name:"VsItineraryStop",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,VsBody:LoadingSpinner.VsBody,VsDetail},props:{stopLabel:{type:String,required:!0},stopNumber:{type:String,required:!0},stopTitle:{type:String,required:!0}}},_hoisted_1$S={class:"vs-itinerary-stop","data-test":"vs-itinerary-stop"},_hoisted_2$H={class:"vs-itinerary-stop__border"},_hoisted_3$y={class:"vs-itinerary-stop__header","data-test":"vs-itinerary-stop-heading"},_hoisted_4$q={class:"vs-itinerary-stop__marker"},_hoisted_5$k={class:"vs-itinerary-stop__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$f={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$c={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$T(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsDetail"),u=vue.resolveComponent("VsBody");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$S,[vue.createElementVNode("div",_hoisted_2$H,[vue.createElementVNode("div",_hoisted_3$y,[vue.createElementVNode("div",_hoisted_4$q,[vue.createVNode(s,{icon:"fa-solid fa-location-pin",variant:"highlight",size:"xl"}),vue.createElementVNode("span",_hoisted_5$k,vue.toDisplayString(t.stopNumber),1)]),vue.createVNode(i,{level:"3","heading-style":"heading-s",class:"vs-itinerary-stop__title mb-025","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopLabel),1)]),_:1}),vue.createVNode(l,{class:"vs-itinerary-stop__detail","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopTitle),1)]),_:1})]),vue.renderSlot(e.$slots,"default"),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-description")]),_:3}),vue.renderSlot(e.$slots,"stop-time-to-explore"),vue.renderSlot(e.$slots,"stop-tips"),vue.createElementVNode("div",_hoisted_6$f,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$c,[vue.renderSlot(e.$slots,"stop-address")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"stop-info")]),vue.renderSlot(e.$slots,"stop-facilities")]),e.$slots["stop-buttons"]?vue.renderSlot(e.$slots,"stop-buttons",{key:0}):vue.createCommentVNode("",!0)])}const ItineraryStop=LoadingSpinner._export_sfc(_sfc_main$18,[["render",_sfc_render$T]]),_sfc_main$17={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsLink},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage(){let e="";if(this.closedLongTerm)e=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":e=this.closedText;break;case"closing soon":e=this.closingSoonText;break;case"open":e=this.openText;break;default:e=""}return e},provisionalMessage(){let e="";if(typeof this.currentDayData[0]<"u"){const n=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${n.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${n.toLowerCase()} ${this.currentDayData[0].day}`,this.currentDayData[0].state!=="closed"&&typeof this.currentDayData[this.dayDataIndex]<"u"&&typeof this.currentDayData[this.dayDataIndex].startTime<"u"&&typeof this.currentDayData[this.dayDataIndex].endTime<"u"&&this.currentDayData[this.dayDataIndex].startTime!==""&&this.currentDayData[this.dayDataIndex].endTime!==""&&this.currentDayData.forEach((t,a)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,a+1<this.currentDayData.length&&(e+=` ${this.andText} `)})}return e}},created(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData(){if(typeof this.openingHours!="object"){const e=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(e)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime(){const e=new Date,n=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=n.substring(0,2),a=n.substring(3,6),r=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(a,10),this.currentTime.day=r},isActiveDate(){if(typeof this.parsedHours.period<"u"){const e=`${this.ukDate.substring(3,5)}/${this.ukDate.substring(0,2)}/${this.ukDate.substring(6,10)}`,n=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),a=new Date(e);a<t&&a>n?this.isCurrentTimeframe=!0:this.isCurrentTimeframe=!1}else this.isCurrentTimeframe=!0},getCurrentHoursInfo(){const e=this.returnDayName(this.currentTime.day);if(typeof this.parsedHours.days<"u"){const n=this.parsedHours.days.filter(t=>t.key===e);typeof n<"u"&&(this.currentDayData=n,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,n,t){if(typeof n[t].startTime<"u"&&typeof n[t].endTime<"u"&&n[t].startTime.length>0&&n[t].endTime.length>0){const a=n[t].startTime,r=n[t].endTime,o=parseInt(a.substring(0,a.indexOf(":")),10),s=parseInt(a.substring(a.indexOf(":")+1,a.length),10),i=parseInt(r.substring(0,r.indexOf(":")),10),l=parseInt(r.substring(r.indexOf(":")+1,r.length),10),u=this.calculateClosingSoon(i,l);n[t].state==="closed"?this.openingMessage="closed":o>e.hours||o===e.hours&&s>e.minutes||i<e.hours||i===e.hours&&l<e.minutes?this.openingMessage="closed":this.withinClosingSoonTime(e,u)?this.openingMessage="closing soon":this.openingMessage="open",this.openingMessage==="closed"&&n.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else n[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let n="";switch(e){case 1:n="monday";break;case 2:n="tuesday";break;case 3:n="wednesday";break;case 4:n="thursday";break;case 5:n="friday";break;case 6:n="saturday";break;case 7:n="sunday";break;default:n=""}return n},calculateClosingSoon(e,n){let t,a;return n<30?(t=e-1,a=60+(n-30)):(t=e,a=n-30),{hours:t,mins:a}},withinClosingSoonTime(e,n){return!(n.hours>e.hours||n.hours===e.hours&&n.mins>e.minutes)}}},_hoisted_1$R={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},_hoisted_2$G={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},_hoisted_3$x={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_4$p={key:1,"data-test":"vs-stop-link"},_hoisted_5$j={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$S(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$R,[vue.createVNode(s,{icon:"vs-icon-feedback-information",class:"vs-address__map-marker me-050"}),vue.createElementVNode("div",null,[r.isCurrentTimeframe?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[o.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$G,[vue.createTextVNode(vue.toDisplayString(o.hoursMessage),1),n[0]||(n[0]=vue.createElementVNode("br",null,null,-1))])):vue.createCommentVNode("",!0),!r.closedLongTerm&&typeof r.currentDayData[0]<"u"&&typeof r.currentDayData[0].state<"u"&&o.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$x,vue.toDisplayString(o.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$p,[vue.createVNode(i,{href:t.openingTimesLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-link-text")]),_:3},8,["href"])])):vue.createCommentVNode("",!0),e.$slots["stop-charge-text"]?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$j,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=LoadingSpinner._export_sfc(_sfc_main$17,[["render",_sfc_render$S]]),_sfc_main$16={name:"VsItineraryTips",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$Q={class:"vs-itinerary-tips position-relative my-175"},_hoisted_2$F={class:"vs-itinerary-tips__text"},_hoisted_3$w={class:"vs-itinerary-tips__svg position-absolute"};function _sfc_render$R(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createElementVNode("div",_hoisted_2$F,[vue.renderSlot(e.$slots,"text")]),vue.createElementVNode("div",_hoisted_3$w,[vue.renderSlot(e.$slots,"svg")])])}const ItineraryTips=LoadingSpinner._export_sfc(_sfc_main$16,[["render",_sfc_render$R]]),_sfc_main$15={name:"VsItineraryBorderOverlapWrapper",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$P={class:"vs-itinerary-border-overlap__wrapper d-flex d-sm-inline-flex flex-column justify-content-start border-left"};function _sfc_render$Q(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$P,[vue.renderSlot(e.$slots,"default")])}const ItineraryBorderOverlapWrapper=LoadingSpinner._export_sfc(_sfc_main$15,[["render",_sfc_render$Q]]),_sfc_main$14={name:"VsLinkList",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading},props:{toc:{type:Boolean,default:!1}},computed:{classes(){return{"link-list":!0,"link-list--toc":this.toc}},dataTest(){return this.toc?"link-list--toc":"link-list"},hasHeadingSlot(){return!!this.$slots.heading}}},_hoisted_1$O=["data-test"],_hoisted_2$E={class:"link-list__list"};function _sfc_render$P(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.classes),"data-test":o.dataTest},[vue.createElementVNode("nav",null,[o.hasHeadingSlot?(vue.openBlock(),vue.createBlock(s,{key:0,level:"2","no-margins":"","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"heading")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_2$E,[vue.renderSlot(e.$slots,"default")])])],10,_hoisted_1$O)}const VsLinkList=LoadingSpinner._export_sfc(_sfc_main$14,[["render",_sfc_render$P]]),_sfc_main$13={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download|video)/)},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},setup(){return{videoStore:useVideoStore()}},computed:{formattedVideoDuration(){if(this.videoDetails){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`}return""},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$N={class:"link-list-item"};function _sfc_render$O(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$N,[vue.createVNode(s,{href:t.href,type:t.type==="video"?"default":t.type,role:t.type==="video"?"button":null,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type==="video"&&o.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(o.formattedVideoDuration),1)],64)):vue.createCommentVNode("",!0)]),_:3},8,["href","type","role","onClick"])])}const LinkListItem=LoadingSpinner._export_sfc(_sfc_main$13,[["render",_sfc_render$O]]),_sfc_main$12={name:"VsListicleItem",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsBody:LoadingSpinner.VsBody,VsDetail},props:{index:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{hasKeyFacilitiesSlot(){return!!this.$slots["facilities-slot"]}}},_hoisted_1$M={class:"vs-listicle-item border","data-test":"vs-listicle-item"},_hoisted_2$D={class:"vs-listicle-item__header","data-test":"vs-listicle-item-heading"},_hoisted_3$v={class:"count__bg"},_hoisted_4$o={class:"count","aria-hidden":"true"};function _sfc_render$N(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsDetail"),l=vue.resolveComponent("VsBody"),u=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$M,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$D,[vue.createElementVNode("div",_hoisted_3$v,[vue.createElementVNode("span",_hoisted_4$o,vue.toDisplayString(t.index),1)]),vue.createVNode(s,{level:"2","heading-style":"heading-s",class:"vs-listicle-item__title mb-025","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.createVNode(i,{class:"vs-listicle-item__detail","no-margins":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subTitle),1)]),_:1})]),vue.renderSlot(e.$slots,"image-slot"),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,{cols:"12",lg:"8",class:"mt-050 mt-sm-300 mb-100 mt-lg-050 pe-lg-300"},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"description-slot")]),_:3})]),_:3}),vue.createVNode(u,{cols:"12",lg:"4",class:vue.normalizeClass(["key-facilities-list mt-lg-400",[o.hasKeyFacilitiesSlot?"has-facilities":""]])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"facilities-slot")]),_:3},8,["class"])]),_:3})])}const ListicleItem=LoadingSpinner._export_sfc(_sfc_main$12,[["render",_sfc_render$N]]),__vite_import_meta_env__={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var define_process_env_default$2={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",EVENTS_API_URL:"https://i-api.visitscotland.com/events/search",CLUDO_API_KEY:"abba43e006424824befb855918e2b9db",CLUDO_CUSTOMER_ID:"623",CLUDO_ENGINE_ID:"14069",GOOGLE_MAPS_API_KEY:"AIzaSyDF_4LHHrXolwxJ0zCuHXSgkZgu2WcOy68"};const getEnvValue=e=>define_process_env_default$2?define_process_env_default$2[e]:__vite_import_meta_env__[e],_sfc_main$11={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:LoadingSpinner.Lu},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1}},emits:["toggleAction","updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions(){return this.countries?this.countryList:this.options}},watch:{inputVal(e){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},beforeMount(){this.countries&&LoadingSpinner.axios.get(this.countryListUrl).then(e=>{this.countryList=e.data.countries})},methods:{autocompleteValue(e){let n;switch(e){case"Country":n="country-name";break;default:n="on";break}return n}},validations(){return this.rules}},_hoisted_1$L={class:"vs-select"},_hoisted_2$C=["id"],_hoisted_3$u=["id"],_hoisted_4$n={class:"visually-hidden"},_hoisted_5$i={class:"vs-select__container mt-050"};function _sfc_render$M(e,n,t,a,r,o){const s=vue.resolveComponent("BFormSelect");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$L,[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$C),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$n,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$u)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$i,[vue.createVNode(s,vue.mergeProps({modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i)},e.$attrs,{options:o.fieldOptions,name:t.fieldName,id:t.fieldName,onChange:e.emitStatus,onBlur:e.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",o.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:o.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),n[1]||(n[1]=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1))])])}const VsSelect=LoadingSpinner._export_sfc(_sfc_main$11,[["render",_sfc_render$M]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_extends.apply(this,arguments)}var defer=function e(){var n=!1,t=[],a=function(){if(!n){n=!0;for(var i=0,l=t.length;i<l;i++)t[i]()}},r=function(i){if(!n){t.push(i);return}i()},o={resolved:function(){return n},resolve:a,promise:{then:r}};return o},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,a,r){this.wait().then(function(){r(window.grecaptcha.render(t,a))})},reset:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(t)}))},execute:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(t)}))},checkRecaptchaLoad:function(){ownProp.call(window,"grecaptcha")&&ownProp.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var recaptcha=createRecaptcha();typeof window<"u"&&(window.vueRecaptchaApiLoaded=recaptcha.notify);var Recaptcha=vue.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function e(n,t){var a=t.slots,r=t.emit,o=vue.ref(null),s=vue.ref(null),i=function(d){r("verify",d)},l=function(){r("expired")},u=function(){r("error")};return vue.onMounted(function(){if(recaptcha.checkRecaptchaLoad(),n.loadRecaptchaScript&&!document.getElementById(n.recaptchaScriptId)){var c=document.createElement("script");c.id=n.recaptchaScriptId,c.src="https://"+n.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+n.language,c.async=!0,c.defer=!0,document.head.appendChild(c)}var d=_extends({},n,{callback:i,"expired-callback":l,"error-callback":u}),f=o.value,v=a.default?f.children[0]:f;recaptcha.render(v,d,function(p){s.value=p,r("render",p)})}),{root:o,widgetId:s,reset:function(){recaptcha.reset(s.value)},execute:function(){recaptcha.execute(s.value)}}},render:function e(){var n=this.$slots.default,t;return typeof n=="function"?t=n():t=n,vue.h("div",{ref:"root"},t)}});const _sfc_main$10={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:Recaptcha},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},emits:["verified"],data(){return{response:null,recaptchaSiteKey:""}},created(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=getEnvValue("RECAPTCHA_TOKEN")},methods:{verified(e){this.$emit("verified",e)},render(){const e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){const n=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),a=document.createElement("label");a.setAttribute("for","g-recaptcha-response"),a.setAttribute("class","visually-hidden"),a.textContent=this.textareaLabel,t||n.insertBefore(a,e[0])}}}},_hoisted_1$K={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$B={key:0,class:"error"};function _sfc_render$L(e,n,t,a,r,o){const s=vue.resolveComponent("VueRecaptcha");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[t.invalid&&!t.reAlertErrors?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$B,vue.toDisplayString(t.errorMsg),1)):vue.createCommentVNode("",!0),r.recaptchaSiteKey?(vue.openBlock(),vue.createBlock(s,{key:1,sitekey:r.recaptchaSiteKey,onVerify:o.verified,onRender:o.render,class:vue.normalizeClass(["vs-recaptcha__embed",t.invalid?"vs-recaptcha__embed--error":""]),language:t.language},null,8,["sitekey","onVerify","onRender","class","language"])):vue.createCommentVNode("",!0)])}const VsRecaptcha=LoadingSpinner._export_sfc(_sfc_main$10,[["render",_sfc_render$L]]),_sfc_main$$={name:"VsTextarea",status:"prototype",release:"0.0.1",components:{BFormTextarea:LoadingSpinner.ld},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},rows:{type:Number||String,default:2}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(){return this.autoComplete?"on":"off"},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$J={"data-test":"vs-textarea"},_hoisted_2$A=["id"],_hoisted_3$t=["id"],_hoisted_4$m={class:"visually-hidden"};function _sfc_render$K(e,n,t,a,r,o){const s=vue.resolveComponent("BFormTextarea");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$A)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,i=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:i,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$m,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[i]||t.genericValidation[i]),1)])),[[vue.vShow,!t.reAlertErrors&&!r.clearErrorsOnFocus]])),128))],8,_hoisted_3$t)):vue.createCommentVNode("",!0),vue.createVNode(s,{ref:"input",class:vue.normalizeClass(["vs-textarea",o.elementClass]),modelValue:r.inputVal,"onUpdate:modelValue":n[0]||(n[0]=i=>r.inputVal=i),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:r.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,disabled:t.disabled,rows:t.rows,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["class","modelValue","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","disabled","rows","onBlur","onChange","onFocus"])])}const VsTextarea=LoadingSpinner._export_sfc(_sfc_main$$,[["render",_sfc_render$K]]),_sfc_main$_={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput,VsSelect,VsCheckbox,BFormGroup:LoadingSpinner.ku,VsRecaptcha,VsButton:LoadingSpinner.VsButton,VsHeading:LoadingSpinner.VsHeading,VsWarning:LoadingSpinner.VsWarning,VsTextarea},mixins:[LoadingSpinner.dataLayerMixin],props:{isMarketo:{type:Boolean,default:!0},submissionType:{type:String,default:"breg"},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:getEnvValue("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData(){LoadingSpinner.axios.get(this.dataUrl).then(e=>{this.formData=e.data,this.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(this.marketoInstance,this.munchkinId,this.formId),e.data.fields.forEach(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.checkConditionalFields()}).catch(()=>{})},getGlobalMessaging(){LoadingSpinner.axios.get(this.messagingUrl).then(e=>{this.messagingData=e.data}).catch(()=>{})},getLanguageObj(){let e;return this.isUndefined(this.formData[this.language])?e={}:e=this.formData[this.language]||void 0,e},getTranslatedLabel(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?a=t[e].label:a=this.formData.fields[n].label,this.showOptionalText(this.formData.fields[n])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(a=`${a} (${this.getMessagingData("optional",this.language)})`),a},getTranslatedLegend(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?a=t[e].descriptor:a=this.formData.fields[n].descriptor,a},getTranslatedInfo(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?a=t[e].info:a=this.formData.fields[n].info,a},getTranslatedValidation(e,n){const t=this.getLanguageObj();let a;return this.language==="en"&&!this.isUndefined(this.formData.fields[n].validationMessages)?a=this.formData.fields[n].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?a=t[e].validationMessages:this.language==="en"&&(a=this.formData.fields[n].validationMessages),a},getTranslatedOptions(e,n){const t=this.getLanguageObj();let a=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?a=t[e].options:a=this.formData.fields[n].options,typeof a>"u"&&(a=[]),a},getTranslatedHint(e,n){const t=this.getLanguageObj();let a="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?a=t[e].hint:this.isUndefined(this.formData.fields[n].hint)?a="":a=this.formData.fields[n].hint,a},getTranslatedContent(e){let n;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?n=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?n=t.content[e]:n=this.getMessagingData(e,this.language),n},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getHiddenFields(){return[...this.$el.querySelectorAll("input[type=hidden]")].map(this.parseBooleanStringsFromInputField).reduce((e,n)=>(e[n.name]=n.value,e),{})},parseBooleanStringsFromInputField(e){let n=e.value;return n==="true"?n=!0:n==="false"&&(n=!1),{name:e.name,value:n}},isUndefined(e){return typeof e>"u"},updateFieldData(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=e.errors!==null,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus(e,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},showOptionalText(e){return!!(this.isUndefined(e.validation)||this.isUndefined(e.validation.required))},needsLabel(e){return!(e.element==="radio"||e.element==="submit"||e.element==="checkbox")},preSubmit(e){e.preventDefault(),this.submitError=!1;function n(a){return a.validation&&a.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(n);t.length===0?this.formIsInvalid=!1:t.forEach(a=>{if(!/\S/.test(this.form[a.name])){let r=!0;a.name in this.conditionalFields&&!this.conditionalFields[a.name]&&(r=!1),this.formIsInvalid=r}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([a,r])=>{r||(this.form[a]="")}),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout(()=>{this.reAlertErrors=!1},100))},marketoSubmit(){this.createDataLayerObject("formsDataEvent");const e=window.MktoForms2.allForms()[0];e.addHiddenFields(this.form),window.grecaptcha&&e.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),e.onSuccess(()=>(this.submitting=!1,this.submitted=!0,!1)),e.onSubmit(()=>{this.submitting=!0}),e.submit()},axiosSubmit(){this.createDataLayerObject("formsDataEvent"),this.submitting=!0;let e="";window.grecaptcha&&(e=window.grecaptcha.getResponse());const n=this.getHiddenFields();LoadingSpinner.axios.post(this.submitUrl,{...this.form,...n,formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":e}).then(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)).catch(()=>(this.submitError=!0,!1))},attachEmail(){this.submissionType&&this.submissionType==="breg"&&(this.formData.fields.forEach(e=>{e.type==="email"&&!this.emailFieldName&&(this.emailFieldName=e.name)}),this.emailFieldName&&typeof exponea<"u"&&exponea.identify({email_id:this.form[this.emailFieldName]},{},()=>{},()=>{},!0))},onRecaptchaVerify(){window.grecaptcha&&typeof window.grecaptcha.getResponse=="function"&&window.grecaptcha.getResponse()!==""?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(a=>a.name===e);let t=!0;Object.keys(n.conditional).forEach(a=>{const r=n.conditional[a];Array.isArray(r)?r.indexOf(this.form[a])===-1&&(t=!1):this.form[a]!==r&&(t=!1),t?this.conditionalFields[e]||(this.conditionalFields[e]=!0,this.$refs[e]&&this.$refs[e][0].manualValidate()):(this.manageErrorStatus(e,[]),this.conditionalFields[e]=!1)})})},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"}}},_hoisted_1$I={class:"vs-form","data-test":"vs-form"},_hoisted_2$z={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_3$s={key:0},_hoisted_4$l={"aria-live":"assertive"},_hoisted_5$h={key:0},_hoisted_6$e=["innerHTML"],_hoisted_7$b={key:2,class:"mt-200"};function _sfc_render$J(e,n,t,a,r,o){const s=vue.resolveComponent("VsInput"),i=vue.resolveComponent("VsSelect"),l=vue.resolveComponent("VsCheckbox"),u=vue.resolveComponent("VsTextarea"),c=vue.resolveComponent("BFormGroup"),d=vue.resolveComponent("VsRecaptcha"),f=vue.resolveComponent("VsButton"),v=vue.resolveComponent("VsWarning"),p=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[n[1]||(n[1]=vue.createElementVNode("form",{class:"d-none"},null,-1)),r.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:n[0]||(n[0]=vue.withModifiers((...h)=>o.preSubmit&&o.preSubmit(...h),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_2$z,vue.toDisplayString(o.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.formData.fields,(h,m)=>(vue.openBlock(),vue.createBlock(c,{key:h.name,label:o.needsLabel(h)?o.getTranslatedLabel(h.name,m):"","label-for":o.needsLabel(h)?h.name:"",class:vue.normalizeClass(o.conditionalElementClass(h.name))},{default:vue.withCtx(()=>[!o.isUndefined(h.descriptor)&&h.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_3$s,vue.toDisplayString(o.getTranslatedLegend(h.name,m)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(o.conditionalElementClass(h.name))},[h.element==="input"?(vue.openBlock(),vue.createBlock(s,{key:0,ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,type:h.type,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,m)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"hint-text":o.getTranslatedHint(h.name,m),placeholder:h.placeholder||"","re-alert-errors":r.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="select"?(vue.openBlock(),vue.createBlock(i,{key:1,options:o.getTranslatedOptions(h.name,m),ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,m)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"country-list-url":t.countryListUrl,countries:h.countries,"hint-text":o.getTranslatedHint(h.name,m),"re-alert-errors":r.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="checkbox"?(vue.openBlock(),vue.createBlock(l,{key:h.name,ref_for:!0,ref:h.name,name:h.name,value:h.value,label:o.getTranslatedLabel(h.name,m),onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,m)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"optional-text":o.getMessagingData("optional",t.language),"hint-text":o.getTranslatedHint(h.name,m),"info-text":o.getTranslatedInfo(h.name,m),"re-alert-errors":r.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):vue.createCommentVNode("",!0),h.element==="textarea"?(vue.openBlock(),vue.createBlock(u,{key:3,ref_for:!0,ref:h.name,onStatusUpdate:o.updateFieldData,"field-name":h.name,"validation-rules":h.validation||{},"validation-messages":o.getTranslatedValidation(h.name,m)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:r.errorFields.indexOf(h.name)>-1,"trigger-validate":r.triggerValidate,"hint-text":o.getTranslatedHint(h.name,m),placeholder:h.placeholder||"","re-alert-errors":r.reAlertErrors,rows:h.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):vue.createCommentVNode("",!0)],2)]),_:2},1032,["label","label-for","class"]))),128))]),vue.renderSlot(e.$slots,"hidden-fields"),vue.createVNode(d,{onVerified:o.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!r.recaptchaVerified&&r.showErrorMessage,language:t.language,"error-msg":o.getMessagingData("recaptchaError",t.language),class:"mt-300","textarea-label":t.recaptchaTextareaLabel,"re-alert-errors":r.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),vue.createVNode(f,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:o.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("submit")),1)]),_:1},8,["onClick"])],32)),vue.createVNode(v,{class:"vs-form__no-js"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"no-js")]),_:3}),vue.createElementVNode("div",_hoisted_4$l,[r.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$h,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),r.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[o.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(p,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:o.getTranslatedContent("successContent")},null,8,_hoisted_6$e)],64)):vue.createCommentVNode("",!0),r.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$b,[vue.renderSlot(e.$slots,"submit-error")])):vue.createCommentVNode("",!0)])])}const Form=LoadingSpinner._export_sfc(_sfc_main$_,[["render",_sfc_render$J]]),_sfc_main$Z={name:"VsMegaNavTopMenu",status:"prototype",release:"0.1.0",components:{VsList},inject:["isStatic"]};function _sfc_render$I(e,n,t,a,r,o){const s=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(s,{unstyled:"",class:"vs-mega-nav-top-menu","data-test":"vs-mega-nav-top-menu",role:"menubar"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})}const VsMegaNavTopMenu=LoadingSpinner._export_sfc(_sfc_main$Z,[["render",_sfc_render$I]]),_sfc_main$Y={name:"VsMegaNavMobileMenu",status:"prototype",release:"0.1.0",mixins:[LoadingSpinner.dataLayerMixin],mounted(){this.emitter&&this.emitter.on("navAccordionClick",e=>{this.dataLayerSubmit(e)})},methods:{dataLayerSubmit(e){const n={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}},_hoisted_1$H={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$H(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$H,[vue.renderSlot(e.$slots,"default")])}const VsMegaNavMobileMenu=LoadingSpinner._export_sfc(_sfc_main$Y,[["render",_sfc_render$H]]),_sfc_main$X={name:"VsSiteSearch",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton},props:{isShowing:{type:Boolean,default:!1}},emits:["toggleAction"],data(){return{showSearchForm:!0}},methods:{toggleAction(){this.showSearchForm=!this.showSearchForm,this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$G={class:"visually-hidden-xxl-down"};function _sfc_render$G(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(s,{"data-test":"vs-site-search",class:vue.normalizeClass(["vs-site-search",t.isShowing?"vs-site-search--active":""]),icon:"vs-icon-control-search",size:"md",animate:!1,onClick:o.toggleAction,id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$G,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class","onClick"])}const VsSiteSearch=LoadingSpinner._export_sfc(_sfc_main$X,[["render",_sfc_render$G]]),_sfc_main$W={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon,VsInput,VsButton:LoadingSpinner.VsButton,VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},emits:["toggleAction"],data(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing(e){e&&this.focusOnInput()}},methods:{focusOnInput(){this.$nextTick(()=>this.$refs.searchInput.$refs.input.focus())},tabFromClose(e){e.shiftKey||this.closeSearchForm()},updateVal(e){this.searchTerm=e.value},onSubmit(e){this.searchTerm===""&&e.preventDefault()},closeSearchForm(){this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$F={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},_hoisted_2$y={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},_hoisted_3$r={class:"d-flex flex-column flex-grow-1 position-relative"},_hoisted_4$k={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$g={class:"visually-hidden"};function _sfc_render$F(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsInput"),l=vue.resolveComponent("VsButton"),u=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return r.showSearchForm?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$F,[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(u,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$y,[vue.createElementVNode("div",_hoisted_3$r,[vue.createElementVNode("label",_hoisted_4$k,[vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(t.labelText),1),vue.createVNode(s,{icon:"vs-icon-control-search",size:"xs"})]),vue.createVNode(i,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:t.labelText,"auto-complete":!1,onUpdated:o.updateVal},null,8,["placeholder","onUpdated"])]),vue.createVNode(l,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",rounded:!1,onClick:o.closeSearchForm},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.submitButtonText),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:o.closeSearchForm,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeButtonText),1)]),_:1},8,["onClick","onKeydown"])])):vue.createCommentVNode("",!0)}const VsSiteSearchForm=LoadingSpinner._export_sfc(_sfc_main$W,[["render",_sfc_render$F]]),clickOutside={mounted(e,n){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||n.value(t)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},_sfc_main$V={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsSvgLink,VsMegaNavTopMenu,VsMegaNavMobileMenu,VsSiteSearch,VsSiteSearchForm,VsButton:LoadingSpinner.VsButton},directives:{clickOutside},mixins:[LoadingSpinner.dataLayerMixin],provide(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},mapButtonText:{type:String,default:void 0},noSearch:{type:Boolean,default:!1},searchLink:{type:String,default:void 0},mapLink:{type:String,default:void 0},isStatic:{type:Boolean,default:!1}},data(){return{isOpen:!1,showSearch:!1,tokens:LoadingSpinner.designTokens}},mounted(){this.addTabClose()},methods:{menuToggle(){this.isOpen=!this.isOpen},toggleSearch(){this.showSearch=!this.showSearch},closeMenu(e){const n=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!n.contains(e.target)&&(this.isOpen=!1)},addTabClose(){document.body.addEventListener("focusin",e=>{this.isOpen&&(e.target.closest("#vs-mega-nav__menu-mobile")||(this.isOpen=!1))})}}},_hoisted_1$E={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},_hoisted_2$x={class:"visually-hidden-xxl-down"},_hoisted_3$q={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function _sfc_render$E(e,n,t,a,r,o){const s=vue.resolveComponent("VsSvgLink"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsMegaNavTopMenu"),u=vue.resolveComponent("VsButton"),c=vue.resolveComponent("VsSiteSearch"),d=vue.resolveComponent("VsMegaNavMobileMenu"),f=vue.resolveComponent("VsRow"),v=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("VsSiteSearchForm"),h=vue.resolveDirective("click-outside");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("nav",_hoisted_1$E,[vue.createVNode(v,{fluid:"lg",class:"h-100"},{default:vue.withCtx(()=>[vue.createVNode(f,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"7",md:"4",lg:"3"},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(s,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":t.logoAltText,href:t.href,"svg-fill":r.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]),_:1}),vue.createVNode(i,{cols:"4",md:"6",lg:t.noSearch?7:5,class:"vs-mega-nav__menu d-none d-lg-block"},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-top-menu-items")]),_:3})]),_:3},8,["lg"]),vue.createVNode(i,{cols:"5",md:"8",lg:"4",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:vue.withCtx(()=>[t.mapButtonText&&t.mapLink?(vue.openBlock(),vue.createBlock(u,{key:0,variant:"subtle",icon:"fa-regular fa-map","icon-only":"",size:"md",rounded:!1,href:t.mapLink,class:"vs-mega-nav__map-button d-flex","data-test":"vs-mega-nav__map-button"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.mapButtonText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),!t.noSearch&&!t.searchLink?(vue.openBlock(),vue.createBlock(c,{key:1,onToggleAction:o.toggleSearch,"is-showing":r.showSearch},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["onToggleAction","is-showing"])):vue.createCommentVNode("",!0),!t.noSearch&&t.searchLink?(vue.openBlock(),vue.createBlock(u,{key:2,animate:!1,class:"vs-site-search",href:t.searchLink,icon:"vs-icon-control-search",id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$x,vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$q,[vue.createVNode(u,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:r.isOpen?"vs-icon-control-dismiss":"vs-icon-control-menu",variant:"subtle",onClick:n[0]||(n[0]=m=>o.menuToggle()),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["icon"]),r.isOpen?vue.withDirectives((vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-accordion-items")]),_:3})),[[h,o.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(p,{onToggleAction:o.toggleSearch,"is-showing":r.showSearch,"label-text":t.searchLabelText,"submit-button-text":t.searchButtonText,"close-button-text":t.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","close-button-text"]),[[vue.vShow,r.showSearch]])])}const MegaNav=LoadingSpinner._export_sfc(_sfc_main$V,[["render",_sfc_render$E]]),_sfc_main$U={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:LoadingSpinner.un,VsCol:LoadingSpinner.VsCol,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsButton:LoadingSpinner.VsButton},mixins:[LoadingSpinner.dataLayerMixin],props:{menuToggleAltText:{type:String,required:!0}},emits:["menuToggled"],mounted(){this.emitter&&(this.emitter.on("bv::dropdown::show",()=>{this.$emit("menuToggled")}),this.emitter.on("bv::dropdown::hide",()=>{this.$emit("menuToggled")})),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu(){this.$refs.dropdown.hide()},tabFromClose(e){e.shiftKey||this.closeMenu()},dataLayerSubmit(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){const n={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}}},_hoisted_1$D={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown",role:"menuitem"},_hoisted_2$w={role:"menuitem"},_hoisted_3$p={class:"dropdown-menu dropdown-menu--fallback overflow-auto",role:"menu"},_hoisted_4$j={role:"menuitem"};function _sfc_render$D(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[vue.createVNode(c,{variant:"subtle",ref:"dropdown",onShow:n[0]||(n[0]=d=>o.dataLayerSubmit(d))},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_2$w,[vue.createVNode(u,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(s,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"vs-icon-control-dismiss","icon-only":"",size:"sm",variant:"subtle",onClick:o.closeMenu,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick","onKeydown"])]),_:3})]),_:3})]),_:3})])]),_:3},512),vue.createElementVNode("ul",_hoisted_3$p,[vue.createElementVNode("li",_hoisted_4$j,[vue.createVNode(u,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(s,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"vs-icon-control-dismiss","icon-only":"",size:"sm",variant:"subtle",onClick:o.closeMenu},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick"])]),_:3})]),_:3})]),_:3})])])])}const VsMegaNavDropdown=LoadingSpinner._export_sfc(_sfc_main$U,[["render",_sfc_render$D]]),_sfc_main$T={name:"VsMegaNavDropdownContainer",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown,VsLink,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:e=>e.match(/(left|bottom|top)/)}},computed:{hasFeaturedItem(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass(){return this.align==="bottom"?"vs-mega-nav-dropdown-container__featured--bottom":""}}},_hoisted_1$C={class:"vs-mega-nav-dropdown-container","data-test":"vs-mega-nav-dropdown-container",ref:"menuToggle",role:"presentation"},_hoisted_2$v={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_3$o={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$C(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsMegaNavDropdown"),l=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$C,[vue.createVNode(l,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(i,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),"cta-link":vue.withCtx(()=>[t.href&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,href:t.href,"data-test":"vs-mega-nav-dropdown-container__cta-link",class:"vs-mega-nav-dropdown-container__cta-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1))]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$v,[vue.renderSlot(e.$slots,"dropdown-content"),o.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),o.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),o.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$o,[vue.renderSlot(e.$slots,"nav-featured-event")])):vue.createCommentVNode("",!0)])]),_:3})]),_:3})],512)}const MegaNavDropdownContainer=LoadingSpinner._export_sfc(_sfc_main$T,[["render",_sfc_render$C]]),_sfc_main$S={name:"VsMegaNavList",status:"prototype",release:"0.1.0",components:{VsList,VsHeading:LoadingSpinner.VsHeading},props:{listHeading:{type:String,default:""}},computed:{listHeadingId(){return this.listHeading?`vsMeganav${this.listHeading.replace(/\W/g,"")}`:""}}},_hoisted_1$B=["aria-label"];function _sfc_render$B(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-mega-nav-list","data-test":"vs-mega-nav-list","aria-label":o.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-list__heading",id:o.listHeadingId,level:"2","heading-style":"heading-xxxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.listHeading),1)]),_:1},8,["id"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"vs-mega-nav-list__list",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"nav-heading-cta-link"),vue.renderSlot(e.$slots,"nav-list-items")]),_:3})],8,_hoisted_1$B)}const MegaNavList=LoadingSpinner._export_sfc(_sfc_main$S,[["render",_sfc_render$B]]),_sfc_main$R={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1}},computed:{navItemClasses(){return{"vs-mega-nav-list-item__heading":this.href==="#","vs-mega-nav-list-item__link":this.href!=="#","vs-mega-nav-list-item__subheading-link":this.subheadingLink}}}};function _sfc_render$A(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[vue.createVNode(s,{href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavListItem=LoadingSpinner._export_sfc(_sfc_main$R,[["render",_sfc_render$A]]),_sfc_main$Q={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem,VsLink},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:e=>e.match(/(1|2)/)},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-mega-nav-${e}`},accordionItemClasses(){return[`vs-mega-nav-accordion-item--level-${this.level}`]}}};function _sfc_render$z(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink"),i=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(i,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",o.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":o.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${o.getUniqueId}-${t.controlId}`},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),default:vue.withCtx(()=>[t.ctaLink&&t.ctaText?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:t.ctaLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")]),_:3},8,["class","data-unique-id","control-id"])}const MegaNavAccordionItem=LoadingSpinner._export_sfc(_sfc_main$Q,[["render",_sfc_render$z]]),_sfc_main$P={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}};function _sfc_render$y(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createBlock(s,{link:t.link,type:"internal","img-src":t.imgUrl,"img-alt":t.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-header")]),"stretched-card-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-content")]),"stretched-card-link":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-link")]),_:3},8,["link","img-src","img-alt"])}const MegaNavFeaturedItem=LoadingSpinner._export_sfc(_sfc_main$P,[["render",_sfc_render$y]]),_sfc_main$O={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{sourceUrl:{type:String,default:""}},data(){return{featuredEvent:null}},mounted(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent(){LoadingSpinner.axios.get(this.sourceUrl).then(e=>{e.data.data.products&&e.data.data.products.length&&([this.featuredEvent]=e.data.data.products)}).catch(()=>{this.featuredEvent=null})}}},_hoisted_1$A={key:0,class:"vs-mega-nav-featured-event__date-range"},_hoisted_2$u={class:"vs-mega-nav-featured-event__date-detail"},_hoisted_3$n={class:"vs-mega-nav-featured-event__title"},_hoisted_4$i={key:1,class:"vs-mega-nav-featured-event__location"};function _sfc_render$x(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkCard");return r.featuredEvent?(vue.openBlock(),vue.createBlock(s,{key:0,link:r.featuredEvent.productLink.link,type:"internal","img-src":r.featuredEvent.images[0].mediaUrl,"img-alt":r.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":vue.withCtx(()=>[r.featuredEvent&&r.featuredEvent.opening?(vue.openBlock(),vue.createElementBlock("p",_hoisted_1$A,[vue.createTextVNode(vue.toDisplayString(r.featuredEvent.opening.period.label)+" ",1),vue.createElementVNode("span",_hoisted_2$u,vue.toDisplayString(r.featuredEvent.opening.period.startDay),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("p",_hoisted_3$n,vue.toDisplayString(r.featuredEvent.name),1),r.featuredEvent&&r.featuredEvent.address?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$i,vue.toDisplayString(r.featuredEvent.address.shortAddress),1)):vue.createCommentVNode("",!0)]),"stretched-card-link":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.featuredEvent.productLink.label),1)]),_:1},8,["link","img-src","img-alt"])):vue.createCommentVNode("",!0)}const MegaNavFeaturedEvent=LoadingSpinner._export_sfc(_sfc_main$O,[["render",_sfc_render$x]]),_sfc_main$N={name:"VsMegaNavStaticLink",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[LoadingSpinner.dataLayerMixin],props:{href:{type:String,default:"#"},isFullWidth:{type:Boolean,default:!1}}};function _sfc_render$w(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-static-link",t.isFullWidth?"vs-mega-nav-static-link--full-width":""]),"data-test":"vs-mega-nav-static-link",role:"presentation"},[vue.createVNode(s,{class:"vs-mega-nav-static-link__inner",href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavStaticLink=LoadingSpinner._export_sfc(_sfc_main$N,[["render",_sfc_render$w]]),_sfc_main$M={name:"VsMegalinks",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsHeading:LoadingSpinner.VsHeading,VsButton:LoadingSpinner.VsButton,VsBody:LoadingSpinner.VsBody},provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,theme:this.theme}},props:{title:{type:String,required:!1,default:null},sectionId:{type:String,required:!1,default:null},buttonLink:{type:String,required:!1,default:null},variant:{type:String,required:!1,default:null,validator:e=>e.match(/(multi-image|single-image|link-list)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},noJsMessage:{type:String,default:""},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},headingLevel:{type:Number,default:2,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:String,default:"heading-xl",validator:e=>e.match(/(display-m|display-s|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs|heading-xxxs)/)}},computed:{megalinksClasses(){return[this.variant?`vs-megalinks--${this.variant}`:"",`vs-megalinks--${this.theme}`]}}},_hoisted_1$z={key:0,class:"vs-megalinks__intro","data-test":"vs-megalinks__intro"},_hoisted_2$t={class:"row vs-megalinks__links-wrapper"},_hoisted_3$m={class:"vs-megalinks__button","data-test":"vs-megalinks__button"};function _sfc_render$v(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsCol"),u=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(["vs-megalinks",o.megalinksClasses]),"data-test":"megalinks"},[vue.createVNode(d,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$z,[vue.createVNode(s,{level:t.headingLevel,"heading-style":t.headingStyle,class:"vs-megalinks__heading","data-test":"vs-megalinks__heading",id:t.sectionId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["level","heading-style","id"]),e.$slots["vs-megalinks-intro"]&&e.$slots["vs-megalinks-intro"]()?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-megalinks__intro-content",variant:"lead","data-test":"vs-megalinks__intro-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-intro")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$t,[vue.renderSlot(e.$slots,"default")]),t.buttonLink&&t.variant!=="single-image"?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$m,[vue.createVNode(c,{href:t.buttonLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-button")]),_:3},8,["href"])])]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2)}const Megalinks=LoadingSpinner._export_sfc(_sfc_main$M,[["render",_sfc_render$v]]),_sfc_main$L={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsBody:LoadingSpinner.VsBody,VsStretchedLinkPanels},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass(){let e="";return this.theme&&(e+=`vs-megalink-link-list--${this.theme} `),this.isHomePage||(e+="vs-megalink-link-list--internal-page "),this.businessSupport&&(e+="vs-megalink-link-list--business-support "),e}}},_hoisted_1$y={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$u(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-link-list",o.megalinkClass]),"data-test":"vs-megalink-link-list"},[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:"vs-megalink-link-list__wrapper","img-src":t.imgSrc,"img-alt":t.imgAlt,theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"error-type":"full","business-support":t.businessSupport,"is-home-page":t.isHomePage},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$y,[vue.renderSlot(e.$slots,"vs-link-list-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3},8,["class"])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0,t.businessSupport&&!t.isHomePage?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-badges")]),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],2)}const MegalinkLinkList=LoadingSpinner._export_sfc(_sfc_main$L,[["render",_sfc_render$u]]),_sfc_main$K={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsBody:LoadingSpinner.VsBody,VsStretchedLinkPanels},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses(){return[`vs-megalink-multi-image-card--${this.theme}`,{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}},_hoisted_1$x={class:"vs-megalink-multi-image"},_hoisted_2$s={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function _sfc_render$t(e,n,t,a,r,o){const s=vue.resolveComponent("VsStretchedLinkPanels"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$x,[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,class:vue.normalizeClass(["vs-megalink-multi-image-card p-050",o.multiImageClasses]),"heading-style":t.featured?"heading-s":"heading-xs","img-src":t.imgSrc,"img-alt":t.imgAlt,"data-test":t.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"warning-size":t.featured?"normal":"small"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$s,[vue.renderSlot(e.$slots,"vs-multi-image-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(s,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-badges")]),key:"1"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}const MegalinkMultiImage=LoadingSpinner._export_sfc(_sfc_main$K,[["render",_sfc_render$t]]),_sfc_main$J={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsButton:LoadingSpinner.VsButton,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsLinkList},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""}},data(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses(){return[this.alternate?"vs-megalink-single-image--alternate":""]},cssVars(){return{"--negative-margin":`-${this.negativeMargin}`,"--image-height":`${this.imageHeight}`}}},mounted(){const e=this.$el.querySelector(".vs-image-with-caption");if(e){const n=e.querySelector("img");n.addEventListener("load",()=>{const t=n.clientHeight/2.5/n.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${n.clientHeight}px`})}}},_hoisted_1$w={class:"vs-megalink-single-image__image-container"},_hoisted_2$r={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},_hoisted_3$l={class:"vs-megalink-single-image__button"};function _sfc_render$s(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsLinkList"),u=vue.resolveComponent("VsButton"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-single-image",o.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(o.cssVars)},[vue.createElementVNode("div",_hoisted_1$w,[vue.renderSlot(e.$slots,"vs-single-image")]),vue.createVNode(d,{class:"vs-megalink-single-image__text-container"},{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",sm:"10",lg:"6",class:vue.normalizeClass(["offset-sm-1",t.alternate?"offset-lg-6":"offset-lg-0"])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$r,[t.title?(vue.openBlock(),vue.createBlock(s,{key:0,level:"3","heading-style":"heading-m",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-content")]),_:3}),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-links")]),_:3}),vue.createElementVNode("div",_hoisted_3$l,[t.buttonLink?(vue.openBlock(),vue.createBlock(u,{key:0,href:t.buttonLink,variant:"secondary"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-button-text")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])])]),_:3},8,["class"])]),_:3})],6)}const MegalinkSingleImage=LoadingSpinner._export_sfc(_sfc_main$J,[["render",_sfc_render$s]]),_sfc_main$I={name:"VsModal",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsButton:LoadingSpinner.VsButton,BModal:LoadingSpinner._a},props:{modalId:{type:String,required:!0},closeBtnText:{type:String,required:!0},isVideoModal:{type:Boolean,default:!1},autoMount:{type:Boolean,default:!1}},data(){return{show:!1,mounted:this.autoMount}},mounted(){this.mounted=!0,this.emitter&&(this.emitter.on("showModal",e=>this.showModal(e)),this.emitter.on("hideModal",()=>this.hideModal()),this.isVideoModal&&this.emitter.on("showModal",e=>{this.emitter.emit("video-controls",{action:"modal-opened",id:e})}))},methods:{hideModal(){this.emitter&&this.emitter.emit("video-controls",{action:"modal-closed",id:this.modalId}),this.show=!1},showModal(e){e===this.modalId&&(this.show=!0)}}};function _sfc_render$r(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("BModal");return r.mounted?(vue.openBlock(),vue.createBlock(c,{key:0,"modal-class":"vs-modal","data-test":"vs-modal",ref:`modal-${t.modalId}`,id:t.modalId,size:"xl","hide-footer":"","hide-header":"",static:t.isVideoModal,modelValue:r.show,"onUpdate:modelValue":n[0]||(n[0]=d=>r.show=d),onHidden:o.hideModal},{default:vue.withCtx(()=>[vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",lg:"1",class:"d-flex justify-content-end align-items-start order-lg-1"},{default:vue.withCtx(()=>[vue.createVNode(s,{class:"vs-modal__close-btn mb-125 mb-lg-0","data-test":"vs-modal__close-btn",variant:"subtle","icon-only":"",icon:"vs-icon-control-dismiss",onClick:o.hideModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1}),vue.createVNode(i,{cols:"12",lg:"11"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["id","static","modelValue","onHidden"])):vue.createCommentVNode("",!0)}const Modal=LoadingSpinner._export_sfc(_sfc_main$I,[["render",_sfc_render$r]]),_sfc_main$H={name:"VsPageIntro",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{background:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},heroIntro:{type:Boolean,default:!1},isItinerary:{type:Boolean,default:!1},fullscreenMobile:{type:Boolean,default:!1},hasToc:{type:Boolean,default:!1}},computed:{introClasses(){return[`vs-page-intro--${this.background}`,this.heroIntro?"vs-page-intro--hero":"",this.fullscreenMobile?"vs-page-intro__fullscreen-mobile-header":""]},contentColProps(){const e={};return this.isItinerary?(e.md="6",e.lg="5",e.xl="6",e["offset-lg"]="1"):this.heroIntro?(e.md="12",e.lg="7",e.xl="8",e["offset-lg"]="1"):this.hasToc?e.md="7":e.md="8",e}}},_hoisted_1$v={key:0,class:"vs-page-intro__fs-mobile-heading-wrapper","data-test":"vs-page-intro__mobile-breadcrumb"},_hoisted_2$q={class:"vs-page-intro__wrapper"},_hoisted_3$k={class:"vs-page-intro__share"},_hoisted_4$h={key:0,class:"list-inline"},_hoisted_5$f={key:0,class:"vs-page-intro__lower py-300","data-test":"vs-page-intro__lower"};function _sfc_render$q(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsContainer"),u=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsBody");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-page-intro",o.introClasses]),"data-test":"vs-page-intro"},[t.fullscreenMobile?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$v,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.fullscreenMobile?"d-none-md":"")},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"9",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"])]),_:3})])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-hero"),vue.createElementVNode("div",_hoisted_2$q,[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(t.fullscreenMobile?"d-none d-lg-flex":"")},{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"9",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"]),vue.createElementVNode("div",_hoisted_3$k,[vue.renderSlot(e.$slots,"vs-share-button")]),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"11",md:t.heroIntro?"11":"10",lg:t.heroIntro?"7":"10",xl:t.heroIntro?"8":"10","offset-lg":t.heroIntro?"1":"0",class:"mt-050"},{default:vue.withCtx(()=>[vue.createVNode(u,{level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-heading")]),_:3}),vue.renderSlot(e.$slots,"vs-article-data")]),_:3},8,["md","lg","xl","offset-lg"])]),_:3}),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({"data-test":"vs-page-intro__content",cols:"12"},o.contentColProps),{default:vue.withCtx(()=>[vue.createVNode(c,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-content")]),_:3}),e.$slots["vs-intro-start-finish"]&&e.$slots["vs-intro-start-finish"]()?(vue.openBlock(),vue.createElementBlock("dl",_hoisted_4$h,[vue.renderSlot(e.$slots,"vs-intro-start-finish")])):vue.createCommentVNode("",!0)]),_:3},16),e.$slots["vs-intro-table-of-contents"]&&e.$slots["vs-intro-table-of-contents"]()?(vue.openBlock(),vue.createBlock(s,{key:0,cols:"12",md:"5"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-table-of-contents")]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-summary-box")]),_:3})]),_:3}),e.$slots["vs-intro-lower"]&&e.$slots["vs-intro-lower"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$f,[vue.renderSlot(e.$slots,"vs-intro-lower")])):vue.createCommentVNode("",!0)])],2)}const PageIntro=LoadingSpinner._export_sfc(_sfc_main$H,[["render",_sfc_render$q]]),_hoisted_1$u={"aria-label":"Pagination",class:"vs-pagination","data-test":"vs-pagination"},_hoisted_2$p={"aria-live":"polite",class:"vs-pagination__count"},_hoisted_3$j={class:"vs-pagination__controls"},_hoisted_4$g={class:"vs-pagination__prev"},_hoisted_5$e={class:"vs-pagination__list"},_hoisted_6$d={key:0},_hoisted_7$a={class:"vs-pagination__next"},limit=7,_sfc_main$G={__name:"VsPagination",props:vue.mergeModels({nextButtonLabel:{type:String,required:!0},numberOfPages:{type:Number,required:!0},pageLabel:{type:String,required:!0},ofLabel:{type:String,required:!0},previousButtonLabel:{type:String,required:!0}},{modelValue:{type:Number,default:1},modelModifiers:{}}),emits:vue.mergeModels(["page-click"],["update:modelValue"]),setup(e,{emit:n}){const t=e,a=n,r=vue.useModel(e,"modelValue"),o=vue.computed(()=>`${t.pageLabel} ${r.value} ${t.ofLabel} ${t.numberOfPages}`),s=u=>({"vs-pagination__item":!0,"vs-pagination__item--active":r.value===u,"vs-pagination__item--ellipses":u==="ellipses"}),i=vue.computed(()=>{if(t.numberOfPages<=limit)return Array.from({length:t.numberOfPages},(d,f)=>f+1);let u=[];const c=Math.floor(limit/2);if(r.value<=c){for(let d=1;d<limit-1;d++)u=[...u,d];u=[...u,"ellipses",t.numberOfPages]}else if(r.value>t.numberOfPages-c){u=[1,"ellipses"];const d=t.numberOfPages-limit+2;for(let f=1;f<limit-1;f++)u=[...u,d+f]}else{const d=r.value-c+1;u=[1,"ellipses"];for(let f=1;f<limit-3;f++)u=[...u,d+f];u=[...u,"ellipses",t.numberOfPages]}return u}),l=(u,c)=>{r.value!==c&&(a("page-click",c),r.value=c)};return vue.watch(()=>t.numberOfPages,()=>{r.value=1}),(u,c)=>(vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$u,[vue.createElementVNode("div",_hoisted_2$p,[vue.createElementVNode("p",null,vue.toDisplayString(o.value),1)]),vue.createElementVNode("div",_hoisted_3$j,[vue.createElementVNode("div",_hoisted_4$g,[vue.createVNode(LoadingSpinner.VsButton,{disabled:r.value===1,icon:"fa-regular fa-arrow-left",size:"sm",variant:"subtle",onClick:c[0]||(c[0]=d=>l(d,r.value-1))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.previousButtonLabel),1)]),_:1},8,["disabled"])]),vue.createElementVNode("ul",_hoisted_5$e,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(i.value,(d,f)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(s(d)),key:f},[d==="ellipses"?(vue.openBlock(),vue.createElementBlock("span",_hoisted_6$d,"⋯")):(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,"aria-current":r.value===d?"page":null,"aria-label":`Page ${d}`,size:"sm",onClick:v=>l(v,d)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d),1)]),_:2},1032,["aria-current","aria-label","onClick"]))],2))),128))]),vue.createElementVNode("div",_hoisted_7$a,[vue.createVNode(LoadingSpinner.VsButton,{disabled:r.value===t.numberOfPages,icon:"fa-regular fa-arrow-right","icon-position":"right",size:"sm",variant:"subtle",onClick:c[1]||(c[1]=d=>l(d,r.value+1))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.nextButtonLabel),1)]),_:1},8,["disabled"])])])]))}},_sfc_main$F={name:"VsPanel",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"secondary",validator:e=>e.match(/(secondary|information)/)}},computed:{panelClasses(){return`vs-panel--${this.variant}`}}};function _sfc_render$p(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-panel",o.panelClasses]),"data-test":"vs-panel"},[vue.renderSlot(e.$slots,"vs-panel-title"),vue.renderSlot(e.$slots,"default")],2)}const Panel=LoadingSpinner._export_sfc(_sfc_main$F,[["render",_sfc_render$p]]);let VS$1;function setWindowObj(){typeof window<"u"?VS$1=typeof window.VS=="object"?window.VS:{}:VS$1={}}function getLabelText(e,n,t){setWindowObj();let a="";return Object.keys(VS$1).length>0&&(typeof t<"u"?a=VS$1.search_config.basic_config.search_module[t][e]:a=VS$1.search_config.basic_config.search_module[e]),a||n}function getProductName(e,n){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(a=>{const r=VS$1.search_config.basic_config.productTypes[a];t[r.value]=r.text}),t[e]?t[e]:n}function getLocale(){let e=document.documentElement.lang.toLocaleLowerCase().slice(0,2)||"";return e==="en"&&(e=""),e}let VS;typeof window<"u"?VS=typeof window.VS=="object"?window.VS:{}:VS={};function getProductTypes(){if(Object.keys(VS).length<=0)return LoadingSpinner.products;const e=VS.search_config.basic_config.productTypes,n=[];return Object.keys(e).forEach(a=>{n.push({key:e[a].value,text:e[a].text,value:e[a].value})}),n}async function getData(e){try{const{data:n}=await LoadingSpinner.axios.get(e);return n}catch(n){console.error(`Axios error: ${n}`)}}var define_process_env_default$1={},controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,n){return e[n]!==void 0}function hasKeyCode(e,n){return e===n.keyCode}function getItemIndex(e,n,t){return e!==void 0?e:t.length?t.indexOf(n):-1}function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function requiredProp(e,n){console.error('The property "'+n+'" is required in "'+e+'"')}function getNextNonDisabledIndex(e,n,t,a,r){var o=a(n);if(!o||!o.hasAttribute("disabled"))return n;if(e>0)for(var s=n+1;s<t;s+=1){var i=a(s),l=i.hasAttribute("disabled");if(!l)return s}else for(var u=n-1;u>=0;u-=1)if(!a(u).hasAttribute("disabled"))return u;return r?e>0?getNextNonDisabledIndex(1,0,t,a,!1):getNextNonDisabledIndex(-1,t-1,t,a,!1):-1}function scrollToElement(e,n,t){var a=n.clientHeight,r=n.scrollTop,o=e.offsetHeight,s=e.offsetTop;if(s<r)t===0?n.scrollTop=0:n.scrollTop=s;else{var i=s+o,l=r+a;i>l&&(n.scrollTop=i-a)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(n){return n?String(n):""}},stateReducer:{type:Function,default:function(n,t){return t.changes}},getItemId:{type:Function,default:function(t){return"v-"+this.idCounter+"-vue-combo-blocks-item-"+t}},menuId:{type:String,default:""},inputId:{type:String,default:""},labelId:{type:String,default:""},scrollIntoView:{type:Boolean,default:!0},circular:{type:Boolean,default:!0}})}function getInitialData(e,n){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:n(e)}}var computed={menuElement:function e(){return document.querySelector("#"+this.computedMenuId)},computedMenuId:function e(){return this.menuId||"v-"+this.idCounter+"-vue-combo-blocks-menu"},computedInputId:function e(){return this.inputId||"v-"+this.idCounter+"-vue-combo-blocks-input"},computedLabelId:function e(){return this.labelId||"v-"+this.idCounter+"-vue-combo-blocks-label"},selectedIndex:function e(){return this.items.indexOf(this.selectedItem)}},InputKeyDownArrowDown="InputKeyDownArrowDown",InputKeyDownArrowUp="InputKeyDownArrowUp",InputKeyDownTab="InputKeyDownTab",InputKeyUpEscape="InputKeyUpEscape",InputKeyUpEnter="InputKeyUpEnter",InputChange="InputChange",InputBlur="InputBlur",MenuMouseLeave="MenuMouseLeave",ItemMouseMove="ItemMouseMove",ItemClick="ItemClick",FunctionOpenMenu="FunctionOpenMenu",FunctionCloseMenu="FunctionCloseMenu",FunctionSelectItem="FunctionSelectItem",FunctionSetInputValue="FunctionSetInputValue",FunctionReset="FunctionReset",ControlledPropUpdatedSelectedItem="ControlledPropUpdatedSelectedItem",sct=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem,FunctionCloseMenu,FunctionOpenMenu,FunctionReset,FunctionSelectItem,FunctionSetInputValue,InputBlur,InputChange,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownTab,InputKeyUpEnter,InputKeyUpEscape,ItemClick,ItemMouseMove,MenuMouseLeave}),inputPropsAndListeners={getInputProps:function e(){return{value:this.inputValue||"","aria-activedescendant":this.hovered?this.getItemId(this.hoveredIndex):"","aria-autocomplete":"list","aria-controls":this.computedMenuId,"aria-labelledby":this.computedLabelId,id:this.computedInputId,autocomplete:"off"}},getInputEventListeners:function e(n){n===void 0&&(n={});var t=n.blur,a=n.input,r=n.keydown,o=n.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(a)?a:this.onInput,keydown:isFn(r)?r:this.onInputKeyDown,keyup:isFn(o)?o:this.onInputKeyUp}},onInputKeyDown:function e(n){n.key==="Enter"&&this.isOpen?n.preventDefault():hasKeyCode(controls.arrowDownKey,n)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(n)):this.moveSelection(n)},onInputKeyUp:function e(n){var t=controls.enterKey,a=controls.escKey;if(this.isOpen)if(hasKeyCode(t,n)){if(this.hoveredIndex>=0){n.preventDefault();var r=this.getItemNodeFromIndex(this.hoveredIndex);if(r&&r.hasAttribute("disabled"))return;this.setState({inputValue:this.itemToString(this.hovered),selectedItem:this.hovered,hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEnter)}}else hasKeyCode(a,n)&&this.setState({hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEscape)},onInputBlur:function e(){this.setState({isOpen:!1,inputValue:this.itemToString(this.selectedItem),hovered:null,hoveredIndex:-1},InputBlur)},onInput:function e(n){var t=n.target?n.target.value:n;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(n){var t=this;n===void 0&&(n={});var a=n.index,r=n.disabled,o=n.item;o===void 0&&(o=define_process_env_default$1.NODE_ENV==="production"?void 0:requiredProp("getItemEventListeners","item"));var s=n.mousemove,i=n.mousedown,l=n.click;return r?{}:{mousemove:isFn(s)?s:function(){return t.onItemMouseMove(a,o)},mousedown:isFn(i)?i:this.onItemMouseDown,click:isFn(l)?l:function(){return t.onItemClick(o)}}},onItemMouseMove:function e(n,t){var a=getItemIndex(n,t,this.items);this.hoveredIndex!==a&&this.setState({hoveredIndex:a,hovered:t},ItemMouseMove)},onItemMouseDown:function e(n){n.preventDefault()},onItemClick:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(n){n===void 0&&(n={});var t=n.index,a=n.disabled,r=n.item;r===void 0&&(r=define_process_env_default$1.NODE_ENV==="production"?void 0:requiredProp("getItemProps","item"));var o=getItemIndex(t,r,this.items),s=this.getItemId(o);return{id:s,disabled:a?!0:void 0,role:"option","aria-selected":this.hoveredIndex===o||this.selectedItem===r?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(n){n===void 0&&(n={});var t=n.mouseleave,a=n.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(a)?a:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(n){n.preventDefault()}},methods=Object.assign({},inputPropsAndListeners,itemPropsAndListeners,menuPropsAndListeners,{getComboboxProps:function e(){return{role:"combobox","aria-haspopup":"listbox","aria-owns":this.computedMenuId,"aria-expanded":this.isOpen?"true":"false"}},getLabelProps:function e(){return{id:this.computedLabelId,for:this.computedInputId}},autocompleteText:function e(n){this.setInputValue(this.itemToString(n))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(n,t,a){n&&n!==this.hovered&&this.$emit("hover",n,a),this.hovered=n,this.hoveredIndex=typeof t=="number"?t:-1},closeMenu:function e(){this.setState({isOpen:!1,hoveredIndex:-1,hovered:null},FunctionCloseMenu)},openMenu:function e(){this.setState({isOpen:!0},FunctionOpenMenu)},getItemNodeFromIndex:function e(n){return this.menuElement.querySelector("#"+this.getItemId(n))},scrollItemIntoView:function e(n){var t=this.getItemNodeFromIndex(n);scrollToElement(t,this.menuElement,n)},moveSelection:function e(n){var t=this,a=this.items.length;if(!(!this.isOpen||!a)){var r=hasKeyCode(controls.arrowDownKey,n),o=hasKeyCode(controls.arrowUpKey,n);if(r||o){n.preventDefault();var s=r*2-1,i=r?0:a-1,l=r?this.hoveredIndex<a-1:this.hoveredIndex>0,u=l?this.hoveredIndex+s:i,c=getNextNonDisabledIndex(s,u,a,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(o&&c>this.hoveredIndex||r&&c<this.hoveredIndex))return;var d=this.items[c];this.scrollIntoView&&this.$nextTick(function(){t.scrollItemIntoView(u)}),this.setState({hoveredIndex:c,hovered:d},r?InputKeyDownArrowDown:InputKeyDownArrowUp)}}},setInputValue:function e(n){this.inputValue!==n&&this.setState({inputValue:n},FunctionSetInputValue)}});function slot(e){return{getInputProps:e.getInputProps,getItemProps:e.getItemProps,getMenuProps:e.getMenuProps,getComboboxProps:e.getComboboxProps,getLabelProps:e.getLabelProps,getInputEventListeners:e.getInputEventListeners,getMenuEventListeners:e.getMenuEventListeners,getItemEventListeners:e.getItemEventListeners,isOpen:e.isOpen,selectedItem:e.selectedItem,hoveredIndex:e.hoveredIndex,inputValue:e.inputValue,reset:e.reset,select:e.select,setInputValue:e.setInputValue,openMenu:e.openMenu,closeMenu:e.closeMenu}}var idCounter=0;function beforeCreate(){this.idCounter=idCounter.toString(),idCounter+=1}var isVue3=!!vue.defineComponent;!isVue3&&define_process_env_default$1.NODE_ENV!=="production"&&console.error(`Looks like your Vue version is 2.x, but you are using VueComboBlocks for Vue 3.
|
|
330
|
+
Install the correct version for Vue 2.x: "npm i vue-combo-blocks@vue2"`);var VueComboBlocks=vue.defineComponent({name:"vue-combo-blocks",emits:{select:null,"update:modelValue":null,"input-value-change":null,"is-open-change":null,"hovered-index-change":null,"state-change":null,change:null,"show-list":null,focus:null,hover:null},props:getProps(isVue3),watch:{modelValue:function e(n){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(n),this.selectedItem=n)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(n,t){var a=this.$data,r=this.stateReducer(a,{changes:n,type:t}),o=hasOwnProperty(r,"selectedItem"),s=r.selectedItem!==a.selectedItem;o&&(this.$emit("select",r.selectedItem,t),s&&this.$emit("update:modelValue",r.selectedItem,t));var i={};for(var l in r)hasOwnProperty(r,l)&&a[l]!==r[l]&&(i[l]=r[l],this[l]=i[l],l==="inputValue"?this.$emit("input-value-change",r[l],t):l==="isOpen"?this.$emit("is-open-change",r[l],t):l==="hoveredIndex"&&this.$emit("hovered-index-change",r[l],t));this.$emit("state-change",i,t)}},methods),render:function e(){return this.$slots.default(slot(this))}});VueComboBlocks.stateChangeTypes=sct;const _hoisted_1$t={"data-test":"vs-autocomplete",class:"vs-autocomplete mb-100"},_hoisted_2$o=["for"],_hoisted_3$i=["placeholder","onClick"],_hoisted_4$f=["name"],_sfc_main$E=vue.defineComponent({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref([]),o=vue.ref(t.options),s=f=>f?f[u.value]:"",i=f=>{o.value=t.options.filter(v=>v[u.value].toLowerCase().includes(f.toLowerCase()))},l=f=>{typeof t.trackBy<"u"?a("changeValue",f[t.trackBy]):a("changeValue",f.label)},u=vue.computed(()=>typeof t.multiselectLabel<"u"?t.multiselectLabel:"name"),c=vue.computed(()=>{if(typeof r.value=="string"){if(t.isTourLocation){const f=t.options.find(v=>v.name===r.value);if(typeof f<"u")return f.slug.trim()}return r.value.trim()}else if(typeof r.value=="object"&&Object.keys(r.value).length>0)return s(r.value).trim()}),d=vue.computed(()=>!!(c.value&&c.value.length>0));return vue.watch(()=>r.value,()=>{r.value===null&&(r.value=[])}),vue.onMounted(()=>{typeof t.defaultVal<"u"&&(r.value=t.defaultVal)}),(f,v)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$t,[vue.createElementVNode("label",{for:f.id},vue.toDisplayString(f.label),9,_hoisted_2$o),vue.createVNode(vue.unref(VueComboBlocks),{"input-id":f.id,modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=p=>r.value=p),itemToString:s,items:o.value,onInputValueChange:i,onSelect:l},{default:vue.withCtx(({getInputProps:p,getInputEventListeners:h,hoveredIndex:m,isOpen:_,getMenuProps:g,getMenuEventListeners:b,getItemProps:S,getItemEventListeners:k,getComboboxProps:V,openMenu:L})=>[vue.createElementVNode("div",vue.mergeProps(V(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},p(),vue.toHandlers(h(),!0),{placeholder:f.placeholder,onClick:$=>L()}),null,16,_hoisted_3$i),vue.createVNode(LoadingSpinner.VsIcon,{icon:"vs-icon-control-expand",variant:"cta",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(g(),vue.toHandlers(b(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,($,A)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:$.id},{ref_for:!0},S({item:$,index:A}),vue.toHandlers(k({item:$,index:A}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":m===A}]}),vue.toDisplayString($[u.value]),17))),128))],16),[[vue.vShow,_]])],16)]),_:1},8,["input-id","modelValue","items"]),d.value?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:f.name,"onUpdate:modelValue":v[1]||(v[1]=p=>c.value=p)},null,8,_hoisted_4$f)),[[vue.vModelText,c.value]]):vue.createCommentVNode("",!0)]))}}),_hoisted_1$s={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},_hoisted_2$n={class:"vs-guest-selector-number-group__label"},_hoisted_3$h={class:"vs-guest-selector-number-group__buttons justify-content-end"},_hoisted_4$e=["disabled"],_hoisted_5$d=["name","disabled"],_sfc_main$D=vue.defineComponent({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(0),o=vue.ref(!1),s=vue.ref(t.name),i=()=>{r.value>t.minValue&&(r.value--,o.value=!0,u("decrease"))},l=()=>{r.value<t.maxValue&&(r.value++,o.value=!0,u("increase"))},u=c=>{a("changeHandler",t.name,r.value,c,t.id)};return vue.onMounted(()=>{o.value||(r.value=t.minValue),r.value<=t.maxValue&&(r.value=t.count),t.unitRemoved&&(t.name.includes("children")?(r.value=t.childrenCount,s.value=t.rowName+"children"):t.name.includes("infants")?(r.value=t.infantCount,s.value=t.rowName+"infants"):(r.value=t.adultCount,s.value=t.rowName+"a"))}),(c,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$s,[vue.createElementVNode("span",_hoisted_2$n,vue.toDisplayString(c.rowLabel),1),vue.createElementVNode("div",_hoisted_3$h,[vue.createVNode(LoadingSpinner.VsButton,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"fa-regular fa-minus","icon-only":"",value:"-",onClick:vue.withModifiers(i,["prevent"]),disabled:r.value===c.minValue},{default:vue.withCtx(()=>d[2]||(d[2]=[vue.createTextVNode(" Remove ")])),_:1,__:[2]},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{class:"vs-guest-selector-number-group__input",disabled:c.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f)},null,8,_hoisted_4$e),[[vue.vModelText,r.value]]),vue.createVNode(LoadingSpinner.VsButton,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"fa-regular fa-plus","icon-only":"",value:"+",onClick:vue.withModifiers(l,["prevent"]),disabled:r.value===c.maxValue},{default:vue.withCtx(()=>d[3]||(d[3]=[vue.createTextVNode(" Add ")])),_:1,__:[3]},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{type:"hidden","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),name:(c.unitRemoved&&c.rowName!=="r1",s.value),disabled:c.disabled},null,8,_hoisted_5$d),[[vue.vModelText,r.value]])])]))}}),_hoisted_1$r={class:"vs-guest-selector-row","data-test":"vs-guest-selector-row"},_hoisted_2$m={class:"vs-guest-selector-row__title"},_hoisted_3$g={key:1,class:"c-search__rooms-guests-picker__row"},_hoisted_4$d=["name"],_hoisted_5$c=["name"],_hoisted_6$c=["name"],_sfc_main$C=vue.defineComponent({__name:"GuestSelectorRow",props:{name:{},showRemoveBtn:{type:Boolean},unitLabel:{},unitOptions:{},unitRemoved:{type:Boolean}},emits:["numberChange","onRemove"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(t.unitOptions.numberGroups.adults.count),o=vue.ref(t.unitOptions.numberGroups.children.count),s=vue.ref(t.unitOptions.numberGroups.infants.count),i=getLabelText("remove","Remove","guests_rooms"),l=vue.computed(()=>o.value+s.value),u=(d,f,v,p)=>{let h="";d.includes("children")&&(o.value=f,h="children"),d.includes("infants")&&(s.value=f,h="infants"),(d.includes("r1a")||d.includes("r2a")||d.includes("r3a")||d.includes("r4a")||d.includes("r5a"))&&(r.value=f,h="adults"),a("numberChange",v,h,p)},c=()=>{a("onRemove",s.value+o.value+r.value,s.value+o.value,t.unitOptions.id)};return(d,f)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[vue.createElementVNode("div",_hoisted_2$m,vue.toDisplayString(d.unitLabel),1),d.name!=="r1"?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,class:"vs-guest-selector-row__remove",onClick:vue.withModifiers(c,["prevent"]),variant:"subtle",icon:"vs-icon-control-dismiss","icon-size":"sm","icon-position":"left","icon-only":"",size:"sm"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(i)),1)]),_:1})):vue.createCommentVNode("",!0),d.unitOptions?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.unitOptions.numberGroups,(v,p)=>(vue.openBlock(),vue.createBlock(_sfc_main$D,{"adult-count":r.value,"children-count":o.value,count:v.count,disabled:!1,id:d.unitOptions.id,"infant-count":s.value,"input-type":v,key:`${d.name}_${p}`,"max-value":v.maxCount,"min-value":v.minCount,name:v.name,"row-label":v.unitLabel,"row-name":d.name,"unit-removed":d.unitRemoved,onChangeHandler:u},null,8,["adult-count","children-count","count","id","infant-count","input-type","max-value","min-value","name","row-label","row-name","unit-removed"]))),128)),vue.withDirectives(vue.createElementVNode("input",{type:"hidden",name:`${d.name}c`,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v)},null,8,_hoisted_4$d),[[vue.vModelText,l.value]])])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(v,p)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${p}`,name:`${d.name}c${p}`,value:"10"},null,8,_hoisted_5$c))),128)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(v,p)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${d.name}c${p}`,name:`${d.name}c${p+o.value}`,value:"1"},null,8,_hoisted_6$c))),128))]))}}),_hoisted_1$q={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},_hoisted_2$l={class:"vs-guest-selector__label"},_hoisted_3$f=["disabled"],_hoisted_4$c={class:"vs-guest-selector__button-row mb-075"},_hoisted_5$b={class:"d-flex justify-content-between"},_hoisted_6$b=["value","disabled"],_hoisted_7$9=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$B=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const n=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),a=getLabelText("save_changes","Save","guests_rooms"),r=vue.ref(2),o=getLabelText("guest","Guest","guests_rooms"),s=getLabelText("guests","Guests","guests_rooms"),i=vue.ref(!1),l=vue.ref(0),u=vue.ref([{id:`${n.uid}`,showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}}]),c=vue.ref(1),d=getLabelText("room","Room","guests_rooms"),f=getLabelText("rooms","Rooms","guests_rooms"),v=vue.ref(!1),p=vue.ref(!1),h=()=>{p.value=!1},m=()=>{p.value=!p.value},_=()=>{if(u.value.length<unitLimit){const S={id:`${n.uid}`,showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(u.value.length+1)+"a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(u.value.length+1)+"children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(u.value.length+1)+"infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}};let k=u.value.slice();k.push(S),u.value=k,c.value=k.length,i.value=!0,r.value=r.value+adultDefaultCount}},g=(S,k,V)=>{const L=u.value.findIndex($=>$.id===V);u.value.splice(L,1),c.value=u.value.length,v.value=!0,r.value=r.value-S,l.value=l.value-k,u.value.length===1&&(i.value=!1)},b=(S,k,V)=>{r.value=S==="increase"?r.value+1:r.value-1,k!=="adults"&&(l.value=S==="increase"?l.value+1:l.value-1);const L=u.value.findIndex($=>$.id===V);u.value[L].numberGroups[k].count=S==="increase"?u.value[L].numberGroups[k].count+1:u.value[L].numberGroups[k].count-1};return(S,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$q,[vue.createElementVNode("span",_hoisted_2$l,vue.toDisplayString(vue.unref(s)),1),vue.createElementVNode("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:vue.withModifiers(m,["prevent"]),disabled:!S.availability},[vue.createElementVNode("span",null,vue.toDisplayString(c.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(c.value>1?vue.unref(f):vue.unref(d)),1),k[0]||(k[0]=vue.createTextVNode(", ")),vue.createElementVNode("span",null,vue.toDisplayString(r.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(r.value>1?vue.unref(s):vue.unref(o)),1)],8,_hoisted_3$f),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-guest-selector__modal",p.value?"vs-guest-selector__modal--visible":""])},[vue.createVNode(LoadingSpinner.VsButton,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"subtle",icon:"vs-icon-control-dismiss",size:"md","icon-only":"",onClick:vue.withModifiers(h,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("close","Close","guests_rooms")),1)]),_:1}),vue.createElementVNode("div",_hoisted_4$c,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,(V,L)=>(vue.openBlock(),vue.createBlock(_sfc_main$C,{key:V.id,name:"r"+(L+1),"show-remove-btn":i.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(L+1),"unit-options":V,"unit-removed":v.value,onNumberChange:b,onOnRemove:g},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"]))),128))]),vue.createElementVNode("div",_hoisted_5$b,[u.value.length<unitLimit?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-050 align-self-start",onClick:vue.withModifiers(_,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(t)),1)]),_:1})):vue.createCommentVNode("",!0),u.value.length<unitLimit?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:vue.withModifiers(h,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(a)),1)]),_:1})):vue.createCommentVNode("",!0)])],2),u.value?(vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:c.value,disabled:!S.availability},null,8,_hoisted_6$b)):vue.createCommentVNode("",!0),u.value?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:r.value,disabled:!S.availability},null,8,_hoisted_7$9)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$p={class:"vs-date-input","data-test":"vs-date-input"},_hoisted_2$k=["for"],_hoisted_3$e=["min","name","id"],_sfc_main$A=vue.defineComponent({__name:"DateInput",props:{label:{},id:{},name:{},value:{},minDate:{}},emits:["changeDate"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(t.value),o=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,s=>{r.value=s,a("changeDate",r.value)}),(s,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$p,[vue.createElementVNode("label",{for:s.id},vue.toDisplayString(s.label),9,_hoisted_2$k),vue.withDirectives(vue.createElementVNode("input",{type:"date",min:typeof s.minDate<"u"&&s.minDate.length>0?s.minDate:o.value,name:s.name,id:s.id,"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),onChange:i[1]||(i[1]=l=>s.$emit("changeDate",r.value)),class:"form-control vs-input"},null,40,_hoisted_3$e),[[vue.vModelText,r.value]])]))}}),_hoisted_1$o={class:"vs-date-range","data-test":"vs-date-range"},_hoisted_2$j={class:"row align-items-center"},_hoisted_3$d={class:"col-12 col-sm-5 order-1"},_hoisted_4$b={class:"col-12 col-sm-5 order-2"},_hoisted_5$a={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},_hoisted_6$a={key:1,type:"hidden",name:"refine-date",value:"on"},_hoisted_7$8=["value"],_sfc_main$z=vue.defineComponent({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup(e,{emit:n}){const t=e,a=n,r=vue.ref(""),o=vue.ref(""),s=vue.computed(()=>!!r.value||!!o.value),i=vue.computed(()=>{const g=new Date(o.value),b=new Date(r.value),S=g.getTime()-b.getTime();return isNaN(S)?1:S/(1e3*3600*24)});function l(){r.value="",o.value=""}const u=g=>{const b=g.toLocaleString("default",{year:"numeric"}),S=g.toLocaleString("default",{month:"2-digit"}),k=g.toLocaleString("default",{day:"2-digit"});return`${b}-${S}-${k}`},c=vue.computed(()=>r.value===""?u(new Date):""),d=vue.computed(()=>{let g;if(r.value!==""){const b=new Date(r.value);b.setDate(b.getDate()+1),g=u(b)}else if(t.defaultDates){const b=new Date,S=new Date(b);S.setDate(S.getDate()+1),g=u(S)}return g}),f=vue.computed(()=>{let g;if(r.value===""){const b=new Date,S=new Date(b);S.setDate(S.getDate()+1),g=u(S)}else{const b=new Date,S=new Date(r.value);b.setDate(S.getDate()+1),g=u(b)}return g});function v(){const g=new Date(r.value);new Date(o.value)<=g&&(o.value="")}function p(){const g=!(!r.value&&!o.value);a("dateUpdated",g)}function h(){p(),v()}const m=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),_=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(g,b)=>(vue.openBlock(),vue.createElementBlock("fieldset",_hoisted_1$o,[vue.createElementVNode("div",_hoisted_2$j,[vue.createElementVNode("div",_hoisted_3$d,[vue.createVNode(_sfc_main$A,{label:e.startLabel,value:e.defaultDates&&r.value===""&&o.value?c.value:r.value,name:m.value,id:"startDate",onChangeDate:b[0]||(b[0]=S=>{r.value=S,h()}),class:"mb-100"},null,8,["label","value","name"])]),vue.createElementVNode("div",_hoisted_4$b,[vue.createVNode(_sfc_main$A,{label:e.endLabel,value:e.defaultDates&&o.value===""&&r.value?d.value:o.value,"min-date":f.value,name:_.value,id:"endDate",onChangeDate:b[1]||(b[1]=S=>{o.value=S,h()}),class:"mb-100"},null,8,["label","value","min-date","name"])]),vue.createElementVNode("div",_hoisted_5$a,[s.value?(vue.openBlock(),vue.createElementBlock("button",{key:0,id:"clearDateRange",type:"button",onClick:l,class:"vs-date-range__clear"},vue.toDisplayString(vue.unref(getLabelText)("reset","Clear")),1)):vue.createCommentVNode("",!0),e.selectedProd!=="acco"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_6$a)):vue.createCommentVNode("",!0),vue.createElementVNode("input",{type:"hidden",name:"nights",value:i.value},null,8,_hoisted_7$8)])])]))}}),_hoisted_1$n={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},_hoisted_2$i={key:0,class:"container"},_hoisted_3$c={class:"row"},_hoisted_4$a={class:"col-12"},_hoisted_5$9=["action"],_hoisted_6$9={class:"form-group product-search__type mb-100"},_hoisted_7$7={for:"prodtypes"},_hoisted_8$5={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$4={"aria-live":"polite"},_hoisted_10$4=["disabled","value"],_hoisted_11$3=["disabled","value"],_hoisted_12$2=["value"],_hoisted_13$2={key:4,type:"hidden",name:"areaproxdist",value:"10"},_hoisted_14$1={key:5},_hoisted_15$1={key:0,class:"form-group"},_hoisted_16$1={for:"search-keyword"},_hoisted_17$1={key:2},_hoisted_18=["value"],_hoisted_19={key:0},_hoisted_20=["value"],__default__$1=vue.defineComponent({mixins:[LoadingSpinner.dataLayerMixin],methods:{trackSubmit(e,n){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:n.name},this.href)}}}),_sfc_main$y=vue.defineComponent({...__default__$1,__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup(e){const n=e,t=vue.ref(!1),a=vue.ref(),r=vue.ref([]);vue.ref(null);let o=vue.ref();o.value={id:"",key:"",name:"",type:""};const s=vue.ref("off"),i=vue.ref(!1),l=vue.computed(()=>{const C=typeof a.value>"u"?"see-do":a.value;return`/info/${LoadingSpinner.paths[C]}`});let u=vue.ref(!1);const c={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},d=vue.computed(()=>{let C=n.defaultLocale.length>0?n.defaultLocale:getLocale();return C==="en"&&(C=""),C}),f=vue.computed(()=>{if(typeof window<"u"){let C=window.location.origin;return C.includes("localhost")?"https://www.visitscotland.com":C}return"https://www.visitscotland.com"}),v=vue.computed(()=>`${f.value}${d.value?"/"+d.value:""}${l.value}/search-results`),h="https://www.visitscotland.com/data/locations"+`?locale=${d.value}`,m=vue.ref([]),_="https://www.visitscotland.com/tms-api/v1/attractions",g=vue.ref([]),b="https://www.visitscotland.com/tms-api/v1/origins?active=1",S=vue.ref([]),k=vue.ref([]),V=()=>{const C=getProductTypes(),E=[];C.forEach(T=>{E.push(T)}),k.value=E},L=vue.computed(()=>t.value?[]:k.value.map(E=>({...E,text:getProductName(E.value,E.text)}))),$=async()=>{const C=await getData(h);C&&(m.value=C.data)},A=async()=>{const C=await getData(b);C&&(S.value=C.data)},F=async()=>{const C=await getData(_);C&&(g.value=C.data)},P=(C,E)=>{E==="key"?o.value=m.value.find(T=>T.key===C):E==="id"?o.value=m.value.find(T=>T.id===C):o.value=m.value.find(T=>T.name===C.trim())},q=C=>{const E=C.value;a.value=E,E==="tour"&&(A(),F())},M=()=>c[n.defaultLocale]||"",j=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,n.defaultLocation!==""&&u&&P(n.defaultLocation,"id")})},Q=vue.computed(()=>a.value!=="cate"&&a.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const C=document.createElement("script");C.async=!1,C.onload=j,C.setAttribute("src",`https://www.visitscotland.com/${M().localeUrl}/data/template/search.js`),document.head.appendChild(C)}),vue.onMounted(async()=>{$(),u.value=!0,a.value=n.defaultProd,a.value==="tour"&&(A(),F()),V()});const J=C=>{s.value=C?"on":"off"},W=C=>{i.value=!0;const E=C.currentTarget;setTimeout(function(){E.submit()},500)};return(C,E)=>{var T,z,Y,w,B,N;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$n,[t.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$i,[vue.createElementVNode("div",_hoisted_3$c,[vue.createElementVNode("div",_hoisted_4$a,[vue.unref(u)?(vue.openBlock(),vue.createElementBlock("form",{key:0,action:v.value,onSubmit:vue.withModifiers(W,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$9,[vue.createElementVNode("label",_hoisted_7$7,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(Q.value)},[vue.createVNode(VsSelect,{options:L.value,value:e.defaultProd,onUpdated:E[0]||(E[0]=D=>q(D)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$4,[a.value!="tour"&&vue.unref(u)?(vue.openBlock(),vue.createBlock(_sfc_main$E,{key:0,id:"search-location",label:vue.unref(getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:m.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:E[1]||(E[1]=D=>P(D)),"default-val":vue.unref(o),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((T=vue.unref(o))==null?void 0:T.type)==="POLYGON",value:((z=vue.unref(o))==null?void 0:z.key)||""},null,8,_hoisted_10$4)):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((Y=vue.unref(o))==null?void 0:Y.type)!=="POLYGON",value:((w=vue.unref(o))==null?void 0:w.key)||""},null,8,_hoisted_11$3)):vue.createCommentVNode("",!0),a.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((B=vue.unref(o))==null?void 0:B.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),a.value!=="tour"&&((N=vue.unref(o))==null?void 0:N.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),a.value==="even"||a.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createVNode(_sfc_main$z,{"start-label":vue.unref(getLabelText)("startdate","Start Date","dates"),"end-label":vue.unref(getLabelText)("enddate","End Date","dates"),onDateUpdated:E[2]||(E[2]=D=>J(D)),"default-dates":i.value,"selected-prod":a.value},null,8,["start-label","end-label","default-dates","selected-prod"]),a.value==="even"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1,[vue.createElementVNode("label",_hoisted_16$1,vue.toDisplayString(vue.unref(getLabelText)("keywords","Keywords")),1),vue.createVNode(VsInput,{"field-name":"search-keyword",placeholder:vue.unref(getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):vue.createCommentVNode("",!0),a.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$B,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),a.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17$1,[vue.createElementVNode("input",{hidden:"true",name:"avail",value:s.value},null,8,_hoisted_18)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),a.value==="tour"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.createVNode(_sfc_main$E,{id:"tour-origin",label:vue.unref(getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:S.value,placeholder:vue.unref(getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.value,D=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:D},null,8,_hoisted_20))),256)),vue.createVNode(_sfc_main$E,{id:"tour-month",label:vue.unref(getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:vue.unref(getLabelText)("months",vue.unref(LoadingSpinner.monthsEnglish)),placeholder:vue.unref(getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsButton,{class:"mt-150","data-test":"psw-submit",type:"submit",onClick:E[3]||(E[3]=D=>C.trackSubmit(a.value,typeof vue.unref(o)>"u"?"":vue.unref(o)))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("search","Search")),1)]),_:1})],40,_hoisted_5$9)):vue.createCommentVNode("",!0),vue.unref(u)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(LoadingSpinner.VsLoading,{key:1,variant:"dark"}))])])]))])}}}),_sfc_main$x={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsProductSearchEmbed:_sfc_main$y,VsHeading:LoadingSpinner.VsHeading,VsWarning:LoadingSpinner.VsWarning},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}},_hoisted_1$m={class:"vs-product-search","data-test":"vs-product-search"},_hoisted_2$h={class:"vs-product-search__intro"};function _sfc_render$o(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsProductSearchEmbed"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"2",headingStyle:"heading-l",class:"vs-product-search__heading mt-0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-heading")]),_:3}),vue.createElementVNode("div",_hoisted_2$h,[vue.renderSlot(e.$slots,"vs-module-intro")])]),_:3}),vue.createVNode(i,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-product-search__widget","default-location":t.defaultLocation,"default-locale":t.defaultLocale,"default-prod":t.defaultProd},null,8,["default-location","default-locale","default-prod"]),vue.createVNode(u,{class:"vs-product-search__no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})]),_:1})]),_:3})]),_:3})])}const ProductSearch=LoadingSpinner._export_sfc(_sfc_main$x,[["render",_sfc_render$o]]),_sfc_main$w={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:e=>e.match(/(narrow|wide)/)},withBorder:{type:Boolean,default:!1}},computed:{hasAuthorName(){return!!this.$slots["quote-author-name"]},hasAuthorTitle(){return!!this.$slots["quote-author-title"]},hasAuthorImage(){return!!this.$slots["quote-image"]},variantClass(){return[{"vs-quote--narrow":this.variant==="narrow","vs-quote--wide":this.variant==="wide","vs-quote--with-border":this.withBorder}]}}},_hoisted_1$l={key:0,class:"vs-quote__speech-container"},_hoisted_2$g={key:1,class:"vs-quote__author-container"},_hoisted_3$b={class:"vs-quote__content-container"},_hoisted_4$9={class:"vs-quote__content"},_hoisted_5$8={key:0,class:"vs-quote__author-name"},_hoisted_6$8={key:2,class:"vs-quote__quote-link"};function _sfc_render$n(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",o.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$l,n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1)]))),o.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$g,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$b,[vue.createElementVNode("div",_hoisted_4$9,[vue.renderSlot(e.$slots,"quote-content")]),o.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$8,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),o.hasAuthorTitle?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:vue.normalizeClass(["vs-quote__author-title",t.variant==="narrow"?"vs-quote__author-title--narrow-margin":null])},[vue.renderSlot(e.$slots,"quote-author-title")],2)):vue.createCommentVNode("",!0),e.$slots["quote-link"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$8,[vue.renderSlot(e.$slots,"quote-link",{if:"$slots['quote-link']"})])):vue.createCommentVNode("",!0)])],2)}const Quote=LoadingSpinner._export_sfc(_sfc_main$w,[["render",_sfc_render$n]]),_sfc_main$v={name:"VsSectionHeader",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol},props:{anchorId:{type:String,default:null},heading:{type:String,required:!0}}},_hoisted_1$k={class:"vs-section-header","data-test":"vs-section-header"},_hoisted_2$f={key:1,class:"mt-175","data-test":"vs-section-header__actions"};function _sfc_render$m(e,n,t,a,r,o){const s=vue.resolveComponent("VsCol"),i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsHeading"),u=vue.resolveComponent("VsBody"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$k,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,null,{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-section-header__divider"},null,-1)])),_:1,__:[0]})]),_:1}),vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.createVNode(s,{cols:"12",sm:"7",md:"6",lg:"4"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"2","heading-style":"heading-l","no-margins":"",class:"mb-175 mb-lg-0",id:t.anchorId},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1},8,["id"])]),_:1}),vue.createVNode(s,{cols:"12",sm:"10",md:"9",lg:"8"},{default:vue.withCtx(()=>[e.$slots["section-header-lede"]?(vue.openBlock(),vue.createBlock(u,{key:0,variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"section-header-lede")]),_:3})):vue.createCommentVNode("",!0),e.$slots["section-header-actions"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$f,[vue.renderSlot(e.$slots,"section-header-actions")])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})])}const SectionHeader=LoadingSpinner._export_sfc(_sfc_main$v,[["render",_sfc_render$m]]),_sfc_main$u={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:LoadingSpinner.ol},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:e=>e.match(/(responsive|stacked)/)}},computed:{responsive(){return this.tableType==="responsive"},stacked(){return this.tableType==="stacked"}}},_hoisted_1$j={class:"visually-hidden","data-test":"vs-table__caption"};function _sfc_render$l(e,n,t,a,r,o){const s=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(s,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:o.responsive,stacked:o.stacked},{default:vue.withCtx(()=>[vue.createElementVNode("caption",_hoisted_1$j,vue.toDisplayString(t.tableCaption),1),vue.renderSlot(e.$slots,"default")]),_:3},8,["responsive","stacked"])}const VsTable=LoadingSpinner._export_sfc(_sfc_main$u,[["render",_sfc_render$l]]),_sfc_main$t={name:"VsTableHead",status:"prototype",release:"0.0.1",components:{BThead:LoadingSpinner.wn}};function _sfc_render$k(e,n,t,a,r,o){const s=vue.resolveComponent("BThead");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableHead=LoadingSpinner._export_sfc(_sfc_main$t,[["render",_sfc_render$k]]),_sfc_main$s={name:"VsTableHeaderCell",status:"prototype",release:"0.0.1",components:{BTh:LoadingSpinner.Ea},props:{stackedHeading:{type:String,default:void 0}}};function _sfc_render$j(e,n,t,a,r,o){const s=vue.resolveComponent("BTh");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-header-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableHeaderCell=LoadingSpinner._export_sfc(_sfc_main$s,[["render",_sfc_render$j]]),_sfc_main$r={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:LoadingSpinner.Bn}};function _sfc_render$i(e,n,t,a,r,o){const s=vue.resolveComponent("BTbody");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableBody=LoadingSpinner._export_sfc(_sfc_main$r,[["render",_sfc_render$i]]),_sfc_main$q={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:LoadingSpinner.Je}};function _sfc_render$h(e,n,t,a,r,o){const s=vue.resolveComponent("BTr");return vue.openBlock(),vue.createBlock(s,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableRow=LoadingSpinner._export_sfc(_sfc_main$q,[["render",_sfc_render$h]]),_sfc_main$p={name:"VsTableDataCell",status:"prototype",release:"0.0.1",components:{BTd:LoadingSpinner.St},props:{stackedHeading:{type:String,default:null}}};function _sfc_render$g(e,n,t,a,r,o){const s=vue.resolveComponent("BTd");return vue.openBlock(),vue.createBlock(s,vue.mergeProps({"data-test":"vs-table-data-cell","stacked-heading":t.stackedHeading},e.$attrs,{scope:null}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableDataCell=LoadingSpinner._export_sfc(_sfc_main$p,[["render",_sfc_render$g]]),_sfc_main$o={name:"VsTableFooter",status:"prototype",release:"0.0.1",components:{BTfoot:LoadingSpinner.Pa}};function _sfc_render$f(e,n,t,a,r,o){const s=vue.resolveComponent("BTfoot");return vue.openBlock(),vue.createBlock(s,vue.mergeProps(e.$attrs,{role:"rowgroup"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableFooter=LoadingSpinner._export_sfc(_sfc_main$o,[["render",_sfc_render$f]]),_sfc_main$n={name:"VsSkiScotlandCard",status:"prototype",release:"0.0.1",components:{VsImg:LoadingSpinner.VsImg,VsHeading:LoadingSpinner.VsHeading,VsIcon:LoadingSpinner.VsIcon,VsWarning:LoadingSpinner.VsWarning,VsLoadingSpinner:LoadingSpinner.VsLoading,VsButton:LoadingSpinner.VsButton,VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter},props:{centreInfoUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},lastUpdatedLabel:{type:String,default:"Last Updated"},liftsLabel:{type:String,default:"Lifts"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},pisteMapLabel:{type:String,default:"View Piste Map"},moreDetailsLabel:{type:String,default:"More Details"},pisteMapLink:{type:String,default:""},moreDetailsLink:{type:String,required:!0,default:"#"}},data(){return{statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},runs:[],lifts:[],lastUpdate:"",jsDisabled:!0,isLoading:!0,displayError:!1}},mounted(){this.centreInfoUrl&&this.retrieveCentreInfo(),this.jsDisabled=!1},methods:{retrieveCentreInfo(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);LoadingSpinner.axios.get(this.centreInfoUrl).then(n=>{const t=this.cleanData(n.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(a=>a.runs).reduce((a,r)=>a.concat(r)).filter((a,r,o)=>r===o.findIndex(s=>s.name===a.name));n.runs=t}return n},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},a=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${a}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}this.runs=e}}},_hoisted_1$i={class:"card vs-ski-scotland-card","data-test":"vs-ski-scotland-card"},_hoisted_2$e={class:"vs-ski-scotland-card__img-container"},_hoisted_3$a={class:"card-body"},_hoisted_4$8={key:0,class:"text-center pb-200 position-relative"},_hoisted_5$7={"data-test":"vs-ski__status-label"},_hoisted_6$7={"data-test":"vs-ski__runs-label"},_hoisted_7$6={"data-test":"vs-ski__lifts-label"},_hoisted_8$4={"data-test":"vs-ski__open-label"},_hoisted_9$3={"data-test":"vs-ski__limited-patrol-label"},_hoisted_10$3={"data-test":"vs-ski__opening-label"},_hoisted_11$2={"data-test":"vs-ski__closed-label"},_hoisted_12$1={"data-test":"vs-ski__on-hold-label"},_hoisted_13$1={"data-test":"vs-ski__last-updated-label"};function _sfc_render$e(e,n,t,a,r,o){const s=vue.resolveComponent("VsImg"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsLoadingSpinner"),u=vue.resolveComponent("VsWarning"),c=vue.resolveComponent("VsTableHeaderCell"),d=vue.resolveComponent("VsTableHead"),f=vue.resolveComponent("VsIcon"),v=vue.resolveComponent("VsTableDataCell"),p=vue.resolveComponent("VsTableRow"),h=vue.resolveComponent("VsTableBody"),m=vue.resolveComponent("VsTableFooter"),_=vue.resolveComponent("VsTable"),g=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[vue.createElementVNode("div",_hoisted_2$e,[t.imgSrc?(vue.openBlock(),vue.createBlock(s,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-ski-scotland-card__img","data-test":"vs-ski-scotland-card__img"},null,8,["src","alt"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_3$a,[vue.createVNode(i,{level:"3","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-name")]),_:3}),r.jsDisabled||r.isLoading||r.displayError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$8,[!r.jsDisabled&&r.isLoading?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{class:"mb-100 d-block"}),vue.renderSlot(e.$slots,"data-loading")],64)):vue.createCommentVNode("",!0),!r.jsDisabled&&r.displayError?(vue.openBlock(),vue.createBlock(u,{key:1,size:"small","data-test":"vs-ski-scotland-card__error"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})):vue.createCommentVNode("",!0),r.jsDisabled?(vue.openBlock(),vue.createBlock(u,{key:2,size:"small","data-test":"vs-ski-scotland-card__js-disabled"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(_,{key:1,"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$7,vue.toDisplayString(t.statusLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$7,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$6,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-check",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_8$4,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.open)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.open)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.limitedPatrol||r.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(p,{key:0},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_9$3,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-timer",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_10$3,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.opening)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.opening)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-ban",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_11$2,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.closed)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.closed)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.onHold||r.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(p,{key:1},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050 fa-fw"}),vue.createElementVNode("span",_hoisted_12$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.onHold)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(v,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_13$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])):vue.createCommentVNode("",!0),vue.createVNode(g,{variant:"secondary",href:t.pisteMapLink,class:"mb-050",disabled:!t.pisteMapLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.pisteMapLabel),1)]),_:1},8,["href","disabled"]),vue.createVNode(g,{href:t.moreDetailsLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.moreDetailsLabel),1)]),_:1},8,["href"])])])}const SkiScotlandCard=LoadingSpinner._export_sfc(_sfc_main$n,[["render",_sfc_render$e]]),_sfc_main$m={name:"VsSkiScotlandStatus",status:"prototype",release:"0.0.1",components:{VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter,VsContainer:LoadingSpinner.VsContainer,VsRow:LoadingSpinner.VsRow,VsCol:LoadingSpinner.VsCol,VsAccordion,VsAccordionItem,VsIcon:LoadingSpinner.VsIcon,VsLink,VsHeading:LoadingSpinner.VsHeading,VsLoadingSpinner:LoadingSpinner.VsLoading,VsWarning:LoadingSpinner.VsWarning},props:{skiStatusUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},currentWeatherLabel:{type:String,default:"Current Weather"},detailedStatusLabel:{type:String,default:"Detailed Status"},difficultLabel:{type:String,default:"Difficult"},easyLabel:{type:String,default:"Easy"},intermediateLabel:{type:String,default:"Intermediate"},itinerariesLabel:{type:String,default:"Itineraries"},lastUpdatedLabel:{type:String,default:"Last Updated"},liftLabel:{type:String,default:"Lift"},liftsLabel:{type:String,default:"Lifts"},liftStatusLabel:{type:String,default:"Lift Status"},newsLabel:{type:String,default:"News From The Slopes"},otherLabel:{type:String,default:"Other"},roadsLabel:{type:String,default:"Road Status"},runLabel:{type:String,default:"Run"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},runStatusLabel:{type:String,default:"Run Status"},snowConditionsLabel:{type:String,default:"Snow Conditions Full Report"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},statusClosedLabel:{type:String,default:"Closed"},statusOpenLabel:{type:String,default:"Open"},statusOpeningLabel:{type:String,default:"Opening"},statusLimitedPatrolLabel:{type:String,default:"Limited Patrol"},statusOnHoldLabel:{type:String,default:"On Hold"},veryDifficultLabel:{type:String,default:"Very Difficult"},weatherForecastLabel:{type:String,default:"Weather Forecast"},greenLabel:{type:String,default:"Green"},blueLabel:{type:String,default:"Blue"},redLabel:{type:String,default:"Red"},blackLabel:{type:String,default:"Black"},orangeLabel:{type:String,default:"Orange"},greyLabel:{type:String,default:"Grey"}},data(){return{tokens:LoadingSpinner.designTokens,componentId:0,statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},lifts:[],runs:[],lastUpdate:"",report:"",currentWeather:"",weatherForecast:"",roadStatus:"",news:"",runLevels:[{colour:"green",colourToken:"",id:"easy",name:this.easyLabel,runs:[]},{colour:"blue",colourToken:"",id:"intermediate",name:this.intermediateLabel,runs:[]},{colour:"red",colourToken:"",id:"difficult",name:this.difficultLabel,runs:[]},{colour:"black",colourToken:"",id:"very-difficult",name:this.veryDifficultLabel,runs:[]},{colour:"orange",colourToken:"",id:"itineraries",name:this.itinerariesLabel,runs:[]},{colour:"grey",colourToken:"",id:"other",name:this.otherLabel,runs:[]}],jsDisabled:!0,isLoading:!0,displayError:!1,isCairngorms:!1}},computed:{filteredRunLevels(){return this.setColourToken().filter(n=>n.runs.length>0)}},mounted(){this.skiStatusUrl&&this.retrieveSkiStatus(),this.id=this._uid,this.jsDisabled=!1},methods:{retrieveSkiStatus(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);LoadingSpinner.axios.get(this.skiStatusUrl).then(n=>{const t=this.cleanData(n.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.processFullReport(t.report),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(a=>a.runs).reduce((a,r)=>a.concat(r)).filter((a,r,o)=>r===o.findIndex(s=>s.name===a.name));n.runs=t}if(n.runs)for(let t=0;t<n.runs.length;t++)n.runs[t].difficulty===null&&(n.runs[t].difficulty="orange");return n},processFullReport(e){this.report=e.runs,this.currentWeather=e.current_weather_conditions,this.weatherForecast=e.weather_forecast,this.roadStatus=e.access_roads,this.news=e.news_from_the_slopes},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},a=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${a}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let n=0;n<e.length;n++){switch(e[n].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}for(let t=0;t<this.runLevels.length;t++)this.runLevels[t].colour===e[n].difficulty&&this.runLevels[t].runs.push(e[n])}this.runs=e},getColourLabel(e){return this[`${e}Label`]},setColourToken(){return this.runLevels.map(({...e})=>({...e,colourToken:this.tokens[`vs-color-icon-ski-${e.id}`]}))}}},_hoisted_1$h={class:"vs-ski-scotland-status","data-test":"vs-ski-scotland-status"},_hoisted_2$d={"data-test":"vs-ski__status-label"},_hoisted_3$9={"data-test":"vs-ski__runs-label"},_hoisted_4$7={"data-test":"vs-ski__lifts-label"},_hoisted_5$6={"data-test":"vs-ski__open-label"},_hoisted_6$6={"data-test":"vs-ski__open-label"},_hoisted_7$5={"data-test":"vs-ski__opening-label"},_hoisted_8$3={"data-test":"vs-ski__closed-label"},_hoisted_9$2={"data-test":"vs-ski__open-label"},_hoisted_10$2={"data-test":"vs-ski__last-updated-label"},_hoisted_11$1=["innerHTML"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["data-test"],_hoisted_17={class:"visually-hidden"};function _sfc_render$d(e,n,t,a,r,o){const s=vue.resolveComponent("VsLoadingSpinner"),i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("VsContainer"),c=vue.resolveComponent("VsWarning"),d=vue.resolveComponent("VsHeading"),f=vue.resolveComponent("VsTableHeaderCell"),v=vue.resolveComponent("VsTableHead"),p=vue.resolveComponent("VsIcon"),h=vue.resolveComponent("VsTableDataCell"),m=vue.resolveComponent("VsTableRow"),_=vue.resolveComponent("VsTableBody"),g=vue.resolveComponent("VsTableFooter"),b=vue.resolveComponent("VsTable"),S=vue.resolveComponent("VsLink"),k=vue.resolveComponent("VsAccordionItem"),V=vue.resolveComponent("VsAccordion");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$h,[!r.jsDisabled&&r.isLoading?(vue.openBlock(),vue.createBlock(u,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(s),vue.renderSlot(e.$slots,"data-loading")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),!r.jsDisabled&&r.displayError?(vue.openBlock(),vue.createBlock(u,{key:1},{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(u,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[r.jsDisabled?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"6","data-test":"vs-ski__js-disabled"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})]),_:3})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(i,{key:1,cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-xs","data-test":"vs-ski__runs-lifts-status-label",class:"d-none d-md-block"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runsLiftsStatusLabel),1)]),_:1}),vue.createVNode(b,{"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$d,vue.toDisplayString(t.statusLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$9,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$7,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_5$6,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.open)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.open)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.limitedPatrol||r.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_6$6,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_7$5,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.opening)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.opening)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$3,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.closed)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.closed)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1}),r.statusSummary.runs.onHold||r.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(m,{key:1},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$2,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),r.runs.length?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.runs.onHold)+"/"+vue.toDisplayString(r.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(r.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_10$2,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"]),vue.createVNode(S,{href:`#vs-ski-scotland-status__detailed-status-${e.id}`,type:"default",class:"vs-ski-scotland-status__detailed-status-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailedStatusLabel),1)]),_:1},8,["href"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(i,{cols:"12",md:"5","offset-md":"1",class:"vs-ski-scotland-status__centre-info"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-information")]),_:3})]),_:3}),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(l,{key:0},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9",class:"vs-ski-scotland-status__full-report"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__snow-conditions-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.snowConditionsLabel),1)]),_:1}),vue.createElementVNode("div",{innerHTML:r.report},null,8,_hoisted_11$1),r.currentWeather.length?(vue.openBlock(),vue.createBlock(d,{key:0,level:"4","heading-style":"heading-xs","data-test":"vs-ski__current-weather-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.currentWeatherLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.currentWeather.length?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:r.currentWeather},null,8,_hoisted_12)):vue.createCommentVNode("",!0),r.weatherForecast.length?(vue.openBlock(),vue.createBlock(d,{key:2,level:"4","heading-style":"heading-xs","data-test":"vs-ski__weather-forecast-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.weatherForecastLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.weatherForecast.length?(vue.openBlock(),vue.createElementBlock("div",{key:3,innerHTML:r.weatherForecast},null,8,_hoisted_13)):vue.createCommentVNode("",!0),r.roadStatus.length?(vue.openBlock(),vue.createBlock(d,{key:4,level:"4","heading-style":"heading-xs","data-test":"vs-ski__roads-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.roadsLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.roadStatus.length?(vue.openBlock(),vue.createElementBlock("div",{key:5,innerHTML:r.roadStatus},null,8,_hoisted_14)):vue.createCommentVNode("",!0),r.news.length?(vue.openBlock(),vue.createBlock(d,{key:6,level:"4","heading-style":"heading-xs","data-test":"vs-ski__news-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.newsLabel),1)]),_:1})):vue.createCommentVNode("",!0),r.news.length?(vue.openBlock(),vue.createElementBlock("div",{key:7,innerHTML:r.news},null,8,_hoisted_15)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError?(vue.openBlock(),vue.createBlock(l,{key:1},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__lift-status-label",id:`vs-ski-scotland-status__detailed-status-${e.id}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftStatusLabel),1)]),_:1},8,["id"]),vue.createVNode(b,{"table-caption":t.liftStatusLabel,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftLabel),1)]),_:1})]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.lifts,L=>(vue.openBlock(),vue.createBlock(m,{key:L.name},{default:vue.withCtx(()=>[L.status==="0"||L.status===0?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="1"||L.status===1?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="2"||L.status===2?(vue.openBlock(),vue.createBlock(h,{key:2},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="3"||L.status===3?(vue.openBlock(),vue.createBlock(h,{key:3},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="4"||L.status===4?(vue.openBlock(),vue.createBlock(h,{key:4},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),!r.jsDisabled&&!r.isLoading&&!r.displayError&&r.runs.length?(vue.openBlock(),vue.createBlock(l,{key:2},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"3","heading-style":"heading-l","data-test":"vs-ski__run-status-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runStatusLabel),1)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.filteredRunLevels,L=>(vue.openBlock(),vue.createElementBlock("div",{key:L.name},[vue.createVNode(V,null,{default:vue.withCtx(()=>[vue.createVNode(k,{variant:"subtle","control-id":`accordion_item_${L.name}`,"colour-badge":L.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${L.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(o.getColourLabel(L.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(L.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(b,{"table-caption":`${L.colour} - ${L.name}`,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runLabel),1)]),_:1})]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(L.runs,$=>(vue.openBlock(),vue.createBlock(m,{key:$.name,"data-test":`vs-ski__${L.name}-row`},{default:vue.withCtx(()=>[$.status==="0"||$.status===0?(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ban",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="1"||$.status===1?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-check",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="2"||$.status===2?(vue.openBlock(),vue.createBlock(h,{key:2},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-timer",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="3"||$.status===3?(vue.openBlock(),vue.createBlock(h,{key:3},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-ski-boot-ski",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),$.status==="4"||$.status===4?(vue.openBlock(),vue.createBlock(h,{key:4},{default:vue.withCtx(()=>[vue.createVNode(p,{icon:"fa-regular fa-hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(h,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString($.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(h,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(r.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["table-caption"])]),_:2},1032,["control-id","colour-badge"])]),_:2},1024)]))),128))]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:3})])}const SkiScotlandStatus=LoadingSpinner._export_sfc(_sfc_main$m,[["render",_sfc_render$d]]),_sfc_main$l={name:"VsSkipTo",status:"prototype",release:"0.0.1",components:{VsLink},props:{skipToText:{type:String,required:!0},hasSearchLink:{type:Boolean,default:!0}},methods:{mainMenuFocus(){const e=document.getElementsByClassName("vs-mega-nav__menu__mobile")[0],n=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(n)){let t=n.getElementsByClassName("btn")[0];e.offsetParent!==null?(e.querySelectorAll(".btn.dropdown-toggle")[0].click(),t=document.getElementsByClassName("vs-mega-nav-accordion-item--level-1")[0].querySelectorAll(".vs-button.vs-accordion-toggle")[0],setTimeout(()=>{t.focus()},200)):t.focus()}},footerFocus(){const e=document.getElementsByClassName("vs-footer")[0];if(!this.isUndefined(e)){const n=e.getElementsByClassName("vs-footer-accordion-item")[0],t=n.getElementsByClassName("vs-link")[0],a=n.getElementsByClassName("vs-accordion-toggle")[0];a.offsetParent!==null&&!this.isUndefined(a)&&a.click(),!this.isUndefined(e)&&!this.isUndefined(t)&&(e.scrollIntoView(!0),setTimeout(()=>{t.focus()},200))}},isUndefined(e){return typeof e>"u"}}},_hoisted_1$g=["aria-label"],_hoisted_2$c={class:"vs-skip-to__label",id:"skip-to-label"};function _sfc_render$c(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-skip-to d-flex","data-test":"vs-skip-to","aria-label":t.skipToText},[vue.createElementVNode("p",_hoisted_2$c,vue.toDisplayString(t.skipToText)+": ",1),vue.createVNode(s,{href:"#main-nav","data-test":"vs-skip-to-main-menu",onClick:n[0]||(n[0]=i=>o.mainMenuFocus()),id:"main-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-menu-text")]),_:3}),t.hasSearchLink?(vue.openBlock(),vue.createBlock(s,{key:0,href:"#site-search-btn","data-test":"vs-skip-to-search",class:"vs-skip-to__search"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"search-text")]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(s,{href:"#main-heading","data-test":"vs-skip-to-main-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-content-text")]),_:3}),vue.createVNode(s,{href:"#site-footer",onClick:n[1]||(n[1]=i=>o.footerFocus()),"data-test":"vs-skip-to-footer"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"footer-text")]),_:3})],8,_hoisted_1$g)}const SkipTo=LoadingSpinner._export_sfc(_sfc_main$l,[["render",_sfc_render$c]]),_sfc_main$k={name:"VsSocialCreditLink",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon:LoadingSpinner.VsIcon},props:{credit:{type:String,required:!0},socialPostUrl:{type:String,required:!0},source:{type:String,required:!0,validator:e=>e.match(/(instagram)/)}}},_hoisted_1$f={class:"social-credit","data-test":"vs-social-credit-link"};function _sfc_render$b(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[t.source?(vue.openBlock(),vue.createBlock(s,{key:0,icon:`fa-brands fa-${t.source}`,variant:"inverse",size:"xs",class:"me-025","data-test":"vs-social-credit-link__icon"},null,8,["icon"])):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"social-credit__link","data-test":"vs-social-credit-link__link",href:t.socialPostUrl,variant:"on-dark",type:"external"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.credit),1)]),_:1},8,["href"])])}const SocialCreditLink=LoadingSpinner._export_sfc(_sfc_main$k,[["render",_sfc_render$b]]),_sfc_main$j={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:LoadingSpinner.VsButton,VsHeading:LoadingSpinner.VsHeading,VsModuleWrapper,BPopover:LoadingSpinner.Ka,VsRow:LoadingSpinner.VsRow,VsContainer:LoadingSpinner.VsContainer,VsCol:LoadingSpinner.VsCol},provide(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data(){return{copyLink:!1,renderPopover:!1}},mounted(){this.renderPopover=!0},methods:{onClose(e){this.$refs.popover.hide(e)},onShown(){this.focusFirst()},onHidden(){this.focusRef(this.$refs.shareButton)},onHide(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink(){this.copyLink=!0},focusRef(e){this.$nextTick(()=>{this.$nextTick(()=>{(e.$el||e).focus()})})},focusFirst(){this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()})})},tabFromClose(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}};function _sfc_render$a(e,n,t,a,r,o){const s=vue.resolveComponent("VsButton"),i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRow"),u=vue.resolveComponent("BPopover"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("VsModuleWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-social-share",t.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[t.noJs?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(s,{key:0,class:"vs-social-share__share-btn",variant:"subtle",icon:"fa-regular fa-share-nodes",id:`vs-social-share-popover--${t.id}`,ref:"shareButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.shareBtnText),1)]),_:1},8,["id"])),!t.noJs&&r.renderPopover?(vue.openBlock(),vue.createBlock(u,{key:1,"custom-class":"vs-social-share__popover",target:`vs-social-share-popover--${t.id}`,click:!0,container:"body",placement:"left-end",offset:"-100",onShown:o.onShown,onHidden:o.onHidden,onHide:o.onHide,ref:"popover"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3",tabindex:"0","heading-style":"heading-m",ref:"shareHeader",class:"vs-social-share__header",onKeydown:n[0]||(n[0]=vue.withKeys(v=>o.tabBackFromHidden(v),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1},512),vue.createVNode(l,{ref:"popoverShareRow"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{onCopyLink:o.onCopyLink})]),_:3},512),vue.createVNode(s,{"icon-only":"",class:"vs-social-share__close-btn",icon:"vs-icon-control-dismiss",variant:"subtle",ref:"closeButton",onClick:o.onClose,onKeydown:n[1]||(n[1]=vue.withKeys(v=>o.tabFromClose(v),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeAltText),1)]),_:1},8,["onClick"])]),_:3},8,["target","onShown","onHidden","onHide"])):vue.createCommentVNode("",!0),t.noJs?(vue.openBlock(),vue.createBlock(f,{key:2,class:"vs-social-share--module-list"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2","heading-style":"heading-l",class:"mb-300 mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(l,{class:"justify-content-center"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0)],2)}const SocialShare=LoadingSpinner._export_sfc(_sfc_main$j,[["render",_sfc_render$a]]),socialMediaData={facebook:{color:"#1877f2",icon:"fa-brands fa-facebook",getUrl:(e,n)=>`https://www.facebook.com/sharer/sharer.php?u=${e}&t=${n}`},"x-twitter":{color:"#0F1419",icon:"fa-brands fa-x-twitter",getUrl:(e,n)=>`https://twitter.com/intent/tweet?text=${n}%20@VisitScotland&url=${e}`},pinterest:{color:"#E60023",icon:"fa-brands fa-pinterest",getUrl:e=>`https://www.pinterest.com/pin/create/button/?url=${e}`},whatsapp:{color:"#455a64",icon:"fa-brands fa-whatsapp",getUrl:(e,n)=>`https://wa.me/?text=${n}%20-%20${e}`},email:{color:"#000000",icon:"fa-regular fa-envelope",getUrl:(e,n)=>`mailto:?body=${n}%20-%20${e}&subject=${n}`},link:{color:"#000000",icon:"fa-regular fa-link",getUrl:()=>"#"}},_sfc_main$i={name:"VsSocialShareItem",status:"prototype",release:"0.0.1",components:{VsCol:LoadingSpinner.VsCol,VsLink,VsIcon:LoadingSpinner.VsIcon},mixins:[LoadingSpinner.dataLayerMixin],inject:{referringPageUrl:{default:""},pageTitle:{default:""},noJs:{default:""}},props:{name:{type:String,required:!0,validator:e=>e.match(/(facebook|twitter|pinterest|link|email|whatsapp)/)},linkText:{type:String,required:!0},linkCopiedText:{type:String,default:""}},emits:["copyLinkClicked"],data(){return{show:!1}},computed:{iconColour(){var e;return((e=socialMediaData[this.name])==null?void 0:e.color)||"#200F2E"},iconName(){var e;return((e=socialMediaData[this.name])==null?void 0:e.icon)||"fa-solid fa-link"},shareUrl(){const e=socialMediaData[this.name];return(e==null?void 0:e.getUrl(this.referringPageUrl,this.encodedPageTitle))||"#"},encodedPageTitle(){return encodeURI(this.pageTitle)}},methods:{copyToClipboard(e){if(this.name==="link"){if(this.$emit("copyLinkClicked"),!navigator.clipboard)return;navigator.clipboard.writeText&&navigator.clipboard.writeText(this.referringPageUrl),this.show=!0,setTimeout(()=>{this.show=!1},2e3)}this.trackShareClick(e)},trackShareClick(e){this.createDataLayerObject("socialShareDataEvent",e,this.href)}}},_hoisted_1$e={class:"vs-social-share-item__text"};function _sfc_render$9(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon"),i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(l,{class:"vs-social-share-item","data-test":"vs-social-share-item",cols:4,md:o.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-social-share-item__link",href:o.shareUrl,onClick:n[0]||(n[0]=u=>o.copyToClipboard(u)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(s,{icon:o.iconName,"custom-colour":o.iconColour,size:"xl","small-size":"lg"},null,8,["icon","custom-colour"]),vue.createElementVNode("span",_hoisted_1$e,vue.toDisplayString(r.show?t.linkCopiedText:t.linkText),1)]),_:1},8,["href","id"])]),_:1},8,["md"])}const SocialShareItem=LoadingSpinner._export_sfc(_sfc_main$i,[["render",_sfc_render$9]]),_sfc_main$h={name:"VsSpotlightSection",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,VsBody:LoadingSpinner.VsBody,VsButton:LoadingSpinner.VsButton},props:{heading:{type:String,required:!0},description:{type:String,default:""},ctaLink:{type:String,required:!0},ctaText:{type:String,required:!0},imageSrc:{type:String,default:""},compact:{type:Boolean,default:!1}},computed:{spotlightSectionClasses(){return{"vs-spotlight-section":!0,"vs-spotlight-section--compact":this.compact,"vs-spotlight-section--standard":!this.compact,"vs-spotlight-section--no-image":!this.imageSrc}}}},_hoisted_1$d={class:"vs-spotlight-section__overlay"},_hoisted_2$b={class:"row w-100 m-0"},_hoisted_3$8={class:"col-12 col-sm-7 col-md-8 col-lg-7 col-xl-6 align-self-end p-0"},_hoisted_4$6={key:0,class:"col-12 col-sm-5 col-md-4 col-lg-5 col-xl-6 align-self-sm-end text-sm-end p-0"};function _sfc_render$8(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("VsBody"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(o.spotlightSectionClasses),style:vue.normalizeStyle(t.imageSrc?{backgroundImage:`url(${t.imageSrc})`}:{}),"data-test":"vs-spotlight-section"},[vue.createElementVNode("div",_hoisted_1$d,[vue.createElementVNode("div",_hoisted_2$b,[vue.createElementVNode("div",_hoisted_3$8,[vue.createVNode(s,{class:"vs-spotlight-section__heading",level:"2","no-margins":"","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1}),t.description?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-spotlight-section__description","no-margins":""},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.description),1)]),_:1})):vue.createCommentVNode("",!0),t.compact?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(l,{key:1,class:"vs-spotlight-section__cta-button",href:t.ctaLink,size:"sm",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"]))]),t.compact?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$6,[vue.createVNode(l,{class:"vs-spotlight-section__cta-button",href:t.ctaLink,size:"sm",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])])):vue.createCommentVNode("",!0)])])],6)}const SpotlightSection=LoadingSpinner._export_sfc(_sfc_main$h,[["render",_sfc_render$8]]),_hoisted_1$c={class:"vs-styled-list__list"},_hoisted_2$a={class:"vs-styled-list__source"},_sfc_main$g={__name:"StyledList",props:{source:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${n.variant}`]),"data-test":"vs-styled-list"},[vue.createVNode(vue.unref(LoadingSpinner.VsContainer),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsRow),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsCol),{md:n.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$c,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),t.$slots["list-source"]&&t.$slots["list-source"]()?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$a,[vue.renderSlot(t.$slots,"list-source")])]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2))}},_hoisted_1$b={class:"vs-styled-list__item","data-test":"vs-styled-list__item"},_sfc_main$f={__name:"StyledListItem",props:{heading:{type:String,required:!0},headingLevel:{type:Number,default:3,validator:e=>LoadingSpinner.lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},imageSrc:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)},anchorLink:{type:String,default:""}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$b,[vue.createVNode(vue.unref(LoadingSpinner.VsRow),null,{default:vue.withCtx(()=>[n.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(LoadingSpinner.VsImg,{src:n.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(LoadingSpinner.VsCol),{md:n.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[n.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsImg,{key:0,src:n.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsHeading,{level:n.headingLevel,"heading-style":"heading-xxs",id:e.anchorLink?e.anchorLink:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.heading),1)]),_:1},8,["level","id"]),vue.createVNode(LoadingSpinner.VsBody,null,{default:vue.withCtx(()=>[vue.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["md"])]),_:3})]))}},_sfc_main$e={name:"VsSummaryBoxList",status:"prototype",release:"0.0.1"},_hoisted_1$a={class:"vs-summary-box","data-test":"vs-summary-box-list"},_hoisted_2$9={class:"vs-summary-box__list list-unstyled d-flex flex-wrap p-050 p-sm-075"};function _sfc_render$7(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("ul",_hoisted_2$9,[vue.renderSlot(e.$slots,"default")])])}const SummaryBoxList=LoadingSpinner._export_sfc(_sfc_main$e,[["render",_sfc_render$7]]),_sfc_main$d={name:"VsSummaryBoxListItem",status:"prototype",release:"0.0.1",components:{VsIcon:LoadingSpinner.VsIcon},props:{text:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},iconLabel:{type:String,default:""}}},_hoisted_1$9={class:"vs-summary-box-item position-relative","data-test":"vs-summary-box-list-item"},_hoisted_2$8={key:0,class:"text-center vs-summary-box-item__label d-block position-absolute w-100","data-test":"vs-summary-box-list-item-label"},_hoisted_3$7={class:"vs-summary-box-item__label-inner"},_hoisted_4$5={key:1,class:"vs-summary-box-item__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-list-item-display"},_hoisted_5$5={key:2,class:"vs-summary-box-item__icon d-flex align-items-center position-absolute justify-content-center w-100","data-test":"vs-summary-box-list-item-icon-with-label"},_hoisted_6$5={class:"icon-wrapper text-end"},_hoisted_7$4={class:"text-wrapper d-block w-auto pt-100"};function _sfc_render$6(e,n,t,a,r,o){const s=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$9,[t.label?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.createElementVNode("span",_hoisted_3$7,vue.toDisplayString(t.label),1)])):vue.createCommentVNode("",!0),t.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createElementVNode("span",null,vue.toDisplayString(t.text),1)])):vue.createCommentVNode("",!0),t.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$5,[vue.createElementVNode("div",_hoisted_6$5,[vue.createVNode(s,{icon:t.icon,size:"xl"},null,8,["icon"])]),vue.createElementVNode("div",_hoisted_7$4,[vue.createElementVNode("span",null,vue.toDisplayString(t.iconLabel),1)])])):vue.createCommentVNode("",!0)])}const SummaryBoxListItem=LoadingSpinner._export_sfc(_sfc_main$d,[["render",_sfc_render$6],["__scopeId","data-v-245aae0b"]]),_sfc_main$c={name:"VsSummaryBoxDistanceListItem",status:"prototype",release:"0.0.1",props:{miles:{type:String,default:""},kilometres:{type:String,default:""},distanceLabel:{type:String,default:"Distance"},milesLabel:{type:String,default:"miles"},kilometresLabel:{type:String,default:"km"},showMiles:{type:Boolean,default:!0}}},_hoisted_1$8={class:"vs-summary-box-distance position-relative","data-test":"vs-summary-box-distance-list-item"},_hoisted_2$7={key:0,class:"text-center vs-summary-box-distance__label d-block position-absolute w-100","data-test":"vs-summary-box-distance-list-item-label"},_hoisted_3$6={class:"vs-summary-box-distance__label-inner"},_hoisted_4$4={class:"vs-summary-box-distance__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-distance-display"},_hoisted_5$4={class:"vs-summary-box-distance__display-entry"},_hoisted_6$4={class:"vs-summary-box-distance__display-value"},_hoisted_7$3={class:"vs-summary-box-distance__display-label"},_hoisted_8$2={class:"vs-summary-box-distance__display-entry"},_hoisted_9$1={class:"vs-summary-box-distance__display-value"},_hoisted_10$1={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$8,[t.distanceLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[vue.createElementVNode("span",_hoisted_3$6,vue.toDisplayString(t.distanceLabel),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",_hoisted_5$4,[vue.createElementVNode("span",_hoisted_6$4,vue.toDisplayString(t.miles),1),vue.createElementVNode("span",_hoisted_7$3,vue.toDisplayString(t.milesLabel),1)]),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),vue.createElementVNode("div",_hoisted_8$2,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_10$1,vue.toDisplayString(t.kilometresLabel),1)])])])}const SummaryBoxDistanceListItem=LoadingSpinner._export_sfc(_sfc_main$c,[["render",_sfc_render$5],["__scopeId","data-v-935b6579"]]),_sfc_main$b={name:"VsTabs",status:"prototype",release:"0.0.1",components:{BTabs:LoadingSpinner.vc},provide(){return{noContainer:vue.computed(()=>this.noContainer)}},props:{noContainer:{type:Boolean,default:!1}}};function _sfc_render$4(e,n,t,a,r,o){const s=vue.resolveComponent("BTabs");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(t.noContainer?"vs-tabs--no-container":"vs-tabs"),"data-test":"vs-tabs"},[vue.createVNode(s,{"no-container":t.noContainer,align:t.noContainer?"center":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["no-container","align"])],2)}const Tabs=LoadingSpinner._export_sfc(_sfc_main$b,[["render",_sfc_render$4]]),_sfc_main$a={name:"VsTabItem",status:"prototype",release:"0.0.1",components:{VsHeading:LoadingSpinner.VsHeading,BTab:LoadingSpinner.dc},mixins:[LoadingSpinner.dataLayerMixin],inject:["noContainer"],props:{title:{type:String,required:!0}},methods:{trackClick(e){this.createDataLayerObject("tabClickEvent",e,null)}}};function _sfc_render$3(e,n,t,a,r,o){const s=vue.resolveComponent("VsHeading"),i=vue.resolveComponent("BTab");return vue.openBlock(),vue.createBlock(i,{class:"vs-tab__item","data-test":"vs-tab__item","title-link-class":o.noContainer?"vs-tab-link--no-container vs-heading":"vs-tab-link vs-heading",title:t.title,onClick:o.trackClick},{default:vue.withCtx(()=>[vue.createVNode(s,{level:"3","heading-style":"heading-xxs",class:"vs-tab__item__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.renderSlot(e.$slots,"default")]),_:3},8,["title-link-class","title","onClick"])}const TabItem=LoadingSpinner._export_sfc(_sfc_main$a,[["render",_sfc_render$3]]),_sfc_main$9={name:"VsTag",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,required:!0}}};function _sfc_render$2(e,n,t,a,r,o){const s=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(s,{class:"vs-tag me-050 mb-100","data-test":"vs-tag",href:t.href},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])}const Tag=LoadingSpinner._export_sfc(_sfc_main$9,[["render",_sfc_render$2]]),_sfc_main$8={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[LoadingSpinner.dataLayerMixin],props:{payload:{type:Object,default:()=>{}}},mounted(){this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",()=>{this.dataLayerStore.setTestRun(!0),this.dataLayerStore.setPageUrl(window.location.href)}),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload(e){e!==void 0&&Object.keys(e).forEach(n=>{const t=n.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[n]})})}}},_hoisted_1$7={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,n,t,a,r,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$7)}const TagManagerWrapper=LoadingSpinner._export_sfc(_sfc_main$8,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
|
|
331
331
|
* @link https://github.com/gajus/sister for the canonical source repository
|
|
332
332
|
* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
|
|
333
|
-
*/Sister=function(){var e={},n={};return e.on=function(t,a){var r={name:t,handler:a};return n[t]=n[t]||[],n[t].unshift(r),r},e.off=function(t){var a=n[t.name].indexOf(t);a!==-1&&n[t.name].splice(a,1)},e.trigger=function(t,a){var r=n[t],o;if(r)for(o=r.length;o--;)r[o].handler(a)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,n=e*60,t=n*60,a=t*24,r=a*7,o=a*365.25;ms=function(c,d){d=d||{};var f=typeof c;if(f==="string"&&c.length>0)return s(c);if(f==="number"&&isFinite(c))return d.long?l(c):i(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var f=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*r;case"days":case"day":case"d":return f*a;case"hours":case"hour":case"hrs":case"hr":case"h":return f*t;case"minutes":case"minute":case"mins":case"min":case"m":return f*n;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function i(c){var d=Math.abs(c);return d>=a?Math.round(c/a)+"d":d>=t?Math.round(c/t)+"h":d>=n?Math.round(c/n)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=a?u(c,d,a,"day"):d>=t?u(c,d,t,"hour"):d>=n?u(c,d,n,"minute"):d>=e?u(c,d,e,"second"):c+" ms"}function u(c,d,f,v){var p=d>=f*1.5;return Math.round(c/f)+" "+v+(p?"s":"")}return ms}function setup(e){t.debug=t,t.default=t,t.coerce=l,t.disable=s,t.enable=r,t.enabled=i,t.humanize=requireMs(),t.destroy=u,Object.keys(e).forEach(c=>{t[c]=e[c]}),t.names=[],t.skips=[],t.formatters={};function n(c){let d=0;for(let f=0;f<c.length;f++)d=(d<<5)-d+c.charCodeAt(f),d|=0;return t.colors[Math.abs(d)%t.colors.length]}t.selectColor=n;function t(c){let d,f=null,v,p;function h(...g){if(!h.enabled)return;const m=h,_=Number(new Date),b=_-(d||_);m.diff=b,m.prev=d,m.curr=_,d=_,g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let S=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(V,L)=>{if(V==="%%")return"%";S++;const $=t.formatters[L];if(typeof $=="function"){const A=g[S];V=$.call(m,A),g.splice(S,1),S--}return V}),t.formatArgs.call(m,g),(m.log||t.log).apply(m,g)}return h.namespace=c,h.useColors=t.useColors(),h.color=t.selectColor(c),h.extend=a,h.destroy=t.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(v!==t.namespaces&&(v=t.namespaces,p=t.enabled(c)),p),set:g=>{f=g}}),typeof t.init=="function"&&t.init(h),h}function a(c,d){const f=t(this.namespace+(typeof d>"u"?":":d)+c);return f.log=this.log,f}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];const d=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of d)f[0]==="-"?t.skips.push(f.slice(1)):t.names.push(f)}function o(c,d){let f=0,v=0,p=-1,h=0;for(;f<c.length;)if(v<d.length&&(d[v]===c[f]||d[v]==="*"))d[v]==="*"?(p=v,h=f,v++):(f++,v++);else if(p!==-1)v=p+1,h++,f=h;else return!1;for(;v<d.length&&d[v]==="*";)v++;return v===d.length}function s(){const c=[...t.names,...t.skips.map(d=>"-"+d)].join(",");return t.enable(""),c}function i(c){for(const d of t.skips)if(o(c,d))return!1;for(const d of t.names)if(o(c,d))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}var common=setup;(function(e,n){var t={};n.formatArgs=r,n.save=o,n.load=s,n.useColors=a,n.storage=i(),n.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;u.splice(1,0,c,"color: inherit");let d=0,f=0;u[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(d++,v==="%c"&&(f=d))}),u.splice(f,0,c)}n.log=console.debug||console.log||(()=>{});function o(u){try{u?n.storage.setItem("debug",u):n.storage.removeItem("debug")}catch{}}function s(){let u;try{u=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=t.DEBUG),u}function i(){try{return localStorage}catch{}}e.exports=common(n);const{formatters:l}=e.exports;l.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=n.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=PlayerStatesExports,a=r(t);function r(o){return o&&o.__esModule?o:{default:o}}n.default={pauseVideo:{acceptableStates:[a.default.ENDED,a.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[a.default.ENDED,a.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[a.default.ENDED,a.default.PLAYING,a.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=n.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=n.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=n.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=browserExports,a=c(t),r=FunctionStateMapExports,o=c(r),s=eventNamesExports,i=c(s),l=functionNamesExports,u=c(l);function c(v){return v&&v.__esModule?v:{default:v}}const d=(0,a.default)("youtube-player"),f={};f.proxyEvents=v=>{const p={};for(const h of i.default){const g="on"+h.slice(0,1).toUpperCase()+h.slice(1);p[g]=m=>{d('event "%s"',g,m),v.trigger(h,m)}}return p},f.promisifyPlayer=(v,p=!1)=>{const h={};for(const g of u.default)p&&o.default[g]?h[g]=(...m)=>v.then(_=>{const b=o.default[g],S=_.getPlayerState(),k=_[g].apply(_,m);return b.stateChangeRequired||Array.isArray(b.acceptableStates)&&!b.acceptableStates.includes(S)?new Promise(V=>{const L=()=>{const $=_.getPlayerState();let A;typeof b.timeout=="number"&&(A=setTimeout(()=>{_.removeEventListener("onStateChange",L),V()},b.timeout)),Array.isArray(b.acceptableStates)&&b.acceptableStates.includes($)&&(_.removeEventListener("onStateChange",L),clearTimeout(A),V())};_.addEventListener("onStateChange",L)}).then(()=>k):k}):h[g]=(...m)=>v.then(_=>_[g].apply(_,m));return h},n.default=f,e.exports=n.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(n,t,a){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof t=="function"&&(a=t,t={}),t=t||{},a=a||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async="async"in t?!!t.async:!0,o.src=n,t.attrs&&setAttributes(o,t.attrs),t.text&&(o.text=""+t.text);var s="onload"in o?stdOnEnd:ieOnEnd;s(o,a),o.onload||stdOnEnd(o,a),r.appendChild(o)};function setAttributes(e,n){for(var t in n)e.setAttribute(t,n[t])}function stdOnEnd(e,n){e.onload=function(){this.onerror=this.onload=null,n(null,e)},e.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,n){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,n(null,e))}}(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=loadScript,a=r(t);function r(o){return o&&o.__esModule?o:{default:o}}n.default=o=>new Promise(i=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){i(window.YT);return}else{const u=window.location.protocol==="http:"?"http:":"https:";(0,a.default)(u+"//www.youtube.com/iframe_api",c=>{c&&o.trigger("error",c)})}const l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l&&l(),i(window.YT)}}),e.exports=n.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=sister,a=l(t),r=YouTubePlayerExports,o=l(r),s=loadYouTubeIframeApiExports,i=l(s);function l(c){return c&&c.__esModule?c:{default:c}}let u;n.default=(c,d={},f=!1)=>{const v=(0,a.default)();if(u||(u=(0,i.default)(v)),d.events)throw new Error("Event handlers cannot be overwritten.");if(typeof c=="string"&&!document.getElementById(c))throw new Error('Element "'+c+'" does not exist.');d.events=o.default.proxyEvents(v);const p=new Promise(g=>{typeof c=="object"&&c.playVideo instanceof Function?g(c):u.then(m=>{const _=new m.Player(c,d);return v.on("ready",()=>{g(_)}),null})}),h=o.default.promisifyPlayer(p,f);return h.on=v.on,h.off=v.off,h},e.exports=n.default})(dist,dist.exports);var distExports=dist.exports;const player=LoadingSpinner.getDefaultExportFromCjs(distExports),UNSTARTED=-1,ENDED=0,PLAYING=1,PAUSED=2,BUFFERING=3,CUED=5,VueYoutube={name:"Youtube",props:{videoId:String,playerVars:{type:Object,default:()=>({})},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},resize:{type:Boolean,default:!1},resizeDelay:{type:Number,default:100},nocookie:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!1}},data(){return{player:{},events:{[UNSTARTED]:"unstarted",[PLAYING]:"playing",[PAUSED]:"paused",[ENDED]:"ended",[BUFFERING]:"buffering",[CUED]:"cued"},resizeTimeout:null}},computed:{aspectRatio(){return this.width/this.height}},methods:{playerReady(e){this.$emit("ready",e.target)},playerStateChange(e){e.data!==null&&e.data!==UNSTARTED&&this.$emit(this.events[e.data],e.target)},playerError(e){this.$emit("error",e.target)},updatePlayer(e){if(!e){this.player.stopVideo();return}const n={videoId:e};if(typeof this.playerVars.start=="number"&&(n.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(n.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(n);return}this.player.cueVideoById(n)},resizeProportionally(){this.player.getIframe().then(e=>{const n=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=n/this.aspectRatio;this.player.setSize(n,t)})},onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resizeProportionally,this.resizeDelay)}},watch:{videoId:"updatePlayer",resize(e){e?(window.addEventListener("resize",this.onResize),this.resizeProportionally()):(window.removeEventListener("resize",this.onResize),this.player.setSize(this.width,this.height))},width(e){this.player.setSize(e,this.height)},height(e){this.player.setSize(this.width,e)}},beforeUnmount(){this.player!==null&&this.player.destroy&&(this.player.destroy(),delete this.player),this.resize&&window.removeEventListener("resize",this.onResize)},mounted(){window.YTConfig={host:"https://www.youtube.com/iframe_api"};const e=this.nocookie?"https://www.youtube-nocookie.com":"https://www.youtube.com";this.player=player(this.$el,{host:e,width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange),this.player.on("error",this.playerError),this.resize&&window.addEventListener("resize",this.onResize),this.fitParent&&this.resizeProportionally()},render(){return vue.h("div")}};let videoStore=null;const cookieValues=cookieValues$5.youtube,_sfc_main$7={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:LoadingSpinner.VsWarning,VueYoutube},mixins:[LoadingSpinner.dataLayerMixin,cookieCheckerMixin],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},requiredCookies:cookieValues,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError(){return!this.cookiesAllowed&&this.cookiesLoaded===!0||this.cookiesLoaded===!1},warningText(){let e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),!this.cookiesAllowed&&this.cookiesLoaded===!0&&(e=this.noCookiesMessage),e},player(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted(){this.jsDisabled=jsIsDisabled(),videoStore=useVideoStore(),this.setEventListeners()},methods:{async playerReady(){await this.getPlayerDetails(),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo())},async playVideo(){this.player&&await this.player.playVideo()},async pauseVideo(){this.player&&await this.player.pauseVideo()},async stopVideo(){this.player&&await this.player.stopVideo()},youtubePlaying(){this.analyticsEvent("play")},youtubePaused(){this.analyticsEvent("pause")},youtubeEnded(){this.analyticsEvent("ended")},analyticsEvent(e){let n=0,t=0;this.player.getCurrentTime().then(a=>(n=a,this.player?this.player.getDuration():null)).then(a=>{t=a}).then(()=>{const a=n/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(a)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const n=Math.floor(e/60),t=Math.round(e-n*60);this.duration.minutes=n,this.duration.seconds=t;const a=this.getRoundedMinutes(n,t);this.duration.roundedMinutes=this.formatSingularOrPlural(a)},getRoundedMinutes(e,n){return n<30&&e!==0?e:e+1},formatSingularOrPlural(e){return e===1?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad(e){return e>=10?e:`0${e}`},storeVideoDetails(){videoStore.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:this.duration.minutes*60+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners(){this.emitter&&this.emitter.on("video-controls",e=>{e.id===this.videoId&&(e.action==="modal-opened"&&this.playVideo(),e.action==="modal-closed"&&this.stopVideo(),e.action==="play"?this.playVideo():e.action==="pause"&&this.pauseVideo())})}}},_hoisted_1$6={key:0,class:"vs-video","data-test":"vs-video"},_hoisted_2$6={class:"vs-video__iframe-wrapper"},_hoisted_3$5={key:0};function _sfc_render(e,n,t,a,r,o){const s=vue.resolveComponent("VueYoutube"),i=vue.resolveComponent("VsWarning");return r.reRendering?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",_hoisted_2$6,[e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(s,{autoplay:0,"video-id":t.videoId,vars:r.playerVars,ref:"youtube",nocookie:!0,onPlaying:o.youtubePlaying,onPaused:o.youtubePaused,onEnded:o.youtubeEnded,onReady:o.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"])])):vue.createCommentVNode("",!0),o.showError?(vue.openBlock(),vue.createBlock(i,{key:1,type:e.cookiesLoaded===!0?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[!e.cookiesAllowed&&e.cookiesLoaded===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.cookieBtnText),1)]),key:"0"}:void 0]),1032,["type"])):vue.createCommentVNode("",!0),vue.createVNode(i,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})])]))}const Video=LoadingSpinner._export_sfc(_sfc_main$7,[["render",_sfc_render]]),__default__={name:"VsDivider"},_sfc_main$6=Object.assign(__default__,{props:{variant:{type:String,required:!1,validator:e=>e.match(/(primary|secondary|inverse)/),default:"primary"}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("hr",{class:vue.normalizeClass(["vs-divider",n.variant?`vs-divider--variant-${n.variant}`:null]),"data-test":"vs-divider"},null,2))}});function cleanData$1(e){return e.TypedDocuments.map(a=>{var r;return{id:a.Fields.Id.Value||"",title:a.Fields.Title.Value||"",description:a.Fields.Description.Value||"",imgSrc:((r=a.Fields.Image)==null?void 0:r.Value)||"",url:a.Fields.Url.Value||"",dataSrc:"cludo",categoryCard:a.Fields.categoryCard.Value||""}})}async function cludoSearch(e,n,t,a,r){const{apiKey:o,customerId:s,engineId:i}=n,l=`https://api-eu1.cludo.com/api/v3/${s}/${i}/search`,u=`${s}:${o}`,c=useFederatedSearchStore();if(c.eventsApiError=!1,c.cludoError=!1,!n)return c.cludoError=!0,c.isLoading=!1,{results:[],totalResults:0};if(r==="events")return{results:[],totalResults:0};try{const d=await fetch(l,{method:"POST",body:JSON.stringify({query:e||"*",operator:"or",responseType:"JsonObject",perPage:r?12:6,page:t,facets:{Category:r?[r]:null}}),headers:{"Content-Type":"application/json",Authorization:`Basic ${btoa(u)}`}});if(!d.ok)throw c.cludoError=!0,c.isLoading=!1,new Error(`Cludo response message: ${d.status}`);const f=await d.json();return{results:cleanData$1(f),totalResults:f.TotalDocument}}catch{return c.cludoError=!0,c.isLoading=!1,{results:[],totalResults:0}}}function cleanData(e){return e.events.map(a=>{var r,o,s,i,l,u,c;return{id:a.id,parentId:a.parentId,title:a.name,description:((o=(r=a.descriptions)==null?void 0:r[0])==null?void 0:o.description)||"",imgSrc:((i=(s=a.images)==null?void 0:s[0])==null?void 0:i.url)||"",url:((u=(l=a.performances)==null?void 0:l[0])==null?void 0:u.url)||"",placeUrl:a.place.website,location:a.place.town,startDate:a.startFormatted,endDate:a.endFormatted,minPrice:(c=a.minPrice)==null?void 0:c.toString(),dataSrc:"data-thistle",categoryCard:a.categoryCard||""}})}async function eventSearch(e,n,t,a,r,o,s,i,l){const u=useFederatedSearchStore();if(u.eventsApiError=!1,u.cludoError=!1,a==="events"||!a){let c=`${e}?query=${n}&lang=${l}`;c=t>1?`${c}&page=${t}`:c,c=o!==""?`${c}&startDate=${o}`:c,c=s!==""?`${c}&endDate=${s}`:c,c=i?`${c}&sort=${i}`:c,c=a==="events"?`${c}&pageSize=12`:`${c}&pageSize=6`,r.forEach(d=>{c+=`&category=${d}`});try{const d=await fetch(c);if(!d.ok)throw u.isLoading=!1,u.eventsApiError=!0,new Error(`Events response message: ${d.status}`);const f=await d.json();return{results:cleanData(f),totalResults:f.totalResults}}catch{return u.isLoading=!1,u.eventsApiError=!0,{results:[],totalResults:0}}}else return{results:[],totalResults:0}}async function cludoAutocomplete(e,n){const{apiKey:t,customerId:a,engineId:r}=n,s=`https://api-eu1.cludo.com/api/v3/${a}/${r}/Autocomplete`,i=`${a}:${t}`;try{const l=await fetch(s,{method:"POST",body:JSON.stringify({text:e}),headers:{"Content-Type":"application/json",Authorization:`Basic ${btoa(i)}`}});if(!l.ok)throw new Error(`Autocomplete search error ${l.status}`);return await l.json()}catch(l){throw new Error(`Autocomplete search error: ${l}`)}}function dataLayerComposable(){const e=LoadingSpinner.useDataLayerStore(),n=vue.ref(!1),t=vue.computed(()=>e.pageUrl);function a(l,u){const c={};return l.forEach(d=>{c[d]=u[d]||void 0,d==="language"&&c[d]===void 0&&(c[d]=u.site_language||void 0)}),c}function r(){return new Date(Date.now()).toISOString()}function o(l){const c={...e.GTMData,...l};return c.hit_timestamp=r(),c}function s(l){n.value?window.dataLayer.push(l):LoadingSpinner.checkVendorLibrary("dataLayer",()=>{n.value=!0,window.dataLayer.push(l)})}function i(l,u){let c,d,f,v;switch(l){case"siteSearchOpenEvent":c="site_search_open",d={event:c,referrer_page:u.referrer_page},f=o(d),v=a(LoadingSpinner.siteSearchOpenTemplate,f);break;case"siteSearchUsageEvent":c="site_search_event",d={event:c,search_query:u.search_query,query_input:u.query_input,results_count:u.results_count,search_usage_index:u.search_usage_index,search_type:u.search_type},f=o(d),v=a(LoadingSpinner.siteSearchUsageTemplate,f);break;case"siteSearchClickEvent":c="site_search_click",d={event:c,interaction_type:u.interaction_type,search_query:u.search_query,query_input:u.query_input,page_number:u.page_number,page_navigation_direction:u.page_navigation_direction,click_text:u.click_text,click_url:u.click_url,click_category:u.click_category,search_usage_index:u.search_usage_index,results_count:u.results_count},f=o(d),v=a(LoadingSpinner.siteSearchClickTemplate,f);break;case"siteSearchCloseEvent":c="site_search_close",d={event:c,search_usage_index:u.search_usage_index,search_query:u.search_query,query_input:u.query_input,page_number:u.page_number,results_count:u.results_count},f=o(d),v=a(LoadingSpinner.siteSearchCloseTemplate,f);break}v&&s(v)}return{pageUrl:t,createDataLayerObject:i,templateFiller:a,compileFullTemplate:o,returnIsoDate:r,pushToDataLayer:s,dataLayerStore:e}}const useFederatedSearchStore=pinia.defineStore("federatedSearch",()=>{const e=vue.ref(null),n=vue.ref(void 0),t=vue.ref(!1),a=vue.ref(1),r=vue.ref(void 0),o=vue.ref(!1),s=vue.ref(!1),i=vue.ref(null),l=vue.ref(""),u=vue.ref(null),c=vue.ref(null),d=vue.ref([]),f=vue.ref([]),v=vue.ref(void 0),p=vue.ref(void 0),h=vue.ref(void 0),g=vue.ref(!1),m=vue.ref(""),_=vue.ref(""),b=vue.ref(void 0),S=vue.ref(void 0),k=vue.ref(void 0),V=vue.ref(0),L=vue.ref("");async function $(){s.value=!0,V.value+=1;const P=await cludoSearch(l.value,n.value,a.value,u.value,c.value),q=await eventSearch(r.value,l.value,a.value,c.value,f.value,m.value,_.value,b.value,k.value);i.value=[...P.results,...q.results],p.value=P.totalResults,h.value=q.totalResults,v.value=P.totalResults+q.totalResults,dataLayerComposable().createDataLayerObject("siteSearchUsageEvent",{search_query:l.value,query_input:L.value,results_count:v.value,search_usage_index:V.value,search_type:V.value===1?"initial":"follow-up"}),s.value=!1}async function A(){return cludoAutocomplete(l.value,n.value)}function F(P,q){const M=new URL(window.location.href);if(q?L.value="Autosuggestion":L.value="User input",l.value?M.searchParams.set("search-term",l.value):M.searchParams.delete("search-term"),c.value?M.searchParams.set("category",encodeURIComponent(c.value)):M.searchParams.delete("category"),f.value.length>0?M.searchParams.set("sub-category",encodeURIComponent(f.value.join(","))):M.searchParams.delete("sub-category"),P?(a.value=1,M.searchParams.set("page",a.value.toString())):a.value&&a.value>1?M.searchParams.set("page",a.value.toString()):M.searchParams.delete("page"),m.value?M.searchParams.set("start-date",m.value):M.searchParams.delete("start-date"),_.value?M.searchParams.set("end-date",_.value):M.searchParams.delete("end-date"),b.value?M.searchParams.set("sort-by",b.value):M.searchParams.delete("sort-by"),!g.value)window.history.pushState({},"",M),$();else{const j=`${S.value}/${M.search}`;window.location.href=j}}return{filters:e,currentPage:a,cludoCredentials:n,cludoError:t,eventsApi:r,eventsApiError:o,getAutoComplete:A,getSearchResults:$,isLoading:s,results:i,searchTerm:l,searchUrl:S,selectedCategory:u,selectedCategoryKey:c,selectedSubCategory:d,selectedSubCategoryKey:f,totalResults:v,totalResultsCludo:p,totalResultsEvents:h,navigateToResultsPage:F,isHomePage:g,startDate:m,endDate:_,sortBy:b,siteLanguage:k,searchInSessionCount:V,queryInput:L}}),_hoisted_1$5={class:"vs-fed-filter"},_hoisted_2$5={class:"vs-fed-filter__scroll-container"},_hoisted_3$4=["id"],_sfc_main$5={__name:"FedFilter",props:{filterCategories:{type:Array,required:!0},variant:{type:String,default:"primary",validator:e=>/^(primary|secondary)$/.test(e)},wrap:{type:Boolean,default:!1},activeFilter:{type:[String,Array],default:""},scrollButtons:{type:Boolean,default:!1},scrollLeftText:{type:String,default:""},scrollRightText:{type:String,default:""}},emits:["filter-updated"],setup(e,{expose:n}){const t=e,a=vue.ref(null);function r(c){return typeof t.activeFilter=="string"?t.activeFilter===c:t.activeFilter&&typeof t.activeFilter=="object"?t.activeFilter.includes(c):!1}function o(c){var d,f;c==="left"?(d=a.value)==null||d.scrollBy(-200,0):c==="right"&&((f=a.value)==null||f.scrollBy(200,0))}function s(){var c;(c=a.value)==null||c.scrollTo(0,0)}n({resetScroll:s});function i(){return[`vs-fed-filter__scroll-rail--${t.variant}`,t.wrap?"vs-fed-filter__scroll-rail--wrap":""]}const l=vue.computed(()=>[...t.filterCategories].sort((d,f)=>{const v=(d.Label||d.Key||"").toLowerCase(),p=(f.Label||f.Key||"").toLowerCase();return v<p?-1:v>p?1:0}));function u(c){let d;switch(c){case"accommodation":d="fa-regular fa-bed";break;case"active-adventure":d="fa-kit fa-vs-landscape";break;case"city-break":d="fa-regular fa-city";break;case"culture-history":d="fa-regular fa-chess-rook";break;case"events":d="fa-regular fa-calendar-range";break;case"family-friendly":d="fa-regular fa-family";break;case"food-drink":d="fa-regular fa-utensils";break;case"nature-outdoors":d="fa-regular fa-leaf";break;case"tours":d="fa-regular fa-binoculars";break;case"travel-information":d="fa-regular fa-circle-info";break;case"wellness":d="fa-regular fa-spa";break;default:d=null;break}return d}return(c,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[c.$slots["fed-filter-header"]&&c.$slots["fed-filter-header"]()?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsBody,{key:0,class:"vs-fed-filter__header mb-025 ms-025","data-test":"vs-fed-filter__header"},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"fed-filter-header")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$5,[e.scrollButtons?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,variant:"secondary",icon:"fa-regular fa-chevron-left","icon-only":"",class:"vs-fed-filter__scroll-button me-050","data-test":"vs-fed-filter__scroll-button--left",onClick:d[0]||(d[0]=f=>o("left")),"aria-label":t.scrollLeftText},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.scrollLeftText),1)]),_:1},8,["aria-label"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-fed-filter__scroll-rail",i()]),id:`vs-fed-filter__scroll-rail--${t.variant}`,ref_key:"scrollRail",ref:a},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(f,v)=>(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:v,class:"vs-fed-filter__category-button","data-test":`vs-fed-filter__category-button--${f.Key}`,icon:t.variant==="primary"?u(f.Key):null,variant:r(f.Key)?"primary":"secondary",size:t.variant==="secondary"?"sm":"md",onClick:p=>c.$emit("filter-updated",f)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.Label||f.Key),1)]),_:2},1032,["data-test","icon","variant","size","onClick"]))),128))],10,_hoisted_3$4),e.scrollButtons?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,variant:"secondary",icon:"fa-regular fa-chevron-right","icon-only":"",class:"vs-fed-filter__scroll-button ms-050","data-test":"vs-fed-filter__scroll-button--right",onClick:d[1]||(d[1]=f=>o("right")),"aria-label":t.scrollRightText},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.scrollRightText),1)]),_:1},8,["aria-label"])):vue.createCommentVNode("",!0)])]))}},_hoisted_1$4={class:"vs-fed-search-input"},_hoisted_2$4={class:"vs-fed-search__input"},_hoisted_3$3={class:"vs-fed-search__text-input"},_hoisted_4$3={for:"federated-search",class:"vs-federated-search__label"},_hoisted_5$3={class:"position-relative"},_hoisted_6$3={key:0,class:"vs-fed-search-input__autocomplete"},_hoisted_7$2=["onClick","onKeyup","innerHTML"],_sfc_main$4={__name:"FedSearchInput",props:{cludoApiKey:{type:String,default:getEnvValue("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number(getEnvValue("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number(getEnvValue("CLUDO_ENGINE_ID"))},isHomePage:{type:Boolean,default:!1},searchUrl:{type:String,default:void 0},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},labels:{type:Object,required:!0}},setup(e){const n=dataLayerComposable(),t=e,a=useFederatedSearchStore(),{isLoading:r}=pinia.storeToRefs(a),o=vue.ref(),s=vue.ref(null),i=vue.ref(null);async function l(_){a.currentPage=1,a.searchTerm=_.value.trim();const b=window.location.search,S=new URLSearchParams(b);a.searchTerm&&S.get("search-term")!==a.searchTerm&&(o.value=await a.getAutoComplete()),a.searchTerm||(o.value=null)}function u(){o.value=null,a.navigateToResultsPage()}function c(_){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_autosuggest",search_query:a.searchTerm,page_number:a.currentPage,search_usage_index:a.searchInSessionCount,results_count:a.totalResults,click_text:_,query_input:a.queryInput})}function d(_){a.searchTerm=_,o.value=null,a.navigateToResultsPage(!1,!0),c(_)}function f(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(_){return _.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function p(_){const b=(a.searchTerm||"").trim();if(!b)return v(_);const S=new RegExp(`(${f(b)})`,"gi");return v(_).replace(S,"<strong>$1</strong>")}function h(_){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"facet_click",search_query:a.searchTerm,page_number:a.currentPage,search_usage_index:a.searchInSessionCount,results_count:a.totalResults,click_text:_.Label||_.Key})}function g(_){const b=new URL(window.location);b.searchParams.delete("page"),a.currentPage=1,b.searchParams.delete("start-date"),b.searchParams.delete("end-date"),a.startDate="",a.endDate="",a.sortBy=void 0,a.selectedSubCategory=[],a.selectedSubCategoryKey=[],a.selectedCategory=a.selectedCategory!==_.Label?_.Label:"",a.selectedCategoryKey=a.selectedCategoryKey!==_.Key?_.Key:"",a.navigateToResultsPage(!0),h(_)}function m(_){if(!a.selectedSubCategoryKey.includes(_.Key))a.selectedSubCategory.push(_.Label),a.selectedSubCategoryKey.push(_.Key);else{const b=a.selectedSubCategoryKey.indexOf(_.Key);b>=0&&(a.selectedSubCategory.splice(b,1),a.selectedSubCategoryKey.splice(b,1))}a.navigateToResultsPage(!0),h(_)}return vue.onMounted(()=>{a.cludoCredentials={apiKey:t.cludoApiKey,customerId:t.cludoCustomerId,engineId:t.cludoEngineId},a.isHomePage=t.isHomePage,t.searchUrl&&(a.searchUrl=t.searchUrl);const _=window.location.search,b=new URLSearchParams(_);b.has("search-term")&&(a.searchTerm=b.get("search-term")),b.has("category")&&(a.selectedCategoryKey=decodeURIComponent(b.get("category"))),b.has("sub-category")&&decodeURIComponent(b.get("sub-category")).split(",").forEach(k=>a.selectedSubCategoryKey.push(k)),b.has("category")&&b.get("category")==="events"&&b.has("sort-by")&&(a.sortBy=b.get("sort-by")),b.has("start-date")&&(a.startDate=b.get("start-date")),b.has("end-date")&&(a.endDate=b.get("end-date")),(b.has("search-term")||b.has("category"))&&a.getSearchResults()}),vue.watch(r,_=>{var b,S;_||((b=s.value)==null||b.resetScroll(),(S=i.value)==null||S.resetScroll())}),(_,b)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createElementVNode("div",_hoisted_2$4,[vue.createElementVNode("div",_hoisted_3$3,[vue.createElementVNode("label",_hoisted_4$3,[b[0]||(b[0]=vue.createElementVNode("span",{class:"visually-hidden"}," Search for something ",-1)),vue.createVNode(vue.unref(LoadingSpinner.VsIcon),{icon:"vs-icon-control-search",size:"xs"})]),vue.createVNode(vue.unref(VsInput),{"auto-complete":!1,class:"vs-federated-search__input w-100","field-name":"federated-search",name:"searchrequest",placeholder:t.labels.searchLabel,type:"search",value:vue.unref(a).searchTerm,onUpdated:l,onKeyup:vue.withKeys(u,["enter"])},null,8,["placeholder","value"])]),vue.createVNode(vue.unref(LoadingSpinner.VsButton),{class:"d-none d-lg-block px-200",disabled:vue.unref(r),onClick:u},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labels.search),1)]),_:1},8,["disabled"])]),vue.createElementVNode("div",_hoisted_5$3,[o.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$3,[vue.createVNode(vue.unref(VsList),{unstyled:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,S=>(vue.openBlock(),vue.createElementBlock("li",{key:S,class:"vs-fed-search-input__autocomplete__suggestion",onClick:k=>d(S),onKeyup:vue.withKeys(k=>d(S),["enter"]),tabindex:"0",innerHTML:p(S)},null,40,_hoisted_7$2))),128))]),_:1})])):vue.createCommentVNode("",!0)]),t.filters?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:0,"active-filter":vue.unref(a).selectedCategoryKey,"filter-categories":t.filters,ref_key:"categoryFilter",ref:s,wrap:!0,onFilterUpdated:g},null,8,["active-filter","filter-categories"])):vue.createCommentVNode("",!0),vue.unref(a).selectedCategoryKey==="events"&&t.subFilters?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:1,"active-filter":vue.unref(a).selectedSubCategoryKey,class:"mt-200","filter-categories":t.subFilters,ref_key:"subCategoryFilter",ref:i,variant:"secondary",onFilterUpdated:m},{"fed-filter-header":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labels.refine),1)]),_:1},8,["active-filter","filter-categories"])):vue.createCommentVNode("",!0)]))}},_hoisted_1$3={key:0,for:"vs-fed-search-sort__from-date",class:"vs-fed-search-sort__label","data-test":"vs-fed-search-sort__from-date-label"},_hoisted_2$3={key:0,for:"vs-fed-search-sort__to-date",class:"vs-fed-search-sort__label","data-test":"vs-fed-search-sort__to-date-label"},_sfc_main$3={__name:"FedSearchSort",props:{dateFilterVisible:{type:Boolean,default:!1},sortOptions:{type:Array,required:!0},fromDateLabel:{type:String,required:!0},toDateLabel:{type:String,required:!0},sortLabel:{type:String,required:!0}},emits:["from-date-updated","end-date-updated","sort-order-updated"],setup(e){const n=useFederatedSearchStore(),t=e,a=vue.computed(()=>t.sortOptions.find(r=>r.key===n.sortBy));return(r,o)=>(vue.openBlock(),vue.createBlock(LoadingSpinner.VsRow,{class:"vs-fed-search-sort"},{default:vue.withCtx(()=>[t.dateFilterVisible?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsCol,{key:0,cols:"6",md:"4"},{default:vue.withCtx(()=>[t.fromDateLabel?(vue.openBlock(),vue.createElementBlock("label",_hoisted_1$3,vue.toDisplayString(t.fromDateLabel),1)):vue.createCommentVNode("",!0),vue.createVNode(VsInput,{"field-name":"vs-fed-search-sort__from-date",value:vue.unref(n).startDate||new Date().toJSON().slice(0,10),type:"date","auto-complete":!1,onInput:o[0]||(o[0]=s=>r.$emit("from-date-updated",s.target.value)),"data-chromatic":"ignore"},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),t.dateFilterVisible?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsCol,{key:1,cols:"6",md:"4"},{default:vue.withCtx(()=>[t.toDateLabel?(vue.openBlock(),vue.createElementBlock("label",_hoisted_2$3,vue.toDisplayString(t.toDateLabel),1)):vue.createCommentVNode("",!0),vue.createVNode(VsInput,{"field-name":"vs-fed-search-sort__to-date",type:"date","auto-complete":!1,onInput:o[1]||(o[1]=s=>r.$emit("end-date-updated",s.target.value)),value:vue.unref(n).endDate||""},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsCol,{cols:"12",md:"4",class:"vs-fed-search-sort__dropdown-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(VsDropdown,{variant:"secondary",id:"vs-fed-search-sort__dropdown",name:"vs-fed-search-sort__dropdown",text:vue.unref(n).sortBy?`${t.sortLabel}: ${a.value.label}`:t.sortLabel},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.sortOptions,(s,i)=>(vue.openBlock(),vue.createBlock(VsDropdownItem,{key:i,onClick:l=>{r.$emit("sort-order-updated",s.key)},active:vue.unref(n).sortBy===s.key,"data-test":`vs-fed-search-sort__dropdown-item--${s.key}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.label),1)]),_:2},1032,["onClick","active","data-test"]))),128))]),_:1},8,["text"])]),_:1})]),_:1}))}},_hoisted_1$2={class:"vs-federated-search","data-test":"vs-federated-search"},_hoisted_2$2={class:"vs-federated-search__container"},_hoisted_3$2={key:0,class:"vs-federated-search__results"},_hoisted_4$2={key:2},_hoisted_5$2={class:"position-relative"},_hoisted_6$2={class:"position-absolute bottom-0 start-0 d-flex gap-2"},_hoisted_7$1={class:"position-absolute bottom-0 end-0 d-flex"},_hoisted_8$1={class:"truncate-3-lines text-break"},_hoisted_9={class:"d-flex justify-content-end align-items-end mt-050"},_hoisted_10={key:0,class:"d-flex align-items-start flex-grow-1"},_hoisted_11={key:3,class:"vs-federated-search__warning mb-300"},fallbackImg="https://static.visitscotland.com/img/fallback-img.png",_sfc_main$2={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:getEnvValue("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number(getEnvValue("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number(getEnvValue("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:getEnvValue("EVENTS_API_URL")},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:()=>{}},siteLanguage:{type:String,default:"en",validator:e=>e.match(/(en|es|it|de|nl|fr)/)}},setup(e){const n=dataLayerComposable(),t=useFederatedSearchStore(),a=vue.ref({message:"",error:!1}),r=e,o=vue.computed(()=>{let m;return t.selectedCategoryKey?t.selectedCategoryKey!=="events"?m=Math.ceil(t.totalResultsCludo/12):t.selectedCategoryKey==="events"&&(m=Math.ceil(t.totalResultsEvents/12)):m=t.totalResultsCludo>=t.totalResultsEvents?Math.ceil(t.totalResultsCludo/6):Math.ceil(t.totalResultsEvents/6),m});function s(){t.endDate&&t.startDate>t.endDate?(a.value.error=!0,a.value.message=r.errorMessages.incorrectDateOrder):t.selectedCategoryKey==="events"&&t.eventsApiError&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.eventError):(t.searchTerm||t.selectedCategory)&&t.selectedCategoryKey!=="events"&&t.cludoError&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.cludoError):t.totalResults===0&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.noResults):(a.value.error=!1,a.value.message="")}vue.onMounted(()=>{if(n.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),t.cludoCredentials={apiKey:r.cludoApiKey,customerId:r.cludoCustomerId,engineId:r.cludoEngineId},t.eventsApi=r.eventsApi,t.filters=r.filters,t.siteLanguage=r.siteLanguage,s(),typeof window<"u"&&typeof document<"u"){const m=new URLSearchParams(document.location.search),_=m.get("search-term"),b=parseInt(m.get("page"),10);b&&(t.currentPage=b),_&&(t.searchTerm=_,t.getSearchResults()),window.onbeforeunload=()=>{g()}}});function i(m){t.startDate=m,t.navigateToResultsPage(!0)}function l(m){t.endDate=m,t.navigateToResultsPage(!0)}function u(m){t.sortBy=m,t.navigateToResultsPage(!0)}function c(m){let _=!1;m>t.currentPage&&(_=!0),t.currentPage=m,typeof window<"u"&&window.scrollTo({top:0,left:0,behavior:"smooth"}),t.navigateToResultsPage(),h(_)}function d(m,_){return m===_?m:`${m} - ${_}`}function f(m){return m===null?"":m.match(/\b\d+\.\d\b/)?`£${m}0`:`£${m}`}function v(m){if(m.url)return m.url;if(m.placeUrl)return m.placeUrl;const _="https://www.datathistle.com/event/",b=encodeURIComponent(m.title.replaceAll(" ","-").toLowerCase());return`${_}${m.parentId}-${b}`}function p(m){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:t.searchTerm,page_number:t.currentPage,click_text:m.title,click_url:v(m),click_category:m.categoryCard&&r.cardCategoryLabels[m.categoryCard]?r.cardCategoryLabels[m.categoryCard]:"",search_usage_index:t.searchInSessionCount,results_count:t.totalResults,query_input:t.queryInput})}function h(m){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:t.searchTerm,page_number:t.currentPage,page_navigation_direction:m?"forward":"back",search_usage_index:t.searchInSessionCount,results_count:t.totalResults,query_input:t.queryInput})}function g(){n.createDataLayerObject("siteSearchCloseEvent",{search_query:t.searchTerm,search_usage_index:t.searchInSessionCount,query_input:t.queryInput,page_number:t.currentPage,results_count:t.totalResults})}return vue.onUpdated(()=>{s()}),(m,_)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createVNode(_sfc_main$4,{"cludo-api-key":r.cludoApiKey,"cludo-customer-id":r.cludoCustomerId,"cludo-engine-id":r.cludoEngineId,filters:r.filters,"sub-filters":r.subFilters,labels:r.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","filters","sub-filters","labels"]),vue.createVNode(_sfc_main$6,{class:"my-200"}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(t).filters,(b,S)=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:S,class:"mb-200"},[vue.renderSlot(m.$slots,`federated-search__spotlight-${b.Key}`)],512)),[[vue.vShow,vue.unref(t).selectedCategoryKey===b.Key]])),128)),vue.unref(t).results?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(LoadingSpinner.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.searchResults),1)]),_:1}),vue.unref(t).totalResults!==0?(vue.openBlock(),vue.createBlock(vue.unref(VsDetail),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.resultsFirst)+" "+vue.toDisplayString(vue.unref(t).totalResults)+" "+vue.toDisplayString(r.searchLabels.resultsSecond),1)]),_:1})):vue.createCommentVNode("",!0)]),vue.unref(t).selectedCategoryKey==="events"?(vue.openBlock(),vue.createBlock(_sfc_main$3,{key:0,"date-filter-visible":!0,"sort-options":r.sortLabels.sortOptions,"from-date-label":r.sortLabels.dateFrom,"to-date-label":r.sortLabels.dateTo,"sort-label":r.sortLabels.sort,onFromDateUpdated:i,onEndDateUpdated:l,onSortOrderUpdated:u},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.unref(t).isLoading?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsLoading),{key:1})):vue.createCommentVNode("",!0),!vue.unref(t).isLoading&&vue.unref(t).results&&!vue.unref(t).eventsApiError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[vue.createVNode(vue.unref(VsCardGroup),{"cards-per-row":3,class:vue.normalizeClass(vue.unref(t).results&&o.value<=1?"mb-300":null)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(t).results,b=>(vue.openBlock(),vue.createBlock(vue.unref(VsCard),{key:b.id},{"vs-card-header":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$2,[vue.createVNode(vue.unref(LoadingSpinner.VsImg),{src:b.imgSrc||fallbackImg,class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),vue.createElementVNode("div",_hoisted_6$2,[b.minPrice?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.fromText)+" "+vue.toDisplayString(f(b.minPrice)),1)]),_:2},1024)):vue.createCommentVNode("",!0),b.startDate?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d(b.startDate,b.endDate)),1)]),_:2},1024)):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_7$1,[b.categoryCard&&e.cardCategoryLabels[b.categoryCard]?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.cardCategoryLabels[b.categoryCard]),1)]),_:2},1024)):vue.createCommentVNode("",!0)])])]),"vs-card-body":vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsHeading),{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsLink),{href:v(b),onClick:S=>p(b),class:"stretched-link",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.title),1)]),_:2},1032,["href","onClick"])]),_:2},1024),vue.createVNode(vue.unref(LoadingSpinner.VsBody),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_8$1,vue.toDisplayString(b.description),1)]),_:2},1024)]),"vs-card-footer":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[b.location?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10,[vue.createVNode(vue.unref(LoadingSpinner.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),vue.createVNode(vue.unref(VsDetail),{"no-margins":"",color:"tertiary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.location),1)]),_:2},1024)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",null,[b.dataSrc==="data-thistle"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):vue.createCommentVNode("",!0)])])]),_:2},1024))),128))]),_:1},8,["class"]),vue.unref(t).results&&o.value>1?(vue.openBlock(),vue.createBlock(vue.unref(_sfc_main$G),{key:0,class:"vs-federated-search__pagination","number-of-pages":o.value,"next-button-label":r.paginationLabels.nextButtonLabel,"previous-button-label":r.paginationLabels.previousButtonLabel,"page-label":r.paginationLabels.pageLabel,"of-label":r.paginationLabels.ofLabel,modelValue:vue.unref(t).currentPage,"onUpdate:modelValue":_[0]||(_[0]=b=>vue.unref(t).currentPage=b),onPageClick:c},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),a.value.error?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[a.value.error?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.value.message),1)]),_:1})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),vue.createVNode(vue.unref(LoadingSpinner.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js mb-300"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.noJs),1)]),_:1})]))}};var define_process_env_default={};function setScriptSrc(e,n){e.src=n}const bootstrap=e=>{var n,t,a,r="The Google Maps JavaScript API",o="google",s="importLibrary",i="__ib__",l=document,u=window,c=u[o]||(u[o]={}),d=c.maps||(c.maps={}),f=new Set,v=new URLSearchParams,p=()=>n||(n=new Promise(async(h,g)=>{var m;await(t=l.createElement("script")),v.set("libraries",[...f]+"");for(a in e)v.set(a.replace(/[A-Z]/g,_=>"_"+_[0].toLowerCase()),e[a]);v.set("callback",o+".maps."+i),setScriptSrc(t,"https://maps.googleapis.com/maps/api/js?"+v),d[i]=h,t.onerror=()=>n=g(Error(r+" could not load.")),t.nonce=((m=l.querySelector("script[nonce]"))==null?void 0:m.nonce)||"",l.head.append(t)}));d[s]?console.warn(r+" only loads once. Ignoring:",e):d[s]=(h,...g)=>f.add(h)&&p().then(()=>d[s](h,...g))},MSG_REPEATED_SET_OPTIONS=e=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`,MSG_IMPORT_LIBRARY_EXISTS=e=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`,MSG_SET_OPTIONS_NOT_CALLED="No options were set before calling importLibrary. Make sure to configure the loader using setOptions().",MSG_SCRIPT_ELEMENT_EXISTS="There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.",logDevWarning=define_process_env_default.NODE_ENV!=="production"?e=>{console.warn(`[@googlemaps/js-api-loader] ${e}`)}:()=>{},logDevNotice=define_process_env_default.NODE_ENV!=="production"?e=>{console.info(`[@googlemaps/js-api-loader] ${e}`)}:()=>{};let setOptionsWasCalled_=!1;function setOptions(e){if(setOptionsWasCalled_){logDevWarning(MSG_REPEATED_SET_OPTIONS(e));return}installImportLibrary_(e),setOptionsWasCalled_=!0}async function importLibrary(e){var n,t;if(setOptionsWasCalled_||logDevWarning(MSG_SET_OPTIONS_NOT_CALLED),!((t=(n=window==null?void 0:window.google)==null?void 0:n.maps)!=null&&t.importLibrary))throw new Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(e)}function installImportLibrary_(e){var t,a;const n=!!((a=(t=window.google)==null?void 0:t.maps)!=null&&a.importLibrary);n?logDevNotice(MSG_IMPORT_LIBRARY_EXISTS(e)):define_process_env_default.NODE_ENV!=="production"&&document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]')&&logDevWarning(MSG_SCRIPT_ELEMENT_EXISTS),n||bootstrap(e)}const useGoogleMapStore=pinia.defineStore("googleMap",()=>({sidebarOpen:vue.ref(!0)})),_hoisted_1$1={class:"vs-map-sidebar__header d-flex"},_hoisted_2$1={class:"vs-map-sidebar__content"},_hoisted_3$1={class:"vs-map-sidebar__input d-flex mt-100 mb-050"},_hoisted_4$1={for:"vs-map-search-input",class:"visually-hidden"},_hoisted_5$1={key:1,class:"vs-map-sidebar__sub-filters-wrapper"},_hoisted_6$1={class:"vs-map-sidebar__search-results"},_hoisted_7={class:"vs-map-sidebar__google-maps-container mt-075"},_hoisted_8={key:0,class:"vs-map-sidebar__footer"},_sfc_main$1=vue.defineComponent({__name:"MapSidebar",props:{query:{type:String,default:""},selectedCategories:{type:String,default:""},headerLabel:{type:String,default:""},closeSidebarButtonLabel:{type:String,default:""},inputPlaceholderLabel:{type:String,default:""},searchButtonLabel:{type:String,default:""},clearMapLabel:{type:String,default:""},subFilterHeaderLabel:{type:String,default:""},searchResultsLabel:{type:String,default:""},openSidebarButtonLabel:{type:String,default:""}},emits:["search-input-changed","reset-map"],setup(e){const n=useGoogleMapStore(),t=e;return(a,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-map-sidebar px-125",vue.unref(n).sidebarOpen?"d-block":"d-none"]),"data-test":"vs-map-sidebar",ref:"vsMapSidebar"},[vue.createElementVNode("div",_hoisted_1$1,[t.headerLabel?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsHeading,{key:0,level:"1","heading-style":"heading-xxs",class:"flex-grow-1",id:"vs-map-sidebar__heading","data-test":"vs-map-sidebar__heading","aria-hidden":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.headerLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsButton,{variant:"tertiary",icon:"vs-icon-control-dismiss","icon-only":"",class:"vs-map-sidebar__sidebar-control vs-map-siderbar__sidebar-control--dismiss","data-test":"vs-map-siderbar__sidebar-control--dismiss",onClick:r[0]||(r[0]=o=>vue.unref(n).sidebarOpen=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeSidebarButtonLabel),1)]),_:1})]),vue.createElementVNode("div",_hoisted_2$1,[vue.createElementVNode("div",_hoisted_3$1,[vue.createElementVNode("label",_hoisted_4$1,vue.toDisplayString(t.headerLabel),1),vue.createVNode(VsInput,{type:"text",autocomplete:"off","field-name":"vs-map-search-input","data-test":"vs-map-search-input",ref:"vs-search-input",placeholder:t.inputPlaceholderLabel,class:"vs-map-sidebar__input flex-grow-1","aria-describedby":"vs-map-sidebar__heading",onKeyup:r[1]||(r[1]=vue.withKeys(vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"]),["enter"]))},null,8,["placeholder"]),vue.createVNode(LoadingSpinner.VsButton,{class:"vs-map-sidebar__search-button","data-test":"vs-map-sidebar__search-button",icon:"vs-icon-control-search","icon-only":"",rounded:!1,size:"lg",onClick:r[2]||(r[2]=vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"])),onKeyup:r[3]||(r[3]=vue.withKeys(vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"]),["enter"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonLabel),1)]),_:1})]),a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createBlock(VsLink,{key:0,href:"#",class:"d-block","data-test":"vs-map-sidebar__reset-map",onClick:r[4]||(r[4]=vue.withModifiers(o=>a.$emit("reset-map"),["prevent"])),onKeyup:r[5]||(r[5]=vue.withKeys(vue.withModifiers(o=>a.$emit("reset-map"),["prevent"]),["enter"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearMapLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.$slots["vs-map-sidebar-sub-filters"]&&a.$slots["vs-map-sidebar-sub-filters"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(VsDetail,{class:"vs-map-sidebar__sub-filter-header",size:"small",color:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subFilterHeaderLabel),1)]),_:1}),vue.renderSlot(a.$slots,"vs-map-sidebar-sub-filters")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_6$1,[a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsHeading,{key:0,level:"2","heading-style":"heading-xxxs","data-test":"vs-map-sidebar__search-result-query"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchResultsLabel)+' "'+vue.toDisplayString(t.query||t.selectedCategories)+'" ',1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_7,[vue.renderSlot(a.$slots,"vs-map-sidebar-search-results")])])]),a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,r[7]||(r[7]=[vue.createElementVNode("hr",{class:"vs-map-sidebar__swipe-tab"},null,-1)]))):vue.createCommentVNode("",!0)],2),vue.createVNode(LoadingSpinner.VsButton,{class:vue.normalizeClass(["vs-map-sidebar__sidebar-control vs-map-sidebar__sidebar-control--open",vue.unref(n).sidebarOpen?"d-none":"d-block"]),"data-test":"vs-map-sidebar__sidebar-control--open",size:"sm",icon:"fa-regular fa-sliders","icon-only":"",onClick:r[6]||(r[6]=o=>vue.unref(n).sidebarOpen=!0)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.openSidebarButtonLabel),1)]),_:1},8,["class"])],64))}}),cookieCheckerComposable=()=>{const e=vue.ref([]),n=vue.ref(!1),t=vue.ref(!1),a=vue.computed(()=>typeof window<"u"&&window.bypassCookiesRequired?!0:n.value),r=vue.computed(()=>typeof window<"u"&&window.bypassCookiesLoaded?!0:{cookieManagerLoaded:t});function o(){t.value=!0}function s(){let i=!1;typeof CookieControl<"u"&&(i=e.value.every(l=>CookieControl.getCategoryConsent(l)===!0)),n.value=i}return vue.onMounted(()=>{window.addEventListener("cookieManagerLoaded",()=>{o()}),window.addEventListener("cookiesUpdated",()=>{s()})}),{requiredCookies:e,cookiesAllowed:a,cookiesLoaded:r}},_hoisted_1={class:"vs-map"},_hoisted_2={class:"vs-map__controls"},_hoisted_3={class:"vs-map-sidebar__sub-filters"},_hoisted_4={key:0,class:"vs-map__filter-controls"},_hoisted_5={class:"vs-map__wrapper"},_hoisted_6={id:"vs-map","map-id":"vs-map",ref:"vsMap"},MAX_ZOOM=19,CATEGORY_VISIBLE_ZOOM=11,NUMBER_OF_RESULTS=20,_sfc_main={__name:"MainMap",props:{apiKey:{type:String,default:getEnvValue("GOOGLE_MAPS_API_KEY")},center:{type:Object,default:()=>({lat:56.490153,lng:4.10959})},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:()=>{}},languageCode:{type:String,default:"en",validator:e=>e.match(/(en|es|it|de|nl|fr)/)},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:()=>{}},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0}},setup(e){const n=e;let t,a,r,o,s,i,l,u,c,d,f={};const v=vue.ref(),p=vue.ref(new Set),h=vue.ref(),g=vue.ref(new Set),m=vue.ref(new Set),_=vue.ref(),b=vue.ref(),S=vue.ref(n.zoom),k=vue.ref(),V=vue.ref(new Set),L=vue.ref(),$=useGoogleMapStore();let A;const F=vue.ref(void 0),P={north:61.865,south:54.62185,west:-8.651,east:.71};let q={};const M=n.categoryLabels;vue.onBeforeMount(()=>{const N=cookieCheckerComposable();N.requiredCookies.value=cookieValues$5.google_maps,A=vue.computed(()=>n.jsDisabled===!0?(F.value="noJS",!0):!N.cookiesAllowed.value&&N.cookiesLoaded.value===!0||!N.cookiesLoaded.value?(F.value="noCookie",!0):!1)}),vue.onMounted(async()=>{if(n.categoriesLocation&&LoadingSpinner.axios.get(n.categoriesLocation).then(D=>{q=D.data}).catch(()=>{}),A.value===!1){setOptions({key:n.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:n.languageCode});try{await importLibrary("maps"),await importLibrary("places"),await importLibrary("marker"),await importLibrary("core"),await importLibrary("geometry")}catch{console.error("Google Maps Library load error")}}a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),o=document.getElementById("textSearch"),s=document.querySelector("gmp-place-text-search-request"),i=document.querySelector("gmp-place-nearby-search-request"),l=document.querySelector("gmp-place-details"),u=document.getElementById("placeRequest"),c=document.getElementById("vs-map-search-input");async function N(){try{const D={center:{lat:n.center.lat,lng:n.center.lng},zoom:n.zoom,mapId:"vs-map",restriction:{latLngBounds:P},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1};if(a)t=new google.maps.Map(a,D);else throw new Error("Init error, mapContainer undefined")}catch(D){console.error("Maps init error",D.message)}d=new google.maps.InfoWindow,t.addListener("zoom_changed",()=>{S.value=t.getZoom()}),r.addEventListener("gmp-select",({place:D})=>{f[D.id]&&B(D,f[D.id])}),o.addEventListener("gmp-select",({place:D})=>{f[D.id]&&B(D,f[D.id])})}A.value===!1&&await N()});function j(N,D){Y(),v.value=N,Object.values(q[N].subCategory).forEach(I=>g.value.add(I.type)),h.value=q[N],_.value=D,W(Array.from(g.value).flat()),k.value=M[_.value].label,c.value=k.value}function Q(N,D){const I=vue.ref([]),R=vue.ref();return N.forEach(()=>{M.forEach(H=>{H.id===v.value&&(I.value=H)}),Object.values(I.value).forEach(H=>{Object.values(H).forEach(U=>{D===U.id&&(R.value=U.label)})})}),R}function J(N,D){b.value=D,p.value.has(N)?(p.value.delete(N),Object.values(q[v.value].subCategory).forEach(I=>{I.id===N&&I.type.forEach(R=>m.value.delete(R))}),V.value.delete(Q(p.value,N).value),p.value.size===0?(V.value=new Set,j(v.value,_.value)):(W(Array.from(m.value).flat()),k.value=Array.from(V.value).join(", "),c.value=k.value)):(p.value.add(N),Object.values(q[v.value].subCategory).forEach(I=>{I.id===N&&I.type.forEach(R=>m.value.add(R))}),W(Array.from(m.value).flat()),V.value.add(Q(p.value,N).value),k.value=Array.from(V.value).join(", "),c.value=k.value)}async function W(N){T(),z(),L.value="nearby";const D=t.getBounds(),I=D.getNorthEast(),R=D.getSouthWest(),H=google.maps.geometry.spherical.computeDistanceBetween(I,R),U=Math.min(H/2,5e4);i.includedTypes=N,i.maxResultCount=NUMBER_OF_RESULTS,i.locationRestriction={center:t.getCenter(),radius:U},r.style.display="block",r.addEventListener("gmp-load",E,{once:!0})}async function C(){T(),Y(),L.value="text",k.value=c.value.trim(),k.value&&(s.textQuery=k.value,s.locationRestriction=t.getBounds(),s.maxResultCount=NUMBER_OF_RESULTS,o.style.display="block",o.addEventListener("gmp-load",E,{once:!0}))}async function E(){const{AdvancedMarkerElement:N}=await importLibrary("marker"),{LatLngBounds:D}=await importLibrary("core"),I=vue.ref();L.value==="nearby"?I.value=r:L.value==="text"?I.value=o:console.error("Unrecognised Search type");const R=new D;I.value.style.display="block",I.value.places&&I.value.places.forEach(H=>{const U=document.createElement("div");U.classList.add("vs-map-marker");const G=document.createElement("i");G.classList.add("fa-solid","fa-location-dot"),U.appendChild(G);const Z=new N({map:t,position:H.location,content:U,title:H.displayName});Z.addEventListener("gmp-placeclick",()=>{B(H,Z)}),Z.addListener("click",()=>{B(H,Z)}),Z.metadata={id:H.id},f[H.id]=Z,R.extend(H.location),I.value.places.length===1?(t.setCenter({lat:H.location.lat(),lng:H.location.lng()}),t.setZoom(14),t.fitBounds(H.viewport)):(t.setCenter(R.getCenter()),t.fitBounds(R))})}function T(N){w(),L.value="",r.style.display="none",o.style.display="none",d&&d.close&&d.close(),N&&(z(),Y())}function z(){k.value=null,c.value=""}function Y(){v.value=void 0,p.value=new Set,g.value=new Set,m.value=new Set,V.value=new Set,_.value=void 0,b.value=void 0}function w(){for(const N in f)f[N]&&(f[N].map=null);f={}}function B(N,D){d.isOpen&&d.close(),u.place=N,window.innerWidth<=768?(l.style.width="85vw",l.style.height="32em",$.sidebarOpen=!1):(l.style.width="20em",l.style.height="32em"),l.style.display="block",l.style.overflowY="auto",l.style.overflowX="hidden",l.style.boxSizing="border-box",l.style.maxHeight="32em",d.setOptions({content:l,maxWidth:"25em",pixelOffset:null}),d.open({anchor:D,map:t}),t.fitBounds(N.viewport,{top:200,right:150}),google.maps.event.addListenerOnce(t,"idle",()=>{t.getZoom()>MAX_ZOOM&&t.setZoom(MAX_ZOOM)})}return(N,D)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-map__container",vue.unref(A)?"d-none":"d-block"])},[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(_sfc_main$1,{query:k.value,"selected-categories":v.value,"header-label":n.labels.heading,"close-sidebar-button-label":n.labels.closeSidebarBtn,"input-placeholder-label":n.labels.inputPlaceholder,"search-button-label":n.labels.searchButton,"clear-map-label":n.labels.clearMap,"sub-filter-header-label":n.labels.subFilterHeader,"search-results-label":n.labels.searchResults,"open-sidebar-button-label":n.labels.openSidebarButton,onSearchInputChanged:C,onResetMap:D[0]||(D[0]=I=>T(!0))},vue.createSlots({"vs-map-sidebar-search-results":vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.Suspense,null,{default:vue.withCtx(()=>D[1]||(D[1]=[vue.createElementVNode("div",{id:"search-container"},[vue.createElementVNode("gmp-place-search",{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},[vue.createElementVNode("gmp-place-nearby-search-request",{id:"nearbySearchQuery"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])]),vue.createElementVNode("gmp-place-search",{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},[vue.createElementVNode("gmp-place-text-search-request",{id:"textSearchQuery"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])])],-1)])),_:1,__:[1]}))]),_:2},[v.value?{name:"vs-map-sidebar-sub-filters",fn:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(M)[_.value].subCategory,(I,R)=>(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsButton),{key:R,variant:p.value.has(I.id)?"primary":"secondary",size:"sm",onClick:H=>J(I.id,R)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.label),1)]),_:2},1032,["variant","onClick"]))),128))])]),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),S.value>=CATEGORY_VISIBLE_ZOOM&&vue.unref($).sidebarOpen?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(M),(I,R)=>(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsButton),{key:R,class:"vs-map__filter-controls-button",icon:vue.unref(q)[I.id].icon,variant:v.value===I.id?"primary":"secondary",onClick:vue.withModifiers(H=>j(I.id,R),["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.label),1)]),_:2},1032,["icon","variant","onClick"]))),128))])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,null,512),(vue.openBlock(),vue.createBlock(vue.Suspense,null,{default:vue.withCtx(()=>D[2]||(D[2]=[vue.createElementVNode("div",{id:"detail-container"},[vue.createElementVNode("gmp-place-details",{id:"placeDetails",style:{display:"none"}},[vue.createElementVNode("gmp-place-details-place-request",{id:"placeRequest"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-website"),vue.createElementVNode("gmp-place-phone-number"),vue.createElementVNode("gmp-place-summary"),vue.createElementVNode("gmp-place-type-specific-highlights"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-feature-list"),vue.createElementVNode("gmp-place-media",{"lightbox-preferred":""}),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])])],-1)])),_:1,__:[2]}))])],2),vue.unref(A)&&F.value==="noCookie"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:0,type:"cookie",class:vue.normalizeClass(["vs-map__error vs-map__error--no-cookies",vue.unref(A)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.cookieBtnText),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.noCookiesMessage)+" ",1)]),_:1},8,["class"])):vue.createCommentVNode("",!0),vue.unref(A)&&F.value==="noJS"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:1,"data-test":"vs-map__warning--no-js",class:"vs-map__warning vs-map__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.noJsMessage),1)]),_:1})):vue.createCommentVNode("",!0)]))}};exports.VsBody=LoadingSpinner.VsBody;exports.VsButton=LoadingSpinner.VsButton;exports.VsButtonToggleGroup=LoadingSpinner.VsButtonToggleGroup;exports.VsCol=LoadingSpinner.VsCol;exports.VsContainer=LoadingSpinner.VsContainer;exports.VsHeading=LoadingSpinner.VsHeading;exports.VsIcon=LoadingSpinner.VsIcon;exports.VsImg=LoadingSpinner.VsImg;exports.VsLoadingSpinner=LoadingSpinner.VsLoading;exports.VsRow=LoadingSpinner.VsRow;exports.VsWarning=LoadingSpinner.VsWarning;exports.VsAccordion=VsAccordion;exports.VsAccordionItem=VsAccordionItem;exports.VsAccordionToggle=VsAccordionToggle;exports.VsAddress=Address;exports.VsAlert=Alert;exports.VsArticle=Article;exports.VsArticleDetails=ArticleDetails;exports.VsArticleSection=ArticleSection;exports.VsArticleSidebar=ArticleSidebar;exports.VsBackToTop=_sfc_main$2l;exports.VsBadge=VsBadge;exports.VsBanner=Banner;exports.VsBreadcrumb=Breadcrumb;exports.VsBreadcrumbItem=BreadcrumbItem;exports.VsCannedSearch=CannedSearch;exports.VsCaption=VsCaption;exports.VsCarbonCalculator=CarbonCalculator;exports.VsCard=VsCard;exports.VsCardGroup=VsCardGroup;exports.VsCarousel=VsCarousel;exports.VsCarouselSlide=CarouselSlide;exports.VsCheckbox=VsCheckbox;exports.VsDescriptionList=DescriptionList;exports.VsDescriptionListItem=DescriptionListItem;exports.VsDetail=VsDetail;exports.VsDropdown=VsDropdown;exports.VsDropdownItem=VsDropdownItem;exports.VsEmbedWrapper=EmbedWrapper;exports.VsEventCard=EventCard;exports.VsFederatedSearch=_sfc_main$2;exports.VsFederatedSearchInput=_sfc_main$4;exports.VsFilter=_sfc_main$1B;exports.VsFilterSection=_sfc_main$1A;exports.VsFooter=Footer;exports.VsFooterAccordionItem=FooterAccordionItem;exports.VsFooterCopyright=FooterCopyright;exports.VsFooterNavListItem=FooterNavListItem;exports.VsFooterSocialItem=FooterSocialItem;exports.VsFooterSocialMenu=FooterSocialMenu;exports.VsFooterUtilityList=FooterUtilityList;exports.VsForm=Form;exports.VsGlobalMenu=GlobalMenu;exports.VsGlobalMenuLanguage=GlobalMenuLanguage;exports.VsGlobalMenuLanguageItem=GlobalMenuLanguageItem;exports.VsHeroSection=HeroSection;exports.VsHtmlError=HtmlError;exports.VsIconList=IconList;exports.VsIconListItem=IconListItem;exports.VsImageWithCaption=ImageWithCaption;exports.VsInput=VsInput;exports.VsItinerary=Itinerary;exports.VsItineraryBorderOverlapWrapper=ItineraryBorderOverlapWrapper;exports.VsItineraryDay=ItineraryDay;exports.VsItineraryStop=ItineraryStop;exports.VsItineraryStopInfo=ItineraryStopInfo;exports.VsItineraryTips=ItineraryTips;exports.VsLink=VsLink;exports.VsLinkList=VsLinkList;exports.VsLinkListItem=LinkListItem;exports.VsList=VsList;exports.VsListicleItem=ListicleItem;exports.VsMainMap=_sfc_main;exports.VsMegaNavAccordionItem=MegaNavAccordionItem;exports.VsMegaNavDropdownContainer=MegaNavDropdownContainer;exports.VsMegaNavFeaturedEvent=MegaNavFeaturedEvent;exports.VsMegaNavFeaturedItem=MegaNavFeaturedItem;exports.VsMegaNavList=MegaNavList;exports.VsMegaNavListItem=MegaNavListItem;exports.VsMegaNavStaticLink=MegaNavStaticLink;exports.VsMegalinkLinkList=MegalinkLinkList;exports.VsMegalinkMultiImage=MegalinkMultiImage;exports.VsMegalinkSingleImage=MegalinkSingleImage;exports.VsMegalinks=Megalinks;exports.VsMeganav=MegaNav;exports.VsModal=Modal;exports.VsModuleWrapper=VsModuleWrapper;exports.VsNumberInput=VsNumberInput;exports.VsPageIntro=PageIntro;exports.VsPagination=_sfc_main$G;exports.VsPanel=Panel;exports.VsProductSearch=ProductSearch;exports.VsProgressBar=VsProgressBar;exports.VsQuote=Quote;exports.VsRadioButton=VsRadioButton;exports.VsRecaptcha=VsRecaptcha;exports.VsSectionHeader=SectionHeader;exports.VsSelect=VsSelect;exports.VsSiteSearch=VsSiteSearch;exports.VsSiteSearchForm=VsSiteSearchForm;exports.VsSkiScotlandCard=SkiScotlandCard;exports.VsSkiScotlandStatus=SkiScotlandStatus;exports.VsSkipTo=SkipTo;exports.VsSocialCreditLink=SocialCreditLink;exports.VsSocialShare=SocialShare;exports.VsSocialShareItem=SocialShareItem;exports.VsSpotlightSection=SpotlightSection;exports.VsStretchedLinkCard=VsStretchedLinkCard;exports.VsStretchedLinkPanel=VsStretchedLinkPanels;exports.VsStyledList=_sfc_main$g;exports.VsStyledListItem=_sfc_main$f;exports.VsSummaryBoxDistanceListItem=SummaryBoxDistanceListItem;exports.VsSummaryBoxList=SummaryBoxList;exports.VsSummaryBoxListItem=SummaryBoxListItem;exports.VsSvg=VsSvg;exports.VsSvgLink=VsSvgLink;exports.VsTabItem=TabItem;exports.VsTable=VsTable;exports.VsTableBody=VsTableBody;exports.VsTableDataCell=VsTableDataCell;exports.VsTableFooter=VsTableFooter;exports.VsTableHead=VsTableHead;exports.VsTableHeaderCell=VsTableHeaderCell;exports.VsTableRow=VsTableRow;exports.VsTabs=Tabs;exports.VsTag=Tag;exports.VsTagManagerWrapper=TagManagerWrapper;exports.VsTextarea=VsTextarea;exports.VsToggleButton=VsToggleButton;exports.VsTooltip=VsTooltip;exports.VsTourismInfo=TourismInfo;exports.VsVideo=Video;exports.VsVideoCaption=VsVideoCaption;
|
|
333
|
+
*/Sister=function(){var e={},n={};return e.on=function(t,a){var r={name:t,handler:a};return n[t]=n[t]||[],n[t].unshift(r),r},e.off=function(t){var a=n[t.name].indexOf(t);a!==-1&&n[t.name].splice(a,1)},e.trigger=function(t,a){var r=n[t],o;if(r)for(o=r.length;o--;)r[o].handler(a)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,n=e*60,t=n*60,a=t*24,r=a*7,o=a*365.25;ms=function(c,d){d=d||{};var f=typeof c;if(f==="string"&&c.length>0)return s(c);if(f==="number"&&isFinite(c))return d.long?l(c):i(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var f=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*r;case"days":case"day":case"d":return f*a;case"hours":case"hour":case"hrs":case"hr":case"h":return f*t;case"minutes":case"minute":case"mins":case"min":case"m":return f*n;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function i(c){var d=Math.abs(c);return d>=a?Math.round(c/a)+"d":d>=t?Math.round(c/t)+"h":d>=n?Math.round(c/n)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=a?u(c,d,a,"day"):d>=t?u(c,d,t,"hour"):d>=n?u(c,d,n,"minute"):d>=e?u(c,d,e,"second"):c+" ms"}function u(c,d,f,v){var p=d>=f*1.5;return Math.round(c/f)+" "+v+(p?"s":"")}return ms}function setup(e){t.debug=t,t.default=t,t.coerce=l,t.disable=s,t.enable=r,t.enabled=i,t.humanize=requireMs(),t.destroy=u,Object.keys(e).forEach(c=>{t[c]=e[c]}),t.names=[],t.skips=[],t.formatters={};function n(c){let d=0;for(let f=0;f<c.length;f++)d=(d<<5)-d+c.charCodeAt(f),d|=0;return t.colors[Math.abs(d)%t.colors.length]}t.selectColor=n;function t(c){let d,f=null,v,p;function h(...m){if(!h.enabled)return;const _=h,g=Number(new Date),b=g-(d||g);_.diff=b,_.prev=d,_.curr=g,d=g,m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(V,L)=>{if(V==="%%")return"%";S++;const $=t.formatters[L];if(typeof $=="function"){const A=m[S];V=$.call(_,A),m.splice(S,1),S--}return V}),t.formatArgs.call(_,m),(_.log||t.log).apply(_,m)}return h.namespace=c,h.useColors=t.useColors(),h.color=t.selectColor(c),h.extend=a,h.destroy=t.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(v!==t.namespaces&&(v=t.namespaces,p=t.enabled(c)),p),set:m=>{f=m}}),typeof t.init=="function"&&t.init(h),h}function a(c,d){const f=t(this.namespace+(typeof d>"u"?":":d)+c);return f.log=this.log,f}function r(c){t.save(c),t.namespaces=c,t.names=[],t.skips=[];const d=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of d)f[0]==="-"?t.skips.push(f.slice(1)):t.names.push(f)}function o(c,d){let f=0,v=0,p=-1,h=0;for(;f<c.length;)if(v<d.length&&(d[v]===c[f]||d[v]==="*"))d[v]==="*"?(p=v,h=f,v++):(f++,v++);else if(p!==-1)v=p+1,h++,f=h;else return!1;for(;v<d.length&&d[v]==="*";)v++;return v===d.length}function s(){const c=[...t.names,...t.skips.map(d=>"-"+d)].join(",");return t.enable(""),c}function i(c){for(const d of t.skips)if(o(c,d))return!1;for(const d of t.names)if(o(c,d))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}var common=setup;(function(e,n){var t={};n.formatArgs=r,n.save=o,n.load=s,n.useColors=a,n.storage=i(),n.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;u.splice(1,0,c,"color: inherit");let d=0,f=0;u[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(d++,v==="%c"&&(f=d))}),u.splice(f,0,c)}n.log=console.debug||console.log||(()=>{});function o(u){try{u?n.storage.setItem("debug",u):n.storage.removeItem("debug")}catch{}}function s(){let u;try{u=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=t.DEBUG),u}function i(){try{return localStorage}catch{}}e.exports=common(n);const{formatters:l}=e.exports;l.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=n.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=PlayerStatesExports,a=r(t);function r(o){return o&&o.__esModule?o:{default:o}}n.default={pauseVideo:{acceptableStates:[a.default.ENDED,a.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[a.default.ENDED,a.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[a.default.ENDED,a.default.PLAYING,a.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=n.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=n.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=n.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=browserExports,a=c(t),r=FunctionStateMapExports,o=c(r),s=eventNamesExports,i=c(s),l=functionNamesExports,u=c(l);function c(v){return v&&v.__esModule?v:{default:v}}const d=(0,a.default)("youtube-player"),f={};f.proxyEvents=v=>{const p={};for(const h of i.default){const m="on"+h.slice(0,1).toUpperCase()+h.slice(1);p[m]=_=>{d('event "%s"',m,_),v.trigger(h,_)}}return p},f.promisifyPlayer=(v,p=!1)=>{const h={};for(const m of u.default)p&&o.default[m]?h[m]=(..._)=>v.then(g=>{const b=o.default[m],S=g.getPlayerState(),k=g[m].apply(g,_);return b.stateChangeRequired||Array.isArray(b.acceptableStates)&&!b.acceptableStates.includes(S)?new Promise(V=>{const L=()=>{const $=g.getPlayerState();let A;typeof b.timeout=="number"&&(A=setTimeout(()=>{g.removeEventListener("onStateChange",L),V()},b.timeout)),Array.isArray(b.acceptableStates)&&b.acceptableStates.includes($)&&(g.removeEventListener("onStateChange",L),clearTimeout(A),V())};g.addEventListener("onStateChange",L)}).then(()=>k):k}):h[m]=(..._)=>v.then(g=>g[m].apply(g,_));return h},n.default=f,e.exports=n.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(n,t,a){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof t=="function"&&(a=t,t={}),t=t||{},a=a||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async="async"in t?!!t.async:!0,o.src=n,t.attrs&&setAttributes(o,t.attrs),t.text&&(o.text=""+t.text);var s="onload"in o?stdOnEnd:ieOnEnd;s(o,a),o.onload||stdOnEnd(o,a),r.appendChild(o)};function setAttributes(e,n){for(var t in n)e.setAttribute(t,n[t])}function stdOnEnd(e,n){e.onload=function(){this.onerror=this.onload=null,n(null,e)},e.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,n){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,n(null,e))}}(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=loadScript,a=r(t);function r(o){return o&&o.__esModule?o:{default:o}}n.default=o=>new Promise(i=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){i(window.YT);return}else{const u=window.location.protocol==="http:"?"http:":"https:";(0,a.default)(u+"//www.youtube.com/iframe_api",c=>{c&&o.trigger("error",c)})}const l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l&&l(),i(window.YT)}}),e.exports=n.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=sister,a=l(t),r=YouTubePlayerExports,o=l(r),s=loadYouTubeIframeApiExports,i=l(s);function l(c){return c&&c.__esModule?c:{default:c}}let u;n.default=(c,d={},f=!1)=>{const v=(0,a.default)();if(u||(u=(0,i.default)(v)),d.events)throw new Error("Event handlers cannot be overwritten.");if(typeof c=="string"&&!document.getElementById(c))throw new Error('Element "'+c+'" does not exist.');d.events=o.default.proxyEvents(v);const p=new Promise(m=>{typeof c=="object"&&c.playVideo instanceof Function?m(c):u.then(_=>{const g=new _.Player(c,d);return v.on("ready",()=>{m(g)}),null})}),h=o.default.promisifyPlayer(p,f);return h.on=v.on,h.off=v.off,h},e.exports=n.default})(dist,dist.exports);var distExports=dist.exports;const player=LoadingSpinner.getDefaultExportFromCjs(distExports),UNSTARTED=-1,ENDED=0,PLAYING=1,PAUSED=2,BUFFERING=3,CUED=5,VueYoutube={name:"Youtube",props:{videoId:String,playerVars:{type:Object,default:()=>({})},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},resize:{type:Boolean,default:!1},resizeDelay:{type:Number,default:100},nocookie:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!1}},data(){return{player:{},events:{[UNSTARTED]:"unstarted",[PLAYING]:"playing",[PAUSED]:"paused",[ENDED]:"ended",[BUFFERING]:"buffering",[CUED]:"cued"},resizeTimeout:null}},computed:{aspectRatio(){return this.width/this.height}},methods:{playerReady(e){this.$emit("ready",e.target)},playerStateChange(e){e.data!==null&&e.data!==UNSTARTED&&this.$emit(this.events[e.data],e.target)},playerError(e){this.$emit("error",e.target)},updatePlayer(e){if(!e){this.player.stopVideo();return}const n={videoId:e};if(typeof this.playerVars.start=="number"&&(n.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(n.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(n);return}this.player.cueVideoById(n)},resizeProportionally(){this.player.getIframe().then(e=>{const n=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=n/this.aspectRatio;this.player.setSize(n,t)})},onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resizeProportionally,this.resizeDelay)}},watch:{videoId:"updatePlayer",resize(e){e?(window.addEventListener("resize",this.onResize),this.resizeProportionally()):(window.removeEventListener("resize",this.onResize),this.player.setSize(this.width,this.height))},width(e){this.player.setSize(e,this.height)},height(e){this.player.setSize(this.width,e)}},beforeUnmount(){this.player!==null&&this.player.destroy&&(this.player.destroy(),delete this.player),this.resize&&window.removeEventListener("resize",this.onResize)},mounted(){window.YTConfig={host:"https://www.youtube.com/iframe_api"};const e=this.nocookie?"https://www.youtube-nocookie.com":"https://www.youtube.com";this.player=player(this.$el,{host:e,width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange),this.player.on("error",this.playerError),this.resize&&window.addEventListener("resize",this.onResize),this.fitParent&&this.resizeProportionally()},render(){return vue.h("div")}};let videoStore=null;const cookieValues=cookieValues$5.youtube,_sfc_main$7={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:LoadingSpinner.VsWarning,VueYoutube},mixins:[LoadingSpinner.dataLayerMixin,cookieCheckerMixin],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},requiredCookies:cookieValues,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError(){return!this.cookiesAllowed&&this.cookiesLoaded===!0||this.cookiesLoaded===!1},warningText(){let e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),!this.cookiesAllowed&&this.cookiesLoaded===!0&&(e=this.noCookiesMessage),e},player(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted(){this.jsDisabled=jsIsDisabled(),videoStore=useVideoStore(),this.setEventListeners()},methods:{async playerReady(){await this.getPlayerDetails(),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo())},async playVideo(){this.player&&await this.player.playVideo()},async pauseVideo(){this.player&&await this.player.pauseVideo()},async stopVideo(){this.player&&await this.player.stopVideo()},youtubePlaying(){this.analyticsEvent("play")},youtubePaused(){this.analyticsEvent("pause")},youtubeEnded(){this.analyticsEvent("ended")},analyticsEvent(e){let n=0,t=0;this.player.getCurrentTime().then(a=>(n=a,this.player?this.player.getDuration():null)).then(a=>{t=a}).then(()=>{const a=n/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(a)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const n=Math.floor(e/60),t=Math.round(e-n*60);this.duration.minutes=n,this.duration.seconds=t;const a=this.getRoundedMinutes(n,t);this.duration.roundedMinutes=this.formatSingularOrPlural(a)},getRoundedMinutes(e,n){return n<30&&e!==0?e:e+1},formatSingularOrPlural(e){return e===1?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad(e){return e>=10?e:`0${e}`},storeVideoDetails(){videoStore.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:this.duration.minutes*60+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners(){this.emitter&&this.emitter.on("video-controls",e=>{e.id===this.videoId&&(e.action==="modal-opened"&&this.playVideo(),e.action==="modal-closed"&&this.stopVideo(),e.action==="play"?this.playVideo():e.action==="pause"&&this.pauseVideo())})}}},_hoisted_1$6={key:0,class:"vs-video","data-test":"vs-video"},_hoisted_2$6={class:"vs-video__iframe-wrapper"},_hoisted_3$5={key:0};function _sfc_render(e,n,t,a,r,o){const s=vue.resolveComponent("VueYoutube"),i=vue.resolveComponent("VsWarning");return r.reRendering?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",_hoisted_2$6,[e.cookiesAllowed?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(s,{autoplay:0,"video-id":t.videoId,vars:r.playerVars,ref:"youtube",nocookie:!0,onPlaying:o.youtubePlaying,onPaused:o.youtubePaused,onEnded:o.youtubeEnded,onReady:o.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"])])):vue.createCommentVNode("",!0),o.showError?(vue.openBlock(),vue.createBlock(i,{key:1,type:e.cookiesLoaded===!0?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[!e.cookiesAllowed&&e.cookiesLoaded===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.cookieBtnText),1)]),key:"0"}:void 0]),1032,["type"])):vue.createCommentVNode("",!0),vue.createVNode(i,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})])]))}const Video=LoadingSpinner._export_sfc(_sfc_main$7,[["render",_sfc_render]]),__default__={name:"VsDivider"},_sfc_main$6=Object.assign(__default__,{props:{variant:{type:String,required:!1,validator:e=>e.match(/(primary|secondary|inverse)/),default:"primary"}},setup(e){const n=e;return(t,a)=>(vue.openBlock(),vue.createElementBlock("hr",{class:vue.normalizeClass(["vs-divider",n.variant?`vs-divider--variant-${n.variant}`:null]),"data-test":"vs-divider"},null,2))}});function cleanData$1(e){return e.TypedDocuments.map(a=>{var r;return{id:a.Fields.Id.Value||"",title:a.Fields.Title.Value||"",description:a.Fields.Description.Value||"",imgSrc:((r=a.Fields.Image)==null?void 0:r.Value)||"",url:a.Fields.Url.Value||"",dataSrc:"cludo",categoryCard:a.Fields.categoryCard.Value||""}})}async function cludoSearch(e,n,t,a,r){const{apiKey:o,customerId:s,engineId:i}=n,l=`https://api-eu1.cludo.com/api/v3/${s}/${i}/search`,u=`${s}:${o}`,c=useFederatedSearchStore();if(c.eventsApiError=!1,c.cludoError=!1,!n)return c.cludoError=!0,c.isLoading=!1,{results:[],totalResults:0};if(r==="events")return{results:[],totalResults:0};try{const d=await fetch(l,{method:"POST",body:JSON.stringify({query:e||"*",operator:"or",responseType:"JsonObject",perPage:r?12:6,page:t,facets:{Category:r?[r]:null}}),headers:{"Content-Type":"application/json",Authorization:`Basic ${btoa(u)}`}});if(!d.ok)throw c.cludoError=!0,c.isLoading=!1,new Error(`Cludo response message: ${d.status}`);const f=await d.json();return{results:cleanData$1(f),totalResults:f.TotalDocument}}catch{return c.cludoError=!0,c.isLoading=!1,{results:[],totalResults:0}}}function cleanData(e){return e.events.map(a=>{var r,o,s,i,l,u,c;return{id:a.id,parentId:a.parentId,title:a.name,description:((o=(r=a.descriptions)==null?void 0:r[0])==null?void 0:o.description)||"",imgSrc:((i=(s=a.images)==null?void 0:s[0])==null?void 0:i.url)||"",url:((u=(l=a.performances)==null?void 0:l[0])==null?void 0:u.url)||"",placeUrl:a.place.website,location:a.place.town,startDate:a.startFormatted,endDate:a.endFormatted,minPrice:(c=a.minPrice)==null?void 0:c.toString(),dataSrc:"data-thistle",categoryCard:a.categoryCard||""}})}async function eventSearch(e,n,t,a,r,o,s,i,l){const u=useFederatedSearchStore();if(u.eventsApiError=!1,u.cludoError=!1,a==="events"||!a){let c=`${e}?query=${n}&lang=${l}`;c=t>1?`${c}&page=${t}`:c,c=o!==""?`${c}&startDate=${o}`:c,c=s!==""?`${c}&endDate=${s}`:c,c=i?`${c}&sort=${i}`:c,c=a==="events"?`${c}&pageSize=12`:`${c}&pageSize=6`,r.forEach(d=>{c+=`&category=${d}`});try{const d=await fetch(c);if(!d.ok)throw u.isLoading=!1,u.eventsApiError=!0,new Error(`Events response message: ${d.status}`);const f=await d.json();return{results:cleanData(f),totalResults:f.totalResults}}catch{return u.isLoading=!1,u.eventsApiError=!0,{results:[],totalResults:0}}}else return{results:[],totalResults:0}}async function cludoAutocomplete(e,n){const{apiKey:t,customerId:a,engineId:r}=n,s=`https://api-eu1.cludo.com/api/v3/${a}/${r}/Autocomplete`,i=`${a}:${t}`;try{const l=await fetch(s,{method:"POST",body:JSON.stringify({text:e}),headers:{"Content-Type":"application/json",Authorization:`Basic ${btoa(i)}`}});if(!l.ok)throw new Error(`Autocomplete search error ${l.status}`);return await l.json()}catch(l){throw new Error(`Autocomplete search error: ${l}`)}}const useFederatedSearchStore=pinia.defineStore("federatedSearch",()=>{const e=vue.ref(null),n=vue.ref(void 0),t=vue.ref(!1),a=vue.ref(1),r=vue.ref(void 0),o=vue.ref(!1),s=vue.ref(!1),i=vue.ref(null),l=vue.ref(""),u=vue.ref(null),c=vue.ref(null),d=vue.ref([]),f=vue.ref([]),v=vue.ref(void 0),p=vue.ref(void 0),h=vue.ref(void 0),m=vue.ref(!1),_=vue.ref(""),g=vue.ref(""),b=vue.ref(void 0),S=vue.ref(void 0),k=vue.ref(void 0),V=vue.ref(0),L=vue.ref("");async function $(){s.value=!0,V.value+=1;const P=await cludoSearch(l.value,n.value,a.value,u.value,c.value),q=await eventSearch(r.value,l.value,a.value,c.value,f.value,_.value,g.value,b.value,k.value);i.value=[...P.results,...q.results],p.value=P.totalResults,h.value=q.totalResults,v.value=P.totalResults+q.totalResults,s.value=!1}async function A(){return cludoAutocomplete(l.value,n.value)}async function F(P,q){const M=new URL(window.location.href);if(q?L.value="Autosuggestion":L.value="User input",l.value?M.searchParams.set("search-term",l.value):M.searchParams.delete("search-term"),c.value?M.searchParams.set("category",encodeURIComponent(c.value)):M.searchParams.delete("category"),f.value.length>0?M.searchParams.set("sub-category",encodeURIComponent(f.value.join(","))):M.searchParams.delete("sub-category"),P?(a.value=1,M.searchParams.set("page",a.value.toString())):a.value&&a.value>1?M.searchParams.set("page",a.value.toString()):M.searchParams.delete("page"),_.value?M.searchParams.set("start-date",_.value):M.searchParams.delete("start-date"),g.value?M.searchParams.set("end-date",g.value):M.searchParams.delete("end-date"),b.value?M.searchParams.set("sort-by",b.value):M.searchParams.delete("sort-by"),!m.value)window.history.pushState({},"",M),await $();else{const j=`${S.value}/${M.search}`;window.location.href=j}}return{filters:e,currentPage:a,cludoCredentials:n,cludoError:t,eventsApi:r,eventsApiError:o,getAutoComplete:A,getSearchResults:$,isLoading:s,results:i,searchTerm:l,searchUrl:S,selectedCategory:u,selectedCategoryKey:c,selectedSubCategory:d,selectedSubCategoryKey:f,totalResults:v,totalResultsCludo:p,totalResultsEvents:h,navigateToResultsPage:F,isHomePage:m,startDate:_,endDate:g,sortBy:b,siteLanguage:k,searchInSessionCount:V,queryInput:L}}),_hoisted_1$5={class:"vs-fed-filter"},_hoisted_2$5={class:"vs-fed-filter__scroll-container"},_hoisted_3$4=["id"],_sfc_main$5={__name:"FedFilter",props:{filterCategories:{type:Array,required:!0},variant:{type:String,default:"primary",validator:e=>/^(primary|secondary)$/.test(e)},wrap:{type:Boolean,default:!1},activeFilter:{type:[String,Array],default:""},scrollButtons:{type:Boolean,default:!1},scrollLeftText:{type:String,default:""},scrollRightText:{type:String,default:""}},emits:["filter-updated"],setup(e,{expose:n}){const t=e,a=vue.ref(null);function r(c){return typeof t.activeFilter=="string"?t.activeFilter===c:t.activeFilter&&typeof t.activeFilter=="object"?t.activeFilter.includes(c):!1}function o(c){var d,f;c==="left"?(d=a.value)==null||d.scrollBy(-200,0):c==="right"&&((f=a.value)==null||f.scrollBy(200,0))}function s(){var c;(c=a.value)==null||c.scrollTo(0,0)}n({resetScroll:s});function i(){return[`vs-fed-filter__scroll-rail--${t.variant}`,t.wrap?"vs-fed-filter__scroll-rail--wrap":""]}const l=vue.computed(()=>[...t.filterCategories].sort((d,f)=>{const v=(d.Label||d.Key||"").toLowerCase(),p=(f.Label||f.Key||"").toLowerCase();return v<p?-1:v>p?1:0}));function u(c){let d;switch(c){case"accommodation":d="fa-regular fa-bed";break;case"active-adventure":d="fa-kit fa-vs-landscape";break;case"city-break":d="fa-regular fa-city";break;case"culture-history":d="fa-regular fa-chess-rook";break;case"events":d="fa-regular fa-calendar-range";break;case"family-friendly":d="fa-regular fa-family";break;case"food-drink":d="fa-regular fa-utensils";break;case"nature-outdoors":d="fa-regular fa-leaf";break;case"tours":d="fa-regular fa-binoculars";break;case"travel-information":d="fa-regular fa-circle-info";break;case"wellness":d="fa-regular fa-spa";break;default:d=null;break}return d}return(c,d)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[c.$slots["fed-filter-header"]&&c.$slots["fed-filter-header"]()?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsBody,{key:0,class:"vs-fed-filter__header mb-025 ms-025","data-test":"vs-fed-filter__header"},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"fed-filter-header")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$5,[e.scrollButtons?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:0,variant:"secondary",icon:"fa-regular fa-chevron-left","icon-only":"",class:"vs-fed-filter__scroll-button me-050","data-test":"vs-fed-filter__scroll-button--left",onClick:d[0]||(d[0]=f=>o("left")),"aria-label":t.scrollLeftText},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.scrollLeftText),1)]),_:1},8,["aria-label"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-fed-filter__scroll-rail",i()]),id:`vs-fed-filter__scroll-rail--${t.variant}`,ref_key:"scrollRail",ref:a},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(f,v)=>(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:v,class:"vs-fed-filter__category-button","data-test":`vs-fed-filter__category-button--${f.Key}`,icon:t.variant==="primary"?u(f.Key):null,variant:r(f.Key)?"primary":"secondary",size:t.variant==="secondary"?"sm":"md",onClick:p=>c.$emit("filter-updated",f)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.Label||f.Key),1)]),_:2},1032,["data-test","icon","variant","size","onClick"]))),128))],10,_hoisted_3$4),e.scrollButtons?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsButton,{key:1,variant:"secondary",icon:"fa-regular fa-chevron-right","icon-only":"",class:"vs-fed-filter__scroll-button ms-050","data-test":"vs-fed-filter__scroll-button--right",onClick:d[1]||(d[1]=f=>o("right")),"aria-label":t.scrollRightText},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.scrollRightText),1)]),_:1},8,["aria-label"])):vue.createCommentVNode("",!0)])]))}};function dataLayerComposable(){const e=LoadingSpinner.useDataLayerStore(),n=vue.ref(!1),t=vue.computed(()=>e.pageUrl);function a(l,u){const c={};return l.forEach(d=>{c[d]=u[d]||void 0,d==="language"&&c[d]===void 0&&(c[d]=u.site_language||void 0)}),c}function r(){return new Date(Date.now()).toISOString()}function o(l){const c={...e.GTMData,...l};return c.hit_timestamp=r(),c}function s(l){n.value?window.dataLayer.push(l):LoadingSpinner.checkVendorLibrary("dataLayer",()=>{n.value=!0,window.dataLayer.push(l)})}function i(l,u){let c,d,f,v;switch(l){case"siteSearchOpenEvent":c="site_search_open",d={event:c,referrer_page:u.referrer_page},f=o(d),v=a(LoadingSpinner.siteSearchOpenTemplate,f);break;case"siteSearchUsageEvent":c="site_search_event",d={event:c,search_query:u.search_query,query_input:u.query_input,results_count:u.results_count,search_usage_index:u.search_usage_index,search_type:u.search_type,interaction_type:"search_input"},f=o(d),v=a(LoadingSpinner.siteSearchUsageTemplate,f);break;case"siteSearchClickEvent":c="site_search_click",d={event:c,interaction_type:u.interaction_type,search_query:u.search_query,query_input:u.query_input,page_number:u.page_number,page_navigation_direction:u.page_navigation_direction,click_text:u.click_text,click_url:u.click_url,click_category:u.click_category,search_usage_index:u.search_usage_index,results_count:u.results_count},f=o(d),v=a(LoadingSpinner.siteSearchClickTemplate,f);break;case"siteSearchCloseEvent":c="site_search_close",d={event:c,search_usage_index:u.search_usage_index,search_query:u.search_query,query_input:u.query_input,page_number:u.page_number,results_count:u.results_count},f=o(d),v=a(LoadingSpinner.siteSearchCloseTemplate,f);break}v&&s(v)}return{pageUrl:t,createDataLayerObject:i,templateFiller:a,compileFullTemplate:o,returnIsoDate:r,pushToDataLayer:s,dataLayerStore:e}}const _hoisted_1$4={class:"vs-fed-search-input"},_hoisted_2$4={class:"vs-fed-search__input"},_hoisted_3$3={class:"vs-fed-search__text-input"},_hoisted_4$3={for:"federated-search",class:"vs-federated-search__label"},_hoisted_5$3={class:"position-relative"},_hoisted_6$3={key:0,class:"vs-fed-search-input__autocomplete"},_hoisted_7$2=["onClick","onKeyup","innerHTML"],_sfc_main$4={__name:"FedSearchInput",props:{cludoApiKey:{type:String,default:getEnvValue("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number(getEnvValue("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number(getEnvValue("CLUDO_ENGINE_ID"))},isHomePage:{type:Boolean,default:!1},searchUrl:{type:String,default:void 0},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},labels:{type:Object,required:!0}},setup(e){const n=dataLayerComposable(),t=e,a=useFederatedSearchStore(),{isLoading:r}=pinia.storeToRefs(a),o=vue.ref(),s=vue.ref(null),i=vue.ref(null);async function l(g){a.currentPage=1,a.searchTerm=g.value.trim();const b=window.location.search,S=new URLSearchParams(b);a.searchTerm&&S.get("search-term")!==a.searchTerm&&(o.value=await a.getAutoComplete()),a.searchTerm||(o.value=null)}async function u(){o.value=null,await a.navigateToResultsPage(),n.createDataLayerObject("siteSearchUsageEvent",{search_query:a.searchTerm,query_input:a.queryInput,results_count:a.totalResults,search_usage_index:a.searchInSessionCount,search_type:a.searchInSessionCount===1?"initial":"follow-up"})}function c(g){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_autosuggest",search_query:a.searchTerm,page_number:a.currentPage,search_usage_index:a.searchInSessionCount,results_count:a.totalResults,click_text:g,query_input:a.queryInput})}function d(g){a.searchTerm=g,o.value=null,a.navigateToResultsPage(!1,!0),c(g)}function f(g){return g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function p(g){const b=(a.searchTerm||"").trim();if(!b)return v(g);const S=new RegExp(`(${f(b)})`,"gi");return v(g).replace(S,"<strong>$1</strong>")}function h(g){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"facet_click",search_query:a.searchTerm,page_number:a.currentPage,search_usage_index:a.searchInSessionCount,results_count:a.totalResults,click_text:g.Label||g.Key})}async function m(g){const b=new URL(window.location);b.searchParams.delete("page"),a.currentPage=1,b.searchParams.delete("start-date"),b.searchParams.delete("end-date"),a.startDate="",a.endDate="",a.sortBy=void 0,a.selectedSubCategory=[],a.selectedSubCategoryKey=[],a.selectedCategory=a.selectedCategory!==g.Label?g.Label:"",a.selectedCategoryKey=a.selectedCategoryKey!==g.Key?g.Key:"",await a.navigateToResultsPage(!0),h(g)}function _(g){if(!a.selectedSubCategoryKey.includes(g.Key))a.selectedSubCategory.push(g.Label),a.selectedSubCategoryKey.push(g.Key);else{const b=a.selectedSubCategoryKey.indexOf(g.Key);b>=0&&(a.selectedSubCategory.splice(b,1),a.selectedSubCategoryKey.splice(b,1))}a.navigateToResultsPage(!0),h(g)}return vue.onMounted(()=>{a.cludoCredentials={apiKey:t.cludoApiKey,customerId:t.cludoCustomerId,engineId:t.cludoEngineId},a.isHomePage=t.isHomePage,t.searchUrl&&(a.searchUrl=t.searchUrl);const g=window.location.search,b=new URLSearchParams(g);b.has("search-term")&&(a.searchTerm=b.get("search-term")),b.has("category")&&(a.selectedCategoryKey=decodeURIComponent(b.get("category"))),b.has("sub-category")&&decodeURIComponent(b.get("sub-category")).split(",").forEach(k=>a.selectedSubCategoryKey.push(k)),b.has("category")&&b.get("category")==="events"&&b.has("sort-by")&&(a.sortBy=b.get("sort-by")),b.has("start-date")&&(a.startDate=b.get("start-date")),b.has("end-date")&&(a.endDate=b.get("end-date")),(b.has("search-term")||b.has("category"))&&a.getSearchResults()}),vue.watch(r,g=>{var b,S;g||((b=s.value)==null||b.resetScroll(),(S=i.value)==null||S.resetScroll())}),(g,b)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createElementVNode("div",_hoisted_2$4,[vue.createElementVNode("div",_hoisted_3$3,[vue.createElementVNode("label",_hoisted_4$3,[b[0]||(b[0]=vue.createElementVNode("span",{class:"visually-hidden"}," Search for something ",-1)),vue.createVNode(vue.unref(LoadingSpinner.VsIcon),{icon:"vs-icon-control-search",size:"xs"})]),vue.createVNode(vue.unref(VsInput),{"auto-complete":!1,class:"vs-federated-search__input w-100","field-name":"federated-search",name:"searchrequest",placeholder:t.labels.searchLabel,type:"search",value:vue.unref(a).searchTerm,onUpdated:l,onKeyup:vue.withKeys(u,["enter"])},null,8,["placeholder","value"])]),vue.createVNode(vue.unref(LoadingSpinner.VsButton),{class:"d-none d-lg-block px-200",disabled:vue.unref(r),onClick:u},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labels.search),1)]),_:1},8,["disabled"])]),vue.createElementVNode("div",_hoisted_5$3,[o.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$3,[vue.createVNode(vue.unref(VsList),{unstyled:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,S=>(vue.openBlock(),vue.createElementBlock("li",{key:S,class:"vs-fed-search-input__autocomplete__suggestion",onClick:k=>d(S),onKeyup:vue.withKeys(k=>d(S),["enter"]),tabindex:"0",innerHTML:p(S)},null,40,_hoisted_7$2))),128))]),_:1})])):vue.createCommentVNode("",!0)]),t.filters?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:0,"active-filter":vue.unref(a).selectedCategoryKey,"filter-categories":t.filters,ref_key:"categoryFilter",ref:s,wrap:!0,onFilterUpdated:m},null,8,["active-filter","filter-categories"])):vue.createCommentVNode("",!0),vue.unref(a).selectedCategoryKey==="events"&&t.subFilters?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:1,"active-filter":vue.unref(a).selectedSubCategoryKey,class:"mt-200","filter-categories":t.subFilters,ref_key:"subCategoryFilter",ref:i,variant:"secondary",onFilterUpdated:_},{"fed-filter-header":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labels.refine),1)]),_:1},8,["active-filter","filter-categories"])):vue.createCommentVNode("",!0)]))}},_hoisted_1$3={key:0,for:"vs-fed-search-sort__from-date",class:"vs-fed-search-sort__label","data-test":"vs-fed-search-sort__from-date-label"},_hoisted_2$3={key:0,for:"vs-fed-search-sort__to-date",class:"vs-fed-search-sort__label","data-test":"vs-fed-search-sort__to-date-label"},_sfc_main$3={__name:"FedSearchSort",props:{dateFilterVisible:{type:Boolean,default:!1},sortOptions:{type:Array,required:!0},fromDateLabel:{type:String,required:!0},toDateLabel:{type:String,required:!0},sortLabel:{type:String,required:!0}},emits:["from-date-updated","end-date-updated","sort-order-updated"],setup(e){const n=useFederatedSearchStore(),t=e,a=vue.computed(()=>t.sortOptions.find(r=>r.key===n.sortBy));return(r,o)=>(vue.openBlock(),vue.createBlock(LoadingSpinner.VsRow,{class:"vs-fed-search-sort"},{default:vue.withCtx(()=>[t.dateFilterVisible?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsCol,{key:0,cols:"6",md:"4"},{default:vue.withCtx(()=>[t.fromDateLabel?(vue.openBlock(),vue.createElementBlock("label",_hoisted_1$3,vue.toDisplayString(t.fromDateLabel),1)):vue.createCommentVNode("",!0),vue.createVNode(VsInput,{"field-name":"vs-fed-search-sort__from-date",value:vue.unref(n).startDate||new Date().toJSON().slice(0,10),type:"date","auto-complete":!1,onInput:o[0]||(o[0]=s=>r.$emit("from-date-updated",s.target.value)),"data-chromatic":"ignore"},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),t.dateFilterVisible?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsCol,{key:1,cols:"6",md:"4"},{default:vue.withCtx(()=>[t.toDateLabel?(vue.openBlock(),vue.createElementBlock("label",_hoisted_2$3,vue.toDisplayString(t.toDateLabel),1)):vue.createCommentVNode("",!0),vue.createVNode(VsInput,{"field-name":"vs-fed-search-sort__to-date",type:"date","auto-complete":!1,onInput:o[1]||(o[1]=s=>r.$emit("end-date-updated",s.target.value)),value:vue.unref(n).endDate||""},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsCol,{cols:"12",md:"4",class:"vs-fed-search-sort__dropdown-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(VsDropdown,{variant:"secondary",id:"vs-fed-search-sort__dropdown",name:"vs-fed-search-sort__dropdown",text:vue.unref(n).sortBy?`${t.sortLabel}: ${a.value.label}`:t.sortLabel},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.sortOptions,(s,i)=>(vue.openBlock(),vue.createBlock(VsDropdownItem,{key:i,onClick:l=>{r.$emit("sort-order-updated",s.key)},active:vue.unref(n).sortBy===s.key,"data-test":`vs-fed-search-sort__dropdown-item--${s.key}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.label),1)]),_:2},1032,["onClick","active","data-test"]))),128))]),_:1},8,["text"])]),_:1})]),_:1}))}},_hoisted_1$2={class:"vs-federated-search","data-test":"vs-federated-search"},_hoisted_2$2={class:"vs-federated-search__container"},_hoisted_3$2={key:0,class:"vs-federated-search__results"},_hoisted_4$2={key:2},_hoisted_5$2={class:"position-relative"},_hoisted_6$2={class:"position-absolute bottom-0 start-0 d-flex gap-2"},_hoisted_7$1={class:"position-absolute bottom-0 end-0 d-flex"},_hoisted_8$1={class:"truncate-3-lines text-break"},_hoisted_9={class:"d-flex justify-content-end align-items-end mt-050"},_hoisted_10={key:0,class:"d-flex align-items-start flex-grow-1"},_hoisted_11={key:3,class:"vs-federated-search__warning mb-300"},fallbackImg="https://static.visitscotland.com/img/fallback-img.png",_sfc_main$2={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:getEnvValue("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number(getEnvValue("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number(getEnvValue("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:getEnvValue("EVENTS_API_URL")},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:()=>{}},siteLanguage:{type:String,default:"en",validator:e=>e.match(/(en|es|it|de|nl|fr)/)}},setup(e){const n=dataLayerComposable(),t=useFederatedSearchStore(),a=vue.ref({message:"",error:!1}),r=e,o=vue.ref(!1),s=vue.computed(()=>{let g;return t.selectedCategoryKey?t.selectedCategoryKey!=="events"?g=Math.ceil(t.totalResultsCludo/12):t.selectedCategoryKey==="events"&&(g=Math.ceil(t.totalResultsEvents/12)):g=t.totalResultsCludo>=t.totalResultsEvents?Math.ceil(t.totalResultsCludo/6):Math.ceil(t.totalResultsEvents/6),g});function i(){t.endDate&&t.startDate>t.endDate?(a.value.error=!0,a.value.message=r.errorMessages.incorrectDateOrder):t.selectedCategoryKey==="events"&&t.eventsApiError&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.eventError):(t.searchTerm||t.selectedCategory)&&t.selectedCategoryKey!=="events"&&t.cludoError&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.cludoError):t.totalResults===0&&!t.isLoading?(a.value.error=!0,a.value.message=r.errorMessages.noResults):(a.value.error=!1,a.value.message="")}vue.onMounted(()=>{if(n.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),t.cludoCredentials={apiKey:r.cludoApiKey,customerId:r.cludoCustomerId,engineId:r.cludoEngineId},t.eventsApi=r.eventsApi,t.filters=r.filters,t.siteLanguage=r.siteLanguage,i(),typeof window<"u"&&typeof document<"u"){const g=new URLSearchParams(document.location.search),b=g.get("search-term"),S=parseInt(g.get("page"),10);S&&(t.currentPage=S),b&&(t.searchTerm=b,t.getSearchResults()),window.onbeforeunload=()=>{_()}}});function l(g){t.startDate=g,t.navigateToResultsPage(!0)}function u(g){t.endDate=g,t.navigateToResultsPage(!0)}function c(g){t.sortBy=g,t.navigateToResultsPage(!0)}function d(g){let b=!1;g>t.currentPage&&(b=!0),t.currentPage=g,typeof window<"u"&&window.scrollTo({top:0,left:0,behavior:"smooth"}),t.navigateToResultsPage(),m(b)}function f(g,b){return g===b?g:`${g} - ${b}`}function v(g){return g===null?"":g.match(/\b\d+\.\d\b/)?`£${g}0`:`£${g}`}function p(g){if(g.url)return g.url;if(g.placeUrl)return g.placeUrl;const b="https://www.datathistle.com/event/",S=encodeURIComponent(g.title.replaceAll(" ","-").toLowerCase());return`${b}${g.parentId}-${S}`}function h(g){o.value=!0,n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:t.searchTerm,page_number:t.currentPage,click_text:g.title,click_url:p(g),click_category:g.categoryCard&&r.cardCategoryLabels[g.categoryCard]?r.cardCategoryLabels[g.categoryCard]:"",search_usage_index:t.searchInSessionCount,results_count:t.totalResults,query_input:t.queryInput})}function m(g){n.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:t.searchTerm,page_number:t.currentPage,page_navigation_direction:g?"forward":"back",search_usage_index:t.searchInSessionCount,results_count:t.totalResults,query_input:t.queryInput})}function _(){o.value||n.createDataLayerObject("siteSearchCloseEvent",{search_query:t.searchTerm,search_usage_index:t.searchInSessionCount,query_input:t.queryInput,page_number:t.currentPage,results_count:t.totalResults})}return vue.onUpdated(()=>{i()}),(g,b)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createVNode(_sfc_main$4,{"cludo-api-key":r.cludoApiKey,"cludo-customer-id":r.cludoCustomerId,"cludo-engine-id":r.cludoEngineId,filters:r.filters,"sub-filters":r.subFilters,labels:r.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","filters","sub-filters","labels"]),vue.createVNode(_sfc_main$6,{class:"my-200"}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(t).filters,(S,k)=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:k,class:"mb-200"},[vue.renderSlot(g.$slots,`federated-search__spotlight-${S.Key}`)],512)),[[vue.vShow,vue.unref(t).selectedCategoryKey===S.Key]])),128)),vue.unref(t).results?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(LoadingSpinner.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.searchResults),1)]),_:1}),vue.unref(t).totalResults!==0?(vue.openBlock(),vue.createBlock(vue.unref(VsDetail),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.resultsFirst)+" "+vue.toDisplayString(vue.unref(t).totalResults)+" "+vue.toDisplayString(r.searchLabels.resultsSecond),1)]),_:1})):vue.createCommentVNode("",!0)]),vue.unref(t).selectedCategoryKey==="events"?(vue.openBlock(),vue.createBlock(_sfc_main$3,{key:0,"date-filter-visible":!0,"sort-options":r.sortLabels.sortOptions,"from-date-label":r.sortLabels.dateFrom,"to-date-label":r.sortLabels.dateTo,"sort-label":r.sortLabels.sort,onFromDateUpdated:l,onEndDateUpdated:u,onSortOrderUpdated:c},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.unref(t).isLoading?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsLoading),{key:1})):vue.createCommentVNode("",!0),!vue.unref(t).isLoading&&vue.unref(t).results&&!vue.unref(t).eventsApiError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[vue.createVNode(vue.unref(VsCardGroup),{"cards-per-row":3,class:vue.normalizeClass(vue.unref(t).results&&s.value<=1?"mb-300":null)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(t).results,S=>(vue.openBlock(),vue.createBlock(vue.unref(VsCard),{key:S.id},{"vs-card-header":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$2,[vue.createVNode(vue.unref(LoadingSpinner.VsImg),{src:S.imgSrc||fallbackImg,class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),vue.createElementVNode("div",_hoisted_6$2,[S.minPrice?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.fromText)+" "+vue.toDisplayString(v(S.minPrice)),1)]),_:2},1024)):vue.createCommentVNode("",!0),S.startDate?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f(S.startDate,S.endDate)),1)]),_:2},1024)):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_7$1,[S.categoryCard&&e.cardCategoryLabels[S.categoryCard]?(vue.openBlock(),vue.createBlock(vue.unref(VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.cardCategoryLabels[S.categoryCard]),1)]),_:2},1024)):vue.createCommentVNode("",!0)])])]),"vs-card-body":vue.withCtx(()=>[vue.createVNode(vue.unref(LoadingSpinner.VsHeading),{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsLink),{href:p(S),onClick:k=>h(S),class:"stretched-link",variant:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(S.title),1)]),_:2},1032,["href","onClick"])]),_:2},1024),vue.createVNode(vue.unref(LoadingSpinner.VsBody),null,{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_8$1,vue.toDisplayString(S.description),1)]),_:2},1024)]),"vs-card-footer":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[S.location?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10,[vue.createVNode(vue.unref(LoadingSpinner.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),vue.createVNode(vue.unref(VsDetail),{"no-margins":"",color:"tertiary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(S.location),1)]),_:2},1024)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",null,[S.dataSrc==="data-thistle"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):vue.createCommentVNode("",!0)])])]),_:2},1024))),128))]),_:1},8,["class"]),vue.unref(t).results&&s.value>1?(vue.openBlock(),vue.createBlock(vue.unref(_sfc_main$G),{key:0,class:"vs-federated-search__pagination","number-of-pages":s.value,"next-button-label":r.paginationLabels.nextButtonLabel,"previous-button-label":r.paginationLabels.previousButtonLabel,"page-label":r.paginationLabels.pageLabel,"of-label":r.paginationLabels.ofLabel,modelValue:vue.unref(t).currentPage,"onUpdate:modelValue":b[0]||(b[0]=S=>vue.unref(t).currentPage=S),onPageClick:d},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),a.value.error?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[a.value.error?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.value.message),1)]),_:1})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),vue.createVNode(vue.unref(LoadingSpinner.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js mb-300"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(r.searchLabels.noJs),1)]),_:1})]))}};var define_process_env_default={};function setScriptSrc(e,n){e.src=n}const bootstrap=e=>{var n,t,a,r="The Google Maps JavaScript API",o="google",s="importLibrary",i="__ib__",l=document,u=window,c=u[o]||(u[o]={}),d=c.maps||(c.maps={}),f=new Set,v=new URLSearchParams,p=()=>n||(n=new Promise(async(h,m)=>{var _;await(t=l.createElement("script")),v.set("libraries",[...f]+"");for(a in e)v.set(a.replace(/[A-Z]/g,g=>"_"+g[0].toLowerCase()),e[a]);v.set("callback",o+".maps."+i),setScriptSrc(t,"https://maps.googleapis.com/maps/api/js?"+v),d[i]=h,t.onerror=()=>n=m(Error(r+" could not load.")),t.nonce=((_=l.querySelector("script[nonce]"))==null?void 0:_.nonce)||"",l.head.append(t)}));d[s]?console.warn(r+" only loads once. Ignoring:",e):d[s]=(h,...m)=>f.add(h)&&p().then(()=>d[s](h,...m))},MSG_REPEATED_SET_OPTIONS=e=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`,MSG_IMPORT_LIBRARY_EXISTS=e=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`,MSG_SET_OPTIONS_NOT_CALLED="No options were set before calling importLibrary. Make sure to configure the loader using setOptions().",MSG_SCRIPT_ELEMENT_EXISTS="There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.",logDevWarning=define_process_env_default.NODE_ENV!=="production"?e=>{console.warn(`[@googlemaps/js-api-loader] ${e}`)}:()=>{},logDevNotice=define_process_env_default.NODE_ENV!=="production"?e=>{console.info(`[@googlemaps/js-api-loader] ${e}`)}:()=>{};let setOptionsWasCalled_=!1;function setOptions(e){if(setOptionsWasCalled_){logDevWarning(MSG_REPEATED_SET_OPTIONS(e));return}installImportLibrary_(e),setOptionsWasCalled_=!0}async function importLibrary(e){var n,t;if(setOptionsWasCalled_||logDevWarning(MSG_SET_OPTIONS_NOT_CALLED),!((t=(n=window==null?void 0:window.google)==null?void 0:n.maps)!=null&&t.importLibrary))throw new Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(e)}function installImportLibrary_(e){var t,a;const n=!!((a=(t=window.google)==null?void 0:t.maps)!=null&&a.importLibrary);n?logDevNotice(MSG_IMPORT_LIBRARY_EXISTS(e)):define_process_env_default.NODE_ENV!=="production"&&document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]')&&logDevWarning(MSG_SCRIPT_ELEMENT_EXISTS),n||bootstrap(e)}const useGoogleMapStore=pinia.defineStore("googleMap",()=>({sidebarOpen:vue.ref(!0)})),_hoisted_1$1={class:"vs-map-sidebar__header d-flex"},_hoisted_2$1={class:"vs-map-sidebar__content"},_hoisted_3$1={class:"vs-map-sidebar__input d-flex mt-100 mb-050"},_hoisted_4$1={for:"vs-map-search-input",class:"visually-hidden"},_hoisted_5$1={key:1,class:"vs-map-sidebar__sub-filters-wrapper"},_hoisted_6$1={class:"vs-map-sidebar__search-results"},_hoisted_7={class:"vs-map-sidebar__google-maps-container mt-075"},_hoisted_8={key:0,class:"vs-map-sidebar__footer"},_sfc_main$1=vue.defineComponent({__name:"MapSidebar",props:{query:{type:String,default:""},selectedCategories:{type:String,default:""},headerLabel:{type:String,default:""},closeSidebarButtonLabel:{type:String,default:""},inputPlaceholderLabel:{type:String,default:""},searchButtonLabel:{type:String,default:""},clearMapLabel:{type:String,default:""},subFilterHeaderLabel:{type:String,default:""},searchResultsLabel:{type:String,default:""},openSidebarButtonLabel:{type:String,default:""}},emits:["search-input-changed","reset-map"],setup(e){const n=useGoogleMapStore(),t=e;return(a,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-map-sidebar px-125",vue.unref(n).sidebarOpen?"d-block":"d-none"]),"data-test":"vs-map-sidebar",ref:"vsMapSidebar"},[vue.createElementVNode("div",_hoisted_1$1,[t.headerLabel?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsHeading,{key:0,level:"1","heading-style":"heading-xxs",class:"flex-grow-1",id:"vs-map-sidebar__heading","data-test":"vs-map-sidebar__heading","aria-hidden":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.headerLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(LoadingSpinner.VsButton,{variant:"tertiary",icon:"vs-icon-control-dismiss","icon-only":"",class:"vs-map-sidebar__sidebar-control vs-map-siderbar__sidebar-control--dismiss","data-test":"vs-map-siderbar__sidebar-control--dismiss",onClick:r[0]||(r[0]=o=>vue.unref(n).sidebarOpen=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeSidebarButtonLabel),1)]),_:1})]),vue.createElementVNode("div",_hoisted_2$1,[vue.createElementVNode("div",_hoisted_3$1,[vue.createElementVNode("label",_hoisted_4$1,vue.toDisplayString(t.headerLabel),1),vue.createVNode(VsInput,{type:"text",autocomplete:"off","field-name":"vs-map-search-input","data-test":"vs-map-search-input",ref:"vs-search-input",placeholder:t.inputPlaceholderLabel,class:"vs-map-sidebar__input flex-grow-1","aria-describedby":"vs-map-sidebar__heading",onKeyup:r[1]||(r[1]=vue.withKeys(vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"]),["enter"]))},null,8,["placeholder"]),vue.createVNode(LoadingSpinner.VsButton,{class:"vs-map-sidebar__search-button","data-test":"vs-map-sidebar__search-button",icon:"vs-icon-control-search","icon-only":"",rounded:!1,size:"lg",onClick:r[2]||(r[2]=vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"])),onKeyup:r[3]||(r[3]=vue.withKeys(vue.withModifiers(o=>a.$emit("search-input-changed"),["prevent"]),["enter"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonLabel),1)]),_:1})]),a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createBlock(VsLink,{key:0,href:"#",class:"d-block","data-test":"vs-map-sidebar__reset-map",onClick:r[4]||(r[4]=vue.withModifiers(o=>a.$emit("reset-map"),["prevent"])),onKeyup:r[5]||(r[5]=vue.withKeys(vue.withModifiers(o=>a.$emit("reset-map"),["prevent"]),["enter"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearMapLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.$slots["vs-map-sidebar-sub-filters"]&&a.$slots["vs-map-sidebar-sub-filters"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(VsDetail,{class:"vs-map-sidebar__sub-filter-header",size:"small",color:"secondary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subFilterHeaderLabel),1)]),_:1}),vue.renderSlot(a.$slots,"vs-map-sidebar-sub-filters")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_6$1,[a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createBlock(LoadingSpinner.VsHeading,{key:0,level:"2","heading-style":"heading-xxxs","data-test":"vs-map-sidebar__search-result-query"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchResultsLabel)+' "'+vue.toDisplayString(t.query||t.selectedCategories)+'" ',1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_7,[vue.renderSlot(a.$slots,"vs-map-sidebar-search-results")])])]),a.$props.query||a.$props.selectedCategories?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,r[7]||(r[7]=[vue.createElementVNode("hr",{class:"vs-map-sidebar__swipe-tab"},null,-1)]))):vue.createCommentVNode("",!0)],2),vue.createVNode(LoadingSpinner.VsButton,{class:vue.normalizeClass(["vs-map-sidebar__sidebar-control vs-map-sidebar__sidebar-control--open",vue.unref(n).sidebarOpen?"d-none":"d-block"]),"data-test":"vs-map-sidebar__sidebar-control--open",size:"sm",icon:"fa-regular fa-sliders","icon-only":"",onClick:r[6]||(r[6]=o=>vue.unref(n).sidebarOpen=!0)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.openSidebarButtonLabel),1)]),_:1},8,["class"])],64))}}),cookieCheckerComposable=()=>{const e=vue.ref([]),n=vue.ref(!1),t=vue.ref(!1),a=vue.computed(()=>typeof window<"u"&&window.bypassCookiesRequired?!0:n.value),r=vue.computed(()=>typeof window<"u"&&window.bypassCookiesLoaded?!0:{cookieManagerLoaded:t});function o(){t.value=!0}function s(){let i=!1;typeof CookieControl<"u"&&(i=e.value.every(l=>CookieControl.getCategoryConsent(l)===!0)),n.value=i}return vue.onMounted(()=>{window.addEventListener("cookieManagerLoaded",()=>{o()}),window.addEventListener("cookiesUpdated",()=>{s()})}),{requiredCookies:e,cookiesAllowed:a,cookiesLoaded:r}},_hoisted_1={class:"vs-map"},_hoisted_2={class:"vs-map__controls"},_hoisted_3={class:"vs-map-sidebar__sub-filters"},_hoisted_4={key:0,class:"vs-map__filter-controls"},_hoisted_5={class:"vs-map__wrapper"},_hoisted_6={id:"vs-map","map-id":"vs-map",ref:"vsMap"},MAX_ZOOM=19,CATEGORY_VISIBLE_ZOOM=11,NUMBER_OF_RESULTS=20,_sfc_main={__name:"MainMap",props:{apiKey:{type:String,default:getEnvValue("GOOGLE_MAPS_API_KEY")},center:{type:Object,default:()=>({lat:56.490153,lng:4.10959})},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:()=>{}},languageCode:{type:String,default:"en",validator:e=>e.match(/(en|es|it|de|nl|fr)/)},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:()=>{}},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0}},setup(e){const n=e;let t,a,r,o,s,i,l,u,c,d,f={};const v=vue.ref(),p=vue.ref(new Set),h=vue.ref(),m=vue.ref(new Set),_=vue.ref(new Set),g=vue.ref(),b=vue.ref(),S=vue.ref(n.zoom),k=vue.ref(),V=vue.ref(new Set),L=vue.ref(),$=useGoogleMapStore();let A;const F=vue.ref(void 0),P={north:61.865,south:54.62185,west:-8.651,east:.71};let q={};const M=n.categoryLabels;vue.onBeforeMount(()=>{const N=cookieCheckerComposable();N.requiredCookies.value=cookieValues$5.google_maps,A=vue.computed(()=>n.jsDisabled===!0?(F.value="noJS",!0):!N.cookiesAllowed.value&&N.cookiesLoaded.value===!0||!N.cookiesLoaded.value?(F.value="noCookie",!0):!1)}),vue.onMounted(async()=>{if(n.categoriesLocation&&LoadingSpinner.axios.get(n.categoriesLocation).then(D=>{q=D.data}).catch(()=>{}),A.value===!1){setOptions({key:n.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:n.languageCode});try{await importLibrary("maps"),await importLibrary("places"),await importLibrary("marker"),await importLibrary("core"),await importLibrary("geometry")}catch{console.error("Google Maps Library load error")}}a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),o=document.getElementById("textSearch"),s=document.querySelector("gmp-place-text-search-request"),i=document.querySelector("gmp-place-nearby-search-request"),l=document.querySelector("gmp-place-details"),u=document.getElementById("placeRequest"),c=document.getElementById("vs-map-search-input");async function N(){try{const D={center:{lat:n.center.lat,lng:n.center.lng},zoom:n.zoom,mapId:"vs-map",restriction:{latLngBounds:P},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1};if(a)t=new google.maps.Map(a,D);else throw new Error("Init error, mapContainer undefined")}catch(D){console.error("Maps init error",D.message)}d=new google.maps.InfoWindow,t.addListener("zoom_changed",()=>{S.value=t.getZoom()}),r.addEventListener("gmp-select",({place:D})=>{f[D.id]&&B(D,f[D.id])}),o.addEventListener("gmp-select",({place:D})=>{f[D.id]&&B(D,f[D.id])})}A.value===!1&&await N()});function j(N,D){Y(),v.value=N,Object.values(q[N].subCategory).forEach(I=>m.value.add(I.type)),h.value=q[N],g.value=D,W(Array.from(m.value).flat()),k.value=M[g.value].label,c.value=k.value}function Q(N,D){const I=vue.ref([]),R=vue.ref();return N.forEach(()=>{M.forEach(H=>{H.id===v.value&&(I.value=H)}),Object.values(I.value).forEach(H=>{Object.values(H).forEach(U=>{D===U.id&&(R.value=U.label)})})}),R}function J(N,D){b.value=D,p.value.has(N)?(p.value.delete(N),Object.values(q[v.value].subCategory).forEach(I=>{I.id===N&&I.type.forEach(R=>_.value.delete(R))}),V.value.delete(Q(p.value,N).value),p.value.size===0?(V.value=new Set,j(v.value,g.value)):(W(Array.from(_.value).flat()),k.value=Array.from(V.value).join(", "),c.value=k.value)):(p.value.add(N),Object.values(q[v.value].subCategory).forEach(I=>{I.id===N&&I.type.forEach(R=>_.value.add(R))}),W(Array.from(_.value).flat()),V.value.add(Q(p.value,N).value),k.value=Array.from(V.value).join(", "),c.value=k.value)}async function W(N){T(),z(),L.value="nearby";const D=t.getBounds(),I=D.getNorthEast(),R=D.getSouthWest(),H=google.maps.geometry.spherical.computeDistanceBetween(I,R),U=Math.min(H/2,5e4);i.includedTypes=N,i.maxResultCount=NUMBER_OF_RESULTS,i.locationRestriction={center:t.getCenter(),radius:U},r.style.display="block",r.addEventListener("gmp-load",E,{once:!0})}async function C(){T(),Y(),L.value="text",k.value=c.value.trim(),k.value&&(s.textQuery=k.value,s.locationRestriction=t.getBounds(),s.maxResultCount=NUMBER_OF_RESULTS,o.style.display="block",o.addEventListener("gmp-load",E,{once:!0}))}async function E(){const{AdvancedMarkerElement:N}=await importLibrary("marker"),{LatLngBounds:D}=await importLibrary("core"),I=vue.ref();L.value==="nearby"?I.value=r:L.value==="text"?I.value=o:console.error("Unrecognised Search type");const R=new D;I.value.style.display="block",I.value.places&&I.value.places.forEach(H=>{const U=document.createElement("div");U.classList.add("vs-map-marker");const G=document.createElement("i");G.classList.add("fa-solid","fa-location-dot"),U.appendChild(G);const Z=new N({map:t,position:H.location,content:U,title:"Map pin"});Z.addEventListener("gmp-placeclick",()=>{B(H,Z)}),Z.addListener("click",()=>{B(H,Z)}),Z.metadata={id:H.id},f[H.id]=Z,R.extend(H.location),I.value.places.length===1?(t.setCenter({lat:H.location.lat(),lng:H.location.lng()}),t.setZoom(14),t.fitBounds(H.viewport)):(t.setCenter(R.getCenter()),t.fitBounds(R))})}function T(N){w(),L.value="",r.style.display="none",o.style.display="none",d&&d.close&&d.close(),N&&(z(),Y())}function z(){k.value=null,c.value=""}function Y(){v.value=void 0,p.value=new Set,m.value=new Set,_.value=new Set,V.value=new Set,g.value=void 0,b.value=void 0}function w(){for(const N in f)f[N]&&(f[N].map=null);f={}}function B(N,D){d.isOpen&&d.close(),u.place=N,window.innerWidth<=768?(l.style.width="85vw",l.style.height="32em",$.sidebarOpen=!1):(l.style.width="20em",l.style.height="32em"),l.style.display="block",l.style.overflowY="auto",l.style.overflowX="hidden",l.style.boxSizing="border-box",l.style.maxHeight="32em",d.setOptions({content:l,maxWidth:"25em",pixelOffset:null}),d.open({anchor:D,map:t}),t.fitBounds(N.viewport,{top:200,right:150}),google.maps.event.addListenerOnce(t,"idle",()=>{t.getZoom()>MAX_ZOOM&&t.setZoom(MAX_ZOOM)})}return(N,D)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-map__container",vue.unref(A)?"d-none":"d-block"])},[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(_sfc_main$1,{query:k.value,"selected-categories":v.value,"header-label":n.labels.heading,"close-sidebar-button-label":n.labels.closeSidebarBtn,"input-placeholder-label":n.labels.inputPlaceholder,"search-button-label":n.labels.searchButton,"clear-map-label":n.labels.clearMap,"sub-filter-header-label":n.labels.subFilterHeader,"search-results-label":n.labels.searchResults,"open-sidebar-button-label":n.labels.openSidebarButton,onSearchInputChanged:C,onResetMap:D[0]||(D[0]=I=>T(!0))},vue.createSlots({"vs-map-sidebar-search-results":vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.Suspense,null,{default:vue.withCtx(()=>D[1]||(D[1]=[vue.createElementVNode("div",{id:"search-container"},[vue.createElementVNode("gmp-place-search",{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},[vue.createElementVNode("gmp-place-nearby-search-request",{id:"nearbySearchQuery"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])]),vue.createElementVNode("gmp-place-search",{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},[vue.createElementVNode("gmp-place-text-search-request",{id:"textSearchQuery"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])])],-1)])),_:1,__:[1]}))]),_:2},[v.value?{name:"vs-map-sidebar-sub-filters",fn:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(M)[g.value].subCategory,(I,R)=>(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsButton),{key:R,variant:p.value.has(I.id)?"primary":"secondary",size:"sm",onClick:H=>J(I.id,R)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.label),1)]),_:2},1032,["variant","onClick"]))),128))])]),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),S.value>=CATEGORY_VISIBLE_ZOOM&&vue.unref($).sidebarOpen?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(M),(I,R)=>(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsButton),{key:R,class:"vs-map__filter-controls-button",icon:vue.unref(q)[I.id].icon,variant:v.value===I.id?"primary":"secondary",onClick:vue.withModifiers(H=>j(I.id,R),["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.label),1)]),_:2},1032,["icon","variant","onClick"]))),128))])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,null,512),(vue.openBlock(),vue.createBlock(vue.Suspense,null,{default:vue.withCtx(()=>D[2]||(D[2]=[vue.createElementVNode("div",{id:"detail-container"},[vue.createElementVNode("gmp-place-details",{id:"placeDetails",style:{display:"none"}},[vue.createElementVNode("gmp-place-details-place-request",{id:"placeRequest"}),vue.createElementVNode("gmp-place-content-config",null,[vue.createElementVNode("gmp-place-address"),vue.createElementVNode("gmp-place-rating"),vue.createElementVNode("gmp-place-type"),vue.createElementVNode("gmp-place-price"),vue.createElementVNode("gmp-place-accessible-entrance-icon"),vue.createElementVNode("gmp-place-opening-hours"),vue.createElementVNode("gmp-place-website"),vue.createElementVNode("gmp-place-phone-number"),vue.createElementVNode("gmp-place-summary"),vue.createElementVNode("gmp-place-type-specific-highlights"),vue.createElementVNode("gmp-place-reviews"),vue.createElementVNode("gmp-place-feature-list"),vue.createElementVNode("gmp-place-media",{"lightbox-preferred":""}),vue.createElementVNode("gmp-place-attribution",{"light-scheme-color":"gray","dark-scheme-color":"gray"})])])],-1)])),_:1,__:[2]}))])],2),vue.unref(A)&&F.value==="noCookie"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:0,type:"cookie",class:vue.normalizeClass(["vs-map__error vs-map__error--no-cookies",vue.unref(A)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.cookieBtnText),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.noCookiesMessage)+" ",1)]),_:1},8,["class"])):vue.createCommentVNode("",!0),vue.unref(A)&&F.value==="noJS"?(vue.openBlock(),vue.createBlock(vue.unref(LoadingSpinner.VsWarning),{key:1,"data-test":"vs-map__warning--no-js",class:"vs-map__warning vs-map__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.noJsMessage),1)]),_:1})):vue.createCommentVNode("",!0)]))}};exports.VsBody=LoadingSpinner.VsBody;exports.VsButton=LoadingSpinner.VsButton;exports.VsButtonToggleGroup=LoadingSpinner.VsButtonToggleGroup;exports.VsCol=LoadingSpinner.VsCol;exports.VsContainer=LoadingSpinner.VsContainer;exports.VsHeading=LoadingSpinner.VsHeading;exports.VsIcon=LoadingSpinner.VsIcon;exports.VsImg=LoadingSpinner.VsImg;exports.VsLoadingSpinner=LoadingSpinner.VsLoading;exports.VsRow=LoadingSpinner.VsRow;exports.VsWarning=LoadingSpinner.VsWarning;exports.VsAccordion=VsAccordion;exports.VsAccordionItem=VsAccordionItem;exports.VsAccordionToggle=VsAccordionToggle;exports.VsAddress=Address;exports.VsAlert=Alert;exports.VsArticle=Article;exports.VsArticleDetails=ArticleDetails;exports.VsArticleSection=ArticleSection;exports.VsArticleSidebar=ArticleSidebar;exports.VsBackToTop=_sfc_main$2l;exports.VsBadge=VsBadge;exports.VsBanner=Banner;exports.VsBreadcrumb=Breadcrumb;exports.VsBreadcrumbItem=BreadcrumbItem;exports.VsCannedSearch=CannedSearch;exports.VsCaption=VsCaption;exports.VsCarbonCalculator=CarbonCalculator;exports.VsCard=VsCard;exports.VsCardGroup=VsCardGroup;exports.VsCarousel=VsCarousel;exports.VsCarouselSlide=CarouselSlide;exports.VsCheckbox=VsCheckbox;exports.VsDescriptionList=DescriptionList;exports.VsDescriptionListItem=DescriptionListItem;exports.VsDetail=VsDetail;exports.VsDropdown=VsDropdown;exports.VsDropdownItem=VsDropdownItem;exports.VsEmbedWrapper=EmbedWrapper;exports.VsEventCard=EventCard;exports.VsFederatedSearch=_sfc_main$2;exports.VsFederatedSearchInput=_sfc_main$4;exports.VsFilter=_sfc_main$1B;exports.VsFilterSection=_sfc_main$1A;exports.VsFooter=Footer;exports.VsFooterAccordionItem=FooterAccordionItem;exports.VsFooterCopyright=FooterCopyright;exports.VsFooterNavListItem=FooterNavListItem;exports.VsFooterSocialItem=FooterSocialItem;exports.VsFooterSocialMenu=FooterSocialMenu;exports.VsFooterUtilityList=FooterUtilityList;exports.VsForm=Form;exports.VsGlobalMenu=GlobalMenu;exports.VsGlobalMenuLanguage=GlobalMenuLanguage;exports.VsGlobalMenuLanguageItem=GlobalMenuLanguageItem;exports.VsHeroSection=HeroSection;exports.VsHtmlError=HtmlError;exports.VsIconList=IconList;exports.VsIconListItem=IconListItem;exports.VsImageWithCaption=ImageWithCaption;exports.VsInput=VsInput;exports.VsItinerary=Itinerary;exports.VsItineraryBorderOverlapWrapper=ItineraryBorderOverlapWrapper;exports.VsItineraryDay=ItineraryDay;exports.VsItineraryStop=ItineraryStop;exports.VsItineraryStopInfo=ItineraryStopInfo;exports.VsItineraryTips=ItineraryTips;exports.VsLink=VsLink;exports.VsLinkList=VsLinkList;exports.VsLinkListItem=LinkListItem;exports.VsList=VsList;exports.VsListicleItem=ListicleItem;exports.VsMainMap=_sfc_main;exports.VsMegaNavAccordionItem=MegaNavAccordionItem;exports.VsMegaNavDropdownContainer=MegaNavDropdownContainer;exports.VsMegaNavFeaturedEvent=MegaNavFeaturedEvent;exports.VsMegaNavFeaturedItem=MegaNavFeaturedItem;exports.VsMegaNavList=MegaNavList;exports.VsMegaNavListItem=MegaNavListItem;exports.VsMegaNavStaticLink=MegaNavStaticLink;exports.VsMegalinkLinkList=MegalinkLinkList;exports.VsMegalinkMultiImage=MegalinkMultiImage;exports.VsMegalinkSingleImage=MegalinkSingleImage;exports.VsMegalinks=Megalinks;exports.VsMeganav=MegaNav;exports.VsModal=Modal;exports.VsModuleWrapper=VsModuleWrapper;exports.VsNumberInput=VsNumberInput;exports.VsPageIntro=PageIntro;exports.VsPagination=_sfc_main$G;exports.VsPanel=Panel;exports.VsProductSearch=ProductSearch;exports.VsProgressBar=VsProgressBar;exports.VsQuote=Quote;exports.VsRadioButton=VsRadioButton;exports.VsRecaptcha=VsRecaptcha;exports.VsSectionHeader=SectionHeader;exports.VsSelect=VsSelect;exports.VsSiteSearch=VsSiteSearch;exports.VsSiteSearchForm=VsSiteSearchForm;exports.VsSkiScotlandCard=SkiScotlandCard;exports.VsSkiScotlandStatus=SkiScotlandStatus;exports.VsSkipTo=SkipTo;exports.VsSocialCreditLink=SocialCreditLink;exports.VsSocialShare=SocialShare;exports.VsSocialShareItem=SocialShareItem;exports.VsSpotlightSection=SpotlightSection;exports.VsStretchedLinkCard=VsStretchedLinkCard;exports.VsStretchedLinkPanel=VsStretchedLinkPanels;exports.VsStyledList=_sfc_main$g;exports.VsStyledListItem=_sfc_main$f;exports.VsSummaryBoxDistanceListItem=SummaryBoxDistanceListItem;exports.VsSummaryBoxList=SummaryBoxList;exports.VsSummaryBoxListItem=SummaryBoxListItem;exports.VsSvg=VsSvg;exports.VsSvgLink=VsSvgLink;exports.VsTabItem=TabItem;exports.VsTable=VsTable;exports.VsTableBody=VsTableBody;exports.VsTableDataCell=VsTableDataCell;exports.VsTableFooter=VsTableFooter;exports.VsTableHead=VsTableHead;exports.VsTableHeaderCell=VsTableHeaderCell;exports.VsTableRow=VsTableRow;exports.VsTabs=Tabs;exports.VsTag=Tag;exports.VsTagManagerWrapper=TagManagerWrapper;exports.VsTextarea=VsTextarea;exports.VsToggleButton=VsToggleButton;exports.VsTooltip=VsTooltip;exports.VsTourismInfo=TourismInfo;exports.VsVideo=Video;exports.VsVideoCaption=VsVideoCaption;
|