var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
var u=t=>{typeof window>"u"||(document.readyState!=="loading"?t():(document.addEventListener("DOMContentLoaded",t),window.addEventListener("popstate",t),window.addEventListener("mercury:load",t)))},o=(t=!1)=>{let a=document.querySelectorAll(".calculator"),r=Array.from(a),l=0;return r.forEach(async e=>{let{dataset:c}=e,{loaded:s,type:i="inPage"}=c;if(!t&&s)return;let n=e.dataset.calcId;if(n){if(e.dataset.loaded=!0,i.toUpperCase().includes("PAGE")){let{default:d}=await import("../../scripts/initInPageCalculator-TGTD2SW2.js");d({el:e,calculatorId:n})}if(i.toUpperCase().includes("FRAME")){let{default:d}=await import("../../scripts/initFramedCalculator-HM2GGITZ.js");d({el:e,calculatorId:n})}l+=1}}),l},w=()=>{if(o()>0)return;let a=window.setInterval(()=>{o()>0&&window.clearInterval(a)},200);window.setTimeout(()=>{window.clearInterval(a)},1e4)};typeof window<"u"&&(window.cc={...window.cc,reinitialize:()=>{console.warn("The reinitialize method is depreciated. Please use the method reload() instead"),o(!0)},reload:()=>{o(!0)}});u(()=>{w()});
//# sourceMappingURL=https://www.convertcalculator.com/scripts/embed.js.map

}