!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("RevenueRootLoader",[],t):"object"==typeof exports?exports.RevenueRootLoader=t():e.RevenueRootLoader=t()}(self,(()=>(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const o="convert-bundle-loader",n="revenue-addon-bundle",r="g_cvt_id",i="rev_id";var d;return[{name:"rev-script-bundle",url:`${(d=function(){let e;const t=document.getElementsByTagName("script");for(let d=0;d{const o=e.get(t);o&&(window.REVENUE_ADDON_ID=o)}))}break}}return{baseUrl:window.REVENUE_ADDON_CDN||e||"https://bundle.dyn-rev.app",revision:window.REVENUE_ADDON_REVISION||"c15a5da8",id:window.REVENUE_ADDON_ID||null}}()).baseUrl}/script.js?rev=${d.revision}`}].map((e=>{const t=document.createElement("script");t.src=e.url,t.id=e.name;const o=()=>document.body.appendChild(t);"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()})),function(){if(window.GorgiasBridge)return;const e={get(e,t){if("init"!=t&&"resolve"!=t&&"_isMockFunction"!=t)throw new Error(`You are trying to use the Gorgias Bridge API before its initialization (property or function \\"${t}\\")! Please use \`GorgiasBridge.init()\`. Refer to our documentation https://developers.gorgias.com/docs/how-to-attach-gorgias-tracking-data-to-shopify-cart-and-checkout-attributes for more info.`);const o=e[t];return"function"==typeof o?o.bind(e):o}};window.GorgiasBridge=new Proxy({},e);const t=new Promise((function(e,t){window.GorgiasBridge.resolve=e}));window.GorgiasBridge.init=function(){return t}}(),t})()));