{"version":3,"file":"CVOU21KE1.CIWiUB7p.mjs","names":["metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/tjKxWj4vTjQv8YvkIK21/TYBjATIlbhe2HqxcUnlh/siteMetadata.js","https:/framerusercontent.com/modules/wZ3lgUVTwUXAAMEFdaPu/JsyKCdTJhTco3AAgabMM/CVOU21KE1.js"],"sourcesContent":["// Generated by Framer (7b363e7)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:'<style>\\n    .framer-6k12p6-container {\\n        position: relative !important;\\n    }\\n    </style>\\n\\n    <link rel=\"preconnect\" href=\"https://spas8x-an.myshopify.com\" crossorigin=\"\">\\n<link rel=\"preconnect\" href=\"https://cdn.shopify.com\" crossorigin=\"\">\\n<link rel=\"dns-prefetch\" href=\"https://spas8x-an.myshopify.com\">\\n<link rel=\"dns-prefetch\" href=\"https://cdn.shopify.com\">\\n\\n<script>\\n    (function(h,o,t,j,a,r){\\n        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\\n        h._hjSettings={hjid:6518012,hjsv:6};\\n        a=o.getElementsByTagName(\\'head\\')[0];\\n        r=o.createElement(\\'script\\');r.async=1;\\n        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\\n        a.appendChild(r);\\n    })(window,document,\\'https://static.hotjar.com/c/hotjar-\\',\\'.js?sv=\\');\\n</script>\\n<!-- Plugin: ced618 --> <script>\\n    (function() {\\n      // Initialize shopXtools with version first\\n      window.shopXtools = window.shopXtools || {};\\n      \\n      window.shopXtools.version = \"2.3\";\\n      \\n      const fcConfigs = {\\n        storefrontDomain: \"checkout.tryluckyduck.com\",\\n        storefrontAccessToken: \"6ec07e9c5f307f4ef3313dae361bc416\",\\n      };\\n    \\n      const CURRENCIES = {\"AED\":\"د.إ\",\"AFN\":\"Af\",\"ALL\":\"L\",\"AMD\":\"֏\",\"ANG\":\"ƒ\",\"AOA\":\"Kz\",\"ARS\":\"$\",\"AUD\":\"$\",\"AWG\":\"ƒ\",\"AZN\":\"₼\",\"BAM\":\"KM\",\"BBD\":\"$\",\"BDT\":\"৳\",\"BGN\":\"лв\",\"BHD\":\"د.ب\",\"BIF\":\"FBu\",\"BMD\":\"$\",\"BND\":\"$\",\"BOB\":\"Bs.\",\"BRL\":\"R$\",\"BSD\":\"$\",\"BTN\":\"Nu.\",\"BWP\":\"P\",\"BYN\":\"Br\",\"BZD\":\"BZ$\",\"CAD\":\"$\",\"CDF\":\"FC\",\"CHF\":\"Fr\",\"CLP\":\"$\",\"CNY\":\"\\xa5\",\"COP\":\"$\",\"CRC\":\"₡\",\"CVE\":\"$\",\"CZK\":\"Kč\",\"DJF\":\"Fdj\",\"DKK\":\"kr\",\"DOP\":\"RD$\",\"DZD\":\"د.ج\",\"EGP\":\"\\xa3\",\"ERN\":\"Nfk\",\"ETB\":\"Br\",\"EUR\":\"€\",\"FJD\":\"$\",\"FKP\":\"\\xa3\",\"GBP\":\"\\xa3\",\"GEL\":\"₾\",\"GHS\":\"₵\",\"GIP\":\"\\xa3\",\"GMD\":\"D\",\"GNF\":\"FG\",\"GTQ\":\"Q\",\"GYD\":\"$\",\"HKD\":\"$\",\"HNL\":\"L\",\"HRK\":\"kn\",\"HTG\":\"G\",\"HUF\":\"Ft\",\"IDR\":\"Rp\",\"ILS\":\"₪\",\"INR\":\"₹\",\"IQD\":\"ع.د\",\"IRR\":\"﷼\",\"ISK\":\"kr\",\"JEP\":\"\\xa3\",\"JMD\":\"J$\",\"JOD\":\"د.ا\",\"JPY\":\"\\xa5\",\"KES\":\"KSh\",\"KGS\":\"сом\",\"KHR\":\"៛\",\"KID\":\"$\",\"KMF\":\"CF\",\"KRW\":\"₩\",\"KWD\":\"د.ك\",\"KYD\":\"$\",\"KZT\":\"₸\",\"LAK\":\"₭\",\"LBP\":\"\\xa3\",\"LKR\":\"රු\",\"LRD\":\"$\",\"LSL\":\"L\",\"LTL\":\"Lt\",\"LVL\":\"Ls\",\"LYD\":\"ل.د\",\"MAD\":\"د.م.\",\"MDL\":\"MDL\",\"MGA\":\"Ar\",\"MKD\":\"ден\",\"MMK\":\"Ks\",\"MNT\":\"₮\",\"MOP\":\"MOP$\",\"MRU\":\"UM\",\"MUR\":\"₨\",\"MVR\":\"ރ\",\"MWK\":\"MK\",\"MXN\":\"$\",\"MYR\":\"RM\",\"MZN\":\"MT\",\"NAD\":\"$\",\"NGN\":\"₦\",\"NIO\":\"C$\",\"NOK\":\"kr\",\"NPR\":\"रू\",\"NZD\":\"$\",\"OMR\":\"ر.ع.\",\"PAB\":\"B/.\",\"PEN\":\"S/.\",\"PGK\":\"K\",\"PHP\":\"₱\",\"PKR\":\"₨\",\"PLN\":\"zł\",\"PYG\":\"₲\",\"QAR\":\"ر.ق\",\"RON\":\"lei\",\"RSD\":\"Дин.\",\"RUB\":\"₽\",\"RWF\":\"FRw\",\"SAR\":\"ر.س\",\"SBD\":\"$\",\"SCR\":\"₨\",\"SDG\":\"ج.س.\",\"SEK\":\"kr\",\"SGD\":\"$\",\"SHP\":\"\\xa3\",\"SLL\":\"Le\",\"SOS\":\"Sh\",\"SRD\":\"$\",\"SSP\":\"\\xa3\",\"STN\":\"Db\",\"SYP\":\"\\xa3\",\"SZL\":\"E\",\"THB\":\"฿\",\"TJS\":\"ЅМ\",\"TMT\":\"T\",\"TND\":\"د.ت\",\"TOP\":\"T$\",\"TRY\":\"₺\",\"TTD\":\"TT$\",\"TWD\":\"NT$\",\"TZS\":\"TSh\",\"UAH\":\"₴\",\"UGX\":\"USh\",\"USD\":\"$\",\"UYU\":\"$\",\"UZS\":\"so\\'m\",\"VED\":\"Bs.S.\",\"VES\":\"Bs.\",\"VND\":\"₫\",\"VUV\":\"VT\",\"WST\":\"T\",\"XAF\":\"FCFA\",\"XCD\":\"$\",\"XOF\":\"CFA\",\"XPF\":\"₣\",\"XXX\":\"\",\"YER\":\"﷼\",\"ZAR\":\"R\",\"ZMW\":\"ZK\",\"BYR\":\"Br\",\"STD\":\"Db\",\"VEF\":\"Bs.\"}; \\n      const knownCurrenciesWithCodeAsSymbol = [\"CHF\",\"PLN\",\"SEK\",\"NOK\",\"DKK\",\"CZK\",\"HUF\",\"RON\",\"HRK\",\"BGN\",\"ISK\",\"MDL\",\"BYN\",\"KZT\",\"AMD\",\"UZS\",\"TJS\",\"KGS\",\"MNT\",\"GEL\",\"AFN\",\"MRU\",\"RWF\",\"XAF\",\"XOF\",\"XPF\"]; \\n      // Initialize default currency variables\\n      let defaultCountry = \\'\\';\\n      let defaultCountryCode = \\'\\';\\n      let defaultCurrency = \\'\\';\\n      let defaultCurrencySymbol = \\'\\';\\n\\n      document.addEventListener(\\'checkout__settings-updated\\', (event) => {\\n        const { current } = event.detail;\\n        if (current) {\\n          // Update the global default variables\\n          defaultCountry = current.defaultCountry || \\'\\';\\n          defaultCountryCode = current.defaultCountryCode || \\'\\';\\n          defaultCurrency = current.defaultCurrency || \\'\\';\\n          defaultCurrencySymbol = current.defaultCurrencySymbol || \\'\\';\\n\\n          // Set session storage only if it\\'s empty (reverted to 2.0 stable behavior)\\n          if (!localStorage.getItem(\\'selectedCountry\\')) {\\n            localStorage.setItem(\\'selectedCountry\\', defaultCountry);\\n          }\\n          if (!localStorage.getItem(\\'selectedCountryCode\\')) {\\n            localStorage.setItem(\\'selectedCountryCode\\', defaultCountryCode);\\n          }\\n          if (!localStorage.getItem(\\'selectedCurrency\\')) {\\n            localStorage.setItem(\\'selectedCurrency\\', defaultCurrency);\\n          }\\n          if (!localStorage.getItem(\\'selectedCurrencySymbol\\')) {\\n            localStorage.setItem(\\'selectedCurrencySymbol\\', defaultCurrencySymbol);\\n          }\\n\\n          // Clear product cache and refetch products with new currency\\n          localStorage.removeItem(\\'fc_products\\');\\n          localStorage.removeItem(\\'fc_products_timestamp\\');\\n          \\n          // Refetch products with the current country code\\n          const currentCountryCode = localStorage.getItem(\\'selectedCountryCode\\');\\n          if (currentCountryCode) {\\n            fetchProductsByCountry(currentCountryCode).catch(error => {\\n              console.error(\\'Error refetching products after currency change:\\', error);\\n              window.shopXtools.status = \"ready\";\\n            });\\n          }\\n\\n          // console.log(\\'Session storage is set:\\', {\\n          //   defaultCountry,\\n          //   defaultCountryCode,\\n          //   defaultCurrency,\\n          //   defaultCurrencySymbol\\n          // });\\n        }\\n      });\\n      \\n      let domain;\\n      let products = [];\\n    \\n      // ALL QUERIES - Keeping the improved price-related queries from 2.1\\n      const getProductsQuery = `\\n        query GetProducts($cursor: String) {\\n          products(first: 250, after: $cursor) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                createdAt\\n                bestSellingRank\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                     }\\n                    }\\n                }\\n                sellingPlanGroups(first: 1) {\\n                  edges {\\n                    node {\\n                      name\\n                      options {\\n                        name\\n                        values\\n                      }\\n                      sellingPlans(first: 10) {\\n                        edges {\\n                          node {\\n                            id\\n                            name\\n                            description\\n                            recurringDeliveries\\n                            priceAdjustments {\\n                              orderCount\\n                              adjustmentValue {\\n                                __typename\\n                                ... on SellingPlanPercentagePriceAdjustment {\\n                                  adjustmentPercentage\\n                                }\\n                                ... on SellingPlanFixedAmountPriceAdjustment {\\n                                  adjustmentAmount {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                                ... on SellingPlanFixedPriceAdjustment {\\n                                  price {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n    \\n      const getProductsQueryBackup = `\\n        query GetProductsBackup($cursor: String) {\\n          products(first: 250, after: $cursor) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                     }\\n                    }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      availableForSale\\n                      quantityAvailable\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n      \\n      const getCartQuery = `\\n        query GetCart($cartId: ID!) {\\n          cart(id: $cartId) {\\n            id\\n            createdAt\\n            updatedAt\\n            checkoutUrl\\n            buyerIdentity {\\n              countryCode\\n            }\\n            lines(first: 250) {\\n              edges {\\n                node {\\n                  id\\n                  quantity\\n                  sellingPlanAllocation { \\n                    checkoutChargeAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    sellingPlan {\\n                      id\\n                      name\\n                      description\\n                    }\\n                  }\\n                  merchandise {\\n                    ... on ProductVariant {\\n                      id\\n                      title\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      product {\\n                        title\\n                        handle\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                  attributes {\\n                    key\\n                    value\\n                  }\\n                  cost {\\n                    subtotalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    totalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            attributes {\\n              key\\n              value\\n            }\\n            cost {\\n              totalAmount {\\n                amount\\n                currencyCode\\n              }\\n              subtotalAmount {\\n                amount\\n                currencyCode\\n              }\\n            }\\n          }\\n        }\\n      `;\\n    \\n      const getCartQueryNoPlans = `\\n        query GetCart($cartId: ID!) {\\n          cart(id: $cartId) {\\n            id\\n            createdAt\\n            updatedAt\\n            checkoutUrl\\n            buyerIdentity {\\n              countryCode\\n            }\\n            lines(first: 250) {\\n              edges {\\n                node {\\n                  id\\n                  quantity\\n                  merchandise {\\n                    ... on ProductVariant {\\n                      id\\n                      title\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      product {\\n                        title\\n                        handle\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                  attributes {\\n                    key\\n                    value\\n                  }\\n                  cost {\\n                    subtotalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                    totalAmount {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            attributes {\\n              key\\n              value\\n            }\\n            cost {\\n              totalAmount {\\n                amount\\n                currencyCode\\n              }\\n              subtotalAmount {\\n                amount\\n                currencyCode\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n\\n      // Get available currencies from the store\\n      const getAvailableCurrencies = `\\n        query GetAvailableCurrencies {\\n          localization {\\n            availableCountries {\\n              currency {\\n                isoCode\\n                name\\n                symbol\\n              }\\n              isoCode\\n              name\\n            }\\n          }\\n        }\\n      `;\\n\\n      // Collection-specific queries - Keeping the improved queries from 2.1\\n      const getProductsQueryByCollection = `\\n        query GetProductsByCollection($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 250, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  sellingPlanGroups(first: 1) {\\n                    edges {\\n                      node {\\n                        name\\n                        options {\\n                          name\\n                          values\\n                        }\\n                        sellingPlans(first: 10) {\\n                          edges {\\n                            node {\\n                              id\\n                              name\\n                              description\\n                              recurringDeliveries\\n                              priceAdjustments {\\n                                orderCount\\n                                adjustmentValue {\\n                                  __typename\\n                                  ... on SellingPlanPercentagePriceAdjustment {\\n                                    adjustmentPercentage\\n                                  }\\n                                  ... on SellingPlanFixedAmountPriceAdjustment {\\n                                    adjustmentAmount {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                  ... on SellingPlanFixedPriceAdjustment {\\n                                    price {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getLessProductsQueryByCollection = `\\n        query GetProductsByCollection($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 80, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  sellingPlanGroups(first: 1) {\\n                    edges {\\n                      node {\\n                        name\\n                        options {\\n                          name\\n                          values\\n                        }\\n                        sellingPlans(first: 10) {\\n                          edges {\\n                            node {\\n                              id\\n                              name\\n                              description\\n                              recurringDeliveries\\n                              priceAdjustments {\\n                                orderCount\\n                                adjustmentValue {\\n                                  __typename\\n                                  ... on SellingPlanPercentagePriceAdjustment {\\n                                    adjustmentPercentage\\n                                  }\\n                                  ... on SellingPlanFixedAmountPriceAdjustment {\\n                                    adjustmentAmount {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                  ... on SellingPlanFixedPriceAdjustment {\\n                                    price {\\n                                      amount\\n                                      currencyCode\\n                                    }\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getProductsQueryByCollectionBackup = `\\n        query GetProductsByCollectionBackup($cursor: String, $countryCode: CountryCode, $collectionHandle: String!) @inContext(country: $countryCode) {\\n          collection(handle: $collectionHandle) {\\n            products(first: 250, after: $cursor) {\\n              edges {\\n                node {\\n                  id\\n                  title\\n                  vendor\\n                  handle\\n                  productType\\n                  tags\\n                  collections(first: 250) {\\n                    edges {\\n                      node {\\n                        id\\n                        title\\n                        handle\\n                      }\\n                    }\\n                  }\\n                  images(first: 20) {\\n                    edges {\\n                      node {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                    }\\n                  }\\n                  metafields(identifiers: [\\n                    { namespace: \"custom\", key: \"fc_color\" },\\n                    { namespace: \"custom\", key: \"fc_size\" }\\n                  ]) {\\n                    key\\n                    namespace\\n                    value\\n                  }\\n                  options {\\n                    id\\n                    name\\n                    values\\n                  }\\n                  compareAtPriceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  priceRange {\\n                    minVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                    maxVariantPrice {\\n                      amount\\n                      currencyCode\\n                    }\\n                  }\\n                  variants(first: 250) {\\n                    pageInfo {\\n                      hasNextPage\\n                      hasPreviousPage\\n                      endCursor\\n                    }\\n                    edges {\\n                      node {\\n                        id\\n                        image {\\n                          url\\n                          altText\\n                          width\\n                          height\\n                        }\\n                        title\\n                        sku\\n                        quantityAvailable\\n                        availableForSale\\n                        requiresShipping\\n                        selectedOptions {\\n                          name\\n                          value\\n                        }\\n                        price {\\n                          amount\\n                          currencyCode\\n                        }\\n                        compareAtPrice {\\n                          amount\\n                          currencyCode\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n              pageInfo {\\n                hasNextPage\\n                endCursor\\n              }\\n            }\\n          }\\n        }\\n      `;\\n\\n      // Get products by country - Keeping the improved queries from 2.1\\n      const getProductsQueryByCountry = `\\n        query GetProductsByCountry ($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 250, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                sellingPlanGroups(first: 1) {\\n                  edges {\\n                    node {\\n                      name\\n                      options {\\n                        name\\n                        values\\n                      }\\n                      sellingPlans(first: 10) {\\n                        edges {\\n                          node {\\n                            id\\n                            name\\n                            description\\n                            recurringDeliveries\\n                            priceAdjustments {\\n                              orderCount\\n                              adjustmentValue {\\n                                __typename\\n                                ... on SellingPlanPercentagePriceAdjustment {\\n                                  adjustmentPercentage\\n                                }\\n                                ... on SellingPlanFixedAmountPriceAdjustment {\\n                                  adjustmentAmount {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                                ... on SellingPlanFixedPriceAdjustment {\\n                                  price {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getProductsQueryByCountryBackup = `\\n        query GetProductsByCountryBackup($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 250, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      const getLessProductsQueryByCountry = `\\n        query GetProductsByCountry ($cursor: String, $countryCode: CountryCode, $query: String) @inContext(country: $countryCode) {\\n          products(\\n            first: 80, \\n            after: $cursor, \\n            query: $query\\n          ) {\\n            edges {\\n              node {\\n                id\\n                title\\n                vendor\\n                handle\\n                productType\\n                tags\\n                collections(first: 250) {\\n                  edges {\\n                    node {\\n                      id\\n                      title\\n                      handle\\n                    }\\n                  }\\n                }\\n                images(first: 20) {\\n                  edges {\\n                    node {\\n                      url\\n                      altText\\n                      width\\n                      height\\n                    }\\n                  }\\n                }\\n                metafields(identifiers: [\\n                  { namespace: \"custom\", key: \"fc_color\" },\\n                  { namespace: \"custom\", key: \"fc_size\" }\\n                ]) {\\n                  key\\n                  namespace\\n                  value\\n                }\\n                sellingPlanGroups(first: 1) {\\n                  edges {\\n                    node {\\n                      name\\n                      options {\\n                        name\\n                        values\\n                      }\\n                      sellingPlans(first: 10) {\\n                        edges {\\n                          node {\\n                            id\\n                            name\\n                            description\\n                            recurringDeliveries\\n                            priceAdjustments {\\n                              orderCount\\n                              adjustmentValue {\\n                                __typename\\n                                ... on SellingPlanPercentagePriceAdjustment {\\n                                  adjustmentPercentage\\n                                }\\n                                ... on SellingPlanFixedAmountPriceAdjustment {\\n                                  adjustmentAmount {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                                ... on SellingPlanFixedPriceAdjustment {\\n                                  price {\\n                                    amount\\n                                    currencyCode\\n                                  }\\n                                }\\n                              }\\n                            }\\n                          }\\n                        }\\n                      }\\n                    }\\n                  }\\n                }\\n                options {\\n                  id\\n                  name\\n                  values\\n                }\\n                compareAtPriceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                priceRange {\\n                  minVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                  maxVariantPrice {\\n                    amount\\n                    currencyCode\\n                  }\\n                }\\n                variants(first: 250) {\\n                  pageInfo {\\n                    hasNextPage\\n                    hasPreviousPage\\n                    endCursor\\n                  }\\n                  edges {\\n                    node {\\n                      id\\n                      image {\\n                        url\\n                        altText\\n                        width\\n                        height\\n                      }\\n                      title\\n                      sku\\n                      quantityAvailable\\n                      availableForSale\\n                      requiresShipping\\n                      selectedOptions {\\n                        name\\n                        value\\n                      }\\n                      price {\\n                        amount\\n                        currencyCode\\n                      }\\n                      compareAtPrice {\\n                        amount\\n                        currencyCode\\n                      }\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            pageInfo {\\n              hasNextPage\\n              endCursor\\n            }\\n          }\\n        }\\n      `;\\n\\n      window.shopXtools = window.shopXtools || {};\\n      window.shopXtools.products = {};\\n      window.shopXtools.fetchCart = null;\\n      window.shopXtools.dispatchEvent = (eventType, detail) => {\\n            const newEvent = new CustomEvent(eventType, { detail });\\n            document.dispatchEvent(newEvent);\\n          };\\n    \\n      window.shopXtools.handleCartMutation = async (mutation, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const token = fcConfigs.storefrontAccessToken;\\n    \\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": token,\\n            },\\n            body: JSON.stringify({\\n              query: mutation,\\n              variables,\\n            }),\\n          });\\n          const result = await response.json();\\n          if (response.ok && !result.errors) {\\n            // If this is a cart mutation and we have cart data, save it to localStorage\\n            if (result.data && (result.data.cartCreate || result.data.cartLinesAdd || \\n                result.data.cartLinesRemove || result.data.cartLinesUpdate || \\n                result.data.cartBuyerIdentityUpdate)) {\\n              \\n              // Find the cart object in the response\\n              const cartData = result.data.cartCreate?.cart || \\n                              result.data.cartLinesAdd?.cart || \\n                              result.data.cartLinesRemove?.cart || \\n                              result.data.cartLinesUpdate?.cart ||\\n                              result.data.cartBuyerIdentityUpdate?.cart;\\n              \\n              if (cartData) {\\n                //console.log(\"Saving cart data to localStorage:\", cartData);\\n                // Update the global cart object\\n                window.shopXtools.cart = cartData;\\n                // Save to localStorage\\n                localStorage.setItem(\"shopXtools.cart\", JSON.stringify(cartData));\\n                \\n                // If this is a buyerIdentity update with a country code, update currency settings\\n                if (result.data.cartBuyerIdentityUpdate && cartData.buyerIdentity && cartData.buyerIdentity.countryCode) {\\n                  //console.log(\"Country code updated in cart:\", cartData.buyerIdentity.countryCode);\\n                  // Trigger currency settings update\\n                  initializeCurrencySettings();\\n                }\\n              }\\n            }\\n            return result.data;\\n          } else {\\n            console.error(\"GraphQL errors:\", result.errors);\\n            return null;\\n          }\\n        } catch (error) {\\n          console.error(\"Network error:\", error);\\n          return null;\\n        }\\n      };\\n\\n\\n        window.shopXtools.handleTemporaryCartMutation = async (mutation, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const token = fcConfigs.storefrontAccessToken;\\n\\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": token,\\n            },\\n            body: JSON.stringify({\\n              query: mutation,\\n              variables,\\n            }),\\n          });\\n          const result = await response.json();\\n          if (response.ok && !result.errors) {\\n            // If this is a cart mutation and we have cart data, save it to temporaryCart\\n            if (result.data && (result.data.cartCreate || result.data.cartLinesAdd || \\n                result.data.cartLinesRemove || result.data.cartLinesUpdate || \\n                result.data.cartBuyerIdentityUpdate)) {\\n              \\n              // Find the cart object in the response\\n              const cartData = result.data.cartCreate?.cart || \\n                              result.data.cartLinesAdd?.cart || \\n                              result.data.cartLinesRemove?.cart || \\n                              result.data.cartLinesUpdate?.cart ||\\n                              result.data.cartBuyerIdentityUpdate?.cart;\\n              \\n              if (cartData) {\\n                // If this is a buyerIdentity update with a country code, update currency settings\\n                if (result.data.cartBuyerIdentityUpdate && cartData.buyerIdentity && cartData.buyerIdentity.countryCode) {\\n                  // Trigger currency settings update\\n                  initializeCurrencySettings();\\n                }\\n              }\\n            }\\n            return result.data; // Return the temporary cart data\\n          } else {\\n            console.error(\"GraphQL errors:\", result.errors);\\n            return null;\\n          }\\n        } catch (error) {\\n          console.error(\"Network error:\", error);\\n          return null;\\n        }\\n      };\\n    \\n      window.shopXtools.fetchCart = async function(cartId) {\\n        const variables = { cartId: cartId };\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n    \\n        const tryFetchCart = async (query, queryName) => {\\n          try {\\n            const response = await fetch(endpoint, {\\n              method: \"POST\",\\n              headers: {\\n                \"Content-Type\": \"application/json\",\\n                \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n              },\\n              body: JSON.stringify({ query: query, variables }),\\n            });\\n    \\n            const result = await response.json();\\n            if (result.errors) {\\n              console.error(`${queryName} failed with errors:`, result.errors);\\n              return null;\\n            }\\n    \\n            if (result.data && result.data.cart) {\\n              // Save cart data to localStorage\\n              //console.log(\"Saving fetched cart data to localStorage:\", result.data.cart);\\n              window.shopXtools.cart = result.data.cart;\\n              localStorage.setItem(\"shopXtools.cart\", JSON.stringify(result.data.cart));\\n              \\n              // If cart has buyerIdentity with countryCode, update currency settings\\n              if (result.data.cart.buyerIdentity && result.data.cart.buyerIdentity.countryCode) {\\n                //console.log(\"Country code found in fetched cart:\", result.data.cart.buyerIdentity.countryCode);\\n                // Trigger currency settings update\\n                initializeCurrencySettings();\\n              }\\n              \\n              return result.data.cart;\\n            } else {\\n              console.error(`Cart data not found in response from ${queryName}:`, result);\\n              return null;\\n            }\\n          } catch (error) {\\n            console.error(`Network error during ${queryName}:`, error);\\n            return null;\\n          }\\n        };\\n    \\n        let cartData = await tryFetchCart(getCartQuery, \"Primary cart query\");\\n        //console.log(cartData);\\n        if (!cartData) {\\n          //console.log(\"Primary cart query failed, attempting backup cart query...\");\\n          cartData = await tryFetchCart(getCartQueryNoPlans, \"Backup cart query\");\\n        }\\n    \\n        return cartData;\\n      };\\n    \\n      const configValidation = () => {\\n        if (!fcConfigs.storefrontDomain) {\\n          throw Error(\"Storefront domain not found\");\\n        }\\n        if (!fcConfigs.storefrontAccessToken) {\\n          throw Error(\"Storefront access token not found\");\\n        }\\n      };\\n    \\n      const setDomainUrl = () => {\\n        let storeDomain = \"https://test.shopify.com\";\\n        if (fcConfigs.storefrontDomain) {\\n          storeDomain = fcConfigs.storefrontDomain.startsWith(\"http\")\\n            ? fcConfigs.storefrontDomain\\n            : `https://${fcConfigs.storefrontDomain}`;\\n        }\\n        domain = new URL(storeDomain);\\n      };\\n    \\n      const shopify = async (type, query, variables) => {\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        const response = await fetch(endpoint, {\\n          method: \"POST\",\\n          body: JSON.stringify({ [type]: query, variables }),\\n          headers: {\\n            \"Content-Type\": \"application/json\",\\n            \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n          },\\n        });\\n        const json = await response.json();\\n        return json.data;\\n      };\\n    \\n      const setupInitialToolsObject = () => {\\n        if (window.shopXtools) {\\n          return;\\n        }\\n    \\n        window.shopXtools = {\\n          __eventsIdentifier: \"shopX__events__fragment\",\\n          dispatchEvent: (eventType, detail) => {\\n            const newEvent = new CustomEvent(eventType, { detail });\\n            document.dispatchEvent(newEvent);\\n          },\\n          status: \"loading\",\\n          cart: {},\\n          products: [],\\n          getProducts: (_id) => {\\n            if (window.shopXtools.status !== \"ready\") {\\n              console.warn(\"Products not yet loaded, please wait for data__products-ready event\");\\n              return null;\\n            }\\n            const fullId = _id.startsWith(\\'gid://\\') ? _id : `gid://shopify/Product/${_id}`;\\n            return window.shopXtools.products.find(({ node: product }) => product.id === fullId);\\n          },\\n          getProductsForCountry: (countryCode) => {\\n            if (window.shopXtools.status !== \"ready\") {\\n              console.warn(\"Products not yet loaded, please wait for data__products-ready event\");\\n              return [];\\n            }\\n            return window.shopXtools.productsWithPrices?.[countryCode] || [];\\n          }\\n        };\\n      };\\n\\n\\n      // Function to fetch available currencies\\n      const fetchAvailableCurrencies = async () => {\\n        // console.log(\"Domain object in fetchAvailableCurrencies:\", domain);\\n        // console.log(\"Domain host:\", domain?.host);\\n        if (!domain || !domain.host) {\\n          console.warn(\"fetchAvailableCurrencies: domain not ready; skipping fetch\");\\n          return null;\\n        }\\n\\n        const endpoint = `https://${domain.host}/api/2024-07/graphql.json`;\\n        \\n        try {\\n          const response = await fetch(endpoint, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n            },\\n            body: JSON.stringify({ query: getAvailableCurrencies }),\\n          });\\n\\n          const result = await response.json();\\n          //console.log(\"[CURRENCIES] Result:\", result);\\n          if (result.errors) {\\n            console.error(\"Error fetching currencies:\", result.errors);\\n            return null;\\n          }\\n          const availableCurrenciesAndCountries = result?.data?.localization?.availableCountries;\\n          \\n          //console.log(\"[CURRENCIES] Available Currencies:\", availableCurrenciesAndCountries);\\n          sessionStorage.setItem(\"availableCurrenciesAndCountries\", JSON.stringify(availableCurrenciesAndCountries));\\n          //console.log(sessionStorage.getItem(\"availableCurrenciesAndCountries\")\\n          \\n          return { availableCurrenciesAndCountries };\\n          \\n        } catch (error) {\\n          console.error(\"Error fetching currencies:\", error);\\n          return null;\\n        }\\n      };\\n\\n      // Initialize shopXtools and attach fetchAvailableCurrencies to it\\n      window.shopXtools = window.shopXtools || {};\\n      window.shopXtools.fetchAvailableCurrencies = fetchAvailableCurrencies;\\n      \\n      \\n\\n      // Function to initialize currency settings\\n      const initializeCurrencySettings = async () => {\\n        // Ensure domain is initialized before proceeding\\n        if (!domain) {\\n            await setDomainUrl();\\n        }\\n        if (!domain || !domain.host) {\\n            console.error(\"Domain is still undefined after initialization. Cannot fetch currencies.\");\\n            return;\\n        }\\n\\n        // Retrieve available currencies from sessionStorage or fetch if not available\\n        let availableCurrenciesAndCountries = JSON.parse(sessionStorage.getItem(\"availableCurrenciesAndCountries\"));\\n        if (!availableCurrenciesAndCountries) {\\n            const currencies = await fetchAvailableCurrencies();\\n            if (!currencies) {\\n                console.error(\"Failed to fetch available currencies\");\\n                return;\\n            }\\n            availableCurrenciesAndCountries = currencies.availableCurrenciesAndCountries;\\n            sessionStorage.setItem(\"availableCurrenciesAndCountries\", JSON.stringify(availableCurrenciesAndCountries));\\n        }\\n\\n        // Get values from window.__FcCheckoutConfigs\\n        const fcCheckoutConfigs = window.__FcCheckoutConfigs || {};\\n        const configCountry = fcCheckoutConfigs.defaultCountry;\\n        const configCountryCode = fcCheckoutConfigs.defaultCountryCode;\\n        const configCurrency = fcCheckoutConfigs.defaultCurrency;\\n        const configCurrencySymbol = fcCheckoutConfigs.defaultCurrencySymbol;\\n        //console.log(\"configCurrencySymbol\", configCurrencySymbol)\\n        \\n        // Get values from localStorage\\n        let storedCurrency = localStorage.getItem(\"selectedCurrency\");\\n        let storedCountry = localStorage.getItem(\"selectedCountry\");\\n        let storedCountryCode = localStorage.getItem(\"selectedCountryCode\");\\n        let storedCurrencySymbol = localStorage.getItem(\"selectedCurrencySymbol\");\\n\\n        // Get cart data from localStorage\\n        let cart;\\n        try {\\n          const cartData = localStorage.getItem(\"shopXtools.cart\");\\n          if (cartData) {\\n            cart = JSON.parse(cartData);\\n          } else {\\n            cart = {};\\n          }\\n        } catch (error) {\\n          console.error(\"Error parsing cart data:\", error);\\n          cart = {};\\n        }\\n        \\n        const buyerIdentity = cart.buyerIdentity || {};\\n        const countryCodeFromCart = buyerIdentity.countryCode;\\n        window.shopXtools.cart = cart;\\n\\n        // Determine the country code using the priority sequence\\n        let finalCountryCode;\\n        let finalCurrency = null;\\n        let finalCountry = null;\\n        let finalCurrencySymbol = null;\\n        \\n        if (countryCodeFromCart) {\\n          // Priority 1: Use country code from cart\\n          finalCountryCode = countryCodeFromCart;\\n        } else if (storedCountryCode && storedCurrency && storedCountry && storedCurrencySymbol) {\\n          // Priority 2: Use values from localStorage if all are present\\n          finalCountryCode = storedCountryCode;\\n          finalCurrency = storedCurrency;\\n          finalCountry = storedCountry;\\n          finalCurrencySymbol = storedCurrencySymbol;\\n        } else if (configCountryCode && configCurrency && configCountry) {\\n          // Priority 3: Use values from window.__FcCheckoutConfigs if all are present\\n          finalCountryCode = configCountryCode;\\n          finalCurrency = configCurrency;\\n          finalCountry = configCountry;\\n          finalCurrencySymbol = configCurrencySymbol;\\n        } else {\\n          // Priority 4: Use first available country if nothing else is available\\n          if (availableCurrenciesAndCountries && availableCurrenciesAndCountries.length > 0) {\\n            finalCountryCode = availableCurrenciesAndCountries[0].isoCode;\\n          } else {\\n            console.error(\"No country data available\");\\n            return;\\n          }\\n        }\\n        \\n        // If we only have the country code (from cart or when other values are missing),\\n        // find the matching country data to get the currency and country name\\n        if (!finalCurrency || !finalCountry) {\\n          const matchedCountry = availableCurrenciesAndCountries.find(c => c.isoCode === finalCountryCode);\\n          if (matchedCountry) {\\n            finalCurrency = matchedCountry.currency.isoCode;\\n            finalCountry = matchedCountry.name;\\n            //finalCurrencySymbol = CURRENCIES[finalCurrency];\\n            if (knownCurrenciesWithCodeAsSymbol[finalCurrency]){\\n              finalCurrencySymbol = finalCurrency\\n            } else {\\n              finalCurrencySymbol = CURRENCIES[finalCurrency];\\n            }\\n          } else {\\n            // If no match found, use first available country as fallback\\n            if (availableCurrenciesAndCountries && availableCurrenciesAndCountries.length > 0) {\\n              const firstCountry = availableCurrenciesAndCountries[0];\\n              finalCountryCode = firstCountry.isoCode;\\n              finalCurrency = firstCountry.currency.isoCode;\\n              finalCountry = firstCountry.name;\\n              //finalCurrencySymbol = CURRENCIES[finalCurrency];\\n              if (knownCurrenciesWithCodeAsSymbol[finalCurrency]){\\n                finalCurrencySymbol = finalCurrency\\n              } else {\\n                finalCurrencySymbol = CURRENCIES[finalCurrency];\\n              }\\n            } else {\\n              console.error(\"Cannot determine country settings\");\\n              return;\\n            }\\n          }\\n        }\\n\\n        // Update localStorage with the final values\\n        localStorage.setItem(\"selectedCountry\", finalCountry);\\n        localStorage.setItem(\"selectedCurrency\", finalCurrency);\\n        localStorage.setItem(\"selectedCountryCode\", finalCountryCode);\\n        localStorage.setItem(\"selectedCurrencySymbol\", finalCurrencySymbol);\\n\\n        // Also update window.shopXtools for global consistency\\n        window.shopXtools.defaultCurrency = finalCurrency;\\n        window.shopXtools.defaultCountry = finalCountry;\\n        window.shopXtools.defaultCountryCode = finalCountryCode;\\n        window.shopXtools.defaultCurrencySymbol = finalCurrencySymbol;\\n\\n        // Dispatch an event to notify the application of currency settings changes\\n        const currencyEvent = new CustomEvent(\\'currency__settings-updated\\', {\\n          detail: {\\n            previous: {\\n              defaultCountry: storedCountry,\\n              defaultCountryCode: storedCountryCode,\\n              defaultCurrency: storedCurrency,\\n              defaultCurrencySymbol: storedCurrencySymbol\\n            },\\n            current: {\\n              defaultCountry: finalCountry,\\n              defaultCountryCode: finalCountryCode,\\n              defaultCurrency: finalCurrency,\\n              defaultCurrencySymbol: finalCurrencySymbol\\n            }\\n          }\\n        });\\n        document.dispatchEvent(currencyEvent);\\n      };\\n\\n\\n      const handleProductData = (newProducts, countryCode, isInitialLoad = false, cursor = null) => {\\n        try {\\n          // Validate incoming data structure\\n          if (!Array.isArray(newProducts)) {\\n            console.warn(\\'handleProductData: newProducts is not an array, converting to empty array\\');\\n            newProducts = [];\\n          }\\n          \\n          // Transform products into minimal format with only essential data\\n          const transformedProducts = newProducts.map(({ node }) => {\\n            // Validate node structure\\n            if (!node || typeof node !== \\'object\\') {\\n              console.warn(\\'handleProductData: Invalid node structure, skipping product\\');\\n              return null;\\n            }\\n            \\n            // Check required fields\\n            if (!node.id || !node.handle || !node.title) {\\n              console.warn(\\'handleProductData: Product missing required fields, skipping:\\', { \\n                id: node.id, \\n                handle: node.handle, \\n                title: node.title \\n              });\\n              return null;\\n            }\\n            // For initial load, include minimal but sufficient variant data with safety checks\\n            if (isInitialLoad) {\\n              return {\\n                node: {\\n                  id: node.id,\\n                  handle: node.handle,\\n                  title: node.title,\\n                  priceRange: node.priceRange,\\n                  compareAtPriceRange: node.compareAtPriceRange || null,\\n                  productType: node.productType || null,\\n                  tags: Array.isArray(node.tags) ? node.tags : [],\\n                  collections: (() => {\\n                    try {\\n                      return node.collections?.edges ? \\n                        node.collections.edges.map(edge => ({\\n                          node: {\\n                            id: edge.node?.id || \\'\\',\\n                            handle: edge.node?.handle || \\'\\',\\n                            title: edge.node?.title || \\'\\'\\n                          }\\n                        })).filter(col => col.node.id && col.node.handle) : [];\\n                    } catch (error) {\\n                      console.warn(\\'Error processing collections, using empty array:\\', error);\\n                      return [];\\n                    }\\n                  })(),\\n                  metafields: node.metafields || [],\\n                  variants: { \\n                    edges: (() => {\\n                      try {\\n                        return (node.variants?.edges || []).map(({ node: variant }) => ({\\n                          node: {\\n                            id: variant?.id || \\'\\',\\n                            title: variant?.title || \\'\\',\\n                            price: variant?.price || null,\\n                            availableForSale: Boolean(variant?.availableForSale),\\n                            selectedOptions: Array.isArray(variant?.selectedOptions) ? variant.selectedOptions : [],\\n                            quantityAvailable: Number(variant?.quantityAvailable) || 0,\\n                            compareAtPrice: variant?.compareAtPrice || null\\n                          }\\n                        })).filter(v => v.node.id); // Remove invalid variants\\n                      } catch (error) {\\n                        console.warn(\\'Error processing variants, using empty array:\\', error);\\n                        return [];\\n                      }\\n                    })()\\n                  },\\n                  options: node.options || []\\n                }\\n              };\\n            }\\n\\n            // For complete data load, include all necessary fields\\n            return {\\n              node: {\\n                id: node.id,\\n                handle: node.handle,\\n                title: node.title,\\n                vendor: node.vendor,\\n                productType: node.productType,\\n                tags: node.tags,\\n                metafields: node.metafields,\\n                collections: Array.isArray(node.collections)\\n                  ? node.collections // already transformed\\n                  : (node.collections?.edges || []).map(edge => ({\\n                    node: {\\n                      id: edge.node.id,\\n                      handle: edge.node.handle,\\n                      title: edge.node.title\\n                    }\\n                })),\\n                variants: { \\n                  edges: (node.variants?.edges || []).map(({ node: variant }) => ({\\n                    node: {\\n                      id: variant.id,\\n                      title: variant.title,\\n                      price: variant.price,\\n                      availableForSale: variant.availableForSale,\\n                      selectedOptions: variant.selectedOptions || [],\\n                      quantityAvailable: variant.quantityAvailable || 0,\\n                      compareAtPrice: variant.compareAtPrice,\\n                      requiresShipping: variant.requiresShipping\\n                    }\\n                  }))\\n                },\\n                options: node.options || [],\\n                priceRange: node.priceRange,\\n                compareAtPriceRange: node.compareAtPriceRange,\\n                sellingPlanGroups: node.sellingPlanGroups ? {\\n                  edges: (node.sellingPlanGroups.edges || []).map(({ node: sellingPlanGroup }) => ({\\n                    node: {\\n                      name: sellingPlanGroup.name,\\n                      options: sellingPlanGroup.options,\\n                      sellingPlans: {\\n                        edges: (sellingPlanGroup.sellingPlans.edges || []).map(({ node: sellingPlan }) => ({\\n                          node: {\\n                            id: sellingPlan.id,\\n                            name: sellingPlan.name,\\n                            description: sellingPlan.description,\\n                            recurringDeliveries: sellingPlan.recurringDeliveries,\\n                            priceAdjustments: sellingPlan.priceAdjustments\\n                          }\\n                        }))\\n                      }\\n                    }\\n                  }))\\n                } : null\\n              }\\n            };\\n          }).filter(Boolean); // Remove null/invalid products\\n\\n          // Log validation results\\n          if (transformedProducts.length !== newProducts.length) {\\n            console.warn(\\'handleProductData: Filtered out \\' + (newProducts.length - transformedProducts.length) + \\' invalid products\\');\\n          }\\n\\n          // --- ADDED LOGGING FOR COLLECTION FILTER ---\\n          // if (window.shopXtools && window.shopXtools.lastAppliedFilters && window.shopXtools.lastAppliedFilters.collection) {\\n          //   const collectionHandle = window.shopXtools.lastAppliedFilters.collection.toLowerCase();\\n          //   // Only keep items that do NOT have the collection\\n          //   const missing = transformedProducts.filter(({ node }) => {\\n          //     const collections = Array.isArray(node.collections) ? node.collections : [];\\n          //     return !collections.some(col => (col.node?.handle || \\'\\').toLowerCase() === collectionHandle);\\n          //   });\\n          //   const allMatch = missing.length === 0;\\n          //   console.log(\\'[Collection Check] Total items processed:\\', transformedProducts.length);\\n          //   console.log(\\'[Collection Check] All items have collection\\', collectionHandle, \\':\\', allMatch);\\n          //   if (!allMatch) {\\n          //     console.log(\\'[Collection Check] Items missing collection:\\', missing.map(({ node }) => node.id));\\n          //   }\\n          // }\\n          // --- END LOGGING ---\\n\\n          // Always accumulate products, whether initial load or not\\n          if (!cursor) {\\n            // If this is the first page, start fresh\\n            products = transformedProducts;\\n          } else {\\n            // For subsequent pages, append to existing products\\n            products = [...products, ...transformedProducts];\\n          }\\n\\n          // Store products in smaller chunks to avoid quota issues\\n          const CHUNK_SIZE = 50;\\n          const chunks = [];\\n          for (let i = 0; i < products.length; i += CHUNK_SIZE) {\\n            chunks.push(products.slice(i, i + CHUNK_SIZE));\\n          }\\n\\n          let storageQuotaExceeded = false;\\n\\n          // Update storage with all chunks\\n          try {\\n            // Only attempt to clear old chunks if we haven\\'t hit quota yet\\n            if (!storageQuotaExceeded) {\\n              try {\\n                const oldMetadata = JSON.parse(sessionStorage.getItem(\\'fc_products_\\' + countryCode + \\'_metadata\\') || \\'{}\\');\\n                if (oldMetadata.totalChunks) {\\n                  for (let i = 0; i < oldMetadata.totalChunks; i++) {\\n                    sessionStorage.removeItem(\\'fc_products_\\' + countryCode + \\'_chunk_\\' + i);\\n                  }\\n                }\\n              } catch (error) {\\n                console.warn(\\'Storage quota exceeded during cleanup, switching to in-memory only\\');\\n                storageQuotaExceeded = true;\\n              }\\n            }\\n\\n            // Only attempt to store new chunks if we haven\\'t hit quota yet\\n            if (!storageQuotaExceeded) {\\n              for (let i = 0; i < chunks.length; i++) {\\n                const chunkKey = \\'fc_products_\\' + countryCode + \\'_chunk_\\' + i;\\n                try {\\n                  sessionStorage.setItem(chunkKey, JSON.stringify(chunks[i]));\\n                } catch (storageError) {\\n                  console.warn(\\'Storage quota exceeded at chunk\\', i, \\', switching to in-memory only\\');\\n                  storageQuotaExceeded = true;\\n                  break;\\n                }\\n              }\\n\\n              // Only attempt to update metadata if we haven\\'t hit quota\\n              if (!storageQuotaExceeded) {\\n                const metadata = {\\n                  totalChunks: chunks.length,\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: !cursor\\n                };\\n                try {\\n                  sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n                } catch (error) {\\n                  console.warn(\\'Storage quota exceeded during metadata update\\');\\n                  storageQuotaExceeded = true;\\n                }\\n              }\\n            }\\n          } catch (error) {\\n            console.warn(\\'Storage operations failed, proceeding with in-memory only\\');\\n            storageQuotaExceeded = true;\\n          }\\n\\n          // Update global references with complete product list (always do this regardless of storage status)\\n          window.shopXtools.productsWithPrices = { [countryCode]: products };\\n          window.shopXtools.products = products;\\n\\n          // Set status and dispatch events\\n          window.shopXtools.status = \"ready\";\\n          window.shopXtools.dispatchEvent(\\'data__products-ready\\', { \\n            products: window.shopXtools.products,\\n            isInitialLoad\\n          });\\n\\n          // Start fetching complete data immediately after displaying prices\\n          if (isInitialLoad && !cursor) {\\n            const { vendor, collection, productType, tag } = window.shopXtools.lastAppliedFilters || {};\\n            setTimeout(() => {\\n              fetchCompleteProductData(countryCode, vendor, collection, productType, tag);\\n            }, 0);\\n          }\\n\\n          //console.log(\\'[Products] Total products loaded:\\', products.length);\\n        } catch (error) {\\n          console.error(\\'Error in handleProductData:\\', error);\\n          window.shopXtools.status = \"error\";\\n        }\\n      };\\n\\n      // Client-side filtering function to ensure filters are applied correctly\\n      const filterProductsClientSide = (products, filters) => {\\n        const { vendor, collection, productType, tag } = filters;\\n        \\n        return products.filter(({ node }) => {\\n          // Filter by vendor if specified\\n          if (vendor && node.vendor !== vendor) {\\n            return false;\\n          }\\n          \\n          // Filter by collection if specified\\n          if (collection) {\\n            // Check if the product belongs to the specified collection\\n            const collections = node.collections || [];\\n            const matchingCollection = collections.find(col => \\n              col.handle === collection.toLowerCase() || \\n              col.title === collection\\n            );\\n            if (!matchingCollection) {\\n              return false;\\n            }\\n          }\\n          \\n          // Filter by product type if specified\\n          if (productType && node.productType !== productType) {\\n            return false;\\n          }\\n          \\n          // Filter by tag if specified\\n          if (tag) {\\n            const tags = node.tags || [];\\n            if (!tags.includes(tag)) {\\n              return false;\\n            }\\n          }\\n          \\n          return true;\\n        });\\n      };\\n\\n      const fetchProductsByCountry = async (countryCode, cursor = null, vendor = null, collection = null, productType = null, tag = null) => {\\n        // Store filter information if this is a first page request\\n        if (!cursor) {\\n          const newFilters = { vendor, collection, productType, tag };\\n          window.shopXtools.lastAppliedFilters = newFilters;\\n          \\n          // Store filters in sessionStorage\\n          try {\\n            const storedFilters = JSON.parse(sessionStorage.getItem(\\'fc_filters\\') || \\'{}\\');\\n            const filtersChanged = JSON.stringify(storedFilters) !== JSON.stringify(newFilters);\\n            \\n            if (filtersChanged) {\\n              sessionStorage.setItem(\\'fc_filters\\', JSON.stringify(newFilters));\\n              // Force refresh from Shopify if filters changed\\n              products = [];\\n              return fetchProductsByCountry(countryCode, null, vendor, collection, productType, tag);\\n            }\\n          } catch (error) {\\n            console.error(\\'Error handling filter storage:\\', error);\\n          }\\n          \\n          products = [];\\n          \\n          // Try to load and display cached data immediately\\n          try {\\n            const metadata = JSON.parse(sessionStorage.getItem(\\'fc_products_\\' + countryCode + \\'_metadata\\') || \\'{}\\');\\n            // console.log(\\'[Cache] metadata\\', metadata);\\n            // console.log(\\'[Cache] cursor\\', cursor);\\n            if (metadata.totalChunks > 0) {\\n              let cachedProducts = [];\\n              for (let i = 0; i < metadata.totalChunks; i++) {\\n                const chunkKey = \\'fc_products_\\' + countryCode + \\'_chunk_\\' + i;\\n                const chunk = JSON.parse(sessionStorage.getItem(chunkKey) || \\'[]\\');\\n                cachedProducts = cachedProducts.concat(chunk);\\n                // console.log(\\'[Cache] cachedProducts\\', cachedProducts);\\n              }\\n              \\n              if (cachedProducts.length > 0) {\\n                //console.log(\\'[Cache] Displaying\\', cachedProducts.length, \\'cached products\\');\\n                handleProductData(cachedProducts, countryCode, false, cursor);\\n                \\n                // If cache is older than 1 minute or incomplete, refresh in background\\n                if (Date.now() - metadata.lastUpdated > 60000 || !metadata.isComplete) {\\n                  //console.log(\\'[Cache] Starting background refresh\\');\\n                } else {\\n                  //console.log(\\'[Cache] Cache is fresh and complete, skipping refresh\\');\\n                  return;\\n                }\\n              }\\n            }\\n          } catch (error) {\\n            console.error(\\'Error loading from cache:\\', error);\\n          }\\n        }\\n\\n        try {\\n          let response;\\n          let variables;\\n          let query;\\n\\n          // Use collection-specific query structure if a collection filter is provided\\n          if (collection) {\\n            query = getProductsQueryByCollection;\\n            variables = {\\n              countryCode,\\n              collectionHandle: collection.toLowerCase(),\\n              ...(cursor && { cursor })\\n            };\\n            \\n            //console.log(\"[FILTER] Using collection-specific query for:\", collection);\\n          } else {\\n            query = getProductsQueryByCountry;\\n            \\n            // Build query string for non-collection filters\\n            const queryParts = [];\\n            if (vendor) queryParts.push(`vendor:${vendor}`);\\n            if (productType) queryParts.push(`product_type:${productType}`);\\n            if (tag) queryParts.push(`tag:${tag}`);\\n            const queryString = queryParts.length > 0 ? queryParts.join(\" AND \") : null;\\n\\n            variables = {\\n              countryCode,\\n              ...(cursor && { cursor }),\\n              ...(queryString && { query: queryString })\\n            };\\n          }\\n\\n          response = await fetch(`https://${domain.host}/api/2024-07/graphql.json`, {\\n            method: \"POST\",\\n            headers: {\\n              \"Content-Type\": \"application/json\",\\n              \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n            },\\n            body: JSON.stringify({ query, variables }),\\n          });\\n\\n          const result = await response.json();\\n          \\n          if (collection) {\\n            // Handle collection-specific response structure\\n            if (!result.errors && result.data?.collection?.products) {\\n              const newProducts = result.data.collection.products.edges || [];\\n              handleProductData(newProducts, countryCode, true, cursor);\\n\\n              // Continue pagination if there are more products\\n              const pageInfo = result.data.collection.products.pageInfo;\\n              if (pageInfo.hasNextPage && pageInfo.endCursor) {\\n                await fetchProductsByCountry(countryCode, pageInfo.endCursor, vendor, collection, productType, tag);\\n              } else {\\n                // All products have been fetched, update the metadata\\n                const metadata = {\\n                  totalChunks: Math.ceil(products.length / 50),\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: true\\n                };\\n                sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n              }\\n            } else if (result.errors) {\\n              console.error(\\'Error fetching collection products:\\', result.errors);\\n              window.shopXtools.status = \"error\";\\n            } else if (!result.data?.collection) {\\n              console.error(\\'Collection not found:\\', collection);\\n              window.shopXtools.status = \"ready\";\\n              window.shopXtools.products = [];\\n              window.shopXtools.dispatchEvent(\\'data__products-ready\\', { \\n                products: [],\\n                isInitialLoad: false\\n              });\\n            }\\n          } else {\\n            // Handle regular product query response\\n            if (!result.errors && result.data?.products) {\\n              const newProducts = result.data.products.edges || [];\\n              handleProductData(newProducts, countryCode, true, cursor);\\n\\n              // Continue pagination if there are more products\\n              const pageInfo = result.data.products.pageInfo;\\n              if (pageInfo.hasNextPage && pageInfo.endCursor) {\\n                await fetchProductsByCountry(countryCode, pageInfo.endCursor, vendor, collection, productType, tag);\\n              } else {\\n                // All products have been fetched, update the metadata\\n                const metadata = {\\n                  totalChunks: Math.ceil(products.length / 50),\\n                  totalProducts: products.length,\\n                  lastUpdated: Date.now(),\\n                  isComplete: true\\n                };\\n                sessionStorage.setItem(\\'fc_products_\\' + countryCode + \\'_metadata\\', JSON.stringify(metadata));\\n              }\\n            }\\n          }\\n        } catch (error) {\\n          console.error(\\'Error fetching products:\\', error);\\n          window.shopXtools.status = \"error\";\\n        }\\n      };\\n\\n      // Function to fetch complete product data in the background\\n      const fetchCompleteProductData = async (countryCode, vendor, collection, productType, tag) => {\\n        let cursor = null;\\n        let allProducts = [];\\n\\n        try {\\n            while (true) {\\n                let response;\\n                let variables;\\n                let query;\\n\\n                // Use collection-specific query for collections, matching the main fetch function\\n                if (collection) {\\n                    query = getLessProductsQueryByCollection;\\n                    variables = {\\n                        countryCode,\\n                        collectionHandle: collection.toLowerCase(),\\n                        ...(cursor && { cursor })\\n                    };\\n                } else {\\n                    // For non-collection filters, use regular query\\n                    query = getLessProductsQueryByCountry;\\n                    \\n                    // Build query parts\\n                    const queryParts = [];\\n                    if (vendor) queryParts.push(`vendor:${vendor}`);\\n                    if (productType) queryParts.push(`product_type:${productType}`);\\n                    if (tag) queryParts.push(`tag:${tag}`);\\n                    const queryString = queryParts.length > 0 ? queryParts.join(\" AND \") : null;\\n                    \\n                    variables = {\\n                        countryCode,\\n                        cursor,\\n                        ...(queryString && { query: queryString })\\n                    };\\n                }\\n\\n                response = await fetch(`https://${domain.host}/api/2024-07/graphql.json`, {\\n                    method: \"POST\",\\n                    headers: {\\n                        \"Content-Type\": \"application/json\",\\n                        \"X-Shopify-Storefront-Access-Token\": fcConfigs.storefrontAccessToken,\\n                    },\\n                    body: JSON.stringify({ query, variables }),\\n                });\\n\\n                const result = await response.json();\\n                // console.log(\\'result\\', result);\\n                if (collection) {\\n                    // Handle collection response structure\\n                    if (!result.errors && result.data?.collection?.products) {\\n                        const newProducts = result.data.collection.products.edges || [];\\n                        allProducts = [...allProducts, ...newProducts];\\n\\n                        // Update data every 500 products or when complete\\n                        if (allProducts.length >= 500 || !result.data.collection.products.pageInfo.hasNextPage) {\\n                            handleProductData(allProducts, countryCode, false, cursor);\\n                            allProducts = [];\\n                        }\\n\\n                        if (!result.data.collection.products.pageInfo.hasNextPage) {\\n                            break;\\n                        }\\n                        cursor = result.data.collection.products.pageInfo.endCursor;\\n                    } else {\\n                        console.error(\\'Error fetching complete collection data:\\', result.errors);\\n                        break;\\n                    }\\n                } else {\\n                    // Handle regular product response\\n                    if (!result.errors && result.data?.products) {\\n                        const newProducts = result.data.products.edges || [];\\n                        allProducts = [...allProducts, ...newProducts];\\n\\n                        // Update data every 500 products or when complete\\n                        if (allProducts.length >= 500 || !result.data.products.pageInfo.hasNextPage) {\\n                            handleProductData(allProducts, countryCode, false, cursor);\\n                            allProducts = [];\\n                        }\\n\\n                        if (!result.data.products.pageInfo.hasNextPage) {\\n                            break;\\n                        }\\n                        cursor = result.data.products.pageInfo.endCursor;\\n                    } else {\\n                        console.error(\\'Error fetching complete product data:\\', result.errors);\\n                        break;\\n                    }\\n                }\\n            }\\n        } catch (error) {\\n            console.error(\\'Error in background data fetch:\\', error);\\n        }\\n      };\\n\\n      // Initialize shopXtools and attach fetchProductsByCountry to it\\n      window.shopXtools = window.shopXtools || {};\\n      window.shopXtools.fetchProductsByCountry = fetchProductsByCountry;\\n\\n      setupInitialToolsObject();\\n      configValidation();\\n      setDomainUrl();\\n      \\n  const validateDomainForFreePlan = () => {\\n    if (\"premium\" === \"free\") {\\n      const isFramerSubdomain = domain.host.includes(\\'framer.app\\');\\n      if (isFramerSubdomain) {\\n        console.error(\\'Free plan users can only use a Framer subdomain\\');\\n        return false;\\n      }\\n    }\\n    return true;\\n  };\\n\\n  if (!validateDomainForFreePlan()) {\\n    //console.log(\\'Domain validation failed, products will not be fetched\\');\\n    return;\\n  }\\n\\n      \\n  if (\"premium\" === \"free\") {\\n    // Wait for DOM to be ready\\n    const insertWidget = () => {\\n      const widget = document.createElement(\\'div\\');\\n      widget.innerHTML = `\\n        <div \\n          style=\"\\n            position: fixed;\\n            bottom: 60px;\\n            right: 20px;\\n            border-radius: 10px;\\n            overflow: hidden;\\n            z-index: 999999;\\n            transition: opacity 0.3s ease;\\n            box-shadow:\\n              rgba(0, 0, 0, 0.26) 0px 0.636953px 1.14652px -1.125px, \\n              rgba(0, 0, 0, 0.24) 0px 1.9316px 3.47689px -2.25px, \\n              rgba(0, 0, 0, 0.192) 0px 5.10612px 9.19102px -3.375px, \\n              rgba(0, 0, 0, 0.03) 0px 16px 28.8px -4.5px;\\n            width: 142px;\\n            background: white;\\n          \"\\n          onmouseover=\"this.style.opacity = \\'1\\'\"\\n          onmouseout=\"this.style.opacity = \\'1\\'\"\\n        >\\n          <a \\n            href=\"https://framercommerce.com/?utm_source=framer&utm_medium=badge&utm_campaign=free_tier\" \\n            target=\"_blank\" \\n            style=\"\\n              display: block;\\n              line-height: 0;\\n            \"\\n          >\\n            <img \\n              src=\"https://www.dropbox.com/scl/fi/liuwd84g4nioi6fmu93e1/fc-free-badge.png?rlkey=yearpo3rkxqalq4mtmabujdk4&raw=1\" \\n              alt=\"Framer Commerce\"\\n              width=\"142\"\\n              height=\"36\"\\n              style=\"display: block; width: 100%; height: auto;\"\\n            />\\n          </a>\\n        </div>\\n      `;\\n\\n      // Check if widget already exists\\n      const existingWidget = document.querySelector(\\'[data-framercommerce-widget]\\');\\n      if (!existingWidget) {\\n        widget.setAttribute(\\'data-framercommerce-widget\\', \\'true\\');\\n        document.body.appendChild(widget);\\n      }\\n    };\\n\\n    // If DOM is already loaded\\n    if (document.readyState === \\'complete\\' || document.readyState === \\'interactive\\') {\\n      setTimeout(insertWidget, 1);\\n    } else {\\n      // Wait for DOM to be ready\\n      document.addEventListener(\\'DOMContentLoaded\\', insertWidget);\\n    }\\n\\n    // Backup in case DOMContentLoaded doesn\\'t fire\\n    window.addEventListener(\\'load\\', insertWidget);\\n  }\\n\\n\\n      // Initialize cart from localStorage\\n      const initializeCartFromLocalStorage = () => {\\n        try {\\n          const cartData = localStorage.getItem(\"shopXtools.cart\");\\n          if (cartData) {\\n            const cart = JSON.parse(cartData);\\n            window.shopXtools.cart = cart;\\n            \\n            // If cart has buyerIdentity with countryCode, we\\'ll use it during currency initialization\\n            if (cart.buyerIdentity && cart.buyerIdentity.countryCode) {\\n              // Found country code in stored cart\\n            }\\n          } else {\\n            window.shopXtools.cart = {};\\n          }\\n        } catch (error) {\\n          console.error(\"Error initializing cart from localStorage:\", error);\\n          window.shopXtools.cart = {};\\n        }\\n      };\\n\\n      // Initialize cart before proceeding with other initializations\\n      initializeCartFromLocalStorage();\\n\\n      // Check domain before proceeding with product fetch\\n      if (!validateDomainForFreePlan()) {\\n        window.shopXtools.products = [];\\n        window.shopXtools.status = \"ready\";\\n        window.shopXtools.getProducts = () => null;\\n        return;\\n      }\\n\\n      if (!window.shopXtools || !Array.isArray(window.shopXtools.products)) {\\n        // Initialize currency settings first\\n        initializeCurrencySettings().then(() => {\\n            // Get the stored country code\\n            const storedCountryCode = localStorage.getItem(\"selectedCountryCode\");\\n            if (storedCountryCode) {\\n              // Check for stored filters from other tabs/sessions\\n              let storedFilters;\\n              try {\\n                storedFilters = JSON.parse(sessionStorage.getItem(\\'fc_filters\\') || \\'{}\\');\\n              } catch (error) {\\n                console.error(\\'Error reading stored filters:\\', error);\\n                storedFilters = {};\\n              }\\n              \\n              // Initialize filtering capabilities with stored filters if they exist\\n              window.shopXtools.lastAppliedFilters = {\\n                vendor: storedFilters.vendor || null,\\n                collection: storedFilters.collection || null,\\n                productType: storedFilters.productType || null,\\n                tag: storedFilters.tag || null\\n              };\\n              \\n              // Initialize filtering capabilities\\n              window.shopXtools.getFilteredProducts = (filters = null) => {\\n                if (window.shopXtools.status !== \"ready\") {\\n                  console.warn(\"Products not yet loaded, please wait for data__products-ready event\");\\n                  return [];\\n                }\\n                \\n                // If filters provided, fetch fresh filtered products\\n                if (filters) {\\n                  const countryCode = localStorage.getItem(\"selectedCountryCode\");\\n                  if (!countryCode) {\\n                    console.error(\"No country code available for product fetch\");\\n                    return [];\\n                  }\\n                  \\n                  // Store filters for future reference\\n                  window.shopXtools.lastAppliedFilters = { \\n                    ...window.shopXtools.lastAppliedFilters,\\n                    ...filters\\n                  };\\n                  \\n                  // Fetch filtered products\\n                  window.shopXtools.fetchProductsByCountry(\\n                    countryCode,\\n                    null,\\n                    filters.vendor || null,\\n                    filters.collection || null,\\n                    filters.productType || null,\\n                    filters.tag || null\\n                  );\\n                  \\n                  // Return null to indicate async operation in progress\\n                  return null;\\n                }\\n                \\n                // If no new filters, but we have existing filters, apply client-side filtering\\n                const existingFilters = window.shopXtools.lastAppliedFilters;\\n                if (existingFilters.vendor || existingFilters.collection || existingFilters.productType || existingFilters.tag) {\\n                  // Get all products\\n                  const allProducts = window.shopXtools.productsWithPrices?.[localStorage.getItem(\"selectedCountryCode\")] || [];\\n                  \\n                  // Apply client-side filtering\\n                  return filterProductsClientSide(allProducts, existingFilters);\\n                }\\n                \\n                // Otherwise return currently loaded products\\n                return window.shopXtools.products;\\n              };\\n              \\n              window.shopXtools.areProductsFiltered = () => {\\n                const filters = window.shopXtools.lastAppliedFilters || {};\\n                return !!(filters.vendor || filters.collection || filters.productType || filters.tag);\\n              };\\n              \\n              window.shopXtools.getFilterInfo = () => {\\n                const filters = window.shopXtools.lastAppliedFilters || {};\\n                const activeFilters = {};\\n                \\n                if (filters.vendor) activeFilters.vendor = filters.vendor;\\n                if (filters.collection) activeFilters.collection = filters.collection;\\n                if (filters.productType) activeFilters.productType = filters.productType;\\n                if (filters.tag) activeFilters.tag = filters.tag;\\n                \\n                const allProductsCount = window.shopXtools.productsWithPrices?.[localStorage.getItem(\"selectedCountryCode\")]?.length || 0;\\n                const filteredProductsCount = window.shopXtools.products?.length || 0;\\n                \\n                return {\\n                  isFiltered: window.shopXtools.areProductsFiltered(),\\n                  activeFilters,\\n                  allProductsCount,\\n                  filteredProductsCount,\\n                  filterRate: allProductsCount ? Math.round((filteredProductsCount / allProductsCount) * 100) : 100\\n                };\\n              };\\n              \\n              window.shopXtools.clearFilters = () => {\\n                window.shopXtools.lastAppliedFilters = {\\n                  vendor: null,\\n                  collection: null,\\n                  productType: null,\\n                  tag: null\\n                };\\n                \\n                const countryCode = localStorage.getItem(\"selectedCountryCode\");\\n                if (!countryCode) {\\n                  console.error(\"No country code available for product fetch\");\\n                  return;\\n                }\\n                \\n                return window.shopXtools.fetchProductsByCountry(countryCode);\\n              };\\n              \\n              // Get filter settings from window.__FcCheckoutConfigs\\n              const fcConfig = window.__FcCheckoutConfigs || {};\\n              let vendor = null;\\n              let collection = null;\\n              let productType = null;\\n              let tag = null;\\n              \\n              // Check if filter settings exist in the config\\n              if (fcConfig.filterByVendor) {\\n                vendor = fcConfig.filterByVendor;\\n              }\\n              \\n              if (fcConfig.filterByCollection) {\\n                collection = fcConfig.filterByCollection;\\n              }\\n              \\n              if (fcConfig.filterByProductType) {\\n                productType = fcConfig.filterByProductType;\\n              }\\n              \\n              if (fcConfig.filterByTags) {\\n                tag = fcConfig.filterByTags;\\n              }\\n              \\n              // Update lastAppliedFilters with any settings we found\\n              window.shopXtools.lastAppliedFilters = {\\n                vendor: vendor,\\n                collection: collection,\\n                productType: productType,\\n                tag: tag\\n              };\\n              \\n              // Then fetch products with the correct country code and filters\\n              fetchProductsByCountry(\\n                storedCountryCode, \\n                null, \\n                vendor, \\n                collection, \\n                productType, \\n                tag\\n              ).catch(error => {\\n                console.error(\\'Error fetching products by country:\\', error);\\n                window.shopXtools.status = \"ready\";\\n              });\\n              \\n            } else {\\n                console.error(\\'No country code available for product fetch\\');\\n            }\\n        }).catch(error => {\\n            console.error(\\'Error during initialization:\\', error);\\n        });\\n      }\\n    \\n      window.__currencyMap = CURRENCIES;\\n\\n      // Global Pop Fallback\\n      if (typeof window !== \"undefined\") {\\n        // console.log(\"running global fallback\")\\n        window.addEventListener(\\n          \"popstate\",\\n          (event) => {\\n          const urlParams = new URLSearchParams(window.location.search)\\n          const hasVariant = urlParams.has(\"variant\")\\n          const currentPath = window.location.pathname\\n          const urlHandle = currentPath.split(\"/\").filter(Boolean).pop()\\n          const isProductPage = (\\n            Array.isArray(window.shopXtools?.products)\\n              ? window.shopXtools.products.some(({ node }) => node.handle === urlHandle)\\n              : false\\n          )\\n        \\n            // This fallback is ONLY for pages without VariantSelector (like homepage)\\n            if (isProductPage && hasVariant) {\\n              // We\\'re going back to a product page with variant\\n              //console.log(\"We\\'re going back to a product page with variant but VariantSelector isn\\'t mounted to handle restore\")\\n              event.stopImmediatePropagation()\\n              window.location.reload()\\n            }\\n          },\\n          true\\n        )\\n      }\\n      if (typeof window !== \"undefined\") {\\n        const cleanVariantData = () => {\\n          const urlParams = new URLSearchParams(window.location.search)\\n          const hasVariant = urlParams.has(\"variant\")\\n          const currentPath = window.location.pathname\\n          const urlHandle = currentPath.split(\"/\").filter(Boolean).pop()\\n\\n          const isProductPage = (\\n            Array.isArray(window.shopXtools?.products)\\n              ? window.shopXtools.products.some(({ node }) => node.handle === urlHandle)\\n              : false\\n          )\\n\\n          if (!isProductPage && hasVariant) {\\n            urlParams.delete(\"variant\")\\n            const newUrl = `${window.location.pathname}${urlParams.toString() ? \"?\" + urlParams.toString() : \"\"}`;\\n            window.history.replaceState({}, \"\", newUrl)\\n            //console.log(\"Stripped ?variant from URL via navigation:\", newUrl)\\n            try {\\n              for (let i = sessionStorage.length - 1; i >= 0; i--) {\\n                  const key = sessionStorage.key(i)\\n                  if (key && key.startsWith(\"fc_active_variant_\")) {\\n                    sessionStorage.removeItem(key)\\n                    // console.log(\"Cleared variant from sessionStorage\", key);\\n                  }\\n              }\\n            } catch (error) {\\n              console.error(\\n                \"Error clearing variant from sessionStorage:\",\\n                error\\n              )\\n            }\\n            \\n          }\\n          if (!isProductPage) {\\n            try {\\n              for (let i = sessionStorage.length - 1; i >= 0; i--) {\\n                  const key = sessionStorage.key(i)\\n                  if (key && key.startsWith(\"fc_active_variant_\")) {\\n                    sessionStorage.removeItem(key)\\n                    // console.log(\"Cleared variant from sessionStorage\", key);\\n                  }\\n              }\\n            } catch (error) {\\n              console.error(\\n                \"Error clearing variant from sessionStorage:\",\\n                error\\n              )\\n            }\\n          }\\n        }\\n        // Run on popstate (back/forward)\\n        window.addEventListener(\"popstate\", cleanVariantData)\\n\\n        // Patch pushState and replaceState to track all navigations\\n        const originalPushState = history.pushState\\n        const originalReplaceState = history.replaceState\\n\\n        history.pushState = function (...args) {\\n          originalPushState.apply(this, args)\\n          cleanVariantData()\\n        }\\n\\n        history.replaceState = function (...args) {\\n          originalReplaceState.apply(this, args)\\n          cleanVariantData()\\n        }\\n      }\\n\\n    })();\\n  </script>',customHTMLHeadStart:\"<!-- Plugin: ced618 --> <script>\\n      (function() {\\n        window.__FcCheckoutConfigs = window.__FcCheckoutConfigs || {};\\n        \\n        const previousSettings = { \\n          checkout: { ...window.__FcCheckoutConfigs }\\n        };\\n        \\n        window.__FcCheckoutConfigs = {\\n          ...window.__FcCheckoutConfigs,\\n          checkoutLocale: \\\"en\\\",\\n          defaultCountry: \\\"United States\\\",\\n          defaultCountryCode: \\\"US\\\",\\n          defaultCurrency: \\\"USD\\\",\\n          defaultCurrencySymbol: \\\"$\\\",\\n          metaPixelId: \\\"660497289634434\\\",\\n          googleAnalyticsId: \\\"G-H5YCXJVT6S\\\",\\n          filterByVendor: \\\"\\\",\\n          filterByCollection: \\\"\\\",\\n          filterByProductType: \\\"\\\",\\n          filterByTags: \\\"\\\",\\n          variantImageTitles: [],\\n          variantImageSwatchTitles: [],\\n        };\\n        \\n        // Dispatch checkout settings update event to notify listeners\\n        try {\\n          const checkoutEvent = new CustomEvent('checkout__settings-updated', {\\n            detail: {\\n              previous: previousSettings.checkout,\\n              current: window.__FcCheckoutConfigs\\n            }\\n          });\\n          document.dispatchEvent(checkoutEvent);\\n        } catch (e) {}\\n        \\n          // Persist current defaults to storage when they differ to avoid stale markets/currencies\\n          sessionStorage.setItem('checkoutLocale', 'en');\\n          const existingCountry = localStorage.getItem('selectedCountry');\\n          if (existingCountry !== 'United States') {\\n            localStorage.setItem('selectedCountry', 'United States');\\n          }\\n          const existingCountryCode = localStorage.getItem('selectedCountryCode');\\n          if (existingCountryCode !== 'US') {\\n            localStorage.setItem('selectedCountryCode', 'US');\\n          }\\n          const existingCurrency = localStorage.getItem('selectedCurrency');\\n          if (existingCurrency !== 'USD') {\\n            localStorage.setItem('selectedCurrency', 'USD');\\n          }\\n          const existingCurrencySymbol = localStorage.getItem('selectedCurrencySymbol');\\n          if (existingCurrencySymbol !== '$') {\\n            localStorage.setItem('selectedCurrencySymbol', '$');\\n          }\\n        \\n      // Meta Pixel Implementation\\n      try {\\n        // console.log('[MetaPixel] Starting initialization...');\\n        \\n        // Initialize Meta Pixel\\n        !function(f,b,e,v,n,t,s) {\\n          if(f.fbq)return;\\n          n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};\\n          if(!f._fbq)f._fbq=n;\\n          n.push=n;n.loaded=!0;n.version='2.0';\\n          n.queue=[];\\n          t=b.createElement(e);\\n          t.async=!0;\\n          t.src=v;\\n          s=b.getElementsByTagName(e)[0];\\n          s.parentNode.insertBefore(t,s)\\n        }(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');\\n\\n        // Wait for Meta Pixel to load before initializing\\n        const waitForMetaPixel = () => {\\n          return new Promise((resolve) => {\\n            if (typeof fbq === 'function' && fbq.loaded) {\\n              // console.log('[MetaPixel] Meta Pixel already loaded');\\n              resolve();\\n            } else {\\n              // console.log('[MetaPixel] Waiting for Meta Pixel to load...');\\n              const checkInterval = setInterval(() => {\\n                if (typeof fbq === 'function' && fbq.loaded) {\\n                  // console.log('[MetaPixel] Meta Pixel loaded successfully');\\n                  clearInterval(checkInterval);\\n                  resolve();\\n                }\\n              }, 100);\\n              \\n              // Timeout after 10 seconds\\n              setTimeout(() => {\\n                clearInterval(checkInterval);\\n                console.warn('[MetaPixel] Meta Pixel load timeout');\\n                resolve();\\n              }, 10000);\\n            }\\n          });\\n        };\\n\\n        // Function to track pageview with logging\\n        function trackPageView(customData = {}) {\\n          if (typeof fbq !== 'function') {\\n            console.warn('[MetaPixel] fbq function not available for PageView tracking');\\n            return;\\n          }\\n          \\n          const pageData = {\\n            page_title: document.title,\\n            page_location: window.location.href,\\n            page_referrer: document.referrer,\\n            ...customData\\n          };\\n          \\n          // console.log('[MetaPixel] Tracking PageView:', pageData);\\n          \\n          try {\\n            fbq('track', 'PageView', pageData);\\n            // console.log('[MetaPixel] PageView tracked successfully');\\n          } catch (error) {\\n            console.error('[MetaPixel] Error tracking PageView:', error);\\n          }\\n        }\\n\\n        // Global function to manually trigger PageView from other components\\n        window.fcTrackPageView = function(customData = {}) {\\n          // console.log('[MetaPixel] Manual PageView trigger called:', customData);\\n          trackPageView({ \\n            event_source: 'manual_trigger',\\n            ...customData \\n          });\\n        };\\n\\n        // Initialize Meta Pixel and track initial pageview\\n        waitForMetaPixel().then(() => {\\n          // console.log('[MetaPixel] Initializing with ID: 660497289634434');\\n          fbq('init', '660497289634434');\\n          \\n          // Track initial pageview after a short delay to ensure everything is ready\\n          setTimeout(() => {\\n            // console.log('[MetaPixel] Tracking initial PageView');\\n            trackPageView({ event_source: 'initial_load' });\\n          }, 500);\\n        });\\n\\n        // Track route changes for SPA navigation\\n        let currentUrl = window.location.href;\\n        let lastTrackedUrl = window.location.href;\\n        \\n        // Debounced tracking function to prevent multiple rapid events\\n        let trackingTimeout;\\n        const debouncedTrackPageView = (source, customData = {}) => {\\n          clearTimeout(trackingTimeout);\\n          trackingTimeout = setTimeout(() => {\\n            if (window.location.href !== lastTrackedUrl) {\\n              lastTrackedUrl = window.location.href;\\n              trackPageView({ \\n                event_source: source,\\n                navigation_type: 'spa_route_change',\\n                ...customData \\n              });\\n            }\\n          }, 100);\\n        };\\n        \\n        // Monitor for route changes\\n        const originalPushState = history.pushState;\\n        const originalReplaceState = history.replaceState;\\n        \\n        // Override pushState\\n        history.pushState = function(...args) {\\n          // console.log('[MetaPixel] pushState called:', args);\\n          originalPushState.apply(history, args);\\n          debouncedTrackPageView('pushState');\\n        };\\n        \\n        // Override replaceState\\n        history.replaceState = function(...args) {\\n          // console.log('[MetaPixel] replaceState called:', args);\\n          originalReplaceState.apply(history, args);\\n          debouncedTrackPageView('replaceState');\\n        };\\n        \\n        // Listen for popstate events (back/forward navigation)\\n        window.addEventListener('popstate', (event) => {\\n          // console.log('[MetaPixel] popstate event triggered:', event);\\n          debouncedTrackPageView('popstate');\\n        });\\n\\n        // Listen for Framer-specific routing events\\n        window.addEventListener('framer:route:change', (event) => {\\n          // console.log('[MetaPixel] Framer route change event:', event);\\n          debouncedTrackPageView('framer_route_change');\\n        });\\n\\n        // Listen for any URL changes (fallback)\\n        let urlCheckInterval;\\n        const startUrlMonitoring = () => {\\n          urlCheckInterval = setInterval(() => {\\n            if (window.location.href !== currentUrl) {\\n              // console.log('[MetaPixel] URL changed from', currentUrl, 'to', window.location.href);\\n              currentUrl = window.location.href;\\n              debouncedTrackPageView('url_monitoring');\\n            }\\n          }, 1000);\\n        };\\n\\n        // Start URL monitoring after a delay\\n        setTimeout(startUrlMonitoring, 2000);\\n\\n        // Listen for DOM changes that might indicate page changes\\n        const observer = new MutationObserver((mutations) => {\\n          // Check if title changed (common indicator of page change)\\n          const titleChanged = mutations.some(mutation => \\n            mutation.type === 'childList' && \\n            mutation.target.nodeName === 'TITLE'\\n          );\\n          \\n          if (titleChanged) {\\n            // console.log('[MetaPixel] Title changed, checking for route change');\\n            debouncedTrackPageView('title_change');\\n          }\\n        });\\n\\n        // Start observing after a delay\\n        setTimeout(() => {\\n          const titleElement = document.querySelector('title');\\n          if (titleElement) {\\n            observer.observe(titleElement, { childList: true, subtree: true });\\n            // console.log('[MetaPixel] Started monitoring title changes');\\n          }\\n        }, 1000);\\n\\n        // Verify pixel is working\\n        setTimeout(() => {\\n          if (typeof fbq === 'function') {\\n            // console.log('[MetaPixel] Sending verification event');\\n            fbq('trackCustom', 'PixelVerification', {\\n              timestamp: new Date().toISOString(),\\n              url: window.location.href\\n            });\\n          }\\n        }, 2000);\\n\\n        // Cleanup function\\n        window.metaPixelCleanup = () => {\\n          if (urlCheckInterval) {\\n            clearInterval(urlCheckInterval);\\n          }\\n          if (observer) {\\n            observer.disconnect();\\n          }\\n          // console.log('[MetaPixel] Cleanup completed');\\n        };\\n\\n        // console.log('[MetaPixel] Initialization completed');\\n      } catch (e) {\\n        console.error('[MetaPixel] Error during initialization:', e);\\n      }\\n    \\n        \\n    // Google Analytics Implementation (GA4)\\n    window.googleAnalyticsId = \\\"G-H5YCXJVT6S\\\";\\n    \\n    window.dataLayer = window.dataLayer || [];\\n    // Load the Google Analytics script\\n    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\n    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\n    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n    'https://www.googletagmanager.com/gtag/js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n    })(window,document,'script','dataLayer','G-H5YCXJVT6S');\\n    \\n    // Initialize Google Analytics\\n\\n    function gtag(){ dataLayer.push(arguments); }\\n    gtag('js', new Date());\\n    gtag('config', 'G-H5YCXJVT6S', {\\n      send_page_view: true,\\n      cookie_domain: 'auto',\\n      cookie_flags: 'SameSite=None;Secure',\\n      linker: { domains: ['checkout.shopify.com', 'shop.app'] }\\n    });\\n\\n    // Setup enhanced e-commerce tracking\\n    window.fcTrackGAEvent = function(eventName, data = {}) {\\n      if (typeof gtag !== 'function') return;\\n\\n      // Helpers to normalize GA4 ecommerce payloads\\n      const cleanId = (id) => {\\n        if (!id) return id;\\n        try { return (typeof id === 'string' && id.includes('/')) ? id.split('/').pop() : id; } catch(_) { return id; }\\n      };\\n      const toNumber = (n) => {\\n        const v = typeof n === 'number' ? n : parseFloat(n);\\n        return Number.isFinite(v) ? v : 0;\\n      };\\n      const normalizeItems = (payload) => {\\n        // Prefer GA-style items if provided\\n        if (Array.isArray(payload.items) && payload.items.length) {\\n          return payload.items.map((it) => ({\\n            ...it,\\n            item_id: cleanId(it.item_id || it.id || it.SKU),\\n            price: toNumber(it.price),\\n            quantity: it.quantity ?? 1,\\n          }));\\n        }\\n        // Support Meta-style contents => GA items\\n        if (Array.isArray(payload.contents) && payload.contents.length) {\\n          return payload.contents.map((it) => ({\\n            item_id: cleanId(it.item_id || it.id),\\n            item_name: it.item_name || it.name,\\n            price: toNumber(it.item_price || it.price),\\n            quantity: it.quantity ?? 1,\\n          }));\\n        }\\n        return [];\\n      };\\n      const deriveValueCurrency = (payload, items) => {\\n        const currency = payload.currency || 'USD';\\n        let value = toNumber(payload.value);\\n        if (!value && items.length) {\\n          value = items.reduce((sum, it) => sum + toNumber(it.price) * (it.quantity || 1), 0);\\n        }\\n        return { value, currency };\\n      };\\n\\n      try {\\n        switch(eventName) {\\n          case 'view_item': {\\n            let items = normalizeItems(data);\\n            if (!items.length) {\\n              // Fallback to legacy single-item fields\\n              items = [{\\n                item_id: cleanId(data.item_id || data.content_ids?.[0]),\\n                item_name: data.item_name || data.content_name,\\n                item_category: data.item_category || data.content_category,\\n                item_variant: data.item_variant,\\n                price: toNumber(data.price || data.value),\\n                quantity: 1,\\n              }];\\n            }\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'view_item', { currency, value, items });\\n            break;\\n          }\\n\\n          case 'add_to_cart': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'add_to_cart', { currency, value, items });\\n            break;\\n          }\\n\\n          case 'remove_from_cart': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'remove_from_cart', { currency, value, items });\\n            break;\\n          }\\n\\n          case 'view_cart': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'view_cart', { currency, value, items });\\n            break;\\n          }\\n\\n          case 'begin_checkout': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'begin_checkout', { currency, value, items, coupon: data.coupon });\\n            break;\\n          }\\n\\n          case 'purchase': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'purchase', {\\n              transaction_id: data.transaction_id,\\n              value,\\n              currency,\\n              tax: toNumber(data.tax),\\n              shipping: toNumber(data.shipping),\\n              items,\\n              coupon: data.coupon,\\n            });\\n            break;\\n          }\\n\\n          case 'refund': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'refund', {\\n              transaction_id: data.transaction_id,\\n              value,\\n              currency,\\n              items,\\n            });\\n            break;\\n          }\\n\\n          case 'search':\\n            gtag('event', 'search', { search_term: data.search_term || data.search_string });\\n            break;\\n\\n          case 'select_item': {\\n            const items = normalizeItems(data);\\n            const params = { item_list_id: data.item_list_id, item_list_name: data.item_list_name, items };\\n            gtag('event', 'select_item', params);\\n            break;\\n          }\\n\\n          case 'view_item_list': {\\n            const items = normalizeItems(data);\\n            const params = { item_list_id: data.item_list_id, item_list_name: data.item_list_name, items };\\n            gtag('event', 'view_item_list', params);\\n            break;\\n          }\\n\\n          case 'view_promotion': {\\n            gtag('event', 'view_promotion', {\\n              promotion_id: data.promotion_id || data.promotionId,\\n              promotion_name: data.promotion_name || data.promotionName,\\n              creative_name: data.creative_name || data.creativeName,\\n              creative_slot: data.creative_slot || data.creativeSlot,\\n              location_id: data.location_id || data.locationId,\\n            });\\n            break;\\n          }\\n\\n          case 'select_promotion': {\\n            gtag('event', 'select_promotion', {\\n              promotion_id: data.promotion_id || data.promotionId,\\n              promotion_name: data.promotion_name || data.promotionName,\\n              creative_name: data.creative_name || data.creativeName,\\n              creative_slot: data.creative_slot || data.creativeSlot,\\n              location_id: data.location_id || data.locationId,\\n            });\\n            break;\\n          }\\n\\n          case 'add_shipping_info': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'add_shipping_info', { currency, value, shipping_tier: data.shipping_tier, items });\\n            break;\\n          }\\n\\n          case 'add_payment_info': {\\n            const items = normalizeItems(data);\\n            const { value, currency } = deriveValueCurrency(data, items);\\n            gtag('event', 'add_payment_info', { currency, value, payment_type: data.payment_type, items });\\n            break;\\n          }\\n\\n          default:\\n            // For custom and other recommended events (e.g., page_view in SPA contexts)\\n            gtag('event', eventName, data);\\n        }\\n      } catch (e) {\\n        console.error('Error tracking GA event:', e);\\n      }\\n    };\\n\\n    // ---- Cart diff tracking for remove_from_cart ----\\n    (function(){\\n      var __fcPrevCartIndex = new Map();\\n      function indexCart(cart){\\n        const index = new Map();\\n        try {\\n          const lines = (cart && cart.lines) || [];\\n          lines.forEach(function(line){\\n            var merch = line.merchandise || {};\\n            var id = merch.id || merch.merchandiseId;\\n            if (!id) return;\\n            var unit = parseFloat((line.cost && line.cost.amountPerQuantity && line.cost.amountPerQuantity.amount) || '0');\\n            var product = merch.product || {};\\n            index.set(id, {\\n              qty: line.quantity || 0,\\n              unit: isFinite(unit) ? unit : 0,\\n              productTitle: product.title || merch.title || '',\\n              variantTitle: merch.title || '',\\n              brand: product.vendor || null,\\n              category: product.productType || null,\\n              currency: (line.cost && line.cost.amountPerQuantity && line.cost.amountPerQuantity.currencyCode) || 'USD'\\n            });\\n          });\\n        } catch(_){}\\n        return index;\\n      }\\n      document.addEventListener('data__cart-updated', function(e){\\n        try {\\n          var cart = e.detail && e.detail.cart;\\n          if (!cart) return;\\n          var nextIndex = indexCart(cart);\\n          // Fire remove_from_cart for any removed lines or qty decreases\\n          __fcPrevCartIndex.forEach(function(prevItem, id){\\n            var nextItem = nextIndex.get(id);\\n            if (!nextItem) {\\n              if (prevItem.qty > 0) {\\n                window.fcTrackGAEvent && window.fcTrackGAEvent('remove_from_cart', {\\n                  currency: prevItem.currency || 'USD',\\n                  value: prevItem.unit * prevItem.qty,\\n                  items: [{\\n                    item_id: id,\\n                    item_name: prevItem.productTitle,\\n                    item_variant: prevItem.variantTitle,\\n                    price: prevItem.unit,\\n                    quantity: prevItem.qty,\\n                    item_brand: prevItem.brand,\\n                    item_category: prevItem.category\\n                  }]\\n                });\\n              }\\n            } else if (nextItem.qty < prevItem.qty) {\\n              var removedQty = prevItem.qty - nextItem.qty;\\n              if (removedQty > 0) {\\n                window.fcTrackGAEvent && window.fcTrackGAEvent('remove_from_cart', {\\n                  currency: prevItem.currency || nextItem.currency || 'USD',\\n                  value: prevItem.unit * removedQty,\\n                  items: [{\\n                    item_id: id,\\n                    item_name: prevItem.productTitle,\\n                    item_variant: prevItem.variantTitle,\\n                    price: prevItem.unit,\\n                    quantity: removedQty,\\n                    item_brand: prevItem.brand,\\n                    item_category: prevItem.category\\n                  }]\\n                });\\n              }\\n            }\\n          });\\n          __fcPrevCartIndex = nextIndex;\\n        } catch(_){}\\n      });\\n    })();\\n\\n    // Setup Shopify checkout tracking\\n    try {\\n      // Listen for cart updates\\n      document.addEventListener('data__cart-updated', function(e) {\\n        if (e.detail && e.detail.cart) {\\n          const cart = e.detail.cart;\\n          \\n          // Track checkout URL to pass GA ID\\n          if (cart.checkoutUrl) {\\n            // Append GA client ID to checkout URL for cross-domain tracking\\n            gtag('get', 'G-H5YCXJVT6S', 'client_id', (clientId) => {\\n              if (clientId && cart.checkoutUrl) {\\n                // Store the modified checkout URL for later use\\n                window.fcEnhancedCheckoutUrl = cart.checkoutUrl + \\n                  (cart.checkoutUrl.includes('?') ? '&' : '?') + \\n                  '_ga=' + clientId;\\n              }\\n            });\\n          }\\n        }\\n      });\\n\\n      // Listen for checkout button clicks\\n      document.addEventListener('click', function(e) {\\n        // Check if the clicked element is a checkout button\\n        const target = e.target;\\n        if (target && \\n            (target.classList.contains('fc-checkout-button') || \\n             target.closest('.fc-checkout-button') ||\\n             target.getAttribute('data-fc-checkout') === 'true')) {\\n          \\n          // If we have an enhanced checkout URL with GA parameters, use it\\n          if (window.fcEnhancedCheckoutUrl) {\\n            // This will be handled by the checkout button's own click handler\\n            // We're just making sure the enhanced URL is available\\n            // console.log('Enhanced checkout URL is ready with GA tracking');\\n          }\\n        }\\n      }, true);\\n\\n      // Track product views\\n      document.addEventListener('data__product-viewed', function(e) {\\n        if (e.detail && e.detail.product) {\\n          const product = e.detail.product;\\n          const price = parseFloat(product.priceRange?.minVariantPrice?.amount || '0');\\n          const currency = product.priceRange?.minVariantPrice?.currencyCode || 'USD';\\n          window.fcTrackGAEvent('view_item', {\\n            currency,\\n            value: price,\\n            items: [{\\n              item_id: product.id,\\n              item_name: product.title,\\n              item_category: product.productType,\\n              item_brand: product.vendor,\\n              price,\\n              quantity: 1\\n            }]\\n          });\\n        }\\n      });\\n\\n      // Track add to cart events\\n      document.addEventListener('data__cart-line-added', function(e) {\\n        if (e.detail && e.detail.line) {\\n          const line = e.detail.line;\\n          const merchandise = line.merchandise;\\n          const product = merchandise.product;\\n          \\n          const unit = parseFloat(line.cost?.amountPerQuantity?.amount || '0');\\n          const currency = line.cost?.amountPerQuantity?.currencyCode || 'USD';\\n          window.fcTrackGAEvent('add_to_cart', {\\n            value: unit * line.quantity,\\n            currency,\\n            items: [{\\n              item_id: merchandise.id,\\n              item_name: product.title,\\n              item_brand: product.vendor,\\n              item_category: product.productType,\\n              price: unit,\\n              quantity: line.quantity\\n            }]\\n          });\\n        }\\n      });\\n\\n      // Track begin checkout events\\n      document.addEventListener('data__checkout-started', function(e) {\\n        if (e.detail && e.detail.cart) {\\n          const cart = e.detail.cart;\\n          const lines = cart.lines || [];\\n          \\n          const currency = cart.cost?.subtotalAmount?.currencyCode || 'USD';\\n          const items = lines.map(line => {\\n            const merchandise = line.merchandise;\\n            const product = merchandise.product;\\n            return {\\n              item_id: merchandise.id,\\n              item_name: product.title,\\n              item_brand: product.vendor,\\n              item_category: product.productType,\\n              price: parseFloat(line.cost?.amountPerQuantity?.amount || '0'),\\n              quantity: line.quantity\\n            };\\n          });\\n          const value = items.reduce((sum, it) => sum + (it.price * (it.quantity || 1)), 0);\\n          window.fcTrackGAEvent('begin_checkout', { value, currency, items });\\n        }\\n      });\\n\\n      // Track search events\\n      document.addEventListener('data__search-performed', function(e) {\\n        if (e.detail && e.detail.searchTerm) {\\n          window.fcTrackGAEvent('search', {\\n            search_string: e.detail.searchTerm\\n          });\\n        }\\n      });\\n      // Also map search from the actual search component events\\n      document.addEventListener('product-search-change', function(e){\\n        if (e && e.detail && typeof e.detail.term === 'string') {\\n          window.fcTrackGAEvent('search', { search_term: e.detail.term });\\n        }\\n      });\\n      document.addEventListener('filter-navigation', function(e){\\n        if (e && e.detail && typeof e.detail.search === 'string') {\\n          window.fcTrackGAEvent('search', { search_term: e.detail.search });\\n        }\\n      });\\n\\n      // Purchase/refund/promotion passthroughs for GA (if other parts of app dispatch these)\\n      document.addEventListener('fc_purchase', function(e){\\n        try {\\n          var order = e.detail && e.detail.order;\\n          if (!order) return;\\n          var items = (order.lineItems || []).map(function(item){\\n            return {\\n              item_id: (item.variant && item.variant.id) || undefined,\\n              item_name: item.title,\\n              item_brand: item.vendor,\\n              item_category: item.productType,\\n              item_variant: (item.variant && item.variant.title) || undefined,\\n              price: item.variant && item.variant.price,\\n              quantity: item.quantity\\n            }\\n          });\\n          window.fcTrackGAEvent('purchase', {\\n            transaction_id: order.id,\\n            value: order.totalPrice,\\n            tax: order.totalTax,\\n            shipping: order.shippingPrice,\\n            currency: order.currency,\\n            coupon: (order.discountApplications && order.discountApplications[0] && order.discountApplications[0].code) || undefined,\\n            items: items\\n          });\\n        } catch(_){}\\n      });\\n      document.addEventListener('fc_refund', function(e){\\n        try {\\n          var order = e.detail && e.detail.order;\\n          if (!order) return;\\n          var fullRefund = e.detail && e.detail.fullRefund;\\n          var items = fullRefund ? (order.lineItems || []) : (order.refundedItems || []);\\n          items = (items || []).map(function(item){\\n            var variant = item.variant || {};\\n            return {\\n              item_id: variant.id,\\n              item_name: item.title,\\n              item_brand: item.vendor,\\n              item_category: item.productType,\\n              item_variant: variant.title,\\n              price: variant.price,\\n              quantity: item.quantity\\n            };\\n          });\\n          window.fcTrackGAEvent('refund', {\\n            transaction_id: order.id,\\n            value: order.refundAmount,\\n            currency: order.currency,\\n            items: items\\n          });\\n        } catch(_){}\\n      });\\n      document.addEventListener('fc_view_promotion', function(e){\\n        var p = e.detail && e.detail.promotion; if (!p) return;\\n        window.fcTrackGAEvent('view_promotion', {\\n          promotion_id: p.id, promotion_name: p.name, creative_name: p.creative, creative_slot: p.slot, location_id: p.location\\n        });\\n      });\\n      document.addEventListener('fc_select_promotion', function(e){\\n        var p = e.detail && e.detail.promotion; if (!p) return;\\n        window.fcTrackGAEvent('select_promotion', {\\n          promotion_id: p.id, promotion_name: p.name, creative_name: p.creative, creative_slot: p.slot, location_id: p.location\\n        });\\n      });\\n\\n      // Verify GA is working\\n      if (typeof gtag === 'function') {\\n        gtag('event', 'ga_verification', {\\n          event_category: 'verification',\\n          event_label: 'GA4 Verification'\\n        });\\n      }\\n    } catch (e) {\\n      console.error('Error setting up GA event listeners:', e);\\n    }\\n  \\n      })();\\n    </script>\\n          <noscript id=\\\"fb-pixel-noscript\\\">\\n            </noscript>\",description:\"Fair giveaways, real winners. Lucky Duck offers fixed odds, low-cost entries, live tracking, and prizes across categories you actually want. Are you feeling lucky?\",favicon:\"https://framerusercontent.com/assets/GtT76T3wOu9tvtZ7lo06OaCvIiE.png\",robots:\"max-image-preview:large\",title:\"Lucky Duck: The Internet’s Most Transparent, Rewarding, & Winnable Giveaway Platform.\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (5f2272d)\nimport siteMetadata from\"https://framerusercontent.com/modules/tjKxWj4vTjQv8YvkIK21/TYBjATIlbhe2HqxcUnlh/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"12rl3p\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1wvgwca\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1aey6pj\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{FTf12XQFn:\"pricing\",ITmLkY6rE:\"pricing-1\",J2b7S24Lh:\"faqs\",jXraRO6bq:\"how-it-works\",m4p63a1ne:\"how\",t7tyQpR5s:\"solution\",u7Rpumm4b:\"problem\",zn2Ew1RKh:\"proof\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-UUgCD\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA+grG,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA685B,YAAY,sKAAsK,QAAQ,uEAAuE,OAAO,0BAA0B,MAAM,wFAAwF,mBCAr0lI,SAAwBA,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,sBAAsB,CAAC,CAAC,KAAK,UAAU,WAAW,gDAAgD,CAAC,CAAC,KAAK,UAAU,WAAW,wBAAwB,CAAC,CAAC,YAAYC,EAAa,EAAO,EAAa,CAAC,YAAY,SAAS,CAAC,UAAU,UAAU,UAAU,YAAY,UAAU,OAAO,UAAU,eAAe,UAAU,MAAM,UAAU,WAAW,UAAU,UAAU,UAAU,QAAQ,CAAC,aAAa,CAAC,MAAM,GAAK,CAAC,OAAO,0BAA0B,gBAAgB,eAAe,MAAMA,EAAa,EAAO,EAAa,CAAC,OAAO,OAAO,SAAS,qBAAqB,sBAA9oB,CAA6pB,EAAgB,EAC1xB,EAAqB,CAAC,QAAU,CAAC,gBAAkB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,QAAU,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,mBAAqB,CAAC,KAAO,WAAW,CAAC,CAAC"}