/*! For license information please see pricing.min.js.LICENSE.txt */ (()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){t=function(){return r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(n){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new j(r||[]);return a(i,"_invoke",{value:D(e,n,c)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var m="suspendedStart",h="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};d(E,l,(function(){return this}));var L=Object.getPrototypeOf,C=L&&L(L(x([])));C&&C!==o&&i.call(C,l)&&(E=C);var P=S.prototype=b.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(o,a,c,l){var s=p(t[o],t,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==e(d)&&i.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):n.resolve(d).then((function(e){u.value=e,c(u)}),(function(e){return r("throw",e,c,l)}))}l(s.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function D(e,t,r){var o=m;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=q(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var s=p(e,t,r);if("normal"===s.type){if(o=r.done?v:h,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function q(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,q(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(l&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}var r=function(){var e,r=(e=t().mark((function e(n,r){var o,i,a,c,l,s,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n);case 2:return o=e.sent,e.next=5,o.text();case 5:if(i=e.sent,a=new DOMParser,c=a.parseFromString(i,"image/svg+xml"),(l=c.getElementsByTagName("svg")).length){for(l=l[0],s=l.attributes,u=0;u3&&void 0!==arguments[3]?arguments[3]:{},a=new CustomEvent(t,{detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bubbles:null===(n=i.bubbles)||void 0===n||n,cancelable:null===(r=i.cancelable)||void 0===r||r,composed:null!==(o=i.composed)&&void 0!==o&&o});e.dispatchEvent(a)},d={};"undefined"!=typeof window&&(window.SinchDS=window.SinchDS||d);var f=function(e,t){d[e]=t};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var r=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(!n&&null===t&&(e=window.innerHeight,!(S!==e?(S=e,0):E)))return w=r,!1;var o={previousScroll:w,currentScroll:r,forcedDirection:t},i=u(document,b.BEFORE_CHANGE,o,{cancelable:!0});if(i&&i.defaultPrevented)return!1;var a,c=function(e){if(!e)return null;var t=e.toLowerCase().split(",").map((function(e){return e.trim()}));return t.every((function(e){return Object.values(v).includes(e)}))?{direction:t[0],includeTop:t.includes(v.TOP)}:null}(t);return c?(document.body.classList.toggle("scrolling-up",c.direction===v.UP),document.body.classList.toggle("scrolling-down",c.direction===v.DOWN),c.includeTop&&document.body.classList.toggle("is-scrolled-top",r<100)):(r<100?document.body.classList.add("is-scrolled-top"):document.body.classList.remove("is-scrolled-top"),null!==(a=window.SinchDS)&&void 0!==a&&a.__smoothScrollInProgress||Math.abs(r-w)>=1&&(r>w?(document.body.classList.remove("scrolling-up"),document.body.classList.add("scrolling-down")):(document.body.classList.add("scrolling-up"),document.body.classList.remove("scrolling-down")))),w=r,u(document,b.AFTER_CHANGE,h(h({},o),{},{appliedClasses:{isScrolledTop:document.body.classList.contains("is-scrolled-top"),scrollingUp:document.body.classList.contains("scrolling-up"),scrollingDown:document.body.classList.contains("scrolling-down")}})),setTimeout((function(){E=!1}),50),!0}catch(e){return u(document,b.ERROR,{error:e.message,timestamp:(new Date).getTime()}),console.error("Scroll direction error:",e),!1}}));var T=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rangeElement="string"==typeof t?document.querySelector(t):t,!this.rangeElement||"range"!==this.rangeElement.type)throw new Error("Invalid range element");this.options={segments:n.segments||5,onChange:n.onChange||function(){},onLoad:n.onLoad||function(){},initialSegment:n.initialSegment||1},this.rangeElement.min=0,this.rangeElement.max=100,this.rangeElement.step=1,this.segmentPositions=this._calculateSegmentPositions(),this._setInitialValue(),this._setupEventListeners(),this.rangeElement.classList.add("segmented-range");var r=Math.min(this.options.initialSegment-1,this.segmentPositions.length-1),o=this.segmentPositions[r];this.options.onLoad(this.options.initialSegment,o)},t=[{key:"_calculateSegmentPositions",value:function(){for(var e=this.options.segments,t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:"slider",n=this.segmentPositions[0],r=Math.abs(e-n),o=1;o1&&void 0!==arguments[1]?arguments[1]:"api";if(e<1||e>this.options.segments)console.error("Invalid segment number");else{var n=e-1;this.rangeElement.value=this.segmentPositions[n],this.options.onChange(e,this.segmentPositions[n],t)}}}],t&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();document.getElementById("topSubnavContainer"),document.getElementById("topSubnavIcon"),document.getElementById("topSubnavIconInner"),document.getElementById("topSubnavSiteTitle"),document.getElementById("topSubnavSiteTitleInner"),document.getElementById("topSubnavSectionTitle"),document.getElementById("topSubnavMenuInner"),document.getElementById("topSubnavMoreInner"),document.getElementById("topSubnavExtraContent"),document.getElementById("topSubnavExtraContentInner");function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&document.querySelectorAll("[data-smoothscroll-offset=true], #wpadminbar").forEach((function(e){n-=e.offsetHeight}));var r=e.getBoundingClientRect().top+window.scrollY+n,o=window.scrollY,i=r-o,a=null;window.SinchDS||(window.SinchDS={}),requestAnimationFrame((function e(n){null===a&&(window.SinchDS.__smoothScrollInProgress=!0,a=n);var r,c,l,s,u=n-a,d=(r=u,c=o,l=i,(r/=t/2)<1?l/2*r*r+c:-l/2*(--r*(r-2)-1)+c);window.scrollTo(0,d),u0?j.classList.remove("visible"):j.classList.add("visible")}else j.classList.add("active")}function Q(){var e=document.querySelectorAll("[data-mo]");e&&e.forEach((function(e){e.innerHTML="annually"===k?e.getAttribute("data-yr"):e.getAttribute("data-mo")}))}function G(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.getElementById("peCurrencySwitcher");if(t&&pricingData){if(B=t.value,e){var n=new URLSearchParams(window.location.search);B&&n.set("currency",B);var r=n.size?"?"+n.toString():"",o=window.location.origin+window.location.pathname+r;window.history.replaceState(null,"",o)}var i=document.querySelectorAll(".pePlan");i&&U(i);var a=document.getElementById("peComparison");if(a&&e){a.innerHTML="";var c=document.getElementById("peComparisonTable").content.cloneNode(!0),l=document.getElementById("peComparisonTableRow").content.cloneNode(!0),s=document.getElementById("peComparisonTooltip").content.cloneNode(!0);(B in pricingData.comparisons?pricingData.comparisons[B]:pricingData.comparisons[pricingData.defaultCurrency]).forEach((function(e){var t=document.importNode(c,!0);if(t.querySelector(".peCtTitle").innerHTML=e.title,0!==e.rows.length){var n=document.importNode(l,!0);n.querySelector(".peCtTableRow").classList.add("table-head"),Object.values(pricingData.plans).forEach((function(e){var t=document.createElement("div"),r=document.createElement("div");t.classList.add("table-cel"),r.classList.add("table-cel-inner"),r.innerHTML=e.title,t.appendChild(r),n.querySelector(".peCtTableRow").appendChild(t)})),t.querySelector(".peCtTable").appendChild(n),e.rows.forEach((function(e){var n=document.importNode(l,!0);if(e.hasOwnProperty("tooltip")&&e.tooltip){var r=document.importNode(s,!0);r.querySelector(".peCtTooltip").innerHTML=e.title,r.querySelector(".peCtTooltip").setAttribute("aria-label",e.tooltip),n.querySelector(".peCtRowTitle").appendChild(r)}else n.querySelector(".peCtRowTitle").innerHTML=e.title;var o=[];if(e.hasOwnProperty("cols")&&Array.isArray(e.cols))o=e.cols;else for(var i=0;i\n \n '):!0===e?(t.classList.add("icon-check"),r.innerHTML=''):r.innerHTML=e,t.appendChild(r),n.querySelector(".peCtTableRow").appendChild(t)})),t.querySelector(".peCtTable").appendChild(n)})),a.appendChild(t)}}))}var u=document.querySelectorAll(".peCurrency");u&&u.forEach((function(e){e.innerHTML=pricingData.currencies[B].currency})),document.querySelectorAll(".pePlanCta").forEach((function(e){if(e.href){var t=new URL(e.href);t.searchParams.has("currency")&&(t.searchParams.set("currency",B.toUpperCase()),e.href=t.toString())}}))}}function U(e){e.forEach((function(e,t){var n=e.id,r=!1,o=pricingData.plans[n].featured;o&&(Array.isArray(o)&&o.includes(Number(_))||!0===o)&&(r=!0,F=t+1),r?e.classList.add("featured"):e.classList.remove("featured");var i=e.querySelector(".pePlanBadge");i&&(i.innerHTML=pricingData.plans[n].title);var a=e.querySelector(".pePlanPrice");if(a){var c,l=null,s=O(pricingData.plans[n].priceQty);try{for(s.s();!(c=s.n()).done;){var u=c.value;if(u.activeQty.includes(Number(_))){l=u.price[B];break}}}catch(e){s.e(e)}finally{s.f()}l&&(a.innerHTML=l)}var d=e.querySelector(".pePlanDescription");d&&(pricingData.plans[n].description?(d.innerHTML=pricingData.plans[n].description,d.classList.add("visible")):(d.innerHTML="",d.classList.remove("visible")));var f=e.querySelector(".pePlanQty");if(f){var p=null,m=pricingData.plans[n].valueQty;if(m)if("sameAsEmailQty"===m)p=pricingData.qty[_];else{var h,y=O(pricingData.plans[n].valueQty);try{for(y.s();!(h=y.n()).done;){var v=h.value;if(v.activeQty.includes(Number(_))){p=v.value;break}}}catch(e){y.e(e)}finally{y.f()}}p&&(f.innerHTML=p)}var g=e.querySelector(".pePlanCta");g&&(g.innerHTML=pricingData.plans[n].cta,g.href=pricingData.plans[n].href,r?(g.classList.add("btn-primary"),g.classList.remove("btn-outline-primary")):(g.classList.remove("btn-primary"),g.classList.add("btn-outline-primary")));var b=e.querySelector(".pePlanFeatures");b&&(b.innerHTML="",pricingData.plans[n].features.forEach((function(e){var t=document.querySelector(".pePlanFeaturesCatTemplate").content.cloneNode(!0);e.title?t.querySelector(".pePlanFeaturesCatTitle").innerHTML=e.title:t.querySelector(".pePlanFeaturesCatTitle").remove(),0!==e.values.length&&e.values.forEach((function(e){var n=document.querySelector(".pePlanFeaturesTemplate").content.cloneNode(!0),r=document.getElementById("peComparisonTooltip").content.cloneNode(!0);if(e.hasOwnProperty("disabledQty")&&e.disabledQty&&e.disabledQty.includes(Number(_))){n.firstElementChild.classList.add("text-muted");var o=n.querySelector(".pePlanFeaturesIconCheck");o&&o.remove()}else{n.firstElementChild.classList.remove("text-muted");var i=n.querySelector(".pePlanFeaturesIconCross");i&&i.remove()}e.hasOwnProperty("tooltip")&&e.tooltip?(r.querySelector(".peCtTooltip").innerHTML=e.title,r.querySelector(".peCtTooltip").setAttribute("aria-label",e.tooltip),n.querySelector(".pePlanFeatureItemText").appendChild(r)):n.querySelector(".pePlanFeatureItemText").innerHTML=e.title,t.querySelector(".pePlanFeaturesCat").appendChild(n)})),b.appendChild(t)})))}));var t,n=document.getElementById("qtyEmails");if(n&&(n.innerHTML=pricingData.qty[_]),F){var r=document.querySelector("[data-table-active-column]");r&&r.setAttribute("data-table-active-column",F+1)}Q(),t=document.querySelectorAll(".pePlanCta"),document.querySelectorAll(".pePlan").forEach((function(e,n){var r=e.id,o=t[n];if(o&&o.href){var i=new URL(o.href);if(i.searchParams.has("credits")){var a=null,c=pricingData.plans[r].valueQty;if(c)if("sameAsEmailQty"===c)a=pricingData.qty[_];else{var l,s=O(pricingData.plans[r].valueQty);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.activeQty.includes(Number(_))){a=u.value;break}}}catch(e){s.e(e)}finally{s.f()}}if(a){var d=a.toString().replace(/ /g,"").replace(/[,\.\s\u00A0]/g,"");i.searchParams.set("credits",d),o.href=i.toString()}}}}))}document.addEventListener("DOMContentLoaded",(function(){var e=new T("#segmentedRange",{segments:H,initialSegment:_,onChange:function(e,t,n){_=A.value,e===H?(document.querySelector(".rangeTrackAccentLine").style.width="100%",document.querySelector(".rangeTrackAccent").classList.add("full")):(document.querySelector(".rangeTrackAccentLine").style.width=t+"%",document.querySelector(".rangeTrackAccent").classList.remove("full")),A&&"select"!==n&&(A.value=e);var r=document.querySelectorAll(".pePlan");r&&U(r),M&&N&&(6===e?(M.classList.add("d-none"),N.classList.remove("d-none"),iFrameResize({log:!1},"#iFrameResizer")):(M.classList.remove("d-none"),N.classList.add("d-none")))}});q&&q.addEventListener("change",(function(e){k=e.target.value,Q(),document.querySelectorAll(".pePlanCta").forEach((function(e){if(e.href){var t=new URL(e.href);t.searchParams.has("isAnnual")&&(t.searchParams.set("isAnnual","annually"===k?"1":"0"),e.href=t.toString())}}))})),I&&I.addEventListener("change",(function(e){G(!0)})),A&&A.addEventListener("change",(function(t){e.setSegment(parseInt(A.value),"select")})),j&&j.classList.add("initialized")})),window.addEventListener("DOMContentLoaded",(function(){G(),R()})),window.addEventListener("scroll",(function(){R()})),window.addEventListener("resize",(function(){R()})),document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("peComparison"),t=document.getElementById("peComparisonToggler");e.addEventListener("hidden.bs.collapse",(function(){t.scrollIntoView({behavior:"smooth",block:"center"})})),document.getElementById("enterpriseForm")&&iFrameResize({log:!1},"#iFrameResizer")}))})();