apxor-rtm-ui 0.1.0-qa.0 → 0.1.0-qa.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apxor.rtm.js.bak +27 -27
- package/dist/apxor.rtm.min.js +1 -1
- package/package.json +1 -1
package/dist/apxor.rtm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self)["apxor-rtm"]=e()}(this,function(){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(t){return _typeof(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof(t)})(t)}function _classCallCheck$1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass$1(t,e,n){return e&&_defineProperties$1(t.prototype,e),n&&_defineProperties$1(t,n),t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function _objectSpread2(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){_defineProperty$1(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}function _inherits$1(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf$1(t,e)}function _getPrototypeOf$1(t){return(_getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf$1(t,e){return(_setPrototypeOf$1=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _assertThisInitialized$1(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn$1(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized$1(t):e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function isElement(t){return t instanceof HTMLElement}function isFunction(t){return"function"==typeof t}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}function _extends$1(){return(_extends$1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua),isUCBrowser=/UCBrowser\//.test(ua),isIOS=isBrowser&&/iPhone|iPad|iPod/.test(navigator.platform),defaultProps={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},POPPER_INSTANCE_DEPENDENCIES=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],PASSIVE={passive:!0},PREVENT_OVERFLOW_PADDING=5,ROUND_ARROW_INNER_HTML='<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>',IOS_CLASS="tippy-iOS",POPPER_CLASS="tippy-popper",TOOLTIP_CLASS="tippy-tooltip",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",POPPER_SELECTOR="."+POPPER_CLASS,TOOLTIP_SELECTOR="."+TOOLTIP_CLASS,CONTENT_SELECTOR="."+CONTENT_CLASS,BACKDROP_SELECTOR="."+BACKDROP_CLASS,ARROW_SELECTOR="."+ARROW_CLASS,SVG_ARROW_SELECTOR="."+SVG_ARROW_CLASS,currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,isIOS&&document.body.classList.add(IOS_CLASS),window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var t=performance.now();t-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove),isIOS||document.body.classList.remove(IOS_CLASS)),lastMouseMoveTime=t}function onWindowBlur(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,_extends$1({},PASSIVE,{capture:!0})),window.addEventListener("blur",onWindowBlur)}var keys=Object.keys(defaultProps);function getDataAttributeProps(t){return keys.reduce(function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}function isReferenceElement(t){return!(!t||!t._tippy||t.classList.contains(POPPER_CLASS))}function hasOwnProperty(t,e){return{}.hasOwnProperty.call(t,e)}function getArrayOfElements(t){if(isRealElement(t))return[t];if(t instanceof NodeList)return arrayFrom(t);if(Array.isArray(t))return t;try{return arrayFrom(document.querySelectorAll(t))}catch(t){return[]}}function getValue(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function getModifier(t,e){return t&&t.modifiers&&t.modifiers[e]}function isRealElement(t){return t instanceof Element}function innerHTML(){return"innerHTML"}function invokeWithArgsOrReturn(t,e){return"function"==typeof t?t.apply(null,e):t}function setFlipModifierEnabled(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function div(){return document.createElement("div")}function setTransitionDuration(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function setVisibilityState(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function evaluateProps(t,e){var n=_extends$1({},e,{content:invokeWithArgsOrReturn(e.content,[t])},e.ignoreAttributes?{}:getDataAttributeProps(t));return n.animateFill&&(n.arrow=!1),(n.arrow||isUCBrowser)&&(n.animateFill=!1),n}function debounce(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)};var n}function preserveInvocation(t,e,n){t&&t!==e&&t.apply(null,n)}function arrayFrom(t){return[].slice.call(t)}function closestCallback(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}function includes(t,e){return t.indexOf(e)>-1}function setInnerHTML(t,e){t[innerHTML()]=isRealElement(e)?e[innerHTML()]:e}function setContent(t,e){if(isRealElement(e.content))setInnerHTML(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function getChildren(t){return{tooltip:t.querySelector(TOOLTIP_SELECTOR),backdrop:t.querySelector(BACKDROP_SELECTOR),content:t.querySelector(CONTENT_SELECTOR),arrow:t.querySelector(ARROW_SELECTOR)||t.querySelector(SVG_ARROW_SELECTOR)}}function addInertia(t){t.setAttribute("data-inertia","")}function removeInertia(t){t.removeAttribute("data-inertia")}function createArrowElement(t){var e=div();return!0===t?e.className=ARROW_CLASS:(e.className=SVG_ARROW_CLASS,isRealElement(t)?e.appendChild(t):setInnerHTML(e,"round"===t?ROUND_ARROW_INNER_HTML:t)),e}function createBackdropElement(t){var e=div();return e.className=BACKDROP_CLASS,e.setAttribute("data-state",t?"visible":"hidden"),e}function addInteractive(t){t.setAttribute("data-interactive","")}function removeInteractive(t){t.removeAttribute("data-interactive")}function updateTransitionEndListener(t,e,n){var i=isUCBrowser&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function getBasePlacement(t){return t.split("-")[0]}function reflow(t){t.offsetHeight}function updateTheme(t,e,n){n.split(" ").forEach(function(n){n&&t.classList[e](n+"-theme")})}function createPopperElement(t,e){var n=div();n.className=POPPER_CLASS,n.style.position="absolute",n.style.top="0",n.style.left="0";var i=div();i.className=TOOLTIP_CLASS,i.id="tippy-"+t,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),updateTheme(i,"add",e.theme);var o=div();return o.className=CONTENT_CLASS,o.setAttribute("data-state","hidden"),e.interactive&&addInteractive(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(createArrowElement(e.arrow))),e.animateFill&&(i.appendChild(createBackdropElement(!1)),i.setAttribute("data-animatefill","")),e.inertia&&addInertia(i),setContent(o,e),i.appendChild(o),n.appendChild(i),updatePopperElement(n,e,e,!1),n}function updatePopperElement(t,e,n,i){var o=getChildren(t),r=o.tooltip,a=o.content,s=o.backdrop,c=o.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),e.content!==n.content&&setContent(a,n),!e.animateFill&&n.animateFill?(r.appendChild(createBackdropElement(i)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(createArrowElement(n.arrow)),r.setAttribute("data-arrow","")):e.arrow&&!n.arrow?(r.removeChild(c),r.removeAttribute("data-arrow")):e.arrow!==n.arrow&&(r.removeChild(c),r.appendChild(createArrowElement(n.arrow))),!e.interactive&&n.interactive?addInteractive(r):e.interactive&&!n.interactive&&removeInteractive(r),!e.inertia&&n.inertia?addInertia(r):e.inertia&&!n.inertia&&removeInertia(r),e.theme!==n.theme&&(updateTheme(r,"remove",e.theme),updateTheme(r,"add",n.theme))}function isCursorOutsideInteractiveBorder(t,e,n,i){if(!t)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,c=e.top-r>("top"===t?a+s:a),l=r-e.bottom>("bottom"===t?a+s:a),d=e.left-o>("left"===t?a+s:a),p=o-e.right>("right"===t?a+s:a);return c||l||d||p}for(var isBrowser$1="undefined"!=typeof window&&"undefined"!=typeof document,longerTimeoutBrowsers=["Edge","Trident","Firefox"],timeoutDuration=0,i=0;i<longerTimeoutBrowsers.length;i+=1)if(isBrowser$1&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){timeoutDuration=1;break}function microtaskDebounce(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function taskDebounce(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$1(t){return t&&"[object Function]"==={}.toString.call(t)}function getStyleComputedProperty(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function getParentNode(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function getScrollParent(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=getStyleComputedProperty(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:getScrollParent(getParentNode(t))}var isIE11=isBrowser$1&&!(!window.MSInputMethodContext||!document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE$1(t){return 11===t?isIE11:10===t?isIE10:isIE11||isIE10}function getOffsetParent(t){if(!t)return document.documentElement;for(var e=isIE$1(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===getStyleComputedProperty(n,"position")?getOffsetParent(n):n:t?t.ownerDocument.documentElement:document.documentElement}function isOffsetContainer(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||getOffsetParent(t.firstElementChild)===t)}function getRoot(t){return null!==t.parentNode?getRoot(t.parentNode):t}function findCommonOffsetParent(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a=r.commonAncestorContainer;if(t!==a&&e!==a||i.contains(o))return isOffsetContainer(a)?a:getOffsetParent(a);var s=getRoot(t);return s.host?findCommonOffsetParent(s.host,e):findCommonOffsetParent(t,getRoot(e).host)}function getScroll(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function includeScroll(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=getScroll(e,"top"),o=getScroll(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function getBordersSize(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function getSize(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],isIE$1(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function getWindowSizes(t){var e=t.body,n=t.documentElement,i=isIE$1(10)&&getComputedStyle(n);return{height:getSize("Height",e,n,i),width:getSize("Width",e,n,i)}}var classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),defineProperty=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},_extends$2=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function getClientRect(t){return _extends$2({},t,{right:t.left+t.width,bottom:t.top+t.height})}function getBoundingClientRect(t){var e={};try{if(isIE$1(10)){e=t.getBoundingClientRect();var n=getScroll(t,"top"),i=getScroll(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?getWindowSizes(t.ownerDocument):{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-a,l=t.offsetHeight-s;if(c||l){var d=getStyleComputedProperty(t);c-=getBordersSize(d,"x"),l-=getBordersSize(d,"y"),o.width-=c,o.height-=l}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=isIE$1(10),o="HTML"===e.nodeName,r=getBoundingClientRect(t),a=getBoundingClientRect(e),s=getScrollParent(t),c=getStyleComputedProperty(e),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=getClientRect({top:r.top-a.top-l,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var h=parseFloat(c.marginTop,10),u=parseFloat(c.marginLeft,10);p.top-=l-h,p.bottom-=l-h,p.left-=d-u,p.right-=d-u,p.marginTop=h,p.marginLeft=u}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=includeScroll(p,e)),p}function getViewportOffsetRectRelativeToArtbitraryNode(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=getOffsetRectRelativeToArbitraryNode(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:getScroll(n),s=e?0:getScroll(n,"left");return getClientRect({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r})}function isFixed(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===getStyleComputedProperty(t,"position"))return!0;var n=getParentNode(t);return!!n&&isFixed(n)}function getFixedPositionOffsetParent(t){if(!t||!t.parentElement||isIE$1())return document.documentElement;for(var e=t.parentElement;e&&"none"===getStyleComputedProperty(e,"transform");)e=e.parentElement;return e||document.documentElement}function getBoundaries(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?getFixedPositionOffsetParent(t):findCommonOffsetParent(t,e);if("viewport"===i)r=getViewportOffsetRectRelativeToArtbitraryNode(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=getScrollParent(getParentNode(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var c=getOffsetRectRelativeToArbitraryNode(s,a,o);if("HTML"!==s.nodeName||isFixed(a))r=c;else{var l=getWindowSizes(t.ownerDocument),d=l.height,p=l.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=p+c.left}}var h="number"==typeof(n=n||0);return r.left+=h?n:n.left||0,r.top+=h?n:n.top||0,r.right-=h?n:n.right||0,r.bottom-=h?n:n.bottom||0,r}function getArea(t){return t.width*t.height}function computeAutoPlacement(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=getBoundaries(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(s).map(function(t){return _extends$2({key:t},s[t],{area:getArea(s[t])})}).sort(function(t,e){return e.area-t.area}),l=c.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),d=l.length>0?l[0].key:c[0].key,p=t.split("-")[1];return d+(p?"-"+p:"")}function getReferenceOffsets(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return getOffsetRectRelativeToArbitraryNode(n,i?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,n),i)}function getOuterSizes(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function getOppositePlacement(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function getPopperOffsets(t,e,n){n=n.split("-")[0];var i=getOuterSizes(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return o[a]=e[a]+e[c]/2-i[c]/2,o[s]=n===s?e[s]-i[l]:e[getOppositePlacement(s)],o}function find(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function findIndex(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=find(t,function(t){return t[e]===n});return t.indexOf(i)}function runModifiers(t,e,n){return(void 0===n?t:t.slice(0,findIndex(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&isFunction$1(n)&&(e.offsets.popper=getClientRect(e.offsets.popper),e.offsets.reference=getClientRect(e.offsets.reference),e=n(e,t))}),e}function update(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=computeAutoPlacement(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=getPopperOffsets(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=runModifiers(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function isModifierEnabled(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function getSupportedPropertyName(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(t){var e=t.ownerDocument;return e?e.defaultView:window}function attachToScrollParents(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||attachToScrollParents(getScrollParent(r.parentNode),e,n,i),i.push(r)}function setupEventListeners(t,e,n,i){n.updateBound=i,getWindow(t).addEventListener("resize",n.updateBound,{passive:!0});var o=getScrollParent(t);return attachToScrollParents(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(t,e){return getWindow(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function setStyles(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&isNumeric(e[n])&&(i="px"),t.style[n]=e[n]+i})}function setAttributes(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function applyStyle(t){return setStyles(t.instance.popper,t.styles),setAttributes(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&setStyles(t.arrowElement,t.arrowStyles),t}function applyStyleOnLoad(t,e,n,i,o){var r=getReferenceOffsets(o,e,t,n.positionFixed),a=computeAutoPlacement(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),setStyles(e,{position:n.positionFixed?"fixed":"absolute"}),n}function getRoundedOffsets(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},c=r(o.width),l=r(i.width),d=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),h=e?d||p||c%2==l%2?r:a:s,u=e?r:s;return{left:h(c%2==1&&l%2==1&&!p&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:h(i.right)}}var isFirefox=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=find(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=getOffsetParent(t.instance.popper),c=getBoundingClientRect(s),l={position:o.position},d=getRoundedOffsets(t,window.devicePixelRatio<2||!isFirefox),p="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=getSupportedPropertyName("transform"),f=void 0,m=void 0;if(m="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-c.height+d.bottom:d.top,f="right"===h?"HTML"===s.nodeName?-s.clientWidth+d.right:-c.width+d.right:d.left,a&&u)l[u]="translate3d("+f+"px, "+m+"px, 0)",l[p]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===p?-1:1,v="right"===h?-1:1;l[p]=m*g,l[h]=f*v,l.willChange=p+", "+h}var b={"x-placement":t.placement};return t.attributes=_extends$2({},b,t.attributes),t.styles=_extends$2({},l,t.styles),t.arrowStyles=_extends$2({},t.offsets.arrow,t.arrowStyles),t}function isModifierRequired(t,e,n){var i=find(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function arrow(t,e){var n;if(!isModifierRequired(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),h=c?"left":"top",u=c?"bottom":"right",f=getOuterSizes(i)[l];s[u]-f<a[p]&&(t.offsets.popper[p]-=a[p]-(s[u]-f)),s[p]+f>a[u]&&(t.offsets.popper[p]+=s[p]+f-a[u]),t.offsets.popper=getClientRect(t.offsets.popper);var m=s[p]+s[l]/2-f/2,g=getStyleComputedProperty(t.instance.popper),v=parseFloat(g["margin"+d],10),b=parseFloat(g["border"+d+"Width"],10),y=m-t.offsets.popper[p]-v-b;return y=Math.max(Math.min(a[l]-f,y),0),t.arrowElement=i,t.offsets.arrow=(defineProperty(n={},p,Math.round(y)),defineProperty(n,h,""),n),t}function getOppositeVariation(t){return"end"===t?"start":"start"===t?"end":t}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=validPlacements.indexOf(t),i=validPlacements.slice(n+1).concat(validPlacements.slice(0,n));return e?i.reverse():i}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(t,e){if(isModifierEnabled(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=getBoundaries(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=getOppositePlacement(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case BEHAVIORS.FLIP:a=[i,o];break;case BEHAVIORS.CLOCKWISE:a=clockwise(i);break;case BEHAVIORS.COUNTERCLOCKWISE:a=clockwise(i,!0);break;default:a=e.behavior}return a.forEach(function(s,c){if(i!==s||a.length===c+1)return t;i=t.placement.split("-")[0],o=getOppositePlacement(i);var l=t.offsets.popper,d=t.offsets.reference,p=Math.floor,h="left"===i&&p(l.right)>p(d.left)||"right"===i&&p(l.left)<p(d.right)||"top"===i&&p(l.bottom)>p(d.top)||"bottom"===i&&p(l.top)<p(d.bottom),u=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),g=p(l.bottom)>p(n.bottom),v="left"===i&&u||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===r&&u||b&&"end"===r&&f||!b&&"start"===r&&m||!b&&"end"===r&&g),_=!!e.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&u||!b&&"start"===r&&g||!b&&"end"===r&&m),w=y||_;(h||v||w)&&(t.flipped=!0,(h||v)&&(i=a[c+1]),w&&(r=getOppositeVariation(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=_extends$2({},t.offsets.popper,getPopperOffsets(t.instance.popper,t.offsets.reference,t.placement)),t=runModifiers(t.instance.modifiers,t,"flip"))}),t}function keepTogether(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(i[c])&&(t.offsets.popper[c]=r(i[c])-n[l]),n[c]>r(i[s])&&(t.offsets.popper[c]=r(i[s])),t}function toValue(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return getClientRect(s)[e]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}function parseOffset(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(find(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map(function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return toValue(t,o,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){isNumeric(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))})}),o}function offset(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],c=void 0;return c=isNumeric(+n)?[+n,0]:parseOffset(n,r,a,s),"left"===s?(r.top+=c[0],r.left-=c[1]):"right"===s?(r.top+=c[0],r.left+=c[1]):"top"===s?(r.left+=c[0],r.top-=c[1]):"bottom"===s&&(r.left+=c[0],r.top+=c[1]),t.popper=r,t}function preventOverflow(t,e){var n=e.boundariesElement||getOffsetParent(t.instance.popper);t.instance.reference===n&&(n=getOffsetParent(n));var i=getSupportedPropertyName("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var c=getBoundaries(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=c;var l=e.priority,d=t.offsets.popper,p={primary:function(t){var n=d[t];return d[t]<c[t]&&!e.escapeWithReference&&(n=Math.max(d[t],c[t])),defineProperty({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>c[t]&&!e.escapeWithReference&&(i=Math.min(d[n],c[t]-("right"===t?d.width:d.height))),defineProperty({},n,i)}};return l.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=_extends$2({},d,p[e](t))}),t.offsets.popper=d,t}function shift(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:defineProperty({},c,r[c]),end:defineProperty({},c,r[c]+r[l]-a[l])};t.offsets.popper=_extends$2({},a,d[i])}return t}function hide(t){if(!isModifierRequired(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=find(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function inner(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=getOppositePlacement(e),t.offsets.popper=getClientRect(o),t}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:modifiers},Popper=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=debounce$1(this.update.bind(this)),this.options=_extends$2({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_extends$2({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=_extends$2({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return _extends$2({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&isFunction$1(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return createClass(t,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),t}();Popper.Utils=("undefined"!=typeof window?window:global).PopperUtils,Popper.placements=placements,Popper.Defaults=Defaults;var version="5.0.0-alpha.2",idCounter=1,mouseMoveListeners=[];function createTippy(t,e){var n,i,o,r,a=evaluateProps(t,e);if(!a.multiple&&t._tippy)return null;var s,c,l,d=!1,p=!1,h=!1,u=[],f=debounce(R,a.interactiveDebounce),m=idCounter++,g=createPopperElement(m,a),v=getChildren(g),b=v.tooltip,y=v.content,_={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:t,popper:g,popperChildren:v,popperInstance:null,props:a,state:_,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(w.state.isDestroyed)return;N();var n=w.props,i=evaluateProps(t,_extends$1({},w.props,e,{ignoreAttributes:!0}));i.ignoreAttributes=hasOwnProperty(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,w.props=i,L(),T(),f=debounce(R,i.interactiveDebounce),updatePopperElement(g,n,i,w.state.isVisible),w.popperChildren=getChildren(g),w.popperInstance&&(POPPER_INSTANCE_DEPENDENCIES.some(function(t){return hasOwnProperty(e,t)&&e[t]!==n[t]})?(w.popperInstance.destroy(),V(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(t){w.setProps({content:t})},show:function(e,n){void 0===e&&(e=getValue(w.props.duration,0,defaultProps.duration[1]));void 0===n&&(n=!0);var i=w.state.isVisible,o=w.state.isDestroyed,r=!w.state.isEnabled,a=currentInput.isTouch&&!w.props.touch;if(i||o||r||a)return;if(O().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;k(),g.style.visibility="visible",w.state.isVisible=!0;var s=E();setTransitionDuration(n?s.concat(g):s,0),c=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(e/12)+"ms":"",w.props.sticky&&function(){setTransitionDuration([g],isIE?0:w.props.updateDuration),function t(){w.popperInstance.scheduleUpdate();w.state.isMounted?requestAnimationFrame(t):setTransitionDuration([g],0)}()}(),setTransitionDuration([g],w.props.updateDuration),setTransitionDuration(s,e),setVisibilityState(s,"visible"),function(t,e){A(t,e)}(e,function(){w.props.aria&&O().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0}))},function(){p=!1;var e=w.props.appendTo,n="parent"===e?t.parentNode:invokeWithArgsOrReturn(e,[t]);n.contains(g)||n.appendChild(g);w.popperInstance?(setFlipModifierEnabled(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(V(),w.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=getValue(w.props.duration,1,defaultProps.duration[1]));var e=!w.state.isVisible&&!d,n=w.state.isDestroyed,i=!w.state.isEnabled&&!d;if(e||n||i)return;if(!1===w.props.onHide(w)&&!d)return;P(),g.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=E();setTransitionDuration(o,t),setVisibilityState(o,"hidden"),function(t,e){A(t,function(){!w.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&e()})}(t,function(){w.props.aria&&O().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,g.parentNode.removeChild(g),w.props.onHidden(w),w.state.isMounted=!1})},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),N(),delete t._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return t._tippy=w,g._tippy=w,L(),a.lazy||V(),a.showOnCreate&&z(),g.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()}),g.addEventListener("mouseleave",function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)}),a.onCreate(w),w;function x(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===x()[0]}function E(){return[b,y,w.popperChildren.backdrop]}function O(){return w.props.triggerTarget||t}function T(){document.body.removeEventListener("mouseleave",$),document.removeEventListener("mousemove",f),mouseMoveListeners=mouseMoveListeners.filter(function(t){return t!==f})}function S(t){if(!w.props.interactive||!g.contains(t.target)){if(O().contains(t.target)){if(currentInput.isTouch)return;if(w.state.isVisible&&includes(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),h=!0,setTimeout(function(){h=!1}),w.state.isMounted||P())}}function k(){document.addEventListener("mousedown",S,!0)}function P(){document.removeEventListener("mousedown",S,!0)}function A(t,e){function n(t){t.target===b&&(updateTransitionEndListener(b,"remove",n),e())}if(0===t)return e();updateTransitionEndListener(b,"remove",l),updateTransitionEndListener(b,"add",n),l=n}function I(t,e,n){void 0===n&&(n=!1),O().addEventListener(t,e,n),u.push({eventType:t,handler:e,options:n})}function L(){C()&&(I("touchstart",B,PASSIVE),I("touchend",F,PASSIVE)),includes(w.props.trigger,"click")||I("click",function(){currentInput.isTouch||!0!==w.props.hideOnClick||w.hide()}),w.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(I(t,B),t){case"mouseenter":I("mouseleave",F);break;case"focus":I(isIE?"focusout":"blur",M)}})}function N(){u.forEach(function(t){var e=t.eventType,n=t.handler,i=t.options;O().removeEventListener(e,n,i)}),u=[]}function B(t){if(!h&&w.state.isEnabled&&!D(t))if(w.state.isVisible||(n=t.type,t instanceof MouseEvent&&mouseMoveListeners.forEach(function(e){return e(t)})),"click"===t.type&&!1!==w.props.hideOnClick&&w.state.isVisible)$(t);else{var e=x(),o=e[0],r=e[1];currentInput.isTouch&&"hold"===o&&r?i=setTimeout(function(){z(t)},r):z(t)}}function R(e){closestCallback(e.target,function(e){return e===t||e===g})||isCursorOutsideInteractiveBorder(getBasePlacement(w.state.currentPlacement),g.getBoundingClientRect(),e,w.props)&&(T(),$(e))}function F(t){if(!D(t))return w.props.interactive?(document.body.addEventListener("mouseleave",$),document.addEventListener("mousemove",f),void mouseMoveListeners.push(f)):void $(t)}function M(t){t.target===O()&&(w.props.interactive&&t.relatedTarget&&g.contains(t.relatedTarget)||$(t))}function D(t){var e="ontouchstart"in window,n=includes(t.type,"touch"),i=C();return e&¤tInput.isTouch&&i&&!n||currentInput.isTouch&&!i&&n}function V(){var e=w.props,n=e.popperOptions,i=e.placement,o=w.popperChildren.arrow,r=getModifier(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function c(t){w.state.currentPlacement=t.placement,w.props.flip&&!w.props.flipOnUpdate&&(t.flipped&&(w.popperInstance.options.placement=t.placement),setFlipModifierEnabled(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",w.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var e=getBasePlacement(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[includes(["top","bottom"],getBasePlacement(w.state.currentPlacement))?"top":"left"]=(includes(["bottom","right"],getBasePlacement(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:PREVENT_OVERFLOW_PADDING,o="number"==typeof i,a=_extends$1({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[e]=o?i+w.props.distance:(i[e]||0)+w.props.distance,w.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=a}var l=_extends$1({eventsEnabled:!1,placement:s=w.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:_extends$1({},n?n.modifiers:{},{preventOverflow:_extends$1({boundariesElement:w.props.boundary,padding:PREVENT_OVERFLOW_PADDING},r),arrow:_extends$1({element:o,enabled:!!o},getModifier(n,"arrow")),flip:_extends$1({enabled:w.props.flip,padding:w.props.distance+PREVENT_OVERFLOW_PADDING,behavior:w.props.flipBehavior},getModifier(n,"flip")),offset:_extends$1({offset:w.props.offset},getModifier(n,"offset"))}),onCreate:function(t){c(t),preserveInvocation(n&&n.onCreate,l.onCreate,[t]),H()},onUpdate:function(t){c(t),preserveInvocation(n&&n.onUpdate,l.onUpdate,[t]),H()}});w.popperInstance=new Popper(t,g,l)}function H(){!p&&c&&(p=!0,reflow(g),c())}function z(t){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||V(),t&&w.props.onTrigger(w,t),w.props.wait)return w.props.wait(w,t);k();var e=getValue(w.props.delay,0,defaultProps.delay);e?i=setTimeout(function(){w.show()},e):w.show()}function $(t){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,t),w.state.isVisible){w.state.isScheduledToShow=!1;var e=getValue(w.props.delay,1,defaultProps.delay);e?o=setTimeout(function(){w.state.isVisible&&w.hide()},e):r=requestAnimationFrame(function(){w.hide()})}else P()}}function tippy(t,e){bindGlobalEventListeners();var n=_extends$1({},defaultProps,e),i=getArrayOfElements(t).reduce(function(t,e){var i=e&&createTippy(e,n);return i&&t.push(i),t},[]);return isRealElement(t)?i[0]:i}function autoInit(){arrayFrom(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&tippy(t,{content:e})})}tippy.version=version,tippy.defaultProps=defaultProps,tippy.currentInput=currentInput,tippy.setDefaultProps=function(t){Object.keys(t).forEach(function(e){defaultProps[e]=t[e]})},tippy.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function(t){var e=t._tippy;if(e){var o=!1;n&&(o=isReferenceElement(n)?e.reference===n:t===n.popper),o||e.hide(i)}})},isBrowser&&setTimeout(autoInit);var css=".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}";function injectCSS(t){if(isBrowser){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,i=n.querySelector("style,link");i?n.insertBefore(e,i):n.appendChild(e)}}injectCSS(css);var missingTippy="Using the attachment feature of Shepherd requires the Tippy.js library",addShepherdClass=_createClassModifier("shepherd"),addHasTitleClass=_createClassModifier("shepherd-has-title"),centeredStylePopperModifier={computeStyle:{enabled:!0,fn:function(t){return t.styles=_extends({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:addShepherdClass},defaultPopperOptions={positionFixed:!0,modifiers:{addShepherdClass:addShepherdClass}};function createFromHTML(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function debounce$2(t,e,n){var i;return function(){var o=this,r=arguments,a=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(o,r)},e),a&&t.apply(o,r)}}function drop(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function setupTooltip(){if(isUndefined(tippy))throw new Error(missingTippy);this.tooltip&&this.tooltip.destroy();var t=this.parseAttachTo();this.tooltip=_makeTippyInstance.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function parseAttachTo(){var t=this.options.attachTo||{},e=_extends({},t);if(isString(t.element)){try{e.element=document.querySelector(t.element)}catch(t){}e.element||console.error("The element for this Shepherd step was not found ".concat(t.element))}return e}function _createClassModifier(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function _makeTippyInstance(t){if(!t.element)return _makeCenteredTippy.call(this);var e=_makeAttachedTippyOptions.call(this,t);return tippy(t.element,e)}function _makeAttachedTippyOptions(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return _extends(e,this.options.tippyOptions),this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&_extends(defaultPopperOptions,this.options.tippyOptions.popperOptions),e.popperOptions=defaultPopperOptions,e}function _makeCenteredTippy(){var t=_objectSpread2({content:this.el,placement:"top"},this.options.tippyOptions);t.arrow=!1,t.popperOptions=t.popperOptions||{},this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass});var e=_extends({},defaultPopperOptions,t.popperOptions,{modifiers:_extends(centeredStylePopperModifier,t.popperOptions.modifiers)});return t.popperOptions=e,tippy(document.body,t)}var Evented=function(){function t(){_classCallCheck$1(this,t)}return _createClass$1(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];isUndefined(this.bindings)&&(this.bindings={}),isUndefined(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=this;if(isUndefined(this.bindings)||isUndefined(this.bindings[t]))return!1;isUndefined(e)?delete this.bindings[t]:this.bindings[t].forEach(function(i,o){i.handler===e&&n.bindings[t].splice(o,1)})}},{key:"trigger",value:function(t){var e=this;if(!isUndefined(this.bindings)&&this.bindings[t]){var n=drop(Array.prototype.slice.call(arguments));this.bindings[t].forEach(function(i,o){var r=i.ctx,a=i.handler,s=i.once,c=r||e;a.apply(c,n),s&&e.bindings[t].splice(o,1)})}}}]),t}();function _setupAdvanceOnHandler(t){var e=this;return function(n){if(e.isOpen()){var i=e.el&&n.target===e.el;(!isUndefined(t)&&n.target.matches(t)||i)&&e.tour.next()}}}function bindAdvance(){var t=this.options.advanceOn||{},e=t.event,n=t.selector;if(!e)return console.error("advanceOn was defined, but no event name was passed.");var i,o=_setupAdvanceOnHandler.call(this,n);try{i=document.querySelector(n)}catch(t){}if(!isUndefined(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));i?(i.addEventListener(e,o),this.on("destroy",function(){return i.removeEventListener(e,o)})):(document.body.addEventListener(e,o,!0),this.on("destroy",function(){return document.body.removeEventListener(e,o,!0)}))}function bindButtonEvents(t,e){var n=this;t.events=t.events||{},isUndefined(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach(function(t){var i=_slicedToArray(t,2),o=i[0],r=i[1];if(isString(r)){var a=r;r=function(){return n.tour.show(a)}}e.dataset.buttonEvent=!0,e.addEventListener(o,r),n.on("destroy",function(){e.removeAttribute("data-button-event"),e.removeEventListener(o,r)})})}function bindCancelLink(t){var e=this;t.addEventListener("click",function(t){t.preventDefault(),e.cancel()})}function bindMethods(t){var e=this;t.map(function(t){e[t]=e[t].bind(e)})}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var smoothscroll=createCommonjsModule(function(t,e){!function(){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,i=t.HTMLElement||t.Element,o=468,r={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||c,scrollIntoView:i.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):r.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;f.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){for(;t!==e.body&&!1===h(t);)t=t.parentNode||t.host;return t}(this),i=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(f.call(this,n,n.scrollLeft+o.left-i.left,n.scrollTop+o.top-i.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function p(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function h(t){var e=d(t,"Y")&&p(t,"Y"),n=d(t,"X")&&p(t,"X");return e||n}function u(e){var n,i,r,s,c=(a()-e.startTime)/o;s=c=c>1?1:c,n=.5*(1-Math.cos(Math.PI*s)),i=e.startX+(e.x-e.startX)*n,r=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,i,r),i===e.x&&r===e.y||t.requestAnimationFrame(u.bind(t,e))}function f(n,i,o){var s,l,d,p,h=a();n===e.body?(s=t,l=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=r.scroll):(s=n,l=n.scrollLeft,d=n.scrollTop,p=c),u({scrollable:s,method:p,startTime:h,startX:l,startY:d,x:i,y:o})}}}}()}),smoothscroll_1=smoothscroll.polyfill;smoothscroll.polyfill();var uniqueId=(id=0,function(){return++id}),id,Step=function(t){function e(t,n){var i;return _classCallCheck$1(this,e),(i=_possibleConstructorReturn$1(this,_getPrototypeOf$1(e).call(this,t,n))).tour=t,bindMethods.call(_assertThisInitialized$1(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=bindAdvance.bind(_assertThisInitialized$1(i)),i.bindButtonEvents=bindButtonEvents.bind(_assertThisInitialized$1(i)),i.bindCancelLink=bindCancelLink.bind(_assertThisInitialized$1(i)),i.setupTooltip=setupTooltip.bind(_assertThisInitialized$1(i)),i.parseAttachTo=parseAttachTo.bind(_assertThisInitialized$1(i)),_possibleConstructorReturn$1(i,_assertThisInitialized$1(i))}return _inherits$1(e,Evented),_createClass$1(e,[{key:"_addButtons",value:function(t){var e=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map(function(t){var i=createFromHTML('<button class="shepherd-button '.concat(t.classes||"",'" tabindex="0">').concat(t.text,"</button>"));n.appendChild(i),e.bindButtonEvents(t,i)}),t.appendChild(n)}}},{key:"_addCancelLink",value:function(t,e){if(this.options.showCancelLink){var n=createFromHTML('<a href class="shepherd-cancel-link"></a>');e.appendChild(n),t.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(t,e){var n=createFromHTML('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),i=this.options.text;isFunction(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(isString(i)&&(i=[i]),i.map(function(t){n.innerHTML+="<p>".concat(t,"</p>")})),t.appendChild(n)}},{key:"_addKeyDownHandler",value:function(t){var e=this,n=t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=_slicedToArray(n,1)[0],o=n[n.length-1];t.addEventListener("keydown",function(t){switch(t.keyCode){case 9:if(1===n.length){t.preventDefault();break}t.shiftKey?document.activeElement===i&&(t.preventDefault(),o.focus()):document.activeElement===o&&(t.preventDefault(),i.focus());break;case 27:e.cancel();break;case 37:e.tour.back();break;case 39:e.tour.next()}})}},{key:"_createTooltipContent",value:function(){var t=document.createElement("div"),e=this.options.classes||"",n="".concat(this.id,"-description"),i="".concat(this.id,"-label"),o=createFromHTML('<div class="'.concat(e,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=i,o.setAttribute("aria-labeledby",i),r.appendChild(a)}return t.classList.add("shepherd-content"),r.classList.add("shepherd-header"),o.appendChild(t),t.appendChild(r),isUndefined(this.options.text)||(this._addContent(t,n),o.setAttribute("aria-describedby",n)),this._addButtons(t),this._addCancelLink(o,r),o}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),isElement(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){isUndefined(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(t){var e=this.parseAttachTo().element;isFunction(this.options.scrollToHandler)?this.options.scrollToHandler(e):isElement(e)&&e.scrollIntoView(t)}},{key:"setOptions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(uniqueId()),n&&Object.entries(n).forEach(function(e){var n=_slicedToArray(e,2),i=n[0],o=n[1];t.on(i,o,t)})}},{key:"show",value:function(){var t=this;if(isFunction(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!isUndefined(e))return e.then(function(){return t._show()})}this._show()}},{key:"_show",value:function(){var t=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout(function(){t.scrollTo(t.options.scrollTo)}),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),e}(),svgNS="http://www.w3.org/2000/svg",elementIds={modalOverlay:"shepherdModalOverlayContainer",modalOverlayMask:"shepherdModalMask",modalOverlayMaskRect:"shepherdModalMaskRect",modalOverlayMaskOpening:"shepherdModalMaskOpening"},classNames={isVisible:"shepherd-modal-is-visible",modalTarget:"shepherd-modal-target"};function _createModalContainer(){var t=document.createElementNS(svgNS,"svg");return t.setAttributeNS(null,"id",elementIds.modalOverlay),t}function _createMaskContainer(){var t=document.createElementNS(svgNS,"mask");return _setAttributes(t,{height:"100%",id:elementIds.modalOverlayMask,width:"100%",x:"0",y:"0"}),t}function _createMaskRect(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{fill:"#FFFFFF",height:"100%",id:elementIds.modalOverlayMaskRect,width:"100%",x:"0",y:"0"}),t}function _createMaskOpening(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{fill:"#000000",id:elementIds.modalOverlayMaskOpening}),t}function _createMaskConsumer(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(elementIds.modalOverlayMask,")")),t}function createModalOverlay(){var t=_createModalContainer(),e=document.createElementNS(svgNS,"defs"),n=_createMaskContainer(),i=_createMaskRect(),o=_createMaskOpening(),r=_createMaskConsumer();return n.appendChild(i),n.appendChild(o),e.appendChild(n),t.appendChild(e),t.appendChild(r),t}function positionModalOpening(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.getBoundingClientRect&&e instanceof SVGElement){var i=t.getBoundingClientRect(),o=i.x,r=i.y,a=i.width,s=i.height,c=i.left,l=i.top;_setAttributes(e,{x:(o||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function closeModalOpening(t){t&&t instanceof SVGElement&&_setAttributes(t,{height:"0",x:"0",y:"0",width:"0"})}function getModalMaskOpening(t){return t.querySelector("#".concat(elementIds.modalOverlayMaskOpening))}function preventModalBodyTouch(t){t.preventDefault()}function preventModalOverlayTouch(t){t.stopPropagation()}function toggleShepherdModalClass(t){var e=document.querySelector("".concat(classNames.modalTarget));e&&e.classList.remove(classNames.modalTarget),t.classList.add(classNames.modalTarget)}function _setAttributes(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function getElementFromObject(t){var e=t.element;return e instanceof HTMLElement?e:document.querySelector(e)}function getElementForStep(t){var e=t.options.attachTo;if(!e)return null;var n=_typeof$1(e);return"string"===n?getElementFromString(e):"object"===n?getElementFromObject(e):null}function getElementFromString(t){var e=_slicedToArray(t.split(" "),1)[0];return document.querySelector(e)}function addStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var t=document.querySelector("#".concat(elementIds.modalOverlay));window.addEventListener("touchmove",preventModalBodyTouch,{passive:!1}),t&&t.addEventListener("touchmove",preventModalOverlayTouch,!1)}var Modal=function(){function t(e){return _classCallCheck$1(this,t),this.createModalOverlay(),this.options=e,this}return _createClass$1(t,[{key:"cleanup",value:function(){var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(classNames.isVisible)}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||createModalOverlay(),this._modalOverlayOpening=getModalMaskOpening(this._modalOverlayElem),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(t){this.options.useModalOverlay?(this._styleForStep(t),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e=this._modalOverlayOpening,n=getElementForStep(t),i=t.options.modalOverlayOpeningPadding;n?(positionModalOpening(n,e,i),this._onScreenChange=debounce$2(positionModalOpening.bind(this,n,e,i),0),addStepEventListeners.call(this)):closeModalOpening(this._modalOverlayOpening)}}]),t}(),hasPassiveEvents=!1;if("undefined"!=typeof window){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting,previousBodyPaddingRight,allowTouchMove=function(t){return locks.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})},preventDefault=function(t){var e=t||window.event;return!!allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},setOverflowHidden=function(t){setTimeout(function(){if(void 0===previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===previousBodyOverflowSetting&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")})},restoreOverflowSetting=function(){setTimeout(function(){void 0!==previousBodyPaddingRight&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),void 0!==previousBodyOverflowSetting&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)})},isTargetElementTotallyScrolled=function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight},handleScroll=function(t,e){var n=t.targetTouches[0].clientY-initialClientY;return!allowTouchMove(t.target)&&(e&&0===e.scrollTop&&n>0?preventDefault(t):isTargetElementTotallyScrolled(e)&&n<0?preventDefault(t):(t.stopPropagation(),!0))},disableBodyScroll=function(t,e){if(isIosDevice){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!locks.some(function(e){return e.targetElement===t})){var n={targetElement:t,options:e||{}};locks=[].concat(_toConsumableArray(locks),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&handleScroll(e,t)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)}}else{setOverflowHidden(e);var i={targetElement:t,options:e||{}};locks=[].concat(_toConsumableArray(locks),[i])}},clearAllBodyScrollLocks=function(){isIosDevice?(locks.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),locks=[],initialClientY=-1):(restoreOverflowSetting(),locks=[])},defaults={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function cleanupSteps(t){t&&t.steps.forEach(function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=getElementForStep(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})}function cleanupStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",preventModalBodyTouch,{passive:!1})}var uniqueId$1=function(){var t=0;return function(){return++t}}(),Shepherd=new Evented,Tour=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck$1(this,e),t=_possibleConstructorReturn$1(this,_getPrototypeOf$1(e).call(this,n)),bindMethods.call(_assertThisInitialized$1(t),["back","cancel","complete","hide","next"]),t.options=n,t.steps=t.options.steps||[];return["active","cancel","complete","inactive","show","start"].map(function(e){var n;n=e,t.on(n,function(e){(e=e||{}).tour=_assertThisInitialized$1(t),Shepherd.trigger(n,e)})}),t.modal=new Modal(n),t._setTooltipDefaults(),t._setTourID(),_possibleConstructorReturn$1(t,_assertThisInitialized$1(t))}return _inherits$1(e,Evented),_createClass$1(e,[{key:"addStep",value:function(t,e){var n,i;return isUndefined(e)?i=t:(n=t,i=e),i instanceof Step?i.tour=this:i=this.setupStep(i,n),this.steps.push(i),i}},{key:"back",value:function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(t){Array.isArray(this.steps)&&this.steps.forEach(function(t){return t.destroy()}),cleanupStepEventListeners.call(this),cleanupSteps(this.tourObject),this.trigger(t),Shepherd.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&clearAllBodyScrollLocks(),this.modal.cleanup()}},{key:"getById",value:function(t){return this.steps.find(function(e){return e.id===t})}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var t=this.getCurrentStep();if(t)return t.hide()}},{key:"isActive",value:function(){return Shepherd.activeTour===this}},{key:"next",value:function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}},{key:"removeStep",value:function(t){var e=this,n=this.getCurrentStep();this.steps.some(function(n,i){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(t,e){return(isString(e)||isNumber(e))&&(t.id=e.toString()),t=_extends({},this.options.defaultStepOptions,t),new Step(this,t)}},{key:"beforeShowStep",value:function(t){this.modal.setupForStep(t),this._styleTargetElementForStep(t)}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=isString(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),isFunction(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&disableBodyScroll(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Shepherd.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e=getElementForStep(t);e&&(toggleShepherdModalClass(e),t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(e.style.pointerEvents="none"))}},{key:"_skipStep",value:function(t,e){var n=this.steps.indexOf(t),i=e?n+1:n-1;this.show(i,e)}},{key:"_setTooltipDefaults",value:function(){tippy.setDefaultProps(defaults)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=uniqueId$1();this.id="".concat(t,"--").concat(e)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),e}();_extends(Shepherd,{Tour:Tour,Step:Step,Evented:Evented});var CENTER="center",CLOSE_BUTTON_STYLE={NORMAL:"normal",FILL:"fill"},INAPP_POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_CENTER:"top-center",BOTTOM_CENTER:"bottom-center",CENTER:"center"},DIRECTION={HORIZONTAL:"horizontal",VERTICAL:"vertical"},EVENT_PREFIX={INAPP:"InApp_",INLINE:"InLine_",SURVEY:"Survey_"},COLORS={BLACK:"#000000",WHITE:"#ffffff"},BUTTON_CONTAINER_POSITION={TOP:"top",CENTER:"center",BOTTOM:"bottom",SURVEY_BOTTOM:"survey_button"},VIDEOS_MODES={PLAYER:"mini",PIP:"PIP"},CAROUSEL_TYPE={NUMBER:"number",CAROUSEL:"carousel"},isUndefined$1=function(t){return void 0===t},isNull=function(t){return null===t},isElementInViewport=function(t){var e=t.offsetHeight,n=t.offsetWidth,i=t.getBoundingClientRect();return i.left>=-n&&i.top>=-e&&i.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e},getFontMultiplier=function(){var t=document.querySelector("meta[name='viewport']");if(t){var e,n,i=null!==(e=null===(n=t.getAttribute("content"))||void 0===n?void 0:n.split(","))&&void 0!==e?e:[],o=1;if(i.forEach(function(t,e,n){0===t.indexOf("initial-scale")&&(o=parseFloat(t.split("=")[1]))}),o)return parseInt(1/o)}return 1};function deepGet(t,e,n){return null==t?n:0===e.length?t:deepGet(t[e[0]],e.slice(1),n)}var createNewTextElement=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",i=document.createElement("span");i.setAttribute("id",e+"-"+n),i.className="apx-class-".concat(e,"-").concat(n);var o=document.createElement("style");return o.innerHTML="\n .apx-class-".concat(e,"-").concat(n," {\n z-index:99999;\n color:").concat(t.color," !important;\n font-family:").concat(t.font.family," !important;\n font-size:").concat(t.font.size,"px !important;\n font-weight:").concat(t.font.weight," !important;\n font-style:").concat("normal"===t.font.style||"italic"===t.font.style?t.font.style+" !important":"unset",";\n }\n "),i.appendChild(o),i.appendChild(getStylisedText(t.text,t.segments,t.quote,t.link_config)),i},getStylisedText=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=document.createElement("span");if(0==e.length?o.innerText=addLinksToText(t,i):e.forEach(function(e){var n=parseInt(e.start),r=parseInt(e.end),a=t.substring(n,r),s="";e.color&&(s="".concat(s,"color:").concat(e.color,";")),e.font_family&&(s="".concat(s,"font-family:").concat(e.font_family,";")),e.size&&(s="".concat(s,"font-size:").concat(e.size,"px;")),"italic"===e.style&&(s="".concat(s,"font-style:").concat(e.style,";")),"bold"===e.style&&(s="".concat(s,"font-weight:").concat(e.style,";")),"normal"===e.style&&(s="".concat(s,"font-weight:").concat(e.style,";")),1==e.underline&&(s="".concat(s,"text-decoration:underline;")),1==e.strike_through&&(s="".concat(s,"text-decoration:line-through;")),"super"==e.script&&(s="".concat(s,"vertical-align:super;")),"sub"==e.script&&(s="".concat(s,"vertical-align:sub;")),e.bg_color&&(s="".concat(s,"background-color:").concat(e.bg_color,";"));var c=document.createElement("span");c.style=s,c.innerHTML=addLinksToText(a,i),o.appendChild(c)}),void 0!==n){var r=document.createElement("blockquote"),a="";return n.color&&(a="border-left-color:".concat(n.color,";")),n.width&&(a="".concat(a,"border-left-width:").concat(n.width,"px;")),n.gap&&(a="".concat(a,"padding:").concat(n.gap,"px;")),r.appendChild(o),r.style=a,r}return o},addLinksToText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t;return e.forEach(function(e){e.text===t&&(n='<a style="text-decoration: none;" target="_blank" href="'.concat(e.url,'">').concat(t,"</a>"))}),n},makeid=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<t;o++)e+=n.charAt(Math.floor(Math.random()*i));return e},getHeightWidthFromResolution=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0,o=0;try{var r=t.width,a=void 0===r?360:r,s=t.height,c=(void 0===s?360:s)/a,l=window.innerWidth,d=window.innerHeight;n?(o=(i=d*e)/c)>.7*l&&(i=(o=.7*l)*c):(i=(o=l*e)*c)>.7*d&&(o=(i=.7*d)/c)}catch(t){console.log("Error \n ".concat(t," \n occured while calculating the height and width"))}return{height:i,width:o}},generateButtonsBlock=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:EVENT_PREFIX.INAPP,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},d=arguments.length>10?arguments[10]:void 0,p=document.createElement("div");p.className="".concat(a,"-buttons-container"),p.style.zIndex=99999999;var h=generateButtonsFromConfig(o,s,t,e,i,a,c,l,d),u=h.buttons_array,f=h.buttons_css,m=document.createElement("style");return m.innerHTML=getButtonsCSSFromConfig(n,f,r,a),p.appendChild(m),u.forEach(function(t){var e=t.classes,i=t.type,o=t.sub_type,r=t.text,a=t.action,s=document.createElement("div");if(s.className="button-div "+e,"stepper"===i){var c=document.createElement("div");c.className=i+"-"+o,c.innerHTML=setCarousel(o,n),s.appendChild(c)}else{var l=document.createElement("button");l.className=e,l.innerHTML=r,s.appendChild(l),s.onclick=function(){return a()}}p.appendChild(s)}),p},getButtonsCSSFromConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o="",r=0,a=0;a=i===BUTTON_CONTAINER_POSITION.TOP?3:i===BUTTON_CONTAINER_POSITION.BOTTOM?5:i===BUTTON_CONTAINER_POSITION.SURVEY_BOTTOM?3:1;var s,c={},l={};t.enable_numbered&&(c=t.numbered,l=null===(s=c)||void 0===s?void 0:s.font);var d="space-between";return e.forEach(function(t,s){var p,h,u,f,m=t.slot,g=t.type,v=t.sub_type,b=t.bg_color,y=t.text_color,_=t.size,w=t.style,x=t.weight,C=t.font_family,E=t.enable_border,O=t.border,T=O.width,S=O.color,k=O.radius,P=O.style,A=t.enable_margin,I=t.margin,L=I.bottom,N=I.left,B=I.right,R=I.top,F=t.enable_padding,M=t.padding,D=M.bottom,V=M.left,H=M.right,z=M.top,$=t.text_margin,j=$.bottom,W=$.left,U=$.right,G=$.top,Y=t.text_padding,q=Y.bottom,X=Y.left,K=Y.right,J=Y.top,Z=t.enable_gradient,Q=t.gradient,tt=void 0===Q?{}:Q;Z&&(h=tt.direction||"to right",u=tt.colors[0]||COLORS.BLACK,f=tt.colors[1]||COLORS.WHITE);var et=!1,nt=!1;if(null!==(p="vertical"!==n)&&void 0!==p?p:i!==BUTTON_CONTAINER_POSITION.BOTTOM){var it,ot=(null===(it=e[s+1])||void 0===it?void 0:it.slot)||a+1;2===e.length&&(2===m&&3===ot||4===m&&3===r||3===m&&(2===r||4===ot))?d="center":(m-r>1&&(et=!0),ot-m>1&&(nt=!0),3===m&&(et=2!=e.length||1!==r,nt=(e.length,!0))),r=m}i===BUTTON_CONTAINER_POSITION.CENTER&&(et=!0,nt=!0);var rt="";E&&(rt="border:".concat(T,"px ").concat(P," ").concat(S,";border-radius: ").concat(k,"px;"));var at="";A&&(at="margin:".concat(R,"px ").concat(B,"px ").concat(L,"px ").concat(N,"px;"));var st="";F&&(st="padding:".concat(z,"px ").concat(H,"px ").concat(D,"px ").concat(V,"px;"));var ct="";Z&&(ct="background-image:linear-gradient(".concat(h,", ").concat(u,", ").concat(f,");")),o+="stepper"!==g?"\n div .button-div.".concat(i,"-button-").concat(m,"{\n width:auto;\n height:auto;\n cursor: pointer;\n background-color: ").concat("#"===b?"transparent":b,";\n ").concat(rt,"\n ").concat(at,"\n ").concat(st,"\n ").concat(et?"margin-left:auto;":"","\n ").concat(nt?"margin-right:auto;":"margin-right:12px;","\n ").concat(ct,"\n }\n .").concat(i,"-button-").concat(m,"{\n cursor: pointer;\n color: ").concat(y,";\n background-color: transparent;\n font-size: ").concat(_,"px;\n border:none;\n font-family: ").concat(C,";\n font-weight: ").concat(x,";\n font-style: ").concat(w,";\n margin: ").concat(G,"px ").concat(U,"px ").concat(j,"px ").concat(W,"px;\n padding: ").concat(J,"px ").concat(K,"px ").concat(q,"px ").concat(X,"px;\n }\n "):"\n div .button-div.".concat(i,"-button-").concat(m,"{\n width:auto;\n height:auto;\n cursor: pointer;\n background-color: transparent;\n ").concat(et?"margin-left:auto;":"","\n ").concat(nt?"margin-right:auto;":"margin-right:12px;","\n ").concat(ct,"\n }\n ").concat(v===CAROUSEL_TYPE.NUMBER?"div .stepper-".concat(v,"{\n font-family:").concat(l.family,";\n font-size: ").concat(l.size,"px;\n font-style:").concat(l.style,";\n font-width:").concat(l.width,";\n color:").concat(c.color,";\n }"):"","\n\n ").concat(v===CAROUSEL_TYPE.CAROUSAL?"div .stepper-".concat(v,'{\n font-size:"20px";\n }'):"","\n ")}),"\n div .".concat(i,"-buttons-container {\n width:100%;\n display: flex;\n flex-direction:").concat(n===DIRECTION.VERTICAL&&i===BUTTON_CONTAINER_POSITION.BOTTOM?"column":"row",";\n justify-content:").concat(d,";\n align-items:center;\n flex-wrap:wrap;\n }\n ").concat(o,"\n ")},generateButtonsFromConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Inline_",r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=window.ApxorRTM,d=[],p=[];return t.sort(function(t,e){return t.slot-e.slot}),t.forEach(function(t){var h="end",u="",f="",m="";if(t.enable_action){var g,v,b=t.action;h=b.type,u=b.url,f=b.is_external,m=null!==(g=b.is_within)&&void 0!==g&&g,null!==(v=b.callback)&&void 0!==v?v:function(){}}var y,_,w;t.enable_text&&(y=null===(_=t.text)||void 0===_?void 0:null===(w=_.script)||void 0===w?void 0:w.vmap);var x,C=t.slot,E=t.type,O=t.sub_type,T=t.enable_border,S=t.border,k=t.color,P=t.enable_margin,A=t.margin,I=t.enable_padding,L=t.padding,N=t.text,B=N.text,R=N.color,F=N.font,M=F.size,D=F.style,V=F.family,H=F.weight,z=N.margin,$=N.padding,j=t.gradient,W=void 0===j?{}:j,U=t.enable_gradient;try{switch(h){case"done":case"dismiss":x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),e.complete(!1,"dismiss")};break;case"next":x=function(){e.complete(!1,"next"),a&&c+1<s.length&&e.next(n,c+1),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"prev":x=function(){e.complete(!1,"prev"),a&&c-1>=0&&e.prev(n,c-1),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"redirect":x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),m||f?window.open(u,m?"_self":"_blank"):l.logClientEvent("REDIRECT",{url:u}),e.next(!1,"redirect")};break;case"cancel":x=function(){e._isCancelled=!0,e.cancel(!0,"cancel"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"submit":x=function(){e.complete(!1,"submit"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"skip":x=function(){e.complete(!1,"skip"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;default:x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),e.cancel(!1,"cancel")}}}catch(t){window.ApxorLogger.error("Error setting actions on the buttons:"+t)}p.push({slot:C,type:E,sub_type:O,enable_border:T,border:S,bg_color:k,text_color:R,size:M,style:D,weight:H,font_family:V,text_margin:z,text_padding:$,enable_margin:P,margin:A,enable_padding:I,padding:L,enable_gradient:U,gradient:W}),d.push({type:"".concat(E||"button"),sub_type:"".concat(O||""),classes:"".concat(r,"-button-").concat(C),text:B,action:x})}),{buttons_array:d,buttons_css:p}},setCarousel=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t===CAROUSEL_TYPE.NUMBER&&e.enable_numbered){var n=e.numbered;if(e.index<=e.length)return"number"===n.style?"".concat(e.index,"/").concat(e.length):"number_of"===n.style?"".concat(e.index," of ").concat(e.length):"step_number"===n.style?"Step ".concat(e.index,"/").concat(e.length):"Step ".concat(e.index," of ").concat(e.length)}if(t===CAROUSEL_TYPE.CAROUSEL&&e.enable_pagination){var i=e.carousel;if(e.index<=e.length)return createCarousel(e,i)}return""};function createCarousel(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=document.createElement("div");n.setAttribute("class","carousel-container");var i=document.createElement("style"),o=2*parseInt(e.active_radius);i.innerHTML=".carousel-container{\n display:flex;\n flex-direction:row;\n padding-left:8px;\n gap:".concat(e.spacebetween,";\n align-items:center;\n }\n .carousel-indicator-inactive{\n height: ").concat(e.inactive_radius,";\n width: ").concat(e.inactive_radius,";\n background-color: ").concat(e.inactive_color,";\n border-radius: 50%;\n display: inline-block;\n }\n .carousel-indicator-active-default{\n height: ").concat(e.inactive_radius,";\n width: ").concat(e.inactive_radius,";\n background-color: ").concat(e.active_color,";\n border-radius: 50%;\n display: inline-block;\n }\n .carousel-indicator-active-narrow\n {\n height: ").concat(e.inactive_radius,";\n width: ").concat(o,"px;\n border-radius:").concat(e.inactive_radius,";\n background-color: ").concat(e.active_color,";\n display: inline-block;\n }\n .carousel-indicator-active-circle\n {\n height: ").concat(e.active_radius,";\n width: ").concat(e.active_radius,";\n background-color: ").concat(e.active_color,";\n border-radius: 50%;\n display: inline-block;\n }\n\n "),n.appendChild(i);for(var r=0;r<=t.length;r++){var a=document.createElement("div");r===t.index?a.setAttribute("class","carousel-indicator-active-".concat(e.style)):a.setAttribute("class","carousel-indicator-inactive"),n.appendChild(a)}return n.outerHTML.toString()}var generateFormField=function(t){var e,n,i,o,r,a,s,c,l,d,p,h,u,f,m,g,v,b;switch(t.type){case"fullname":return'\n <div class="mainName" style="padding: 8px; display: flex;gap :8px" >\n <div class="first" style="width:50%">\n '.concat(t.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(e=null==t?void 0:null===(n=t.name)||void 0===n?void 0:n[0])&&void 0!==e?e:" ","</label><br />"):"",'\n <input type="text" id="fname" placeholder="').concat(null!==(i=null==t?void 0:null===(o=t.placeholder)||void 0===o?void 0:o[0])&&void 0!==i?i:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n <div class="first" style="width:50%">\n ').concat(t.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(r=null==t?void 0:null===(a=t.name)||void 0===a?void 0:a[1])&&void 0!==r?r:" ","</label><br />"):"",'\n <input type="text" id="lname" placeholder="').concat(null!==(s=null==t?void 0:null===(c=t.placeholder)||void 0===c?void 0:c[1])&&void 0!==s?s:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n </div>');case"name":return'\n <div class="mainFullName" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="name" style="line-height:1.5;">'.concat(null!==(l=null==t?void 0:t.name)&&void 0!==l?l:" ","</label><br />"):"",'\n <input type="text" id="name" placeholder="').concat(null!==(d=null==t?void 0:t.placeholder)&&void 0!==d?d:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"/>\n </div>');case"email":return'\n <div class="mainEmail" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="email" style="line-height:1.5;">'.concat(null!==(p=null==t?void 0:t.name)&&void 0!==p?p:" ","</label><br />"):"",'\n <input type="email" id="email" placeholder="').concat(null!==(h=null==t?void 0:t.placeholder)&&void 0!==h?h:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"phone":return'\n <div class="mainPhoneNumber" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="phoneNumber" style="line-height:1.5;">'.concat(null!==(u=null==t?void 0:t.name)&&void 0!==u?u:" ","</label><br />"):"",'<input type="tel" id="phoneNumber" placeholder="').concat(null!==(f=null==t?void 0:t.placeholder)&&void 0!==f?f:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"date":return'\n <div class="mainDate" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="date" style="line-height:1.5;">'.concat(null!==(m=null==t?void 0:t.name)&&void 0!==m?m:" ","</label><br />"):"",'\n <input type="date" id="date" style="width:95%;border-radius:5px;padding:8px;"/>\n </div>');case"message":return'\n <div class="mainTextField" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="textField" style="line-height:1.5;">'.concat(null!==(g=null==t?void 0:t.name)&&void 0!==g?g:" ","</label><br />"):"",'\n <textarea id="textField" placeholder="').concat(null!==(v=null==t?void 0:t.placeholder)&&void 0!==v?v:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"></textarea>\n </div>');case"button":return'\n <div class="buttonClass" style="width:100%;padding: 8px;box-sizing: border-box;">\n <input type="submit" value="'.concat(null!==(b=null==t?void 0:t.value)&&void 0!==b?b:" ",'" style="max-width:99%;width:100%;border-radius:5px;padding:8px;">\n </div>\n ');default:return}},getCloseWithCircleSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return'<svg viewBox="0 0 24 24" fill="none" width="'.concat(t,'" height="').concat(e,'" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="').concat(n,'"></path>\n <path d="M13.0594 12.0001L15.3594 9.70011C15.6494 9.41011 15.6494 8.93011 15.3594 8.64011C15.0694 8.35011 14.5894 8.35011 14.2994 8.64011L11.9994 10.9401L9.69937 8.64011C9.40937 8.35011 8.92937 8.35011 8.63938 8.64011C8.34938 8.93011 8.34938 9.41011 8.63938 9.70011L10.9394 12.0001L8.63938 14.3001C8.34938 14.5901 8.34938 15.0701 8.63938 15.3601C8.78938 15.5101 8.97937 15.5801 9.16937 15.5801C9.35937 15.5801 9.54937 15.5101 9.69937 15.3601L11.9994 13.0601L14.2994 15.3601C14.4494 15.5101 14.6394 15.5801 14.8294 15.5801C15.0194 15.5801 15.2094 15.5101 15.3594 15.3601C15.6494 15.0701 15.6494 14.5901 15.3594 14.3001L13.0594 12.0001Z" fill="').concat(i,'"></path>\n </svg>')},getCloseWithRectangleSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return'\n <svg viewBox="0 0 24 24" fill="currentColor" style="background-color:'.concat(n,";color:").concat(i,';" width="').concat(t,'" height="').concat(e,'">\n <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>\n </svg>\n ')},getCloseSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0;return'\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-x" viewBox="0 0 16 16">\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>')},getNumberOrDefault=function(t,e){var n=Number(t);return n||0===n?n:e},getStringOrDefault=function(t,e){var n=String(t);return n||e},getColorOrDefault=function(t,e){var n=String(t);return n||e},getArrayOrDefault=function(t,e){return t&&Array.isArray(t)?t:e},isEmptyObject=function(t){return"object"!==_typeof(t)||0===Object.keys(t).length},hexToRGB=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return e?"rgba("+n+", "+i+", "+o+", "+e+")":"rgb("+n+", "+i+", "+o+")"},getPIPSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0;return'\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>')},getSlotNumberByPosition=function(t){return"left"===t?1:"center"===t?3:5},ApxorWalkthroughTour,onClickCallback=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(arguments.length>3?arguments[3]:void 0)try{n&&window.Apxor.logActionEvent("InlineTargetViewClicked",t,e),ApxorWalkthroughTour.complete()}catch(t){console.error(t)}};function addTourStep(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=t.animation,a=void 0===r?{}:r,s=t.bg_color,c=void 0===s?"black":s,l=t.border,d=void 0===l?{}:l,p=t.buttons_config,h=void 0===p?[]:p,u=t.corners,f=void 0===u?{}:u,m=t.shadow,g=void 0===m?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":m,v=t.opacity,b=void 0===v?1:v,y=t.dismiss_outside_touch,_=void 0!==y&&y,w=t.dismiss_target_touch,x=void 0===w||w,C=t.position,E=void 0===C?"TOP":C,O=t.text_config,T=void 0===O?{}:O,S=t.title_config,k=void 0===S?{}:S,P=t.view_id,A=(t.search_type,t.show_shadow),I=void 0!==A&&A,L=t.dim_background_color,N=void 0===L?"#0a0a0a":L,B=t.dim_background_opacity,R=void 0===B?.5:B,F=t.show_close_icon,M=void 0!==F&&F,D=t.set_font_to_scale,V=void 0!==D&&D,H=n.configId,z=n.configName,$=V?getFontMultiplier():1;$=$>1?$:1;var j=[],W="#3288e6",U="#f1f2f3",G="rgba(0, 0, 0, .75)",Y="rgba(0, 0, 0, .75)";h.forEach(function(t){var e,n,i,o,r,a,s;a=deepGet(t,["text_config","text"],null);var c=null!==(e=null==t?void 0:null===(n=t.action_config)||void 0===n?void 0:n.action)&&void 0!==e?e:"end",l=(null==t?void 0:t.action_config)||{},d=JSON.stringify(l);i=null==t?void 0:null===(o=t.action_config)||void 0===o?void 0:o.url;switch(c){case"done":case"dismiss":s=ApxorWalkthroughTour.complete;break;case"next":s=ApxorWalkthroughTour.next;break;case"redirect":s=function(){window.Apxor.redirectTo(H,z,a,d),ApxorWalkthroughTour.cancel()};break;default:s=ApxorWalkthroughTour.cancel}r="shepherd-button",r+="okButton"===t.id?"-secondary":"",["end","dismiss"].includes(c)?(G=deepGet(t,["text_config","color"],"#ccc"),W=t.color):(Y=deepGet(t,["text_config","color"],"#ccc"),U=t.color),j.push({classes:r,text:a,action:s})});var q=!!M&&!(h.length>=1),X={color:T.color,fontSize:T.size*$,fontFamily:T.font_family,fontStyle:T.style};if(T.margin_config&&Object.keys(T.margin_config).length>0){var K=T.margin_config;X.margin="".concat(K.top,"px ").concat(K.right,"px ").concat(K.bottom,"px ").concat(K.left,"px")}var J=T.style;"bold"===J&&(X.fontWeight=J);var Z={color:k.color,fontSize:k.size*$,fontFamily:k.font_family,fontStyle:k.style};if(k.margin_config&&Object.keys(k.margin_config).length>0){var Q=k.margin_config;Z.margin="".concat(Q.top,"px ").concat(Q.right,"px ").concat(Q.bottom,"px ").concat(Q.left,"px")}"bold"===(J=k.style)&&(X.fontWeight=J);var tt={"border-radius":f.enabled?f.width:0,background:c,"border-color":d.color,"border-width":d.width},et=document.querySelector("#"+P);function nt(t){return 50===t?0:-4}function it(t,e){switch(t.toLowerCase()){case"top":return"translateY(".concat(nt(e),"px)");case"right":return"translateX(".concat(nt(e),"px)");case"bottom":return"translateY(".concat(-nt(e),"px)");case"left":return"translateX(".concat(-nt(e),"px)")}}var ot=function(){var t=document.createElement("span");t.setAttribute("id","apxor-style-"+H+"-step-"+o),t.style.display="none";var e=document.createElement("style");return e.innerHTML='\n #shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);\n height: 100vh;\n left: 0;\n opacity: '.concat(null!=R?R:.5,";\n position: fixed;\n top: 0;\n transition: all .3s ease-out;\n width: 100vw;\n z-index: 9997;\n fill:").concat(null!=N?N:"transparent","\n }\n \n #shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;\n width: 100vw\n }\n \n .shepherd-modal.shepherd-enabled {\n position: relative;\n z-index: 9998\n }\n \n .shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n }\n \n .shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n }\n \n .tippy-popper.shepherd {\n z-index: 9999\n }\n \n .tippy-popper.shepherd[x-placement^=top] {\n margin-bottom: 0px\n }\n \n .tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n }\n \n .tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n }\n \n .tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n }\n \n .tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;\n padding-top:0px;\n padding-bottom:0px;\n text-align: left;\n max-width: calc(").concat($,"*400px);\n }\n \n .shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n }\n \n .shepherd-element {\n outline: none;\n }\n \n .shepherd-element .shepherd-content header {\n *zoom: 1;\n align-items: left;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n display: flex;\n justify-content: left;\n line-height: 2em;\n ").concat(q?"padding: .75em;":"",'\n }\n \n .shepherd-element .shepherd-content header:after {\n clear: both;\n content: "";\n display: table\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;\n padding: 0;\n position: relative;\n vertical-align: middle\n }\n \n .shepherd-element .shepherd-content header .shepherd-title {\n color: ').concat(Z.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Z.fontSize,"px;\n font-family: ").concat(Z.fontFamily,"; \n font-weight: ").concat("bold"!==Z.fontStyle?"normal":Z.fontStyle,";\n font-style: ").concat("italic"===Z.fontStyle?"italic":"unset",";\n line-height: 1em;\n padding: .5em;\n padding-bottom: 0px;\n }\n\n .shepherd-content > .shepherd-header > .shepherd-title {\n color: ").concat(Z.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Z.fontSize,"px;\n font-family: ").concat(Z.fontFamily,"; \n font-weight: ").concat("bold"!==Z.fontStyle?"normal":Z.fontStyle,";\n font-style: ").concat("italic"===Z.fontStyle?"italic":"unset",';\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);\n font-size: 2em;\n margin-left: auto;\n text-decoration: none;\n transition: color .5s ease\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;\n content: "×"\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n }\n \n .shepherd-element .shepherd-content .shepherd-text {\n color: ').concat(X.color,";\n line-height: 1em;\n padding: .5em;\n }\n \n .shepherd-element .shepherd-content .shepherd-text a,\n .shepherd-element .shepherd-content .shepherd-text a:active,\n .shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);\n color: ").concat(X.color,";\n opacity: 0.75;\n text-decoration: none\n }\n \n .shepherd-element .shepherd-content .shepherd-text a:active:hover, \n .shepherd-element .shepherd-content .shepherd-text a:hover,\n .shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n }\n \n .shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n }\n \n .shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n }\n \n .shepherd-element .shepherd-content footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: flex-end;\n padding: 0 .75em .75em\n }\n \n .shepherd-content .shepherd-text {\n font-size: ").concat(X.fontSize,"px;\n font-family: ").concat(X.fontFamily,"; \n font-weight: ").concat("bold"!==X.fontStyle?"normal":X.fontStyle,";\n font-style: ").concat("italic"===X.fontStyle?"italic":"unset",";\n }\n\n .shepherd-content > .shepherd-text > p {\n font-size: ").concat(X.fontSize,"px;\n font-family: ").concat(X.fontFamily,"; \n font-weight: ").concat("bold"!==X.fontStyle?"normal":X.fontStyle,";\n font-style: ").concat("italic"===X.fontStyle?"italic":"unset",";\n color: ").concat(X.color,";\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n background: ").concat(W,";\n border: 0;\n border-radius: 3px;\n color: ").concat(G,";\n cursor: pointer;\n display: inline;\n font-family: inherit;\n font-size: .8em;\n letter-spacing: .1em;\n line-height: 1em;\n margin-right: .5em;\n padding: .75em 2em;\n text-transform: uppercase;\n transition: all .5s ease\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button:hover {\n background: ").concat(W,"77;\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary {\n background: ").concat(U,";\n color: ").concat(Y,";\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary:hover {\n background: ").concat(U,"88;\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button:last-child {\n margin-right: 0\n }\n \n @-webkit-keyframes cycle {\n 0% { transform: ").concat(it(E,0),"; }\n 50% { transform: ").concat(it(E,50),"; }\n 100% { transform: ").concat(it(E,100),"; }\n }\n \n @keyframes cycle {\n 0% { transform: ").concat(it(E,0),"; }\n 50% { transform: ").concat(it(E,50),"; }\n 100% { transform: ").concat(it(E,100),"; }\n }\n \n .tippy-tooltip.apxor-").concat(H,"-step-").concat(o,"-theme {\n animation: ").concat(a.enabled?a.type+" "+a.duration+"ms":"none",";\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n box-shadow: ").concat(I?g:"none",";\n color: ").concat(X.color,";\n opacity: ").concat(b,";\n border-radius: ").concat(tt["border-radius"]+"px",";\n background-color: ").concat(tt.background,";\n ").concat(function(t){switch(t.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(E),";\n }\n \n .apxor-").concat(H,"-step-").concat(o,"-theme .tippy-roundarrow {\n fill: ").concat(tt.background,";\n }\n\n .tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(tt.background,";\n }\n "),t.appendChild(e),et.parentNode.insertBefore(t,et),t}(),rt=document.getElementById(P),at=document.getElementById("apxor-".concat(H,"-step-").concat(o)),st=function(t){onClickCallback(H,z,!1,x)},ct=function(){var t,e,n,o,r;try{var a;null===(a=ApxorWalkthroughTour)||void 0===a||a.complete()}catch(t){console.error(t)}dt.disconnect(),pt.disconnect(),null===(t=document.getElementById("shepherdModalOverlayContainer"))||void 0===t||t.remove(),null==ot||null===(e=ot.parentNode)||void 0===e||e.removeChild(ot),null==at||null===(n=at.parentNode)||void 0===n||n.removeChild(at),window.Apxor.logActionEvent("inline_dismissed",H,z),i.isShowingAction=!1,rt.removeEventListener("click",st),null===(o=window)||void 0===o||null===(r=o.Apxor)||void 0===r||r.updateFlag(!1)},lt=!1,dt=new MutationObserver(function(){if(!document.body.contains(rt)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(H,"-step-").concat(o,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),ct()}}),pt=new IntersectionObserver(function(){var t=isElementInViewport(rt);if(!t&<){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(H,"-step-").concat(o,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),ct()}t&&(lt=!0)});ApxorWalkthroughTour.addStep("apxor-step-"+o,{title:k&&k.text?k.text:null,text:[T&&T.text?T.text:"Tap here"],classes:"apxor-".concat(H,"-step-").concat(o,"-theme"),attachTo:{element:"#"+P,on:E.toLowerCase()},showCancelLink:q,buttons:j,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:_,theme:"apxor-".concat(H,"-step-").concat(o),onShow:function(){window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0),window.Apxor.logActionEvent("inline_shown",H,z),window.Apxor.updateCount(H),i.isShowingAction=!0,rt.addEventListener("click",st),dt.observe(document.body,{childList:!0,subtree:!0}),pt.observe(rt)},onHidden:ct}})}var showTooltip=function(t,e,n,i,o){var r=Array.isArray(e)&&e.length>0,a=t.delay,s=t.dim_background,c=t.view_id,l=t.find_interval,d=void 0===l?0:l,p=t.max_find_interval,h=void 0===p?1e4:p,u=t.scrollToView,f=!1;void 0!==u&&u&&(f={behavior:"smooth",block:"center"}),ApxorWalkthroughTour=new Shepherd.Tour({defaultStepOptions:{scrollTo:f},useModalOverlay:r||s});var m=function(){return document.getElementById(c)},g=function(a){try{var s=a.getBoundingClientRect();if(0===s.width||0===s.height)return void console.warn("Width and height are 0 for: ",c,". Can't show");if(s.top>=window.innerHeight)return void console.warn("Element ",c," not in viewport. Can't show")}catch(t){console.error(t)}if(r?e.forEach(function(t,e){addTourStep(t.ui,n,i,o,e)}):addTourStep(t,n,i,o),o.isShowingAction)console.error("An action already being shown");else try{ApxorWalkthroughTour.start(),o.isShowingAction=!0}catch(t){console.error(t)}};return setTimeout(function(){var t=m();t?g(t):(console.warn("Element with id:".concat(c," not found.")),d&&(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval(function(){var i=m();i?(clearInterval(n),g(i)):new Date-e>h&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")))},d)}(c)))},a),!0===n.auto_dismiss&&setTimeout(function(){ApxorWalkthroughTour.complete()},a+n.duration),ApxorWalkthroughTour.complete},DEFAULT_PADDING=5,fontMultiplier=1;function makeid$1(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<t;o++)e+=n.charAt(Math.floor(Math.random()*i));return e}var currentId=makeid$1(10);function getDocumentOffsetPosition(t){return t.getBoundingClientRect()}function createTextElement(t){var e=t.color,n=void 0===e?"#000":e,i=t.font_family,o=void 0===i?"cursive":i,r=t.margin_config,a=void 0===r?{}:r,s=t.size,c=void 0===s?14:s,l=t.style,d=void 0===l?"bold":l,p=t.text,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";c*=fontMultiplier;var u=document.createElement("span");u.setAttribute("id",currentId+"-"+h),u.className="apx-class-".concat(currentId,"-").concat(h);var f=document.createElement("style");return f.innerHTML="\n .apx-class-".concat(currentId,"-").concat(h," {\n z-index: 99999; \n text-align: initial; \n color: ").concat(n," !important; \n font-family: ").concat(o," !important; \n font-size: ").concat(c,"px !important; \n font-weight: ").concat(d," !important;\n font-style: ").concat("normal"===d||"italic"===d?d+" !important":"unset",";\n }\n "),console.log(u,u.style,n,o,c,d),Object.keys(a).length>0&&(u.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),u.appendChild(f),u.innerHTML=u.innerHTML+p,u}function createButtons(t,e){var n=t.button_classes,i=t.text,o=t.action,r=t.button_css,a=document.createElement("button");a.setAttribute("id",currentId+"-"+e),a.className="apx-".concat(n,"-").concat(currentId,"-").concat(e),a.onclick=function(){return o()};var s=document.createElement("style");s.innerHTML="\n .apx-".concat(n,"-").concat(currentId,"-").concat(e," {\n background-color: ").concat(r.color,";\n border-radius: ").concat(r.borders.radius,"px;\n margin: ").concat(r.margin.top,"px ").concat(r.margin.right,"px ").concat(r.margin.bottom,"px ").concat(r.margin.left,"px;\n padding: ").concat(r.padding.top,"px ").concat(r.padding.right,"px ").concat(r.padding.bottom,"px ").concat(r.padding.left,"px;\n visibility: ").concat(r.visibility,";\n }\n "),a.appendChild(s);var c=document.createElement("div");c.setAttribute("id",currentId+"- text -"+e),c.className="apx-text-".concat(n,"-").concat(currentId,"-").concat(e);var l=document.createElement("style");return l.innerHTML="\n .apx-text-".concat(n,"-").concat(currentId,"-").concat(e," {\n color:").concat(r.text_config.color,";\n padding:").concat(r.text_config.padding_config.top,"px ").concat(r.text_config.padding_config.right,"px ").concat(r.text_config.padding_config.bottom,"px ").concat(r.text_config.padding_config.left,"px;\n margin:").concat(r.text_config.margin_config.top,"px ").concat(r.text_config.margin_config.right,"px ").concat(r.text_config.margin_config.bottom,"px ").concat(r.text_config.margin_config.left,"px;\n font-family:").concat(r.text_config.font_family,";\n size:").concat(r.text_config.size,";\n style=").concat(r.text_config.style,"; \n }\n "),c.appendChild(l),c.innerHTML=c.innerHTML+i,a.appendChild(c),a}function createTitleDescriptionButtonElements(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=null,o=document.createElement("div");if(!e&&t?i=createTextElement(t):e&&t&&((i=document.createElement("div")).style.display="inline-flex",i.style.flexDirection="column",i.style.visibility="initial",i.style.textAlign="center",i.style.position="relative",i.appendChild(createTextElement(e)),i.appendChild(createTextElement(t))),o.style.position="absolute",o.appendChild(i),n){var r=document.createElement("div");r.style.zIndex=999999,r.style.visibility=1,r.style.textAlign="initial",n.forEach(function(t,e){r.appendChild(createButtons(t,e))}),r.style.position="relative",o.appendChild(r)}return document.body.appendChild(o),o}function addRippleStyles(t,e,n){return"\n <style>\n .ripple-animator {\n position: relative;\n display: -webkit-box;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n flex-direction: row;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n height: ".concat(n,"px !important;\n width: ").concat(e,"px !important;\n border-radius: ").concat("circle"===t?"100%":"0",";\n }\n .ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;\n left: -5px;\n }\n \n\n .ripple-animator:before,\n.ripple-animator:after {\n content: '';\n display: block;\n position: absolute;\n top: 0; \n right: 0; \n bottom: 0; \n left: 0;\n opacity:1;\n z-index:10;\n border: 0px solid white;\n border-radius: ").concat("circle"===t?"100%":"0%",";\n z-index: 99999;\n}\n\n .ripple-animator:before {\n animation: ripple 1s infinite ease-out;\n }\n\n @keyframes ripple{\n 0% { \n border: 0px solid white;\n transform: scale(0.8); \n }\n 100% { \n border: 20px solid white;\n transform: scale(1.5); \n opacity:0; \n }\n \n </style>")}function createInnerCircle(t,e,n,i,o,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,c=n-(a-t)/2,l=i-(a-e)/2;"circle"!=o&&(a=t,s=e,c=n,l=i);var d=document.createElement("div");return d.setAttribute("id",currentId+"-ripple-div"),r&&(d.innerHTML=addRippleStyles(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(c,"px"),d.style.top="".concat(l,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function getSVG(t,e){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(t,"\n </mask>\n </defs>\n ").concat(e,"\n </svg>\n ")}function getCircleSVG(t){var e=t.bg_color,n=t.opacity,i=t.innerRadius,o=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,c=t.outerCircleCenterY;return getSVG('\n <rect\n x="'.concat(s-a,'"\n y="').concat(c-a<0?0:c-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(o,'"\n cy="').concat(r,'"\n r="').concat(i,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(c,'" \n r="').concat(a,'" \n fill="').concat(e,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}function getRectangleSVG(t){var e=t.bg_color,n=t.opacity,i=t.targetElementLeft,o=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return getSVG('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(i,'" \n y="').concat(o,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(#apx-mask)"\n fill="').concat(e,'" \n fill-opacity="').concat(n,'" />\n '))}function createSVGDiv(t){var e=t.opacity,n=t.type,i=document.createElement("div");i.setAttribute("id",currentId+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="100%";var o="";return o="circle"===n?getCircleSVG(t):getRectangleSVG(t),i.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(e,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(o),document.body.appendChild(i),i}function showCoachmark(t,e,n,i,o){var r=t.bg_color,a=t.coach_mark_details,s=a.has_ripple,c=void 0!==s&&s,l=a.type,d=void 0===l?"circle":l,p=t.delay,h=t.buttons_config,u=void 0===h?[]:h,f=t.dismiss_outside_touch,m=void 0!==f&&f,g=t.opacity,v=void 0===g?.8:g,b=t.position,y=void 0===b?"TOP":b,_=t.text_config,w=t.title_config,x=void 0===w?null:w,C=t.view_id,E=t.scroll_to_view,O=void 0!==E&&E,T=(t.show_close_icon,t.set_font_to_scale),S=void 0!==T&&T,k=e.configId,P=e.configName;fontMultiplier=(fontMultiplier=S?getFontMultiplier():1)>1?fontMultiplier:1;var A=[];u.forEach(function(t){var e,n,i,o,r,a;o=deepGet(t,["text_config","text"],null);var s=deepGet(t,["action_config","action"],"end"),c=(null==t?void 0:t.action_config)||{},l=JSON.stringify(c),d=(e=null==t?void 0:null===(n=t.action_config)||void 0===n?void 0:n.url,function(){gt&>()}),p={next:d,complete:d,cancel:d};switch(s){case"done":case"dismiss":case"next":r=function(){p.complete(!1,"dismiss")};break;case"prev":r=function(){p.complete(!1,"prev")};break;case"redirect":r=function(){window.Apxor.redirectTo(k,P,o,l),p.next(!1,"redirect")};break;case"cancel":r=function(){p._isCancelled=!0,p.cancel(!0,"cancel")};break;default:r=function(){p.cancel(!1,"cancel")}}i="shepherd-button",i+="okButton"===t.id?"-secondary":"",a={borders:t.borders,color:t.color,margin:t.margin_config,padding:t.padding_config,text_config:t.text_config,visibility:t.visibility},A.push({classes:i,text:o,action:r,button_css:a})});var I={color:_.color,fontSize:_.size*fontMultiplier,fontFamily:_.font_family,fontStyle:_.style};if(_.margin_config&&Object.keys(_.margin_config).length>0){var L=_.margin_config;I.margin="".concat(L.top,"px ").concat(L.right,"px ").concat(L.bottom,"px ").concat(L.left,"px")}var N=_.style;"bold"===N&&(I.fontWeight=N);var B={color:x.color,fontSize:x.size*fontMultiplier,fontFamily:x.font_family,fontStyle:x.style};if(x.margin_config&&Object.keys(x.margin_config).length>0){var R=x.margin_config;B.margin="".concat(R.top,"px ").concat(R.right,"px ").concat(R.bottom,"px ").concat(R.left,"px")}"bold"===(N=x.style)&&(I.fontWeight=N);var F=document.getElementById(C);if(F){currentId=makeid$1(10);var M=getDocumentOffsetPosition(F),D=M.left,V=void 0===D?0:D,H=M.top,z=void 0===H?0:H,$=M.width,j=void 0===$?0:$,W=M.height,U=void 0===W?0:W;if(!O&&M.top>=window.innerHeight)console.warn("Element ",C," not in viewport. Can't show");else{var G=!1,Y=new MutationObserver(function(){document.body.contains(F)||gt()}),q=new IntersectionObserver(function(){var t=isElementInViewport(F);!t&&G&>(),t&&(G=!0)});console.log(M);var X=M.left<window.innerWidth/2;if(0!==U&&0!==j){var K=createTitleDescriptionButtonElements(_,x,A),J=K.offsetWidth,Z=K.offsetHeight,Q=0,tt=0;_&&_.margin_config&&(Q=Number(_.margin_config.left)||0,tt=Number(_.margin_config.right)||0);var et=createInnerCircle(j,U,V,z,d,c),nt=V+j/2,it=z+U/2,ot=Math.sqrt(Math.pow(j,2)+Math.pow(U,2))/2,rt=ot+Math.max(J,j)/2+2*DEFAULT_PADDING,at=-1,st=-1,ct=-1,lt=-1,dt=it-ot,pt=it+ot;switch(y){case"TOP":st=(ct=nt-J/2)<0?DEFAULT_PADDING:ct,at="circle"===d?it-ot-Z-25:z-Z-25,lt=pt-Math.abs(pt-at)/2;break;case"BOTTOM":st=(ct=nt-J/2)<0?DEFAULT_PADDING:ct,lt=dt+((at="circle"===d?it+ot+25:z+U+25)+Z-dt)/2}if(-1!==st&&-1!==at&&-1!==lt){!X&&st+J>window.innerWidth&&(st=window.innerWidth-J-Q-tt-10),K.style.left="".concat(st,"px"),K.style.top="".concat(at,"px");var ht=((ct=Math.min(V,st))+Math.max(V+j,st+J))/2;(ht=Math.min(ht,document.scrollingElement.scrollWidth))<0&&(ht=0),(lt=Math.min(lt,document.scrollingElement.scrollHeight))<0&&(lt=0);var ut=createSVGDiv({bg_color:r,opacity:v,innerRadius:ot,innerCenterX:nt,innerCenterY:it,outerRadius:rt,outerCircleCenterX:ht,outerCircleCenterY:lt,targetElementLeft:V,targetElementTop:z,targetElementWidth:j,targetElementHeight:U,type:d});ut.style.visibility="hidden",et.style.visibility="hidden",K.style.visibility="hidden";var ft=null,mt=function(t){var e=!t,n=F.getBoundingClientRect();t&&t.clientX>=n.left&&t.clientX<=n.left+n.width&&t.clientY>=n.top&&t.clientY<=n.top+n.height&&(e=!0),console.warn("Dismiss:",t,e,m,t.clientX>=n.left,t.clientX<=n.left+n.width,t.clientY>=n.top,t.clientY<=n.top+n.height,t.clientX,t.clientY,n.left,n.top,n.width,n.height),(m||e)&>()},gt=function(){Y.disconnect(),q.disconnect(),ut.parentNode.removeChild(ut),K.parentNode.removeChild(K),et.parentNode.removeChild(et),o&&o(),ft&&clearTimeout(ft)};return n&&!0===n.auto_dismiss&&(ft=setTimeout(function(){return mt()},p+n.duration)),ut.style.visibility="visible",et.style.visibility="visible",K.style.visibility="visible",m&&ut.addEventListener("click",mt),et.addEventListener("click",mt),O&&("TOP"===y?window.scrollTo({top:lt-rt,behavior:"smooth"}):"BOTTOM"===y&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,lt+rt),behavior:"smooth"})),Y.observe(document.body,{childList:!0,subtree:!0}),q.observe(F),i&&i(),mt}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",C)}}else console.warn("Element not found with id: ",C)}function showCoachmarkWithDelay(t,e,n,i,o,r,a){if(null===t.currentAction||void 0===t.currentAction)if(e&&e.delay<=0){var s=showCoachmark(e,i,o,r);a(s)}else setTimeout(function(){if(null===t.currentAction||void 0===t.currentAction){var s=showCoachmark(e,n,i,o,r);a(s)}else console.error("An action is already being shown. Try after it gets dismissed")},e.delay);else console.error("An action is already being shown. Try after it gets dismissed")}var CloseButton=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.fill_color=getColorOrDefault(e.fill_color,"#FFFFFF"),this.type=getStringOrDefault(e.type,"normal"),this.path=e.path,this.offset_top=getNumberOrDefault(e.offset_top,8),this.offset_right=getNumberOrDefault(e.offset_right,8),this.height=getNumberOrDefault(e.height,24),this.width=getNumberOrDefault(e.width,24),this.action=getStringOrDefault(e.action,"dismiss"),this.shape=getStringOrDefault(e.shape,"circle")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Padding=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.top=getNumberOrDefault(null==e?void 0:e.top,8),this.bottom=getNumberOrDefault(null==e?void 0:e.bottom,8),this.left=getNumberOrDefault(null==e?void 0:e.left,8),this.right=getNumberOrDefault(null==e?void 0:e.right,8)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Margin=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.top=getNumberOrDefault(null==e?void 0:e.top,8),this.bottom=getNumberOrDefault(null==e?void 0:e.bottom,8),this.left=getNumberOrDefault(null==e?void 0:e.left,8),this.right=getNumberOrDefault(null==e?void 0:e.right,8)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Border=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.radius=getNumberOrDefault(e.radius,0),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.width=getNumberOrDefault(e.width,0),this.style=getStringOrDefault(e.style,"solid")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Scroll=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.height=getNumberOrDefault(e.height,400),this.enable_border=e.enable_border,this.border=new Border(e.border)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Icon=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,48),this.height=getNumberOrDefault(e.height,48),this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_border=e.enable_border,this.border=new Border(e.border),this.alignment=getStringOrDefault(e.alignment,CENTER)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),BackgroundImage=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.mask_opacity=getNumberOrDefault(e.mask_opacity,.25),this.mask_color=getColorOrDefault(e.mask_color,"#000000")}),Image=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,360),this.height=getNumberOrDefault(e.height,360),this.enable_background_image=e.enable_background_image,this.background_image=new BackgroundImage(e.background_image),this.enable_border=e.enable_border,this.border=new Border(e.border)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),EmbeddedVideo=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.html=e.html}),Video=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,360),this.height=getNumberOrDefault(e.height,360),this.enable_embed=e.enable_embed,this.embed=new EmbeddedVideo(e.embed),this.enable_border=e.enable_border,this.border=new Border(e.border),this.enable_audio=e.enable_audio,this.format=getStringOrDefault(e.format,"video/mp4")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Offset=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.skid=getNumberOrDefault(null==e?void 0:e.skid,0),this.distance=getNumberOrDefault(null==e?void 0:e.distance,0)}),Position=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.position=getStringOrDefault(null==e?void 0:e.position,"top-left").toLowerCase(),this.enable_offset=e.enable_offset,this.offset=new Offset(e.offset)}),DimBackground=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.opacity=getNumberOrDefault(e.opacity,.5),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Font=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.family=getStringOrDefault(e.family,"sans-serif").toLowerCase(),this.size=getNumberOrDefault(e.size,"14"),this.style=getStringOrDefault(e.style,"bold").toLowerCase(),this.weight=e.weight}),Text=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.background_color=null==e?void 0:e.background_color,this.alignment=getStringOrDefault(e.alignment,"center").toLowerCase(),this.color=getColorOrDefault(e.color,"#FFF").toLowerCase(),this.font=new Font(e.font),this.text=getStringOrDefault(e.text,""),this.localized_messages=e.localized_messages,this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_icon=e.enable_icon,this.icon=new Icon(e.icon),this.link_config=e.link_config,this.is_dynamic_text=e.is_dynamic_text,this.is_dynamic_script=e.is_dynamic_script,this.script=e.script,this.segments=e.segments,this.quote=e.quote}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Title=function(t){_inherits(n,Text);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).is_title=!0,t.is_description=!1,t}return _createClass(n)}(),Description=function(t){_inherits(n,Text);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).is_title=!1,t.is_description=!0,t}return _createClass(n)}(),Direction=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.nudge=getStringOrDefault(e.nudge,DIRECTION.VERTICAL),this.non_media=getStringOrDefault(e.non_media,DIRECTION.VERTICAL),this.buttons=getStringOrDefault(e.buttons,DIRECTION.VERTICAL)}),DismissActions=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.outside_touch=Boolean(e.outside_touch),this.target_touch=Boolean(e.target_touch)}),Form=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.font=new Font(e.font),this.padding=new Padding(e.padding),this.elements=e.elements}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Shadow=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFF"),this.offset_x=getNumberOrDefault(e.offset_x,0),this.offset_y=getNumberOrDefault(e.offset_y,0),this.blur_radius=getNumberOrDefault(e.blur_radius,0),this.spread_radius=getNumberOrDefault(e.spread_radius,0)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Marketing=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.message=new Text(e.message)}),Gradient=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.direction=getStringOrDefault(e.direction,"to right"),this.colors=getArrayOrDefault(e.colors,["#FFF","000"])}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Action=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.type=getStringOrDefault(e.type,"dismiss").toLowerCase(),this.url=getStringOrDefault(e.url,""),this.is_external=Boolean(e.is_external),this.is_ir=Boolean(e.is_ir),this.callback=e.callback||function(){},this.is_within=Boolean(e.is_within)}),Button=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),null!=e&&e.position&&(this.position=new Position(e.position)),void 0===(null==e?void 0:e.slot)?this.slot=getSlotNumberByPosition(this.position.position):this.slot=getNumberOrDefault(e.slot,0),this.type=getStringOrDefault(e.type,"button"),this.sub_type=getStringOrDefault(e.sub_type,""),this.color=getColorOrDefault(e.color,"#FFF"),this.enable_action=e.enable_action,this.action=new Action(e.action),this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_border=e.enable_border,this.border=new Border(e.border),this.enable_text=e.enable_text,this.text=new Text(e.text),this.enable_gradient=e.enable_gradient,this.gradient={},this.enable_gradient&&(this.gradient=new Gradient(e.gradient))}),BottomButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),CenterButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),TopButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),Buttons=_createClass(function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.background_color=n.background_color,this.enable_top=n.enable_top,this.enable_center=n.enable_center,this.enable_bottom=n.enable_bottom,this.bottom=[],this.center=[],this.top=[],getArrayOrDefault(n.bottom,[]).forEach(function(t){e.bottom.push(new BottomButton(t))}),getArrayOrDefault(n.center,[]).forEach(function(t){e.center.push(new CenterButton(t))}),getArrayOrDefault(n.top,[]).forEach(function(t){e.top.push(new TopButton(t))}),this.enable_margin=n.enable_margin,this.enable_margin&&(this.margin=new Margin(n.margin)),this.enable_padding=n.enable_padding,this.enable_padding&&(this.padding=new Padding(n.padding)),this.enable_border=n.enable_border,this.enable_border&&(this.border=new Border(n.border)),this.enable_gradient=n.enable_gradient,this.enable_gradient&&(this.gradient=new Gradient(n.gradient))}),NumberedStepper=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"number"),this.position=getStringOrDefault(e.position,"bottom-left"),this.font=new Font(e.font),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Pagination=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"number"),this.position=getStringOrDefault(e.position,"bottom-left"),this.font=new Font(e.font),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),ProgressBar=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.position=getStringOrDefault(e.position,"top"),this.width=getNumberOrDefault(e.position,4),this.progress_color=getColorOrDefault(e.progress_color,"#000"),this.reamining_color=getColorOrDefault(e.reamining_color,"#FFFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Carousel=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"default"),this.spacebetween=this.position=getNumberOrDefault(e.space_between,4),this.active_radius=getNumberOrDefault(e.active_radius,4),this.inactive_radius=getNumberOrDefault(e.inactive_radius,2),this.active_color=getColorOrDefault(e.active_color,"#000000"),this.inactive_color=getColorOrDefault(e.inactive_color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Stepper=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.index=getNumberOrDefault(e.index,1),this.length=getNumberOrDefault(e.length,1),this.enable_numbered=e.enable_numbered,this.enable_numbered&&(this.numbered=new NumberedStepper(e.numbered)),this.enable_pagination=e.enable_pagination,this.enable_pagination&&(this.pagination=new Pagination(e.pagination)),this.enable_carousel=e.enable_carousel,this.enable_carousel&&(this.carousel=new Carousel(e.carousel)),this.enable_progressbar=e.enable_progressbar,this.enable_progressbar&&(this.progressbar=new ProgressBar(e.progressbar)),this.enable_padding=null==e?void 0:e.enable_padding,this.enable_padding&&(this.padding=new Padding(e.padding)),this.enable_margin=null==e?void 0:e.enable_margin,this.enable_margin&&(this.margin=new Margin(e.margin))}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),ModalInApp=function(){function ModalInApp(t,e,n,i,o,r,a,s){var c=this,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},d=arguments.length>9?arguments[9]:void 0;_classCallCheck(this,ModalInApp),_defineProperty(this,"ProW",function(){if(!c.enable_marketing)return"";var t=c.marketing.message,e=t.alignment;return"left"===t.alignment?e="flex-start":"right"===t.alignment&&(e="flex-end"),"\n .apx-inapp-marketing".concat(c.cssPostFix," {\n align-self:").concat(e,";\n text-align:").concat(t.alignment,";\n }\n ")}),_defineProperty(this,"dMvX",function(t){var e={},n="";return t.forEach(function(t){var i,o,r,a,s,c,l,d,p,h;switch(t.type){case"fullname":document.getElementById("fname")&&(e["".concat(null!==(i=null==t?void 0:null===(o=t.name)||void 0===o?void 0:o[0])&&void 0!==i?i:"firstname")]=document.getElementById("fname").value),document.getElementById("lname")&&(e["".concat(null!==(r=null==t?void 0:null===(a=t.name)||void 0===a?void 0:a[1])&&void 0!==r?r:"lastname")]=document.getElementById("lname").value);break;case"name":document.getElementById("name")&&(e["".concat(null!==(s=null==t?void 0:t.name)&&void 0!==s?s:"name")]=document.getElementById("name").value);break;case"email":document.getElementById("email")&&(e["".concat(null!==(c=null==t?void 0:t.name)&&void 0!==c?c:"email")]=document.getElementById("email").value);break;case"phone":document.getElementById("phoneNumber")&&(e["".concat(null!==(l=null==t?void 0:t.name)&&void 0!==l?l:"phonenumber")]=document.getElementById("phoneNumber").value);break;case"date":document.getElementById("date")&&(e["".concat(null!==(d=null==t?void 0:t.name)&&void 0!==d?d:"date")]=document.getElementById("date").value);break;case"message":document.getElementById("textField")&&(e["".concat(null!==(p=null==t?void 0:t.name)&&void 0!==p?p:"feedback")]=document.getElementById("textField").value);break;case"button":n=null!==(h=null==t?void 0:t.callback)&&void 0!==h?h:""}}),{obj:e,callback:n}}),_defineProperty(this,"TRzX",function(){if(c.enable_marketing){var t=document.createElement("div");t.classList.add("apx-inapp-marketing".concat(c.cssPostFix));var e=createNewTextElement(c.marketing.message,c.currentId,"marketing");t.appendChild(e),c.inAppContainer.appendChild(t)}}),this.index=d,this.uis=l,this.terminationConfig=e,this.isWalkthrough=s,this.cssPostFix="-".concat(n,"-").concat(i).replaceAll(" ","").replace(/[^\w\s]/gi,""),this.delay=t.delay||0,this.background_color=t.bg_color||COLORS.WHITE,this.width=t.width||50,this.height=t.height||50,this.direction=new Direction(t.direction),this.position=new Position(t.position),this.enable_dismiss_actions=t.enable_dismiss_actions,this.enable_dismiss_actions&&(this.dismiss_actions=new DismissActions(t.dismiss_actions)),this.enable_dimbackground=t.enable_dimbackground,this.enable_dimbackground&&(this.dimbackground=new DimBackground(t.dimbackground)),this.enable_padding=t.enable_padding,this.enable_padding&&(this.padding=new Padding(t.padding)),this.enable_margin=t.enable_margin,this.enable_margin&&(this.margin=new Margin(t.margin)),this.enable_border=t.enable_border,this.enable_border&&(this.border=new Border(t.border)),this.enable_close_button=t.enable_close_button,this.enable_close_button&&(this.close_button=new CloseButton(t.close_button)),this.enable_scroll=t.enable_scroll,this.enable_scroll&&(this.scroll=new Scroll(t.scroll)),this.enable_icon=t.enable_icon,this.enable_icon&&(this.icon=new Icon(t.icon)),this.enable_image=t.enable_image,this.enable_image&&(this.image=new Image(t.image)),this.enable_video=t.enable_video,this.enable_video&&(this.video=new Video(t.video)),this.enable_title=t.enable_title,this.enable_title&&(this.title=new Title(t.title)),this.enable_description=t.enable_description,this.enable_description&&(this.description=new Description(t.description)),this.enable_form=t.enable_form,this.enable_form&&(this.form=new Form(t.form)),this.enable_buttons=t.enable_buttons,this.enable_buttons&&(this.buttons=new Buttons(t.buttons)),this.enable_stepper=t.enable_stepper,this.enable_stepper&&(this.stepper=new Stepper(t.stepper)),this.enable_shadow=t.enable_shadow,this.enable_shadow&&(this.shadow=new Shadow(t.shadow)),this.enable_gradient=t.enable_gradient,this.enable_gradient&&(this.gradient=new Gradient(t.gradient)),this.enable_marketing=t.enable_marketing,this.enable_marketing&&(this.marketing=new Marketing(t.marketing)),this.min_width="",this.inapp_width="auto",this.inapp_height="auto",this.media_container_height=0,this.media_width="auto",this.media_height="auto",this.configId=n,this.name=i,this.showCallback=o,this.closeCallback=r,this.stepperCallBack=a,this.currentId=makeid(10),this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return _createClass(ModalInApp,[{key:"createInAppModal",value:function(){this._setInAppDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}},{key:"_setInAppDimensions",value:function(){var t=this.direction.nudge===DIRECTION.VERTICAL?this.width/100:this.height/100,e=this.direction.nudge!==DIRECTION.VERTICAL;this.enable_image?this._setDimenstionFromResolution(this.image.width,this.image.height,t,e):this.enable_video?this.video.enable_embed?this.direction.nudge===DIRECTION.VERTICAL?(this.inapp_width="".concat(this.video.width+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"),this.media_width="".concat(this.video.width,"px")):(this.inapp_height="".concat(this.video.height+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"),this.media_container_height=this.video.height,this.media_height="".concat(this.video.height,"px"),this.min_width="".concat(this.width,"%")):this._setDimenstionFromResolution(this.video.width,this.video.height,t,e):this.enable_icon?this.direction.nudge===DIRECTION.VERTICAL?this.inapp_width="".concat(this.width,"%"):this.min_width="".concat(this.width,"%"):this.direction.nudge===DIRECTION.VERTICAL&&(this.inapp_width="".concat(this.width,"%"))}},{key:"_setDimenstionFromResolution",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=getHeightWidthFromResolution({width:t,height:e},n,i);this.media_width="".concat(o.width,"px"),this.media_height="".concat(o.height,"px"),this.media_container_height=o.height,this.direction.nudge===DIRECTION.VERTICAL?this.inapp_width="".concat(o.width+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"):(this.inapp_height="".concat(o.height+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.top+this.padding.bottom:0),"px"),this.min_width="".concat(this.width,"%"))}},{key:"_setBackgroundOverlays",value:function(){var t=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay".concat(this.cssPostFix));var e=this.overlayElement;this.enable_dimbackground&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-inapp-dimbackground-overlay".concat(this.cssPostFix)),e=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.enable_dismiss_actions&&this.dismiss_actions.outside_touch&&(e.onclick=function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container".concat(t.cssPostFix))}),document.body.appendChild(this.overlayElement)}},{key:"_setStyles",value:function(){var t=" \n ".concat(this._getBackgroundContainerStyles()," \n ").concat(this._getInAppContainerStyles()," \n ").concat(this._getScrollStyles()," \n ").concat(this._getControlsStyles()," \n ").concat(this._getInAppMediaContainerStyles(),"\n ").concat(this._getInAppNonMediaContainerStyles(),"\n ").concat(this._getTextConatinerStyles(),"\n ").concat(this._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getFormStyles(),"\n ").concat(this._getInAppButtonContainerStyles(),"\n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \n ").concat(this.ProW()," \n ").concat(this._getProgressBarStyles(),"\n ").concat(this._getBootstrapiconsStyles()," \n ").replaceAll("\n","").replace(/[\s]{2,999}/g,""),e=document.createElement("style");e.innerHTML=t,this.overlayElement.appendChild(e)}},{key:"_getBackgroundContainerStyles",value:function(){return"\n .apx-inapp-overlay".concat(this.cssPostFix," {\n width:100%;\n height:100%;\n }\n .apx-inapp-dimbackground-overlay").concat(this.cssPostFix," {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:").concat(this.enable_dimbackground?this.dimbackground.color:"transparent",";\n ").concat(this.enable_dimbackground?"opacity: ".concat(this.dimbackground.opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){var t=this.enable_border?this.border.width:0,e=t,n=t,i=t,o=t;this.enable_padding&&(e+=this.padding.top,n+=this.padding.left,i+=this.padding.right,o+=this.padding.bottom),this.enable_margin&&(e+=this.margin.top,n+=this.margin.left,i+=this.margin.right,o+=this.margin.bottom);var r="";switch(this.position.position){case INAPP_POSITION.TOP_LEFT:r="\n top:".concat(e,"px;\n left:").concat(n,"px;\n ");break;case INAPP_POSITION.TOP_CENTER:r="\n left:50%;\n top:".concat(e,"px;\n -webkit-transform: translate(-50%, ").concat(.1*e,"px);\n -moz-transform: translate(-50%, ").concat(e,"px);\n ");break;case INAPP_POSITION.TOP_RIGHT:r="\n top:".concat(e,"px;\n right:").concat(i,"px;\n ");break;case INAPP_POSITION.BOTTOM_LEFT:r="\n bottom:".concat(o,"px;\n left:").concat(n,"px;\n ");break;case INAPP_POSITION.BOTTOM_CENTER:r="\n left:50%;\n bottom:".concat(o,"px;\n -webkit-transform: translate(-50%, ").concat(.1*o,"px);\n -moz-transform: translate(-50%, ").concat(o,"px);\n ");break;case INAPP_POSITION.BOTTOM_RIGHT:r="\n bottom:".concat(o,"px;\n right:").concat(i,"px;\n ");break;case INAPP_POSITION.CENTER:default:r="\n left:50%;\n top:50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n "}var a="";this.min_width&&(a="min-width:".concat(this.min_width,";"));var s="";this.enable_border&&(s="\n border-radius: ".concat(this.border.radius,"px;\n border: ").concat(this.border.width,"px ").concat(this.border.style," ").concat(this.border.color,";\n "));var c="";this.enable_gradient&&(c="\n background-image:linear-gradient(".concat(this.gradient.direction,", ").concat(this.gradient.colors[0],", ").concat(this.gradient.colors[1],");\n "));var l="";this.enable_shadow&&(l="\n box-shadow: ".concat(this.shadow.offset_x,"px ").concat(this.shadow.offset_y,"px ").concat(this.shadow.blur_radius,"px ").concat(this.shadow.spread_radius,"px ").concat(this.shadow.color,";\n "));var d="";this.enable_padding&&(d="\n padding:".concat(this.padding.top,"px ").concat(this.padding.right,"px ").concat(this.padding.bottom,"px ").concat(this.padding.left,"px;\n "));var p=this.direction.nudge!==DIRECTION.VERTICAL?"flex-direction:row;":"flex-direction:column;";p=" ".concat(p,"\n justify-content:space-evenly;\n align-items:center;\n display:flex;\n ");var h="",u="";return this.enable_video&&this.video.enable_embed&&(h="max-width:100%;",u="max-height:100%;"),"\n .apx-inapp-container".concat(this.cssPostFix," {\n height:").concat(this.inapp_height,";\n width:").concat(this.inapp_width,";\n margin: auto;\n background-color:").concat(this.background_color,";\n z-index:9999;\n opacity:0;\n transition:all .5s cubic-bezier(.96,.23,.07,.8);\n position:fixed;\n visibility:hidden;\n\n ").concat(a,"\n ").concat(p,"\n ").concat(d,"\n ").concat(s,"\n ").concat(c,"\n ").concat(l,"\n ").concat(r,"\n ").concat(h,"\n ").concat(u,"\n }\n \n .apx-inapp-container").concat(this.cssPostFix,".open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return this.enable_scroll?"\n .apx-inapp-scroll".concat(this.cssPostFix," {\n overflow:scroll; \n overflow-x: hidden;\n height:").concat(this.scroll.height,"px;\n border-top: ").concat(this.scroll.border.width,"px ").concat(this.scroll.border.style," ").concat(this.scroll.border.color,";\n border-bottom : ").concat(this.scroll.border.width,"px ").concat(this.scroll.border.style," ").concat(this.scroll.border.color,";\n }\n "):"\n .apx-inapp-scroll".concat(this.cssPostFix," {\n overflow : hidden;\n }\n ")}},{key:"_getControlsStyles",value:function(){if(!this.enable_close_button)return"";return this.direction.non_media===DIRECTION.VERTICAL||this.direction.nudge===DIRECTION.VERTICAL?"\n .apx-inapp-close".concat(this.cssPostFix," {\n position: absolute;\n z-index:9999;\n top: ").concat(this.close_button.offset_top,"px;\n right: ").concat(this.close_button.offset_right,"px;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n cursor: pointer;\n }\n "):"\n .apx-inapp-close".concat(this.cssPostFix," {\n display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:center;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n cursor: pointer;\n }\n ")}},{key:"_getInAppMediaContainerStyles",value:function(){return"\n .apx-inapp-media-container".concat(this.cssPostFix,"{\n ").concat(this.enable_icon?"align-self:".concat(this.icon.alignment,";"):"","\n ").concat(this.enable_image||this.enable_video?"display:flex;":"","\n }")}},{key:"_getInAppNonMediaContainerStyles",value:function(){var t="";this.direction.nudge===DIRECTION.VERTICAL?t="max-height:".concat(window.innerHeight-this.media_container_height,"px;"):(this.enable_image||this.enable_video)&&(t="max-height:".concat(this.media_container_height,"px;"));return this.direction.non_media===DIRECTION.VERTICAL?"\n .apx-inapp-nonmedia-container".concat(this.cssPostFix,"{\n width:100%;\n display:flex;\n flex-direction:column;\n justify-content:center;\n align-items:stretch;\n ").concat(t,"\n }\n "):"\n .apx-inapp-nonmedia-container".concat(this.cssPostFix,"{\n width:100%;\n flex-grow:2;\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n align-items:center;\n ").concat(t,"\n }\n ")}},{key:"_getTextConatinerStyles",value:function(){return"\n .apx-inapp-text-container".concat(this.cssPostFix,"{\n width:100%;\n display:flex;\n flex-direction:column;\n justify-content: center;\n overflow: hidden;\n align-items:center;\n }\n ")}},{key:"_getTitleStyles",value:function(){if(!this.enable_title)return"";var t="";if(this.title.enable_icon){var e="";this.title.icon.enable_border&&(e="border-radius:".concat(this.title.icon.border.radius,"%;\n border:").concat(this.title.icon.border.width,"px ").concat(this.title.icon.border.style," ").concat(this.title.icon.border.color,";")),t="\n height: ".concat(this.title.icon.height,"px;\n width: ").concat(this.title.icon.width,"px;\n margin-right: 15px;\n ").concat(e,"\n ")}var n="";this.title.enable_margin&&(n=" \n margin-top:".concat(this.title.margin.top,"px;\n margin-bottom:").concat(this.title.margin.bottom,"px;\n margin-left:").concat(this.title.margin.left,"px;\n margin-right:").concat(this.title.margin.right,"px;\n "));var i="";return this.title.enable_padding&&(i=" \n padding-top:".concat(this.title.padding.top,"px;\n padding-bottom:").concat(this.title.padding.bottom,"px;\n padding-left:").concat(this.title.padding.left,"px;\n padding-right:").concat(this.title.padding.right,"px;\n ")),"\n .apx-inapp-title-div".concat(this.cssPostFix," {\n width:100%;\n display:flex;\n justify-content:").concat(this.title.alignment,";\n text-align:").concat(this.title.alignment,";\n ").concat(n,"\n ").concat(i,"\n }\n .apx-inapp-title-icon").concat(this.cssPostFix," {\n ").concat(t,"\n }\n ")}},{key:"_getDescriptionStyles",value:function(){if(!this.enable_description)return"";var t="";this.description.enable_margin&&(t=" \n margin-top:".concat(this.description.margin.top,"px;\n margin-bottom:").concat(this.description.margin.bottom,"px;\n margin-left:").concat(this.description.margin.left,"px;\n margin-right:").concat(this.description.margin.right,"px;\n "));var e="";return this.description.enable_padding&&(e=" \n padding-top:".concat(this.description.padding.top,"px;\n padding-bottom:").concat(this.description.padding.bottom,"px;\n padding-left:").concat(this.description.padding.left,"px;\n padding-right:").concat(this.description.padding.right,"px;\n ")),"\n .apx-inapp-description".concat(this.cssPostFix," {\n width:100%;\n justify-content:").concat(this.description.alignment,";\n text-align:").concat(this.description.alignment,";\n ").concat(t,"\n ").concat(e,"\n }\n ")}},{key:"_getFormStyles",value:function(){if(this.enable_form){var t="";return this.form.enable_padding&&(t="padding:".concat(this.form.padding.top,"px ").concat(this.form.padding.right,"px ").concat(this.form.padding.bottom,"px ").concat(this.form.padding.left,"px;")),"\n .apx-inapp-form-container".concat(this.cssPostFix,"{\n ").concat(t,"\n font-size:").concat(this.form.font.size,"px;\n font-family:").concat(this.form.font.family,";\n display:flex;\n flex-direction:column;\n }")}}},{key:"_getInAppButtonContainerStyles",value:function(){return"\n .apx-inapp-button-container".concat(this.cssPostFix,"{\n display:flex;\n flex-direction:row;\n align-items:center;\n justify-content:center;\n margin:0 10px 0 10px;\n }\n .apx-inapp-top-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }\n .apx-inapp-center-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }\n .apx-inapp-bottom-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }")}},{key:"_getIconStyles",value:function(){var t="";if(this.enable_icon){var e="";this.icon.enable_border&&(e="\n border-radius:".concat(this.icon.border.radius,"%;\n border:").concat(this.icon.border.width,"px ").concat(this.icon.border.style," ").concat(this.icon.border.color,";\n "));var n="";this.icon.enable_margin&&(n="\n margin-top:".concat(this.icon.margin.top,"px;\n margin-bottom:").concat(this.icon.margin.bottom,"px;\n margin-left:").concat(this.icon.margin.left,"px;\n margin-right:").concat(this.icon.margin.right,"px;\n "));var i="";this.icon.enable_padding&&(i="\n padding-top:".concat(this.icon.padding.top,"px;\n padding-bottom:").concat(this.icon.padding.bottom,"px;\n padding-left:").concat(this.icon.padding.left,"px;\n padding-right:").concat(this.icon.padding.right,"px;\n ")),t="\n .apx-inapp-icon-container".concat(this.cssPostFix," {\n text-align:").concat(this.icon.alignment,";\n }\n .apx-inapp-icon-content").concat(this.cssPostFix," {\n height: ").concat(this.icon.height,"px;\n width: ").concat(this.icon.width,"px;\n ").concat(e,"\n ").concat(n,"\n ").concat(i,"\n }\n ")}return t}},{key:"_getImageStyles",value:function(){var t="";if(this.enable_image)if(this.image.enable_background_image)t="\n .apx-inapp-image".concat(this.cssPostFix,"{\n background-image: url('").concat(this.image.path,"');\n background-repeat: no-repeat;\n background-attachment: fixed; \n background-size: 100% 100%;\n height: ").concat(this.media_height,";\n width: ").concat(this.media_width,";\n box-shadow: inset ").concat(this.media_width," ").concat(this.media_height," 0px 0px ").concat(hexToRGB(this.image.background_image.mask_color,this.image.background_image.mask_opacity),",inset -").concat(this.media_width," -").concat(this.media_height," 0px 0px ").concat(hexToRGB(this.image.background_image.mask_color,this.image.background_image.mask_opacity),"\n }\n ");else{var e="";this.image.enable_border&&(e="\n border-radius:".concat(this.image.border.radius,"%;\n border:").concat(this.image.border.width,"px ").concat(this.image.border.style," ").concat(this.image.border.color,";\n ")),t="\n .apx-inapp-image".concat(this.cssPostFix,"{\n height: ").concat(this.media_height,";\n width: ").concat(this.media_width,";\n ").concat(e,"\n }\n ")}return t}},{key:"_getVideoStyles",value:function(){var t="";if(this.enable_video){var e="";this.video.enable_border&&(e="\n border-radius:".concat(this.video.border.radius,"%;\n border:").concat(this.video.border.width,"px ").concat(this.video.border.style," ").concat(this.video.border.color,";\n ")),t="\n .apx-inapp-video".concat(this.cssPostFix," {\n width:").concat(this.media_width,";\n height:").concat(this.media_height,";\n ").concat(e,"\n }\n ")}return t}},{key:"_getProgressBarStyles",value:function(){var t="";return this.has_progress_bar&&(t="\n .apx-inapp-progress-bar".concat(this.cssPostFix,"{\n position: absolute;\n width:100%;\n height:").concat(this.progressbar.width,"px;\n ").concat("top"===this.progressbar.position?"top:0px;":"bottom:0px;","\n left:0px;\n z-index:999999;\n overflow:hidden;\n cursor: pointer;\n background:").concat(this.progressbar.reamining_color,";\n }\n .apx-inapp-bar").concat(this.cssPostFix,"{\n width:100%;\n height:100%;\n background:").concat(this.progressbar.progress_color,";\n }")),t}},{key:"_getBootstrapiconsStyles",value:function(){return'\n .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .bi-x::before { \n content: "62a"; \n }\n .bi-x-circle-fill::before { \n content: "622"; \n }\n '}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this.direction.nudge===DIRECTION.VERTICAL&&(this._createTopButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.TOP)),this._createMediaContainer(),this.direction.nudge===DIRECTION.VERTICAL&&(this._createCenterButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER)),this._setImageOptions(),this._setVideoOptions(),this._setIconOptions(),this._createNonMediaContainer(),this._setTextContainer(),this._setTitleContent(),this._setDescriptionContent(),this._setFormContent(),this._createButtonContainer(),this._createBottomButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.BOTTOM),this._setProgressBar(),this._setCloseButton(),this.TRzX()}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container".concat(this.cssPostFix)),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_createMediaContainer",value:function(){this.mediaContainer=document.createElement("div"),this.mediaContainer.classList.add("apx-inapp-media-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.mediaContainer)}},{key:"_setImageOptions",value:function(){if(this.enable_image)if(this.image.enable_background_image)this.inAppContainer.classList.add("apx-inapp-image".concat(this.cssPostFix));else{var t=document.createElement("img");t.src=this.image.path,t.classList.add("apx-inapp-image".concat(this.cssPostFix)),this.mediaContainer.appendChild(t)}}},{key:"_setVideoOptions",value:function(){if(this.enable_video)if(this.video.enable_embed){var t=document.createElement("div");t.classList.add("apx-inapp-video".concat(this.cssPostFix)),t.innerHTML="".concat(this.video.embed.html),this.mediaContainer.appendChild(t)}else{var e=document.createElement("video");e.classList.add("apx-inapp-video".concat(this.cssPostFix)),e.controlsList="noplaybackrate nodownload",e.disablePictureInPicture=!0,e.controls=!0,e.muted=!this.video.enable_audio;var n=document.createElement("source");n.setAttribute("src",this.video.path),n.setAttribute("type","video/mp4"),e.appendChild(n),this.mediaContainer.appendChild(e)}}},{key:"_setIconOptions",value:function(){if(this.enable_icon){var t=document.createElement("div");t.classList.add("apx-inapp-icon-container".concat(this.cssPostFix));var e=document.createElement("img");e.src=this.icon.path,e.classList.add("apx-inapp-icon-content".concat(this.cssPostFix)),t.appendChild(e),this.mediaContainer.appendChild(t)}}},{key:"_createNonMediaContainer",value:function(){this.nonMediaContainer=document.createElement("div"),this.nonMediaContainer.classList.add("apx-inapp-nonmedia-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.nonMediaContainer)}},{key:"_setTextContainer",value:function(){this.textContainer=document.createElement("div"),this.textContainer.classList.add("apx-inapp-text-container".concat(this.cssPostFix)),this.nonMediaContainer.appendChild(this.textContainer)}},{key:"_setTitleContent",value:function(){if(this.enable_title){var t=document.createElement("div");if(t.classList.add("apx-inapp-title-div".concat(this.cssPostFix)),this.title.enable_icon){var e=document.createElement("img");e.src=this.title.icon.path,e.classList.add("apx-inapp-title-icon".concat(this.cssPostFix)),t.appendChild(e)}t.appendChild(createNewTextElement(this.title,this.currentId,"title")),this.textContainer.appendChild(t)}}},{key:"_setDescriptionContent",value:function(){if(this.enable_description){var t=document.createElement("div");t.classList.add("apx-inapp-description".concat(this.cssPostFix)),t.appendChild(createNewTextElement(this.description,this.currentId,"description")),t.classList.add("apx-inapp-scroll".concat(this.cssPostFix)),this.textContainer.appendChild(t)}}},{key:"_setFormContent",value:function _setFormContent(){var _this3=this;if(this.enable_form){var _this$form$elements,formContainer=document.createElement("form");formContainer.classList.add("apx-inapp-form-container".concat(this.cssPostFix));var dummy="";null===(_this$form$elements=this.form.elements)||void 0===_this$form$elements||_this$form$elements.forEach(function(t){dummy+=generateFormField(t)}),formContainer.innerHTML=dummy,this.nonMediaContainer.appendChild(formContainer);var form=document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));form.addEventListener("submit",function(e){e.preventDefault();var _this3$generateRespon=_this3.dMvX(_this3.form.elements),obj=_this3$generateRespon.obj,callback=_this3$generateRespon.callback,evalString="(obj)=>"+callback+"(obj)",evalFunction=eval(evalString);evalFunction(obj),_this3.closeCallback(_this3.overlayElement,"dismiss",".apx-inapp-container".concat(_this3.cssPostFix))})}}},{key:"_createButtonContainer",value:function(){this.direction.non_media!==DIRECTION.VERTICAL&&(this.buttonContainer=document.createElement("div"),this.buttonContainer.classList.add("apx-inapp-button-container".concat(this.cssPostFix)),this.nonMediaContainer.appendChild(this.buttonContainer))}},{key:"_setProgressBar",value:function(){if(this.enable_stepper&&this.stepper.enable_progressbar){this.progressbar=this.stepper.progressbar;var t=document.createElement("div");t.classList.add("apx-inapp-progress-bar".concat(this.cssPostFix));var e=document.createElement("div");e.classList.add("apx-inapp-bar".concat(this.cssPostFix)),this.stepper.index<=this.stepper.length?e.style.transform="translateX(".concat(-(100-100/this.stepper.length*this.stepper.index),"%)"):t.style.visibility="hidden",t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_createTopButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_top&&(this.topButtonContainer=document.createElement("div"),this.topButtonContainer.classList.add("apx-inapp-top-button-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.topButtonContainer))}},{key:"_createCenterButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_center&&(this.centerButtonContainer=document.createElement("div"),this.centerButtonContainer.classList.add("apx-inapp-center-button-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.centerButtonContainer))}},{key:"_createBottomButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_bottom&&(this.bottomButtonContainer=document.createElement("div"),this.bottomButtonContainer.classList.add("apx-inapp-bottom-button-container".concat(this.cssPostFix)),this.direction.non_media===DIRECTION.VERTICAL?this.nonMediaContainer.appendChild(this.bottomButtonContainer):this.buttonContainer.appendChild(this.bottomButtonContainer))}},{key:"_setButtons",value:function(t){var e=this;if(this.enable_buttons&&(t===BUTTON_CONTAINER_POSITION.TOP&&this.buttons.enable_top||t===BUTTON_CONTAINER_POSITION.CENTER&&this.buttons.enable_center||t===BUTTON_CONTAINER_POSITION.BOTTOM&&this.buttons.enable_bottom)){var n=this.overlayElement,i=function(t,i){e.closeCallback(n,i,".apx-inapp-container".concat(e.cssPostFix))},o={next:function(t,n){i(0,"next"),e.stepperCallBack(t,n)},prev:function(t,n){i(0,"prev"),e.stepperCallBack(t,n)},complete:i,cancel:i,_isCancelled:!1,action:""},r={};r=t===BUTTON_CONTAINER_POSITION.TOP?this.buttons.top:t===BUTTON_CONTAINER_POSITION.CENTER?this.buttons.center:this.buttons.bottom;var a=generateButtonsBlock(this.configId,this.name,this.stepper,EVENT_PREFIX.INAPP,r,this.direction.buttons,t,o,this.isWalkthrough,this.uis,this.index);t===BUTTON_CONTAINER_POSITION.TOP?this.topButtonContainer.appendChild(a):t===BUTTON_CONTAINER_POSITION.CENTER?this.centerButtonContainer.appendChild(a):this.bottomButtonContainer.appendChild(a)}}},{key:"_setCloseButton",value:function(){var t=this;if(this.enable_close_button){var e=document.createElement("span");this.close_button.type===CLOSE_BUTTON_STYLE.NORMAL?e.innerHTML=getCloseSVG(this.close_button.width,this.close_button.height,this.close_button.color):this.close_button.type===CLOSE_BUTTON_STYLE.FILL?"circle"===this.close_button.shape?e.innerHTML=getCloseWithCircleSVG(this.close_button.width,this.close_button.height,this.close_button.fill_color,this.close_button.color):e.innerHTML=getCloseWithRectangleSVG(this.close_button.width,this.close_button.height,this.close_button.fill_color,this.close_button.color):e.innerHTML='<img src="'.concat(this.close_button.path,'" width="').concat(this.close_button.width,'px" height="').concat(this.close_button.height,'px"></img>'),e.classList.add("apx-inapp-close".concat(this.cssPostFix)),e.addEventListener("click",function(){t.closeCallback(t.overlayElement,t.close_button.action,".apx-inapp-container".concat(t.cssPostFix))}),this.direction.non_media===DIRECTION.VERTICAL||this.direction.nudge===DIRECTION.VERTICAL?this.inAppContainer.appendChild(e):this.buttonContainer.appendChild(e)}}},{key:"_setAutoTerminate",value:function(){var t=this;!0===this.terminationConfig.auto_dismiss&&window.setTimeout(function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container".concat(t.cssPostFix))},this.delay+this.terminationConfig.duration)}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}}]),ModalInApp}(),PIPButton=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.fill_color=getColorOrDefault(e.fill_color,"#FFFFFF"),this.type=getStringOrDefault(e.type,"normal"),this.path=e.path,this.offset_top=getNumberOrDefault(e.offset_top,8),this.offset_right=getNumberOrDefault(e.offset_right,8),this.height=getNumberOrDefault(e.height,24),this.width=getNumberOrDefault(e.width,24),this.action=getStringOrDefault(e.action,"dismiss"),this.shape=getStringOrDefault(e.shape,"circle")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),PIP=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.enable_toggles=e.enable_toggles}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Logger=window.ApxorLogger,VideoInApp=function(){function t(e,n,i,o,r){var a=this;_classCallCheck(this,t),_defineProperty(this,"MOZi",function(){a.createPlayer();try{if(a.mode==VIDEOS_MODES.PIP){var t=a.videoElement,e=a.hideCallback;t.onloadedmetadata=function(){t.disablePictureInPicture=!1,t.requestPictureInPicture().catch(function(t){Logger.error("Can't show PIP:".concat(t)),e()})}}else a.HMFI();a.showCallback()}catch(t){Logger.error("Can't show video:".concat(t)),a.hideCallback()}}),_defineProperty(this,"jcAJ",function(){var t=getHeightWidthFromResolution(a.video),e=t.width,n=t.height;a.height=n,a.width=e}),_defineProperty(this,"Wfze",function(){var t=document.getElementById("apx-mpl-styles");t&&t.remove()}),_defineProperty(this,"tvXC",function(){a.videoElement.addEventListener("ended",function(){var t=document.getElementById("apx-cta-btn");t&&t.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))}),a.videoElement.addEventListener("play",function(){var t=document.getElementById("apx-cta-btn");t&&t.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))})}),_defineProperty(this,"JVqR",function(){if(a.enable_pip_button&&a.pip.enable_toggles){a.videoElement.addEventListener("leavepictureinpicture",function(){a.videoElement.disablePictureInPicture=!0,"PIP"===a.mode?(a.hideCallback(),a.videoPlayer.remove()):a.videoPlayer.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))},!1);a.videoElement.addEventListener("enterpictureinpicture",function(){a.videoPlayer.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))},!1)}}),_defineProperty(this,"CFBY",function(){if(a.enable_close_button,a.enable_close_button){var t=document.createElement("span");a.close_button.type===CLOSE_BUTTON_STYLE.NORMAL?t.innerHTML=getCloseSVG(a.close_button.width,a.close_button.height,a.close_button.color):a.close_button.type===CLOSE_BUTTON_STYLE.FILL?"circle"===a.close_button.shape?t.innerHTML=getCloseWithCircleSVG(a.close_button.width,a.close_button.height,a.close_button.fill_color,a.close_button.color):t.innerHTML=getCloseWithRectangleSVG(a.close_button.width,a.close_button.height,a.close_button.fill_color,a.close_button.color):t.innerHTML='<img src="'.concat(a.close_button.path,'" width="').concat(a.close_button.width,'px" height="').concat(a.close_button.height,'px"></img>'),t.classList.add("apx-video-close-btn".concat(a.cssPostFix)),t.addEventListener("click",function(){try{a.videoPlayer.remove(),a.hideCallback("cancel"),a.Wfze()}catch(t){console.log("Error \n ".concat(t," \n occured while closing the video"))}}),a.videoPlayer.appendChild(t)}if(a.enable_pip_button){var e=document.createElement("span");e.innerHTML=getPIPSVG(a.pip_button.width,a.pip_button.height,a.pip_button.color),e.classList.add("apx-video-pip-btn".concat(a.cssPostFix)),e.addEventListener("click",function(){try{a.videoElement.disablePictureInPicture=!1,a.videoElement.requestPictureInPicture()}catch(t){console.log("Error \n ".concat(t," \n while starting the PIP"))}}),a.videoPlayer.appendChild(e)}}),_defineProperty(this,"uxdx",function(){a.videoPlayer.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))}),_defineProperty(this,"HMFI",function(){a.videoPlayer.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))}),_defineProperty(this,"XfLX",function(){return a.videoElement}),this.videoPlayer=null,this.videoElement=null,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer",this.cssPostFix="-".concat(this.configId,"-").concat(this.name).replaceAll(" ","").replace(/[^\w\s]/gi,""),this.videoConfig=e,this.bg_color=e.bg_color,this.mode=getStringOrDefault(e.mode,"PIP"),this.position=new Position(e.position),this.enable_buttons=e.enable_buttons,this.enable_buttons&&(this.buttons=new Buttons(e.buttons)),this.direction=new Direction(e.direction),this.enable_close_button=e.enable_close_button,this.enable_close_button&&(this.close_button=new CloseButton(e.close_button)),this.enable_pip_button=e.enable_pip_button,this.enable_pip_button&&(this.pip_button=new PIPButton(e.pip_button)),this.video=new Video(e.video),this.pip=new PIP(e.pip)}return _createClass(t,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apx-video-player"),this.videoPlayer.style="background-color:".concat(this.bg_color,";"),this.jcAJ(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this.tvXC(),this.JVqR(),this.CFBY(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER),this.uxdx(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apx-mpl-styles")){var t,e,n=document.createElement("style");n.setAttribute("id","apx-mpl-styles"),n.innerHTML="\n div.apx-video-player".concat(this.cssPostFix,"--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n\n .apx-video-hide-elmt").concat(this.cssPostFix," {\n display : none;\n }\n\n .apx-video-pip-btn").concat(this.cssPostFix," {\n position: absolute;\n top: 10px;\n left: 10px;\n width: ").concat(this.pip_button.width,"px;\n height: ").concat(this.pip_button.height,"px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apx-video-pip-btn").concat(this.cssPostFix," {\n opacity: 1;\n }\n \n .apx-video-close-btn").concat(this.cssPostFix," {\n position: absolute;\n top: 10px;\n top: ").concat(null===(t=this.close_button)||void 0===t?void 0:t.offset_top,"px;\n right: ").concat(null===(e=this.close_button)||void 0===e?void 0:e.offset_right,"px;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apx-video-close-btn").concat(this.cssPostFix," {\n opacity: 1;\n }\n\n .apx-video-cta").concat(this.cssPostFix,' {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(n)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.position.position){case INAPP_POSITION.TOP_LEFT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--topLeft"));break;case INAPP_POSITION.TOP_RIGHT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--topRight"));break;case INAPP_POSITION.BOTTOM_LEFT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--bottomLeft"));break;case INAPP_POSITION.BOTTOM_RIGHT:default:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--bottomRight"))}}},{key:"_setPlayerContent",value:function(){this.videoElement=document.createElement("video"),this.videoElement.width=this.width,this.videoElement.height=this.height,this.videoElement.controlsList="noplaybackrate nodownload",this.videoElement.controls=!0,this.videoElement.disablePictureInPicture=!0,this.videoElement.autoplay=!0,this.video.enable_audio&&(this.videoElement.muted=!0);var t=document.createElement("source");t.setAttribute("src",this.video.path),t.setAttribute("type",this.video.format),this.videoElement.appendChild(t),this.videoPlayer.appendChild(this.videoElement)}},{key:"_setButtons",value:function(t){var e=this;if(this.enable_buttons&&(t===BUTTON_CONTAINER_POSITION.TOP&&this.buttons.enable_top||t===BUTTON_CONTAINER_POSITION.CENTER&&this.buttons.enable_center||t===BUTTON_CONTAINER_POSITION.BOTTOM&&this.buttons.enable_bottom)){var n=function(){try{e.videoPlayer.remove(),e.hideCallback(),e.Wfze()}catch(t){console.log("Can't close the video player\n".concat(t))}},i={next:n,prev:n,complete:n,cancel:n,_isCancelled:!1,action:""},o={};o=t===BUTTON_CONTAINER_POSITION.TOP?this.buttons.top:t===BUTTON_CONTAINER_POSITION.CENTER?this.buttons.center:this.buttons.bottom;var r=generateButtonsBlock(this.configId,this.name,this.stepper,EVENT_PREFIX.INAPP,o,this.direction.buttons,t,i,this.isWalkthrough,this.uis,this.index);r.setAttribute("id","apx-cta-btn"),r.classList.add("apx-video-cta".concat(this.cssPostFix)),r.classList.add("apx-video-hide-elmt".concat(this.cssPostFix)),this.videoPlayer.appendChild(r)}}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apx-video-player")}},{key:"canShowVideoInApp",value:function(t){var e=t.binding,n=t.activity,i=!0;return e&&""!=n&&window.location.pathname!==n&&(i=!1),i}}]),t}(),RTM=_createClass(function t(){var e=this;_classCallCheck(this,t),_defineProperty(this,"SvZF",{}),_defineProperty(this,"isShowingAction",!1),_defineProperty(this,"currentAction",null),_defineProperty(this,"version",31),_defineProperty(this,"isInitialised",!1),_defineProperty(this,"JwbB",{}),_defineProperty(this,"PQYS",function(){e.isInitialised=!0;var t=history.pushState;history.pushState=function(){var e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};var n=history.replaceState;history.replaceState=function(){var t=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){e.removeAll()})}),_defineProperty(this,"show",function(t,n,i,o){e.isInitialised||e.PQYS();try{if(null!==e.currentAction&&void 0!==e.currentAction)return void console.error("An action already being shown");var r=JSON.parse(t),a={};a.auto_dismiss=n>0,a.duration=n,"inline"===r.display_type?e.currentAction=showTooltip(r,[],a,{configId:i,configName:o},e):showCoachmarkWithDelay(e,r,{configId:i,configName:o},a,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inline_shown",i,o),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(){e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inline_dismissed",i,o),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)},function(t){e.currentAction=t})}catch(t){var s,c;e.isShowingAction=!1,null===(s=window)||void 0===s||null===(c=s.Apxor)||void 0===c||c.updateFlag(!1),console.error(t)}}),_defineProperty(this,"removeAll",function(){if(window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1),null!==e.currentAction&&void 0!==e.currentAction){e.isShowingAction=!1;try{e.currentAction(),e.currentAction=null,console.log("Callback is called")}catch(t){}}}),_defineProperty(this,"createInAppVideo",function(t,n,i){var o=JSON.parse(t);VideoInApp.isAVideoBeingPlayed()||VideoInApp.canShowVideoInApp(o)&&new VideoInApp(o,n,i,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inapp_shown",n,i),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(){e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inapp_dismissed",n,i),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)}).MOZi()}),_defineProperty(this,"createInAppModal",function(t,n,i){var o=JSON.parse(t);new ModalInApp(o,n,i,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inapp_shown",n,i),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(t,o){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c",s=document.querySelector(a);null==s||null===(r=s.classList)||void 0===r||r.toggle("open"),t.remove(),e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inapp_dismissed",n,i),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)},function(){},!1,[],0).createInAppModal()})}),rtm=new RTM;window.ApxorRTM=rtm;try{void 0===exports&&null===exports||(exports.default=rtm,module.exports=exports.default)}catch(t){}return rtm});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self)["apxor-rtm"]=e()}(this,function(){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(t){return _typeof(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof(t)})(t)}function _classCallCheck$1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass$1(t,e,n){return e&&_defineProperties$1(t.prototype,e),n&&_defineProperties$1(t,n),t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function _objectSpread2(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){_defineProperty$1(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}function _inherits$1(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf$1(t,e)}function _getPrototypeOf$1(t){return(_getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf$1(t,e){return(_setPrototypeOf$1=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _assertThisInitialized$1(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn$1(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized$1(t):e}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function isElement(t){return t instanceof HTMLElement}function isFunction(t){return"function"==typeof t}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isUndefined(t){return void 0===t}function _extends$1(){return(_extends$1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua),isUCBrowser=/UCBrowser\//.test(ua),isIOS=isBrowser&&/iPhone|iPad|iPod/.test(navigator.platform),defaultProps={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},POPPER_INSTANCE_DEPENDENCIES=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],PASSIVE={passive:!0},PREVENT_OVERFLOW_PADDING=5,ROUND_ARROW_INNER_HTML='<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>',IOS_CLASS="tippy-iOS",POPPER_CLASS="tippy-popper",TOOLTIP_CLASS="tippy-tooltip",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",POPPER_SELECTOR="."+POPPER_CLASS,TOOLTIP_SELECTOR="."+TOOLTIP_CLASS,CONTENT_SELECTOR="."+CONTENT_CLASS,BACKDROP_SELECTOR="."+BACKDROP_CLASS,ARROW_SELECTOR="."+ARROW_CLASS,SVG_ARROW_SELECTOR="."+SVG_ARROW_CLASS,currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,isIOS&&document.body.classList.add(IOS_CLASS),window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var t=performance.now();t-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove),isIOS||document.body.classList.remove(IOS_CLASS)),lastMouseMoveTime=t}function onWindowBlur(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,_extends$1({},PASSIVE,{capture:!0})),window.addEventListener("blur",onWindowBlur)}var keys=Object.keys(defaultProps);function getDataAttributeProps(t){return keys.reduce(function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e},{})}function isReferenceElement(t){return!(!t||!t._tippy||t.classList.contains(POPPER_CLASS))}function hasOwnProperty(t,e){return{}.hasOwnProperty.call(t,e)}function getArrayOfElements(t){if(isRealElement(t))return[t];if(t instanceof NodeList)return arrayFrom(t);if(Array.isArray(t))return t;try{return arrayFrom(document.querySelectorAll(t))}catch(t){return[]}}function getValue(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function getModifier(t,e){return t&&t.modifiers&&t.modifiers[e]}function isRealElement(t){return t instanceof Element}function innerHTML(){return"innerHTML"}function invokeWithArgsOrReturn(t,e){return"function"==typeof t?t.apply(null,e):t}function setFlipModifierEnabled(t,e){t.filter(function(t){return"flip"===t.name})[0].enabled=e}function div(){return document.createElement("div")}function setTransitionDuration(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function setVisibilityState(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function evaluateProps(t,e){var n=_extends$1({},e,{content:invokeWithArgsOrReturn(e.content,[t])},e.ignoreAttributes?{}:getDataAttributeProps(t));return n.animateFill&&(n.arrow=!1),(n.arrow||isUCBrowser)&&(n.animateFill=!1),n}function debounce(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)};var n}function preserveInvocation(t,e,n){t&&t!==e&&t.apply(null,n)}function arrayFrom(t){return[].slice.call(t)}function closestCallback(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null}function includes(t,e){return t.indexOf(e)>-1}function setInnerHTML(t,e){t[innerHTML()]=isRealElement(e)?e[innerHTML()]:e}function setContent(t,e){if(isRealElement(e.content))setInnerHTML(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function getChildren(t){return{tooltip:t.querySelector(TOOLTIP_SELECTOR),backdrop:t.querySelector(BACKDROP_SELECTOR),content:t.querySelector(CONTENT_SELECTOR),arrow:t.querySelector(ARROW_SELECTOR)||t.querySelector(SVG_ARROW_SELECTOR)}}function addInertia(t){t.setAttribute("data-inertia","")}function removeInertia(t){t.removeAttribute("data-inertia")}function createArrowElement(t){var e=div();return!0===t?e.className=ARROW_CLASS:(e.className=SVG_ARROW_CLASS,isRealElement(t)?e.appendChild(t):setInnerHTML(e,"round"===t?ROUND_ARROW_INNER_HTML:t)),e}function createBackdropElement(t){var e=div();return e.className=BACKDROP_CLASS,e.setAttribute("data-state",t?"visible":"hidden"),e}function addInteractive(t){t.setAttribute("data-interactive","")}function removeInteractive(t){t.removeAttribute("data-interactive")}function updateTransitionEndListener(t,e,n){var i=isUCBrowser&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function getBasePlacement(t){return t.split("-")[0]}function reflow(t){t.offsetHeight}function updateTheme(t,e,n){n.split(" ").forEach(function(n){n&&t.classList[e](n+"-theme")})}function createPopperElement(t,e){var n=div();n.className=POPPER_CLASS,n.style.position="absolute",n.style.top="0",n.style.left="0";var i=div();i.className=TOOLTIP_CLASS,i.id="tippy-"+t,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),updateTheme(i,"add",e.theme);var o=div();return o.className=CONTENT_CLASS,o.setAttribute("data-state","hidden"),e.interactive&&addInteractive(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(createArrowElement(e.arrow))),e.animateFill&&(i.appendChild(createBackdropElement(!1)),i.setAttribute("data-animatefill","")),e.inertia&&addInertia(i),setContent(o,e),i.appendChild(o),n.appendChild(i),updatePopperElement(n,e,e,!1),n}function updatePopperElement(t,e,n,i){var o=getChildren(t),r=o.tooltip,a=o.content,s=o.backdrop,c=o.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),e.content!==n.content&&setContent(a,n),!e.animateFill&&n.animateFill?(r.appendChild(createBackdropElement(i)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(createArrowElement(n.arrow)),r.setAttribute("data-arrow","")):e.arrow&&!n.arrow?(r.removeChild(c),r.removeAttribute("data-arrow")):e.arrow!==n.arrow&&(r.removeChild(c),r.appendChild(createArrowElement(n.arrow))),!e.interactive&&n.interactive?addInteractive(r):e.interactive&&!n.interactive&&removeInteractive(r),!e.inertia&&n.inertia?addInertia(r):e.inertia&&!n.inertia&&removeInertia(r),e.theme!==n.theme&&(updateTheme(r,"remove",e.theme),updateTheme(r,"add",n.theme))}function isCursorOutsideInteractiveBorder(t,e,n,i){if(!t)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,c=e.top-r>("top"===t?a+s:a),l=r-e.bottom>("bottom"===t?a+s:a),d=e.left-o>("left"===t?a+s:a),p=o-e.right>("right"===t?a+s:a);return c||l||d||p}for(var isBrowser$1="undefined"!=typeof window&&"undefined"!=typeof document,longerTimeoutBrowsers=["Edge","Trident","Firefox"],timeoutDuration=0,i=0;i<longerTimeoutBrowsers.length;i+=1)if(isBrowser$1&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){timeoutDuration=1;break}function microtaskDebounce(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function taskDebounce(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$1(t){return t&&"[object Function]"==={}.toString.call(t)}function getStyleComputedProperty(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function getParentNode(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function getScrollParent(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=getStyleComputedProperty(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:getScrollParent(getParentNode(t))}var isIE11=isBrowser$1&&!(!window.MSInputMethodContext||!document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE$1(t){return 11===t?isIE11:10===t?isIE10:isIE11||isIE10}function getOffsetParent(t){if(!t)return document.documentElement;for(var e=isIE$1(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===getStyleComputedProperty(n,"position")?getOffsetParent(n):n:t?t.ownerDocument.documentElement:document.documentElement}function isOffsetContainer(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||getOffsetParent(t.firstElementChild)===t)}function getRoot(t){return null!==t.parentNode?getRoot(t.parentNode):t}function findCommonOffsetParent(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a=r.commonAncestorContainer;if(t!==a&&e!==a||i.contains(o))return isOffsetContainer(a)?a:getOffsetParent(a);var s=getRoot(t);return s.host?findCommonOffsetParent(s.host,e):findCommonOffsetParent(t,getRoot(e).host)}function getScroll(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function includeScroll(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=getScroll(e,"top"),o=getScroll(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function getBordersSize(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function getSize(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],isIE$1(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function getWindowSizes(t){var e=t.body,n=t.documentElement,i=isIE$1(10)&&getComputedStyle(n);return{height:getSize("Height",e,n,i),width:getSize("Width",e,n,i)}}var classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),defineProperty=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},_extends$2=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function getClientRect(t){return _extends$2({},t,{right:t.left+t.width,bottom:t.top+t.height})}function getBoundingClientRect(t){var e={};try{if(isIE$1(10)){e=t.getBoundingClientRect();var n=getScroll(t,"top"),i=getScroll(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?getWindowSizes(t.ownerDocument):{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-a,l=t.offsetHeight-s;if(c||l){var d=getStyleComputedProperty(t);c-=getBordersSize(d,"x"),l-=getBordersSize(d,"y"),o.width-=c,o.height-=l}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=isIE$1(10),o="HTML"===e.nodeName,r=getBoundingClientRect(t),a=getBoundingClientRect(e),s=getScrollParent(t),c=getStyleComputedProperty(e),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=getClientRect({top:r.top-a.top-l,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var h=parseFloat(c.marginTop,10),u=parseFloat(c.marginLeft,10);p.top-=l-h,p.bottom-=l-h,p.left-=d-u,p.right-=d-u,p.marginTop=h,p.marginLeft=u}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=includeScroll(p,e)),p}function getViewportOffsetRectRelativeToArtbitraryNode(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=getOffsetRectRelativeToArbitraryNode(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:getScroll(n),s=e?0:getScroll(n,"left");return getClientRect({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r})}function isFixed(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===getStyleComputedProperty(t,"position"))return!0;var n=getParentNode(t);return!!n&&isFixed(n)}function getFixedPositionOffsetParent(t){if(!t||!t.parentElement||isIE$1())return document.documentElement;for(var e=t.parentElement;e&&"none"===getStyleComputedProperty(e,"transform");)e=e.parentElement;return e||document.documentElement}function getBoundaries(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?getFixedPositionOffsetParent(t):findCommonOffsetParent(t,e);if("viewport"===i)r=getViewportOffsetRectRelativeToArtbitraryNode(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=getScrollParent(getParentNode(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var c=getOffsetRectRelativeToArbitraryNode(s,a,o);if("HTML"!==s.nodeName||isFixed(a))r=c;else{var l=getWindowSizes(t.ownerDocument),d=l.height,p=l.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=p+c.left}}var h="number"==typeof(n=n||0);return r.left+=h?n:n.left||0,r.top+=h?n:n.top||0,r.right-=h?n:n.right||0,r.bottom-=h?n:n.bottom||0,r}function getArea(t){return t.width*t.height}function computeAutoPlacement(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=getBoundaries(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(s).map(function(t){return _extends$2({key:t},s[t],{area:getArea(s[t])})}).sort(function(t,e){return e.area-t.area}),l=c.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),d=l.length>0?l[0].key:c[0].key,p=t.split("-")[1];return d+(p?"-"+p:"")}function getReferenceOffsets(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return getOffsetRectRelativeToArbitraryNode(n,i?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,n),i)}function getOuterSizes(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function getOppositePlacement(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function getPopperOffsets(t,e,n){n=n.split("-")[0];var i=getOuterSizes(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return o[a]=e[a]+e[c]/2-i[c]/2,o[s]=n===s?e[s]-i[l]:e[getOppositePlacement(s)],o}function find(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function findIndex(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=find(t,function(t){return t[e]===n});return t.indexOf(i)}function runModifiers(t,e,n){return(void 0===n?t:t.slice(0,findIndex(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&isFunction$1(n)&&(e.offsets.popper=getClientRect(e.offsets.popper),e.offsets.reference=getClientRect(e.offsets.reference),e=n(e,t))}),e}function update(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=computeAutoPlacement(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=getPopperOffsets(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=runModifiers(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function isModifierEnabled(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function getSupportedPropertyName(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(t){var e=t.ownerDocument;return e?e.defaultView:window}function attachToScrollParents(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||attachToScrollParents(getScrollParent(r.parentNode),e,n,i),i.push(r)}function setupEventListeners(t,e,n,i){n.updateBound=i,getWindow(t).addEventListener("resize",n.updateBound,{passive:!0});var o=getScrollParent(t);return attachToScrollParents(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(t,e){return getWindow(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function setStyles(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&isNumeric(e[n])&&(i="px"),t.style[n]=e[n]+i})}function setAttributes(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function applyStyle(t){return setStyles(t.instance.popper,t.styles),setAttributes(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&setStyles(t.arrowElement,t.arrowStyles),t}function applyStyleOnLoad(t,e,n,i,o){var r=getReferenceOffsets(o,e,t,n.positionFixed),a=computeAutoPlacement(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),setStyles(e,{position:n.positionFixed?"fixed":"absolute"}),n}function getRoundedOffsets(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},c=r(o.width),l=r(i.width),d=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),h=e?d||p||c%2==l%2?r:a:s,u=e?r:s;return{left:h(c%2==1&&l%2==1&&!p&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:h(i.right)}}var isFirefox=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=find(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=getOffsetParent(t.instance.popper),c=getBoundingClientRect(s),l={position:o.position},d=getRoundedOffsets(t,window.devicePixelRatio<2||!isFirefox),p="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=getSupportedPropertyName("transform"),f=void 0,m=void 0;if(m="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-c.height+d.bottom:d.top,f="right"===h?"HTML"===s.nodeName?-s.clientWidth+d.right:-c.width+d.right:d.left,a&&u)l[u]="translate3d("+f+"px, "+m+"px, 0)",l[p]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===p?-1:1,v="right"===h?-1:1;l[p]=m*g,l[h]=f*v,l.willChange=p+", "+h}var b={"x-placement":t.placement};return t.attributes=_extends$2({},b,t.attributes),t.styles=_extends$2({},l,t.styles),t.arrowStyles=_extends$2({},t.offsets.arrow,t.arrowStyles),t}function isModifierRequired(t,e,n){var i=find(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function arrow(t,e){var n;if(!isModifierRequired(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),h=c?"left":"top",u=c?"bottom":"right",f=getOuterSizes(i)[l];s[u]-f<a[p]&&(t.offsets.popper[p]-=a[p]-(s[u]-f)),s[p]+f>a[u]&&(t.offsets.popper[p]+=s[p]+f-a[u]),t.offsets.popper=getClientRect(t.offsets.popper);var m=s[p]+s[l]/2-f/2,g=getStyleComputedProperty(t.instance.popper),v=parseFloat(g["margin"+d],10),b=parseFloat(g["border"+d+"Width"],10),y=m-t.offsets.popper[p]-v-b;return y=Math.max(Math.min(a[l]-f,y),0),t.arrowElement=i,t.offsets.arrow=(defineProperty(n={},p,Math.round(y)),defineProperty(n,h,""),n),t}function getOppositeVariation(t){return"end"===t?"start":"start"===t?"end":t}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=validPlacements.indexOf(t),i=validPlacements.slice(n+1).concat(validPlacements.slice(0,n));return e?i.reverse():i}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(t,e){if(isModifierEnabled(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=getBoundaries(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=getOppositePlacement(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case BEHAVIORS.FLIP:a=[i,o];break;case BEHAVIORS.CLOCKWISE:a=clockwise(i);break;case BEHAVIORS.COUNTERCLOCKWISE:a=clockwise(i,!0);break;default:a=e.behavior}return a.forEach(function(s,c){if(i!==s||a.length===c+1)return t;i=t.placement.split("-")[0],o=getOppositePlacement(i);var l=t.offsets.popper,d=t.offsets.reference,p=Math.floor,h="left"===i&&p(l.right)>p(d.left)||"right"===i&&p(l.left)<p(d.right)||"top"===i&&p(l.bottom)>p(d.top)||"bottom"===i&&p(l.top)<p(d.bottom),u=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),g=p(l.bottom)>p(n.bottom),v="left"===i&&u||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===r&&u||b&&"end"===r&&f||!b&&"start"===r&&m||!b&&"end"===r&&g),_=!!e.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&u||!b&&"start"===r&&g||!b&&"end"===r&&m),w=y||_;(h||v||w)&&(t.flipped=!0,(h||v)&&(i=a[c+1]),w&&(r=getOppositeVariation(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=_extends$2({},t.offsets.popper,getPopperOffsets(t.instance.popper,t.offsets.reference,t.placement)),t=runModifiers(t.instance.modifiers,t,"flip"))}),t}function keepTogether(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(i[c])&&(t.offsets.popper[c]=r(i[c])-n[l]),n[c]>r(i[s])&&(t.offsets.popper[c]=r(i[s])),t}function toValue(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return getClientRect(s)[e]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}function parseOffset(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(find(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map(function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return toValue(t,o,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){isNumeric(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))})}),o}function offset(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],c=void 0;return c=isNumeric(+n)?[+n,0]:parseOffset(n,r,a,s),"left"===s?(r.top+=c[0],r.left-=c[1]):"right"===s?(r.top+=c[0],r.left+=c[1]):"top"===s?(r.left+=c[0],r.top-=c[1]):"bottom"===s&&(r.left+=c[0],r.top+=c[1]),t.popper=r,t}function preventOverflow(t,e){var n=e.boundariesElement||getOffsetParent(t.instance.popper);t.instance.reference===n&&(n=getOffsetParent(n));var i=getSupportedPropertyName("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var c=getBoundaries(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=c;var l=e.priority,d=t.offsets.popper,p={primary:function(t){var n=d[t];return d[t]<c[t]&&!e.escapeWithReference&&(n=Math.max(d[t],c[t])),defineProperty({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>c[t]&&!e.escapeWithReference&&(i=Math.min(d[n],c[t]-("right"===t?d.width:d.height))),defineProperty({},n,i)}};return l.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=_extends$2({},d,p[e](t))}),t.offsets.popper=d,t}function shift(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:defineProperty({},c,r[c]),end:defineProperty({},c,r[c]+r[l]-a[l])};t.offsets.popper=_extends$2({},a,d[i])}return t}function hide(t){if(!isModifierRequired(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=find(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function inner(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=getOppositePlacement(e),t.offsets.popper=getClientRect(o),t}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:modifiers},Popper=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=debounce$1(this.update.bind(this)),this.options=_extends$2({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_extends$2({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=_extends$2({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return _extends$2({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&isFunction$1(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return createClass(t,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),t}();Popper.Utils=("undefined"!=typeof window?window:global).PopperUtils,Popper.placements=placements,Popper.Defaults=Defaults;var version="5.0.0-alpha.2",idCounter=1,mouseMoveListeners=[];function createTippy(t,e){var n,i,o,r,a=evaluateProps(t,e);if(!a.multiple&&t._tippy)return null;var s,c,l,d=!1,p=!1,h=!1,u=[],f=debounce(R,a.interactiveDebounce),m=idCounter++,g=createPopperElement(m,a),v=getChildren(g),b=v.tooltip,y=v.content,_={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:t,popper:g,popperChildren:v,popperInstance:null,props:a,state:_,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(w.state.isDestroyed)return;N();var n=w.props,i=evaluateProps(t,_extends$1({},w.props,e,{ignoreAttributes:!0}));i.ignoreAttributes=hasOwnProperty(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,w.props=i,L(),T(),f=debounce(R,i.interactiveDebounce),updatePopperElement(g,n,i,w.state.isVisible),w.popperChildren=getChildren(g),w.popperInstance&&(POPPER_INSTANCE_DEPENDENCIES.some(function(t){return hasOwnProperty(e,t)&&e[t]!==n[t]})?(w.popperInstance.destroy(),V(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(t){w.setProps({content:t})},show:function(e,n){void 0===e&&(e=getValue(w.props.duration,0,defaultProps.duration[1]));void 0===n&&(n=!0);var i=w.state.isVisible,o=w.state.isDestroyed,r=!w.state.isEnabled,a=currentInput.isTouch&&!w.props.touch;if(i||o||r||a)return;if(O().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;k(),g.style.visibility="visible",w.state.isVisible=!0;var s=E();setTransitionDuration(n?s.concat(g):s,0),c=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(e/12)+"ms":"",w.props.sticky&&function(){setTransitionDuration([g],isIE?0:w.props.updateDuration),function t(){w.popperInstance.scheduleUpdate();w.state.isMounted?requestAnimationFrame(t):setTransitionDuration([g],0)}()}(),setTransitionDuration([g],w.props.updateDuration),setTransitionDuration(s,e),setVisibilityState(s,"visible"),function(t,e){A(t,e)}(e,function(){w.props.aria&&O().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0}))},function(){p=!1;var e=w.props.appendTo,n="parent"===e?t.parentNode:invokeWithArgsOrReturn(e,[t]);n.contains(g)||n.appendChild(g);w.popperInstance?(setFlipModifierEnabled(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(V(),w.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=getValue(w.props.duration,1,defaultProps.duration[1]));var e=!w.state.isVisible&&!d,n=w.state.isDestroyed,i=!w.state.isEnabled&&!d;if(e||n||i)return;if(!1===w.props.onHide(w)&&!d)return;P(),g.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=E();setTransitionDuration(o,t),setVisibilityState(o,"hidden"),function(t,e){A(t,function(){!w.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&e()})}(t,function(){w.props.aria&&O().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,g.parentNode.removeChild(g),w.props.onHidden(w),w.state.isMounted=!1})},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),N(),delete t._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return t._tippy=w,g._tippy=w,L(),a.lazy||V(),a.showOnCreate&&$(),g.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()}),g.addEventListener("mouseleave",function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)}),a.onCreate(w),w;function x(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===x()[0]}function E(){return[b,y,w.popperChildren.backdrop]}function O(){return w.props.triggerTarget||t}function T(){document.body.removeEventListener("mouseleave",z),document.removeEventListener("mousemove",f),mouseMoveListeners=mouseMoveListeners.filter(function(t){return t!==f})}function S(t){if(!w.props.interactive||!g.contains(t.target)){if(O().contains(t.target)){if(currentInput.isTouch)return;if(w.state.isVisible&&includes(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),h=!0,setTimeout(function(){h=!1}),w.state.isMounted||P())}}function k(){document.addEventListener("mousedown",S,!0)}function P(){document.removeEventListener("mousedown",S,!0)}function A(t,e){function n(t){t.target===b&&(updateTransitionEndListener(b,"remove",n),e())}if(0===t)return e();updateTransitionEndListener(b,"remove",l),updateTransitionEndListener(b,"add",n),l=n}function I(t,e,n){void 0===n&&(n=!1),O().addEventListener(t,e,n),u.push({eventType:t,handler:e,options:n})}function L(){C()&&(I("touchstart",B,PASSIVE),I("touchend",F,PASSIVE)),includes(w.props.trigger,"click")||I("click",function(){currentInput.isTouch||!0!==w.props.hideOnClick||w.hide()}),w.props.trigger.trim().split(" ").forEach(function(t){if("manual"!==t)switch(I(t,B),t){case"mouseenter":I("mouseleave",F);break;case"focus":I(isIE?"focusout":"blur",M)}})}function N(){u.forEach(function(t){var e=t.eventType,n=t.handler,i=t.options;O().removeEventListener(e,n,i)}),u=[]}function B(t){if(!h&&w.state.isEnabled&&!D(t))if(w.state.isVisible||(n=t.type,t instanceof MouseEvent&&mouseMoveListeners.forEach(function(e){return e(t)})),"click"===t.type&&!1!==w.props.hideOnClick&&w.state.isVisible)z(t);else{var e=x(),o=e[0],r=e[1];currentInput.isTouch&&"hold"===o&&r?i=setTimeout(function(){$(t)},r):$(t)}}function R(e){closestCallback(e.target,function(e){return e===t||e===g})||isCursorOutsideInteractiveBorder(getBasePlacement(w.state.currentPlacement),g.getBoundingClientRect(),e,w.props)&&(T(),z(e))}function F(t){if(!D(t))return w.props.interactive?(document.body.addEventListener("mouseleave",z),document.addEventListener("mousemove",f),void mouseMoveListeners.push(f)):void z(t)}function M(t){t.target===O()&&(w.props.interactive&&t.relatedTarget&&g.contains(t.relatedTarget)||z(t))}function D(t){var e="ontouchstart"in window,n=includes(t.type,"touch"),i=C();return e&¤tInput.isTouch&&i&&!n||currentInput.isTouch&&!i&&n}function V(){var e=w.props,n=e.popperOptions,i=e.placement,o=w.popperChildren.arrow,r=getModifier(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function c(t){w.state.currentPlacement=t.placement,w.props.flip&&!w.props.flipOnUpdate&&(t.flipped&&(w.popperInstance.options.placement=t.placement),setFlipModifierEnabled(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",w.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var e=getBasePlacement(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[includes(["top","bottom"],getBasePlacement(w.state.currentPlacement))?"top":"left"]=(includes(["bottom","right"],getBasePlacement(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:PREVENT_OVERFLOW_PADDING,o="number"==typeof i,a=_extends$1({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[e]=o?i+w.props.distance:(i[e]||0)+w.props.distance,w.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=a}var l=_extends$1({eventsEnabled:!1,placement:s=w.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:_extends$1({},n?n.modifiers:{},{preventOverflow:_extends$1({boundariesElement:w.props.boundary,padding:PREVENT_OVERFLOW_PADDING},r),arrow:_extends$1({element:o,enabled:!!o},getModifier(n,"arrow")),flip:_extends$1({enabled:w.props.flip,padding:w.props.distance+PREVENT_OVERFLOW_PADDING,behavior:w.props.flipBehavior},getModifier(n,"flip")),offset:_extends$1({offset:w.props.offset},getModifier(n,"offset"))}),onCreate:function(t){c(t),preserveInvocation(n&&n.onCreate,l.onCreate,[t]),H()},onUpdate:function(t){c(t),preserveInvocation(n&&n.onUpdate,l.onUpdate,[t]),H()}});w.popperInstance=new Popper(t,g,l)}function H(){!p&&c&&(p=!0,reflow(g),c())}function $(t){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||V(),t&&w.props.onTrigger(w,t),w.props.wait)return w.props.wait(w,t);k();var e=getValue(w.props.delay,0,defaultProps.delay);e?i=setTimeout(function(){w.show()},e):w.show()}function z(t){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,t),w.state.isVisible){w.state.isScheduledToShow=!1;var e=getValue(w.props.delay,1,defaultProps.delay);e?o=setTimeout(function(){w.state.isVisible&&w.hide()},e):r=requestAnimationFrame(function(){w.hide()})}else P()}}function tippy(t,e){bindGlobalEventListeners();var n=_extends$1({},defaultProps,e),i=getArrayOfElements(t).reduce(function(t,e){var i=e&&createTippy(e,n);return i&&t.push(i),t},[]);return isRealElement(t)?i[0]:i}function autoInit(){arrayFrom(document.querySelectorAll("[data-tippy]")).forEach(function(t){var e=t.getAttribute("data-tippy");e&&tippy(t,{content:e})})}tippy.version=version,tippy.defaultProps=defaultProps,tippy.currentInput=currentInput,tippy.setDefaultProps=function(t){Object.keys(t).forEach(function(e){defaultProps[e]=t[e]})},tippy.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function(t){var e=t._tippy;if(e){var o=!1;n&&(o=isReferenceElement(n)?e.reference===n:t===n.popper),o||e.hide(i)}})},isBrowser&&setTimeout(autoInit);var css=".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}";function injectCSS(t){if(isBrowser){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,i=n.querySelector("style,link");i?n.insertBefore(e,i):n.appendChild(e)}}injectCSS(css);var missingTippy="Using the attachment feature of Shepherd requires the Tippy.js library",addShepherdClass=_createClassModifier("shepherd"),addHasTitleClass=_createClassModifier("shepherd-has-title"),centeredStylePopperModifier={computeStyle:{enabled:!0,fn:function(t){return t.styles=_extends({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:addShepherdClass},defaultPopperOptions={positionFixed:!0,modifiers:{addShepherdClass:addShepherdClass}};function createFromHTML(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function debounce$2(t,e,n){var i;return function(){var o=this,r=arguments,a=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(o,r)},e),a&&t.apply(o,r)}}function drop(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function setupTooltip(){if(isUndefined(tippy))throw new Error(missingTippy);this.tooltip&&this.tooltip.destroy();var t=this.parseAttachTo();this.tooltip=_makeTippyInstance.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function parseAttachTo(){var t=this.options.attachTo||{},e=_extends({},t);if(isString(t.element)){try{e.element=document.querySelector(t.element)}catch(t){}e.element||console.error("The element for this Shepherd step was not found ".concat(t.element))}return e}function _createClassModifier(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function _makeTippyInstance(t){if(!t.element)return _makeCenteredTippy.call(this);var e=_makeAttachedTippyOptions.call(this,t);return tippy(t.element,e)}function _makeAttachedTippyOptions(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return _extends(e,this.options.tippyOptions),this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&_extends(defaultPopperOptions,this.options.tippyOptions.popperOptions),e.popperOptions=defaultPopperOptions,e}function _makeCenteredTippy(){var t=_objectSpread2({content:this.el,placement:"top"},this.options.tippyOptions);t.arrow=!1,t.popperOptions=t.popperOptions||{},this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass});var e=_extends({},defaultPopperOptions,t.popperOptions,{modifiers:_extends(centeredStylePopperModifier,t.popperOptions.modifiers)});return t.popperOptions=e,tippy(document.body,t)}var Evented=function(){function t(){_classCallCheck$1(this,t)}return _createClass$1(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];isUndefined(this.bindings)&&(this.bindings={}),isUndefined(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=this;if(isUndefined(this.bindings)||isUndefined(this.bindings[t]))return!1;isUndefined(e)?delete this.bindings[t]:this.bindings[t].forEach(function(i,o){i.handler===e&&n.bindings[t].splice(o,1)})}},{key:"trigger",value:function(t){var e=this;if(!isUndefined(this.bindings)&&this.bindings[t]){var n=drop(Array.prototype.slice.call(arguments));this.bindings[t].forEach(function(i,o){var r=i.ctx,a=i.handler,s=i.once,c=r||e;a.apply(c,n),s&&e.bindings[t].splice(o,1)})}}}]),t}();function _setupAdvanceOnHandler(t){var e=this;return function(n){if(e.isOpen()){var i=e.el&&n.target===e.el;(!isUndefined(t)&&n.target.matches(t)||i)&&e.tour.next()}}}function bindAdvance(){var t=this.options.advanceOn||{},e=t.event,n=t.selector;if(!e)return console.error("advanceOn was defined, but no event name was passed.");var i,o=_setupAdvanceOnHandler.call(this,n);try{i=document.querySelector(n)}catch(t){}if(!isUndefined(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));i?(i.addEventListener(e,o),this.on("destroy",function(){return i.removeEventListener(e,o)})):(document.body.addEventListener(e,o,!0),this.on("destroy",function(){return document.body.removeEventListener(e,o,!0)}))}function bindButtonEvents(t,e){var n=this;t.events=t.events||{},isUndefined(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach(function(t){var i=_slicedToArray(t,2),o=i[0],r=i[1];if(isString(r)){var a=r;r=function(){return n.tour.show(a)}}e.dataset.buttonEvent=!0,e.addEventListener(o,r),n.on("destroy",function(){e.removeAttribute("data-button-event"),e.removeEventListener(o,r)})})}function bindCancelLink(t){var e=this;t.addEventListener("click",function(t){t.preventDefault(),e.cancel()})}function bindMethods(t){var e=this;t.map(function(t){e[t]=e[t].bind(e)})}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var smoothscroll=createCommonjsModule(function(t,e){!function(){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,i=t.HTMLElement||t.Element,o=468,r={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||c,scrollIntoView:i.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):r.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;f.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){for(;t!==e.body&&!1===h(t);)t=t.parentNode||t.host;return t}(this),i=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(f.call(this,n,n.scrollLeft+o.left-i.left,n.scrollTop+o.top-i.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function p(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function h(t){var e=d(t,"Y")&&p(t,"Y"),n=d(t,"X")&&p(t,"X");return e||n}function u(e){var n,i,r,s,c=(a()-e.startTime)/o;s=c=c>1?1:c,n=.5*(1-Math.cos(Math.PI*s)),i=e.startX+(e.x-e.startX)*n,r=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,i,r),i===e.x&&r===e.y||t.requestAnimationFrame(u.bind(t,e))}function f(n,i,o){var s,l,d,p,h=a();n===e.body?(s=t,l=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=r.scroll):(s=n,l=n.scrollLeft,d=n.scrollTop,p=c),u({scrollable:s,method:p,startTime:h,startX:l,startY:d,x:i,y:o})}}}}()}),smoothscroll_1=smoothscroll.polyfill;smoothscroll.polyfill();var uniqueId=(id=0,function(){return++id}),id,Step=function(t){function e(t,n){var i;return _classCallCheck$1(this,e),(i=_possibleConstructorReturn$1(this,_getPrototypeOf$1(e).call(this,t,n))).tour=t,bindMethods.call(_assertThisInitialized$1(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=bindAdvance.bind(_assertThisInitialized$1(i)),i.bindButtonEvents=bindButtonEvents.bind(_assertThisInitialized$1(i)),i.bindCancelLink=bindCancelLink.bind(_assertThisInitialized$1(i)),i.setupTooltip=setupTooltip.bind(_assertThisInitialized$1(i)),i.parseAttachTo=parseAttachTo.bind(_assertThisInitialized$1(i)),_possibleConstructorReturn$1(i,_assertThisInitialized$1(i))}return _inherits$1(e,Evented),_createClass$1(e,[{key:"_addButtons",value:function(t){var e=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map(function(t){var i=createFromHTML('<button class="shepherd-button '.concat(t.classes||"",'" tabindex="0">').concat(t.text,"</button>"));n.appendChild(i),e.bindButtonEvents(t,i)}),t.appendChild(n)}}},{key:"_addCancelLink",value:function(t,e){if(this.options.showCancelLink){var n=createFromHTML('<a href class="shepherd-cancel-link"></a>');e.appendChild(n),t.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(t,e){var n=createFromHTML('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),i=this.options.text;isFunction(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(isString(i)&&(i=[i]),i.map(function(t){n.innerHTML+="<p>".concat(t,"</p>")})),t.appendChild(n)}},{key:"_addKeyDownHandler",value:function(t){var e=this,n=t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=_slicedToArray(n,1)[0],o=n[n.length-1];t.addEventListener("keydown",function(t){switch(t.keyCode){case 9:if(1===n.length){t.preventDefault();break}t.shiftKey?document.activeElement===i&&(t.preventDefault(),o.focus()):document.activeElement===o&&(t.preventDefault(),i.focus());break;case 27:e.cancel();break;case 37:e.tour.back();break;case 39:e.tour.next()}})}},{key:"_createTooltipContent",value:function(){var t=document.createElement("div"),e=this.options.classes||"",n="".concat(this.id,"-description"),i="".concat(this.id,"-label"),o=createFromHTML('<div class="'.concat(e,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=i,o.setAttribute("aria-labeledby",i),r.appendChild(a)}return t.classList.add("shepherd-content"),r.classList.add("shepherd-header"),o.appendChild(t),t.appendChild(r),isUndefined(this.options.text)||(this._addContent(t,n),o.setAttribute("aria-describedby",n)),this._addButtons(t),this._addCancelLink(o,r),o}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),isElement(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){isUndefined(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(t){var e=this.parseAttachTo().element;isFunction(this.options.scrollToHandler)?this.options.scrollToHandler(e):isElement(e)&&e.scrollIntoView(t)}},{key:"setOptions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(uniqueId()),n&&Object.entries(n).forEach(function(e){var n=_slicedToArray(e,2),i=n[0],o=n[1];t.on(i,o,t)})}},{key:"show",value:function(){var t=this;if(isFunction(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!isUndefined(e))return e.then(function(){return t._show()})}this._show()}},{key:"_show",value:function(){var t=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout(function(){t.scrollTo(t.options.scrollTo)}),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),e}(),svgNS="http://www.w3.org/2000/svg",elementIds={modalOverlay:"shepherdModalOverlayContainer",modalOverlayMask:"shepherdModalMask",modalOverlayMaskRect:"shepherdModalMaskRect",modalOverlayMaskOpening:"shepherdModalMaskOpening"},classNames={isVisible:"shepherd-modal-is-visible",modalTarget:"shepherd-modal-target"};function _createModalContainer(){var t=document.createElementNS(svgNS,"svg");return t.setAttributeNS(null,"id",elementIds.modalOverlay),t}function _createMaskContainer(){var t=document.createElementNS(svgNS,"mask");return _setAttributes(t,{height:"100%",id:elementIds.modalOverlayMask,width:"100%",x:"0",y:"0"}),t}function _createMaskRect(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{fill:"#FFFFFF",height:"100%",id:elementIds.modalOverlayMaskRect,width:"100%",x:"0",y:"0"}),t}function _createMaskOpening(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{fill:"#000000",id:elementIds.modalOverlayMaskOpening}),t}function _createMaskConsumer(){var t=document.createElementNS(svgNS,"rect");return _setAttributes(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(elementIds.modalOverlayMask,")")),t}function createModalOverlay(){var t=_createModalContainer(),e=document.createElementNS(svgNS,"defs"),n=_createMaskContainer(),i=_createMaskRect(),o=_createMaskOpening(),r=_createMaskConsumer();return n.appendChild(i),n.appendChild(o),e.appendChild(n),t.appendChild(e),t.appendChild(r),t}function positionModalOpening(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.getBoundingClientRect&&e instanceof SVGElement){var i=t.getBoundingClientRect(),o=i.x,r=i.y,a=i.width,s=i.height,c=i.left,l=i.top;_setAttributes(e,{x:(o||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function closeModalOpening(t){t&&t instanceof SVGElement&&_setAttributes(t,{height:"0",x:"0",y:"0",width:"0"})}function getModalMaskOpening(t){return t.querySelector("#".concat(elementIds.modalOverlayMaskOpening))}function preventModalBodyTouch(t){t.preventDefault()}function preventModalOverlayTouch(t){t.stopPropagation()}function toggleShepherdModalClass(t){var e=document.querySelector("".concat(classNames.modalTarget));e&&e.classList.remove(classNames.modalTarget),t.classList.add(classNames.modalTarget)}function _setAttributes(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function getElementFromObject(t){var e=t.element;return e instanceof HTMLElement?e:document.querySelector(e)}function getElementForStep(t){var e=t.options.attachTo;if(!e)return null;var n=_typeof$1(e);return"string"===n?getElementFromString(e):"object"===n?getElementFromObject(e):null}function getElementFromString(t){var e=_slicedToArray(t.split(" "),1)[0];return document.querySelector(e)}function addStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var t=document.querySelector("#".concat(elementIds.modalOverlay));window.addEventListener("touchmove",preventModalBodyTouch,{passive:!1}),t&&t.addEventListener("touchmove",preventModalOverlayTouch,!1)}var Modal=function(){function t(e){return _classCallCheck$1(this,t),this.createModalOverlay(),this.options=e,this}return _createClass$1(t,[{key:"cleanup",value:function(){var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(classNames.isVisible)}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||createModalOverlay(),this._modalOverlayOpening=getModalMaskOpening(this._modalOverlayElem),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(t){this.options.useModalOverlay?(this._styleForStep(t),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e=this._modalOverlayOpening,n=getElementForStep(t),i=t.options.modalOverlayOpeningPadding;n?(positionModalOpening(n,e,i),this._onScreenChange=debounce$2(positionModalOpening.bind(this,n,e,i),0),addStepEventListeners.call(this)):closeModalOpening(this._modalOverlayOpening)}}]),t}(),hasPassiveEvents=!1;if("undefined"!=typeof window){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting,previousBodyPaddingRight,allowTouchMove=function(t){return locks.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})},preventDefault=function(t){var e=t||window.event;return!!allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},setOverflowHidden=function(t){setTimeout(function(){if(void 0===previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===previousBodyOverflowSetting&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")})},restoreOverflowSetting=function(){setTimeout(function(){void 0!==previousBodyPaddingRight&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),void 0!==previousBodyOverflowSetting&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)})},isTargetElementTotallyScrolled=function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight},handleScroll=function(t,e){var n=t.targetTouches[0].clientY-initialClientY;return!allowTouchMove(t.target)&&(e&&0===e.scrollTop&&n>0?preventDefault(t):isTargetElementTotallyScrolled(e)&&n<0?preventDefault(t):(t.stopPropagation(),!0))},disableBodyScroll=function(t,e){if(isIosDevice){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!locks.some(function(e){return e.targetElement===t})){var n={targetElement:t,options:e||{}};locks=[].concat(_toConsumableArray(locks),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&handleScroll(e,t)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)}}else{setOverflowHidden(e);var i={targetElement:t,options:e||{}};locks=[].concat(_toConsumableArray(locks),[i])}},clearAllBodyScrollLocks=function(){isIosDevice?(locks.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),locks=[],initialClientY=-1):(restoreOverflowSetting(),locks=[])},defaults={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function cleanupSteps(t){t&&t.steps.forEach(function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=getElementForStep(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})}function cleanupStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",preventModalBodyTouch,{passive:!1})}var uniqueId$1=function(){var t=0;return function(){return++t}}(),Shepherd=new Evented,Tour=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck$1(this,e),t=_possibleConstructorReturn$1(this,_getPrototypeOf$1(e).call(this,n)),bindMethods.call(_assertThisInitialized$1(t),["back","cancel","complete","hide","next"]),t.options=n,t.steps=t.options.steps||[];return["active","cancel","complete","inactive","show","start"].map(function(e){var n;n=e,t.on(n,function(e){(e=e||{}).tour=_assertThisInitialized$1(t),Shepherd.trigger(n,e)})}),t.modal=new Modal(n),t._setTooltipDefaults(),t._setTourID(),_possibleConstructorReturn$1(t,_assertThisInitialized$1(t))}return _inherits$1(e,Evented),_createClass$1(e,[{key:"addStep",value:function(t,e){var n,i;return isUndefined(e)?i=t:(n=t,i=e),i instanceof Step?i.tour=this:i=this.setupStep(i,n),this.steps.push(i),i}},{key:"back",value:function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(t){Array.isArray(this.steps)&&this.steps.forEach(function(t){return t.destroy()}),cleanupStepEventListeners.call(this),cleanupSteps(this.tourObject),this.trigger(t),Shepherd.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&clearAllBodyScrollLocks(),this.modal.cleanup()}},{key:"getById",value:function(t){return this.steps.find(function(e){return e.id===t})}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var t=this.getCurrentStep();if(t)return t.hide()}},{key:"isActive",value:function(){return Shepherd.activeTour===this}},{key:"next",value:function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}},{key:"removeStep",value:function(t){var e=this,n=this.getCurrentStep();this.steps.some(function(n,i){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(t,e){return(isString(e)||isNumber(e))&&(t.id=e.toString()),t=_extends({},this.options.defaultStepOptions,t),new Step(this,t)}},{key:"beforeShowStep",value:function(t){this.modal.setupForStep(t),this._styleTargetElementForStep(t)}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=isString(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),isFunction(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&disableBodyScroll(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Shepherd.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e=getElementForStep(t);e&&(toggleShepherdModalClass(e),t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(e.style.pointerEvents="none"))}},{key:"_skipStep",value:function(t,e){var n=this.steps.indexOf(t),i=e?n+1:n-1;this.show(i,e)}},{key:"_setTooltipDefaults",value:function(){tippy.setDefaultProps(defaults)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=uniqueId$1();this.id="".concat(t,"--").concat(e)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),e}();_extends(Shepherd,{Tour:Tour,Step:Step,Evented:Evented});var CENTER="center",CLOSE_BUTTON_STYLE={NORMAL:"normal",FILL:"fill"},INAPP_POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_CENTER:"top-center",BOTTOM_CENTER:"bottom-center",CENTER:"center"},DIRECTION={HORIZONTAL:"horizontal",VERTICAL:"vertical"},EVENT_PREFIX={INAPP:"InApp_",INLINE:"InLine_",SURVEY:"Survey_"},COLORS={BLACK:"#000000",WHITE:"#ffffff"},BUTTON_CONTAINER_POSITION={TOP:"top",CENTER:"center",BOTTOM:"bottom",SURVEY_BOTTOM:"survey_button"},VIDEOS_MODES={PLAYER:"mini",PIP:"PIP"},CAROUSEL_TYPE={NUMBER:"number",CAROUSEL:"carousel"},isUndefined$1=function(t){return void 0===t},isNull=function(t){return null===t},isElementInViewport=function(t){var e=t.offsetHeight,n=t.offsetWidth,i=t.getBoundingClientRect();return i.left>=-n&&i.top>=-e&&i.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e},getFontMultiplier=function(){var t=document.querySelector("meta[name='viewport']");if(t){var e,n,i=null!==(e=null===(n=t.getAttribute("content"))||void 0===n?void 0:n.split(","))&&void 0!==e?e:[],o=1;if(i.forEach(function(t,e,n){0===t.indexOf("initial-scale")&&(o=parseFloat(t.split("=")[1]))}),o)return parseInt(1/o)}return 1};function deepGet(t,e,n){return null==t?n:0===e.length?t:deepGet(t[e[0]],e.slice(1),n)}var createNewTextElement=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",i=document.createElement("span");i.setAttribute("id",e+"-"+n),i.className="apx-class-".concat(e,"-").concat(n);var o=document.createElement("style");return o.innerHTML="\n .apx-class-".concat(e,"-").concat(n," {\n z-index:99999;\n color:").concat(t.color," !important;\n font-family:").concat(t.font.family," !important;\n font-size:").concat(t.font.size,"px !important;\n font-weight:").concat(t.font.weight," !important;\n font-style:").concat("normal"===t.font.style||"italic"===t.font.style?t.font.style+" !important":"unset",";\n }\n "),i.appendChild(o),i.appendChild(getStylisedText(t.text,t.segments,t.quote,t.link_config)),i},getStylisedText=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=document.createElement("span");if(0==e.length?o.innerText=addLinksToText(t,i):e.forEach(function(e){var n=parseInt(e.start),r=parseInt(e.end),a=t.substring(n,r),s="";e.color&&(s="".concat(s,"color:").concat(e.color,";")),e.font_family&&(s="".concat(s,"font-family:").concat(e.font_family,";")),e.size&&(s="".concat(s,"font-size:").concat(e.size,"px;")),"italic"===e.style&&(s="".concat(s,"font-style:").concat(e.style,";")),"bold"===e.style&&(s="".concat(s,"font-weight:").concat(e.style,";")),"normal"===e.style&&(s="".concat(s,"font-weight:").concat(e.style,";")),1==e.underline&&(s="".concat(s,"text-decoration:underline;")),1==e.strike_through&&(s="".concat(s,"text-decoration:line-through;")),"super"==e.script&&(s="".concat(s,"vertical-align:super;")),"sub"==e.script&&(s="".concat(s,"vertical-align:sub;")),e.bg_color&&(s="".concat(s,"background-color:").concat(e.bg_color,";"));var c=document.createElement("span");c.style=s,c.innerHTML=addLinksToText(a,i),o.appendChild(c)}),void 0!==n){var r=document.createElement("blockquote"),a="";return n.color&&(a="border-left-color:".concat(n.color,";")),n.width&&(a="".concat(a,"border-left-width:").concat(n.width,"px;")),n.gap&&(a="".concat(a,"padding:").concat(n.gap,"px;")),r.appendChild(o),r.style=a,r}return o},addLinksToText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t;return e.forEach(function(e){e.text===t&&(n='<a style="text-decoration: none;" target="_blank" href="'.concat(e.url,'">').concat(t,"</a>"))}),n},makeid=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<t;o++)e+=n.charAt(Math.floor(Math.random()*i));return e},getHeightWidthFromResolution=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0,o=0;try{var r=t.width,a=void 0===r?360:r,s=t.height,c=(void 0===s?360:s)/a,l=window.innerWidth,d=window.innerHeight;n?(o=(i=d*e)/c)>.7*l&&(i=(o=.7*l)*c):(i=(o=l*e)*c)>.7*d&&(o=(i=.7*d)/c)}catch(t){console.log("Error \n ".concat(t," \n occured while calculating the height and width"))}return{height:i,width:o}},generateButtonsBlock=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:EVENT_PREFIX.INAPP,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{},d=arguments.length>10?arguments[10]:void 0,p=document.createElement("div");p.className="".concat(a,"-buttons-container"),p.style.zIndex=99999999;var h=generateButtonsFromConfig(o,s,t,e,i,a,c,l,d),u=h.buttons_array,f=h.buttons_css,m=document.createElement("style");return m.innerHTML=getButtonsCSSFromConfig(n,f,r,a),p.appendChild(m),u.forEach(function(t){var e=t.classes,i=t.type,o=t.sub_type,r=t.text,a=t.action,s=document.createElement("div");if(s.className="button-div "+e,"stepper"===i){var c=document.createElement("div");c.className=i+"-"+o,c.innerHTML=setCarousel(o,n),s.appendChild(c)}else{var l=document.createElement("button");l.className=e,l.innerHTML=r,s.appendChild(l),s.onclick=function(){return a()}}p.appendChild(s)}),p},getButtonsCSSFromConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o="",r=0,a=0;a=i===BUTTON_CONTAINER_POSITION.TOP?3:i===BUTTON_CONTAINER_POSITION.BOTTOM?5:i===BUTTON_CONTAINER_POSITION.SURVEY_BOTTOM?3:1;var s,c={},l={};t.enable_numbered&&(c=t.numbered,l=null===(s=c)||void 0===s?void 0:s.font);var d="space-between";return e.forEach(function(t,s){var p,h,u,f,m=t.slot,g=t.type,v=t.sub_type,b=t.bg_color,y=t.text_color,_=t.size,w=t.style,x=t.weight,C=t.font_family,E=t.enable_border,O=t.border,T=O.width,S=O.color,k=O.radius,P=O.style,A=t.enable_margin,I=t.margin,L=I.bottom,N=I.left,B=I.right,R=I.top,F=t.enable_padding,M=t.padding,D=M.bottom,V=M.left,H=M.right,$=M.top,z=t.text_margin,j=z.bottom,W=z.left,U=z.right,G=z.top,Y=t.text_padding,q=Y.bottom,X=Y.left,K=Y.right,J=Y.top,Z=t.enable_gradient,Q=t.gradient,tt=void 0===Q?{}:Q;Z&&(h=tt.direction||"to right",u=tt.colors[0]||COLORS.BLACK,f=tt.colors[1]||COLORS.WHITE);var et=!1,nt=!1;if(null!==(p="vertical"!==n)&&void 0!==p?p:i!==BUTTON_CONTAINER_POSITION.BOTTOM){var it,ot=(null===(it=e[s+1])||void 0===it?void 0:it.slot)||a+1;2===e.length&&(2===m&&3===ot||4===m&&3===r||3===m&&(2===r||4===ot))?d="center":(m-r>1&&(et=!0),ot-m>1&&(nt=!0),3===m&&(et=2!=e.length||1!==r,nt=(e.length,!0))),r=m}i===BUTTON_CONTAINER_POSITION.CENTER&&(et=!0,nt=!0);var rt="";E&&(rt="border:".concat(T,"px ").concat(P," ").concat(S,";border-radius: ").concat(k,"px;"));var at="";A&&(at="margin:".concat(R,"px ").concat(B,"px ").concat(L,"px ").concat(N,"px;"));var st="";F&&(st="padding:".concat($,"px ").concat(H,"px ").concat(D,"px ").concat(V,"px;"));var ct="";Z&&(ct="background-image:linear-gradient(".concat(h,", ").concat(u,", ").concat(f,");")),o+="stepper"!==g?"\n div .button-div.".concat(i,"-button-").concat(m,"{\n width:auto;\n height:auto;\n cursor: pointer;\n background-color: ").concat("#"===b?"transparent":b,";\n ").concat(rt,"\n ").concat(at,"\n ").concat(st,"\n ").concat(et?"margin-left:auto;":"","\n ").concat(nt?"margin-right:auto;":"margin-right:12px;","\n ").concat(ct,"\n }\n .").concat(i,"-button-").concat(m,"{\n cursor: pointer;\n color: ").concat(y,";\n background-color: transparent;\n font-size: ").concat(_,"px;\n border:none;\n font-family: ").concat(C,";\n font-weight: ").concat(x,";\n font-style: ").concat(w,";\n margin: ").concat(G,"px ").concat(U,"px ").concat(j,"px ").concat(W,"px;\n padding: ").concat(J,"px ").concat(K,"px ").concat(q,"px ").concat(X,"px;\n }\n "):"\n div .button-div.".concat(i,"-button-").concat(m,"{\n width:auto;\n height:auto;\n cursor: pointer;\n background-color: transparent;\n ").concat(et?"margin-left:auto;":"","\n ").concat(nt?"margin-right:auto;":"margin-right:12px;","\n ").concat(ct,"\n }\n ").concat(v===CAROUSEL_TYPE.NUMBER?"div .stepper-".concat(v,"{\n font-family:").concat(l.family,";\n font-size: ").concat(l.size,"px;\n font-style:").concat(l.style,";\n font-width:").concat(l.width,";\n color:").concat(c.color,";\n }"):"","\n\n ").concat(v===CAROUSEL_TYPE.CAROUSAL?"div .stepper-".concat(v,'{\n font-size:"20px";\n }'):"","\n ")}),"\n div .".concat(i,"-buttons-container {\n width:100%;\n display: flex;\n flex-direction:").concat(n===DIRECTION.VERTICAL&&i===BUTTON_CONTAINER_POSITION.BOTTOM?"column":"row",";\n justify-content:").concat(d,";\n align-items:center;\n flex-wrap:wrap;\n }\n ").concat(o,"\n ")},generateButtonsFromConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Inline_",r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=window.ApxorRTM,d=[],p=[];return t.sort(function(t,e){return t.slot-e.slot}),t.forEach(function(t){var h="end",u="",f="",m="";if(t.enable_action){var g,v,b=t.action;h=b.type,u=b.url,f=b.is_external,m=null!==(g=b.is_within)&&void 0!==g&&g,null!==(v=b.callback)&&void 0!==v?v:function(){}}var y,_,w;t.enable_text&&(y=null===(_=t.text)||void 0===_?void 0:null===(w=_.script)||void 0===w?void 0:w.vmap);var x,C=t.slot,E=t.type,O=t.sub_type,T=t.enable_border,S=t.border,k=t.color,P=t.enable_margin,A=t.margin,I=t.enable_padding,L=t.padding,N=t.text,B=N.text,R=N.color,F=N.font,M=F.size,D=F.style,V=F.family,H=F.weight,$=N.margin,z=N.padding,j=t.gradient,W=void 0===j?{}:j,U=t.enable_gradient;try{switch(h){case"done":case"dismiss":x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),e.complete(!1,"dismiss")};break;case"next":x=function(){e.complete(!1,"next"),a&&c+1<s.length&&e.next(n,c+1),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"prev":x=function(){e.complete(!1,"prev"),a&&c-1>=0&&e.prev(n,c-1),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"redirect":x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),m||f?window.open(u,m?"_self":"_blank"):l.logClientEvent("REDIRECT",{url:u}),e.next(!1,"redirect")};break;case"cancel":x=function(){e._isCancelled=!0,e.cancel(!0,"cancel"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"submit":x=function(){e.complete(!1,"submit"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;case"skip":x=function(){e.complete(!1,"skip"),window.Apxor.logActionEvent(o+B+"_Clicked",n,i)};break;default:x=function(){window.Apxor.logActionEvent(o+B+"_Clicked",n,i),e.cancel(!1,"cancel")}}}catch(t){window.ApxorLogger.error("Error setting actions on the buttons:"+t)}p.push({slot:C,type:E,sub_type:O,enable_border:T,border:S,bg_color:k,text_color:R,size:M,style:D,weight:H,font_family:V,text_margin:$,text_padding:z,enable_margin:P,margin:A,enable_padding:I,padding:L,enable_gradient:U,gradient:W}),d.push({type:"".concat(E||"button"),sub_type:"".concat(O||""),classes:"".concat(r,"-button-").concat(C),text:B,action:x})}),{buttons_array:d,buttons_css:p}},setCarousel=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t===CAROUSEL_TYPE.NUMBER&&e.enable_numbered){var n=e.numbered;if(e.index<=e.length)return"number"===n.style?"".concat(e.index,"/").concat(e.length):"number_of"===n.style?"".concat(e.index," of ").concat(e.length):"step_number"===n.style?"Step ".concat(e.index,"/").concat(e.length):"Step ".concat(e.index," of ").concat(e.length)}if(t===CAROUSEL_TYPE.CAROUSEL&&e.enable_pagination){var i=e.carousel;if(e.index<=e.length)return createCarousel(e,i)}return""};function createCarousel(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=document.createElement("div");n.setAttribute("class","carousel-container");var i=document.createElement("style"),o=2*parseInt(e.active_radius);i.innerHTML=".carousel-container{\n display:flex;\n flex-direction:row;\n padding-left:8px;\n gap:".concat(e.spacebetween,";\n align-items:center;\n }\n .carousel-indicator-inactive{\n height: ").concat(e.inactive_radius,";\n width: ").concat(e.inactive_radius,";\n background-color: ").concat(e.inactive_color,";\n border-radius: 50%;\n display: inline-block;\n }\n .carousel-indicator-active-default{\n height: ").concat(e.inactive_radius,";\n width: ").concat(e.inactive_radius,";\n background-color: ").concat(e.active_color,";\n border-radius: 50%;\n display: inline-block;\n }\n .carousel-indicator-active-narrow\n {\n height: ").concat(e.inactive_radius,";\n width: ").concat(o,"px;\n border-radius:").concat(e.inactive_radius,";\n background-color: ").concat(e.active_color,";\n display: inline-block;\n }\n .carousel-indicator-active-circle\n {\n height: ").concat(e.active_radius,";\n width: ").concat(e.active_radius,";\n background-color: ").concat(e.active_color,";\n border-radius: 50%;\n display: inline-block;\n }\n\n "),n.appendChild(i);for(var r=0;r<=t.length;r++){var a=document.createElement("div");r===t.index?a.setAttribute("class","carousel-indicator-active-".concat(e.style)):a.setAttribute("class","carousel-indicator-inactive"),n.appendChild(a)}return n.outerHTML.toString()}var generateFormField=function(t){var e,n,i,o,r,a,s,c,l,d,p,h,u,f,m,g,v,b;switch(t.type){case"fullname":return'\n <div class="mainName" style="padding: 8px; display: flex;gap :8px" >\n <div class="first" style="width:50%">\n '.concat(t.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(e=null==t?void 0:null===(n=t.name)||void 0===n?void 0:n[0])&&void 0!==e?e:" ","</label><br />"):"",'\n <input type="text" id="fname" placeholder="').concat(null!==(i=null==t?void 0:null===(o=t.placeholder)||void 0===o?void 0:o[0])&&void 0!==i?i:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n <div class="first" style="width:50%">\n ').concat(t.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(r=null==t?void 0:null===(a=t.name)||void 0===a?void 0:a[1])&&void 0!==r?r:" ","</label><br />"):"",'\n <input type="text" id="lname" placeholder="').concat(null!==(s=null==t?void 0:null===(c=t.placeholder)||void 0===c?void 0:c[1])&&void 0!==s?s:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n </div>');case"name":return'\n <div class="mainFullName" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="name" style="line-height:1.5;">'.concat(null!==(l=null==t?void 0:t.name)&&void 0!==l?l:" ","</label><br />"):"",'\n <input type="text" id="name" placeholder="').concat(null!==(d=null==t?void 0:t.placeholder)&&void 0!==d?d:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"/>\n </div>');case"email":return'\n <div class="mainEmail" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="email" style="line-height:1.5;">'.concat(null!==(p=null==t?void 0:t.name)&&void 0!==p?p:" ","</label><br />"):"",'\n <input type="email" id="email" placeholder="').concat(null!==(h=null==t?void 0:t.placeholder)&&void 0!==h?h:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"phone":return'\n <div class="mainPhoneNumber" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="phoneNumber" style="line-height:1.5;">'.concat(null!==(u=null==t?void 0:t.name)&&void 0!==u?u:" ","</label><br />"):"",'<input type="tel" id="phoneNumber" placeholder="').concat(null!==(f=null==t?void 0:t.placeholder)&&void 0!==f?f:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"date":return'\n <div class="mainDate" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="date" style="line-height:1.5;">'.concat(null!==(m=null==t?void 0:t.name)&&void 0!==m?m:" ","</label><br />"):"",'\n <input type="date" id="date" style="width:95%;border-radius:5px;padding:8px;"/>\n </div>');case"message":return'\n <div class="mainTextField" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(t.name?'<label for="textField" style="line-height:1.5;">'.concat(null!==(g=null==t?void 0:t.name)&&void 0!==g?g:" ","</label><br />"):"",'\n <textarea id="textField" placeholder="').concat(null!==(v=null==t?void 0:t.placeholder)&&void 0!==v?v:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"></textarea>\n </div>');case"button":return'\n <div class="buttonClass" style="width:100%;padding: 8px;box-sizing: border-box;">\n <input type="submit" value="'.concat(null!==(b=null==t?void 0:t.value)&&void 0!==b?b:" ",'" style="max-width:99%;width:100%;border-radius:5px;padding:8px;">\n </div>\n ');default:return}},getCloseWithCircleSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return'<svg viewBox="0 0 24 24" fill="none" width="'.concat(t,'" height="').concat(e,'" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="').concat(n,'"></path>\n <path d="M13.0594 12.0001L15.3594 9.70011C15.6494 9.41011 15.6494 8.93011 15.3594 8.64011C15.0694 8.35011 14.5894 8.35011 14.2994 8.64011L11.9994 10.9401L9.69937 8.64011C9.40937 8.35011 8.92937 8.35011 8.63938 8.64011C8.34938 8.93011 8.34938 9.41011 8.63938 9.70011L10.9394 12.0001L8.63938 14.3001C8.34938 14.5901 8.34938 15.0701 8.63938 15.3601C8.78938 15.5101 8.97937 15.5801 9.16937 15.5801C9.35937 15.5801 9.54937 15.5101 9.69937 15.3601L11.9994 13.0601L14.2994 15.3601C14.4494 15.5101 14.6394 15.5801 14.8294 15.5801C15.0194 15.5801 15.2094 15.5101 15.3594 15.3601C15.6494 15.0701 15.6494 14.5901 15.3594 14.3001L13.0594 12.0001Z" fill="').concat(i,'"></path>\n </svg>')},getCloseWithRectangleSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return'\n <svg viewBox="0 0 24 24" fill="currentColor" style="background-color:'.concat(n,";color:").concat(i,';" width="').concat(t,'" height="').concat(e,'">\n <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>\n </svg>\n ')},getCloseSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0;return'\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-x" viewBox="0 0 16 16">\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>')},getNumberOrDefault=function(t,e){var n=Number(t);return n||0===n?n:e},getStringOrDefault=function(t,e){var n=String(t);return n||e},getColorOrDefault=function(t,e){var n=String(t);return n||e},getArrayOrDefault=function(t,e){return t&&Array.isArray(t)?t:e},isEmptyObject=function(t){return"object"!==_typeof(t)||0===Object.keys(t).length},hexToRGB=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return e?"rgba("+n+", "+i+", "+o+", "+e+")":"rgb("+n+", "+i+", "+o+")"},getPIPSVG=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0;return'\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>')},getSlotNumberByPosition=function(t){return"left"===t?1:"center"===t?3:5},ApxorWalkthroughTour,onClickCallback=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(arguments.length>3?arguments[3]:void 0)try{n&&window.Apxor.logActionEvent("InlineTargetViewClicked",t,e),ApxorWalkthroughTour.complete()}catch(t){console.error(t)}};function addTourStep(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=t.animation,a=void 0===r?{}:r,s=t.bg_color,c=void 0===s?"black":s,l=t.border,d=void 0===l?{}:l,p=t.buttons_config,h=void 0===p?[]:p,u=t.corners,f=void 0===u?{}:u,m=t.shadow,g=void 0===m?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":m,v=t.opacity,b=void 0===v?1:v,y=t.dismiss_outside_touch,_=void 0!==y&&y,w=t.dismiss_target_touch,x=void 0===w||w,C=t.position,E=void 0===C?"TOP":C,O=t.text_config,T=void 0===O?{}:O,S=t.title_config,k=void 0===S?{}:S,P=t.view_id,A=(t.search_type,t.show_shadow),I=void 0!==A&&A,L=t.dim_background_color,N=void 0===L?"#0a0a0a":L,B=t.dim_background_opacity,R=void 0===B?.5:B,F=t.show_close_icon,M=void 0!==F&&F,D=t.set_font_to_scale,V=void 0!==D&&D,H=n.configId,$=n.configName,z=V?getFontMultiplier():1;z=z>1?z:1;var j=[],W="#3288e6",U="#f1f2f3",G="rgba(0, 0, 0, .75)",Y="rgba(0, 0, 0, .75)";h.forEach(function(t){var e,n,i,o,r,a,s;a=deepGet(t,["text_config","text"],null);var c=null!==(e=null==t?void 0:null===(n=t.action_config)||void 0===n?void 0:n.action)&&void 0!==e?e:"end",l=(null==t?void 0:t.action_config)||{},d=JSON.stringify(l);i=null==t?void 0:null===(o=t.action_config)||void 0===o?void 0:o.url;switch(c){case"done":case"dismiss":s=ApxorWalkthroughTour.complete;break;case"next":s=ApxorWalkthroughTour.next;break;case"redirect":s=function(){window.Apxor.redirectTo(H,$,a,d),ApxorWalkthroughTour.cancel()};break;default:s=ApxorWalkthroughTour.cancel}r="shepherd-button",r+="okButton"===t.id?"-secondary":"",["end","dismiss"].includes(c)?(G=deepGet(t,["text_config","color"],"#ccc"),W=t.color):(Y=deepGet(t,["text_config","color"],"#ccc"),U=t.color),j.push({classes:r,text:a,action:s})});var q=!!M&&!(h.length>=1),X={color:T.color,fontSize:T.size*z,fontFamily:T.font_family,fontStyle:T.style};if(T.margin_config&&Object.keys(T.margin_config).length>0){var K=T.margin_config;X.margin="".concat(K.top,"px ").concat(K.right,"px ").concat(K.bottom,"px ").concat(K.left,"px")}var J=T.style;"bold"===J&&(X.fontWeight=J);var Z={color:k.color,fontSize:k.size*z,fontFamily:k.font_family,fontStyle:k.style};if(k.margin_config&&Object.keys(k.margin_config).length>0){var Q=k.margin_config;Z.margin="".concat(Q.top,"px ").concat(Q.right,"px ").concat(Q.bottom,"px ").concat(Q.left,"px")}"bold"===(J=k.style)&&(X.fontWeight=J);var tt={"border-radius":f.enabled?f.width:0,background:c,"border-color":d.color,"border-width":d.width},et=document.querySelector("#"+P);function nt(t){return 50===t?0:-4}function it(t,e){switch(t.toLowerCase()){case"top":return"translateY(".concat(nt(e),"px)");case"right":return"translateX(".concat(nt(e),"px)");case"bottom":return"translateY(".concat(-nt(e),"px)");case"left":return"translateX(".concat(-nt(e),"px)")}}var ot=function(){var t=document.createElement("span");t.setAttribute("id","apxor-style-"+H+"-step-"+o),t.style.display="none";var e=document.createElement("style");return e.innerHTML='\n #shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);\n height: 100vh;\n left: 0;\n opacity: '.concat(null!=R?R:.5,";\n position: fixed;\n top: 0;\n transition: all .3s ease-out;\n width: 100vw;\n z-index: 9997;\n fill:").concat(null!=N?N:"transparent","\n }\n \n #shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;\n width: 100vw\n }\n \n .shepherd-modal.shepherd-enabled {\n position: relative;\n z-index: 9998\n }\n \n .shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n }\n \n .shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n }\n \n .tippy-popper.shepherd {\n z-index: 9999\n }\n \n .tippy-popper.shepherd[x-placement^=top] {\n margin-bottom: 0px\n }\n \n .tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n }\n \n .tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n }\n \n .tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n }\n \n .tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;\n padding-top:0px;\n padding-bottom:0px;\n text-align: left;\n max-width: calc(").concat(z,"*400px);\n }\n \n .shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n }\n \n .shepherd-element {\n outline: none;\n }\n \n .shepherd-element .shepherd-content header {\n *zoom: 1;\n align-items: left;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n display: flex;\n justify-content: left;\n line-height: 2em;\n ").concat(q?"padding: .75em;":"",'\n }\n \n .shepherd-element .shepherd-content header:after {\n clear: both;\n content: "";\n display: table\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;\n padding: 0;\n position: relative;\n vertical-align: middle\n }\n \n .shepherd-element .shepherd-content header .shepherd-title {\n color: ').concat(Z.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Z.fontSize,"px;\n font-family: ").concat(Z.fontFamily,"; \n font-weight: ").concat("bold"!==Z.fontStyle?"normal":Z.fontStyle,";\n font-style: ").concat("italic"===Z.fontStyle?"italic":"unset",";\n line-height: 1em;\n padding: .5em;\n padding-bottom: 0px;\n }\n\n .shepherd-content > .shepherd-header > .shepherd-title {\n color: ").concat(Z.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Z.fontSize,"px;\n font-family: ").concat(Z.fontFamily,"; \n font-weight: ").concat("bold"!==Z.fontStyle?"normal":Z.fontStyle,";\n font-style: ").concat("italic"===Z.fontStyle?"italic":"unset",';\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);\n font-size: 2em;\n margin-left: auto;\n text-decoration: none;\n transition: color .5s ease\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;\n content: "×"\n }\n \n .shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n }\n \n .shepherd-element .shepherd-content .shepherd-text {\n color: ').concat(X.color,";\n line-height: 1em;\n padding: .5em;\n }\n \n .shepherd-element .shepherd-content .shepherd-text a,\n .shepherd-element .shepherd-content .shepherd-text a:active,\n .shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);\n color: ").concat(X.color,";\n opacity: 0.75;\n text-decoration: none\n }\n \n .shepherd-element .shepherd-content .shepherd-text a:active:hover, \n .shepherd-element .shepherd-content .shepherd-text a:hover,\n .shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n }\n \n .shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n }\n \n .shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n }\n \n .shepherd-element .shepherd-content footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: flex-end;\n padding: 0 .75em .75em\n }\n \n .shepherd-content .shepherd-text {\n font-size: ").concat(X.fontSize,"px;\n font-family: ").concat(X.fontFamily,"; \n font-weight: ").concat("bold"!==X.fontStyle?"normal":X.fontStyle,";\n font-style: ").concat("italic"===X.fontStyle?"italic":"unset",";\n }\n\n .shepherd-content > .shepherd-text > p {\n font-size: ").concat(X.fontSize,"px;\n font-family: ").concat(X.fontFamily,"; \n font-weight: ").concat("bold"!==X.fontStyle?"normal":X.fontStyle,";\n font-style: ").concat("italic"===X.fontStyle?"italic":"unset",";\n color: ").concat(X.color,";\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n background: ").concat(W,";\n border: 0;\n border-radius: 3px;\n color: ").concat(G,";\n cursor: pointer;\n display: inline;\n font-family: inherit;\n font-size: .8em;\n letter-spacing: .1em;\n line-height: 1em;\n margin-right: .5em;\n padding: .75em 2em;\n text-transform: uppercase;\n transition: all .5s ease\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button:hover {\n background: ").concat(W,"77;\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary {\n background: ").concat(U,";\n color: ").concat(Y,";\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary:hover {\n background: ").concat(U,"88;\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button:last-child {\n margin-right: 0\n }\n \n @-webkit-keyframes cycle {\n 0% { transform: ").concat(it(E,0),"; }\n 50% { transform: ").concat(it(E,50),"; }\n 100% { transform: ").concat(it(E,100),"; }\n }\n \n @keyframes cycle {\n 0% { transform: ").concat(it(E,0),"; }\n 50% { transform: ").concat(it(E,50),"; }\n 100% { transform: ").concat(it(E,100),"; }\n }\n \n .tippy-tooltip.apxor-").concat(H,"-step-").concat(o,"-theme {\n animation: ").concat(a.enabled?a.type+" "+a.duration+"ms":"none",";\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n box-shadow: ").concat(I?g:"none",";\n color: ").concat(X.color,";\n opacity: ").concat(b,";\n border-radius: ").concat(tt["border-radius"]+"px",";\n background-color: ").concat(tt.background,";\n ").concat(function(t){switch(t.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(E),";\n }\n \n .apxor-").concat(H,"-step-").concat(o,"-theme .tippy-roundarrow {\n fill: ").concat(tt.background,";\n }\n\n .tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(tt.background,";\n }\n .tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(tt.background,";\n }\n "),t.appendChild(e),et.parentNode.insertBefore(t,et),t}(),rt=document.getElementById(P),at=document.getElementById("apxor-".concat(H,"-step-").concat(o)),st=function(t){onClickCallback(H,$,!1,x)},ct=function(){var t,e,n,o,r;try{var a;null===(a=ApxorWalkthroughTour)||void 0===a||a.complete()}catch(t){console.error(t)}dt.disconnect(),pt.disconnect(),null===(t=document.getElementById("shepherdModalOverlayContainer"))||void 0===t||t.remove(),null==ot||null===(e=ot.parentNode)||void 0===e||e.removeChild(ot),null==at||null===(n=at.parentNode)||void 0===n||n.removeChild(at),window.Apxor.logActionEvent("inline_dismissed",H,$),i.isShowingAction=!1,rt.removeEventListener("click",st),null===(o=window)||void 0===o||null===(r=o.Apxor)||void 0===r||r.updateFlag(!1)},lt=!1,dt=new MutationObserver(function(){if(!document.body.contains(rt)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(H,"-step-").concat(o,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),ct()}}),pt=new IntersectionObserver(function(){var t=isElementInViewport(rt);if(!t&<){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(H,"-step-").concat(o,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),ct()}t&&(lt=!0)});ApxorWalkthroughTour.addStep("apxor-step-"+o,{title:k&&k.text?k.text:null,text:[T&&T.text?T.text:"Tap here"],classes:"apxor-".concat(H,"-step-").concat(o,"-theme"),attachTo:{element:"#"+P,on:E.toLowerCase()},showCancelLink:q,buttons:j,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:_,theme:"apxor-".concat(H,"-step-").concat(o),onShow:function(){window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0),window.Apxor.logActionEvent("inline_shown",H,$),window.Apxor.updateCount(H),i.isShowingAction=!0,rt.addEventListener("click",st),dt.observe(document.body,{childList:!0,subtree:!0}),pt.observe(rt)},onHidden:ct}})}var showTooltip=function(t,e,n,i,o){var r=Array.isArray(e)&&e.length>0,a=t.delay,s=t.dim_background,c=t.view_id,l=t.find_interval,d=void 0===l?0:l,p=t.max_find_interval,h=void 0===p?1e4:p,u=t.scrollToView,f=!1;void 0!==u&&u&&(f={behavior:"smooth",block:"center"}),ApxorWalkthroughTour=new Shepherd.Tour({defaultStepOptions:{scrollTo:f},useModalOverlay:r||s});var m=function(){return document.getElementById(c)},g=function(a){try{var s=a.getBoundingClientRect();if(0===s.width||0===s.height)return void console.warn("Width and height are 0 for: ",c,". Can't show");if(s.top>=window.innerHeight)return void console.warn("Element ",c," not in viewport. Can't show")}catch(t){console.error(t)}if(r?e.forEach(function(t,e){addTourStep(t.ui,n,i,o,e)}):addTourStep(t,n,i,o),o.isShowingAction)console.error("An action already being shown");else try{ApxorWalkthroughTour.start(),o.isShowingAction=!0}catch(t){console.error(t)}};return setTimeout(function(){var t=m();t?g(t):(console.warn("Element with id:".concat(c," not found.")),d&&(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval(function(){var i=m();i?(clearInterval(n),g(i)):new Date-e>h&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")))},d)}(c)))},a),!0===n.auto_dismiss&&setTimeout(function(){ApxorWalkthroughTour.complete()},a+n.duration),ApxorWalkthroughTour.complete},DEFAULT_PADDING=5,fontMultiplier=1;function makeid$1(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<t;o++)e+=n.charAt(Math.floor(Math.random()*i));return e}var currentId=makeid$1(10);function getDocumentOffsetPosition(t){return t.getBoundingClientRect()}function createTextElement(t){var e=t.color,n=void 0===e?"#000":e,i=t.font_family,o=void 0===i?"cursive":i,r=t.margin_config,a=void 0===r?{}:r,s=t.size,c=void 0===s?14:s,l=t.style,d=void 0===l?"bold":l,p=t.text,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";c*=fontMultiplier;var u=document.createElement("span");u.setAttribute("id",currentId+"-"+h),u.className="apx-class-".concat(currentId,"-").concat(h);var f=document.createElement("style");return f.innerHTML="\n .apx-class-".concat(currentId,"-").concat(h," {\n z-index: 99999; \n text-align: initial; \n color: ").concat(n," !important; \n font-family: ").concat(o," !important; \n font-size: ").concat(c,"px !important; \n font-weight: ").concat(d," !important;\n font-style: ").concat("normal"===d||"italic"===d?d+" !important":"unset",";\n }\n "),console.log(u,u.style,n,o,c,d),Object.keys(a).length>0&&(u.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),u.appendChild(f),u.innerHTML=u.innerHTML+p,u}function createButtons(t,e){var n=t.button_classes,i=t.text,o=t.action,r=t.button_css,a=document.createElement("button");a.setAttribute("id",currentId+"-"+e),a.className="apx-".concat(n,"-").concat(currentId,"-").concat(e),a.onclick=function(){return o()};var s=document.createElement("style");s.innerHTML="\n .apx-".concat(n,"-").concat(currentId,"-").concat(e," {\n background-color: ").concat(r.color,";\n border-radius: ").concat(r.borders.radius,"px;\n margin: ").concat(r.margin.top,"px ").concat(r.margin.right,"px ").concat(r.margin.bottom,"px ").concat(r.margin.left,"px;\n padding: ").concat(r.padding.top,"px ").concat(r.padding.right,"px ").concat(r.padding.bottom,"px ").concat(r.padding.left,"px;\n visibility: ").concat(r.visibility,";\n }\n "),a.appendChild(s);var c=document.createElement("div");c.setAttribute("id",currentId+"- text -"+e),c.className="apx-text-".concat(n,"-").concat(currentId,"-").concat(e);var l=document.createElement("style");return l.innerHTML="\n .apx-text-".concat(n,"-").concat(currentId,"-").concat(e," {\n color:").concat(r.text_config.color,";\n padding:").concat(r.text_config.padding_config.top,"px ").concat(r.text_config.padding_config.right,"px ").concat(r.text_config.padding_config.bottom,"px ").concat(r.text_config.padding_config.left,"px;\n margin:").concat(r.text_config.margin_config.top,"px ").concat(r.text_config.margin_config.right,"px ").concat(r.text_config.margin_config.bottom,"px ").concat(r.text_config.margin_config.left,"px;\n font-family:").concat(r.text_config.font_family,";\n size:").concat(r.text_config.size,";\n style=").concat(r.text_config.style,"; \n }\n "),c.appendChild(l),c.innerHTML=c.innerHTML+i,a.appendChild(c),a}function createTitleDescriptionButtonElements(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=null,o=document.createElement("div");if(!e&&t?i=createTextElement(t):e&&t&&((i=document.createElement("div")).style.display="inline-flex",i.style.flexDirection="column",i.style.visibility="initial",i.style.textAlign="center",i.style.position="relative",i.appendChild(createTextElement(e)),i.appendChild(createTextElement(t))),o.style.position="absolute",o.appendChild(i),n){var r=document.createElement("div");r.style.zIndex=999999,r.style.visibility=1,r.style.textAlign="initial",n.forEach(function(t,e){r.appendChild(createButtons(t,e))}),r.style.position="relative",o.appendChild(r)}return document.body.appendChild(o),o}function addRippleStyles(t,e,n){return"\n <style>\n .ripple-animator {\n position: relative;\n display: -webkit-box;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n flex-direction: row;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n height: ".concat(n,"px !important;\n width: ").concat(e,"px !important;\n border-radius: ").concat("circle"===t?"100%":"0",";\n }\n .ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;\n left: -5px;\n }\n \n\n .ripple-animator:before,\n.ripple-animator:after {\n content: '';\n display: block;\n position: absolute;\n top: 0; \n right: 0; \n bottom: 0; \n left: 0;\n opacity:1;\n z-index:10;\n border: 0px solid white;\n border-radius: ").concat("circle"===t?"100%":"0%",";\n z-index: 99999;\n}\n\n .ripple-animator:before {\n animation: ripple 1s infinite ease-out;\n }\n\n @keyframes ripple{\n 0% { \n border: 0px solid white;\n transform: scale(0.8); \n }\n 100% { \n border: 20px solid white;\n transform: scale(1.5); \n opacity:0; \n }\n \n </style>")}function createInnerCircle(t,e,n,i,o,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,c=n-(a-t)/2,l=i-(a-e)/2;"circle"!=o&&(a=t,s=e,c=n,l=i);var d=document.createElement("div");return d.setAttribute("id",currentId+"-ripple-div"),r&&(d.innerHTML=addRippleStyles(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(c,"px"),d.style.top="".concat(l,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function getSVG(t,e){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(t,"\n </mask>\n </defs>\n ").concat(e,"\n </svg>\n ")}function getCircleSVG(t){var e=t.bg_color,n=t.opacity,i=t.innerRadius,o=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,c=t.outerCircleCenterY;return getSVG('\n <rect\n x="'.concat(s-a,'"\n y="').concat(c-a<0?0:c-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(o,'"\n cy="').concat(r,'"\n r="').concat(i,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(c,'" \n r="').concat(a,'" \n fill="').concat(e,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}function getRectangleSVG(t){var e=t.bg_color,n=t.opacity,i=t.targetElementLeft,o=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return getSVG('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(i,'" \n y="').concat(o,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(#apx-mask)"\n fill="').concat(e,'" \n fill-opacity="').concat(n,'" />\n '))}function createSVGDiv(t){var e=t.opacity,n=t.type,i=document.createElement("div");i.setAttribute("id",currentId+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="100%";var o="";return o="circle"===n?getCircleSVG(t):getRectangleSVG(t),i.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(e,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(o),document.body.appendChild(i),i}function showCoachmark(t,e,n,i,o){var r=t.bg_color,a=t.coach_mark_details,s=a.has_ripple,c=void 0!==s&&s,l=a.type,d=void 0===l?"circle":l,p=t.delay,h=t.buttons_config,u=void 0===h?[]:h,f=t.dismiss_outside_touch,m=void 0!==f&&f,g=t.opacity,v=void 0===g?.8:g,b=t.position,y=void 0===b?"TOP":b,_=t.text_config,w=t.title_config,x=void 0===w?null:w,C=t.view_id,E=t.scroll_to_view,O=void 0!==E&&E,T=(t.show_close_icon,t.set_font_to_scale),S=void 0!==T&&T,k=e.configId,P=e.configName;fontMultiplier=(fontMultiplier=S?getFontMultiplier():1)>1?fontMultiplier:1;var A=[];u.forEach(function(t){var e,n,i,o,r,a;o=deepGet(t,["text_config","text"],null);var s=deepGet(t,["action_config","action"],"end"),c=(null==t?void 0:t.action_config)||{},l=JSON.stringify(c),d=(e=null==t?void 0:null===(n=t.action_config)||void 0===n?void 0:n.url,function(){gt&>()}),p={next:d,complete:d,cancel:d};switch(s){case"done":case"dismiss":case"next":r=function(){p.complete(!1,"dismiss")};break;case"prev":r=function(){p.complete(!1,"prev")};break;case"redirect":r=function(){window.Apxor.redirectTo(k,P,o,l),p.next(!1,"redirect")};break;case"cancel":r=function(){p._isCancelled=!0,p.cancel(!0,"cancel")};break;default:r=function(){p.cancel(!1,"cancel")}}i="shepherd-button",i+="okButton"===t.id?"-secondary":"",a={borders:t.borders,color:t.color,margin:t.margin_config,padding:t.padding_config,text_config:t.text_config,visibility:t.visibility},A.push({classes:i,text:o,action:r,button_css:a})});var I={color:_.color,fontSize:_.size*fontMultiplier,fontFamily:_.font_family,fontStyle:_.style};if(_.margin_config&&Object.keys(_.margin_config).length>0){var L=_.margin_config;I.margin="".concat(L.top,"px ").concat(L.right,"px ").concat(L.bottom,"px ").concat(L.left,"px")}var N=_.style;"bold"===N&&(I.fontWeight=N);var B={color:x.color,fontSize:x.size*fontMultiplier,fontFamily:x.font_family,fontStyle:x.style};if(x.margin_config&&Object.keys(x.margin_config).length>0){var R=x.margin_config;B.margin="".concat(R.top,"px ").concat(R.right,"px ").concat(R.bottom,"px ").concat(R.left,"px")}"bold"===(N=x.style)&&(I.fontWeight=N);var F=document.getElementById(C);if(F){currentId=makeid$1(10);var M=getDocumentOffsetPosition(F),D=M.left,V=void 0===D?0:D,H=M.top,$=void 0===H?0:H,z=M.width,j=void 0===z?0:z,W=M.height,U=void 0===W?0:W;if(!O&&M.top>=window.innerHeight)console.warn("Element ",C," not in viewport. Can't show");else{var G=!1,Y=new MutationObserver(function(){document.body.contains(F)||gt()}),q=new IntersectionObserver(function(){var t=isElementInViewport(F);!t&&G&>(),t&&(G=!0)});console.log(M);var X=M.left<window.innerWidth/2;if(0!==U&&0!==j){var K=createTitleDescriptionButtonElements(_,x,A),J=K.offsetWidth,Z=K.offsetHeight,Q=0,tt=0;_&&_.margin_config&&(Q=Number(_.margin_config.left)||0,tt=Number(_.margin_config.right)||0);var et=createInnerCircle(j,U,V,$,d,c),nt=V+j/2,it=$+U/2,ot=Math.sqrt(Math.pow(j,2)+Math.pow(U,2))/2,rt=ot+Math.max(J,j)/2+2*DEFAULT_PADDING,at=-1,st=-1,ct=-1,lt=-1,dt=it-ot,pt=it+ot;switch(y){case"TOP":st=(ct=nt-J/2)<0?DEFAULT_PADDING:ct,at="circle"===d?it-ot-Z-25:$-Z-25,lt=pt-Math.abs(pt-at)/2;break;case"BOTTOM":st=(ct=nt-J/2)<0?DEFAULT_PADDING:ct,lt=dt+((at="circle"===d?it+ot+25:$+U+25)+Z-dt)/2}if(-1!==st&&-1!==at&&-1!==lt){!X&&st+J>window.innerWidth&&(st=window.innerWidth-J-Q-tt-10),K.style.left="".concat(st,"px"),K.style.top="".concat(at,"px");var ht=((ct=Math.min(V,st))+Math.max(V+j,st+J))/2;(ht=Math.min(ht,document.scrollingElement.scrollWidth))<0&&(ht=0),(lt=Math.min(lt,document.scrollingElement.scrollHeight))<0&&(lt=0);var ut=createSVGDiv({bg_color:r,opacity:v,innerRadius:ot,innerCenterX:nt,innerCenterY:it,outerRadius:rt,outerCircleCenterX:ht,outerCircleCenterY:lt,targetElementLeft:V,targetElementTop:$,targetElementWidth:j,targetElementHeight:U,type:d});ut.style.visibility="hidden",et.style.visibility="hidden",K.style.visibility="hidden";var ft=null,mt=function(t){var e=!t,n=F.getBoundingClientRect();t&&t.clientX>=n.left&&t.clientX<=n.left+n.width&&t.clientY>=n.top&&t.clientY<=n.top+n.height&&(e=!0),console.warn("Dismiss:",t,e,m,t.clientX>=n.left,t.clientX<=n.left+n.width,t.clientY>=n.top,t.clientY<=n.top+n.height,t.clientX,t.clientY,n.left,n.top,n.width,n.height),(m||e)&>()},gt=function(){Y.disconnect(),q.disconnect(),ut.parentNode.removeChild(ut),K.parentNode.removeChild(K),et.parentNode.removeChild(et),o&&o(),ft&&clearTimeout(ft)};return n&&!0===n.auto_dismiss&&(ft=setTimeout(function(){return mt()},p+n.duration)),ut.style.visibility="visible",et.style.visibility="visible",K.style.visibility="visible",m&&ut.addEventListener("click",mt),et.addEventListener("click",mt),O&&("TOP"===y?window.scrollTo({top:lt-rt,behavior:"smooth"}):"BOTTOM"===y&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,lt+rt),behavior:"smooth"})),Y.observe(document.body,{childList:!0,subtree:!0}),q.observe(F),i&&i(),mt}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",C)}}else console.warn("Element not found with id: ",C)}function showCoachmarkWithDelay(t,e,n,i,o,r,a){if(null===t.currentAction||void 0===t.currentAction)if(e&&e.delay<=0){var s=showCoachmark(e,i,o,r);a(s)}else setTimeout(function(){if(null===t.currentAction||void 0===t.currentAction){var s=showCoachmark(e,n,i,o,r);a(s)}else console.error("An action is already being shown. Try after it gets dismissed")},e.delay);else console.error("An action is already being shown. Try after it gets dismissed")}var CloseButton=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.fill_color=getColorOrDefault(e.fill_color,"#FFFFFF"),this.type=getStringOrDefault(e.type,"normal"),this.path=e.path,this.offset_top=getNumberOrDefault(e.offset_top,8),this.offset_right=getNumberOrDefault(e.offset_right,8),this.height=getNumberOrDefault(e.height,24),this.width=getNumberOrDefault(e.width,24),this.action=getStringOrDefault(e.action,"dismiss"),this.shape=getStringOrDefault(e.shape,"circle")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Padding=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.top=getNumberOrDefault(null==e?void 0:e.top,8),this.bottom=getNumberOrDefault(null==e?void 0:e.bottom,8),this.left=getNumberOrDefault(null==e?void 0:e.left,8),this.right=getNumberOrDefault(null==e?void 0:e.right,8)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Margin=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.top=getNumberOrDefault(null==e?void 0:e.top,8),this.bottom=getNumberOrDefault(null==e?void 0:e.bottom,8),this.left=getNumberOrDefault(null==e?void 0:e.left,8),this.right=getNumberOrDefault(null==e?void 0:e.right,8)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Border=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.radius=getNumberOrDefault(e.radius,0),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.width=getNumberOrDefault(e.width,0),this.style=getStringOrDefault(e.style,"solid")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Scroll=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.height=getNumberOrDefault(e.height,400),this.enable_border=e.enable_border,this.border=new Border(e.border)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Icon=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,48),this.height=getNumberOrDefault(e.height,48),this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_border=e.enable_border,this.border=new Border(e.border),this.alignment=getStringOrDefault(e.alignment,CENTER)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),BackgroundImage=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.mask_opacity=getNumberOrDefault(e.mask_opacity,.25),this.mask_color=getColorOrDefault(e.mask_color,"#000000")}),Image=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,360),this.height=getNumberOrDefault(e.height,360),this.enable_background_image=e.enable_background_image,this.background_image=new BackgroundImage(e.background_image),this.enable_border=e.enable_border,this.border=new Border(e.border)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),EmbeddedVideo=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.html=e.html}),Video=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.path=getStringOrDefault(e.path,""),this.width=getNumberOrDefault(e.width,360),this.height=getNumberOrDefault(e.height,360),this.enable_embed=e.enable_embed,this.embed=new EmbeddedVideo(e.embed),this.enable_border=e.enable_border,this.border=new Border(e.border),this.enable_audio=e.enable_audio,this.format=getStringOrDefault(e.format,"video/mp4")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Offset=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.skid=getNumberOrDefault(null==e?void 0:e.skid,0),this.distance=getNumberOrDefault(null==e?void 0:e.distance,0)}),Position=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.position=getStringOrDefault(null==e?void 0:e.position,"top-left").toLowerCase(),this.enable_offset=e.enable_offset,this.offset=new Offset(e.offset)}),DimBackground=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.opacity=getNumberOrDefault(e.opacity,.5),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Font=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.family=getStringOrDefault(e.family,"sans-serif").toLowerCase(),this.size=getNumberOrDefault(e.size,"14"),this.style=getStringOrDefault(e.style,"bold").toLowerCase(),this.weight=e.weight}),Text=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.background_color=null==e?void 0:e.background_color,this.alignment=getStringOrDefault(e.alignment,"center").toLowerCase(),this.color=getColorOrDefault(e.color,"#FFF").toLowerCase(),this.font=new Font(e.font),this.text=getStringOrDefault(e.text,""),this.localized_messages=e.localized_messages,this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_icon=e.enable_icon,this.icon=new Icon(e.icon),this.link_config=e.link_config,this.is_dynamic_text=e.is_dynamic_text,this.is_dynamic_script=e.is_dynamic_script,this.script=e.script,this.segments=e.segments,this.quote=e.quote}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Title=function(t){_inherits(n,Text);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).is_title=!0,t.is_description=!1,t}return _createClass(n)}(),Description=function(t){_inherits(n,Text);var e=_createSuper(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,i)).is_title=!1,t.is_description=!0,t}return _createClass(n)}(),Direction=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.nudge=getStringOrDefault(e.nudge,DIRECTION.VERTICAL),this.non_media=getStringOrDefault(e.non_media,DIRECTION.VERTICAL),this.buttons=getStringOrDefault(e.buttons,DIRECTION.VERTICAL)}),DismissActions=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.outside_touch=Boolean(e.outside_touch),this.target_touch=Boolean(e.target_touch)}),Form=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.font=new Font(e.font),this.padding=new Padding(e.padding),this.elements=e.elements}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Shadow=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFF"),this.offset_x=getNumberOrDefault(e.offset_x,0),this.offset_y=getNumberOrDefault(e.offset_y,0),this.blur_radius=getNumberOrDefault(e.blur_radius,0),this.spread_radius=getNumberOrDefault(e.spread_radius,0)}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Marketing=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.message=new Text(e.message)}),Gradient=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.direction=getStringOrDefault(e.direction,"to right"),this.colors=getArrayOrDefault(e.colors,["#FFF","000"])}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Action=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.type=getStringOrDefault(e.type,"dismiss").toLowerCase(),this.url=getStringOrDefault(e.url,""),this.is_external=Boolean(e.is_external),this.is_ir=Boolean(e.is_ir),this.callback=e.callback||function(){},this.is_within=Boolean(e.is_within)}),Button=_createClass(function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),null!=e&&e.position&&(this.position=new Position(e.position)),void 0===(null==e?void 0:e.slot)?this.slot=getSlotNumberByPosition(this.position.position):this.slot=getNumberOrDefault(e.slot,0),this.type=getStringOrDefault(e.type,"button"),this.sub_type=getStringOrDefault(e.sub_type,""),this.color=getColorOrDefault(e.color,"#FFF"),this.enable_action=e.enable_action,this.action=new Action(e.action),this.enable_margin=e.enable_margin,this.margin=new Margin(e.margin),this.enable_padding=e.enable_padding,this.padding=new Padding(e.padding),this.enable_border=e.enable_border,this.border=new Border(e.border),this.enable_text=e.enable_text,this.text=new Text(e.text),this.enable_gradient=e.enable_gradient,this.gradient={},this.enable_gradient&&(this.gradient=new Gradient(e.gradient))}),BottomButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),CenterButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),TopButton=function(t){_inherits(n,Button);var e=_createSuper(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(),Buttons=_createClass(function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.background_color=n.background_color,this.enable_top=n.enable_top,this.enable_center=n.enable_center,this.enable_bottom=n.enable_bottom,this.bottom=[],this.center=[],this.top=[],getArrayOrDefault(n.bottom,[]).forEach(function(t){e.bottom.push(new BottomButton(t))}),getArrayOrDefault(n.center,[]).forEach(function(t){e.center.push(new CenterButton(t))}),getArrayOrDefault(n.top,[]).forEach(function(t){e.top.push(new TopButton(t))}),this.enable_margin=n.enable_margin,this.enable_margin&&(this.margin=new Margin(n.margin)),this.enable_padding=n.enable_padding,this.enable_padding&&(this.padding=new Padding(n.padding)),this.enable_border=n.enable_border,this.enable_border&&(this.border=new Border(n.border)),this.enable_gradient=n.enable_gradient,this.enable_gradient&&(this.gradient=new Gradient(n.gradient))}),NumberedStepper=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"number"),this.position=getStringOrDefault(e.position,"bottom-left"),this.font=new Font(e.font),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Pagination=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"number"),this.position=getStringOrDefault(e.position,"bottom-left"),this.font=new Font(e.font),this.color=getColorOrDefault(e.color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),ProgressBar=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.position=getStringOrDefault(e.position,"top"),this.width=getNumberOrDefault(e.position,4),this.progress_color=getColorOrDefault(e.progress_color,"#000"),this.reamining_color=getColorOrDefault(e.reamining_color,"#FFFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Carousel=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.style=getStringOrDefault(e.style,"default"),this.spacebetween=this.position=getNumberOrDefault(e.space_between,4),this.active_radius=getNumberOrDefault(e.active_radius,4),this.inactive_radius=getNumberOrDefault(e.inactive_radius,2),this.active_color=getColorOrDefault(e.active_color,"#000000"),this.inactive_color=getColorOrDefault(e.inactive_color,"#FFF")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Stepper=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.index=getNumberOrDefault(e.index,1),this.length=getNumberOrDefault(e.length,1),this.enable_numbered=e.enable_numbered,this.enable_numbered&&(this.numbered=new NumberedStepper(e.numbered)),this.enable_pagination=e.enable_pagination,this.enable_pagination&&(this.pagination=new Pagination(e.pagination)),this.enable_carousel=e.enable_carousel,this.enable_carousel&&(this.carousel=new Carousel(e.carousel)),this.enable_progressbar=e.enable_progressbar,this.enable_progressbar&&(this.progressbar=new ProgressBar(e.progressbar)),this.enable_padding=null==e?void 0:e.enable_padding,this.enable_padding&&(this.padding=new Padding(e.padding)),this.enable_margin=null==e?void 0:e.enable_margin,this.enable_margin&&(this.margin=new Margin(e.margin))}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),ModalInApp=function(){function ModalInApp(t,e,n,i,o,r,a,s){var c=this,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},d=arguments.length>9?arguments[9]:void 0;_classCallCheck(this,ModalInApp),_defineProperty(this,"Hvlt",function(){if(!c.enable_marketing)return"";var t=c.marketing.message,e=t.alignment;return"left"===t.alignment?e="flex-start":"right"===t.alignment&&(e="flex-end"),"\n .apx-inapp-marketing".concat(c.cssPostFix," {\n align-self:").concat(e,";\n text-align:").concat(t.alignment,";\n }\n ")}),_defineProperty(this,"fKwP",function(t){var e={},n="";return t.forEach(function(t){var i,o,r,a,s,c,l,d,p,h;switch(t.type){case"fullname":document.getElementById("fname")&&(e["".concat(null!==(i=null==t?void 0:null===(o=t.name)||void 0===o?void 0:o[0])&&void 0!==i?i:"firstname")]=document.getElementById("fname").value),document.getElementById("lname")&&(e["".concat(null!==(r=null==t?void 0:null===(a=t.name)||void 0===a?void 0:a[1])&&void 0!==r?r:"lastname")]=document.getElementById("lname").value);break;case"name":document.getElementById("name")&&(e["".concat(null!==(s=null==t?void 0:t.name)&&void 0!==s?s:"name")]=document.getElementById("name").value);break;case"email":document.getElementById("email")&&(e["".concat(null!==(c=null==t?void 0:t.name)&&void 0!==c?c:"email")]=document.getElementById("email").value);break;case"phone":document.getElementById("phoneNumber")&&(e["".concat(null!==(l=null==t?void 0:t.name)&&void 0!==l?l:"phonenumber")]=document.getElementById("phoneNumber").value);break;case"date":document.getElementById("date")&&(e["".concat(null!==(d=null==t?void 0:t.name)&&void 0!==d?d:"date")]=document.getElementById("date").value);break;case"message":document.getElementById("textField")&&(e["".concat(null!==(p=null==t?void 0:t.name)&&void 0!==p?p:"feedback")]=document.getElementById("textField").value);break;case"button":n=null!==(h=null==t?void 0:t.callback)&&void 0!==h?h:""}}),{obj:e,callback:n}}),_defineProperty(this,"sYVJ",function(){if(c.enable_marketing){var t=document.createElement("div");t.classList.add("apx-inapp-marketing".concat(c.cssPostFix));var e=createNewTextElement(c.marketing.message,c.currentId,"marketing");t.appendChild(e),c.inAppContainer.appendChild(t)}}),this.index=d,this.uis=l,this.terminationConfig=e,this.isWalkthrough=s,this.cssPostFix="-".concat(n,"-").concat(i).replaceAll(" ","").replace(/[^\w\s]/gi,""),this.delay=t.delay||0,this.background_color=t.bg_color||COLORS.WHITE,this.width=t.width||50,this.height=t.height||50,this.direction=new Direction(t.direction),this.position=new Position(t.position),this.enable_dismiss_actions=t.enable_dismiss_actions,this.enable_dismiss_actions&&(this.dismiss_actions=new DismissActions(t.dismiss_actions)),this.enable_dimbackground=t.enable_dimbackground,this.enable_dimbackground&&(this.dimbackground=new DimBackground(t.dimbackground)),this.enable_padding=t.enable_padding,this.enable_padding&&(this.padding=new Padding(t.padding)),this.enable_margin=t.enable_margin,this.enable_margin&&(this.margin=new Margin(t.margin)),this.enable_border=t.enable_border,this.enable_border&&(this.border=new Border(t.border)),this.enable_close_button=t.enable_close_button,this.enable_close_button&&(this.close_button=new CloseButton(t.close_button)),this.enable_scroll=t.enable_scroll,this.enable_scroll&&(this.scroll=new Scroll(t.scroll)),this.enable_icon=t.enable_icon,this.enable_icon&&(this.icon=new Icon(t.icon)),this.enable_image=t.enable_image,this.enable_image&&(this.image=new Image(t.image)),this.enable_video=t.enable_video,this.enable_video&&(this.video=new Video(t.video)),this.enable_title=t.enable_title,this.enable_title&&(this.title=new Title(t.title)),this.enable_description=t.enable_description,this.enable_description&&(this.description=new Description(t.description)),this.enable_form=t.enable_form,this.enable_form&&(this.form=new Form(t.form)),this.enable_buttons=t.enable_buttons,this.enable_buttons&&(this.buttons=new Buttons(t.buttons)),this.enable_stepper=t.enable_stepper,this.enable_stepper&&(this.stepper=new Stepper(t.stepper)),this.enable_shadow=t.enable_shadow,this.enable_shadow&&(this.shadow=new Shadow(t.shadow)),this.enable_gradient=t.enable_gradient,this.enable_gradient&&(this.gradient=new Gradient(t.gradient)),this.enable_marketing=t.enable_marketing,this.enable_marketing&&(this.marketing=new Marketing(t.marketing)),this.min_width="",this.inapp_width="auto",this.inapp_height="auto",this.media_container_height=0,this.media_width="auto",this.media_height="auto",this.configId=n,this.name=i,this.showCallback=o,this.closeCallback=r,this.stepperCallBack=a,this.currentId=makeid(10),this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return _createClass(ModalInApp,[{key:"createInAppModal",value:function(){this._setInAppDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}},{key:"_setInAppDimensions",value:function(){var t=this.direction.nudge===DIRECTION.VERTICAL?this.width/100:this.height/100,e=this.direction.nudge!==DIRECTION.VERTICAL;this.enable_image?this._setDimenstionFromResolution(this.image.width,this.image.height,t,e):this.enable_video?this.video.enable_embed?this.direction.nudge===DIRECTION.VERTICAL?(this.inapp_width="".concat(this.video.width+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"),this.media_width="".concat(this.video.width,"px")):(this.inapp_height="".concat(this.video.height+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"),this.media_container_height=this.video.height,this.media_height="".concat(this.video.height,"px"),this.min_width="".concat(this.width,"%")):this._setDimenstionFromResolution(this.video.width,this.video.height,t,e):this.enable_icon?this.direction.nudge===DIRECTION.VERTICAL?this.inapp_width="".concat(this.width,"%"):this.min_width="".concat(this.width,"%"):this.direction.nudge===DIRECTION.VERTICAL&&(this.inapp_width="".concat(this.width,"%"))}},{key:"_setDimenstionFromResolution",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=getHeightWidthFromResolution({width:t,height:e},n,i);this.media_width="".concat(o.width,"px"),this.media_height="".concat(o.height,"px"),this.media_container_height=o.height,this.direction.nudge===DIRECTION.VERTICAL?this.inapp_width="".concat(o.width+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.left+this.padding.right:0),"px"):(this.inapp_height="".concat(o.height+(this.enable_border?2*this.border.width:0)+(this.enable_padding?this.padding.top+this.padding.bottom:0),"px"),this.min_width="".concat(this.width,"%"))}},{key:"_setBackgroundOverlays",value:function(){var t=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay".concat(this.cssPostFix));var e=this.overlayElement;this.enable_dimbackground&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-inapp-dimbackground-overlay".concat(this.cssPostFix)),e=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.enable_dismiss_actions&&this.dismiss_actions.outside_touch&&(e.onclick=function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container".concat(t.cssPostFix))}),document.body.appendChild(this.overlayElement)}},{key:"_setStyles",value:function(){var t=" \n ".concat(this._getBackgroundContainerStyles()," \n ").concat(this._getInAppContainerStyles()," \n ").concat(this._getScrollStyles()," \n ").concat(this._getControlsStyles()," \n ").concat(this._getInAppMediaContainerStyles(),"\n ").concat(this._getInAppNonMediaContainerStyles(),"\n ").concat(this._getTextConatinerStyles(),"\n ").concat(this._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getFormStyles(),"\n ").concat(this._getInAppButtonContainerStyles(),"\n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \n ").concat(this.Hvlt()," \n ").concat(this._getProgressBarStyles(),"\n ").concat(this._getBootstrapiconsStyles()," \n ").replaceAll("\n","").replace(/[\s]{2,999}/g,""),e=document.createElement("style");e.innerHTML=t,this.overlayElement.appendChild(e)}},{key:"_getBackgroundContainerStyles",value:function(){return"\n .apx-inapp-overlay".concat(this.cssPostFix," {\n width:100%;\n height:100%;\n }\n .apx-inapp-dimbackground-overlay").concat(this.cssPostFix," {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:").concat(this.enable_dimbackground?this.dimbackground.color:"transparent",";\n ").concat(this.enable_dimbackground?"opacity: ".concat(this.dimbackground.opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){var t=this.enable_border?this.border.width:0,e=t,n=t,i=t,o=t;this.enable_padding&&(e+=this.padding.top,n+=this.padding.left,i+=this.padding.right,o+=this.padding.bottom),this.enable_margin&&(e+=this.margin.top,n+=this.margin.left,i+=this.margin.right,o+=this.margin.bottom);var r="";switch(this.position.position){case INAPP_POSITION.TOP_LEFT:r="\n top:".concat(e,"px;\n left:").concat(n,"px;\n ");break;case INAPP_POSITION.TOP_CENTER:r="\n left:50%;\n top:".concat(e,"px;\n -webkit-transform: translate(-50%, ").concat(.1*e,"px);\n -moz-transform: translate(-50%, ").concat(e,"px);\n ");break;case INAPP_POSITION.TOP_RIGHT:r="\n top:".concat(e,"px;\n right:").concat(i,"px;\n ");break;case INAPP_POSITION.BOTTOM_LEFT:r="\n bottom:".concat(o,"px;\n left:").concat(n,"px;\n ");break;case INAPP_POSITION.BOTTOM_CENTER:r="\n left:50%;\n bottom:".concat(o,"px;\n -webkit-transform: translate(-50%, ").concat(.1*o,"px);\n -moz-transform: translate(-50%, ").concat(o,"px);\n ");break;case INAPP_POSITION.BOTTOM_RIGHT:r="\n bottom:".concat(o,"px;\n right:").concat(i,"px;\n ");break;case INAPP_POSITION.CENTER:default:r="\n left:50%;\n top:50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n "}var a="";this.min_width&&(a="min-width:".concat(this.min_width,";"));var s="";this.enable_border&&(s="\n border-radius: ".concat(this.border.radius,"px;\n border: ").concat(this.border.width,"px ").concat(this.border.style," ").concat(this.border.color,";\n "));var c="";this.enable_gradient&&(c="\n background-image:linear-gradient(".concat(this.gradient.direction,", ").concat(this.gradient.colors[0],", ").concat(this.gradient.colors[1],");\n "));var l="";this.enable_shadow&&(l="\n box-shadow: ".concat(this.shadow.offset_x,"px ").concat(this.shadow.offset_y,"px ").concat(this.shadow.blur_radius,"px ").concat(this.shadow.spread_radius,"px ").concat(this.shadow.color,";\n "));var d="";this.enable_padding&&(d="\n padding:".concat(this.padding.top,"px ").concat(this.padding.right,"px ").concat(this.padding.bottom,"px ").concat(this.padding.left,"px;\n "));var p=this.direction.nudge!==DIRECTION.VERTICAL?"flex-direction:row;":"flex-direction:column;";p=" ".concat(p,"\n justify-content:space-evenly;\n align-items:center;\n display:flex;\n ");var h="",u="";return this.enable_video&&this.video.enable_embed&&(h="max-width:100%;",u="max-height:100%;"),"\n .apx-inapp-container".concat(this.cssPostFix," {\n height:").concat(this.inapp_height,";\n width:").concat(this.inapp_width,";\n margin: auto;\n background-color:").concat(this.background_color,";\n z-index:9999;\n opacity:0;\n transition:all .5s cubic-bezier(.96,.23,.07,.8);\n position:fixed;\n visibility:hidden;\n\n ").concat(a,"\n ").concat(p,"\n ").concat(d,"\n ").concat(s,"\n ").concat(c,"\n ").concat(l,"\n ").concat(r,"\n ").concat(h,"\n ").concat(u,"\n }\n \n .apx-inapp-container").concat(this.cssPostFix,".open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return this.enable_scroll?"\n .apx-inapp-scroll".concat(this.cssPostFix," {\n overflow:scroll; \n overflow-x: hidden;\n height:").concat(this.scroll.height,"px;\n border-top: ").concat(this.scroll.border.width,"px ").concat(this.scroll.border.style," ").concat(this.scroll.border.color,";\n border-bottom : ").concat(this.scroll.border.width,"px ").concat(this.scroll.border.style," ").concat(this.scroll.border.color,";\n }\n "):"\n .apx-inapp-scroll".concat(this.cssPostFix," {\n overflow : hidden;\n }\n ")}},{key:"_getControlsStyles",value:function(){if(!this.enable_close_button)return"";return this.direction.non_media===DIRECTION.VERTICAL||this.direction.nudge===DIRECTION.VERTICAL?"\n .apx-inapp-close".concat(this.cssPostFix," {\n position: absolute;\n z-index:9999;\n top: ").concat(this.close_button.offset_top,"px;\n right: ").concat(this.close_button.offset_right,"px;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n cursor: pointer;\n }\n "):"\n .apx-inapp-close".concat(this.cssPostFix," {\n display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:center;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n cursor: pointer;\n }\n ")}},{key:"_getInAppMediaContainerStyles",value:function(){return"\n .apx-inapp-media-container".concat(this.cssPostFix,"{\n ").concat(this.enable_icon?"align-self:".concat(this.icon.alignment,";"):"","\n ").concat(this.enable_image||this.enable_video?"display:flex;":"","\n }")}},{key:"_getInAppNonMediaContainerStyles",value:function(){var t="";this.direction.nudge===DIRECTION.VERTICAL?t="max-height:".concat(window.innerHeight-this.media_container_height,"px;"):(this.enable_image||this.enable_video)&&(t="max-height:".concat(this.media_container_height,"px;"));return this.direction.non_media===DIRECTION.VERTICAL?"\n .apx-inapp-nonmedia-container".concat(this.cssPostFix,"{\n width:100%;\n display:flex;\n flex-direction:column;\n justify-content:center;\n align-items:stretch;\n ").concat(t,"\n }\n "):"\n .apx-inapp-nonmedia-container".concat(this.cssPostFix,"{\n width:100%;\n flex-grow:2;\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n align-items:center;\n ").concat(t,"\n }\n ")}},{key:"_getTextConatinerStyles",value:function(){return"\n .apx-inapp-text-container".concat(this.cssPostFix,"{\n width:100%;\n display:flex;\n flex-direction:column;\n justify-content: center;\n overflow: hidden;\n align-items:center;\n }\n ")}},{key:"_getTitleStyles",value:function(){if(!this.enable_title)return"";var t="";if(this.title.enable_icon){var e="";this.title.icon.enable_border&&(e="border-radius:".concat(this.title.icon.border.radius,"%;\n border:").concat(this.title.icon.border.width,"px ").concat(this.title.icon.border.style," ").concat(this.title.icon.border.color,";")),t="\n height: ".concat(this.title.icon.height,"px;\n width: ").concat(this.title.icon.width,"px;\n margin-right: 15px;\n ").concat(e,"\n ")}var n="";this.title.enable_margin&&(n=" \n margin-top:".concat(this.title.margin.top,"px;\n margin-bottom:").concat(this.title.margin.bottom,"px;\n margin-left:").concat(this.title.margin.left,"px;\n margin-right:").concat(this.title.margin.right,"px;\n "));var i="";return this.title.enable_padding&&(i=" \n padding-top:".concat(this.title.padding.top,"px;\n padding-bottom:").concat(this.title.padding.bottom,"px;\n padding-left:").concat(this.title.padding.left,"px;\n padding-right:").concat(this.title.padding.right,"px;\n ")),"\n .apx-inapp-title-div".concat(this.cssPostFix," {\n width:100%;\n display:flex;\n justify-content:").concat(this.title.alignment,";\n text-align:").concat(this.title.alignment,";\n ").concat(n,"\n ").concat(i,"\n }\n .apx-inapp-title-icon").concat(this.cssPostFix," {\n ").concat(t,"\n }\n ")}},{key:"_getDescriptionStyles",value:function(){if(!this.enable_description)return"";var t="";this.description.enable_margin&&(t=" \n margin-top:".concat(this.description.margin.top,"px;\n margin-bottom:").concat(this.description.margin.bottom,"px;\n margin-left:").concat(this.description.margin.left,"px;\n margin-right:").concat(this.description.margin.right,"px;\n "));var e="";return this.description.enable_padding&&(e=" \n padding-top:".concat(this.description.padding.top,"px;\n padding-bottom:").concat(this.description.padding.bottom,"px;\n padding-left:").concat(this.description.padding.left,"px;\n padding-right:").concat(this.description.padding.right,"px;\n ")),"\n .apx-inapp-description".concat(this.cssPostFix," {\n width:100%;\n justify-content:").concat(this.description.alignment,";\n text-align:").concat(this.description.alignment,";\n ").concat(t,"\n ").concat(e,"\n }\n ")}},{key:"_getFormStyles",value:function(){if(this.enable_form){var t="";return this.form.enable_padding&&(t="padding:".concat(this.form.padding.top,"px ").concat(this.form.padding.right,"px ").concat(this.form.padding.bottom,"px ").concat(this.form.padding.left,"px;")),"\n .apx-inapp-form-container".concat(this.cssPostFix,"{\n ").concat(t,"\n font-size:").concat(this.form.font.size,"px;\n font-family:").concat(this.form.font.family,";\n display:flex;\n flex-direction:column;\n }")}}},{key:"_getInAppButtonContainerStyles",value:function(){return"\n .apx-inapp-button-container".concat(this.cssPostFix,"{\n display:flex;\n flex-direction:row;\n align-items:center;\n justify-content:center;\n margin:0 10px 0 10px;\n }\n .apx-inapp-top-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }\n .apx-inapp-center-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }\n .apx-inapp-bottom-button-container").concat(this.cssPostFix,"{\n width:100%;\n height:auto;\n }")}},{key:"_getIconStyles",value:function(){var t="";if(this.enable_icon){var e="";this.icon.enable_border&&(e="\n border-radius:".concat(this.icon.border.radius,"%;\n border:").concat(this.icon.border.width,"px ").concat(this.icon.border.style," ").concat(this.icon.border.color,";\n "));var n="";this.icon.enable_margin&&(n="\n margin-top:".concat(this.icon.margin.top,"px;\n margin-bottom:").concat(this.icon.margin.bottom,"px;\n margin-left:").concat(this.icon.margin.left,"px;\n margin-right:").concat(this.icon.margin.right,"px;\n "));var i="";this.icon.enable_padding&&(i="\n padding-top:".concat(this.icon.padding.top,"px;\n padding-bottom:").concat(this.icon.padding.bottom,"px;\n padding-left:").concat(this.icon.padding.left,"px;\n padding-right:").concat(this.icon.padding.right,"px;\n ")),t="\n .apx-inapp-icon-container".concat(this.cssPostFix," {\n text-align:").concat(this.icon.alignment,";\n }\n .apx-inapp-icon-content").concat(this.cssPostFix," {\n height: ").concat(this.icon.height,"px;\n width: ").concat(this.icon.width,"px;\n ").concat(e,"\n ").concat(n,"\n ").concat(i,"\n }\n ")}return t}},{key:"_getImageStyles",value:function(){var t="";if(this.enable_image)if(this.image.enable_background_image)t="\n .apx-inapp-image".concat(this.cssPostFix,"{\n background-image: url('").concat(this.image.path,"');\n background-repeat: no-repeat;\n background-attachment: fixed; \n background-size: 100% 100%;\n height: ").concat(this.media_height,";\n width: ").concat(this.media_width,";\n box-shadow: inset ").concat(this.media_width," ").concat(this.media_height," 0px 0px ").concat(hexToRGB(this.image.background_image.mask_color,this.image.background_image.mask_opacity),",inset -").concat(this.media_width," -").concat(this.media_height," 0px 0px ").concat(hexToRGB(this.image.background_image.mask_color,this.image.background_image.mask_opacity),"\n }\n ");else{var e="";this.image.enable_border&&(e="\n border-radius:".concat(this.image.border.radius,"%;\n border:").concat(this.image.border.width,"px ").concat(this.image.border.style," ").concat(this.image.border.color,";\n ")),t="\n .apx-inapp-image".concat(this.cssPostFix,"{\n height: ").concat(this.media_height,";\n width: ").concat(this.media_width,";\n ").concat(e,"\n }\n ")}return t}},{key:"_getVideoStyles",value:function(){var t="";if(this.enable_video){var e="";this.video.enable_border&&(e="\n border-radius:".concat(this.video.border.radius,"%;\n border:").concat(this.video.border.width,"px ").concat(this.video.border.style," ").concat(this.video.border.color,";\n ")),t="\n .apx-inapp-video".concat(this.cssPostFix," {\n width:").concat(this.media_width,";\n height:").concat(this.media_height,";\n ").concat(e,"\n }\n ")}return t}},{key:"_getProgressBarStyles",value:function(){var t="";return this.has_progress_bar&&(t="\n .apx-inapp-progress-bar".concat(this.cssPostFix,"{\n position: absolute;\n width:100%;\n height:").concat(this.progressbar.width,"px;\n ").concat("top"===this.progressbar.position?"top:0px;":"bottom:0px;","\n left:0px;\n z-index:999999;\n overflow:hidden;\n cursor: pointer;\n background:").concat(this.progressbar.reamining_color,";\n }\n .apx-inapp-bar").concat(this.cssPostFix,"{\n width:100%;\n height:100%;\n background:").concat(this.progressbar.progress_color,";\n }")),t}},{key:"_getBootstrapiconsStyles",value:function(){return'\n .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .bi-x::before { \n content: "62a"; \n }\n .bi-x-circle-fill::before { \n content: "622"; \n }\n '}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this.direction.nudge===DIRECTION.VERTICAL&&(this._createTopButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.TOP)),this._createMediaContainer(),this.direction.nudge===DIRECTION.VERTICAL&&(this._createCenterButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER)),this._setImageOptions(),this._setVideoOptions(),this._setIconOptions(),this._createNonMediaContainer(),this._setTextContainer(),this._setTitleContent(),this._setDescriptionContent(),this._setFormContent(),this._createButtonContainer(),this._createBottomButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.BOTTOM),this._setProgressBar(),this._setCloseButton(),this.sYVJ()}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container".concat(this.cssPostFix)),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_createMediaContainer",value:function(){this.mediaContainer=document.createElement("div"),this.mediaContainer.classList.add("apx-inapp-media-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.mediaContainer)}},{key:"_setImageOptions",value:function(){if(this.enable_image)if(this.image.enable_background_image)this.inAppContainer.classList.add("apx-inapp-image".concat(this.cssPostFix));else{var t=document.createElement("img");t.src=this.image.path,t.classList.add("apx-inapp-image".concat(this.cssPostFix)),this.mediaContainer.appendChild(t)}}},{key:"_setVideoOptions",value:function(){if(this.enable_video)if(this.video.enable_embed){var t=document.createElement("div");t.classList.add("apx-inapp-video".concat(this.cssPostFix)),t.innerHTML="".concat(this.video.embed.html),this.mediaContainer.appendChild(t)}else{var e=document.createElement("video");e.classList.add("apx-inapp-video".concat(this.cssPostFix)),e.controlsList="noplaybackrate nodownload",e.disablePictureInPicture=!0,e.controls=!0,e.muted=!this.video.enable_audio;var n=document.createElement("source");n.setAttribute("src",this.video.path),n.setAttribute("type","video/mp4"),e.appendChild(n),this.mediaContainer.appendChild(e)}}},{key:"_setIconOptions",value:function(){if(this.enable_icon){var t=document.createElement("div");t.classList.add("apx-inapp-icon-container".concat(this.cssPostFix));var e=document.createElement("img");e.src=this.icon.path,e.classList.add("apx-inapp-icon-content".concat(this.cssPostFix)),t.appendChild(e),this.mediaContainer.appendChild(t)}}},{key:"_createNonMediaContainer",value:function(){this.nonMediaContainer=document.createElement("div"),this.nonMediaContainer.classList.add("apx-inapp-nonmedia-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.nonMediaContainer)}},{key:"_setTextContainer",value:function(){this.textContainer=document.createElement("div"),this.textContainer.classList.add("apx-inapp-text-container".concat(this.cssPostFix)),this.nonMediaContainer.appendChild(this.textContainer)}},{key:"_setTitleContent",value:function(){if(this.enable_title){var t=document.createElement("div");if(t.classList.add("apx-inapp-title-div".concat(this.cssPostFix)),this.title.enable_icon){var e=document.createElement("img");e.src=this.title.icon.path,e.classList.add("apx-inapp-title-icon".concat(this.cssPostFix)),t.appendChild(e)}t.appendChild(createNewTextElement(this.title,this.currentId,"title")),this.textContainer.appendChild(t)}}},{key:"_setDescriptionContent",value:function(){if(this.enable_description){var t=document.createElement("div");t.classList.add("apx-inapp-description".concat(this.cssPostFix)),t.appendChild(createNewTextElement(this.description,this.currentId,"description")),t.classList.add("apx-inapp-scroll".concat(this.cssPostFix)),this.textContainer.appendChild(t)}}},{key:"_setFormContent",value:function _setFormContent(){var _this3=this;if(this.enable_form){var _this$form$elements,formContainer=document.createElement("form");formContainer.classList.add("apx-inapp-form-container".concat(this.cssPostFix));var dummy="";null===(_this$form$elements=this.form.elements)||void 0===_this$form$elements||_this$form$elements.forEach(function(t){dummy+=generateFormField(t)}),formContainer.innerHTML=dummy,this.nonMediaContainer.appendChild(formContainer);var form=document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));form.addEventListener("submit",function(e){e.preventDefault();var _this3$generateRespon=_this3.fKwP(_this3.form.elements),obj=_this3$generateRespon.obj,callback=_this3$generateRespon.callback,evalString="(obj)=>"+callback+"(obj)",evalFunction=eval(evalString);evalFunction(obj),_this3.closeCallback(_this3.overlayElement,"dismiss",".apx-inapp-container".concat(_this3.cssPostFix))})}}},{key:"_createButtonContainer",value:function(){this.direction.non_media!==DIRECTION.VERTICAL&&(this.buttonContainer=document.createElement("div"),this.buttonContainer.classList.add("apx-inapp-button-container".concat(this.cssPostFix)),this.nonMediaContainer.appendChild(this.buttonContainer))}},{key:"_setProgressBar",value:function(){if(this.enable_stepper&&this.stepper.enable_progressbar){this.progressbar=this.stepper.progressbar;var t=document.createElement("div");t.classList.add("apx-inapp-progress-bar".concat(this.cssPostFix));var e=document.createElement("div");e.classList.add("apx-inapp-bar".concat(this.cssPostFix)),this.stepper.index<=this.stepper.length?e.style.transform="translateX(".concat(-(100-100/this.stepper.length*this.stepper.index),"%)"):t.style.visibility="hidden",t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_createTopButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_top&&(this.topButtonContainer=document.createElement("div"),this.topButtonContainer.classList.add("apx-inapp-top-button-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.topButtonContainer))}},{key:"_createCenterButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_center&&(this.centerButtonContainer=document.createElement("div"),this.centerButtonContainer.classList.add("apx-inapp-center-button-container".concat(this.cssPostFix)),this.inAppContainer.appendChild(this.centerButtonContainer))}},{key:"_createBottomButtonContainer",value:function(){var t;this.enable_buttons&&null!==(t=this.buttons)&&void 0!==t&&t.enable_bottom&&(this.bottomButtonContainer=document.createElement("div"),this.bottomButtonContainer.classList.add("apx-inapp-bottom-button-container".concat(this.cssPostFix)),this.direction.non_media===DIRECTION.VERTICAL?this.nonMediaContainer.appendChild(this.bottomButtonContainer):this.buttonContainer.appendChild(this.bottomButtonContainer))}},{key:"_setButtons",value:function(t){var e=this;if(this.enable_buttons&&(t===BUTTON_CONTAINER_POSITION.TOP&&this.buttons.enable_top||t===BUTTON_CONTAINER_POSITION.CENTER&&this.buttons.enable_center||t===BUTTON_CONTAINER_POSITION.BOTTOM&&this.buttons.enable_bottom)){var n=this.overlayElement,i=function(t,i){e.closeCallback(n,i,".apx-inapp-container".concat(e.cssPostFix))},o={next:function(t,n){i(0,"next"),e.stepperCallBack(t,n)},prev:function(t,n){i(0,"prev"),e.stepperCallBack(t,n)},complete:i,cancel:i,_isCancelled:!1,action:""},r={};r=t===BUTTON_CONTAINER_POSITION.TOP?this.buttons.top:t===BUTTON_CONTAINER_POSITION.CENTER?this.buttons.center:this.buttons.bottom;var a=generateButtonsBlock(this.configId,this.name,this.stepper,EVENT_PREFIX.INAPP,r,this.direction.buttons,t,o,this.isWalkthrough,this.uis,this.index);t===BUTTON_CONTAINER_POSITION.TOP?this.topButtonContainer.appendChild(a):t===BUTTON_CONTAINER_POSITION.CENTER?this.centerButtonContainer.appendChild(a):this.bottomButtonContainer.appendChild(a)}}},{key:"_setCloseButton",value:function(){var t=this;if(this.enable_close_button){var e=document.createElement("span");this.close_button.type===CLOSE_BUTTON_STYLE.NORMAL?e.innerHTML=getCloseSVG(this.close_button.width,this.close_button.height,this.close_button.color):this.close_button.type===CLOSE_BUTTON_STYLE.FILL?"circle"===this.close_button.shape?e.innerHTML=getCloseWithCircleSVG(this.close_button.width,this.close_button.height,this.close_button.fill_color,this.close_button.color):e.innerHTML=getCloseWithRectangleSVG(this.close_button.width,this.close_button.height,this.close_button.fill_color,this.close_button.color):e.innerHTML='<img src="'.concat(this.close_button.path,'" width="').concat(this.close_button.width,'px" height="').concat(this.close_button.height,'px"></img>'),e.classList.add("apx-inapp-close".concat(this.cssPostFix)),e.addEventListener("click",function(){t.closeCallback(t.overlayElement,t.close_button.action,".apx-inapp-container".concat(t.cssPostFix))}),this.direction.non_media===DIRECTION.VERTICAL||this.direction.nudge===DIRECTION.VERTICAL?this.inAppContainer.appendChild(e):this.buttonContainer.appendChild(e)}}},{key:"_setAutoTerminate",value:function(){var t=this;!0===this.terminationConfig.auto_dismiss&&window.setTimeout(function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container".concat(t.cssPostFix))},this.delay+this.terminationConfig.duration)}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}}]),ModalInApp}(),PIPButton=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.color=getColorOrDefault(e.color,"#FFFFFF"),this.fill_color=getColorOrDefault(e.fill_color,"#FFFFFF"),this.type=getStringOrDefault(e.type,"normal"),this.path=e.path,this.offset_top=getNumberOrDefault(e.offset_top,8),this.offset_right=getNumberOrDefault(e.offset_right,8),this.height=getNumberOrDefault(e.height,24),this.width=getNumberOrDefault(e.width,24),this.action=getStringOrDefault(e.action,"dismiss"),this.shape=getStringOrDefault(e.shape,"circle")}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),PIP=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.enable_toggles=e.enable_toggles}return _createClass(t,null,[{key:"isEnabled",value:function(t){return!(isUndefined$1(t)||isNull(t)||isEmptyObject(t))}}]),t}(),Logger=window.ApxorLogger,VideoInApp=function(){function t(e,n,i,o,r){var a=this;_classCallCheck(this,t),_defineProperty(this,"YZTN",function(){a.createPlayer();try{if(a.mode==VIDEOS_MODES.PIP){var t=a.videoElement,e=a.hideCallback;t.onloadedmetadata=function(){t.disablePictureInPicture=!1,t.requestPictureInPicture().catch(function(t){Logger.error("Can't show PIP:".concat(t)),e()})}}else a.subX();a.showCallback()}catch(t){Logger.error("Can't show video:".concat(t)),a.hideCallback()}}),_defineProperty(this,"yNbM",function(){var t=getHeightWidthFromResolution(a.video),e=t.width,n=t.height;a.height=n,a.width=e}),_defineProperty(this,"erWH",function(){var t=document.getElementById("apx-mpl-styles");t&&t.remove()}),_defineProperty(this,"Xrri",function(){a.videoElement.addEventListener("ended",function(){var t=document.getElementById("apx-cta-btn");t&&t.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))}),a.videoElement.addEventListener("play",function(){var t=document.getElementById("apx-cta-btn");t&&t.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))})}),_defineProperty(this,"ShAr",function(){if(a.enable_pip_button&&a.pip.enable_toggles){a.videoElement.addEventListener("leavepictureinpicture",function(){a.videoElement.disablePictureInPicture=!0,"PIP"===a.mode?(a.hideCallback(),a.videoPlayer.remove()):a.videoPlayer.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))},!1);a.videoElement.addEventListener("enterpictureinpicture",function(){a.videoPlayer.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))},!1)}}),_defineProperty(this,"QkKD",function(){if(a.enable_close_button,a.enable_close_button){var t=document.createElement("span");a.close_button.type===CLOSE_BUTTON_STYLE.NORMAL?t.innerHTML=getCloseSVG(a.close_button.width,a.close_button.height,a.close_button.color):a.close_button.type===CLOSE_BUTTON_STYLE.FILL?"circle"===a.close_button.shape?t.innerHTML=getCloseWithCircleSVG(a.close_button.width,a.close_button.height,a.close_button.fill_color,a.close_button.color):t.innerHTML=getCloseWithRectangleSVG(a.close_button.width,a.close_button.height,a.close_button.fill_color,a.close_button.color):t.innerHTML='<img src="'.concat(a.close_button.path,'" width="').concat(a.close_button.width,'px" height="').concat(a.close_button.height,'px"></img>'),t.classList.add("apx-video-close-btn".concat(a.cssPostFix)),t.addEventListener("click",function(){try{a.videoPlayer.remove(),a.hideCallback("cancel"),a.erWH()}catch(t){console.log("Error \n ".concat(t," \n occured while closing the video"))}}),a.videoPlayer.appendChild(t)}if(a.enable_pip_button){var e=document.createElement("span");e.innerHTML=getPIPSVG(a.pip_button.width,a.pip_button.height,a.pip_button.color),e.classList.add("apx-video-pip-btn".concat(a.cssPostFix)),e.addEventListener("click",function(){try{a.videoElement.disablePictureInPicture=!1,a.videoElement.requestPictureInPicture()}catch(t){console.log("Error \n ".concat(t," \n while starting the PIP"))}}),a.videoPlayer.appendChild(e)}}),_defineProperty(this,"vgYS",function(){a.videoPlayer.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))}),_defineProperty(this,"subX",function(){a.videoPlayer.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))}),_defineProperty(this,"oPBv",function(){return a.videoElement}),this.videoPlayer=null,this.videoElement=null,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer",this.cssPostFix="-".concat(this.configId,"-").concat(this.name).replaceAll(" ","").replace(/[^\w\s]/gi,""),this.videoConfig=e,this.bg_color=e.bg_color,this.mode=getStringOrDefault(e.mode,"PIP"),this.position=new Position(e.position),this.enable_buttons=e.enable_buttons,this.enable_buttons&&(this.buttons=new Buttons(e.buttons)),this.direction=new Direction(e.direction),this.enable_close_button=e.enable_close_button,this.enable_close_button&&(this.close_button=new CloseButton(e.close_button)),this.enable_pip_button=e.enable_pip_button,this.enable_pip_button&&(this.pip_button=new PIPButton(e.pip_button)),this.video=new Video(e.video),this.pip=new PIP(e.pip)}return _createClass(t,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apx-video-player"),this.videoPlayer.style="background-color:".concat(this.bg_color,";"),this.yNbM(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this.Xrri(),this.ShAr(),this.QkKD(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER),this.vgYS(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apx-mpl-styles")){var t,e,n=document.createElement("style");n.setAttribute("id","apx-mpl-styles"),n.innerHTML="\n div.apx-video-player".concat(this.cssPostFix,"--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apx-video-player").concat(this.cssPostFix,"--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n\n .apx-video-hide-elmt").concat(this.cssPostFix," {\n display : none;\n }\n\n .apx-video-pip-btn").concat(this.cssPostFix," {\n position: absolute;\n top: 10px;\n left: 10px;\n width: ").concat(this.pip_button.width,"px;\n height: ").concat(this.pip_button.height,"px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apx-video-pip-btn").concat(this.cssPostFix," {\n opacity: 1;\n }\n \n .apx-video-close-btn").concat(this.cssPostFix," {\n position: absolute;\n top: 10px;\n top: ").concat(null===(t=this.close_button)||void 0===t?void 0:t.offset_top,"px;\n right: ").concat(null===(e=this.close_button)||void 0===e?void 0:e.offset_right,"px;\n width: ").concat(this.close_button.width,"px;\n height: ").concat(this.close_button.height,"px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apx-video-close-btn").concat(this.cssPostFix," {\n opacity: 1;\n }\n\n .apx-video-cta").concat(this.cssPostFix,' {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(n)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.position.position){case INAPP_POSITION.TOP_LEFT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--topLeft"));break;case INAPP_POSITION.TOP_RIGHT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--topRight"));break;case INAPP_POSITION.BOTTOM_LEFT:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--bottomLeft"));break;case INAPP_POSITION.BOTTOM_RIGHT:default:this.videoPlayer.classList.add("apx-video-player".concat(this.cssPostFix,"--bottomRight"))}}},{key:"_setPlayerContent",value:function(){this.videoElement=document.createElement("video"),this.videoElement.width=this.width,this.videoElement.height=this.height,this.videoElement.controlsList="noplaybackrate nodownload",this.videoElement.controls=!0,this.videoElement.disablePictureInPicture=!0,this.videoElement.autoplay=!0,this.video.enable_audio&&(this.videoElement.muted=!0);var t=document.createElement("source");t.setAttribute("src",this.video.path),t.setAttribute("type",this.video.format),this.videoElement.appendChild(t),this.videoPlayer.appendChild(this.videoElement)}},{key:"_setButtons",value:function(t){var e=this;if(this.enable_buttons&&(t===BUTTON_CONTAINER_POSITION.TOP&&this.buttons.enable_top||t===BUTTON_CONTAINER_POSITION.CENTER&&this.buttons.enable_center||t===BUTTON_CONTAINER_POSITION.BOTTOM&&this.buttons.enable_bottom)){var n=function(){try{e.videoPlayer.remove(),e.hideCallback(),e.erWH()}catch(t){console.log("Can't close the video player\n".concat(t))}},i={next:n,prev:n,complete:n,cancel:n,_isCancelled:!1,action:""},o={};o=t===BUTTON_CONTAINER_POSITION.TOP?this.buttons.top:t===BUTTON_CONTAINER_POSITION.CENTER?this.buttons.center:this.buttons.bottom;var r=generateButtonsBlock(this.configId,this.name,this.stepper,EVENT_PREFIX.INAPP,o,this.direction.buttons,t,i,this.isWalkthrough,this.uis,this.index);r.setAttribute("id","apx-cta-btn"),r.classList.add("apx-video-cta".concat(this.cssPostFix)),r.classList.add("apx-video-hide-elmt".concat(this.cssPostFix)),this.videoPlayer.appendChild(r)}}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apx-video-player")}},{key:"canShowVideoInApp",value:function(t){var e=t.binding,n=t.activity,i=!0;return e&&""!=n&&window.location.pathname!==n&&(i=!1),i}}]),t}(),RTM=_createClass(function t(){var e=this;_classCallCheck(this,t),_defineProperty(this,"ESSB",{}),_defineProperty(this,"isShowingAction",!1),_defineProperty(this,"currentAction",null),_defineProperty(this,"version",31),_defineProperty(this,"isInitialised",!1),_defineProperty(this,"EEaE",{}),_defineProperty(this,"crkP",function(){e.isInitialised=!0;var t=history.pushState;history.pushState=function(){var e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};var n=history.replaceState;history.replaceState=function(){var t=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){e.removeAll()})}),_defineProperty(this,"show",function(t,n,i,o){e.isInitialised||e.crkP();try{if(null!==e.currentAction&&void 0!==e.currentAction)return void console.error("An action already being shown");var r=JSON.parse(t),a={};a.auto_dismiss=n>0,a.duration=n,"inline"===r.display_type?e.currentAction=showTooltip(r,[],a,{configId:i,configName:o},e):showCoachmarkWithDelay(e,r,{configId:i,configName:o},a,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inline_shown",i,o),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(){e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inline_dismissed",i,o),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)},function(t){e.currentAction=t})}catch(t){var s,c;e.isShowingAction=!1,null===(s=window)||void 0===s||null===(c=s.Apxor)||void 0===c||c.updateFlag(!1),console.error(t)}}),_defineProperty(this,"removeAll",function(){if(window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1),null!==e.currentAction&&void 0!==e.currentAction){e.isShowingAction=!1;try{e.currentAction(),e.currentAction=null,console.log("Callback is called")}catch(t){}}}),_defineProperty(this,"createInAppVideo",function(t,n,i){var o=JSON.parse(t);VideoInApp.isAVideoBeingPlayed()||VideoInApp.canShowVideoInApp(o)&&new VideoInApp(o,n,i,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inapp_shown",n,i),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(){e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inapp_dismissed",n,i),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)}).YZTN()}),_defineProperty(this,"createInAppModal",function(t,n,i){var o=JSON.parse(t);new ModalInApp(o,n,i,function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inapp_shown",n,i),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))},function(t,o){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c",s=document.querySelector(a);null==s||null===(r=s.classList)||void 0===r||r.toggle("open"),t.remove(),e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inapp_dismissed",n,i),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)},function(){},!1,[],0).createInAppModal()})}),rtm=new RTM;window.ApxorRTM=rtm;try{void 0===exports&&null===exports||(exports.default=rtm,module.exports=exports.default)}catch(t){}return rtm});
|