{
  "version": 3,
  "sources": ["/cdn/shop/t/151/assets/cart-calculation.js?caesar_cart_currency_fix=20260708T0037"],
  "sourcesContent": ["document.addEventListener(\"DOMContentLoaded\", function() {\n\n  document.querySelectorAll('.cartCheckoutBtnWrapper .checkoutBtngrid input[type=\"submit\"]')\n  .forEach(function(button) {\n\n    // Remove disabled attribute if present\n    button.removeAttribute('disabled');\n\n    button.addEventListener('click', function () {\n      var waiting_text = this.getAttribute('data-wait');\n      if (waiting_text && waiting_text !== 'undefined') {\n        this.value = waiting_text;\n      }else {\n        this.value = 'Please wait...';\n      }\n      window.location.href = '/checkout';\n    });\n  });\n\n\n  const getCartCurrency = (cart) => {\n    const host = (window.location && window.location.hostname || '').toLowerCase();\n    if (host.indexOf('uk.') === 0 || host.indexOf('uk.cushiehome.com') !== -1) return 'GBP';\n    if (host.indexOf('ca.') === 0 || host.indexOf('ca.cushiehome.com') !== -1) return 'CAD';\n    return (\n      (cart && cart.currency) ||\n      (window.Shopify && window.Shopify.currency && window.Shopify.currency.active) ||\n      (window.Shopify && window.Shopify.currency && window.Shopify.currency.isoCode) ||\n      (window.theme && window.theme.currencyCode) ||\n      'USD'\n    );\n  };\n\n  const formatMoney = (cents, cart) => {\n    const amount = (Number(cents) || 0) / 100;\n    const currency = getCartCurrency(cart);\n    const formatted = amount.toFixed(2).replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n    if (currency === 'GBP') return '\u00A3' + formatted;\n    return '$' + formatted;\n  };\n\n\n  const updateCartInstallmentText = (cart) => {\n    const installmentEls = document.querySelectorAll('.brk_price');\n    if (!installmentEls.length || !cart) return;\n    const monthlyCents = (Number(cart.total_price) || 0) / 12;\n    const installmentText = formatMoney(monthlyCents, cart) + '/Month';\n    installmentEls.forEach((el) => { el.textContent = installmentText; });\n  };\n\n  // Cart page hotfix: the cached discount-box snippet may still rewrite totals with a hardcoded \"$\".\n  // Keep the visible cart page totals normalized to the active market currency after all inline scripts run.\n  const normalizeCartPageCurrencyTotals = async () => {\n    const subtotalEl = document.querySelector('#cart-subtotal');\n    const totalEl = document.querySelector('#cart-page-total');\n    if (!subtotalEl && !totalEl) return;\n    try {\n      const response = await fetch('/cart.js', { cache: 'no-store' });\n      const cart = await response.json();\n      if (subtotalEl) subtotalEl.textContent = formatMoney(cart.items_subtotal_price || cart.original_total_price || 0, cart);\n      if (totalEl) totalEl.textContent = formatMoney(cart.total_price || 0, cart);\n    } catch (error) {\n      console.warn('Unable to normalize cart page currency totals', error);\n    }\n  };\n\n  normalizeCartPageCurrencyTotals();\n  setTimeout(normalizeCartPageCurrencyTotals, 250);\n  setTimeout(normalizeCartPageCurrencyTotals, 1000);\n  setTimeout(normalizeCartPageCurrencyTotals, 2500);\n  window.addEventListener('load', normalizeCartPageCurrencyTotals);\n\n  \n  const updateCartTotals = async (cart) => {\n    // console.log('Cart object:', cart);\n\n    if (Array.isArray(cart.items)) {\n      if (cart.item_count === 0) {\n        $('.cart-customize-layout-wrapper .cart-empty-container').show();\n        $('.cart-customize-layout-wrapper .form-block.w-form').hide();\n        $('#cart-checkout-button').addClass('disabled-checkout');\n      } else {\n        $('.cart-customize-layout-wrapper .cart-empty-container').hide();\n        $('.cart-customize-layout-wrapper .form-block.w-form').show();\n        $('#cart-checkout-button').removeClass('disabled-checkout');\n      }\n\n      // === Cart Page Elements ===\n      const subtotalEl = document.querySelector('#cart-subtotal');\n      const totalEl = document.querySelector('#cart-page-total');\n      const discountValueEl = document.querySelector('#cart-page-discount-total');\n      const saveDiscountEl = document.querySelector('#cart-page-saved-discount');\n\n      // === Drawer Elements ===\n      const drawerSubtotalEl = document.querySelector('.cart_sub_total_price');\n      const drawerTotalEl = document.querySelector('#price-all-cart');\n      const drawerDiscountAdd = document.querySelector('.cart_discount_add');\n      const shipping = document.querySelector('.cartShipping');\n      const displayedCodes = new Set();\n\n      let discountCouponsArr = ['end of year sale, 10% off','end of year sale, 15% off','end of year sale, 20% off','end of year sale,  20% off','end of year sale, 25% off','end of year sale, 30% off'];\n\n      /* const drawerDiscountCode = document.querySelector('.discount_code');\n      const drawerDiscountPrice = document.querySelector('.total_discount_price'); */\n\n      if($('.cart-lines .cartDiscountRow').length > 0){\n        $('.cart-lines .cartDiscountRow').remove();\n      }\n\n      if (cart.total_discount > 0) {\n        \n        // === Cart Page Updates ===\n        // if (subtotalEl) subtotalEl.textContent = formatMoney(cart.items_subtotal_price, cart);\n        if (subtotalEl) subtotalEl.textContent = formatMoney(cart.original_total_price, cart);\n        if (totalEl) totalEl.textContent = formatMoney(cart.total_price, cart);\n        if (discountValueEl) discountValueEl.textContent = '-' + formatMoney(cart.total_discount, cart);\n\n        const discountPercent = Math.round((cart.total_discount * 100) / (cart.original_total_price || 1));\n        if (saveDiscountEl) saveDiscountEl.textContent = `Save ${discountPercent}%`;\n\n        // === Drawer Updates ===\n        if (drawerSubtotalEl) drawerSubtotalEl.textContent = formatMoney(cart.items_subtotal_price, cart);\n        if (drawerTotalEl) drawerTotalEl.textContent = formatMoney(cart.total_price, cart);\n\n        /* if (drawerDiscountPrice) drawerDiscountPrice.textContent = '-' + formatMoney(cart.total_discount, cart);\n\n        if (drawerDiscountCode && cart.cart_level_discount_applications.length > 0) {\n          drawerDiscountCode.textContent = cart.cart_level_discount_applications[0].title;\n          drawerDiscountCode.classList.remove('hide');\n          if (drawerDiscountAdd) drawerDiscountAdd.classList.add('hide');\n        } */\n\n      }else {\n\n        // === Manual Recalculation ===\n        let cartSubtotal = 0;\n        let cartTotal = 0;\n\n        for (const item of cart.items) {\n          const itemPrice = item.price;\n          cartSubtotal += itemPrice * item.quantity;\n          cartTotal += itemPrice * item.quantity;\n        }\n\n        const cartSavings = cartSubtotal - cartTotal;\n        const discountPercent = Math.round((cartSavings * 100) / (cartSubtotal || 1));\n\n        // === Cart Page Updates ===\n        if (subtotalEl) subtotalEl.textContent = formatMoney(cartSubtotal, cart);\n        if (discountValueEl) discountValueEl.textContent = '-' + formatMoney(cartSavings, cart);\n        if (saveDiscountEl) saveDiscountEl.textContent = `Save ${discountPercent}%`;\n        if (totalEl) totalEl.textContent = formatMoney(cartTotal, cart);\n\n        // === Drawer Updates ===\n        if (drawerSubtotalEl) drawerSubtotalEl.textContent = formatMoney(cartSubtotal, cart);\n        if (drawerTotalEl) drawerTotalEl.textContent = formatMoney(cartTotal, cart);\n\n        /* if (drawerDiscountPrice) drawerDiscountPrice.textContent = '-' + formatMoney(cartSavings, cart);\n\n         if (drawerDiscountCode) {\n          drawerDiscountCode.textContent = '';\n          drawerDiscountCode.classList.add('hide');\n        } \n\n        if (drawerDiscountAdd) {\n          drawerDiscountAdd.classList.remove('hide');\n        } */\n\n      }\n\n      updateCartInstallmentText(cart);\n\n      if (cart.cart_level_discount_applications?.length) {\n        for (let allocation of cart.cart_level_discount_applications) {\n          const discount_code = allocation.title?.toLowerCase();\n          let amount = allocation.total_allocated_amount;\n\n          if(amount){\n            amount = formatMoney(amount, cart);\n          }\n\n          if (!discount_code) continue;\n\n          // Then insert into DOM only if not already displayed\n          if (!displayedCodes.has(discount_code)) {\n            displayedCodes.add(discount_code);\n\n            const cartlevelDiscount = document.createElement('div');\n            cartlevelDiscount.className = 'cart-line cartDiscountRow';\n\n            let code_to_match = discount_code.replace(/['\"\u201C\u201D\u2018\u2019]/g, '').trim();\n\n            if (discountCouponsArr.includes(code_to_match)){\n              cartlevelDiscount.innerHTML = `\n                <span data-automatic-discount=\"\" class=\"appliedDiscountCode\" data-discount=\"${discount_code}\">${discount_code}</span>\n                <div class=\"appliedDiscountAmount semi-text\">-${amount}</div>\n              `;\n            }else{\n               cartlevelDiscount.innerHTML = `\n                <span data-automatic-discount=\"\" class=\"appliedDiscountCode\" data-discount=\"${discount_code}\">${discount_code}<span class=\"removeDiscountCode\">x</span></span>\n                <div class=\"appliedDiscountAmount semi-text\">-${amount}</div>\n              `;\n            }\n            \n            shipping.parentNode.insertBefore(cartlevelDiscount, shipping);\n          }\n        }\n      }\n\n      // --- Insert item-level discounts ---\n      if (cart.items?.length) {\n        for (let item of cart.items) {\n          if (item.line_level_discount_allocations?.length) {\n            for (let allocation of item.line_level_discount_allocations) {\n              const discount_code = allocation.discount_application?.title?.toLowerCase();\n              let amount = allocation.discount_application?.total_allocated_amount;\n\n              if(amount){\n                amount = formatMoney(amount, cart);\n              }\n\n              if (discount_code && !displayedCodes.has(discount_code)) {\n                displayedCodes.add(discount_code);\n                const cartlevelDiscount = document.createElement('div');\n                cartlevelDiscount.className = 'cart-line cartDiscountRow';\n\n                let code_to_match = discount_code.replace(/['\"\u201C\u201D\u2018\u2019]/g, '').trim();\n\n                if (discountCouponsArr.includes(code_to_match)){\n                  cartlevelDiscount.innerHTML = `\n                    <span data-automatic-discount=\"\" class=\"appliedDiscountCode\" data-discount=\"${discount_code}\">${discount_code}</span>\n                    <div class=\"appliedDiscountAmount semi-text\">-${amount}</div>\n                  `;\n                }else{\n                  cartlevelDiscount.innerHTML = `\n                    <span data-automatic-discount=\"\" class=\"appliedDiscountCode\" data-discount=\"${discount_code}\">${discount_code}<span class=\"removeDiscountCode\">x</span></span>\n                    <div class=\"appliedDiscountAmount semi-text\">-${amount}</div>\n                  `;\n                 \n                }\n               \n                shipping.parentNode.insertBefore(cartlevelDiscount, shipping);\n              }\n            }\n          }\n        }\n      }\n\n    } else {\n      console.log('cart.items is not an array', cart.items);\n    }\n  };\n  \n\n  const updateCartLineItems = async (cart) => {\n    for (const item of cart.items) {\n      const price = item.price;\n      const quantity = item.quantity;\n      const lineTotal = formatMoney(price * quantity, cart);\n      const itemKey = item.key;\n      const variantId = item.variant_id;\n\n      let check_sale = false;\n      let sale_percentage = 0;\n      let saleTotal = (price * quantity);\n      let saleDiscounted = 0;\n\n      // console.log('test');\n\n      // === Cart Page ===\n      const cartItemEl = document.querySelector(`.cart-item-3[data-id=\"${variantId}\"]`);\n      if (cartItemEl) {\n        const priceEls = cartItemEl.querySelectorAll('.final-line-price');\n        const comppriceEls = cartItemEl.querySelectorAll('.cart_compare_price');\n        const qtyInput = cartItemEl.querySelector('.cart-qty-input');\n        \n        if (qtyInput) qtyInput.value = quantity;\n\n        const check_sale = cartItemEl.getAttribute('data-sale');\n        const sale_percentage = parseFloat(cartItemEl.getAttribute('data-sale-percent')) || 0;\n\n        // Convert \"true\"/\"false\" string to boolean\n        const isSaleActive = check_sale === 'true' || check_sale === true;\n\n        if (isSaleActive && sale_percentage > 0) {\n          const saleDiscounted = saleTotal - (saleTotal * sale_percentage / 100);\n          \n          priceEls.forEach((priceEl) => {\n            if (priceEl) priceEl.textContent = formatMoney(saleDiscounted, cart);\n          });\n\n          comppriceEls.forEach((compEl) => {\n            if (compEl) compEl.textContent = lineTotal;\n          });\n\n        }else{\n          priceEls.forEach((priceEl) => {\n            if (priceEl) priceEl.textContent = lineTotal;\n          });\n          comppriceEls.forEach((compEl) => {\n            if (compEl) {\n              compEl.textContent = '';\n              compEl.style.display = 'none';\n            }\n          });\n        }\n      }\n\n      // === Drawer Cart ===\n      const drawerItemEl = document.querySelector(`.cart-item-2[data-id=\"${variantId}\"]`);\n      if (drawerItemEl) {\n          const priceEl = drawerItemEl.querySelector('.cart_main_price');\n          const crossPriceEl = drawerItemEl.querySelector('.cart_cross_price');\n          const savingEl = drawerItemEl.querySelector('.cart_saving_prd');\n          const qtyInput = drawerItemEl.querySelector(`[id^=\"mini-cart-quantity\"]`);\n          const drawerSaleActive = drawerItemEl.getAttribute('data-sale') === 'true' || drawerItemEl.getAttribute('data-sale') === true;\n          const drawerSalePercent = parseFloat(drawerItemEl.getAttribute('data-sale-percent')) || 0;\n\n          if (drawerSaleActive && drawerSalePercent > 0) {\n            const saleDiscounted = saleTotal - (saleTotal * drawerSalePercent / 100);\n            if (priceEl) priceEl.textContent = formatMoney(saleDiscounted, cart);\n            if (crossPriceEl) {\n              crossPriceEl.textContent = lineTotal;\n              crossPriceEl.style.display = '';\n            }\n            if (savingEl) {\n              savingEl.textContent = `Save ${drawerSalePercent}%`;\n              savingEl.style.display = '';\n            }\n          } else {\n            const normalLinePrice = typeof item.final_line_price === 'number' ? item.final_line_price : saleTotal;\n            if (priceEl) priceEl.textContent = formatMoney(normalLinePrice, cart);\n            if (crossPriceEl) crossPriceEl.style.display = 'none';\n            if (savingEl) savingEl.style.display = 'none';\n          }\n\n          if (qtyInput) qtyInput.value = quantity;\n      }\n    }\n  };\n\n\n    const updateCartCount = async (cart) => {\n        const count = cart.item_count;\n        let count_updated = '';\n\n        if (count > 0) {\n            count_updated = (count < 10 ? '0' + count : count) + (count === 1 ? ' item' : ' items');\n            $('#cart-checkout-button').removeClass('disabled-checkout');\n        } else {\n            count_updated = '0 items'; // or you could use 'No items' if preferred\n            $('#cart-checkout-button').addClass('disabled-checkout');\n        }\n\n        if (count_updated) {\n            $('.cart-new-template-2025 .counter .counter-text').text(count_updated);\n        }\n\n        $('#mainHeader .header_grid #mini-cart-items-all').text(count);\n        $('.cart-header .cart_total_items').text('( '+count+' items )');\n    };\n\n\n    let cartUpdateDebounceTimer;\n\n    document.addEventListener('click', function (e) {\n      \n      const btn = e.target.closest('.cart-plus, .cart-minus');\n      if (!btn) return;\n    \n      const container = btn.closest('.cart-item-3') || btn.closest('.cart-item-2');\n      if (!container) return;\n\n      console.log('container console', container);\n    \n      const input = container.querySelector('.cart-qty-input') || container.querySelector('[id^=\"mini-cart-quantity\"]');\n      if (!input) return;\n    \n      let qty = parseInt(input.value, 10);\n      const key = input.name || input.id;\n      if (!key) return;\n    \n      const isPlus = btn.classList.contains('cart-plus') || btn.innerText.trim() === '+';\n      const isMinus = btn.classList.contains('cart-minus') || btn.innerText.trim() === '-';\n    \n      qty = isPlus ? qty + 1 : Math.max(1, qty - 1);\n      input.value = qty;\n    \n      // Debounce the cart update\n      clearTimeout(cartUpdateDebounceTimer);\n      \n      cartUpdateDebounceTimer = setTimeout(async () => {\n        \n        const cartFooters = document.querySelectorAll('.cart-footer-2');\n        const cartLoaders = document.querySelectorAll('.cart-total-loader');\n        // const drawerWrappers = document.querySelectorAll('.w-commerce-commercecartformwrapper.cart_drawer_items_wrapper');\n        \n        cartFooters.forEach(footer => footer.classList.add('show-loader'));\n        cartLoaders.forEach(loader => loader.classList.remove('hide'));\n\n      //  $('.w-commerce-commercecartformwrapper.cart_drawer_items_wrapper').addClass('show-loader');\n      // $('.w-commerce-commercecartformwrapper.cart_drawer_items_wrapper .cart-total-loader').removeClass('hide');\n        \n        try {\n          // Update cart with new quantity\n          await fetch(\"/cart/update.js\", {\n            method: \"POST\",\n            headers: {\n              Accept: \"application/json\",\n              \"Content-Type\": \"application/json\",\n            },\n            body: JSON.stringify({\n              updates: {\n                [key]: qty\n              }\n            }),\n          })\n    \n          // Fetch the fresh cart state\n          const refreshedCart = await fetch('/cart.js', {\n            method: 'GET',\n            headers: { 'Content-Type': 'application/json' },\n            cache: 'no-store'\n          }).then(res => res.json()); \n\n\n          // Update the DOM\n          await updateCartLineItems(refreshedCart);\n          await updateCartTotals(refreshedCart);\n          await updateCartCount(refreshedCart);\n    \n        }catch (error) {\n          console.error('Error updating cart:', error);\n        }finally {\n          cartFooters.forEach(footer => footer.classList.remove('show-loader'));\n          cartLoaders.forEach(loader => loader.classList.add('hide'));\n        }\n      }, 400); // debounce delay (ms)\n    });\n\n\n    // Quantity input change\n    $(document).on('change', '.quantity-block input.cart-qty-input', function() {\n        const new_qty = parseInt($(this).val());\n        const key = $(this).attr('id');\n\n        let cartFooter = document.querySelectorAll('.cart-customize-layout-wrapper .cart-items .cart-footer-2');\n        cartFooter.forEach(function(footer) {\n            footer.classList.add('show-loader');\n        });\n\n        let cartLoader = document.querySelectorAll('.cart-customize-layout-wrapper .cart-items .cart-footer-2 .cart-total-loader');\n        cartLoader.forEach(function(loader) {\n            loader.classList.remove('hide');\n        });\n\n        fetch('/cart/update.js', {\n          method: 'POST',\n          headers: {\n            'Content-Type': 'application/json'\n          },\n          body: JSON.stringify({\n            updates: {\n              [key]: new_qty\n            }\n          })\n        })\n        .then(res => res.json())\n        .then(cart => {\n          updateCartTotals(cart);\n          updateCartLineItems(cart);\n          updateCartCount(cart);\n        \n          cartFooter.forEach(function(footer) {\n            footer.classList.remove('show-loader');\n          });\n        \n          cartLoader.forEach(function(loader) {\n            loader.classList.add('hide');\n          });\n        })\n        .catch(error => {\n          console.error('Error updating cart:', error);\n        \n          cartFooter.forEach(function(footer) {\n            footer.classList.remove('show-loader');\n          });\n        \n          cartLoader.forEach(function(loader) {\n            loader.classList.add('hide');\n          });\n        });\n\n    });\n\n    // Remove cart item\n    document.addEventListener('click', function(e) {\n      if (e.target.closest('.cart-remove-btn')) {\n        e.preventDefault();\n    \n        const button = e.target.closest('.cart-remove-btn');\n        const container = button.closest('.cart-item-3');\n        const variantId = parseInt(button.closest('[data-variant-id]').dataset.variantId);\n        const container1 = $('.cart-item-2[data-id=\"'+variantId+'\"]');\n    \n        fetch('/cart.js')\n          .then(res => res.json())\n          .then(cart => {\n            const item = cart.items.find(i => i.variant_id === variantId);\n            if (!item) return;\n    \n            return fetch('/cart/update.js', {\n              method: 'POST',\n              headers: {\n                'Content-Type': 'application/json'\n              },\n              body: JSON.stringify({\n                updates: {\n                  [item.key]: 0 // This will remove the item\n                }\n              })\n            });\n          })\n          .then(res => res.json())\n          .then(updatedCart => {\n            \n            if(updatedCart.item_count == 0){\n              $('.sticky-checkout-button-wrapper').hide();\n            }else{\n              $('.sticky-checkout-button-wrapper').show();\n            }\n\n            if (container) container.remove();\n            if (container1) container1.remove();\n            updateCartTotals(updatedCart);\n            updateCartLineItems(updatedCart);\n            updateCartCount(updatedCart);\n          })\n          .catch(err => console.error('Error removing item:', err));\n      }\n    });\n\n\n    const inputs = document.querySelectorAll(\".cart-customize-layout-wrapper .cart_items_ .quantity-block .quantity\");\n\n    inputs.forEach(input => {\n      // Prevent invalid keys like e, E, +, -, and .\n      input.addEventListener(\"keydown\", function (e) {\n        const invalidKeys = ['e', 'E', '+', '-', '.'];\n        if (invalidKeys.includes(e.key)) {\n          e.preventDefault();\n        }\n      });\n    \n      // Sanitize pasted input or non-numeric typing\n      input.addEventListener(\"input\", function () {\n        let cleaned = this.value.replace(/[^0-9]/g, '');\n    \n        // Prevent value lower than min or greater than max\n        const min = parseInt(this.min || 1);\n        const max = parseInt(this.max || 999999);\n    \n        if (cleaned !== '') {\n          let numericValue = parseInt(cleaned);\n          if (numericValue < min) numericValue = min;\n          if (numericValue > max) numericValue = max;\n          this.value = numericValue;\n        } else {\n          this.value = min; // or '' if you want to allow empty temporarily\n        }\n      });\n    });\n\n\n\n    document.addEventListener('cart:updated', function(e) {\n      console.log('Cart updated!', e.detail); // e.detail = cart object\n    });\n\n  \n});"],
  "mappings": "AAAA,SAAS,iBAAiB,mBAAoB,UAAW,CAEvD,SAAS,iBAAiB,+DAA+D,EACxF,QAAQ,SAAS,OAAQ,CAGxB,OAAO,gBAAgB,UAAU,EAEjC,OAAO,iBAAiB,QAAS,UAAY,CAC3C,IAAI,aAAe,KAAK,aAAa,WAAW,EAC5C,cAAgB,eAAiB,YACnC,KAAK,MAAQ,aAEb,KAAK,MAAQ,iBAEf,OAAO,SAAS,KAAO,WACzB,CAAC,CACH,CAAC,EAGD,MAAM,gBAAmB,MAAS,CAChC,MAAM,MAAQ,OAAO,UAAY,OAAO,SAAS,UAAY,IAAI,YAAY,EAC7E,OAAI,KAAK,QAAQ,KAAK,IAAM,GAAK,KAAK,QAAQ,mBAAmB,IAAM,GAAW,MAC9E,KAAK,QAAQ,KAAK,IAAM,GAAK,KAAK,QAAQ,mBAAmB,IAAM,GAAW,MAE/E,MAAQ,KAAK,UACb,OAAO,SAAW,OAAO,QAAQ,UAAY,OAAO,QAAQ,SAAS,QACrE,OAAO,SAAW,OAAO,QAAQ,UAAY,OAAO,QAAQ,SAAS,SACrE,OAAO,OAAS,OAAO,MAAM,cAC9B,KAEJ,EAEM,YAAc,CAAC,MAAO,OAAS,CACnC,MAAM,QAAU,OAAO,KAAK,GAAK,GAAK,IAChC,SAAW,gBAAgB,IAAI,EAC/B,UAAY,OAAO,QAAQ,CAAC,EAAE,QAAQ,wBAAyB,GAAG,EACxE,OAAI,WAAa,MAAc,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