apxor-rtm-ui 0.0.10 → 0.0.11
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.min.js +7 -6
- package/package.json +3 -3
- package/dist/apxor.rtm.js.bak +0 -11190
package/dist/apxor.rtm.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
2
|
-
/*! shepherd.js 4.0.0-beta.1 */function
|
|
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 t(e){return(t="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})(e)}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function n(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
|
|
2
|
+
/*! shepherd.js 4.0.0-beta.1 */()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function a(e){return(a="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)})(e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(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&&f(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?m(e):n}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(t){i=!0,r=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function g(t){return t instanceof HTMLElement}function b(t){return"function"==typeof t}function w(t){return"string"==typeof t}function x(t){return void 0===t}
|
|
3
3
|
/**!
|
|
4
4
|
* tippy.js v5.0.0-alpha.2
|
|
5
5
|
* (c) 2017-2019 atomiks
|
|
6
6
|
* MIT License
|
|
7
|
-
*/function
|
|
7
|
+
*/function E(){return(E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}var k="undefined"!=typeof window&&"undefined"!=typeof document,O=k?navigator.userAgent:"",S=/MSIE |Trident\//.test(O),T=/UCBrowser\//.test(O),A=k&&/iPhone|iPad|iPod/.test(navigator.platform),C={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},L=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],_={passive:!0},M={isTouch:!1},B=0;function H(){M.isTouch||(M.isTouch=!0,A&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",I))}function I(){var t=performance.now();t-B<20&&(M.isTouch=!1,document.removeEventListener("mousemove",I),A||document.body.classList.remove("tippy-iOS")),B=t}function D(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var N=Object.keys(C);function F(t,e){return{}.hasOwnProperty.call(t,e)}function P(t,e,n){if(Array.isArray(t)){var o=t[e];return null==o?n:o}return t}function j(t,e){return t&&t.modifiers&&t.modifiers[e]}function z(t){return t instanceof Element}function W(t,e){return"function"==typeof t?t.apply(null,e):t}function Y(t,e){t.filter((function(t){return"flip"===t.name}))[0].enabled=e}function V(){return document.createElement("div")}function R(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function q(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function X(t,e){var n=E({},e,{content:W(e.content,[t])},e.ignoreAttributes?{}:function(t){return N.reduce((function(e,n){var o=(t.getAttribute("data-tippy-"+n)||"").trim();if(!o)return e;if("content"===n)e[n]=o;else try{e[n]=JSON.parse(o)}catch(t){e[n]=o}return e}),{})}(t));return n.animateFill&&(n.arrow=!1),(n.arrow||T)&&(n.animateFill=!1),n}function U(t,e){return 0===e?t:function(o){clearTimeout(n),n=setTimeout((function(){t(o)}),e)};var n}function G(t,e,n){t&&t!==e&&t.apply(null,n)}function K(t){return[].slice.call(t)}function J(t,e){return t.indexOf(e)>-1}function Q(t,e){t.innerHTML=z(e)?e.innerHTML:e}function Z(t,e){if(z(e.content))Q(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function $(t){return{tooltip:t.querySelector(".tippy-tooltip"),backdrop:t.querySelector(".tippy-backdrop"),content:t.querySelector(".tippy-content"),arrow:t.querySelector(".tippy-arrow")||t.querySelector(".tippy-svg-arrow")}}function tt(t){t.setAttribute("data-inertia","")}function et(t){var e=V();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",z(t)?e.appendChild(t):Q(e,"round"===t?'<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>':t)),e}function nt(t){var e=V();return e.className="tippy-backdrop",e.setAttribute("data-state",t?"visible":"hidden"),e}function ot(t){t.setAttribute("data-interactive","")}function it(t,e,n){var o=T&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](o,n)}function rt(t){return t.split("-")[0]}function at(t,e,n){n.split(" ").forEach((function(n){n&&t.classList[e](n+"-theme")}))}function st(t,e){var n=V();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=V();o.className="tippy-tooltip",o.id="tippy-"+t,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),at(o,"add",e.theme);var i=V();return i.className="tippy-content",i.setAttribute("data-state","hidden"),e.interactive&&ot(o),e.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(et(e.arrow))),e.animateFill&&(o.appendChild(nt(!1)),o.setAttribute("data-animatefill","")),e.inertia&&tt(o),Z(i,e),o.appendChild(i),n.appendChild(o),ct(n,e,e,!1),n}function ct(t,e,n,o){var i=$(t),r=i.tooltip,a=i.content,s=i.backdrop,c=i.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&&Z(a,n),!e.animateFill&&n.animateFill?(r.appendChild(nt(o)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(et(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(et(n.arrow))),!e.interactive&&n.interactive?ot(r):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(r),!e.inertia&&n.inertia?tt(r):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==n.theme&&(at(r,"remove",e.theme),at(r,"add",n.theme))}for(
|
|
8
8
|
/**!
|
|
9
9
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
10
10
|
* @version 1.15.0
|
|
@@ -28,15 +28,16 @@
|
|
|
28
28
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
29
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
30
|
* SOFTWARE.
|
|
31
|
-
*/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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}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"),c={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return getClientRect(c)}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,o=i?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,n);return getOffsetRectRelativeToArbitraryNode(n,o,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;
|
|
31
|
+
*/
|
|
32
|
+
var lt="undefined"!=typeof window&&"undefined"!=typeof document,pt=["Edge","Trident","Firefox"],dt=0,ut=0;ut<pt.length;ut+=1)if(lt&&navigator.userAgent.indexOf(pt[ut])>=0){dt=1;break}var ht=lt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),dt))}};function ft(t){return t&&"[object Function]"==={}.toString.call(t)}function mt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function vt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function yt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=mt(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?t:yt(vt(t))}var gt=lt&&!(!window.MSInputMethodContext||!document.documentMode),bt=lt&&/MSIE 10/.test(navigator.userAgent);function wt(t){return 11===t?gt:10===t?bt:gt||bt}function xt(t){if(!t)return document.documentElement;for(var e=wt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===mt(n,"position")?xt(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Et(t){return null!==t.parentNode?Et(t.parentNode):t}function kt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,i=n?e:t,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,c=r.commonAncestorContainer;if(t!==c&&e!==c||o.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&xt(a.firstElementChild)!==a?xt(c):c;var l=Et(t);return l.host?kt(l.host,e):kt(t,Et(e).host)}function Ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function St(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Ot(e,"top"),i=Ot(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=i*r,t.right+=i*r,t}function Tt(t,e){var n="x"===e?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+o+"Width"],10)}function At(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],wt(10)?parseInt(n["offset"+t])+parseInt(o["margin"+("Height"===t?"Top":"Left")])+parseInt(o["margin"+("Height"===t?"Bottom":"Right")]):0)}function Ct(t){var e=t.body,n=t.documentElement,o=wt(10)&&getComputedStyle(n);return{height:At("Height",e,n,o),width:At("Width",e,n,o)}}var Lt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_t=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),Mt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function Ht(t){return Bt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function It(t){var e={};try{if(wt(10)){e=t.getBoundingClientRect();var n=Ot(t,"top"),o=Ot(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?Ct(t.ownerDocument):{},a=r.width||t.clientWidth||i.right-i.left,s=r.height||t.clientHeight||i.bottom-i.top,c=t.offsetWidth-a,l=t.offsetHeight-s;if(c||l){var p=mt(t);c-=Tt(p,"x"),l-=Tt(p,"y"),i.width-=c,i.height-=l}return Ht(i)}function Dt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=wt(10),i="HTML"===e.nodeName,r=It(t),a=It(e),s=yt(t),c=mt(e),l=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Ht({top:r.top-a.top-l,left:r.left-a.left-p,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var u=parseFloat(c.marginTop,10),h=parseFloat(c.marginLeft,10);d.top-=l-u,d.bottom-=l-u,d.left-=p-h,d.right-=p-h,d.marginTop=u,d.marginLeft=h}return(o&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=St(d,e)),d}function Nt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,o=Dt(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:Ot(n),s=e?0:Ot(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return Ht(c)}function Ft(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===mt(t,"position"))return!0;var n=vt(t);return!!n&&Ft(n)}function Pt(t){if(!t||!t.parentElement||wt())return document.documentElement;for(var e=t.parentElement;e&&"none"===mt(e,"transform");)e=e.parentElement;return e||document.documentElement}function jt(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?Pt(t):kt(t,e);if("viewport"===o)r=Nt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=yt(vt(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===o?t.ownerDocument.documentElement:o;var c=Dt(s,a,i);if("HTML"!==s.nodeName||Ft(a))r=c;else{var l=Ct(t.ownerDocument),p=l.height,d=l.width;r.top+=c.top-c.marginTop,r.bottom=p+c.top,r.left+=c.left-c.marginLeft,r.right=d+c.left}}var u="number"==typeof(n=n||0);return r.left+=u?n:n.left||0,r.top+=u?n:n.top||0,r.right-=u?n:n.right||0,r.bottom-=u?n:n.bottom||0,r}function zt(t){return t.width*t.height}function Wt(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=jt(n,o,r,i),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 Bt({key:t},s[t],{area:zt(s[t])})})).sort((function(t,e){return e.area-t.area})),l=c.filter((function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight})),p=l.length>0?l[0].key:c[0].key,d=t.split("-")[1];return p+(d?"-"+d:"")}function Yt(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?Pt(e):kt(e,n);return Dt(n,i,o)}function Vt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function Rt(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 qt(t,e,n){n=n.split("-")[0];var o=Vt(t),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return i[a]=e[a]+e[c]/2-o[c]/2,i[s]=n===s?e[s]-o[l]:e[Rt(s)],i}function Xt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Ut(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var o=Xt(t,(function(t){return t[e]===n}));return t.indexOf(o)}(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&&ft(n)&&(e.offsets.popper=Ht(e.offsets.popper),e.offsets.reference=Ht(e.offsets.reference),e=n(e,t))})),e}function Gt(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Yt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Wt(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=qt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Ut(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Kt(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Jt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function Qt(){return this.state.isDestroyed=!0,Kt(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[Jt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Zt(t){var e=t.ownerDocument;return e?e.defaultView:window}function $t(t,e,n,o){n.updateBound=o,Zt(t).addEventListener("resize",n.updateBound,{passive:!0});var i=yt(t);return function t(e,n,o,i){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,o,{passive:!0}),r||t(yt(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function te(){this.state.eventsEnabled||(this.state=$t(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Zt(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 ne(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function oe(t,e){Object.keys(e).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ne(e[n])&&(o="px"),t.style[n]=e[n]+o}))}var ie=lt&&/Firefox/i.test(navigator.userAgent);function re(t,e,n){var o=Xt(t,(function(t){return t.name===e})),i=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));if(!i){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 i}var ae=["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"],se=ae.slice(3);function ce(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=se.indexOf(t),o=se.slice(n+1).concat(se.slice(0,n));return e?o.reverse():o}var le="flip",pe="clockwise",de="counterclockwise";function ue(t,e,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(Xt(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,o){var i=(1===o?!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 function(t,e,n,o){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[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=o}return Ht(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}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,o){ne(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))}))})),i}var he={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var i=t.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",p={start:Mt({},c,r[c]),end:Mt({},c,r[c]+r[l]-a[l])};t.offsets.popper=Bt({},a,p[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,o=t.placement,i=t.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],c=void 0;return c=ne(+n)?[+n,0]:ue(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},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||xt(t.instance.popper);t.instance.reference===n&&(n=xt(n));var o=Jt("transform"),i=t.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=jt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=a,i[o]=s,e.boundaries=c;var l=e.priority,p=t.offsets.popper,d={primary:function(t){var n=p[t];return p[t]<c[t]&&!e.escapeWithReference&&(n=Math.max(p[t],c[t])),Mt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=p[n];return p[t]>c[t]&&!e.escapeWithReference&&(o=Math.min(p[n],c[t]-("right"===t?p.width:p.height))),Mt({},n,o)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";p=Bt({},p,d[e](t))})),t.offsets.popper=p,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,i=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(o[c])&&(t.offsets.popper[c]=r(o[c])-n[l]),n[c]>r(o[s])&&(t.offsets.popper[c]=r(o[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!re(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",p=c?"Top":"Left",d=p.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",f=Vt(o)[l];s[h]-f<a[d]&&(t.offsets.popper[d]-=a[d]-(s[h]-f)),s[d]+f>a[h]&&(t.offsets.popper[d]+=s[d]+f-a[h]),t.offsets.popper=Ht(t.offsets.popper);var m=s[d]+s[l]/2-f/2,v=mt(t.instance.popper),y=parseFloat(v["margin"+p],10),g=parseFloat(v["border"+p+"Width"],10),b=m-t.offsets.popper[d]-y-g;return b=Math.max(Math.min(a[l]-f,b),0),t.arrowElement=o,t.offsets.arrow=(Mt(n={},d,Math.round(b)),Mt(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Kt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=jt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],i=Rt(o),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case le:a=[o,i];break;case pe:a=ce(o);break;case de:a=ce(o,!0);break;default:a=e.behavior}return a.forEach((function(s,c){if(o!==s||a.length===c+1)return t;o=t.placement.split("-")[0],i=Rt(o);var l=t.offsets.popper,p=t.offsets.reference,d=Math.floor,u="left"===o&&d(l.right)>d(p.left)||"right"===o&&d(l.left)<d(p.right)||"top"===o&&d(l.bottom)>d(p.top)||"bottom"===o&&d(l.top)<d(p.bottom),h=d(l.left)<d(n.left),f=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),y="left"===o&&h||"right"===o&&f||"top"===o&&m||"bottom"===o&&v,g=-1!==["top","bottom"].indexOf(o),b=!!e.flipVariations&&(g&&"start"===r&&h||g&&"end"===r&&f||!g&&"start"===r&&m||!g&&"end"===r&&v),w=!!e.flipVariationsByContent&&(g&&"start"===r&&f||g&&"end"===r&&h||!g&&"start"===r&&v||!g&&"end"===r&&m),x=b||w;(u||y||x)&&(t.flipped=!0,(u||y)&&(o=a[c+1]),x&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=Bt({},t.offsets.popper,qt(t.instance.popper,t.offsets.reference,t.placement)),t=Ut(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),t.placement=Rt(e),t.offsets.popper=Ht(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!re(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Xt(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}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=Xt(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=xt(t.instance.popper),c=It(s),l={position:i.position},p=function(t,e){var n=t.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},c=r(i.width),l=r(o.width),p=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),u=e?p||d||c%2==l%2?r:a:s,h=e?r:s;return{left:u(c%2==1&&l%2==1&&!d&&e?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:u(o.right)}}(t,window.devicePixelRatio<2||!ie),d="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=Jt("transform"),f=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+p.bottom:-c.height+p.bottom:p.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+p.right:-c.width+p.right:p.left,a&&h)l[h]="translate3d("+f+"px, "+m+"px, 0)",l[d]=0,l[u]=0,l.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===u?-1:1;l[d]=m*v,l[u]=f*y,l.willChange=d+", "+u}var g={"x-placement":t.placement};return t.attributes=Bt({},g,t.attributes),t.styles=Bt({},l,t.styles),t.arrowStyles=Bt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return oe(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&oe(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=Yt(i,e,t,n.positionFixed),a=Wt(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),oe(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},fe=function(){function t(e,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=ht(this.update.bind(this)),this.options=Bt({},t.Defaults,i),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(Bt({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){o.options.modifiers[e]=Bt({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Bt({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&ft(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return _t(t,[{key:"update",value:function(){return Gt.call(this)}},{key:"destroy",value:function(){return Qt.call(this)}},{key:"enableEventListeners",value:function(){return te.call(this)}},{key:"disableEventListeners",value:function(){return ee.call(this)}}]),t}();fe.Utils=("undefined"!=typeof window?window:global).PopperUtils,fe.placements=ae,fe.Defaults=he;
|
|
32
33
|
/**!
|
|
33
34
|
* tippy.js v5.0.0-alpha.2
|
|
34
35
|
* (c) 2017-2019 atomiks
|
|
35
36
|
* MIT License
|
|
36
37
|
*/
|
|
37
|
-
var
|
|
38
|
+
var me=1,ve=[];function ye(t,e){var n,o,i,r,a=X(t,e);if(!a.multiple&&t._tippy)return null;var s,c,l,p=!1,d=!1,u=!1,h=[],f=U(Z,a.interactiveDebounce),m=me++,v=st(m,a),y=$(v),g=y.tooltip,b=y.content,w={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:m,reference:t,popper:v,popperChildren:y,popperInstance:null,props:a,state:w,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(e){if(x.state.isDestroyed)return;K();var n=x.props,o=X(t,E({},x.props,e,{ignoreAttributes:!0}));o.ignoreAttributes=F(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,x.props=o,V(),B(),f=U(Z,o.interactiveDebounce),ct(v,n,o,x.state.isVisible),x.popperChildren=$(v),x.popperInstance&&(L.some((function(t){return F(e,t)&&e[t]!==n[t]}))?(x.popperInstance.destroy(),ot(),x.state.isVisible&&x.popperInstance.enableEventListeners()):x.popperInstance.update())},setContent:function(t){x.setProps({content:t})},show:function(e,n){void 0===e&&(e=P(x.props.duration,0,C.duration[1]));void 0===n&&(n=!0);var o=x.state.isVisible,i=x.state.isDestroyed,r=!x.state.isEnabled,a=M.isTouch&&!x.props.touch;if(o||i||r||a)return;if(A().hasAttribute("disabled"))return;if(!1===x.props.onShow(x))return;I(),v.style.visibility="visible",x.state.isVisible=!0;var s=T();R(n?s.concat(v):s,0),c=function(){x.state.isVisible&&(x.popperInstance.update(),x.props.onMount(x),x.state.isMounted=!0,b.style.transitionDelay=x.popperChildren.backdrop?Math.round(e/12)+"ms":"",x.props.sticky&&(R([v],S?0:x.props.updateDuration),function t(){x.popperInstance.scheduleUpdate(),x.state.isMounted?requestAnimationFrame(t):R([v],0)}()),R([v],x.props.updateDuration),R(s,e),q(s,"visible"),function(t,e){N(t,e)}(e,(function(){x.props.aria&&A().setAttribute("aria-"+x.props.aria,g.id),x.props.onShown(x),x.state.isShown=!0})))},function(){d=!1;var e=x.props.appendTo,n="parent"===e?t.parentNode:W(e,[t]);n.contains(v)||n.appendChild(v);x.popperInstance?(Y(x.popperInstance.modifiers,x.props.flip),x.popperInstance.enableEventListeners(),x.popperInstance.scheduleUpdate()):(ot(),x.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=P(x.props.duration,1,C.duration[1]));var e=!x.state.isVisible&&!p,n=x.state.isDestroyed,o=!x.state.isEnabled&&!p;if(e||n||o)return;if(!1===x.props.onHide(x)&&!p)return;D(),v.style.visibility="hidden",x.state.isVisible=!1,x.state.isShown=!1;var i=T();R(i,t),q(i,"hidden"),function(t,e){N(t,(function(){!x.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&e()}))}(t,(function(){x.props.aria&&A().removeAttribute("aria-"+x.props.aria),x.popperInstance.disableEventListeners(),x.popperInstance.options.placement=s,v.parentNode.removeChild(v),x.props.onHidden(x),x.state.isMounted=!1}))},enable:function(){x.state.isEnabled=!0},disable:function(){x.state.isEnabled=!1},destroy:function(){if(x.state.isDestroyed)return;p=!0,x.hide(0),K(),delete t._tippy,x.popperInstance&&x.popperInstance.destroy();p=!1,x.state.isDestroyed=!0}};return t._tippy=x,v._tippy=x,V(),a.lazy||ot(),a.showOnCreate&<(),v.addEventListener("mouseenter",(function(){x.props.interactive&&x.state.isVisible&&"mouseenter"===n&&x.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){x.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(x),x;function k(){var t=x.props.touch;return Array.isArray(t)?t:[t,0]}function O(){return"hold"===k()[0]}function T(){return[g,b,x.popperChildren.backdrop]}function A(){return x.props.triggerTarget||t}function B(){document.body.removeEventListener("mouseleave",pt),document.removeEventListener("mousemove",f),ve=ve.filter((function(t){return t!==f}))}function H(t){if(!x.props.interactive||!v.contains(t.target)){if(A().contains(t.target)){if(M.isTouch)return;if(x.state.isVisible&&J(x.props.trigger,"click"))return}!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),u=!0,setTimeout((function(){u=!1})),x.state.isMounted||D())}}function I(){document.addEventListener("mousedown",H,!0)}function D(){document.removeEventListener("mousedown",H,!0)}function N(t,e){function n(t){t.target===g&&(it(g,"remove",n),e())}if(0===t)return e();it(g,"remove",l),it(g,"add",n),l=n}function z(t,e,n){void 0===n&&(n=!1),A().addEventListener(t,e,n),h.push({eventType:t,handler:e,options:n})}function V(){O()&&(z("touchstart",Q,_),z("touchend",tt,_)),J(x.props.trigger,"click")||z("click",(function(){M.isTouch||!0!==x.props.hideOnClick||x.hide()})),x.props.trigger.trim().split(" ").forEach((function(t){if("manual"!==t)switch(z(t,Q),t){case"mouseenter":z("mouseleave",tt);break;case"focus":z(S?"focusout":"blur",et)}}))}function K(){h.forEach((function(t){var e=t.eventType,n=t.handler,o=t.options;A().removeEventListener(e,n,o)})),h=[]}function Q(t){if(!u&&x.state.isEnabled&&!nt(t))if(x.state.isVisible||(n=t.type,t instanceof MouseEvent&&ve.forEach((function(e){return e(t)}))),"click"===t.type&&!1!==x.props.hideOnClick&&x.state.isVisible)pt(t);else{var e=k(),i=e[0],r=e[1];M.isTouch&&"hold"===i&&r?o=setTimeout((function(){lt(t)}),r):lt(t)}}function Z(e){(function(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null})(e.target,(function(e){return e===t||e===v}))||function(t,e,n,o){if(!t)return!0;var i=n.clientX,r=n.clientY,a=o.interactiveBorder,s=o.distance,c=e.top-r>("top"===t?a+s:a),l=r-e.bottom>("bottom"===t?a+s:a),p=e.left-i>("left"===t?a+s:a),d=i-e.right>("right"===t?a+s:a);return c||l||p||d}(rt(x.state.currentPlacement),v.getBoundingClientRect(),e,x.props)&&(B(),pt(e))}function tt(t){if(!nt(t))return x.props.interactive?(document.body.addEventListener("mouseleave",pt),document.addEventListener("mousemove",f),void ve.push(f)):void pt(t)}function et(t){t.target===A()&&(x.props.interactive&&t.relatedTarget&&v.contains(t.relatedTarget)||pt(t))}function nt(t){var e="ontouchstart"in window,n=J(t.type,"touch"),o=O();return e&&M.isTouch&&o&&!n||M.isTouch&&!o&&n}function ot(){var e=x.props,n=e.popperOptions,o=e.placement,i=x.popperChildren.arrow,r=j(n,"preventOverflow"),a=x.state.currentPlacement.split("-")[1];function c(t){x.state.currentPlacement=t.placement,x.props.flip&&!x.props.flipOnUpdate&&(t.flipped&&(x.popperInstance.options.placement=t.placement),Y(x.popperInstance.modifiers,!1)),g.setAttribute("data-placement",x.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?g.setAttribute("data-out-of-boundaries",""):g.removeAttribute("data-out-of-boundaries");var e=rt(x.state.currentPlacement),n=g.style;n.top="0",n.left="0",n[J(["top","bottom"],rt(x.state.currentPlacement))?"top":"left"]=(J(["bottom","right"],rt(x.state.currentPlacement))?1:-1)*x.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=E({top:i?o:o.top,bottom:i?o:o.bottom,left:i?o:o.left,right:i?o:o.right},!i&&o);a[e]=i?o+x.props.distance:(o[e]||0)+x.props.distance,x.popperInstance.modifiers.filter((function(t){return"preventOverflow"===t.name}))[0].padding=a}var l=E({eventsEnabled:!1,placement:s=x.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:E({},n?n.modifiers:{},{preventOverflow:E({boundariesElement:x.props.boundary,padding:5},r),arrow:E({element:i,enabled:!!i},j(n,"arrow")),flip:E({enabled:x.props.flip,padding:x.props.distance+5,behavior:x.props.flipBehavior},j(n,"flip")),offset:E({offset:x.props.offset},j(n,"offset"))}),onCreate:function(t){c(t),G(n&&n.onCreate,l.onCreate,[t]),at()},onUpdate:function(t){c(t),G(n&&n.onUpdate,l.onUpdate,[t]),at()}});x.popperInstance=new fe(t,v,l)}function at(){!d&&c&&(d=!0,function(t){t.offsetHeight}(v),c())}function lt(t){if(x.clearDelayTimeouts(),x.state.isScheduledToShow=!0,x.popperInstance||ot(),t&&x.props.onTrigger(x,t),x.props.wait)return x.props.wait(x,t);I();var e=P(x.props.delay,0,C.delay);e?o=setTimeout((function(){x.show()}),e):x.show()}function pt(t){if(x.clearDelayTimeouts(),x.props.onUntrigger(x,t),x.state.isVisible){x.state.isScheduledToShow=!1;var e=P(x.props.delay,1,C.delay);e?i=setTimeout((function(){x.state.isVisible&&x.hide()}),e):r=requestAnimationFrame((function(){x.hide()}))}else D()}}function ge(t,e){document.addEventListener("touchstart",H,E({},_,{capture:!0})),window.addEventListener("blur",D);var n=E({},C,e),o=function(t){if(z(t))return[t];if(t instanceof NodeList)return K(t);if(Array.isArray(t))return t;try{return K(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce((function(t,e){var o=e&&ye(e,n);return o&&t.push(o),t}),[]);return z(t)?o[0]:o}ge.version="5.0.0-alpha.2",ge.defaultProps=C,ge.currentInput=M,ge.setDefaultProps=function(t){Object.keys(t).forEach((function(e){C[e]=t[e]}))},ge.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,o=e.duration;K(document.querySelectorAll(".tippy-popper")).forEach((function(t){var e,i=t._tippy;if(i){var r=!1;n&&(r=(e=n)&&e._tippy&&!e.classList.contains("tippy-popper")?i.reference===n:t===n.popper),r||i.hide(o)}}))},k&&setTimeout((function(){K(document.querySelectorAll("[data-tippy]")).forEach((function(t){var e=t.getAttribute("data-tippy");e&&ge(t,{content:e})}))}))
|
|
38
39
|
/**!
|
|
39
40
|
* tippy.js v5.0.0-alpha.2
|
|
40
41
|
* (c) 2017-2019 atomiks
|
|
41
42
|
* MIT License
|
|
42
|
-
*/;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=function(){i=null,n||t.apply(o,r)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&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){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={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||s,scrollIntoView:i.prototype.scrollIntoView},r=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,a=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(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):o.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]&&(c(arguments[0])?o.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!==c(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");o.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!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.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!==c(arguments[0])){var n=h(this),i=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==e.body?(f.call(this,n,n.scrollLeft+r.left-i.left,n.scrollTop+r.top-i.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function c(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 l(t,e){return"Y"===e?t.clientHeight+a<t.scrollHeight:"X"===e?t.clientWidth+a<t.scrollWidth:void 0}function d(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function p(t){var e=l(t,"Y")&&d(t,"Y"),n=l(t,"X")&&d(t,"X");return e||n}function h(t){for(;t!==e.body&&!1===p(t);)t=t.parentNode||t.host;return t}function u(e){var n,i,o,a,s=(r()-e.startTime)/468;a=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*a)),i=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,i,o),i===e.x&&o===e.y||t.requestAnimationFrame(u.bind(t,e))}function f(n,i,a){var c,l,d,p,h=r();n===e.body?(c=t,l=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=o.scroll):(c=n,l=n.scrollLeft,d=n.scrollTop,p=s),u({scrollable:c,method:p,startTime:h,startX:l,startY:d,x:i,y:a})}}}})),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,t),_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}(Evented),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||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||[];var i=["active","cancel","complete","inactive","show","start"];return i.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,t),_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];if(n){this._updateStateBeforeShow();var i=isFunction(n.options.showOn)&&!n.options.showOn();i?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}(Evented);_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_"},COLORS={BLACK:"#000000",WHITE:"#ffffff"},BUTTON_CONTAINER_POSITION={TOP:"top",CENTER:"center",BOTTOM:"bottom"},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,l=c/a,d=window.innerWidth,p=window.innerHeight;n?(o=(i=p*e)/l)>.7*d&&(i=(o=.7*d)*l):(i=(o=d*e)*l)>.7*p&&(o=(i=.7*p)/l)}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: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,F=I.top,R=t.enable_padding,M=t.padding,D=M.bottom,V=M.left,H=M.right,$=M.top,z=t.text_margin,W=z.bottom,j=z.left,U=z.right,G=z.top,Y=t.text_padding,q=Y.bottom,X=Y.left,K=Y.right,Z=Y.top,J=t.enable_gradient,Q=t.gradient,tt=void 0===Q?{}:Q;J&&(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(F,"px ").concat(B,"px ").concat(L,"px ").concat(N,"px;"));var st="";R&&(st="padding:".concat($,"px ").concat(H,"px ").concat(D,"px ").concat(V,"px;"));var ct="";J&&(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(W,"px ").concat(j,"px;\n padding: ").concat(Z,"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 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===_||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,F=N.color,R=N.font,M=R.size,D=R.style,V=R.family,H=R.weight,$=N.margin,z=N.padding,W=t.gradient,j=void 0===W?{}:W,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;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:F,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:j}),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||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||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||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||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,o='<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>');return o},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,o='\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 ');return o},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,i='\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>');return i},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,i='\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>');return i},ApxorWalkthroughTour,onClickCallback=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(i)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,F=void 0===B?.5:B,R=t.show_close_icon,M=void 0!==R&&R,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 W=[],j="#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||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||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"),j=t.color):(Y=deepGet(t,["text_config","color"],"#ccc"),U=t.color),W.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 Z=T.style;"bold"===Z&&(X.fontWeight=Z);var J={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;J.margin="".concat(Q.top,"px ").concat(Q.right,"px ").concat(Q.bottom,"px ").concat(Q.left,"px")}"bold"===(Z=k.style)&&(X.fontWeight=Z);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)")}}function ot(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"}}function rt(){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!=F?F:.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(J.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(J.fontSize,"px;\n font-family: ").concat(J.fontFamily,"; \n font-weight: ").concat("bold"!==J.fontStyle?"normal":J.fontStyle,";\n font-style: ").concat("italic"===J.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(J.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(J.fontSize,"px;\n font-family: ").concat(J.fontFamily,"; \n font-weight: ").concat("bold"!==J.fontStyle?"normal":J.fontStyle,";\n font-style: ").concat("italic"===J.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(j,";\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(j,"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(ot(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}var at=rt(),st=document.getElementById(P),ct=document.getElementById("apxor-".concat(H,"-step-").concat(o)),lt=function(t){onClickCallback(H,$,!1,x)},dt=function(){var t,e,n,o,r;try{var a;null===(a=ApxorWalkthroughTour)||void 0===a||a.complete()}catch(t){console.error(t)}ht.disconnect(),ut.disconnect(),null===(t=document.getElementById("shepherdModalOverlayContainer"))||void 0===t||t.remove(),null==at||null===(e=at.parentNode)||void 0===e||e.removeChild(at),null==ct||null===(n=ct.parentNode)||void 0===n||n.removeChild(ct),window.Apxor.logActionEvent("inline_dismissed",H,$),i.isShowingAction=!1,st.removeEventListener("click",lt),null===(o=window)||void 0===o||null===(r=o.Apxor)||void 0===r||r.updateFlag(!1)},pt=!1,ht=new MutationObserver((function(){if(!document.body.contains(st)){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(),dt()}})),ut=new IntersectionObserver((function(){var t=isElementInViewport(st);if(!t&&pt){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(),dt()}t&&(pt=!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:W,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,st.addEventListener("click",lt),ht.observe(document.body,{childList:!0,subtree:!0}),ut.observe(st)},onHidden:dt}})}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||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 F=x.margin_config;B.margin="".concat(F.top,"px ").concat(F.right,"px ").concat(F.bottom,"px ").concat(F.left,"px")}"bold"===(N=x.style)&&(I.fontWeight=N);var R=document.getElementById(C);if(R){currentId=makeid$1(10);var M=getDocumentOffsetPosition(R),D=M.left,V=void 0===D?0:D,H=M.top,$=void 0===H?0:H,z=M.width,W=void 0===z?0:z,j=M.height,U=void 0===j?0:j;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(R)||gt()})),q=new IntersectionObserver((function(){var t=isElementInViewport(R);!t&&G&>(),t&&(G=!0)}));console.log(M);var X=M.left<window.innerWidth/2;if(0!==U&&0!==W){var K=createTitleDescriptionButtonElements(_,x,A),Z=K.offsetWidth,J=K.offsetHeight,Q=0,tt=0;_&&_.margin_config&&(Q=Number(_.margin_config.left)||0,tt=Number(_.margin_config.right)||0);var et=createInnerCircle(W,U,V,$,d,c),nt=V+W/2,it=$+U/2,ot=Math.sqrt(Math.pow(W,2)+Math.pow(U,2))/2,rt=ot+Math.max(Z,W)/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-Z/2)<0?DEFAULT_PADDING:ct,at="circle"===d?it-ot-J-25:$-J-25,lt=pt-Math.abs(pt-at)/2;break;case"BOTTOM":st=(ct=nt-Z/2)<0?DEFAULT_PADDING:ct,lt=dt+((at="circle"===d?it+ot+25:$+U+25)+J-dt)/2}if(-1!==st&&-1!==at&&-1!==lt){!X&&st+Z>window.innerWidth&&(st=window.innerWidth-Z-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+W,st+Z))/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:W,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=R.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(R),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.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,t);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)}(Text),Description=function(t){_inherits(n,t);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)}(Text),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),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,t);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)}(Button),CenterButton=function(t){_inherits(n,t);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)}(Button),TopButton=function(t){_inherits(n,t);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)}(Button),Buttons=_createClass((function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.enable_top=n.enable_top,this.enable_center=n.enable_center,this.enable_bottom=n.enable_bottom,this.bottom=[],this.center=[],this.top=[];var i=getArrayOrDefault(n.bottom,[]);i.forEach((function(t){e.bottom.push(new BottomButton(t))}));var o=getArrayOrDefault(n.center,[]);o.forEach((function(t){e.center.push(new CenterButton(t))}));var r=getArrayOrDefault(n.top,[]);r.forEach((function(t){e.top.push(new TopButton(t))}))})),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))}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,"rPRE",(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,"lVIC",(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||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||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,"EKeN",(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.rPRE()," \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,";\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.EKeN()}},{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.lVIC(_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,"ZNLw",(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.HSdD();a.showCallback()}catch(t){Logger.error("Can't show video:".concat(t)),a.hideCallback()}})),_defineProperty(this,"mWah",(function(){var t=getHeightWidthFromResolution(a.video),e=t.width,n=t.height;a.height=n,a.width=e})),_defineProperty(this,"NreZ",(function(){var t=document.getElementById("apx-mpl-styles");t&&t.remove()})),_defineProperty(this,"gFtr",(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,"SRIs",(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,"KdWV",(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.NreZ()}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,"UDOT",(function(){a.videoPlayer.classList.add("apx-video-hide-elmt".concat(a.cssPostFix))})),_defineProperty(this,"HSdD",(function(){a.videoPlayer.classList.remove("apx-video-hide-elmt".concat(a.cssPostFix))})),_defineProperty(this,"tSmq",(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.mWah(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this.gFtr(),this.SRIs(),this.KdWV(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER),this.UDOT(),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.NreZ()}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,"IurB",{}),_defineProperty(this,"isShowingAction",!1),_defineProperty(this,"currentAction",null),_defineProperty(this,"version",10),_defineProperty(this,"isInitialised",!1),_defineProperty(this,"ZOgU",{}),_defineProperty(this,"HOPm",(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.HOPm();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)})).ZNLw()})),_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}));
|
|
43
|
+
*/;!function(t){if(k){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,o=n.querySelector("style,link");o?n.insertBefore(e,o):n.appendChild(e)}}(".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}");var be=Ae("shepherd"),we=Ae("shepherd-has-title"),xe={computeStyle:{enabled:!0,fn:function(t){return t.styles=d({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:be},Ee={positionFixed:!0,modifiers:{addShepherdClass:be}};function ke(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function Oe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function Se(){if(x(ge))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var t=this.parseAttachTo();this.tooltip=Ce.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function Te(){var t=this.options.attachTo||{},e=d({},t);if(w(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 Ae(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function Ce(t){if(!t.element)return _e.call(this);var e=Le.call(this,t);return ge(t.element,e)}function Le(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return d(e,this.options.tippyOptions),this.options.title&&d(Ee.modifiers,{addHasTitleClass:we}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&d(Ee,this.options.tippyOptions.popperOptions),e.popperOptions=Ee,e}function _e(){var t=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){p(t,e,n[e])}))}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}({content:this.el,placement:"top"},this.options.tippyOptions);t.arrow=!1,t.popperOptions=t.popperOptions||{},this.options.title&&d(Ee.modifiers,{addHasTitleClass:we});var e=d({},Ee,t.popperOptions,{modifiers:d(xe,t.popperOptions.modifiers)});return t.popperOptions=e,ge(document.body,t)}var Me=function(){function t(){s(this,t)}return l(t,[{key:"on",value:function(t,e,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];x(this.bindings)&&(this.bindings={}),x(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=this;if(x(this.bindings)||x(this.bindings[t]))return!1;x(e)?delete this.bindings[t]:this.bindings[t].forEach((function(o,i){o.handler===e&&n.bindings[t].splice(i,1)}))}},{key:"trigger",value:function(t){var e=this;if(!x(this.bindings)&&this.bindings[t]){var n=Oe(Array.prototype.slice.call(arguments));this.bindings[t].forEach((function(o,i){var r=o.ctx,a=o.handler,s=o.once,c=r||e;a.apply(c,n),s&&e.bindings[t].splice(i,1)}))}}}]),t}();function Be(t){var e=this;return function(n){if(e.isOpen()){var o=e.el&&n.target===e.el;(!x(t)&&n.target.matches(t)||o)&&e.tour.next()}}}function He(){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 o,i=Be.call(this,n);try{o=document.querySelector(n)}catch(t){}if(!x(n)&&!o)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));o?(o.addEventListener(e,i),this.on("destroy",(function(){return o.removeEventListener(e,i)}))):(document.body.addEventListener(e,i,!0),this.on("destroy",(function(){return document.body.removeEventListener(e,i,!0)})))}function Ie(t,e){var n=this;t.events=t.events||{},x(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach((function(t){var o=y(t,2),i=o[0],r=o[1];if(w(r)){var a=r;r=function(){return n.tour.show(a)}}e.dataset.buttonEvent=!0,e.addEventListener(i,r),n.on("destroy",(function(){e.removeAttribute("data-button-event"),e.removeEventListener(i,r)}))}))}function De(t){var e=this;t.addEventListener("click",(function(t){t.preventDefault(),e.cancel()}))}function Ne(t){var e=this;t.map((function(t){e[t]=e[t].bind(e)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var Fe=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(e,n){e.exports={polyfill:function(){var e=window,n=document;if(!("scrollBehavior"in n.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var o,i=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||c,scrollIntoView:i.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(o=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?m.call(e,n.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,n.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,n=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===n?this.scrollTop:~~n)}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"!==t(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 t=h(this),o=t.getBoundingClientRect(),i=this.getBoundingClientRect();t!==n.body?(m.call(this,t,t.scrollLeft+i.left-o.left,t.scrollTop+i.top-o.top),"fixed"!==e.getComputedStyle(t).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.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(e){if(null===e||"object"!==t(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===t(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function d(t,n){var o=e.getComputedStyle(t,null)["overflow"+n];return"auto"===o||"scroll"===o}function u(t){var e=p(t,"Y")&&d(t,"Y"),n=p(t,"X")&&d(t,"X");return e||n}function h(t){for(;t!==n.body&&!1===u(t);)t=t.parentNode||t.host;return t}function f(t){var n,o,i,r,s=(a()-t.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),o=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,i),o===t.x&&i===t.y||e.requestAnimationFrame(f.bind(e,t))}function m(t,o,i){var s,l,p,d,u=a();t===n.body?(s=e,l=e.scrollX||e.pageXOffset,p=e.scrollY||e.pageYOffset,d=r.scroll):(s=t,l=t.scrollLeft,p=t.scrollTop,d=c),f({scrollable:s,method:d,startTime:u,startX:l,startY:p,x:o,y:i})}}}}));Fe.polyfill;Fe.polyfill();var Pe,je=(Pe=0,function(){return++Pe}),ze=function(t){function e(t,n){var o;return s(this,e),(o=v(this,h(e).call(this,t,n))).tour=t,Ne.call(m(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=He.bind(m(o)),o.bindButtonEvents=Ie.bind(m(o)),o.bindCancelLink=De.bind(m(o)),o.setupTooltip=Se.bind(m(o)),o.parseAttachTo=Te.bind(m(o)),v(o,m(o))}return u(e,t),l(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 o=ke('<button class="shepherd-button '.concat(t.classes||"",'" tabindex="0">').concat(t.text,"</button>"));n.appendChild(o),e.bindButtonEvents(t,o)})),t.appendChild(n)}}},{key:"_addCancelLink",value:function(t,e){if(this.options.showCancelLink){var n=ke('<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=ke('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),o=this.options.text;b(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(w(o)&&(o=[o]),o.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"]'),o=y(n,1)[0],i=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===o&&(t.preventDefault(),i.focus()):document.activeElement===i&&(t.preventDefault(),o.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"),o="".concat(this.id,"-label"),i=ke('<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=o,i.setAttribute("aria-labeledby",o),r.appendChild(a)}return t.classList.add("shepherd-content"),r.classList.add("shepherd-header"),i.appendChild(t),t.appendChild(r),x(this.options.text)||(this._addContent(t,n),i.setAttribute("aria-describedby",n)),this._addButtons(t),this._addCancelLink(i,r),i}},{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),g(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(){x(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;b(this.options.scrollToHandler)?this.options.scrollToHandler(e):g(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(je()),n&&Object.entries(n).forEach((function(e){var n=y(e,2),o=n[0],i=n[1];t.on(o,i,t)}))}},{key:"show",value:function(){var t=this;if(b(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!x(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}(Me),We="http://www.w3.org/2000/svg",Ye="shepherdModalOverlayContainer",Ve="shepherdModalMask",Re="shepherdModalMaskRect",qe="shepherdModalMaskOpening",Xe="shepherd-modal-is-visible",Ue="shepherd-modal-target";function Ge(){var t,e=((t=document.createElementNS(We,"svg")).setAttributeNS(null,"id",Ye),t),n=document.createElementNS(We,"defs"),o=function(){var t=document.createElementNS(We,"mask");return Ze(t,{height:"100%",id:Ve,width:"100%",x:"0",y:"0"}),t}(),i=function(){var t=document.createElementNS(We,"rect");return Ze(t,{fill:"#FFFFFF",height:"100%",id:Re,width:"100%",x:"0",y:"0"}),t}(),r=function(){var t=document.createElementNS(We,"rect");return Ze(t,{fill:"#000000",id:qe}),t}(),a=function(){var t=document.createElementNS(We,"rect");return Ze(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(Ve,")")),t}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),e.appendChild(n),e.appendChild(a),e}function Ke(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.getBoundingClientRect&&e instanceof SVGElement){var o=t.getBoundingClientRect(),i=o.x,r=o.y,a=o.width,s=o.height,c=o.left,l=o.top;Ze(e,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function Je(t){t.preventDefault()}function Qe(t){t.stopPropagation()}function Ze(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function $e(t){var e=t.options.attachTo;if(!e)return null;var n=a(e);return"string"===n?function(t){var e=y(t.split(" "),1)[0];return document.querySelector(e)}(e):"object"===n?function(t){var e=t.element;return e instanceof HTMLElement?e:document.querySelector(e)}(e):null}function tn(){"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(Ye));window.addEventListener("touchmove",Je,{passive:!1}),t&&t.addEventListener("touchmove",Qe,!1)}var en=function(){function t(e){return s(this,t),this.createModalOverlay(),this.options=e,this}return l(t,[{key:"cleanup",value:function(){var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(Xe)}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||Ge(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(qe)),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(Xe),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(Xe),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e,n,o,i,r,a=this._modalOverlayOpening,s=$e(t),c=t.options.modalOverlayOpeningPadding;s?(Ke(s,a,c),this._onScreenChange=(n=Ke.bind(this,s,a,c),o=0,function(){var t=this,e=arguments,a=function(){r=null,i||n.apply(t,e)},s=i&&!r;clearTimeout(r),r=setTimeout(a,o),s&&n.apply(t,e)}),tn.call(this)):(e=this._modalOverlayOpening)&&e instanceof SVGElement&&Ze(e,{height:"0",x:"0",y:"0",width:"0"})}}]),t}(),nn=!1;if("undefined"!=typeof window){var on={get passive(){nn=!0}};window.addEventListener("testPassive",null,on),window.removeEventListener("testPassive",null,on)}var rn,an,sn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),cn=[],ln=!1,pn=-1,dn=function(t){return cn.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},un=function(t){var e=t||window.event;return!!dn(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},hn=function(t,e){if(sn){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!cn.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};cn=[].concat(i(cn),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(pn=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-pn;!dn(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?un(t):t.stopPropagation())}(e,t)},ln||(document.addEventListener("touchmove",un,nn?{passive:!1}:void 0),ln=!0)}}else{!function(t){setTimeout((function(){if(void 0===an){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(an=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===rn&&(rn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(e);var o={targetElement:t,options:e||{}};cn=[].concat(i(cn),[o])}},fn=function(){sn?(cn.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),ln&&(document.removeEventListener("touchmove",un,nn?{passive:!1}:void 0),ln=!1),cn=[],pn=-1):(setTimeout((function(){void 0!==an&&(document.body.style.paddingRight=an,an=void 0),void 0!==rn&&(document.body.style.overflow=rn,rn=void 0)})),cn=[])},mn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function vn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",Je,{passive:!1})}var yn=function(){var t=0;return function(){return++t}}(),gn=new Me,bn=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),t=v(this,h(e).call(this,n)),Ne.call(m(t),["back","cancel","complete","hide","next"]),t.options=n,t.steps=t.options.steps||[];var o=["active","cancel","complete","inactive","show","start"];return o.map((function(e){var n;n=e,t.on(n,(function(e){(e=e||{}).tour=m(t),gn.trigger(n,e)}))})),t.modal=new en(n),t._setTooltipDefaults(),t._setTourID(),v(t,m(t))}return u(e,t),l(e,[{key:"addStep",value:function(t,e){var n,o;return x(e)?o=t:(n=t,o=e),o instanceof ze?o.tour=this:o=this.setupStep(o,n),this.steps.push(o),o}},{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){var e;Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),vn.call(this),(e=this.tourObject)&&e.steps.forEach((function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=$e(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})),this.trigger(t),gn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&fn(),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 gn.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,o){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(o,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(w(e)||"number"==typeof e)&&(t.id=e.toString()),t=d({},this.options.defaultStepOptions,t),new ze(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=w(t)?this.getById(t):this.steps[t];if(n){this._updateStateBeforeShow();var o=b(n.options.showOn)&&!n.options.showOn();o?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&&hn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),gn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e,n,o=$e(t);o&&(e=o,(n=document.querySelector("".concat(Ue)))&&n.classList.remove(Ue),e.classList.add(Ue),t.options.highlightClass&&o.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(o.style.pointerEvents="none"))}},{key:"_skipStep",value:function(t,e){var n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)}},{key:"_setTooltipDefaults",value:function(){ge.setDefaultProps(mn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=yn();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}(Me);d(gn,{Tour:bn,Step:ze,Evented:Me});var wn,xn=function(t){var e=t.offsetHeight,n=t.offsetWidth,o=t.getBoundingClientRect();return o.left>=-n&&o.top>=-e&&o.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e},En=function(){var t=document.querySelector("meta[name='viewport']");if(t){var e,n,o=null!==(e=null===(n=t.getAttribute("content"))||void 0===n?void 0:n.split(","))&&void 0!==e?e:[],i=1;if(o.forEach((function(t,e,n){0===t.indexOf("initial-scale")&&(i=parseFloat(t.split("=")[1]))})),i)return parseInt(1/i)}return 1};function kn(t,e,n){return null==t?n:0===e.length?t:kn(t[e[0]],e.slice(1),n)}var On=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;if(o)try{n&&window.Apxor.logActionEvent("InlineTargetViewClicked",t,e),wn.complete()}catch(t){console.error(t)}};function Sn(t,e,n,o){var i=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,p=void 0===l?{}:l,d=t.buttons_config,u=void 0===d?[]:d,h=t.corners,f=void 0===h?{}:h,m=t.shadow,v=void 0===m?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":m,y=t.opacity,g=void 0===y?1:y,b=t.dismiss_outside_touch,w=void 0!==b&&b,x=t.dismiss_target_touch,E=void 0===x||x,k=t.position,O=void 0===k?"TOP":k,S=t.text_config,T=void 0===S?{}:S,A=t.title_config,C=void 0===A?{}:A,L=t.view_id,_=(t.search_type,t.show_shadow),M=void 0!==_&&_,B=t.dim_background_color,H=void 0===B?"#0a0a0a":B,I=t.dim_background_opacity,D=void 0===I?.5:I,N=t.show_close_icon,F=void 0!==N&&N,P=t.set_font_to_scale,j=void 0!==P&&P,z=n.configId,W=n.configName,Y=j?En():1;Y=Y>1?Y:1;var V="#3288e6",R="#f1f2f3",q="rgba(0, 0, 0, .75)",X="rgba(0, 0, 0, .75)";u.forEach((function(t){kn(t,["text_config","text"],null);var e=kn(t,["action_config","action"],"end");switch(e){case"done":case"dismiss":wn.complete;break;case"next":wn.next;break;default:wn.cancel}t.id,["end","dismiss"].includes(e)?(q=kn(t,["text_config","color"],"#ccc"),V=t.color):(X=kn(t,["text_config","color"],"#ccc"),R=t.color)}));var U=!!F&&!(u.length>=1),G={color:T.color,fontSize:T.size*Y,fontFamily:T.font_family,fontStyle:T.style};if(T.margin_config&&Object.keys(T.margin_config).length>0){var K=T.margin_config;G.margin="".concat(K.top,"px ").concat(K.right,"px ").concat(K.bottom,"px ").concat(K.left,"px")}var J=T.style;"bold"===J&&(G.fontWeight=J);var Q={color:C.color,fontSize:C.size*Y,fontFamily:C.font_family,fontStyle:C.style};if(C.margin_config&&Object.keys(C.margin_config).length>0){var Z=C.margin_config;Q.margin="".concat(Z.top,"px ").concat(Z.right,"px ").concat(Z.bottom,"px ").concat(Z.left,"px")}"bold"===(J=C.style)&&(G.fontWeight=J);var $={"border-radius":f.enabled?f.width:0,background:c,"border-color":p.color,"border-width":p.width},tt=document.querySelector("#"+L);function et(t){return 50===t?0:-4}function nt(t,e){switch(t.toLowerCase()){case"top":return"translateY(".concat(et(e),"px)");case"right":return"translateX(".concat(et(e),"px)");case"bottom":return"translateY(".concat(-et(e),"px)");case"left":return"translateX(".concat(-et(e),"px)")}}function ot(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"}}function it(){var t=document.createElement("span");t.setAttribute("id","apxor-style-"+z+"-step-"+i),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!=D?D:.5,";\n position: fixed;\n top: 0;\n transition: all .3s ease-out;\n width: 100vw;\n z-index: 9997;\n fill:").concat(null!=H?H:"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: 0;\n text-align: left;\n max-width: calc(").concat(Y,"*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(U?"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(Q.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Q.fontSize,"px;\n font-family: ").concat(Q.fontFamily,"; \n font-weight: ").concat("bold"!==Q.fontStyle?"normal":Q.fontStyle,";\n font-style: ").concat("italic"===Q.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(Q.color,";\n display: flex;\n flex: 1 0 auto;\n font-size: ").concat(Q.fontSize,"px;\n font-family: ").concat(Q.fontFamily,"; \n font-weight: ").concat("bold"!==Q.fontStyle?"normal":Q.fontStyle,";\n font-style: ").concat("italic"===Q.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(G.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(G.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(G.fontSize,"px;\n font-family: ").concat(G.fontFamily,"; \n font-weight: ").concat("bold"!==G.fontStyle?"normal":G.fontStyle,";\n font-style: ").concat("italic"===G.fontStyle?"italic":"unset",";\n }\n\n .shepherd-content > .shepherd-text > p {\n font-size: ").concat(G.fontSize,"px;\n font-family: ").concat(G.fontFamily,"; \n font-weight: ").concat("bold"!==G.fontStyle?"normal":G.fontStyle,";\n font-style: ").concat("italic"===G.fontStyle?"italic":"unset",";\n color: ").concat(G.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(V,";\n border: 0;\n border-radius: 3px;\n color: ").concat(q,";\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(V,"77;\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary {\n background: ").concat(R,";\n color: ").concat(X,";\n }\n \n .shepherd-element .shepherd-content footer .shepherd-button.shepherd-button-secondary:hover {\n background: ").concat(R,"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(nt(O,0),"; }\n 50% { transform: ").concat(nt(O,50),"; }\n 100% { transform: ").concat(nt(O,100),"; }\n }\n \n @keyframes cycle {\n 0% { transform: ").concat(nt(O,0),"; }\n 50% { transform: ").concat(nt(O,50),"; }\n 100% { transform: ").concat(nt(O,100),"; }\n }\n \n .tippy-tooltip.apxor-").concat(z,"-step-").concat(i,"-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(M?v:"none",";\n color: ").concat(G.color,";\n opacity: ").concat(g,";\n border-radius: ").concat($["border-radius"]+"px",";\n background-color: ").concat($.background,";\n ").concat(ot(O),";\n }\n \n .apxor-").concat(z,"-step-").concat(i,"-theme .tippy-roundarrow {\n fill: ").concat($.background,";\n }\n\n .tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat($.background,";\n }\n .tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat($.background,";\n }\n .tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat($.background,";\n }\n .tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat($.background,";\n }\n "),t.appendChild(e),tt.parentNode.insertBefore(t,tt),t}var rt=it(),at=document.getElementById(L),st=document.getElementById("apxor-".concat(z,"-step-").concat(i)),ct=function(t){On(z,W,!1,E)},lt=function(){var t,e,n,i,r;try{var a;null===(a=wn)||void 0===a||a.complete()}catch(t){console.error(t)}dt.disconnect(),ut.disconnect(),null===(t=document.getElementById("shepherdModalOverlayContainer"))||void 0===t||t.remove(),null==rt||null===(e=rt.parentNode)||void 0===e||e.removeChild(rt),null==st||null===(n=st.parentNode)||void 0===n||n.removeChild(st),window.Apxor.logActionEvent("inline_dismissed",z,W),o.isShowingAction=!1,at.removeEventListener("click",ct),null===(i=window)||void 0===i||null===(r=i.Apxor)||void 0===r||r.updateFlag(!1)},pt=!1,dt=new MutationObserver((function(){if(!document.body.contains(at)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(z,"-step-").concat(i,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),lt()}})),ut=new IntersectionObserver((function(){var t=xn(at);if(!t&&pt){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(z,"-step-").concat(i,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),lt()}t&&(pt=!0)}));wn.addStep("apxor-step-"+i,{title:C&&C.text?C.text:null,text:[T&&T.text?T.text:"Tap here"],classes:"apxor-".concat(z,"-step-").concat(i,"-theme"),attachTo:{element:"#"+L,on:O.toLowerCase()},showCancelLink:U,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:w,theme:"apxor-".concat(z,"-step-").concat(i),onShow:function(){window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0),window.Apxor.logActionEvent("inline_shown",z,W),window.Apxor.updateCount(z),o.isShowingAction=!0,at.addEventListener("click",ct),dt.observe(at.parentNode,{childList:!0,subtree:!0}),ut.observe(at)},onHidden:lt}})}var Tn=function(t,e,n,o,i){var r=Array.isArray(e)&&e.length>0,a=t.delay,s=t.dim_background,c=t.view_id,l=t.find_interval,p=void 0===l?0:l,d=t.scrollToView,u=!1;void 0!==d&&d&&(u={behavior:"smooth",block:"center"}),wn=new gn.Tour({defaultStepOptions:{scrollTo:u},useModalOverlay:r||s});var h=function(){return document.getElementById(c)},f=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){Sn(t.ui,n,o,i,e)})):Sn(t,n,o,i),i.isShowingAction)console.error("An action already being shown");else try{wn.start(),i.isShowingAction=!0}catch(t){console.error(t)}};return setTimeout((function(){var t=h();t?f(t):(console.warn("Element with id:".concat(c," not found.")),p&&(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval((function(){var o=h();o?(clearInterval(n),f(o)):(new Date-e)/1e3>10&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")))}),p)}(c)))}),a),!0===n.auto_dismiss&&setTimeout((function(){wn.complete()}),a+n.duration),wn.complete},An=1;function Cn(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*o));return e}var Ln=Cn(10);function _n(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(t){return navigator.userAgent.match(t)}))}function Mn(t){var e=t.color,n=void 0===e?"#000":e,o=t.font_family,i=void 0===o?"cursive":o,r=t.margin_config,a=void 0===r?{}:r,s=t.size,c=void 0===s?14:s,l=t.style,p=void 0===l?"bold":l,d=t.text,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";c*=An;var h=document.createElement("span");h.setAttribute("id",Ln+"-"+u),h.className="apx-class-".concat(Ln,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n .apx-class-".concat(Ln,"-").concat(u," {\n z-index: 99999; \n text-align: initial; \n color: ").concat(n," !important; \n font-family: ").concat(i," !important; \n font-size: ").concat(c,"px !important; \n font-weight: ").concat(p," !important;\n font-style: ").concat("normal"===p||"italic"===p?p+" !important":"unset",";\n }\n "),console.log(h,h.style,n,i,c,p),Object.keys(a).length>0&&(h.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),h.appendChild(f),h.innerHTML=h.innerHTML+d,h}function Bn(t,e,n,o,i,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,c=n-(a-t)/2,l=o-(a-e)/2;"circle"!=i&&(a=t,s=e,c=n,l=o);var p=document.createElement("div");return p.setAttribute("id",Ln+"-ripple-div"),r&&(p.innerHTML=function(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 box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);\n }\n .ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;\n left: -5px;\n }\n .ripple-animator::aftttter {\n opacity: 0;\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 position: absolute;\n top: ").concat(_n()?"0px":"-5px",";\n left: ").concat(_n()?"0px":"-5px",";\n right: 0;\n bottom: 0;\n content: '';\n height: ").concat(n,"px !important;\n width: ").concat(e,"px !important;\n border: 5px solid rgba(255, 255, 255, 0.7);\n border-radius: ").concat("circle"===t?"100%":"0",";\n -webkit-animation-name: ripple;\n animation-name: ripple;\n -webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;\n -webkit-animation-delay: 0s;\n animation-delay: 0s;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n z-index: 99999;\n }\n .ripple-animator::before {\n opacity: 0;\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 position: ").concat(_n()?"unset":"absolute",";\n top: ").concat(_n()?"0px":"-5px",";\n left: ").concat(_n()?"0px":"-5px",";\n right: 0;\n bottom: 0;\n content: '';\n height: ").concat(_n()?n-9:n,"px !important;\n width: ").concat(e,"px !important;\n border: 25px solid rgba(255, 255, 255, 0.75);\n border-radius: ").concat("circle"===t?"100%":"0",";\n -webkit-animation-name: ripple;\n animation-name: ripple;\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-delay: 0.1s;\n animation-delay: 0.1s;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.5, 0.5, 0.5, 0.5);\n animation-timing-function: cubic-bezier(0.5, 0.5, 0.5, 0.5);\n z-index: 99999;\n }\n\n @-webkit-keyframes ripple {\n from {\n opacity: 1;\n -webkit-transform: scale3d(1, 1, 1);\n transform: scale3d(1, 1, 1);\n }\n to {\n opacity: 0;\n -webkit-transform: scale3d(1.25, 1.25, 1);\n transform: scale3d(1.25, 1.25, 1);\n }\n }\n\n @keyframes ripple {\n from {\n opacity: 1;\n -webkit-transform: scale3d(1, 1, 1);\n transform: scale3d(1, 1, 1);\n }\n to {\n opacity: 0;\n -webkit-transform: scale3d(1.25, 1.25, 1);\n transform: scale3d(1.25, 1.25, 1);\n }\n }\n </style>")}(i,a,s)),p.style.position="absolute",p.style.width="".concat(a,"px"),p.style.height="".concat(s,"px"),p.style.left="".concat(c,"px"),p.style.top="".concat(l,"px"),p.classList.add("ripple-animator"),p.style.borderRadius="".concat("circle"===i?"50%":"0"),p.style.visibility="hidden",document.body.appendChild(p),p}function Hn(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 In(t){var e=t.opacity,n=t.type,o=document.createElement("div");o.setAttribute("id",Ln+"-svg"),o.style.position="absolute",o.style.left=0,o.style.top=0,o.style.zIndex=99998,o.style.width="100%",o.style.height="100%";var i="";return i="circle"===n?function(t){var e=t.bg_color,n=t.opacity,o=t.innerRadius,i=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,c=t.outerCircleCenterY;return Hn('\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(i,'"\n cy="').concat(r,'"\n r="').concat(o,'" />\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(').concat(location.href,'#apx-mask)" />\n '))}(t):function(t){var e=t.bg_color,n=t.opacity,o=t.targetElementLeft,i=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return Hn('\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(o,'" \n y="').concat(i,'" \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(').concat(location.href,'#apx-mask)"\n fill="').concat(e,'" \n fill-opacity="').concat(n,'" />\n '))}(t),o.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(i),document.body.appendChild(o),o}function Dn(t,e,n,o){var i=t.bg_color,r=t.coach_mark_details,a=r.has_ripple,s=void 0!==a&&a,c=r.type,l=void 0===c?"circle":c,p=t.delay,d=t.dismiss_outside_touch,u=void 0!==d&&d,h=t.opacity,f=void 0===h?.8:h,m=t.position,v=void 0===m?"TOP":m,y=t.text_config,g=t.title_config,b=void 0===g?null:g,w=t.view_id,x=t.scroll_to_view,E=void 0!==x&&x,k=t.set_font_to_scale;An=(An=void 0!==k&&k?En():1)>1?An:1;var O=document.getElementById(w);if(O){Ln=Cn(10);var S=O.getBoundingClientRect(),T=S.left,A=void 0===T?0:T,C=S.top,L=void 0===C?0:C,_=S.width,M=void 0===_?0:_,B=S.height,H=void 0===B?0:B;if(S.top>=window.innerHeight)console.warn("Element ",w," not in viewport. Can't show");else{console.log(S);var I=S.left<window.innerWidth/2;if(0!==H&&0!==M){var D=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null;return!e&&t?n=Mn(t):e&&t&&((n=document.createElement("div")).style.display="inline-flex",n.style.flexDirection="column",n.style.visibility="hidden",n.style.textAlign="center",n.appendChild(Mn(e)),n.appendChild(Mn(t))),n.style.position="absolute",document.body.appendChild(n),n}(y,b),N=D.offsetWidth,F=D.offsetHeight,P=0,j=0;y&&y.margin_config&&(P=Number(y.margin_config.left)||0,j=Number(y.margin_config.right)||0);var z=Bn(M,H,A,L,l,s),W=A+M/2,Y=L+H/2,V=Math.sqrt(Math.pow(M,2)+Math.pow(H,2))/2,R=V+Math.max(N,M)/2+10,q=-1,X=-1,U=-1,G=-1,K=Y-V,J=Y+V;switch(v){case"TOP":X=(U=W-N/2)<0?5:U,q="circle"===l?Y-V-F-25:L-F-25,G=J-Math.abs(J-q)/2;break;case"BOTTOM":X=(U=W-N/2)<0?5:U,G=K+((q="circle"===l?Y+V+25:L+H+25)+F-K)/2}if(-1!==X&&-1!==q&&-1!==G){!I&&X+N>window.innerWidth&&(X=window.innerWidth-N-P-j-10),D.style.left="".concat(X,"px"),D.style.top="".concat(q,"px");var Q=((U=Math.min(A,X))+Math.max(A+M,X+N))/2;(Q=Math.min(Q,document.scrollingElement.scrollWidth))<0&&(Q=0),(G=Math.min(G,document.scrollingElement.scrollHeight))<0&&(G=0);var Z=In({bg_color:i,opacity:f,innerRadius:V,innerCenterX:W,innerCenterY:Y,outerRadius:R,outerCircleCenterX:Q,outerCircleCenterY:G,targetElementLeft:A,targetElementTop:L,targetElementWidth:M,targetElementHeight:H,type:l});Z.style.visibility="hidden",z.style.visibility="hidden",D.style.visibility="hidden";var $=null,tt=function(t){var e=!t,n=O.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,u,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),(u||e)&&(Z.parentNode.removeChild(Z),D.parentNode.removeChild(D),z.parentNode.removeChild(z),o&&o(),$&&clearTimeout($))};return e&&!0===e.auto_dismiss&&($=setTimeout((function(){return tt()}),p+e.duration)),Z.style.visibility="visible",z.style.visibility="visible",D.style.visibility="visible",u&&Z.addEventListener("click",tt),z.addEventListener("click",tt),E&&("TOP"===v?window.scrollTo({top:G-R,behavior:"smooth"}):"BOTTOM"===v&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,G+R),behavior:"smooth"})),n&&n(),tt}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",w)}}else console.warn("Element not found with id: ",w)}var Nn=new(n((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"LidK",{}),o(this,"isShowingAction",!1),o(this,"currentAction",null),o(this,"version",11),o(this,"isInitialised",!1),o(this,"Yfga",(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()}))})),o(this,"show",(function(t,n,o,i){e.isInitialised||e.Yfga();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=Tn(r,[],a,{configId:o,configName:i},e):function(t,e,n,o,i,r){if(null===t.currentAction||void 0===t.currentAction)if(e&&e.delay<=0){var a=Dn(e,n,o,i);r(a)}else setTimeout((function(){if(null===t.currentAction||void 0===t.currentAction){var a=Dn(e,n,o,i);r(a)}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")}(e,r,a,(function(){e.isShowingAction=!0,window.Apxor&&window.Apxor.logActionEvent&&(window.Apxor.logActionEvent("inline_shown",o,i),window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!0))}),(function(){e.isShowingAction=!1,window.Apxor&&window.Apxor.logActionEvent&&window.Apxor.logActionEvent("inline_dismissed",o,i),e.currentAction=null,window.Apxor&&window.Apxor.updateFlag&&window.Apxor.updateFlag(!1)}),(function(t){e.currentAction=t}))}catch(t){console.error(t)}})),o(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){}}}))})));window.ApxorRTM=Nn;try{void 0===exports&&null===exports||(exports.default=Nn,module.exports=exports.default)}catch(t){}return Nn}));
|