apxor-rtm 1.3.5 → 1.3.6

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.
@@ -1,11 +1,11 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],e):e((t=t||self)["apxor-rtm"]={},t.Apxor,t.CE)}(this,(function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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,f(i.key),i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(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.")}()}function u(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var v="https://server.apxor.com",m=v+"/v2/api/survey-response?appId=<app_id>",g=1,b=2,y=3,x=4,w=function(t){return"InApp".concat(t,"Clicked")},_=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128516;","&#128515;","&#128525;"],C=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],E=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],k=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],A=function(t){return void 0!==t&&!function(t){return null===t}(t)},L=function(t){var e=t.indexOf("svg");-1!==e&&(t=t.substring(0,e)+"svg:svg");try{return document.evaluate(t,document,(function(t){return"svg"===t?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(t){}return null},T=function(t){switch(t){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";case"ends":return"space-between";default:return"flex-end"}},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="";if(t.length>0){var r,a,s,l=t[0],c=l.bg_color,d=l.text_color,p=l.size,u=l.font_family,h=l.borders,f=h.stroke_color,v=h.radius,m=l.enable_gradient,g=l.gradient,b=void 0===g?{}:g;m&&(r=b.gradient_direction||"to right",a=b.gradient_c1||"#000000",s=b.gradient_c2||"#ffffff"),o="\n ".concat(i," footer .shepherd-button.button-o {\n background-color: ").concat("#"===c?"transparent":c,";\n color: ").concat(d,";font-size: ").concat(p,"px;font-family: ").concat(u,";\n font-weight: ").concat("bold"!==u?"normal":u,";\n font-style: ").concat("italic"===u?"italic":"unset",";\n border: 0px solid ").concat(f,";border-radius: ").concat(v,"px;\n ").concat(m?"background-image:linear-gradient(".concat(r,", ").concat(a,", ").concat(s,");"):"","\n margin-right:").concat("#"===c?0:"12px","\n }\n ")}if(t.length>1){var y,x,w,_=t[1],C=_.bg_color,E=_.text_color,k=_.size,A=_.font_family,L=_.borders,M=L.stroke_color,S=L.radius,O=_.enable_gradient,I=_.gradient,D=void 0===I?{}:I;O&&(y=D.gradient_direction||"to right",x=D.gradient_c1||"#000000",w=D.gradient_c2||"#ffffff"),o+="\n ".concat(i," footer .shepherd-button.button-t {\n background-color: ").concat("#"===C?"transparent":C,";\n color: ").concat(E,";font-size: ").concat(k,"px;font-family: ").concat(A,";\n font-weight: ").concat("bold"!==A?"normal":A,";\n font-style: ").concat("italic"===A?"italic":"unset",";\n ").concat(O?"background-image:linear-gradient(".concat(y,", ").concat(x,", ").concat(w,");"):"","\n border: 0px solid ").concat(M,";border-radius: ").concat(S,"px;\n }\n ")}return"\n ".concat(i," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(o,"\n ").concat(i," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(i," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat("horizontal"===n?"row":"column",";\n justify-content: ").concat(T(e),";\n padding: 0 .8em .8em;\n }\n ")},S=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=window.ApxorRTM,a=[],s=[];return t.forEach((function(t,l){var c,d,p,u,h,f,v,m,g=null!==(c=null==t||null===(d=t.action_config)||void 0===d?void 0:d.action)&&void 0!==c?c:"end",b=null!==(p=null==t||null===(u=t.action_config)||void 0===u?void 0:u.url)&&void 0!==p?p:"",y=null===(h=null==t||null===(f=t.action_config)||void 0===f?void 0:f.is_external)||void 0===h||h,x=null!==(v=null==t||null===(m=t.action_config)||void 0===m?void 0:m.is_within)&&void 0!==v&&v;g=g.toLowerCase();var w,_=t.borders,C=t.color,E=t.text_config,k=E.text,A=E.color,L=E.size,T=E.style,M=E.font_family,S=t.enable_gradient,O=void 0!==S&&S,I=t.gradient,D=void 0===I?{}:I;try{switch(g){case"done":case"dismiss":w=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.complete()};break;case"next":case"prev":w=function(){e.complete(),r.logActionEvent(o+k+"_Clicked",n,i)};break;case"redirect":w=function(){r.logActionEvent(o+k+"_Clicked",n,i),x||y?window.open(b,x?"_self":"_blank"):r.logClientEvent("REDIRECT",{url:b}),e.next()};break;case"cancel":w=function(){e._isCancelled=!0,e.cancel(),r.logActionEvent(o+k+"_Clicked",n,i)};break;default:w=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.cancel()}}}catch(t){}s.push({borders:_,bg_color:C,text_color:A,size:L,style:T,font_family:M,enable_gradient:O,gradient:D}),a.push({classes:0===l?"button-o":"button-t",text:k,action:w})})),{buttons_array:a,buttons_css:s}};var O=function(t,e,n){var i=n.dim_background,o=void 0===i||i,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,l=void 0===s?.87:s,c=n.position,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(c){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(o){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(l,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;min-height:").concat(e,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id","apx-dlg-c"),m.classList.add("apx-dlg-c"),d.appendChild(m),d.appendChild(p),document.body.appendChild(d),d},I=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},D=function(t,e,n,i){return t.substring(0,e)+i+t.substring(n)},B=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r=t.script.src,a=r.indexOf("{"),s=r.indexOf("}"),l=e.getController().getMasterEvents();try{for(;-1!=a&&-1!=s&&a<s;){var c=r.substring(a+1,s),d=o[c].t,p=o[c].n,u=o[c].def,h="";if("s"===d)h=i[p]?i[p]:u;else if("u"===d)h=n[p]?n[p]:u;else if("v"===d){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===d){var v=o[c].n,m=o[c].prop;l[v]&&l[v][m]&&(h=l[v][m])}a=(r=D(r,a,s+1,h)).indexOf("{"),s=r.indexOf("}")}t.text=r}catch(t){console.log("Can't evaluate the dynamic text")}},N=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r="",a=t.script.src,s=e.getController().getMasterEvents();Object.entries(o).forEach((function(t,e){var a=d(t,2),l=a[0],c=a[1],p=c.t,u=c.n,h=c.def,f="";if("s"===p)f=i[u]?i[u]:h;else if("u"===p)f=n[u]?n[u]:h;else if("v"===p){var v=document.getElementById(u);(f=null==v?void 0:v.textContent)||(f=(null==v?void 0:v.value)||"")}else if("ev"===p){var m=o[l].n,g=o[l].prop;s[m]&&s[m][g]&&(f=s[m][g])}r="".concat(r," \n let ").concat(l,' = "').concat(f,'";')}));var l="".concat(r," \n ").concat(a),c=new Function(l);t.text=c()},F=function(t){"Script"===(null==t?void 0:t.text)&&(t.isDynamicText?B(t):N(t))},P=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=document.createElement("span");if(0==e.length?i.innerText=t:e.forEach((function(e){var n=parseInt(e.start),o=parseInt(e.end),r=t.substring(n,o),a="";e.color&&(a="".concat(a,"color:").concat(e.color,";")),e.font_family&&(a="".concat(a,"font-family:").concat(e.font_family,";")),e.size&&(a="".concat(a,"font-size:").concat(e.size,"px;")),"italic"===e.style&&(a="".concat(a,"font-style:").concat(e.style,";")),"bold"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),"normal"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),1==e.underline&&(a="".concat(a,"text-decoration:underline;")),1==e.strike_through&&(a="".concat(a,"text-decoration:line-through;")),"super"==e.script&&(a="".concat(a,"vertical-align:super;")),"sub"==e.script&&(a="".concat(a,"vertical-align:sub;")),e.bg_color&&(a="".concat(a,"background-color:").concat(e.bg_color,";"));var s=document.createElement("span");s.style=a,s.innerText=r,i.appendChild(s)})),void 0!==n){var o=document.createElement("blockquote"),r="";return n.color&&(r="border-left-color:".concat(n.color,";")),n.width&&(r="".concat(r,"border-left-width:").concat(n.width,"px;")),n.gap&&(r="".concat(r,"padding:").concat(n.gap,"px;")),o.appendChild(i),o.style=r,o}return i},z=function(t,e){var n=t.color,i=void 0===n?"#000":n,o=t.font_family,r=void 0===o?"cursive":o,a=t.size,s=void 0===a?14:a,l=t.style,c=void 0===l?"bold":l,d=t.text,p=t.segments,u=t.quote,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",f=document.createElement("span");f.setAttribute("id",e+"-"+h),f.className="apx-class-".concat(e,"-").concat(h);var v=document.createElement("style");return v.innerHTML="\n .apx-class-".concat(e,"-").concat(h," {\n z-index:99999;\n color:").concat(i," !important;\n font-family:").concat(r," !important;\n font-size:").concat(s,"px !important;\n font-weight:").concat(c," !important;\n font-style:").concat("normal"===c||"italic"===c?c+" !important":"unset",";\n max-width:400px;\n }\n "),f.appendChild(v),f.appendChild(P(d,p,u)),f},H=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},Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=0,i=0;try{var o=t.width,r=void 0===o?360:o,a=t.height,s=void 0===a?360:a,l=s/r,c=window.innerWidth,d=window.innerHeight;c>d?i=(n=d*e)/l:n=(i=c*e)*l}catch(t){console.log("Error \n ".concat(t," \n occured while calculating the height and width"))}return{height:n,width:i}},j=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"InApp_",i=arguments.length>3?arguments[3]:void 0,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,l=arguments.length>8?arguments[8]:void 0,c=document.createElement("footer");c.classList.add("shepherd-footer"),c.style.zIndex=99999999,c.style.margin="8px",c.style.padding="0";var d=S(i,{next:a,complete:s,cancel:l},t,e,n),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");return h.innerHTML=M(u,o,r),c.appendChild(h),p.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=document.createElement("button");o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},c.appendChild(o)})),c},q=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-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\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};
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],e):e((t=t||self)["apxor-rtm"]={},t.Apxor,t.CE)}(this,(function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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,f(i.key),i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(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.")}()}function u(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var v="https://server.apxor.com",m=v+"/v2/api/survey-response?appId=<app_id>",g=1,b=2,y=3,x=4,w=function(t){return"InApp".concat(t,"Clicked")},_=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128512;","&#128516;","&#128515;","&#128525;"],C=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],E=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],k=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],A=function(t){return void 0!==t&&!function(t){return null===t}(t)},L=function(t){var e=t.indexOf("svg");-1!==e&&(t=t.substring(0,e)+"svg:svg");try{return document.evaluate(t,document,(function(t){return"svg"===t?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(t){}return null},M=function(t){switch(t){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";case"ends":return"space-between";default:return"flex-end"}},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="";if(t.length>0){var r,a,s,l=t[0],c=l.bg_color,d=l.text_color,p=l.size,u=l.font_family,h=l.borders,f=h.stroke_color,v=h.radius,m=l.enable_gradient,g=l.gradient,b=void 0===g?{}:g;m&&(r=b.gradient_direction||"to right",a=b.gradient_c1||"#000000",s=b.gradient_c2||"#ffffff"),o="\n ".concat(i," footer .shepherd-button.button-o {\n background-color: ").concat("#"===c?"transparent":c,";\n color: ").concat(d,";font-size: ").concat(p,"px;font-family: ").concat(u,";\n font-weight: ").concat("bold"!==u?"normal":u,";\n font-style: ").concat("italic"===u?"italic":"unset",";\n border: 0px solid ").concat(f,";border-radius: ").concat(v,"px;\n ").concat(m?"background-image:linear-gradient(".concat(r,", ").concat(a,", ").concat(s,");"):"","\n margin-right:").concat("#"===c?0:"12px","\n }\n ")}if(t.length>1){var y,x,w,_=t[1],C=_.bg_color,E=_.text_color,k=_.size,A=_.font_family,L=_.borders,T=L.stroke_color,S=L.radius,O=_.enable_gradient,D=_.gradient,I=void 0===D?{}:D;O&&(y=I.gradient_direction||"to right",x=I.gradient_c1||"#000000",w=I.gradient_c2||"#ffffff"),o+="\n ".concat(i," footer .shepherd-button.button-t {\n background-color: ").concat("#"===C?"transparent":C,";\n color: ").concat(E,";font-size: ").concat(k,"px;font-family: ").concat(A,";\n font-weight: ").concat("bold"!==A?"normal":A,";\n font-style: ").concat("italic"===A?"italic":"unset",";\n ").concat(O?"background-image:linear-gradient(".concat(y,", ").concat(x,", ").concat(w,");"):"","\n border: 0px solid ").concat(T,";border-radius: ").concat(S,"px;\n }\n ")}return"\n ".concat(i," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(o,"\n ").concat(i," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(i," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat("horizontal"===n?"row":"column",";\n justify-content: ").concat(M(e),";\n padding: 0 .8em .8em;\n }\n ")},S=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=window.ApxorRTM,a=[],s=[];return t.forEach((function(t,l){var c,d,p,u,h,f,v,m,g=null!==(c=null==t||null===(d=t.action_config)||void 0===d?void 0:d.action)&&void 0!==c?c:"end",b=null!==(p=null==t||null===(u=t.action_config)||void 0===u?void 0:u.url)&&void 0!==p?p:"",y=null===(h=null==t||null===(f=t.action_config)||void 0===f?void 0:f.is_external)||void 0===h||h,x=null!==(v=null==t||null===(m=t.action_config)||void 0===m?void 0:m.is_within)&&void 0!==v&&v;g=g.toLowerCase();var w,_=t.borders,C=t.color,E=t.text_config,k=E.text,A=E.color,L=E.size,M=E.style,T=E.font_family,S=t.enable_gradient,O=void 0!==S&&S,D=t.gradient,I=void 0===D?{}:D;try{switch(g){case"done":case"dismiss":w=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.complete()};break;case"next":case"prev":w=function(){e.complete(),r.logActionEvent(o+k+"_Clicked",n,i)};break;case"redirect":w=function(){r.logActionEvent(o+k+"_Clicked",n,i),x||y?window.open(b,x?"_self":"_blank"):r.logClientEvent("REDIRECT",{url:b}),e.next()};break;case"cancel":w=function(){e._isCancelled=!0,e.cancel(),r.logActionEvent(o+k+"_Clicked",n,i)};break;default:w=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.cancel()}}}catch(t){}s.push({borders:_,bg_color:C,text_color:A,size:L,style:M,font_family:T,enable_gradient:O,gradient:I}),a.push({classes:0===l?"button-o":"button-t",text:k,action:w})})),{buttons_array:a,buttons_css:s}};var O=function(t,e,n){var i=n.dim_background,o=void 0===i||i,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,l=void 0===s?.87:s,c=n.position,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(c){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(o){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(l,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;min-height:").concat(e,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id","apx-dlg-c"),m.classList.add("apx-dlg-c"),d.appendChild(m),d.appendChild(p),document.body.appendChild(d),d},D=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},I=function(t,e,n,i){return t.substring(0,e)+i+t.substring(n)},N=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r=t.script.src,a=r.indexOf("{"),s=r.indexOf("}"),l=e.getController().getMasterEvents();try{for(;-1!=a&&-1!=s&&a<s;){var c=r.substring(a+1,s),d=o[c].t,p=o[c].n,u=o[c].def,h="";if("s"===d)h=i[p]?i[p]:u;else if("u"===d)h=n[p]?n[p]:u;else if("v"===d){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===d){var v=o[c].n,m=o[c].prop;l[v]&&l[v][m]&&(h=l[v][m])}a=(r=I(r,a,s+1,h)).indexOf("{"),s=r.indexOf("}")}t.text=r}catch(t){console.log("Can't evaluate the dynamic text")}},B=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r="",a=t.script.src,s=e.getController().getMasterEvents();Object.entries(o).forEach((function(t,e){var a=d(t,2),l=a[0],c=a[1],p=c.t,u=c.n,h=c.def,f="";if("s"===p)f=i[u]?i[u]:h;else if("u"===p)f=n[u]?n[u]:h;else if("v"===p){var v=document.getElementById(u);(f=null==v?void 0:v.textContent)||(f=(null==v?void 0:v.value)||"")}else if("ev"===p){var m=o[l].n,g=o[l].prop;s[m]&&s[m][g]&&(f=s[m][g])}r="".concat(r," \n let ").concat(l,' = "').concat(f,'";')}));var l="".concat(r," \n ").concat(a),c=new Function(l);t.text=c()},F=function(t){"Script"===(null==t?void 0:t.text)&&(t.isDynamicText?N(t):B(t))},P=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=document.createElement("span");if(0==e.length?i.innerText=t:e.forEach((function(e){var n=parseInt(e.start),o=parseInt(e.end),r=t.substring(n,o),a="";e.color&&(a="".concat(a,"color:").concat(e.color,";")),e.font_family&&(a="".concat(a,"font-family:").concat(e.font_family,";")),e.size&&(a="".concat(a,"font-size:").concat(e.size,"px;")),"italic"===e.style&&(a="".concat(a,"font-style:").concat(e.style,";")),"bold"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),"normal"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),1==e.underline&&(a="".concat(a,"text-decoration:underline;")),1==e.strike_through&&(a="".concat(a,"text-decoration:line-through;")),"super"==e.script&&(a="".concat(a,"vertical-align:super;")),"sub"==e.script&&(a="".concat(a,"vertical-align:sub;")),e.bg_color&&(a="".concat(a,"background-color:").concat(e.bg_color,";"));var s=document.createElement("span");s.style=a,s.innerText=r,i.appendChild(s)})),void 0!==n){var o=document.createElement("blockquote"),r="";return n.color&&(r="border-left-color:".concat(n.color,";")),n.width&&(r="".concat(r,"border-left-width:").concat(n.width,"px;")),n.gap&&(r="".concat(r,"padding:").concat(n.gap,"px;")),o.appendChild(i),o.style=r,o}return i},z=function(t,e){var n=t.color,i=void 0===n?"#000":n,o=t.font_family,r=void 0===o?"cursive":o,a=t.size,s=void 0===a?14:a,l=t.style,c=void 0===l?"bold":l,d=t.text,p=t.segments,u=t.quote,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",f=document.createElement("span");f.setAttribute("id",e+"-"+h),f.className="apx-class-".concat(e,"-").concat(h);var v=document.createElement("style");return v.innerHTML="\n .apx-class-".concat(e,"-").concat(h," {\n z-index:99999;\n color:").concat(i," !important;\n font-family:").concat(r," !important;\n font-size:").concat(s,"px !important;\n font-weight:").concat(c," !important;\n font-style:").concat("normal"===c||"italic"===c?c+" !important":"unset",";\n max-width:400px;\n }\n "),f.appendChild(v),f.appendChild(P(d,p,u)),f},H=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},q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=0,i=0;try{var o=t.width,r=void 0===o?360:o,a=t.height,s=void 0===a?360:a,l=s/r,c=window.innerWidth,d=window.innerHeight;c>d?i=(n=d*e)/l:n=(i=c*e)*l}catch(t){console.log("Error \n ".concat(t," \n occured while calculating the height and width"))}return{height:n,width:i}},Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"InApp_",i=arguments.length>3?arguments[3]:void 0,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,l=arguments.length>8?arguments[8]:void 0,c=document.createElement("footer");c.classList.add("shepherd-footer"),c.style.zIndex=99999999,c.style.margin="8px",c.style.padding="0";var d=S(i,{next:a,complete:s,cancel:l},t,e,n),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");return h.innerHTML=T(u,o,r),c.appendChild(h),p.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=document.createElement("button");o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},c.appendChild(o)})),c},V=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-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\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};
2
2
  /*! shepherd.js 4.0.0-beta.1 */
3
- function V(t){return(V="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function R(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function U(t,e,n){return e&&W(t.prototype,e),n&&W(t,n),t}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(){return(X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function G(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&&Q(t,e)}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?K(t):e}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function et(t){return t instanceof HTMLElement}function nt(t){return"function"==typeof t}function it(t){return"string"==typeof t}function ot(t){return void 0===t}
3
+ function R(t){return(R="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t,e,n){return e&&W(t.prototype,e),n&&W(t,n),t}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(){return(X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function G(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&&Q(t,e)}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?K(t):e}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function et(t){return t instanceof HTMLElement}function nt(t){return"function"==typeof t}function it(t){return"string"==typeof t}function ot(t){return void 0===t}
4
4
  /**!
5
5
  * tippy.js v5.0.0-alpha.2
6
6
  * (c) 2017-2019 atomiks
7
7
  * MIT License
8
- */function rt(){return(rt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var at="undefined"!=typeof window&&"undefined"!=typeof document,st=at?navigator.userAgent:"",lt=/MSIE |Trident\//.test(st),ct=/UCBrowser\//.test(st),dt=at&&/iPhone|iPad|iPod/.test(navigator.platform),pt={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},ut=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],ht={passive:!0},ft={isTouch:!1},vt=0;function mt(){ft.isTouch||(ft.isTouch=!0,dt&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",gt))}function gt(){var t=performance.now();t-vt<20&&(ft.isTouch=!1,document.removeEventListener("mousemove",gt),dt||document.body.classList.remove("tippy-iOS")),vt=t}function bt(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var yt=Object.keys(pt);function xt(t,e){return{}.hasOwnProperty.call(t,e)}function wt(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function _t(t,e){return t&&t.modifiers&&t.modifiers[e]}function Ct(t){return t instanceof Element}function Et(t,e){return"function"==typeof t?t.apply(null,e):t}function kt(t,e){t.filter((function(t){return"flip"===t.name}))[0].enabled=e}function At(){return document.createElement("div")}function Lt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Tt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Mt(t,e){var n=rt({},e,{content:Et(e.content,[t])},e.ignoreAttributes?{}:function(t){return yt.reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t));return n.animateFill&&(n.arrow=!1),(n.arrow||ct)&&(n.animateFill=!1),n}function St(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function Ot(t,e,n){t&&t!==e&&t.apply(null,n)}function It(t){return[].slice.call(t)}function Dt(t,e){return t.indexOf(e)>-1}function Bt(t,e){t.innerHTML=Ct(e)?e.innerHTML:e}function Nt(t,e){if(Ct(e.content))Bt(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function Ft(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 Pt(t){t.setAttribute("data-inertia","")}function zt(t){var e=At();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",Ct(t)?e.appendChild(t):Bt(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 Ht(t){var e=At();return e.className="tippy-backdrop",e.setAttribute("data-state",t?"visible":"hidden"),e}function Zt(t){t.setAttribute("data-interactive","")}function jt(t,e,n){var i=ct&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function qt(t){return t.split("-")[0]}function Vt(t,e,n){n.split(" ").forEach((function(n){n&&t.classList[e](n+"-theme")}))}function Rt(t,e){var n=At();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var i=At();i.className="tippy-tooltip",i.id="tippy-"+t,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),Vt(i,"add",e.theme);var o=At();return o.className="tippy-content",o.setAttribute("data-state","hidden"),e.interactive&&Zt(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(zt(e.arrow))),e.animateFill&&(i.appendChild(Ht(!1)),i.setAttribute("data-animatefill","")),e.inertia&&Pt(i),Nt(o,e),i.appendChild(o),n.appendChild(i),Wt(n,e,e,!1),n}function Wt(t,e,n,i){var o=Ft(t),r=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),e.content!==n.content&&Nt(a,n),!e.animateFill&&n.animateFill?(r.appendChild(Ht(i)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(zt(n.arrow)),r.setAttribute("data-arrow","")):e.arrow&&!n.arrow?(r.removeChild(l),r.removeAttribute("data-arrow")):e.arrow!==n.arrow&&(r.removeChild(l),r.appendChild(zt(n.arrow))),!e.interactive&&n.interactive?Zt(r):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(r),!e.inertia&&n.inertia?Pt(r):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==n.theme&&(Vt(r,"remove",e.theme),Vt(r,"add",n.theme))}for(
8
+ */function rt(){return(rt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var at="undefined"!=typeof window&&"undefined"!=typeof document,st=at?navigator.userAgent:"",lt=/MSIE |Trident\//.test(st),ct=/UCBrowser\//.test(st),dt=at&&/iPhone|iPad|iPod/.test(navigator.platform),pt={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},ut=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],ht={passive:!0},ft={isTouch:!1},vt=0;function mt(){ft.isTouch||(ft.isTouch=!0,dt&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",gt))}function gt(){var t=performance.now();t-vt<20&&(ft.isTouch=!1,document.removeEventListener("mousemove",gt),dt||document.body.classList.remove("tippy-iOS")),vt=t}function bt(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var yt=Object.keys(pt);function xt(t,e){return{}.hasOwnProperty.call(t,e)}function wt(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function _t(t,e){return t&&t.modifiers&&t.modifiers[e]}function Ct(t){return t instanceof Element}function Et(t,e){return"function"==typeof t?t.apply(null,e):t}function kt(t,e){t.filter((function(t){return"flip"===t.name}))[0].enabled=e}function At(){return document.createElement("div")}function Lt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Mt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Tt(t,e){var n=rt({},e,{content:Et(e.content,[t])},e.ignoreAttributes?{}:function(t){return yt.reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t));return n.animateFill&&(n.arrow=!1),(n.arrow||ct)&&(n.animateFill=!1),n}function St(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function Ot(t,e,n){t&&t!==e&&t.apply(null,n)}function Dt(t){return[].slice.call(t)}function It(t,e){return t.indexOf(e)>-1}function Nt(t,e){t.innerHTML=Ct(e)?e.innerHTML:e}function Bt(t,e){if(Ct(e.content))Nt(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function Ft(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 Pt(t){t.setAttribute("data-inertia","")}function zt(t){var e=At();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",Ct(t)?e.appendChild(t):Nt(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 Ht(t){var e=At();return e.className="tippy-backdrop",e.setAttribute("data-state",t?"visible":"hidden"),e}function qt(t){t.setAttribute("data-interactive","")}function Zt(t,e,n){var i=ct&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function Vt(t){return t.split("-")[0]}function Rt(t,e,n){n.split(" ").forEach((function(n){n&&t.classList[e](n+"-theme")}))}function jt(t,e){var n=At();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var i=At();i.className="tippy-tooltip",i.id="tippy-"+t,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),Rt(i,"add",e.theme);var o=At();return o.className="tippy-content",o.setAttribute("data-state","hidden"),e.interactive&&qt(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(zt(e.arrow))),e.animateFill&&(i.appendChild(Ht(!1)),i.setAttribute("data-animatefill","")),e.inertia&&Pt(i),Bt(o,e),i.appendChild(o),n.appendChild(i),Wt(n,e,e,!1),n}function Wt(t,e,n,i){var o=Ft(t),r=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),e.content!==n.content&&Bt(a,n),!e.animateFill&&n.animateFill?(r.appendChild(Ht(i)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(zt(n.arrow)),r.setAttribute("data-arrow","")):e.arrow&&!n.arrow?(r.removeChild(l),r.removeAttribute("data-arrow")):e.arrow!==n.arrow&&(r.removeChild(l),r.appendChild(zt(n.arrow))),!e.interactive&&n.interactive?qt(r):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(r),!e.inertia&&n.inertia?Pt(r):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==n.theme&&(Rt(r,"remove",e.theme),Rt(r,"add",n.theme))}for(
9
9
  /**!
10
10
  * @fileOverview Kickass library to create and place poppers near their reference elements.
11
11
  * @version 1.15.0
@@ -30,15 +30,15 @@ function V(t){return(V="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?
30
30
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
31
  * SOFTWARE.
32
32
  */
33
- var Ut="undefined"!=typeof window&&"undefined"!=typeof document,Yt=["Edge","Trident","Firefox"],Xt=0,Gt=0;Gt<Yt.length;Gt+=1)if(Ut&&navigator.userAgent.indexOf(Yt[Gt])>=0){Xt=1;break}var Jt=Ut&&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()}),Xt))}};function Qt(t){return t&&"[object Function]"==={}.toString.call(t)}function Kt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function $t(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function te(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Kt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:te($t(t))}var ee=Ut&&!(!window.MSInputMethodContext||!document.documentMode),ne=Ut&&/MSIE 10/.test(navigator.userAgent);function ie(t){return 11===t?ee:10===t?ne:ee||ne}function oe(t){if(!t)return document.documentElement;for(var e=ie(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"===Kt(n,"position")?oe(n):n:t?t.ownerDocument.documentElement:document.documentElement}function re(t){return null!==t.parentNode?re(t.parentNode):t}function ae(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,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&oe(a.firstElementChild)!==a?oe(l):l;var c=re(t);return c.host?ae(c.host,e):ae(t,re(e).host)}function se(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 le(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=se(e,"top"),o=se(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 ce(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 de(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ie(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function pe(t){var e=t.body,n=t.documentElement,i=ie(10)&&getComputedStyle(n);return{height:de("Height",e,n,i),width:de("Width",e,n,i)}}var ue=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},he=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}}(),fe=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ve=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 me(t){return ve({},t,{right:t.left+t.width,bottom:t.top+t.height})}function ge(t){var e={};try{if(ie(10)){e=t.getBoundingClientRect();var n=se(t,"top"),i=se(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?pe(t.ownerDocument):{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,l=t.offsetWidth-a,c=t.offsetHeight-s;if(l||c){var d=Kt(t);l-=ce(d,"x"),c-=ce(d,"y"),o.width-=l,o.height-=c}return me(o)}function be(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ie(10),o="HTML"===e.nodeName,r=ge(t),a=ge(e),s=te(t),l=Kt(e),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=me({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var u=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);p.top-=c-u,p.bottom-=c-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=le(p,e)),p}function ye(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=be(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:se(n),s=e?0:se(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return me(l)}function xe(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Kt(t,"position"))return!0;var n=$t(t);return!!n&&xe(n)}function we(t){if(!t||!t.parentElement||ie())return document.documentElement;for(var e=t.parentElement;e&&"none"===Kt(e,"transform");)e=e.parentElement;return e||document.documentElement}function _e(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?we(t):ae(t,e);if("viewport"===i)r=ye(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=te($t(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=be(s,a,o);if("HTML"!==s.nodeName||xe(a))r=l;else{var c=pe(t.ownerDocument),d=c.height,p=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=p+l.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 Ce(t){return t.width*t.height}function Ee(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=_e(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}},l=Object.keys(s).map((function(t){return ve({key:t},s[t],{area:Ce(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return d+(p?"-"+p:"")}function ke(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?we(e):ae(e,n);return be(n,o,i)}function Ae(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 Le(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 Te(t,e,n){n=n.split("-")[0];var i=Ae(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[c]:e[Le(s)],o}function Me(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Se(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 i=Me(t,(function(t){return t[e]===n}));return t.indexOf(i)}(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&&Qt(n)&&(e.offsets.popper=me(e.offsets.popper),e.offsets.reference=me(e.offsets.reference),e=n(e,t))})),e}function Oe(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ke(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ee(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=Te(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Se(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Ie(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function De(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 Be(){return this.state.isDestroyed=!0,Ie(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[De("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ne(t){var e=t.ownerDocument;return e?e.defaultView:window}function Fe(t,e,n,i){n.updateBound=i,Ne(t).addEventListener("resize",n.updateBound,{passive:!0});var o=te(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,i,{passive:!0}),r||t(te(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Pe(){this.state.eventsEnabled||(this.state=Fe(this.reference,this.options,this.state,this.scheduleUpdate))}function ze(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Ne(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 He(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Ze(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&He(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var je=Ut&&/Firefox/i.test(navigator.userAgent);function qe(t,e,n){var i=Me(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}var Ve=["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"],Re=Ve.slice(3);function We(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re.indexOf(t),i=Re.slice(n+1).concat(Re.slice(0,n));return e?i.reverse():i}var Ue="flip",Ye="clockwise",Xe="counterclockwise";function Ge(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(Me(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 l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.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 function(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 me(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,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){He(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Je={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],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:fe({},l,r[l]),end:fe({},l,r[l]+r[c]-a[c])};t.offsets.popper=ve({},a,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=He(+n)?[+n,0]:Ge(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||oe(t.instance.popper);t.instance.reference===n&&(n=oe(n));var i=De("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=_e(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var c=e.priority,d=t.offsets.popper,p={primary:function(t){var n=d[t];return d[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(d[t],l[t])),fe({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(d[n],l[t]-("right"===t?d.width:d.height))),fe({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=ve({},d,p[e](t))})),t.offsets.popper=d,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,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!qe(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,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",p=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",f=Ae(i)[c];s[h]-f<a[p]&&(t.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(t.offsets.popper[p]+=s[p]+f-a[h]),t.offsets.popper=me(t.offsets.popper);var v=s[p]+s[c]/2-f/2,m=Kt(t.instance.popper),g=parseFloat(m["margin"+d],10),b=parseFloat(m["border"+d+"Width"],10),y=v-t.offsets.popper[p]-g-b;return y=Math.max(Math.min(a[c]-f,y),0),t.arrowElement=i,t.offsets.arrow=(fe(n={},p,Math.round(y)),fe(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Ie(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=_e(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Le(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Ue:a=[i,o];break;case Ye:a=We(i);break;case Xe:a=We(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=Le(i);var c=t.offsets.popper,d=t.offsets.reference,p=Math.floor,u="left"===i&&p(c.right)>p(d.left)||"right"===i&&p(c.left)<p(d.right)||"top"===i&&p(c.bottom)>p(d.top)||"bottom"===i&&p(c.top)<p(d.bottom),h=p(c.left)<p(n.left),f=p(c.right)>p(n.right),v=p(c.top)<p(n.top),m=p(c.bottom)>p(n.bottom),g="left"===i&&h||"right"===i&&f||"top"===i&&v||"bottom"===i&&m,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&f||!b&&"start"===r&&v||!b&&"end"===r&&m),x=!!e.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&h||!b&&"start"===r&&m||!b&&"end"===r&&v),w=y||x;(u||g||w)&&(t.flipped=!0,(u||g)&&(i=a[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=ve({},t.offsets.popper,Te(t.instance.popper,t.offsets.reference,t.placement)),t=Se(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],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=Le(e),t.offsets.popper=me(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!qe(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Me(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,i=e.y,o=t.offsets.popper,r=Me(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=oe(t.instance.popper),l=ge(s),c={position:o.position},d=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),c=r(i.width),d=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),u=e?d||p||l%2==c%2?r:a:s,h=e?r:s;return{left:u(l%2==1&&c%2==1&&!p&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}(t,window.devicePixelRatio<2||!je),p="bottom"===n?"top":"bottom",u="right"===i?"left":"right",h=De("transform"),f=void 0,v=void 0;if(v="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-l.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-l.width+d.right:d.left,a&&h)c[h]="translate3d("+f+"px, "+v+"px, 0)",c[p]=0,c[u]=0,c.willChange="transform";else{var m="bottom"===p?-1:1,g="right"===u?-1:1;c[p]=v*m,c[u]=f*g,c.willChange=p+", "+u}var b={"x-placement":t.placement};return t.attributes=ve({},b,t.attributes),t.styles=ve({},c,t.styles),t.arrowStyles=ve({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Ze(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&&Ze(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=ke(o,e,t,n.positionFixed),a=Ee(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),Ze(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Qe=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ue(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Jt(this.update.bind(this)),this.options=ve({},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(ve({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ve({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ve({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Qt(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 he(t,[{key:"update",value:function(){return Oe.call(this)}},{key:"destroy",value:function(){return Be.call(this)}},{key:"enableEventListeners",value:function(){return Pe.call(this)}},{key:"disableEventListeners",value:function(){return ze.call(this)}}]),t}();Qe.Utils=("undefined"!=typeof window?window:global).PopperUtils,Qe.placements=Ve,Qe.Defaults=Je;
33
+ var Yt="undefined"!=typeof window&&"undefined"!=typeof document,Ut=["Edge","Trident","Firefox"],Xt=0,Gt=0;Gt<Ut.length;Gt+=1)if(Yt&&navigator.userAgent.indexOf(Ut[Gt])>=0){Xt=1;break}var Jt=Yt&&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()}),Xt))}};function Qt(t){return t&&"[object Function]"==={}.toString.call(t)}function Kt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function $t(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function te(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Kt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:te($t(t))}var ee=Yt&&!(!window.MSInputMethodContext||!document.documentMode),ne=Yt&&/MSIE 10/.test(navigator.userAgent);function ie(t){return 11===t?ee:10===t?ne:ee||ne}function oe(t){if(!t)return document.documentElement;for(var e=ie(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"===Kt(n,"position")?oe(n):n:t?t.ownerDocument.documentElement:document.documentElement}function re(t){return null!==t.parentNode?re(t.parentNode):t}function ae(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,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&oe(a.firstElementChild)!==a?oe(l):l;var c=re(t);return c.host?ae(c.host,e):ae(t,re(e).host)}function se(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 le(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=se(e,"top"),o=se(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 ce(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 de(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ie(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function pe(t){var e=t.body,n=t.documentElement,i=ie(10)&&getComputedStyle(n);return{height:de("Height",e,n,i),width:de("Width",e,n,i)}}var ue=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},he=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}}(),fe=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ve=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 me(t){return ve({},t,{right:t.left+t.width,bottom:t.top+t.height})}function ge(t){var e={};try{if(ie(10)){e=t.getBoundingClientRect();var n=se(t,"top"),i=se(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?pe(t.ownerDocument):{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,l=t.offsetWidth-a,c=t.offsetHeight-s;if(l||c){var d=Kt(t);l-=ce(d,"x"),c-=ce(d,"y"),o.width-=l,o.height-=c}return me(o)}function be(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ie(10),o="HTML"===e.nodeName,r=ge(t),a=ge(e),s=te(t),l=Kt(e),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=me({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var u=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);p.top-=c-u,p.bottom-=c-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=le(p,e)),p}function ye(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=be(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:se(n),s=e?0:se(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return me(l)}function xe(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Kt(t,"position"))return!0;var n=$t(t);return!!n&&xe(n)}function we(t){if(!t||!t.parentElement||ie())return document.documentElement;for(var e=t.parentElement;e&&"none"===Kt(e,"transform");)e=e.parentElement;return e||document.documentElement}function _e(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?we(t):ae(t,e);if("viewport"===i)r=ye(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=te($t(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=be(s,a,o);if("HTML"!==s.nodeName||xe(a))r=l;else{var c=pe(t.ownerDocument),d=c.height,p=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=p+l.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 Ce(t){return t.width*t.height}function Ee(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=_e(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}},l=Object.keys(s).map((function(t){return ve({key:t},s[t],{area:Ce(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return d+(p?"-"+p:"")}function ke(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?we(e):ae(e,n);return be(n,o,i)}function Ae(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 Le(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 Me(t,e,n){n=n.split("-")[0];var i=Ae(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[c]:e[Le(s)],o}function Te(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Se(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 i=Te(t,(function(t){return t[e]===n}));return t.indexOf(i)}(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&&Qt(n)&&(e.offsets.popper=me(e.offsets.popper),e.offsets.reference=me(e.offsets.reference),e=n(e,t))})),e}function Oe(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ke(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ee(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=Me(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Se(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function De(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Ie(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 Ne(){return this.state.isDestroyed=!0,De(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[Ie("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Be(t){var e=t.ownerDocument;return e?e.defaultView:window}function Fe(t,e,n,i){n.updateBound=i,Be(t).addEventListener("resize",n.updateBound,{passive:!0});var o=te(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,i,{passive:!0}),r||t(te(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Pe(){this.state.eventsEnabled||(this.state=Fe(this.reference,this.options,this.state,this.scheduleUpdate))}function ze(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Be(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 He(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function qe(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&He(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var Ze=Yt&&/Firefox/i.test(navigator.userAgent);function Ve(t,e,n){var i=Te(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}var Re=["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"],je=Re.slice(3);function We(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=je.indexOf(t),i=je.slice(n+1).concat(je.slice(0,n));return e?i.reverse():i}var Ye="flip",Ue="clockwise",Xe="counterclockwise";function Ge(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(Te(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 l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.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 function(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 me(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,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){He(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Je={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],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:fe({},l,r[l]),end:fe({},l,r[l]+r[c]-a[c])};t.offsets.popper=ve({},a,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=He(+n)?[+n,0]:Ge(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||oe(t.instance.popper);t.instance.reference===n&&(n=oe(n));var i=Ie("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=_e(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var c=e.priority,d=t.offsets.popper,p={primary:function(t){var n=d[t];return d[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(d[t],l[t])),fe({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(d[n],l[t]-("right"===t?d.width:d.height))),fe({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=ve({},d,p[e](t))})),t.offsets.popper=d,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,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Ve(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,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",p=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",f=Ae(i)[c];s[h]-f<a[p]&&(t.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(t.offsets.popper[p]+=s[p]+f-a[h]),t.offsets.popper=me(t.offsets.popper);var v=s[p]+s[c]/2-f/2,m=Kt(t.instance.popper),g=parseFloat(m["margin"+d],10),b=parseFloat(m["border"+d+"Width"],10),y=v-t.offsets.popper[p]-g-b;return y=Math.max(Math.min(a[c]-f,y),0),t.arrowElement=i,t.offsets.arrow=(fe(n={},p,Math.round(y)),fe(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(De(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=_e(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Le(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Ye:a=[i,o];break;case Ue:a=We(i);break;case Xe:a=We(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=Le(i);var c=t.offsets.popper,d=t.offsets.reference,p=Math.floor,u="left"===i&&p(c.right)>p(d.left)||"right"===i&&p(c.left)<p(d.right)||"top"===i&&p(c.bottom)>p(d.top)||"bottom"===i&&p(c.top)<p(d.bottom),h=p(c.left)<p(n.left),f=p(c.right)>p(n.right),v=p(c.top)<p(n.top),m=p(c.bottom)>p(n.bottom),g="left"===i&&h||"right"===i&&f||"top"===i&&v||"bottom"===i&&m,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&f||!b&&"start"===r&&v||!b&&"end"===r&&m),x=!!e.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&h||!b&&"start"===r&&m||!b&&"end"===r&&v),w=y||x;(u||g||w)&&(t.flipped=!0,(u||g)&&(i=a[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=ve({},t.offsets.popper,Me(t.instance.popper,t.offsets.reference,t.placement)),t=Se(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],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=Le(e),t.offsets.popper=me(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Ve(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Te(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,i=e.y,o=t.offsets.popper,r=Te(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=oe(t.instance.popper),l=ge(s),c={position:o.position},d=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),c=r(i.width),d=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),u=e?d||p||l%2==c%2?r:a:s,h=e?r:s;return{left:u(l%2==1&&c%2==1&&!p&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}(t,window.devicePixelRatio<2||!Ze),p="bottom"===n?"top":"bottom",u="right"===i?"left":"right",h=Ie("transform"),f=void 0,v=void 0;if(v="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-l.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-l.width+d.right:d.left,a&&h)c[h]="translate3d("+f+"px, "+v+"px, 0)",c[p]=0,c[u]=0,c.willChange="transform";else{var m="bottom"===p?-1:1,g="right"===u?-1:1;c[p]=v*m,c[u]=f*g,c.willChange=p+", "+u}var b={"x-placement":t.placement};return t.attributes=ve({},b,t.attributes),t.styles=ve({},c,t.styles),t.arrowStyles=ve({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return qe(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&&qe(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=ke(o,e,t,n.positionFixed),a=Ee(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),qe(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Qe=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ue(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Jt(this.update.bind(this)),this.options=ve({},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(ve({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ve({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ve({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Qt(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 he(t,[{key:"update",value:function(){return Oe.call(this)}},{key:"destroy",value:function(){return Ne.call(this)}},{key:"enableEventListeners",value:function(){return Pe.call(this)}},{key:"disableEventListeners",value:function(){return ze.call(this)}}]),t}();Qe.Utils=("undefined"!=typeof window?window:global).PopperUtils,Qe.placements=Re,Qe.Defaults=Je;
34
34
  /**!
35
35
  * tippy.js v5.0.0-alpha.2
36
36
  * (c) 2017-2019 atomiks
37
37
  * MIT License
38
38
  */
39
- var Ke=1,$e=[];function tn(t,e){var n,i,o,r,a=Mt(t,e);if(!a.multiple&&t._tippy)return null;var s,l,c,d=!1,p=!1,u=!1,h=[],f=St(N,a.interactiveDebounce),v=Ke++,m=Rt(v,a),g=Ft(m),b=g.tooltip,y=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:v,reference:t,popper:m,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(w.state.isDestroyed)return;D();var n=w.props,i=Mt(t,rt({},w.props,e,{ignoreAttributes:!0}));i.ignoreAttributes=xt(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,w.props=i,I(),A(),f=St(N,i.interactiveDebounce),Wt(m,n,i,w.state.isVisible),w.popperChildren=Ft(m),w.popperInstance&&(ut.some((function(t){return xt(e,t)&&e[t]!==n[t]}))?(w.popperInstance.destroy(),H(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(t){w.setProps({content:t})},show:function(e,n){void 0===e&&(e=wt(w.props.duration,0,pt.duration[1]));void 0===n&&(n=!0);var i=w.state.isVisible,o=w.state.isDestroyed,r=!w.state.isEnabled,a=ft.isTouch&&!w.props.touch;if(i||o||r||a)return;if(k().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;T(),m.style.visibility="visible",w.state.isVisible=!0;var s=E();Lt(n?s.concat(m):s,0),l=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(e/12)+"ms":"",w.props.sticky&&(Lt([m],lt?0:w.props.updateDuration),function t(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(t):Lt([m],0)}()),Lt([m],w.props.updateDuration),Lt(s,e),Tt(s,"visible"),function(t,e){S(t,e)}(e,(function(){w.props.aria&&k().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var e=w.props.appendTo,n="parent"===e?t.parentNode:Et(e,[t]);n.contains(m)||n.appendChild(m);w.popperInstance?(kt(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(H(),w.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=wt(w.props.duration,1,pt.duration[1]));var e=!w.state.isVisible&&!d,n=w.state.isDestroyed,i=!w.state.isEnabled&&!d;if(e||n||i)return;if(!1===w.props.onHide(w)&&!d)return;M(),m.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=E();Lt(o,t),Tt(o,"hidden"),function(t,e){S(t,(function(){!w.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&e()}))}(t,(function(){w.props.aria&&k().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,m.parentNode.removeChild(m),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),D(),delete t._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return t._tippy=w,m._tippy=w,I(),a.lazy||H(),a.showOnCreate&&j(),m.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),m.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function _(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===_()[0]}function E(){return[b,y,w.popperChildren.backdrop]}function k(){return w.props.triggerTarget||t}function A(){document.body.removeEventListener("mouseleave",q),document.removeEventListener("mousemove",f),$e=$e.filter((function(t){return t!==f}))}function L(t){if(!w.props.interactive||!m.contains(t.target)){if(k().contains(t.target)){if(ft.isTouch)return;if(w.state.isVisible&&Dt(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||M())}}function T(){document.addEventListener("mousedown",L,!0)}function M(){document.removeEventListener("mousedown",L,!0)}function S(t,e){function n(t){t.target===b&&(jt(b,"remove",n),e())}if(0===t)return e();jt(b,"remove",c),jt(b,"add",n),c=n}function O(t,e,n){void 0===n&&(n=!1),k().addEventListener(t,e,n),h.push({eventType:t,handler:e,options:n})}function I(){C()&&(O("touchstart",B,ht),O("touchend",F,ht)),Dt(w.props.trigger,"click")||O("click",(function(){ft.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(t){if("manual"!==t)switch(O(t,B),t){case"mouseenter":O("mouseleave",F);break;case"focus":O(lt?"focusout":"blur",P)}}))}function D(){h.forEach((function(t){var e=t.eventType,n=t.handler,i=t.options;k().removeEventListener(e,n,i)})),h=[]}function B(t){if(!u&&w.state.isEnabled&&!z(t))if(w.state.isVisible||(n=t.type,t instanceof MouseEvent&&$e.forEach((function(e){return e(t)}))),"click"===t.type&&!1!==w.props.hideOnClick&&w.state.isVisible)q(t);else{var e=_(),o=e[0],r=e[1];ft.isTouch&&"hold"===o&&r?i=setTimeout((function(){j(t)}),r):j(t)}}function N(e){(function(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null})(e.target,(function(e){return e===t||e===m}))||function(t,e,n,i){if(!t)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,l=e.top-r>("top"===t?a+s:a),c=r-e.bottom>("bottom"===t?a+s:a),d=e.left-o>("left"===t?a+s:a),p=o-e.right>("right"===t?a+s:a);return l||c||d||p}(qt(w.state.currentPlacement),m.getBoundingClientRect(),e,w.props)&&(A(),q(e))}function F(t){if(!z(t))return w.props.interactive?(document.body.addEventListener("mouseleave",q),document.addEventListener("mousemove",f),void $e.push(f)):void q(t)}function P(t){t.target===k()&&(w.props.interactive&&t.relatedTarget&&m.contains(t.relatedTarget)||q(t))}function z(t){var e="ontouchstart"in window,n=Dt(t.type,"touch"),i=C();return e&&ft.isTouch&&i&&!n||ft.isTouch&&!i&&n}function H(){var e=w.props,n=e.popperOptions,i=e.placement,o=w.popperChildren.arrow,r=_t(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function l(t){w.state.currentPlacement=t.placement,w.props.flip&&!w.props.flipOnUpdate&&(t.flipped&&(w.popperInstance.options.placement=t.placement),kt(w.popperInstance.modifiers,!1)),w.props.escapeWithReference&&function(t,e){t.filter((function(t){return"preventOverflow"===t.name}))[0].escapeWithReference=e}(w.popperInstance.modifiers,!0),b.setAttribute("data-placement",w.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var e=qt(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[Dt(["top","bottom"],qt(w.state.currentPlacement))?"top":"left"]=(Dt(["bottom","right"],qt(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:5,o="number"==typeof i,a=rt({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[e]=o?i+w.props.distance:(i[e]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(t){return"preventOverflow"===t.name}))[0].padding=a}var c=rt({eventsEnabled:!1,placement:s=w.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:rt({},n?n.modifiers:{},{preventOverflow:rt({boundariesElement:w.props.boundary,padding:5},r),arrow:rt({element:o,enabled:!!o},_t(n,"arrow")),flip:rt({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},_t(n,"flip")),offset:rt({offset:w.props.offset},_t(n,"offset"))}),onCreate:function(t){l(t),Ot(n&&n.onCreate,c.onCreate,[t]),Z()},onUpdate:function(t){l(t),Ot(n&&n.onUpdate,c.onUpdate,[t]),Z()}});w.popperInstance=new Qe(t,m,c)}function Z(){!p&&l&&(p=!0,function(t){t.offsetHeight}(m),l())}function j(t){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||H(),t&&w.props.onTrigger(w,t),w.props.wait)return w.props.wait(w,t);T();var e=wt(w.props.delay,0,pt.delay);e?i=setTimeout((function(){w.show()}),e):w.show()}function q(t){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,t),w.state.isVisible){w.state.isScheduledToShow=!1;var e=wt(w.props.delay,1,pt.delay);e?o=setTimeout((function(){w.state.isVisible&&w.hide()}),e):r=requestAnimationFrame((function(){w.hide()}))}else M()}}function en(t,e){document.addEventListener("touchstart",mt,rt({},ht,{capture:!0})),window.addEventListener("blur",bt);var n=rt({},pt,e),i=function(t){if(Ct(t))return[t];if(t instanceof NodeList)return It(t);if(Array.isArray(t))return t;try{return It(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce((function(t,e){var i=e&&tn(e,n);return i&&t.push(i),t}),[]);return Ct(t)?i[0]:i}en.version="5.0.0-alpha.2",en.defaultProps=pt,en.currentInput=ft,en.setDefaultProps=function(t){Object.keys(t).forEach((function(e){pt[e]=t[e]}))},en.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;It(document.querySelectorAll(".tippy-popper")).forEach((function(t){var e,o=t._tippy;if(o){var r=!1;n&&(r=(e=n)&&e._tippy&&!e.classList.contains("tippy-popper")?o.reference===n:t===n.popper),r||o.hide(i)}}))},at&&setTimeout((function(){It(document.querySelectorAll("[data-tippy]")).forEach((function(t){var e=t.getAttribute("data-tippy");e&&en(t,{content:e})}))}))
39
+ var Ke=1,$e=[];function tn(t,e){var n,i,o,r,a=Tt(t,e);if(!a.multiple&&t._tippy)return null;var s,l,c,d=!1,p=!1,u=!1,h=[],f=St(B,a.interactiveDebounce),v=Ke++,m=jt(v,a),g=Ft(m),b=g.tooltip,y=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:v,reference:t,popper:m,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(w.state.isDestroyed)return;I();var n=w.props,i=Tt(t,rt({},w.props,e,{ignoreAttributes:!0}));i.ignoreAttributes=xt(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,w.props=i,D(),A(),f=St(B,i.interactiveDebounce),Wt(m,n,i,w.state.isVisible),w.popperChildren=Ft(m),w.popperInstance&&(ut.some((function(t){return xt(e,t)&&e[t]!==n[t]}))?(w.popperInstance.destroy(),H(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(t){w.setProps({content:t})},show:function(e,n){void 0===e&&(e=wt(w.props.duration,0,pt.duration[1]));void 0===n&&(n=!0);var i=w.state.isVisible,o=w.state.isDestroyed,r=!w.state.isEnabled,a=ft.isTouch&&!w.props.touch;if(i||o||r||a)return;if(k().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;M(),m.style.visibility="visible",w.state.isVisible=!0;var s=E();Lt(n?s.concat(m):s,0),l=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(e/12)+"ms":"",w.props.sticky&&(Lt([m],lt?0:w.props.updateDuration),function t(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(t):Lt([m],0)}()),Lt([m],w.props.updateDuration),Lt(s,e),Mt(s,"visible"),function(t,e){S(t,e)}(e,(function(){w.props.aria&&k().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var e=w.props.appendTo,n="parent"===e?t.parentNode:Et(e,[t]);n.contains(m)||n.appendChild(m);w.popperInstance?(kt(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(H(),w.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=wt(w.props.duration,1,pt.duration[1]));var e=!w.state.isVisible&&!d,n=w.state.isDestroyed,i=!w.state.isEnabled&&!d;if(e||n||i)return;if(!1===w.props.onHide(w)&&!d)return;T(),m.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=E();Lt(o,t),Mt(o,"hidden"),function(t,e){S(t,(function(){!w.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&e()}))}(t,(function(){w.props.aria&&k().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,m.parentNode.removeChild(m),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),I(),delete t._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return t._tippy=w,m._tippy=w,D(),a.lazy||H(),a.showOnCreate&&Z(),m.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),m.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function _(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===_()[0]}function E(){return[b,y,w.popperChildren.backdrop]}function k(){return w.props.triggerTarget||t}function A(){document.body.removeEventListener("mouseleave",V),document.removeEventListener("mousemove",f),$e=$e.filter((function(t){return t!==f}))}function L(t){if(!w.props.interactive||!m.contains(t.target)){if(k().contains(t.target)){if(ft.isTouch)return;if(w.state.isVisible&&It(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||T())}}function M(){document.addEventListener("mousedown",L,!0)}function T(){document.removeEventListener("mousedown",L,!0)}function S(t,e){function n(t){t.target===b&&(Zt(b,"remove",n),e())}if(0===t)return e();Zt(b,"remove",c),Zt(b,"add",n),c=n}function O(t,e,n){void 0===n&&(n=!1),k().addEventListener(t,e,n),h.push({eventType:t,handler:e,options:n})}function D(){C()&&(O("touchstart",N,ht),O("touchend",F,ht)),It(w.props.trigger,"click")||O("click",(function(){ft.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(t){if("manual"!==t)switch(O(t,N),t){case"mouseenter":O("mouseleave",F);break;case"focus":O(lt?"focusout":"blur",P)}}))}function I(){h.forEach((function(t){var e=t.eventType,n=t.handler,i=t.options;k().removeEventListener(e,n,i)})),h=[]}function N(t){if(!u&&w.state.isEnabled&&!z(t))if(w.state.isVisible||(n=t.type,t instanceof MouseEvent&&$e.forEach((function(e){return e(t)}))),"click"===t.type&&!1!==w.props.hideOnClick&&w.state.isVisible)V(t);else{var e=_(),o=e[0],r=e[1];ft.isTouch&&"hold"===o&&r?i=setTimeout((function(){Z(t)}),r):Z(t)}}function B(e){(function(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null})(e.target,(function(e){return e===t||e===m}))||function(t,e,n,i){if(!t)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,l=e.top-r>("top"===t?a+s:a),c=r-e.bottom>("bottom"===t?a+s:a),d=e.left-o>("left"===t?a+s:a),p=o-e.right>("right"===t?a+s:a);return l||c||d||p}(Vt(w.state.currentPlacement),m.getBoundingClientRect(),e,w.props)&&(A(),V(e))}function F(t){if(!z(t))return w.props.interactive?(document.body.addEventListener("mouseleave",V),document.addEventListener("mousemove",f),void $e.push(f)):void V(t)}function P(t){t.target===k()&&(w.props.interactive&&t.relatedTarget&&m.contains(t.relatedTarget)||V(t))}function z(t){var e="ontouchstart"in window,n=It(t.type,"touch"),i=C();return e&&ft.isTouch&&i&&!n||ft.isTouch&&!i&&n}function H(){var e=w.props,n=e.popperOptions,i=e.placement,o=w.popperChildren.arrow,r=_t(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function l(t){w.state.currentPlacement=t.placement,w.props.flip&&!w.props.flipOnUpdate&&(t.flipped&&(w.popperInstance.options.placement=t.placement),kt(w.popperInstance.modifiers,!1)),w.props.escapeWithReference&&function(t,e){t.filter((function(t){return"preventOverflow"===t.name}))[0].escapeWithReference=e}(w.popperInstance.modifiers,!0),b.setAttribute("data-placement",w.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var e=Vt(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[It(["top","bottom"],Vt(w.state.currentPlacement))?"top":"left"]=(It(["bottom","right"],Vt(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:5,o="number"==typeof i,a=rt({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[e]=o?i+w.props.distance:(i[e]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(t){return"preventOverflow"===t.name}))[0].padding=a}var c=rt({eventsEnabled:!1,placement:s=w.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:rt({},n?n.modifiers:{},{preventOverflow:rt({boundariesElement:w.props.boundary,padding:5},r),arrow:rt({element:o,enabled:!!o},_t(n,"arrow")),flip:rt({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},_t(n,"flip")),offset:rt({offset:w.props.offset},_t(n,"offset"))}),onCreate:function(t){l(t),Ot(n&&n.onCreate,c.onCreate,[t]),q()},onUpdate:function(t){l(t),Ot(n&&n.onUpdate,c.onUpdate,[t]),q()}});w.popperInstance=new Qe(t,m,c)}function q(){!p&&l&&(p=!0,function(t){t.offsetHeight}(m),l())}function Z(t){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||H(),t&&w.props.onTrigger(w,t),w.props.wait)return w.props.wait(w,t);M();var e=wt(w.props.delay,0,pt.delay);e?i=setTimeout((function(){w.show()}),e):w.show()}function V(t){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,t),w.state.isVisible){w.state.isScheduledToShow=!1;var e=wt(w.props.delay,1,pt.delay);e?o=setTimeout((function(){w.state.isVisible&&w.hide()}),e):r=requestAnimationFrame((function(){w.hide()}))}else T()}}function en(t,e){document.addEventListener("touchstart",mt,rt({},ht,{capture:!0})),window.addEventListener("blur",bt);var n=rt({},pt,e),i=function(t){if(Ct(t))return[t];if(t instanceof NodeList)return Dt(t);if(Array.isArray(t))return t;try{return Dt(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce((function(t,e){var i=e&&tn(e,n);return i&&t.push(i),t}),[]);return Ct(t)?i[0]:i}en.version="5.0.0-alpha.2",en.defaultProps=pt,en.currentInput=ft,en.setDefaultProps=function(t){Object.keys(t).forEach((function(e){pt[e]=t[e]}))},en.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;Dt(document.querySelectorAll(".tippy-popper")).forEach((function(t){var e,o=t._tippy;if(o){var r=!1;n&&(r=(e=n)&&e._tippy&&!e.classList.contains("tippy-popper")?o.reference===n:t===n.popper),r||o.hide(i)}}))},at&&setTimeout((function(){Dt(document.querySelectorAll("[data-tippy]")).forEach((function(t){var e=t.getAttribute("data-tippy");e&&en(t,{content:e})}))}))
40
40
  /**!
41
41
  * tippy.js v5.0.0-alpha.2
42
42
  * (c) 2017-2019 atomiks
43
43
  * MIT License
44
- */;!function(t){if(at){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)}}(".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:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.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:-8px}.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:-8px}.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 nn=pn("shepherd"),on=pn("shepherd-has-title"),rn={computeStyle:{enabled:!0,fn:function(t){return t.styles=X({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:nn},an={positionFixed:!0,modifiers:{addShepherdClass:nn}};function sn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function cn(){if(ot(en))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=un.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function dn(){var t=this.options.attachTo||{},e=X({},t);if(it(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 pn(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function un(t){if(!t.element)return fn.call(this);var e=hn.call(this,t);return en(t.element,e)}function hn(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return X(e,this.options.tippyOptions),this.options.title&&X(an.modifiers,{addHasTitleClass:on}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&X(an,this.options.tippyOptions.popperOptions),e.popperOptions=an,e}function fn(){var t=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Y(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&&X(an.modifiers,{addHasTitleClass:on});var e=X({},an,t.popperOptions,{modifiers:X(rn,t.popperOptions.modifiers)});return t.popperOptions=e,en(document.body,t)}var vn=function(){function t(){R(this,t)}return U(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];ot(this.bindings)&&(this.bindings={}),ot(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(ot(this.bindings)||ot(this.bindings[t]))return!1;ot(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(!ot(this.bindings)&&this.bindings[t]){var n=ln(Array.prototype.slice.call(arguments));this.bindings[t].forEach((function(i,o){var r=i.ctx,a=i.handler,s=i.once,l=r||e;a.apply(l,n),s&&e.bindings[t].splice(o,1)}))}}}]),t}();function mn(t){var e=this;return function(n){if(e.isOpen()){var i=e.el&&n.target===e.el;(!ot(t)&&n.target.matches(t)||i)&&e.tour.next()}}}function gn(){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=mn.call(this,n);try{i=document.querySelector(n)}catch(t){}if(!ot(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 bn(t,e){var n=this;t.events=t.events||{},ot(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach((function(t){var i=tt(t,2),o=i[0],r=i[1];if(it(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 yn(t){var e=this;t.addEventListener("click",(function(t){t.preventDefault(),e.cancel()}))}function xn(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 wn=function(t,e){return t(e={exports:{}},e.exports),e.exports}((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||l,scrollIntoView:i.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?v.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"!==r(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"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):v.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;v.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"!==r(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?(v.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 l(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!==r(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===r(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function p(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function u(t){var e=d(t,"Y")&&p(t,"Y"),n=d(t,"X")&&p(t,"X");return e||n}function h(t){for(;t!==e.body&&!1===u(t);)t=t.parentNode||t.host;return t}function f(e){var n,i,o,r,s=(a()-e.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),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(f.bind(t,e))}function v(n,i,r){var s,c,d,p,u=a();n===e.body?(s=t,c=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=o.scroll):(s=n,c=n.scrollLeft,d=n.scrollTop,p=l),f({scrollable:s,method:p,startTime:u,startX:c,startY:d,x:i,y:r})}}}}));wn.polyfill;wn.polyfill();var _n,Cn=(_n=0,function(){return++_n}),En=function(t){function e(t,n){var i;return R(this,e),(i=$(this,J(e).call(this,t,n))).tour=t,xn.call(K(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=gn.bind(K(i)),i.bindButtonEvents=bn.bind(K(i)),i.bindCancelLink=yn.bind(K(i)),i.setupTooltip=cn.bind(K(i)),i.parseAttachTo=dn.bind(K(i)),$(i,K(i))}return G(e,t),U(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=sn('<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=sn('<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=sn('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),i=this.options.text;nt(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(it(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=tt(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=sn('<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),ot(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(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),et(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(t){}}},{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(){ot(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;nt(this.options.scrollToHandler)?this.options.scrollToHandler(e):et(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(Cn()),n&&Object.entries(n).forEach((function(e){var n=tt(e,2),i=n[0],o=n[1];t.on(i,o,t)}))}},{key:"show",value:function(){var t=this;if(nt(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!ot(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}(vn),kn="http://www.w3.org/2000/svg",An="shepherdModalOverlayContainer",Ln="shepherdModalMask",Tn="shepherdModalMaskRect",Mn="shepherdModalMaskOpening",Sn="shepherd-modal-is-visible",On="shepherd-modal-target";function In(){var t,e=((t=document.createElementNS(kn,"svg")).setAttributeNS(null,"id",An),t),n=document.createElementNS(kn,"defs"),i=function(){var t=document.createElementNS(kn,"mask");return Fn(t,{height:"100%",id:Ln,width:"100%",x:"0",y:"0"}),t}(),o=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{fill:"#FFFFFF",height:"100%",id:Tn,width:"100%",x:"0",y:"0"}),t}(),r=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{fill:"#000000",id:Mn}),t}(),a=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(Ln,")")),t}();return i.appendChild(o),i.appendChild(r),n.appendChild(i),e.appendChild(n),e.appendChild(a),e}function Dn(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,l=i.left,c=i.top;Fn(e,{x:(o||l)-n,y:(r||c)-n,width:a+2*n,height:s+2*n})}}function Bn(t){t.preventDefault()}function Nn(t){t.stopPropagation()}function Fn(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function Pn(t){var e=t.options.attachTo;if(!e)return null;var n=V(e);return"string"===n?function(t){var e=tt(t.split(" "),1)[0];return document.querySelector(e)}(e):"object"===n?function(t){var e=t.element;if(e instanceof HTMLElement)return e;if(e instanceof SVGElement)return e;try{return document.querySelector(e)}catch(t){}return null}(e):null}function zn(){"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(An));window.addEventListener("touchmove",Bn,{passive:!1}),t&&t.addEventListener("touchmove",Nn,!1)}var Hn=function(){function t(e){return R(this,t),this.createModalOverlay(),this.options=e,this}return U(t,[{key:"cleanup",value:function(){try{var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(Sn)}catch(t){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||In(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(Mn)),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(Sn),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(Sn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e,n,i,o,r,a=this._modalOverlayOpening,s=Pn(t),l=t.options.modalOverlayOpeningPadding;s?(Dn(s,a,l),this._onScreenChange=(n=Dn.bind(this,s,a,l),i=0,function(){var t=this,e=arguments,a=function(){r=null,o||n.apply(t,e)},s=o&&!r;clearTimeout(r),r=setTimeout(a,i),s&&n.apply(t,e)}),zn.call(this)):(e=this._modalOverlayOpening)&&e instanceof SVGElement&&Fn(e,{height:"0",x:"0",y:"0",width:"0"})}}]),t}(),Zn=!1;if("undefined"!=typeof window){var jn={get passive(){Zn=!0}};window.addEventListener("testPassive",null,jn),window.removeEventListener("testPassive",null,jn)}var qn,Vn,Rn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Wn=[],Un=!1,Yn=-1,Xn=function(t){return Wn.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},Gn=function(t){var e=t||window.event;return!!Xn(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},Jn=function(t,e){if(Rn){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!Wn.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};Wn=[].concat(p(Wn),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(Yn=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-Yn;!Xn(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?Gn(t):t.stopPropagation())}(e,t)},Un||(document.addEventListener("touchmove",Gn,Zn?{passive:!1}:void 0),Un=!0)}}else{!function(t){setTimeout((function(){if(void 0===Vn){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(Vn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===qn&&(qn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(e);var i={targetElement:t,options:e||{}};Wn=[].concat(p(Wn),[i])}},Qn=function(){Rn?(Wn.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),Un&&(document.removeEventListener("touchmove",Gn,Zn?{passive:!1}:void 0),Un=!1),Wn=[],Yn=-1):(setTimeout((function(){void 0!==Vn&&(document.body.style.paddingRight=Vn,Vn=void 0),void 0!==qn&&(document.body.style.overflow=qn,qn=void 0)})),Wn=[])},Kn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function $n(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",Bn,{passive:!1})}var ti,ei=function(){var t=0;return function(){return++t}}(),ni=new vn,ii=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R(this,e),t=$(this,J(e).call(this,n)),xn.call(K(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=K(t),ni.trigger(n,e)}))})),t.modal=new Hn(n),t._setTooltipDefaults(),t._setTourID(),$(t,K(t))}return G(e,t),U(e,[{key:"addStep",value:function(t,e){var n,i;return ot(e)?i=t:(n=t,i=e),i instanceof En?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){var e;Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),$n.call(this),(e=this.tourObject)&&e.steps.forEach((function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=Pn(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})),this.trigger(t),ni.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Qn(),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 ni.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(it(e)||"number"==typeof e)&&(t.id=e.toString()),t=X({},this.options.defaultStepOptions,t),new En(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=it(t)?this.getById(t):this.steps[t];if(n){this._updateStateBeforeShow();var i=nt(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&&Jn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),ni.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e,n,i=Pn(t);i&&(e=i,(n=document.querySelector("".concat(On)))&&n.classList.remove(On),e.classList.add(On),t.options.highlightClass&&i.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(i.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(){en.setDefaultProps(Kn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=ei();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}(vn);X(ni,{Tour:ii,Step:En,Evented:vn});var oi=function(t){return 50===t?10:16},ri=function(t,e){switch(t.toLowerCase()){case"top":return"translateY(".concat(oi(e)-26,"px)");case"right":return"translateX(".concat(oi(e),"px)");case"bottom":return"translateY(".concat(oi(e),"px)");case"left":return"translateX(".concat(oi(e)-26,"px)")}},ai=function(t,e,n,i,o){var r,a=t.animation,s=void 0===a?{}:a,l=t.bg_color,c=void 0===l?"black":l,d=t.border,p=void 0===d?{}:d,u=t.buttons_config,h=void 0===u?[]:u,f=t.button_position,v=void 0===f?"right":f,m=t.button_direction,g=void 0===m?"horizontal":m,b=t.corners,y=void 0===b?{}:b,x=t.shadow,w=void 0===x?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":x,_=t.opacity,C=void 0===_?1:_,E=t.dismiss_outside_touch,k=void 0!==E&&E,A=t.escapeWithReference,T=void 0!==A&&A,O=t.dismiss_target_touch,D=void 0===O||O,B=t.position,N=void 0===B?"TOP":B,F=t.text_config,z=void 0===F?{}:F,H=t.title_config,Z=void 0===H?{}:H,j=t.view_id,q=t.show_shadow,V=void 0!==q&&q,R=t.show_close_icon,W=void 0!==R&&R,U=t.dim_background_color,Y=void 0===U?"#0a0a0a":U,X=t.dim_background_opacity,G=void 0===X?.5:X,J=t.layout_type,Q=void 0===J?"default":J,K=t.pb_color,$=void 0===K?"orange":K,tt=t.index,et=void 0===tt?0:tt,nt=t.total,it=void 0===nt?1:nt,ot=(null==z?void 0:z.alignment)||"center",rt=(null==Z?void 0:Z.alignment)||"center",at=e.configId,st=e.configName,lt=S(h,ti,at,st),ct=lt.buttons_array,dt=lt.buttons_css,pt={color:z.color,fontSize:z.size,fontFamily:z.font_family,fontStyle:z.style};if(z.margin_config&&Object.keys(z.margin_config).length>0){var ut=z.margin_config;pt.margin="".concat(ut.top,"px ").concat(ut.right,"px ").concat(ut.bottom,"px ").concat(ut.left,"px")}var ht=z.style;"bold"===ht&&(pt.fontWeight=ht);var ft,vt={color:Z.color,fontSize:Z.size,fontFamily:Z.font_family,fontStyle:Z.style};if(Z.margin_config&&Object.keys(Z.margin_config).length>0){var mt=Z.margin_config;vt.margin="".concat(mt.top,"px ").concat(mt.right,"px ").concat(mt.bottom,"px ").concat(mt.left,"px")}switch("bold"===(ht=Z.style)&&(pt.fontWeight=ht),Q){case"with_progress":ft='\n<div>\n <div style="height: 6px;background: '.concat($,";width: ").concat((et+1)/it*100,"%;border-radius: ").concat(y.enabled?y.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(Z?"padding: 10px 10px 0 10px":"",'">\n ').concat(Z?'<h3 class="shepherd-title" id="apxor-step-'.concat(et,'-label" style="padding: 0 !important;padding-right: 0.7em;text-align:').concat(rt,';">').concat(P(null==Z?void 0:Z.text,null==Z?void 0:Z.segments,null==Z?void 0:Z.quote),"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px;text-align:').concat(ot,';">').concat(P(null==z?void 0:z.text,null==z?void 0:z.segments,null==z?void 0:z.quote),"</p>\n</div>\n "),ft=(new DOMParser).parseFromString(ft,"text/html").body.children[0];break;default:ft=(null==z||null===(r=z.segments)||void 0===r?void 0:r.length)>0?P(null==z?void 0:z.text,null==z?void 0:z.segments,null==z?void 0:z.quote):[z&&z.text?z.text:"Tap here"]}var gt={"border-radius":y.enabled?y.width:0,background:c,"border-color":p.color,"border-width":p.width},bt=null;try{bt=document.querySelector("#"+j)}catch(t){}if(!bt)try{bt=document.querySelector(j)}catch(t){}if(bt||(bt=L(j)),bt){var yt=document.createElement("span");yt.setAttribute("id","apxor-style-"+at+"-step-"+et);var xt=document.createElement("style");xt.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=G?G:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=Y?Y:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\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.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\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.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(W?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n text-align:').concat(rt,";\n color: ").concat(vt.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(vt.fontSize,"px;font-family: ").concat(vt.fontFamily,";\n font-weight: ").concat("bold"!==vt.fontStyle?"normal":vt.fontStyle,";font-style: ").concat("italic"===vt.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===Q?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n text-align:').concat(ot,";\n line-height: 1em;").concat("default"===Q?"padding:14px;padding-top:4px":"","\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);color: ").concat(pt.color,";\n opacity: 0.75;text-decoration: none\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.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(pt.fontSize,"px;font-family: ").concat(pt.fontFamily,"; \n font-weight: ").concat("bold"!==pt.fontStyle?"normal":pt.fontStyle,";\n font-style: ").concat("italic"===pt.fontStyle?"italic":"unset",";\n color: ").concat(pt.color,";line-height: ").concat("default"===Q?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(M(dt,v,g,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(ri(N,0),"; }\n 50% { transform: ").concat(ri(N,50),"; }\n 100% { transform: ").concat(ri(N,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(ri(N,0),"; }\n 50% { transform: ").concat(ri(N,50),"; }\n 100% { transform: ").concat(ri(N,100),"; }\n}\n.tippy-tooltip.apxor-").concat(at,"-step-").concat(et,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(V?w:"none",";color: ").concat(pt.color,";\n opacity: ").concat(C,";border-radius: ").concat(gt["border-radius"]+"px",";\n background-color: ").concat(gt.background,";").concat(function(t){switch(t.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(N),";\n}\n.apxor-").concat(at,"-step-").concat(et,"-theme .tippy-roundarrow {\n fill: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(gt.background,";\n}\n "),yt.appendChild(xt),bt.parentNode.insertBefore(yt,bt);var wt=function(t){return function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(o)try{ti.complete(),i&&t.logActionEvent("InlineTargetViewClicked",e,n)}catch(e){t.isShowingAction=!1,t.currentAction=null,console.error(e)}}(n,at,st,!0,D)},_t=function(){var t;try{var e;null===(e=ti)||void 0===e||e.complete()}catch(t){console.error(t)}Et.disconnect(),kt.disconnect();try{var n,i=document.getElementById("apxor-style-"+at+"-step-"+et);null==i||null===(n=i.parentNode)||void 0===n||n.removeChild(i)}catch(t){}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(t){}o&&o(null===(t=ti)||void 0===t?void 0:t._isCancelled),bt.removeEventListener("click",wt)},Ct=!1,Et=new MutationObserver((function(){if(!document.body.contains(bt)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(et,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),_t()}})),kt=new IntersectionObserver((function(){var t=I(bt);if(!t&&Ct){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(et,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),_t()}t&&(Ct=!0)})),At=P(null==Z?void 0:Z.text,null==Z?void 0:Z.segments,null==Z?void 0:Z.quote);ti.addStep("apxor-step-"+et,{title:"default"===Q?""===At?null:At.outerHTML:null,text:ft,classes:"apxor-".concat(at,"-step-").concat(et,"-theme"),attachTo:{element:bt,on:N.toLowerCase()},showCancelLink:W,buttons:ct,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:k,escapeWithReference:T,theme:"apxor-".concat(at,"-step-").concat(et),onShow:function(){i&&i(),bt.addEventListener("click",wt),Et.observe(document.body,{childList:!0,subtree:!0}),kt.observe(bt)},onHidden:_t}})}else console.warn("Element not found with id or path")},si=function(t,e,n,i,o,r,a){var s,l,c=Array.isArray(e)&&e.length>0,d=t.delay,p=t.dim_background,u=t.view_id,h=t.find_interval,f=void 0===h?0:h,v=t.max_find_interval,m=void 0===v?1e4:v,g=t.scrollToView,b=void 0!==g&&g;"Script"===(null===(s=t.title_config)||void 0===s?void 0:s.text)&&(t.title_config.isDynamicText?B(t.title_config):N(t.title_config)),"Script"===(null===(l=t.text_config)||void 0===l?void 0:l.text)&&(t.text_config.isDynamicText?B(t.text_config):N(t.text_config));var y=!1;b&&(y={behavior:"smooth",block:"center"}),ti=new ni.Tour({defaultStepOptions:{scrollTo:y},useModalOverlay:c||p});var x=function(){var t=document.getElementById(u);if(!t)try{t=document.querySelector(u)}catch(t){}return t||(t=L(u)),t},w=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(o.currentAction=null)}catch(t){return o.isShowingAction=!1,void(o.currentAction=null)}if(c?e.forEach((function(t,e){var n=t.ui;ai(n,i,o,r,a)})):ai(t,i,o,r,a),o.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{ti.start(),o.isShowingAction=!0}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}};return setTimeout((function(){var t=x();t?w(t):(console.warn("Element with id:".concat(u," not found.")),f?(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval((function(){var i=x();i?(clearInterval(n),w(i)):new Date-e>m&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")),o.currentAction=null)}),f)}(u)):o.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{ti.complete()}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}}),d+n.duration),ti.complete},li=H(10);function ci(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 di(t){var e=t.opacity,n=t.type,i=document.createElement("div");i.setAttribute("id",li+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="99%";var o="";return o="circle"===n?function(t){var e=t.bg_color,n=t.opacity,i=t.innerRadius,o=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,l=t.outerCircleCenterY;return ci('\n <rect\n x="'.concat(s-a,'"\n y="').concat(l-a<0?0:l-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(l,'" \n r="').concat(a,'" \n fill="').concat(e,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}(t):function(t){var e=t.bg_color,n=t.opacity,i=t.targetElementLeft,o=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return ci('\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 '))}(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 pi(t,e,n,i,o){var r,a,s=t.bg_color,l=t.buttons_config,c=void 0===l?[]:l,d=t.button_position,p=t.button_direction,u=void 0===p?"horizontal":p,h=t.coach_mark_details,f=h.has_ripple,v=void 0!==f&&f,m=h.type,g=void 0===m?"circle":m,b=t.delay,y=t.dismiss_outside_touch,x=void 0!==y&&y,w=t.opacity,_=void 0===w?.8:w,C=t.position,E=void 0===C?"TOP":C,k=t.text_config,T=t.title_config,O=void 0===T?null:T,D=t.view_id,F=t.scroll_to_view,P=void 0!==F&&F,Z=e.configId,j=e.configName;"Script"===(null===(r=t.title_config)||void 0===r?void 0:r.text)&&(t.title_config.isDynamicText?B(t.title_config):N(t.title_config)),"Script"===(null===(a=t.text_config)||void 0===a?void 0:a.text)&&(t.text_config.isDynamicText?B(t.text_config):N(t.text_config));var q=document.getElementById(D);if(!q)try{q=document.querySelector(D)}catch(t){}if(q||(q=L(D)),q)if(li=H(10),P||I(q)){var V=!1,R=new MutationObserver((function(){document.body.contains(q)||nt()})),W=new IntersectionObserver((function(){var t=I(q);!t&&V&&nt(),t&&(V=!0)})),U=function(t){var e=t.getBoundingClientRect(),n=e.left+window.scrollX,i=e.top+window.scrollY;return{left:n,top:i,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY,x:A(e.x)?e.x+window.scrollX:n,y:A(e.y)?e.y+window.scrollY:i,width:e.width,height:e.height}}(q),Y=U.left,X=void 0===Y?0:Y,G=U.top,J=void 0===G?0:G,Q=U.width,K=void 0===Q?0:Q,$=U.height,tt=void 0===$?0:$,et=U.left<window.innerWidth/2;if(0!==tt&&0!==K){var nt=function(){R.disconnect(),W.disconnect(),xt.parentNode.removeChild(xt),it.parentNode.removeChild(it),lt.parentNode.removeChild(lt),o&&o(),wt&&clearTimeout(wt)},it=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,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,l=null;if(!e&&t?l=z(t,li):e&&t&&((l=document.createElement("div")).style.display="inline-flex",l.style.flexDirection="column",l.style.visibility="hidden",l.style.textAlign=(null==t?void 0:t.alignment)||"center",l.style.lineHeight="26px",l.style.letterSpacing="0.01em",l.appendChild(z(e,li)),l.appendChild(z(t,li))),n&&n.length>0){var c=document.createElement("footer");c.className="shepherd-footer",c.style.zIndex=99999,c.style.margin="8px",c.style.padding="0";var d=function(){s&&s()},p=S(n,{next:d,complete:d,cancel:d},r,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=M(h,i,o),c.appendChild(f),u.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=(t.segments,document.createElement("button"));o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},c.appendChild(o)}));var v=document.createElement("div");v.style.display="inline-flex",v.style.flexDirection="column",v.style.visibility="hidden",v.appendChild(l),v.appendChild(c),l=v}return l.style.position="absolute",document.body.appendChild(l),l}(k,O,c,d,u,Z,j,nt),ot=it.offsetWidth,rt=it.offsetHeight,at=0,st=0;k&&k.margin_config&&(at=Number(k.margin_config.left)||0,st=Number(k.margin_config.right)||0);var lt=function(t,e,n,i,o,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,l=n-(a-t)/2,c=i-(a-e)/2;"circle"!=o&&(a=t,s=e,l=n,c=i);var d=document.createElement("div");return d.setAttribute("id",li+"-ripple-div"),r&&(d.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}\n.ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;left: -5px;\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>")}(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(l,"px"),d.style.top="".concat(c,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}(K,tt,X,J,g,v),ct=X+K/2,dt=J+tt/2,pt=Math.sqrt(Math.pow(K,2)+Math.pow(tt,2))/2,ut=pt+Math.max(ot,K)/2+10,ht=-1,ft=-1,vt=-1,mt=-1,gt=dt-pt,bt=dt+pt;switch(E){case"TOP":ft=(vt=ct-ot/2)<0?5:vt,ht="circle"===g?dt-pt-rt-25:J-rt-25,mt=bt-Math.abs(bt-ht)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":ft=(vt=ct-ot/2)<0?5:vt,mt=gt+((ht="circle"===g?dt+pt+25:J+tt+25)+rt-gt)/2}if(-1!==ft&&-1!==ht&&-1!==mt){!et&&ft+ot>window.innerWidth&&(ft=window.innerWidth-ot-at-st-10),it.style.left="".concat(ft,"px"),it.style.top="".concat(ht,"px");var yt=((vt=Math.min(X,ft))+Math.max(X+K,ft+ot))/2;(yt=Math.min(yt,document.scrollingElement.scrollWidth))<0&&(yt=0),(mt=Math.min(mt,document.scrollingElement.scrollHeight))<0&&(mt=0);var xt=di({bg_color:s,opacity:_,innerRadius:pt,innerCenterX:ct,innerCenterY:dt,outerRadius:ut,outerCircleCenterX:yt,outerCircleCenterY:mt,targetElementLeft:X,targetElementTop:J,targetElementWidth:K,targetElementHeight:tt,type:g});xt.style.visibility="hidden",lt.style.visibility="hidden",it.style.visibility="hidden";var wt=null,_t=function(t){var e=!t,n=q.getBoundingClientRect();t&&t.clientX>=n.left&&t.clientX<=n.left+n.width&&t.clientY>=n.top&&t.clientY<=n.top+n.height&&(e=!0),(x||e)&&nt()};return n&&!0===n.auto_dismiss&&(wt=setTimeout((function(){return _t()}),b+n.duration)),xt.style.visibility="visible",lt.style.visibility="visible",it.style.visibility="visible",it.childElementCount>0&&(it.children[0].style.visibility="visible"),x&&xt.addEventListener("click",_t),lt.addEventListener("click",_t),P&&("TOP"===E?window.scrollTo({top:mt-ut,behavior:"smooth"}):"BOTTOM"===E&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,mt+ut),behavior:"smooth"})),R.observe(document.body,{childList:!0,subtree:!0}),W.observe(q),i&&i(),_t}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",D)}else console.warn("Element ",D," not in viewport. Can't show");else console.warn("Element not found with id or path: ",D)}var ui=['<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9046C0.617188 4.88216 5.49907 3.24249e-05 11.5221 3.24249e-05C17.5439 3.24249e-05 22.4257 4.88216 22.4257 10.9046C22.4257 16.9269 17.5439 21.809 11.5221 21.809C5.49907 21.809 0.617188 16.9269 0.617188 10.9046Z" fill="#EA8F4D"/>\n <path d="M8.30879 8.87557C8.30879 9.62346 7.94802 10.2299 7.50409 10.2299C7.06145 10.2299 6.70068 9.62346 6.70068 8.87557C6.70068 8.12768 7.06145 7.52116 7.50409 7.52116C7.94802 7.52116 8.30879 8.12768 8.30879 8.87557Z" fill="black"/>\n <path d="M16.3427 8.87557C16.3427 9.62346 15.9832 10.2299 15.5393 10.2299C15.0953 10.2299 14.7358 9.62346 14.7358 8.87557C14.7358 8.12768 15.0953 7.52116 15.5393 7.52116C15.9832 7.52116 16.3427 8.12768 16.3427 8.87557Z" fill="black"/>\n <path d="M7.61719 15.4999C8.95052 13.0405 13.1172 11.9999 15.6172 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9046C0.425781 4.88216 5.30767 3.24249e-05 11.3307 3.24249e-05C17.3524 3.24249e-05 22.2343 4.88216 22.2343 10.9046C22.2343 16.9269 17.3524 21.809 11.3307 21.809C5.30767 21.809 0.425781 16.9269 0.425781 10.9046Z" fill="#F1B052"/>\n <path d="M8.11738 8.87557C8.11738 9.62346 7.75661 10.2299 7.31269 10.2299C6.87004 10.2299 6.50928 9.62346 6.50928 8.87557C6.50928 8.12768 6.87004 7.52116 7.31269 7.52116C7.75661 7.52116 8.11738 8.12768 8.11738 8.87557Z" fill="black"/>\n <path d="M16.1513 8.87557C16.1513 9.62346 15.7918 10.2299 15.3479 10.2299C14.9039 10.2299 14.5444 9.62346 14.5444 8.87557C14.5444 8.12768 14.9039 7.52116 15.3479 7.52116C15.7918 7.52116 16.1513 8.12768 16.1513 8.87557Z" fill="black"/>\n <path d="M8.42578 15.5002C9.92578 14.0001 12.4258 14.0001 13.9258 15.5001" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.20353e-05 10.9049 3.20353e-05C16.9267 3.20353e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#F8C94F"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9046C0.0429688 4.88216 4.92485 3.24249e-05 10.9479 3.24249e-05C16.9696 3.24249e-05 21.8515 4.88216 21.8515 10.9046C21.8515 16.9269 16.9696 21.809 10.9479 21.809C4.92485 21.809 0.0429688 16.9269 0.0429688 10.9046Z" fill="#F6DE4F"/>\n <path d="M7.73457 8.87557C7.73457 9.62346 7.3738 10.2299 6.92987 10.2299C6.48723 10.2299 6.12646 9.62346 6.12646 8.87557C6.12646 8.12768 6.48723 7.52116 6.92987 7.52116C7.3738 7.52116 7.73457 8.12768 7.73457 8.87557Z" fill="black"/>\n <path d="M15.7685 8.87557C15.7685 9.62346 15.409 10.2299 14.965 10.2299C14.5211 10.2299 14.1616 9.62346 14.1616 8.87557C14.1616 8.12768 14.5211 7.52116 14.965 7.52116C15.409 7.52116 15.7685 8.12768 15.7685 8.87557Z" fill="black"/>\n <path d="M13.543 14.3751C12.043 15.8751 9.54297 15.8751 8.04297 14.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9046C0.851562 4.88216 5.73345 3.24249e-05 11.7565 3.24249e-05C17.7782 3.24249e-05 22.6601 4.88216 22.6601 10.9046C22.6601 16.9269 17.7782 21.809 11.7565 21.809C5.73345 21.809 0.851562 16.9269 0.851562 10.9046Z" fill="#D7D55A"/>\n <path d="M8.54316 8.87557C8.54316 9.62346 8.18239 10.2299 7.73847 10.2299C7.29582 10.2299 6.93506 9.62346 6.93506 8.87557C6.93506 8.12768 7.29582 7.52116 7.73847 7.52116C8.18239 7.52116 8.54316 8.12768 8.54316 8.87557Z" fill="black"/>\n <path d="M16.577 8.87557C16.577 9.62346 16.2176 10.2299 15.7736 10.2299C15.3297 10.2299 14.9702 9.62346 14.9702 8.87557C14.9702 8.12768 15.3297 7.52116 15.7736 7.52116C16.2176 7.52116 16.577 8.12768 16.577 8.87557Z" fill="black"/>\n <path d="M15.3516 14.3749C13.8516 17.0001 9.85156 17.0002 7.85156 14.375" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9046C0.660156 4.88216 5.54204 3.24249e-05 11.5651 3.24249e-05C17.5868 3.24249e-05 22.4687 4.88216 22.4687 10.9046C22.4687 16.9269 17.5868 21.809 11.5651 21.809C5.54204 21.809 0.660156 16.9269 0.660156 10.9046Z" fill="#B7CF6A"/>\n <path d="M8.35176 8.87557C8.35176 9.62346 7.99099 10.2299 7.54706 10.2299C7.10442 10.2299 6.74365 9.62346 6.74365 8.87557C6.74365 8.12768 7.10442 7.52116 7.54706 7.52116C7.99099 7.52116 8.35176 8.12768 8.35176 8.87557Z" fill="black"/>\n <path d="M16.3856 8.87557C16.3856 9.62346 16.0262 10.2299 15.5822 10.2299C15.1383 10.2299 14.7788 9.62346 14.7788 8.87557C14.7788 8.12768 15.1383 7.52116 15.5822 7.52116C16.0262 7.52116 16.3856 8.12768 16.3856 8.87557Z" fill="black"/>\n <path d="M15.1602 13.375C14.6602 17.5002 8.16016 17.5003 7.66016 13.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 26 27" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g filter="url(#filter0_d_5652_8965)">\n <path d="M2.23438 12.9046C2.23438 6.88216 7.11626 2.00003 13.1393 2.00003C19.161 2.00003 24.0429 6.88216 24.0429 12.9046C24.0429 18.9269 19.161 23.809 13.1393 23.809C7.11626 23.809 2.23438 18.9269 2.23438 12.9046Z" fill="#7BB65C"/>\n </g>\n <path d="M16.7344 15.375C16.2344 19.5002 9.73438 19.5003 9.23438 15.3751L16.7344 15.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n <path d="M11.636 10.1074L11.6368 10.0965C11.6368 9.41374 11.1424 8.78855 10.3998 8.78855C9.80994 8.78855 9.46817 9.21257 9.35106 9.60952C9.23482 9.21257 8.89217 8.78855 8.3023 8.78855C7.55975 8.78855 7.06616 9.41374 7.06616 10.0965V10.1074C7.06269 10.256 7.06616 11.7676 9.35019 12.9997V13L9.35106 12.9998V13L9.35193 12.9998V13V12.9997C11.6368 11.7676 11.6403 10.256 11.636 10.1074Z" fill="black"/>\n <path d="M19.3357 10.1074V10.0965C19.3357 9.41374 18.8421 8.78855 18.0995 8.78855C17.5097 8.78855 17.1679 9.21257 17.0508 9.60952C16.9345 9.21257 16.5919 8.78855 16.002 8.78855C15.2595 8.78855 14.7659 9.41374 14.7659 10.0965V10.1074C14.7624 10.256 14.7659 11.7676 17.0499 12.9997V13L17.0508 12.9998V13L17.0516 12.9998V13V12.9997C19.3365 11.7676 19.34 10.256 19.3357 10.1074Z" fill="black"/>\n <defs>\n <filter id="filter0_d_5652_8965" x="0.34469" y="0.582736" width="25.588" height="25.5883" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n <feFlood flood-opacity="0" result="BackgroundImageFix"/>\n <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n <feMorphology radius="0.472421" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_5652_8965"/>\n <feOffset dy="0.472421"/>\n <feGaussianBlur stdDeviation="0.708632"/>\n <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0"/>\n <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5652_8965"/>\n <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5652_8965" result="shape"/>\n </filter>\n </defs>\n </svg>'],hi=['<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n <path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n <path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055Z" fill="#646A6F"/>\n <path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168Z" fill="#646A6F"/>\n <path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000334176 11.7135 -0.000334176C17.7353 -0.000334176 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n <path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n <path d="M7.80859 16.4997C8.80859 12.4996 13.8086 10.4996 15.8086 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000334176 11.5221 -0.000334176C17.5439 -0.000334176 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n <path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n <path d="M7.61719 15.4995C8.95052 13.0401 13.1172 11.9996 15.6172 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n <path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n <path d="M8.42578 15.5001C9.92578 14 12.4258 14 13.9258 15.5" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n <path d="M7.73438 15.5003C9.73438 15.5 11.7344 15.4998 14.7344 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9042C0.0429688 4.8818 4.92485 -0.000333786 10.9479 -0.000333786C16.9696 -0.000333786 21.8515 4.8818 21.8515 10.9042C21.8515 16.9266 16.9696 21.8086 10.9479 21.8086C4.92485 21.8086 0.0429688 16.9266 0.0429688 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.73506 8.87521C7.73506 9.6231 7.37429 10.2295 6.93036 10.2295C6.48772 10.2295 6.12695 9.6231 6.12695 8.87521C6.12695 8.12732 6.48772 7.52079 6.93036 7.52079C7.37429 7.52079 7.73506 8.12732 7.73506 8.87521Z" fill="#646A6F"/>\n <path d="M15.7689 8.87521C15.7689 9.6231 15.4095 10.2295 14.9655 10.2295C14.5216 10.2295 14.1621 9.6231 14.1621 8.87521C14.1621 8.12732 14.5216 7.52079 14.9655 7.52079C15.4095 7.52079 15.7689 8.12732 15.7689 8.87521Z" fill="#646A6F"/>\n <path d="M13.543 14.3749C12.043 15.875 9.54297 15.875 8.04297 14.375" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9042C0.851562 4.8818 5.73345 -0.000333786 11.7565 -0.000333786C17.7782 -0.000333786 22.6601 4.8818 22.6601 10.9042C22.6601 16.9266 17.7782 21.8086 11.7565 21.8086C5.73345 21.8086 0.851562 16.9266 0.851562 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.54365 8.87521C8.54365 9.6231 8.18288 10.2295 7.73896 10.2295C7.29631 10.2295 6.93555 9.6231 6.93555 8.87521C6.93555 8.12732 7.29631 7.52079 7.73896 7.52079C8.18288 7.52079 8.54365 8.12732 8.54365 8.87521Z" fill="#646A6F"/>\n <path d="M16.5775 8.87521C16.5775 9.6231 16.218 10.2295 15.7741 10.2295C15.3302 10.2295 14.9707 9.6231 14.9707 8.87521C14.9707 8.12732 15.3302 7.52079 15.7741 7.52079C16.218 7.52079 16.5775 8.12732 16.5775 8.87521Z" fill="#646A6F"/>\n <path d="M15.3516 14.3748C13.8516 17 9.85156 17 7.85156 14.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9042C0.660156 4.8818 5.54204 -0.000333786 11.5651 -0.000333786C17.5868 -0.000333786 22.4687 4.8818 22.4687 10.9042C22.4687 16.9266 17.5868 21.8086 11.5651 21.8086C5.54204 21.8086 0.660156 16.9266 0.660156 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.35225 8.87521C8.35225 9.6231 7.99147 10.2295 7.54755 10.2295C7.10491 10.2295 6.74414 9.6231 6.74414 8.87521C6.74414 8.12732 7.10491 7.52079 7.54755 7.52079C7.99147 7.52079 8.35225 8.12732 8.35225 8.87521Z" fill="#646A6F"/>\n <path d="M16.3861 8.87521C16.3861 9.6231 16.0266 10.2295 15.5827 10.2295C15.1388 10.2295 14.7793 9.6231 14.7793 8.87521C14.7793 8.12732 15.1388 7.52079 15.5827 7.52079C16.0266 7.52079 16.3861 8.12732 16.3861 8.87521Z" fill="#646A6F"/>\n <path d="M15.1602 13.3748C14.6602 17.5 8.16016 17.5 7.66016 13.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9042C0.46875 4.8818 5.35063 -0.000333786 11.3737 -0.000333786C17.3954 -0.000333786 22.2773 4.8818 22.2773 10.9042C22.2773 16.9266 17.3954 21.8086 11.3737 21.8086C5.35063 21.8086 0.46875 16.9266 0.46875 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.16084 8.87521C8.16084 9.6231 7.80007 10.2295 7.35614 10.2295C6.9135 10.2295 6.55273 9.6231 6.55273 8.87521C6.55273 8.12732 6.9135 7.52079 7.35614 7.52079C7.80007 7.52079 8.16084 8.12732 8.16084 8.87521Z" fill="#646A6F"/>\n <path d="M16.1947 8.87521C16.1947 9.6231 15.8352 10.2295 15.3913 10.2295C14.9474 10.2295 14.5879 9.6231 14.5879 8.87521C14.5879 8.12732 14.9474 7.52079 15.3913 7.52079C15.8352 7.52079 16.1947 8.12732 16.1947 8.87521Z" fill="#646A6F"/>\n <path d="M14.9688 13.3748C14.4688 17.5 7.96875 17.5 7.46875 13.3749L14.9688 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="40" height="40" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],fi=['<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n<path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n<path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n<path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055" fill="#646A6F"/>\n<path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168" fill="#646A6F"/>\n<path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000333786 11.7135 -0.000333786C17.7353 -0.000333786 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n<path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n<path d="M7.80859 15.4995C9.14193 13.0401 13.3086 11.9996 15.8086 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000333786 11.5221 -0.000333786C17.5439 -0.000333786 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n<path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n<path d="M8.11719 15.5003C10.1172 15.5 12.1172 15.4998 15.1172 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n<path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n<path d="M14.9258 13.3748C14.4258 17.5 7.92578 17.5 7.42578 13.3749L14.9258 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n<path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n<path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n<path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n</svg>'];var vi=function(t,e,n,i,o){var r=i.dim_background,a=i.dim_bg_color,s=i.dim_bg_opacity,l=i.position,c=o.question_background_color,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(l){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(r){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(s,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;max-height:").concat(window.innerHeight,"px;overflow: auto;min-height:").concat(e,"%;background:").concat(c,";z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id","apx-dlg-c"),m.classList.add("apx-dlg-c"),d.appendChild(m),d.appendChild(p),d.on_dismiss=n,document.body.appendChild(d),d},mi=function(t){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(t,";\n opacity: 0.5;\n }\n ")},gi=function(t,e){var n=t.answerMode,i=t.choices,o=void 0===i?[]:i,r=t.text_answer,a=void 0===r?"":r,s=t.selected_rating,l=void 0===s?-1:s,c=!0;n===b||n===g?c=-1!==o.findIndex((function(t){return!0===t.is_selected})):n===x?c=a.length>0:n===y&&(c=l>0);c?(e.className="apx-ba",e.disabled=!1):(e.className="apx-bi",e.disabled=!0)},bi=function(t){var e,n=t.maximum_characters,i=t.background_color,o=t.placeholder,r=t.text_color,a=document.createElement("textarea"),s=null!==(e=null==t?void 0:t.textinput_border_color)&&void 0!==e?e:"black";return a.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border: 1px solid ".concat(s,";resize:none;background:").concat(i,";color:").concat(r),a.className="apx-ta",a.setAttribute("placeholder",o),a.setAttribute("maxlength",n),a},yi=function(t,e,n){var i=e.question_text_color,o=e.question_background_color,r=e.option_bg_color_active,a=e.option_bg_color_inactive,s=e.option_text_color_active,l=e.option_text_color_inactive,c=e.option_bg_type,d=t.rating_style,p=t.answerMode,u=t.choices,h=void 0===u?[]:u,f=t.rating,v=void 0===f?{rating_style:d,bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:f,m=t.rating_scale,w=void 0===m?5:m,A=t.selected_rating,L=void 0===A?-1:A,T=t.text_answer,M=void 0===T?"":T,S=t.text_config?t.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},O=!1,I=[];if(p===g||p===b){var D=bi(S);D.style.visibility="hidden";var B=function(t,e){t.style.color=e?s:l},N=function(t,e){var n=e?r:a;"filled"===c?t.style.background=n:"outline"===c&&(t.style.borderColor=n)};h.forEach((function(e,i){var o=document.createElement("label");o.className="apx-lc",o.innerText=e.value;var r=document.createElement("input");r.name=r.type=p===g?"radio":"checkbox",r.checked=e.is_selected;var a=document.createElement("span");a.className="apx-i",o.appendChild(r),o.appendChild(a),N(o,e.is_selected),B(o,e.is_selected),e.is_other&&(O=!0,D.addEventListener("input",(function(t){e.other_answer=t.target.value}))),e.is_selected&&e.is_other&&(D.style.visibility="visible",e.other_answer&&(D.value=e.other_answer)),p===b?r.onchange=function(i){var r=i.target.checked;e.is_selected=r,B(o,r),N(o,r),e.is_other&&(D.style.visibility=r?"visible":"hidden"),gi(t,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",i+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(t,n){var i=t.checked;h[n].is_selected=i,B(t.parentNode,i),N(t.parentNode,i),e.is_other&&(D.style.visibility=i?"visible":"hidden")})),gi(t,n)}),I.push(o)})),O&&I.push(D)}else if(p===x&&null!==S){var F=S.example,P=S.example_text_color;if(""!==F&&""!==F.trim()){var z=document.createElement("span");z.innerHTML="Example: "+F,z.style.color=P,z.style.marginTop="12px",z.style.fontFamily="inherit",z.style.fontSize="15px",I.push(z)}var H=bi(S);H.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),gi(t,n)})),""!==M&&""!==M.trim()&&(H.innerText=M),I.push(H)}else if(p===y){var Z=v.rating_style,j=v.bg_color,q=v.selected_bg_color,V=document.createElement("div");V.style="display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var R="",W=[],U="",Y="cursor:pointer;font-size:30px;width:auto;height:auto;";if("stylized"===Z)W=5==Z?fi:hi,R="opacity:1 !important;",U="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11));width:40px");else if("classic"===Z)W=5===w?C:_,R="opacity:1 !important;border:1.06px solid #017DFD; background-color:rgba(1, 125, 253, 0.1);\n ",U="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("star"===Z){for(var X=0;X<w;X++)W.push("&#11088;");R="filter:grayscale(0%) !important",U="".concat(Y,"filter:grayscale(100%)")}else"numbers"===Z&&(W=5==w?["1","2","3","4","5"]:["0","1","2","3","4","5","6","7","8","9","10"],R="background:".concat(q," !important;color:white !important;"),U="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:15px;width:40px;height:40px;background-color:".concat(j,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11);border-radius:50%"),V.style.marginTop="12px",V.style="display:flex;align-text:center;flex-wrap:wrap;justify-content:space-evenly;gap:15px;padding-top:8px;padding-bottom:8px;overflow:hidden");var G=document.createElement("style"),J="";(5==w?E:k).forEach((function(t,e){J+=".apx-rsel-".concat(e,"{\n background:").concat(t,"!important;\n color:white !important;\n }")})),G.innerHTML=".apx-rsel{".concat(R,"}")+J+".apx-r{".concat(U,"}\n "),V.appendChild(G);for(var Q=function(t){return"star"!==Z?t+1===L:t+1<=L},K=[],$=0;$<W.length;$++){var tt=document.createElement("div");tt.innerHTML="".concat("numbers"===Z?"":"&nbsp;").concat(W[$]);var et=document.createElement("div");"classic"===Z&&("".concat(et.innerHTML=$+1),et.style.fontSize="12.83px",et.style.marginLeft="8px",et.style.display="flex",et.style.fontWeight="500",et.style.justifyContent="center",et.style.alignItems="center",tt.appendChild(et),tt.style.display="flex",tt.style.justifyContent="center",tt.style.alignItems="center",tt.style.flexDirection="column",tt.style.width="46px",tt.style.height="70px"),Q($)&&tt.classList.add("apx-rsel"),tt.classList.add("apx-r"),K.push(tt)}K.forEach((function(e,i){t.selected_rating=i+1,e.addEventListener("click",(function(){if("stylized"===Z&&K.forEach((function(t,e){t.innerHTML=e===i?"&nbsp;"+ui[i]:"&nbsp;"+hi[e]})),"numbers"===Z?e.classList.add("apx-rsel-".concat(i)):e.classList.add("apx-rsel"),t.is_answered=!0,gi(t,n),"numbers"===Z){for(var o=0;o<i;o++)K[o].classList.remove("apx-rsel-".concat(o));for(var r=i+1;r<W.length;r++)K[r].classList.remove("apx-rsel-".concat(r))}else if("star"===Z){for(var a=0;a<i+1;a++)K[a].classList.add("apx-rsel");for(var s=i+1;s<W.length;s++)K[s].classList.remove("apx-rsel")}else{for(var l=0;l<i;l++)K[l].classList.remove("apx-rsel");for(var c=i+1;c<W.length;c++)K[c].classList.remove("apx-rsel")}t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var i,o=document.createElement("span");o.setAttribute("id","nps_advanced"),o.innerHTML=null===(i=e.question)||void 0===i?void 0:i.question;var r=bi(S);r.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),gi(t,n)})),o.appendChild(r),V.appendChild(o);var a=document.getElementById("nps_advanced");a&&V.removeChild(a),o.appendChild(r),V.appendChild(o)}else{var s=document.getElementById("nps_advanced");s&&V.removeChild(s)}}))})),V.appendChild(e)})),I.push(V)}var nt=document.createElement("div");nt.style.padding="14px",nt.style.display="flex",nt.style.flexDirection="column",nt.style.minHeight="340px";var it=document.createElement("style"),ot="";p===x?ot=mi(S.placeholder_text_color):p!==g&&p!==b||(ot=function(t,e,n,i,o,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(o,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(o,";\n background-color: white;\n border-radius: ").concat(t===g?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(i,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(e,";\n border: 1px solid ").concat(i,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(t===g?2:1,"px;\n left: ").concat(t===g?2:4,"px;\n width: ").concat(t===g?10:4,"px;\n height: ").concat(t===g?10:8,"px;\n border-radius: ").concat(t===g?"50%":"0",";\n background: ").concat(t===g?i:"transparent",";\n border: ").concat(t===g?"none":"solid white",";\n border-width: ").concat(t===g?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(t===g?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(t===g?"unset":"rotate(45deg)",";\n transform: ").concat(t===g?"unset":"rotate(45deg)",";\n }\n ")}(p,r,a,s,l,c),O&&(ot+=mi(S.placeholder_text_color))),it.innerHTML=ot.replaceAll("\n","").replace(/[\s]{2,999}/g,""),nt.appendChild(it);var rt=document.createElement("span");return rt.innerText=t.title,rt.style="margin-bottom:12px;color:".concat(i,";background-color:").concat(o,";font-size:16px;font-weight:600"),nt.appendChild(rt),I.forEach((function(t){return nt.appendChild(t)})),nt},xi=function(t,e,n,i,o,r){var a=function(t,e,n,i){var o=t.cancel_button_color,r=t.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===e,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===e?"54":"",";}.apx-pr{cursor:").concat(0===e?"no-drop":"pointer",";visibility:").concat(0===e?"hidden":"visible",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var l=document.createElement("div");l.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var c=document.createElement("span");return c.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",c.innerText=i?"":"".concat(e+1,"/").concat(n),l.appendChild(a),l.appendChild(c),l.appendChild(s),{prevButton:a,closeButton:s,headerNode:l}}(t,i,o,r),s=a.headerNode,l=a.prevButton,c=a.closeButton,d=function(t,e,n,i,o){var r=t.skip_text_color,a=t.submit_text_color,s=t.submit_active_color,l=t.submit_inactive_color,c=n===i-1||o?null:document.createElement("button");c&&(c.innerText="Skip",c.className="apx-b",c.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===i-1&&"Next >"===e.submit_text?"Submit":e.submit_text,"<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(l,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),gi(e,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",c&&p.appendChild(c),p.appendChild(d),{footerNode:p,skipButton:c,submitButton:d}}(t,n,i,o,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=yi(n,e,u),v=document.createElement("div");v.className="apx-sq";var m=document.createElement("style");return m.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",v.appendChild(m),v.appendChild(s),v.appendChild(f),{questionRoot:v,footerNode:h,prevButton:l,closeButton:c,skipButton:p,submitButton:u}},wi=window.ApxorLogger,_i=l((function t(e){var n=this;a(this,t),c(this,"KLNu",(function(){n.is_selected=!1,n.other_answer=null}));var i=e.id,o=e.value,r=e.is_other,s=e.next_question_id;if(!i||!o)throw new Error("Invalid Choice");this.id=i,this.value=o,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),Ci=l((function t(e){var n=this;a(this,t),c(this,"KLNu",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(t){return t.KLNu()}))}));var i=e.id,o=e.answer_mode,r=e.title,s=e.is_required,l=e.submit_text,d=e.rating_style,u=e.rating_scale,h=e.choices,f=void 0===h?[]:h,v=e.text_config,m=void 0===v?null:v,w=e.randomize_choices,_=void 0!==w&&w,C=e.response_cfg,E=void 0===C?{}:C,k=e.advanced_options,A=e.rules,L=void 0===A?[]:A;if(!i||!o)throw new Error("Invalid question");var T=-1;switch(o){case"single_choice":T=g;break;case"multi_choice":T=b;break;case"text":T=x;break;case"rating":T=y;break;default:T=-1}if(this.answerMode=T,this.id=i,this.is_required=s,this.submit_text=l,this.randomize_choices=_,this.response_cfg=E,this.text_config=m,this.title=r,this.rating_style=d,this.rating_scale=u,this.is_answered=!1,this.selected_rating=-1,this.rules=L,this.rulesArray=[],k&&this.rules.forEach((function(t){if(e.hasOwnProperty(t.qid)){var i={max:t.max,min:t.min,question:e[t.qid]};n.rulesArray.push(i)}})),this.choices=[],this.answerMode===g||this.answerMode===b){for(var M,S=[],O=0;O<f.length;O++){var I=new _i(f[O]);I.is_other?S.push(I):this.choices.push(I)}_&&(this.choices=p(this.choices).map((function(t,e,n){var i=e+Math.floor(Math.random()*(n.length-e)),o=[n[e],n[i]];return n[i]=o[0],n[e]=o[1],n[e]}))),(M=this.choices).push.apply(M,S)}})),Ei=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.dialog_config,a=void 0===r?null:r,s=i.show_progress_bar,l=void 0===s||s,c=i.is_response_based_survey,d=void 0!==c&&c,p=i.questions,u=void 0===p?[]:p,h=i.show_success_message,f=void 0===h||h,v=i.auto_hide_message,m=void 0===v?2e3:v,g=i.success_message,b=void 0===g?"":g,y=i.question_text_color,x=void 0===y?"#002845":y,w=i.submit_active_color,_=void 0===w?"#017DFD":w,C=i.submit_inactive_color,E=void 0===C?"#017DFD65":C,k=i.option_bg_type,A=void 0===k?"filled":k,L=i.option_text_color_active,T=void 0===L?"#002845":L,M=i.option_text_color_inactive,S=void 0===M?"#002845":M,O=i.option_bg_color_active,I=void 0===O?"#FFF":O,D=i.option_bg_color_inactive,B=void 0===D?"#FFF":D,N=i.question_background_color,F=void 0===N?"#FFF":N,P=i.success_message_bg_color,z=void 0===P?"#109B15":P,H=i.success_message_icon_color,Z=void 0===H?"#109B15":H,j=i.success_message_text_color,q=void 0===j?"#002845":j,V=i.skip_text_color,R=void 0===V?"#017DFD":V,W=i.cancel_button_color,U=void 0===W?"#000":W,Y=i.previous_button_color,X=void 0===Y?"#000":Y,G=i.progress_bar_color,J=void 0===G?"#017DFD":G,Q=i.submit_text_color,K=void 0===Q?"#FFF":Q,$=i.width,tt=void 0===$?350:$,et=i.min_height,nt=void 0===et?40:et,it=i.position,ot=void 0===it?"center":it,rt=i.dim_background,at=void 0===rt||rt,st=i.dim_bg_color,lt=void 0===st?"#313131":st,ct=i.dim_bg_opacity,dt=void 0===ct?.54:ct;n.configId=t,n.name=e,n.delay=o,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=b,n.auto_hide_message=m,n.questions=[],n.displayedQuestionIndeces=[],n.answered_questions=[],n.width=tt,n.min_height=nt,n.layoutConfig={show_progress_bar:l,skip_text_color:R,cancel_button_color:U,previous_button_color:X,progress_bar_color:J,submit_text_color:K,submit_active_color:_,submit_inactive_color:E,success_message_bg_color:z,success_message_icon_color:Z,success_message_text_color:q,position:ot,dim_background:at,dim_bg_color:lt,dim_bg_opacity:dt},n.questionConfig={question_text_color:x,question_background_color:F,option_bg_color_active:I,option_bg_color_inactive:B,option_text_color_active:T,option_text_color_inactive:S,option_bg_type:A},a&&(n.dialog_config=a);for(var pt=0;pt<u.length;pt++)try{if("request_survey"===u[pt].answer_mode||"success_message"===u[pt].answer_mode)continue;n.questions.push(new Ci(u[pt])),n.answered_questions.push(-1)}catch(t){return wi.error("Failed to parse Q",pt,t),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),c(this,"uDTc",(function(t,e){n.isValid&&setTimeout((function(){try{var i=window.ApxorRTM;if(null!==i.currentAction&&void 0!==i.currentAction)return void wi.error("An action is already being shown.");n.startTime=Date.now();var o=vi(n.width,n.min_height,e,n.layoutConfig,n.questionConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.JCZY("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,l=r.icon_width,c=r.icon_height,d=o.children[0];o.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(t){var e,n,i,o=t.icon_name,r=void 0===o?"":o,a=t.title,s=void 0===a?"Some dummy title":a,l=t.yes_text,c=void 0===l?"Yes":l,d=t.icon_width,p=void 0===d?180:d,u=t.icon_height,h=void 0===u?100:u,f=t.no_text,v=void 0===f?"No, thanks":f,m=t.dialog_background_color,g=void 0===m?"#FFF":m,b=t.title_color,y=void 0===b?"#3C3C3C":b,x=t.yes_button_bg_color,w=void 0===x?"#017DFD":x,_=(t.no_button_bg_color,t.yes_button_text_color),C=void 0===_?"#FFF":_,E=t.no_button_text_color,k=void 0===E?"#017DFD":E,A=(t.hide_close_button,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(t,"px;font-weight:").concat(e,";")});return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((e=r,n=p,i=h,e&&""!==e&&0!==n&&0!==i?'<img id="apx_icon" src="'.concat(e,'" style="width:').concat(n,"px;height:").concat(i,'px;">'):""),'<span style="').concat(A(16,600),"text-align:center;color:").concat(y,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(A(14,500),"color:").concat(C,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(c,'</button>\n <button id="').concat("apx-dn",'" style="').concat(A(14,500),"color:").concat(k,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(v,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.JCZY("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.ZCHP(o,!0)},document.getElementById("apx-dn").onclick=function(){n.JCZY("apx_survey_dialog_no_clicked"),n.giAi(o)};var t=function(){o.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===l||0===c?"13%":"25%",d.classList.toggle("open"),n.JCZY("apx_survey_dialog_launched")};if(""!==s&&l>0&&c>0){var e=document.getElementById("apx_icon");e.onload=function(){t()},e.onerror=function(){n.JCZY("apx_survey_dialog_icon_failed"),n.giAi(o)}}else t()}),100)}else n.ZCHP(o);t&&t((function(){return n.giAi(o)}))}catch(t){wi.error(t)}}),n.delay)})),c(this,"ZCHP",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.layoutConfig,o=i.show_progress_bar,r=i.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),o||(a.style.visibility="hidden");var l=t.children[0];(e||l&&l.childElementCount>1)&&l.removeChild(l.children[l.childElementCount-1]),l.appendChild(a),n.Tcel(t,0),e||setTimeout((function(){t.children[0].classList.toggle("open")}),100)})),c(this,"cBRe",(function(t){if(-1==t||!t)return-1;var e=n.questions.length;if(e>0)for(var i=0;i<e;i++)if(n.questions[i].id==t)return i;return-1})),c(this,"dfpA",(function(t,e){var i=t.answerMode,o=t.choices,r=void 0===o?[]:o;switch(i){case y:var a=null==t?void 0:t.response_cfg[(null==t?void 0:t.selected_rating)||11];a?e=n.cBRe(a):e+=1;break;case g:var s;if(r.forEach((function(t){t.is_selected&&(s=t)})),s){var l=s.next_question_id;e=n.cBRe(l)}else e+=1;break;case b:case x:default:e+=1}return e})),c(this,"Tcel",(function(t,e){if(!(e>=n.questions.length)){var i=n.questions[e],o=xi(n.layoutConfig,n.questionConfig,i,e,n.questions.length,n.is_response_based_survey),r=o.prevButton,a=void 0===r?null:r,s=o.closeButton,l=void 0===s?null:s,c=o.submitButton,d=void 0===c?null:c,p=o.skipButton,u=void 0===p?null:p,h=o.questionRoot,f=o.footerNode,v=t.children[0];v&&v.childElementCount>2&&(v.removeChild(v.children[v.childElementCount-1]),v.removeChild(v.children[v.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(e+1)),"%)"),v.appendChild(h),v.appendChild(f),a&&(a.onclick=function(){n.hGqo(e);var i=n.displayedQuestionIndeces.pop();void 0!==i&&n.Tcel(t,i)}),l&&l.addEventListener("click",(function(){n.JCZY("apx_survey_close_clicked",{where:"question "+(e+1)}),n.hGqo(e),n.Zbbp(t,!1)})),d&&(d.onclick=function(){if(n.displayedQuestionIndeces.push(e),n.is_response_based_survey){n.hGqo(e);var o=n.dfpA(i,e);o===n.questions.length||-1===o?n.Zbbp(t,!0):n.Tcel(t,o)}else n.hGqo(e),e===n.questions.length-1?n.Zbbp(t,!0):n.Tcel(t,e+1)}),u&&(u.onclick=function(){n.displayedQuestionIndeces.push(e),e+1>=n.questions.length||(n.JCZY("apx_survey_skip_clicked",{where:"question "+(e+1)}),n.hGqo(e),n.Tcel(t,e+1))})}})),c(this,"hGqo",(function(t){if(-1===n.answered_questions[t]){var e=n.kuje(t),i=[];e.textBasedQuestionAnswers.length>0&&e.textBasedQuestionAnswers.forEach((function(t){i.push(t.answer)})),e.answers.length>0&&(n.JCZY("apx_survey_".concat(n.questions[t].title),{answers:e.answerTexts,text_answers:i}),n.answered_questions[t]=1)}})),c(this,"JCZY",(function(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null===(i=window.ApxorRTM)||void 0===i?void 0:i.AJik(n.configId),s=a._attr;e.logEvent(t,o(o({survey_id:n.configId,name:n.name},r),s))})),c(this,"kuje",(function(t){var e=n.questions[t];if(!e)return null;var i={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=e.answerMode,r=e.choices,a=void 0===r?[]:r,s=e.selected_rating,l=void 0===s?-1:s,c=e.text_answer,d=void 0===c?"":c,p=e.is_answered,u=void 0!==p&&p,h=e.text_config,f=void 0===h?null:h;switch(o){case g:case b:a.forEach((function(t){t.is_selected&&(i.answers.push(t.id),i.answerTexts.push(t.value),t.is_other&&null!==t.other_answer&&""!==t.other_answer.trim()&&i.others.push({id:t.id,answer:t.other_answer}))}));break;case x:u&&""!==d&&""!==d.trim()&&null!==f&&(i.answers.push(f.id),i.answerTexts.push(d),i.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case y:-1!==l&&(i.answers.push(l),i.answerTexts.push(l))}return i})),c(this,"giAi",(function(t){t.on_dismiss&&t.on_dismiss(),t.children[0].classList.toggle("open"),setTimeout((function(){t.parentNode.removeChild(t),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),c(this,"mQMA",(function(t){var e=t.children[0];e.style.minHeight="unset",e&&e.childElementCount>2&&(e.removeChild(e.children[e.childElementCount-1]),e.removeChild(e.children[e.childElementCount-1]));var i=document.getElementById("apx-pb");i.parentNode.removeChild(i);var o,r,a,s,l,c,d=(o=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,l=r.success_message_text_color,(c=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),c.innerHTML='\n <span style="font-size: 30px;border-radius: 50%;padding: 10px;padding-bottom: 2px;padding-top: 2px;color: white;background: '.concat(s,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(l,'">').concat(o,"</span>\n "),c);e.appendChild(d),setTimeout((function(){n.giAi(t)}),n.auto_hide_message)})),c(this,"Zbbp",(function(t,i){i&&n.show_success_message?n.mQMA(t):n.giAi(t);var o={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(t,e){var i=n.kuje(e);if(i.answers.length>0){var r={question_id:t.id,answers:i.answers};t.rules.length>0&&t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var n=e.question.text_config,i=t.text_answer;r.answers=[].concat(p(r.answers),[n.id]);var o={id:n.id,answer:i};r.others||(r.others=[]),r.others.push(o)}})),i.others.length>0?r.others=i.others:i.textBasedQuestionAnswers.length>0&&(r.others=i.textBasedQuestionAnswers),o.responses.push(r)}})),o.responses.length>0){var r=Math.pow(10,3);o.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=e.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;o.session_id=e.getSessionId(),o.is_completed=i,o.app_version=a.getFromStorage("apx_ver",!1),o.device_uuid=e.getClientId(),o.launch_time=s,o.user_attributes=a.getUserAttributes(),o.session_attributes=a.getSessionAttributes(),n.ROPL(o)}i&&n.JCZY("apx_survey_completed"),n.questions.forEach((function(t,e){t.KLNu(),n.answered_questions[e]=-1})),n.startTime=-1,n.bodyOverflow=""})),c(this,"ROPL",(function(t){var n=m.replace("<app_id>",e.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})})),this.isValid=!0,this.dialog_config=null})),ki=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new Ei;return i.initialize(t,e,n)?i:null}))})),Ai=window.ApxorLogger,Li=function(){function t(e,n,i,o,r){var s=this;a(this,t),c(this,"sovR",(function(){s.createPlayer();try{if("PIP"==s.video_mode){var t=s.videoElement,e=s.hideCallback;t.onloadedmetadata=function(){t.disablePictureInPicture=!1,t.requestPictureInPicture().catch((function(t){Ai.error("Can't show PIP:".concat(t)),e()}))}}else s.zheh();s.showCallback()}catch(t){Ai.error("Can't show video:".concat(t)),s.hideCallback()}})),c(this,"vGWj",(function(){var t=Z(s.videoConfig),e=t.width,n=t.height;s.height=n,s.width=e})),c(this,"FljW",(function(){var t=document.getElementById("apxor-mpl-styles");t&&t.remove()})),c(this,"xmLz",(function(){s.videoElement.addEventListener("ended",(function(t){var e=document.getElementById("apxor-cta-btn");e&&e.classList.remove("apxor-hide-elmt")})),s.videoElement.addEventListener("play",(function(t){var e=document.getElementById("apxor-cta-btn");e&&e.classList.add("apxor-hide-elmt")}))})),c(this,"GLFr",(function(){var t=s.videoConfig.enable_pip_toggles;if(void 0===t||t){s.videoElement.addEventListener("leavepictureinpicture",(function(){s.videoElement.disablePictureInPicture=!0,"PIP"===s.videoConfig.video_mode?(s.hideCallback(),s.videoPlayer.remove()):s.videoPlayer.classList.remove("apxor-hide-elmt")}),!1);s.videoElement.addEventListener("enterpictureinpicture",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")}),!1)}})),c(this,"IUTK",(function(){var t=s.videoConfig,e=t.pip_btn_color,n=void 0===e?"#ffffff":e,i=t.close_btn_color,o=void 0===i?"#ffffff":i,r=t.enable_PIP,a=document.createElement("span");if(a.innerHTML=q(24,24,o),a.classList.add("apxor-close-btn"),a.addEventListener("click",(function(t){try{s.videoPlayer.remove(),s.hideCallback(),s.FljW()}catch(t){console.log("Error \n ".concat(t," \n occured while closing the video"))}})),s.videoPlayer.appendChild(a),r){var l=document.createElement("span");l.innerHTML=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}(24,24,n),l.classList.add("apxor-pip-btn"),l.addEventListener("click",(function(t){try{s.videoElement.disablePictureInPicture=!1,s.videoElement.requestPictureInPicture()}catch(t){console.log("Error \n ".concat(t," \n while starting the PIP"))}})),s.videoPlayer.appendChild(l)}})),c(this,"Xlib",(function(){var t=s.videoConfig,e=t.buttons_config,n=t.button_position,i=void 0===n?"center":n,o=t.button_direction,r=void 0===o?"horizontal":o;if(e&&e.length>0){var a=function(){try{s.videoPlayer.remove(),s.hideCallback(),s.FljW()}catch(t){console.log("Can't close the video player\n".concat(t))}},l=j(s.configId,s.name,"InApp_",e,i,r,a,a,a);l.setAttribute("id","apxor-cta-btn"),l.classList.add("apxor-video-cta"),l.classList.add("apxor-hide-elmt"),s.videoPlayer.appendChild(l)}})),c(this,"nQlE",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")})),c(this,"zheh",(function(){s.videoPlayer.classList.remove("apxor-hide-elmt")})),c(this,"PPkc",(function(){return s.videoElement})),this.videoConfig=e,this.videoPlayer=null,this.videoElement=null,this.video_mode=e.video_mode,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer"}return l(t,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apxor-video-player"),this.vGWj(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this.xmLz(),this.GLFr(),this.IUTK(),this.Xlib(),this.nQlE(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var t=document.createElement("style");t.setAttribute("id","apxor-mpl-styles"),t.innerHTML='\n div.apxor-video-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: #000000;\n z-index:99999999;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\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(t)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.videoConfig.videoPosition){case"top-left":this.videoPlayer.classList.add("apxor-video-player--topLeft");break;case"top-right":this.videoPlayer.classList.add("apxor-video-player--topRight");break;case"bottom-left":this.videoPlayer.classList.add("apxor-video-player--bottomLeft");break;case"bottom-right":default:this.videoPlayer.classList.add("apxor-video-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var t=this.videoConfig,e=t.v_url,n=t.v_format,i=void 0===n?"video/mp4":n,o=t.mute_audio,r=void 0!==o&&o;t.video_mode;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,r&&(this.videoElement.muted=!0);var a=document.createElement("source");a.setAttribute("src",e),a.setAttribute("type",i),this.videoElement.appendChild(a),this.videoPlayer.appendChild(this.videoElement)}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apxor-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}(),Ti=function(){function t(e,n,i,o,r){var s;(a(this,t),this.dismiss_outside_touch=e.dismiss_outside_touch||!1,this.dim_background=e.dim_background||!1,this.dim_background_color=e.dim_background_color||"#0a0a0a",this.dim_background_opacity=e.dim_background_opacity||.5,this.background_color=e.background_color||"#FFFFFF",this.inapp_type=e.inapp_type||"small-text",this.inapp_position=e.inapp_position||"center",this.border_radius=e.border_radius||15,this.border_color=e.border_color||"#27a4f2",this.border_style=e.border_style||"outset",this.border_width=e.border_width||2,this.enable_close=e.enable_close||!0,this.close_btn_color=e.close_btn_color,this.close_btn_path=e.close_btn_path||"",this.close_btn_bg_color=e.close_btn_bg_color||"#FFFAAA",this.close_btn_type=e.close_btn_type||"normal",this.title_config=e.title_config,this.text_config=e.text_config,this.buttons_config=e.buttons_config,this.button_position=e.button_position,this.button_direction=e.button_direction||"horizontal",this.is_scrollable=e.is_scrollable||!1,this.scroll_border_color=e.scroll_border_color||"#000000",this.icon_path=e.icon_path||"",this.icon_width=e.icon_width||"",this.icon_height=e.icon_height||"",this.icon_margin=e.icon_margin||0,this.icon_radius=e.icon_radius||0,this.icon_margin_color=e.icon_margin_color||"black",this.icon_position=e.icon_position||"center",this.image_path=e.image_path||"",this.image_width=e.image_width||360,this.image_height=e.image_height||360,this.video_height=e.video_height||360,this.video_width=e.video_width||360,this.video_path=e.video_path||"",this.enable_gradient=e.enable_gradient,this.gradient=e.gradient||{},this.text_height=e.text_height||400,this.modal_width=e.modal_width||50,this.show_shadow=e.show_shadow||!0,this.shadow_color=e.shadow_color||"#888888",this.terminate_info=e.terminate_info||{},this.configId=n,this.name=i,this.showCallback=o,this.closeCallback=r,this.currentId=H(10),e.title_config)&&(this.title_icon_path=null!==(s=e.title_config.icon_path)&&void 0!==s?s:"",this.title_icon_height=e.title_config.icon_height,this.title_icon_width=e.title_config.icon_width,this.title_icon_radius=e.title_config.icon_radius,this.title_icon_margin=e.title_config.icon_margin,this.title_icon_margin_color=e.title_config.icon_margin_color);e.enable_gradient&&(this.gradient_direction=e.gradient.gradient_direction||"to right",this.gradient_c1=e.gradient.gradient_c1||"#000000",this.gradient_c2=e.gradient.gradient_c2||"#ffffff"),this.width="50%",this.height="auto",this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return l(t,[{key:"_setInAppModalDimensions",value:function(){switch(this.inapp_type){case"small-text":this.width="30%";break;case"medium-text":this.width="45%";break;case"large-text":this.width="60%";break;case"custom-size-text":this.modal_width<20||this.modal_width>80?this.width="50%":this.width="".concat(this.modal_width,"%");break;case"icon-text":this.width="50%";break;case"image-text":case"image-only":this._setDimenstionFromResolution(this.image_width,this.image_height);break;case"video-text":this._setDimenstionFromResolution(this.video_width,this.video_height);break;default:this.width="50%"}}},{key:"_setDimenstionFromResolution",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=window.innerWidth,o=window.innerHeight;if(t>i||e>o){var r=Z({width:t,height:e},n);this.width="".concat(r.width,"px"),this.height="".concat(r.height,"px")}else this.width="".concat(t,"px"),this.height="".concat(e,"px")}},{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._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \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 {\n width:100%;\n height:100%;\n }\n .apx-dimbackground-overlay {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:".concat(this.dim_background?this.dim_background_color:"transparent",";\n ").concat(this.dim_background?"opacity: ".concat(this.dim_background_opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){return"\n .apx-inapp-container {\n width:".concat(this.width,";\n ").concat("image-only"===this.inapp_type?"height:".concat(this.height,";"):"","\n ").concat("image-only"===this.inapp_type||"video-text"===this.inapp_type?"":"padding: 20px;","\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 border: ").concat(this.border_width,"px ").concat(this.border_style," ").concat(this.border_color,";\n border-radius: ").concat(this.border_radius,"px;\n ").concat("top-left"==this.inapp_position?"top:0;left:0;":""," \n ").concat("top-right"==this.inapp_position?"top:0;right:0;":""," \n ").concat("bottom-left"==this.inapp_position?"bottom:0;left:0;":""," \n ").concat("bottom-right"==this.inapp_position?"bottom:0;right:0;":"","\n ").concat("center"==this.inapp_position?"left:50%;top:50%;-webkit-transform: translate(-50%, -50%);-moz-transform: translate(-50%, -50%);":"","\n ").concat(this.enable_gradient?"background-image:linear-gradient(".concat(this.gradient_direction,", ").concat(this.gradient_c1,", ").concat(this.gradient_c2,");"):"","\n ").concat(this.show_shadow?"box-shadow: 0px 0px 7px 7px ".concat(this.shadow_color,";"):"","\n }\n .apx-inapp-container.open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return"\n .apxor-inapp-scrollable {\n overflow:scroll; \n overflow-x: hidden;\n height:".concat(this.text_height,"px;\n border-top: 2px solid ").concat(this.scroll_border_color,";\n border-bottom : 2px solid ").concat(this.scroll_border_color,";\n }\n .apxor-inapp-nonscrollable {\n overflow : hidden;\n }\n ")}},{key:"_getTitleStyles",value:function(){var t,e,n;return"\n .apxor-title-div {\n ".concat(null!==(t=this.title_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.title_config.background_color,'";'):"","\n ").concat(null!==(e=this.title_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.title_config.margin_config.top,"px;margin-bottom:").concat(this.title_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.title_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.title_config.padding_config.top,"px;padding-bottom:").concat(this.title_config.padding_config.bottom,"px;"):""," \n ").concat(this.title_config.alignment?"text-align:".concat(this.title_config.alignment,";"):"","\n }\n .apxor-title-icon {\n ").concat(""!==this.title_icon_path?"background:url('".concat(this.title_icon_path,"');display: inline-block;height: ").concat(this.title_icon_height,"px;width: ").concat(this.title_icon_width,"px;border-radius:").concat(this.title_icon_radius,"px;border:").concat(this.title_icon_margin,"px solid ").concat(this.title_icon_margin_color,";margin-right: 15px;vertical-align: middle"):"","\n }\n ")}},{key:"_getDescriptionStyles",value:function(){var t,e,n;return"\n .apxor-inapp-description {\n ".concat(null!==(t=this.text_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.text_config.background_color,'";'):"","\n ").concat(null!==(e=this.text_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.text_config.margin_config.top,"px;margin-bottom:").concat(this.text_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.text_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.text_config.padding_config.top,"px;padding-bottom:").concat(this.text_config.padding_config.bottom,"px;"):""," \n ").concat(this.text_config.alignment?"text-align:".concat(this.text_config.alignment,";"):"","\n }\n ")}},{key:"_getIconStyles",value:function(){return"\n .apxor-inapp-icon-content {\n ".concat("icon-text"===this.inapp_type?"background:url('".concat(this.icon_path,"');display:inline-block;height: ").concat(this.icon_height,"px;width: ").concat(this.icon_width,"px;border-radius:").concat(this.icon_radius,"px;border:").concat(this.icon_margin,"px solid ").concat(this.icon_margin_color,";"):"","\n }\n .apxor-inapp-icon-container {\n ").concat("icon-text"===this.inapp_type?"text-align:".concat(this.icon_position,";"):"","\n }\n ")}},{key:"_getImageStyles",value:function(){return"\n .apxor-inapp-img-only {\n ".concat("image-only"===this.inapp_type?"background:url('".concat(this.image_path,"') no-repeat 50% 50%;"):"","\n }\n .apxor-inapp-img-txt {\n ").concat("image-text"===this.inapp_type?"height: ".concat(this.height,";width: ").concat(this.width,";margin-top:5px"):"","\n }\n ")}},{key:"_getVideoStyles",value:function(){return"\n .apxor-inapp-video {\n ".concat("video-text"===this.inapp_type?"height:".concat(this.height,";border:2px solid black;border-top-left-radius: ").concat(this.border_radius-this.border_width,"px;border-top-right-radius: ").concat(this.border_radius-this.border_width,"px;"):"","\n }\n ")}},{key:"_getControlsStyles",value:function(){return"\n .apxor-inapp-close {\n position: absolute;\n z-index:9999;\n top: 5px;\n right: 5px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n "}},{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: "\f62a"; \n }\n .bi-x-circle-fill::before { \n content: "\f622"; \n }\n '}},{key:"_setBackgroundOverlays",value:function(){var t=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay");var e=this.overlayElement;this.dim_background&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-dimbackground-overlay"),e=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.dismiss_outside_touch&&(e.onclick=function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),document.body.appendChild(this.overlayElement)}},{key:"_setAutoTerminate",value:function(){var t=this;if(this.terminate_info.auto_dismiss){var e=this.terminate_info.duration,n=void 0===e?1e3:e;window.setTimeout((function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),n)}}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container"),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_setTitleContent",value:function(){if(this.title_config){F(this.title_config);var t=document.createElement("div");if(t.classList.add("apxor-title-div"),""!=this.title_icon_path){var e=document.createElement("span");e.classList.add("apxor-title-icon"),t.appendChild(e)}t.appendChild(z(this.title_config,this.currentId,"title")),this.inAppContainer.appendChild(t)}}},{key:"_setDescriptionContent",value:function(){if(this.text_config){F(this.text_config);var t=document.createElement("div");t.classList.add("apxor-inapp-description"),t.appendChild(z(this.text_config,this.currentId,"description")),this.inAppContainer.appendChild(t),this.is_scrollable?t.classList.add("apxor-inapp-scrollable"):t.classList.add("apxor-inapp-nonscrollable"),this.inAppContainer.appendChild(t)}}},{key:"Xlib",value:function(){var t=this,e=this.overlayElement,n=function(){t.closeCallback(e,"dismiss",".apx-inapp-container")},i=j(this.configId,this.name,"InApp_",this.buttons_config,this.button_position,this.button_direction,n,n,n);this.inAppContainer.appendChild(i)}},{key:"_setCloseButton",value:function(){var t=this;if(this.enable_close){var e=document.createElement("span");"normal"===this.close_btn_type?e.innerHTML=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}(24,24,this.close_btn_color):"fill"===close_btn_type?e.innerHTML=q(24,24,this.close_btn_bg_color):e.innerHTML='<img src="'.concat(this.close_btn_path,'" width="24" height="24"></img>'),e.classList.add("apxor-inapp-close"),e.addEventListener("click",(function(e){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")})),this.inAppContainer.appendChild(e)}}},{key:"_setImageOnlyOptions",value:function(){"image-only"===this.inapp_type&&this.inAppContainer.classList.add("apxor-inapp-img-only")}},{key:"_setImageTextOptions",value:function(){if("image-text"===this.inapp_type){var t=document.createElement("div"),e=document.createElement("img");e.src=this.image_path,e.classList.add("apxor-inapp-img-txt"),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setVideoTextOptions",value:function(){if("video-text"===this.inapp_type){var t=document.createElement("div"),e=document.createElement("video");e.classList.add("apxor-inapp-video"),e.controlsList="noplaybackrate nodownload",e.disablePictureInPicture=!0,e.controls=!0;var n=document.createElement("source");n.setAttribute("src",this.video_path),n.setAttribute("type","video/mp4"),e.appendChild(n),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setIconTextOptions",value:function(){if("icon-text"===this.inapp_type){var t=document.createElement("div");t.classList.add("apxor-inapp-icon-container");var e=document.createElement("span");e.classList.add("apxor-inapp-icon-content"),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this._setCloseButton(),this._setImageOnlyOptions(),this._setImageTextOptions(),this._setVideoTextOptions(),this._setIconTextOptions(),this._setTitleContent(),this._setDescriptionContent(),this.Xlib()}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}},{key:"createInAppModal",value:function(){this._setInAppModalDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}}]),t}(),Mi=window.ApxorLogger;var Si=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.layout_type,a=void 0===r?"":r,s=i.html_config.data,l=void 0===s?"":s,c=i.window_attributes,d=c.width,p=void 0===d?"auto":d,u=c.height,h=void 0===u?"auto":u,f=c.dimmed_background,v=void 0===f||f,m=c.dismiss_outside_touch,g=void 0!==m&&m,b=c.position,y=void 0===b?"center":b;return n.configId=t,n.name=e,n.delay=o,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:v,dismiss_outside_touch:g,position:y},n.htmlConfig={data:l},"videos"!==a&&"modal"!==a&&""==n.htmlConfig.data?(n.isValid=!1,!1):(n.ui=i,n.rtmInstance=window.ApxorRTM,n.on_show=function(){n.rtmInstance.logActionEvent("inapp_shown",n.configId,n.name),n.rtmInstance.isShowingAction=!0,n.rtmInstance.currentAction=function(){}},n.on_hide=function(){n.rtmInstance.isShowingAction=!1,n.rtmInstance.currentAction=null,n.rtmInstance.logActionEvent("inapp_dismissed",n.configId,n.name)},!0)})),c(this,"itfN",(function(){if(!n.isValid)return!1;setTimeout((function(){var t,e,i,o,r;if(null===n.rtmInstance.currentAction||void 0===n.rtmInstance.currentAction)try{if(Yi.getInstance().updateCount(n.configId),"videos"===n.layoutConfig.layout_type)t=n.ui,e=n.configId,i=n.name,o=n.on_show,r=n.on_hide,Li.isAVideoBeingPlayed()||Li.canShowVideoInApp(t)&&new Li(t,e,i,o,r).sovR();else if("modal"===n.layoutConfig.layout_type)!function(t,e,n,i,o){new Ti(t,e,n,i,o).createInAppModal()}(n.ui,n.configId,n.name,n.on_show,n._closeInApp);else{var a=function(t,e,n){var i=n.dimmed_background,o=document.createElement("div");o.setAttribute("id","apx-oly");var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(i?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id","apx-dlg-c"),a.classList.add("apx-dlg-c"),o.appendChild(a),o.appendChild(r),document.body.appendChild(o),o}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.mWgd(a)}),setTimeout((function(){a.children[0].classList.toggle("open"),a.children[0].innerHTML=n.htmlConfig.data,n.oOvX("inapp_shown"),n.on_show(),a.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.FFYR(a,t)}}))}),100)}}catch(t){Mi.error(t)}else Mi.error("An action is already being shown.")}),n.delay)})),c(this,"FFYR",(function(t,i){var o=i.getAttribute("href");if(null!=o&&o.includes("apxor")){var r,a=o.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.oOvX("walk_through_cancelled");break;case"xclose":n.oOvX("InAppXIconClicked");break;case"close":r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.oOvX(w(""===r?"Button":r));break;case"dl_url":var s=o.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),l=o.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.oOvX(w(""===r?"Button":r)),"true"==l?window.open(s,"_blank"):e.logClientEvent("REDIRECT",{url:s})}return n.mWgd(t,a),!1}return!0})),c(this,"mWgd",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c";"cancel"!==e&&n.oOvX("inapp_dismissed");var o=document.querySelector(i);o.classList.toggle("open"),setTimeout((function(){t.remove(),n.on_hide()}),300)})),c(this,"oOvX",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.rtmInstance.AJik(n.configId),a=r._attr;e.logEvent(t,o(o({id:n.configId,message_name:n.name},i),a))})),this.isValid=!0})),Oi=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new Si;return i.initialize(t,e,n)?i:null}))})),Ii=function(t){if(t.target){var e=t.target.classList,n=e.contains("apx-highlight")||-1!==e.toString().indexOf("apx-");e&&!n&&(t.target.classList.add("apx-highlight"),t.target.oldOnClick=t.target.onclick,t.target.onclick=null)}},Di=function(t){t.target&&t.target.classList&&t.target.classList.contains("apx-highlight")&&(t.target.classList.remove("apx-highlight"),t.target.onclick=t.target.oldOnClick,t.target.oldOnClick=null)};var Bi="<b>View Selection Mode: ON",Ni="<b>View Selection Mode: OFF</b>",Fi="https://server.apxor.com/v1/sse/",Pi=Fi+"layout?appId=<aid>&deviceId=<uid>",zi=Fi+"ui-config?appId=<aid>&deviceId=<uid>",Hi=Fi+"art-config?appId=<aid>&deviceId=<uid>",Zi="https://server.apxor.com/v4/frontendapi/web/test-devices",ji=Zi+"?appId=<aid>",qi=Zi+"/<uid>?appId=<aid>",Vi=l((function t(){var n=this;a(this,t),c(this,"edQS",null),c(this,"kwBI",null),c(this,"JoKU",null),c(this,"ZcGj",null),c(this,"zADt",""),c(this,"init",(function(t,i){var o=function(t){if(window.document)for(var e=t+"=",n=window.document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return decodeURIComponent(o.substring(e.length,o.length))}return null}("_apx_ewc");if(o){var r=atob(o);try{var a=e.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,l=a.expiry,c=a.volatile_id;if(n.zADt=c,s===t&&Date.now()<=l){var d=document.createElement("span");if(d.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",d.innerHTML=Bi,n.kwBI=d,document.body.appendChild(d),n.edQS=document.createElement("style"),n.edQS.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.edQS),n.isSelectionMode=!1,n.testDeviceData=e.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,v=void 0===f?"":f;if(""!==h&&""!==v){n.ZTKo("select","".concat(h," - ").concat(v),v);var m=new EventSource(zi.replace("<aid>",t).replace("<uid>",v)),g=new EventSource(Hi.replace("<aid>",t).replace("<uid>",v));m.onmessage=g.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n.lHvX(i,t.data)}}}n.lbNi(i)}}catch(t){}}})),c(this,"ueRv",(function(){n.kwBI.parentNode.removeChild(n.kwBI),n.edQS.parentNode.removeChild(n.edQS)})),c(this,"lHvX",(function(t,i){try{n.ZcGj.dispatchEvent(new CustomEvent("preview"));var o=JSON.parse(i),r=o.cmd;if("prev"===(void 0===r?"prev":r))if(o.hasOwnProperty("ui")){var a=function t(e){return[Math.random,function(){return t.last?windowId.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(t){return t().toString(e||16+20*Math.random()).substr(-8)})).join("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"APX-PR3VI3W-CAMPGAIN",type:o.type},ui:o.ui}]};t.zDvi("SURVEY"!==o.type?0:1,s),e.getController().dispatchEvent(o.type,{name:o.type,additional_info:{uuid:a,name:"APX-PR3VI3W-CAMPGAIN"}})}else if(o.hasOwnProperty("messages")){var l=[],c=[];o.messages.forEach((function(t){"SURVEY"!==t.meta.type?c.push(t):l.push(t)})),c.length>0&&t.handleResponse(0,{configs:c}),l.length>0&&t.handleResponse(1,{configs:l})}}catch(t){console.error(t)}})),c(this,"lbNi",(function(t){var i=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.testDeviceData.name,o='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="48" height="29.14" style="width:17px;position:absolute;top:7px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n<div class="apx-cr" style="gap:0">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(i?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(i?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(i&&n.isSelectionMode?"none":i?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(i&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),r=document.getElementById("apx-wr");r&&r.remove&&r.remove();var a=document.createElement("div");a.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",a.setAttribute("id","apx-wr"),a.innerHTML=o,document.body.appendChild(a),n.ZcGj=a;var s=document.getElementById("apx-bh"),l=function(){a.style.opacity=.5,s.style.display="none"},c=setTimeout(l,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(c),s.style.display="flex"})),a.addEventListener("mouseout",(function(){c=setTimeout(l,3e3)}));var d=document.getElementById("apx-a"),p=document.getElementById("apx-r"),u=document.getElementById("apx-ev"),h=document.getElementById("apx-dv");d.onclick=function(){return n.Vtrl(t)},p.onclick=function(){fetch(qi.replace("<aid>",e.getSiteId()).replace("<uid>",n.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(t){return t.ok&&200===t.status?t.json():null})).then((function(t){t&&(e.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,d.style.display="block",p.style.display=u.style.display=h.style.display="none",n.isSelectionMode&&n.oEGe())})).catch((function(t){return console.error(t)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",Ii,!0),window.addEventListener("mouseout",Di,!0),n.clickListener=function(t){return function(t,e){var n=t.target;n&&n.classList.contains("apx-highlight")&&(t.preventDefault(),t.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,e&&e(n))}(t,(function(t){var e=n.UltU(t,!0),i=n.Rfls(t,!0);n.ZTKo("view",location.href,e+"___"+i)}))},window.addEventListener("click",n.clickListener,!0),n.MjTf(!1),u.style.display="none",h.style.display="block"};var f=function(){n.oEGe(),h.style.display="none",u.style.display="block"};h.onclick=f,n.ZcGj.addEventListener("preview",f),n.ZcGj.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(t){var e,n=window.innerHeight-8,i=8,o=window.innerWidth-8,r=8,a=0,s=0,l=0,c=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,l=n.clientX,c=n.clientY,e=t.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=l-d.clientX,s=c-d.clientY,l=d.clientX,c=d.clientY;var p=t.offsetLeft-a,u=t.offsetTop-s;p<i||u<r||p+e.width>o||u+e.height>n||(t.style.top=t.offsetTop-s+"px",t.style.left=t.offsetLeft-a+"px",t.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(t.id+"-h")?document.getElementById(t.id+"-h").onmousedown=d:t.onmousedown=d}(a)})),c(this,"oEGe",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ni;if(n.isSelectionMode){window.removeEventListener("mouseover",Ii,!0),window.removeEventListener("mouseout",Di,!0),window.removeEventListener("click",n.clickListener,!0);for(var e=document.querySelectorAll(".apx-highlight"),i=0;i<e.length;i++){var o=e[i];o.classList.remove("apx-highlight")}n.MjTf(!0,t),n.isSelectionMode=!1}})),c(this,"MjTf",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni;n.kwBI.style.visibility="visible",t?(n.kwBI.innerHTML=e,n.kwBI.style.opacity=1):(n.kwBI.innerHTML=Bi,n.kwBI.style.opacity=1),setTimeout((function(){n.kwBI.style.opacity=0,n.kwBI.style.visibility="hidden"}),1e3)})),c(this,"Vtrl",(function(t){var i=O(500,20,{}),o=i.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var r=e.getController().getDevInfo(),a=e.getController().getUserAttributes().apx_browser,s=r.hardware_model,l=r.os_version,c=r.id,d="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(s," - ").concat(l,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(a,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(c,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');i.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=d;var p,u,h=document.getElementById("apx-ii");n.testDeviceData&&(h.value=null!==(p=null===(u=n.testDeviceData)||void 0===u?void 0:u.name)&&void 0!==p?p:"");h.onfocus=function(){h.parentNode.classList.add("apx-iid-f"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")},h.onblur=function(){h.parentNode.classList.remove("apx-iid-f"),h.parentNode.parentNode.children[0].classList.remove("apx-il-f")},h.oninput=function(){""!==h.value.trim()?v.removeAttribute("disabled"):v.setAttribute("disabled","")},setTimeout((function(){i.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){o.classList.toggle("open"),setTimeout((function(){i.parentNode.removeChild(i)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var v=document.getElementById("apx-bd");v.onclick=function(){o.children[1].classList.add("apx-loading"),e.getController().makePostRequest(ji.replace("<aid>",e.getSiteId()),{model:s,id:c,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var i={id:c,name:h.value};e.getController().persistToStorage("_apx_td",i,!0),n.testDeviceData=i,n.ZTKo("select","".concat(h.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.ZcGj.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(zi.replace("<aid>",e.getSiteId()).replace("<uid>",c)),a=new EventSource(Hi.replace("<aid>",e.getSiteId()).replace("<uid>",c));r.onmessage=a.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.lHvX(t,e.data)},f()}),(function(){}))}})),c(this,"ZTKo",(function(t,i,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=e.getController().getDevInfo(),l={device_info:{id:s.id,hardware_model:s.hardware_model,os_version:s.os_version,width:s.dimensions.width,height:s.dimensions.height},screen:{image:t,navigation:i,orientation:o},layout:[]};e.getController().makePostRequest(Pi.replace("<aid>",e.getSiteId()).replace("<uid>",n.zADt),l,{},r,a)})),c(this,"UltU",(function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return"";for(var i=[],o=t;o;){var r=n.ZFrw(o,!!e,o===t);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),i.join(" > ")})),c(this,"ZFrw",(function(t,e,n){if(t.nodeType!==Node.ELEMENT_NODE)return null;var i=t.getAttribute("id");if(e){if(i)return new Ri(l(i),!0);var o=t.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new Ri(t.nodeName.toLowerCase(),!0)}var r=t.nodeName.toLowerCase();if(i)return new Ri(r.toLowerCase()+l(i),!0);var a=t.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Ri(r.toLowerCase(),!0);function s(t){var e=t.getAttribute("class");return e?e.split(/\s+/g).filter(Boolean).map((function(t){return"$"+t})):[]}function l(t){return"#"+c(t)}function c(t){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(t))return t;var e=/^(?:[0-9]|-[0-9-]?)/.test(t),n=t.length-1;return t.replace(/./g,(function(t,i){return e&&0===i||!function(t){return!!/[a-zA-Z0-9_-]/.test(t)||t.charCodeAt(0)>=160}(t)?function(t,e){return"\\"+function(t){var e=t.charCodeAt(0).toString(16);1===e.length&&(e="0"+e);return e}(t)+(e?"":" ")}(t,i===n):t}))}for(var d=s(t),p=!1,u=!1,h=-1,f=-1,v=a.children,m=0;(-1===h||!u)&&m<v.length;++m){var g=v[m];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==t){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var b=new Set(d);if(b.size)for(var y=s(g),x=0;x<y.length;++x){var w=y[x];if(b.has(w)&&(b.delete(w),!b.size)){u=!0;break}}else u=!0}}else h=f}var _=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&t.getAttribute("type")&&!t.getAttribute("id")&&!t.getAttribute("class")&&(_+='[type="'+t.getAttribute("type")+'"]'),u)_+=":nth-child("+(h+1)+")";else if(p)for(var C in d)_+="."+c(d[C].substr(1));return new Ri(_,!1)})),c(this,"Rfls",(function(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";for(var i=[],o=t;o;){var r=n.ATZr(o,e);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),(i.length&&i[0].optimized?"":"/")+i.join("/")})),c(this,"ATZr",(function(t,e){var i,o=n.AFJm(t);if(-1===o)return null;switch(t.nodeType){case Node.ELEMENT_NODE:if(e&&t.getAttribute("id"))return new Ri('//*[@id="'+t.getAttribute("id")+'"]',!0);i=t.localName;break;case Node.ATTRIBUTE_NODE:i="@"+t.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:i="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:i="processing-instruction()";break;case Node.COMMENT_NODE:i="comment()";break;case Node.DOCUMENT_NODE:default:i=""}return o>0&&(i+="["+o+"]"),new Ri(i,t.nodeType===Node.DOCUMENT_NODE)})),c(this,"AFJm",(function(t){function e(t,e){return t===e||(t.nodeType===Node.ELEMENT_NODE&&e.nodeType===Node.ELEMENT_NODE?t.localName===e.localName:t.nodeType===e.nodeType||(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType)===(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType))}var n,i=t.parentNode?t.parentNode.children:null;if(!i)return 0;for(var o=0;o<i.length;++o)if(e(t,i[o])&&i[o]!==t){n=!0;break}if(!n)return 0;var r=1;for(o=0;o<i.length;++o)if(e(t,i[o])){if(i[o]===t)return r;++r}return-1}))})),Ri=function(t,e){this.value=t,this.optimized=e||!1};Ri.prototype={toString:function(){return this.value}};var Wi=window.ApxorLogger,Ui=new(l((function t(){var n=this;a(this,t),c(this,"version",135),c(this,"DMpM",{}),c(this,"isShowingAction",!1),c(this,"currentAction",null),c(this,"qbVz",new ki),c(this,"XuRO",new Oi),c(this,"YYUN",new Vi),c(this,"mjEp",null),c(this,"tsDq",{}),c(this,"init",(function(t){n.mjEp=t;var i=e.getController(),o=Yi.getInstance(),r=e.getSiteId(),a=function(t,e){var n=function(n){return n.replace("<app_id>",t).replace("<u_id>",e)};return{rtaValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version=139"),rtaSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version=139"),surveysValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version=139"),surveysSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version=139"),configSSEUrl:n("https://server.apxor.com/v1/sse/art-config?appId=<app_id>&deviceId=<u_id>&isExperiment=true")}}(r,e.getClientId()),s=a.rtaValidateUrl,l=a.rtaSyncUrl,c=a.surveysValidateUrl,d=a.surveysSyncUrl,p=a.configSSEUrl;o.initialize(),o.fetch(0,s,l,n.handleResponse),o.fetch(1,c,d,n.handleResponse),new EventSource(p).onmessage=function(t){try{if(t&&t.data&&"{}"!==t.data&&null!=t&&t.data){var e=JSON.parse(null==t?void 0:t.data);n.QChT(0,e.messages)}}catch(t){Wi.error("SSE art-config parsing error:",t)}},i.registerForEvent("IN_LINE",n.handleInLine),i.registerForEvent("IN_APP",n.handleInApp),i.registerForEvent("SURVEY",n.handleSurvey),i.registerForEvent("ONBOARDING",n.handleOnboarding),n.YYUN.init(r,n),Wi.debug("Registered for events")})),c(this,"show",(function(t,e,i,o){try{if("APX-PR3VI3W-CAMPGAIN"!==o&&n.getFrequencyCount(i)<=0)return void Wi.error("Campaign limit reached");if(null!==n.currentAction&&void 0!==n.currentAction)return void Wi.error("An action already being shown");var r=JSON.parse(t),a={};a.auto_dismiss=e>0,a.duration=e;var s=function(){n.logActionEvent("inline_shown",i,o),n.updateCount(i),n.isShowingAction=!0},l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,t||n.logActionEvent("inline_dismissed",i,o)},c=r.display_type,d={configId:i,configName:o};"inline"===c?n.currentAction=si(r,[],a,d,n,s,l):"coach_mark"===c?function(t,e,n,i,o,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(t&&t.delay<=0){var s=pi(t,e,n,i,o);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=pi(t,e,n,i,o);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),t.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}(r,d,a,s,l,(function(t){n.currentAction=t})):Wi.error("Unknown type",c)}catch(t){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(t)}})),c(this,"logActionEvent",(function(t,i,r){var a=n.AJik(i)._attr;e.logEvent(t,o({id:i,message_name:r},a))})),c(this,"logClientEvent",(function(t,n){e.logClientEvent(t,n)})),c(this,"updateCount",(function(t){Yi.getInstance().updateCount(t)})),c(this,"getFrequencyCount",(function(t){Yi.getInstance().getFrequencyCount(t)})),c(this,"resetFrequencyCounts",(function(){Yi.getInstance().resetFrequencyCounts()})),c(this,"oZvi",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(t){}finally{n.currentAction=null}}})),c(this,"handleResponse",(function(t,e){""===t?(Wi.debug("No configs available"),n.mjEp&&n.mjEp()):(Wi.debug("Fetched config from server",t),n.zDvi(t,e),Yi.getInstance().parse(e),n.mjEp&&n.mjEp())})),c(this,"QChT",(function(t,e){Wi.debug("Fetched config from SSE"),e&&e.length>0&&(n.zDvi(t,{configs:e}),Yi.getInstance().parse({configs:e}))})),c(this,"zDvi",(function(t,e){if(A(e)&&A(e.configs)){var i=e.configs;if(!Array.isArray(i))return;for(var o=0;o<i.length;o++){var r=i[o],a=r._id,s=r.meta,l=s.name,c=s.type,d=r.ui;1===t?d=n.qbVz.parse(a,l,d):"IN_APP"===c&&(d=n.XuRO.parse(a,l,d)),null!==d?n.DMpM[a]={ui:d,uis:r.uis,terminationConfig:r.terminate_info,name:l}:console.warn("Failed to parse the config",a)}Wi.debug("Configs: ",n.DMpM)}})),c(this,"handleInLine",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.DMpM[e]){var i=n.DMpM[e],o=i.ui,r=i.terminationConfig,a=i.name;n.show(JSON.stringify(o),r.auto_dismiss?r.duration:-1,e,a)}}})),c(this,"handleInApp",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.DMpM[e]){var i=n.DMpM[e].ui;setTimeout((function(){i.itfN(e)}),0)}}})),c(this,"handleSurvey",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.DMpM[e]){n.DMpM[e].ui.uDTc((function(t){n.updateCount(e),n.isShowingAction=!0,n.currentAction=t}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),c(this,"handleOnboarding",(function(t){})),c(this,"AJik",(function(t){var e;return null===(e=Yi.getInstance())||void 0===e?void 0:e.getCampaignMetaFromQueryEngine(t)}))})));window.ApxorRTM=Ui;var Yi=new(function(){function t(){a(this,t)}return l(t,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),t}());try{void 0===t&&null===t||(t.default=Ui,module.exports=t.default)}catch(t){}t.ceWrapper=Yi,t.default=Ui,Object.defineProperty(t,"__esModule",{value:!0})}));
44
+ */;!function(t){if(at){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)}}(".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:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.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:-8px}.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:-8px}.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 nn=pn("shepherd"),on=pn("shepherd-has-title"),rn={computeStyle:{enabled:!0,fn:function(t){return t.styles=X({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:nn},an={positionFixed:!0,modifiers:{addShepherdClass:nn}};function sn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function cn(){if(ot(en))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=un.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function dn(){var t=this.options.attachTo||{},e=X({},t);if(it(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 pn(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function un(t){if(!t.element)return fn.call(this);var e=hn.call(this,t);return en(t.element,e)}function hn(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return X(e,this.options.tippyOptions),this.options.title&&X(an.modifiers,{addHasTitleClass:on}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&X(an,this.options.tippyOptions.popperOptions),e.popperOptions=an,e}function fn(){var t=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){U(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&&X(an.modifiers,{addHasTitleClass:on});var e=X({},an,t.popperOptions,{modifiers:X(rn,t.popperOptions.modifiers)});return t.popperOptions=e,en(document.body,t)}var vn=function(){function t(){j(this,t)}return Y(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];ot(this.bindings)&&(this.bindings={}),ot(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(ot(this.bindings)||ot(this.bindings[t]))return!1;ot(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(!ot(this.bindings)&&this.bindings[t]){var n=ln(Array.prototype.slice.call(arguments));this.bindings[t].forEach((function(i,o){var r=i.ctx,a=i.handler,s=i.once,l=r||e;a.apply(l,n),s&&e.bindings[t].splice(o,1)}))}}}]),t}();function mn(t){var e=this;return function(n){if(e.isOpen()){var i=e.el&&n.target===e.el;(!ot(t)&&n.target.matches(t)||i)&&e.tour.next()}}}function gn(){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=mn.call(this,n);try{i=document.querySelector(n)}catch(t){}if(!ot(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 bn(t,e){var n=this;t.events=t.events||{},ot(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach((function(t){var i=tt(t,2),o=i[0],r=i[1];if(it(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 yn(t){var e=this;t.addEventListener("click",(function(t){t.preventDefault(),e.cancel()}))}function xn(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 wn=function(t,e){return t(e={exports:{}},e.exports),e.exports}((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||l,scrollIntoView:i.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?v.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"!==r(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"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):v.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;v.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"!==r(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?(v.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 l(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!==r(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===r(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function p(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function u(t){var e=d(t,"Y")&&p(t,"Y"),n=d(t,"X")&&p(t,"X");return e||n}function h(t){for(;t!==e.body&&!1===u(t);)t=t.parentNode||t.host;return t}function f(e){var n,i,o,r,s=(a()-e.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),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(f.bind(t,e))}function v(n,i,r){var s,c,d,p,u=a();n===e.body?(s=t,c=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=o.scroll):(s=n,c=n.scrollLeft,d=n.scrollTop,p=l),f({scrollable:s,method:p,startTime:u,startX:c,startY:d,x:i,y:r})}}}}));wn.polyfill;wn.polyfill();var _n,Cn=(_n=0,function(){return++_n}),En=function(t){function e(t,n){var i;return j(this,e),(i=$(this,J(e).call(this,t,n))).tour=t,xn.call(K(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=gn.bind(K(i)),i.bindButtonEvents=bn.bind(K(i)),i.bindCancelLink=yn.bind(K(i)),i.setupTooltip=cn.bind(K(i)),i.parseAttachTo=dn.bind(K(i)),$(i,K(i))}return G(e,t),Y(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=sn('<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=sn('<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=sn('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),i=this.options.text;nt(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(it(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=tt(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=sn('<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),ot(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(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),et(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(t){}}},{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(){ot(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;nt(this.options.scrollToHandler)?this.options.scrollToHandler(e):et(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(Cn()),n&&Object.entries(n).forEach((function(e){var n=tt(e,2),i=n[0],o=n[1];t.on(i,o,t)}))}},{key:"show",value:function(){var t=this;if(nt(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!ot(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}(vn),kn="http://www.w3.org/2000/svg",An="shepherdModalOverlayContainer",Ln="shepherdModalMask",Mn="shepherdModalMaskRect",Tn="shepherdModalMaskOpening",Sn="shepherd-modal-is-visible",On="shepherd-modal-target";function Dn(){var t,e=((t=document.createElementNS(kn,"svg")).setAttributeNS(null,"id",An),t),n=document.createElementNS(kn,"defs"),i=function(){var t=document.createElementNS(kn,"mask");return Fn(t,{height:"100%",id:Ln,width:"100%",x:"0",y:"0"}),t}(),o=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{fill:"#FFFFFF",height:"100%",id:Mn,width:"100%",x:"0",y:"0"}),t}(),r=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{fill:"#000000",id:Tn}),t}(),a=function(){var t=document.createElementNS(kn,"rect");return Fn(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(Ln,")")),t}();return i.appendChild(o),i.appendChild(r),n.appendChild(i),e.appendChild(n),e.appendChild(a),e}function In(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,l=i.left,c=i.top;Fn(e,{x:(o||l)-n,y:(r||c)-n,width:a+2*n,height:s+2*n})}}function Nn(t){t.preventDefault()}function Bn(t){t.stopPropagation()}function Fn(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function Pn(t){var e=t.options.attachTo;if(!e)return null;var n=R(e);return"string"===n?function(t){var e=tt(t.split(" "),1)[0];return document.querySelector(e)}(e):"object"===n?function(t){var e=t.element;if(e instanceof HTMLElement)return e;if(e instanceof SVGElement)return e;try{return document.querySelector(e)}catch(t){}return null}(e):null}function zn(){"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(An));window.addEventListener("touchmove",Nn,{passive:!1}),t&&t.addEventListener("touchmove",Bn,!1)}var Hn=function(){function t(e){return j(this,t),this.createModalOverlay(),this.options=e,this}return Y(t,[{key:"cleanup",value:function(){try{var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(Sn)}catch(t){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||Dn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(Tn)),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(Sn),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(Sn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e,n,i,o,r,a=this._modalOverlayOpening,s=Pn(t),l=t.options.modalOverlayOpeningPadding;s?(In(s,a,l),this._onScreenChange=(n=In.bind(this,s,a,l),i=0,function(){var t=this,e=arguments,a=function(){r=null,o||n.apply(t,e)},s=o&&!r;clearTimeout(r),r=setTimeout(a,i),s&&n.apply(t,e)}),zn.call(this)):(e=this._modalOverlayOpening)&&e instanceof SVGElement&&Fn(e,{height:"0",x:"0",y:"0",width:"0"})}}]),t}(),qn=!1;if("undefined"!=typeof window){var Zn={get passive(){qn=!0}};window.addEventListener("testPassive",null,Zn),window.removeEventListener("testPassive",null,Zn)}var Vn,Rn,jn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Wn=[],Yn=!1,Un=-1,Xn=function(t){return Wn.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},Gn=function(t){var e=t||window.event;return!!Xn(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},Jn=function(t,e){if(jn){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!Wn.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};Wn=[].concat(p(Wn),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(Un=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-Un;!Xn(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?Gn(t):t.stopPropagation())}(e,t)},Yn||(document.addEventListener("touchmove",Gn,qn?{passive:!1}:void 0),Yn=!0)}}else{!function(t){setTimeout((function(){if(void 0===Rn){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(Rn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Vn&&(Vn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(e);var i={targetElement:t,options:e||{}};Wn=[].concat(p(Wn),[i])}},Qn=function(){jn?(Wn.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),Yn&&(document.removeEventListener("touchmove",Gn,qn?{passive:!1}:void 0),Yn=!1),Wn=[],Un=-1):(setTimeout((function(){void 0!==Rn&&(document.body.style.paddingRight=Rn,Rn=void 0),void 0!==Vn&&(document.body.style.overflow=Vn,Vn=void 0)})),Wn=[])},Kn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function $n(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",Nn,{passive:!1})}var ti,ei=function(){var t=0;return function(){return++t}}(),ni=new vn,ii=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,e),t=$(this,J(e).call(this,n)),xn.call(K(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=K(t),ni.trigger(n,e)}))})),t.modal=new Hn(n),t._setTooltipDefaults(),t._setTourID(),$(t,K(t))}return G(e,t),Y(e,[{key:"addStep",value:function(t,e){var n,i;return ot(e)?i=t:(n=t,i=e),i instanceof En?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){var e;Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),$n.call(this),(e=this.tourObject)&&e.steps.forEach((function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=Pn(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})),this.trigger(t),ni.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Qn(),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 ni.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(it(e)||"number"==typeof e)&&(t.id=e.toString()),t=X({},this.options.defaultStepOptions,t),new En(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=it(t)?this.getById(t):this.steps[t];if(n){this._updateStateBeforeShow();var i=nt(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&&Jn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),ni.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e,n,i=Pn(t);i&&(e=i,(n=document.querySelector("".concat(On)))&&n.classList.remove(On),e.classList.add(On),t.options.highlightClass&&i.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(i.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(){en.setDefaultProps(Kn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=ei();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}(vn);X(ni,{Tour:ii,Step:En,Evented:vn});var oi=function(t){return 50===t?10:16},ri=function(t,e){switch(t.toLowerCase()){case"top":return"translateY(".concat(oi(e)-26,"px)");case"right":return"translateX(".concat(oi(e),"px)");case"bottom":return"translateY(".concat(oi(e),"px)");case"left":return"translateX(".concat(oi(e)-26,"px)")}},ai=function(t,e,n,i,o){var r,a=t.animation,s=void 0===a?{}:a,l=t.bg_color,c=void 0===l?"black":l,d=t.border,p=void 0===d?{}:d,u=t.buttons_config,h=void 0===u?[]:u,f=t.button_position,v=void 0===f?"right":f,m=t.button_direction,g=void 0===m?"horizontal":m,b=t.corners,y=void 0===b?{}:b,x=t.shadow,w=void 0===x?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":x,_=t.opacity,C=void 0===_?1:_,E=t.dismiss_outside_touch,k=void 0!==E&&E,A=t.escapeWithReference,M=void 0!==A&&A,O=t.dismiss_target_touch,I=void 0===O||O,N=t.position,B=void 0===N?"TOP":N,F=t.text_config,z=void 0===F?{}:F,H=t.title_config,q=void 0===H?{}:H,Z=t.view_id,V=t.show_shadow,R=void 0!==V&&V,j=t.show_close_icon,W=void 0!==j&&j,Y=t.dim_background_color,U=void 0===Y?"#0a0a0a":Y,X=t.dim_background_opacity,G=void 0===X?.5:X,J=t.layout_type,Q=void 0===J?"default":J,K=t.pb_color,$=void 0===K?"orange":K,tt=t.index,et=void 0===tt?0:tt,nt=t.total,it=void 0===nt?1:nt,ot=(null==z?void 0:z.alignment)||"center",rt=(null==q?void 0:q.alignment)||"center",at=e.configId,st=e.configName,lt=S(h,ti,at,st),ct=lt.buttons_array,dt=lt.buttons_css,pt={color:z.color,fontSize:z.size,fontFamily:z.font_family,fontStyle:z.style};if(z.margin_config&&Object.keys(z.margin_config).length>0){var ut=z.margin_config;pt.margin="".concat(ut.top,"px ").concat(ut.right,"px ").concat(ut.bottom,"px ").concat(ut.left,"px")}var ht=z.style;"bold"===ht&&(pt.fontWeight=ht);var ft,vt={color:q.color,fontSize:q.size,fontFamily:q.font_family,fontStyle:q.style};if(q.margin_config&&Object.keys(q.margin_config).length>0){var mt=q.margin_config;vt.margin="".concat(mt.top,"px ").concat(mt.right,"px ").concat(mt.bottom,"px ").concat(mt.left,"px")}switch("bold"===(ht=q.style)&&(pt.fontWeight=ht),Q){case"with_progress":ft='\n<div>\n <div style="height: 6px;background: '.concat($,";width: ").concat((et+1)/it*100,"%;border-radius: ").concat(y.enabled?y.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(q?"padding: 10px 10px 0 10px":"",'">\n ').concat(q?'<h3 class="shepherd-title" id="apxor-step-'.concat(et,'-label" style="padding: 0 !important;padding-right: 0.7em;text-align:').concat(rt,';">').concat(P(null==q?void 0:q.text,null==q?void 0:q.segments,null==q?void 0:q.quote),"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px;text-align:').concat(ot,';">').concat(P(null==z?void 0:z.text,null==z?void 0:z.segments,null==z?void 0:z.quote),"</p>\n</div>\n "),ft=(new DOMParser).parseFromString(ft,"text/html").body.children[0];break;default:ft=(null==z||null===(r=z.segments)||void 0===r?void 0:r.length)>0?P(null==z?void 0:z.text,null==z?void 0:z.segments,null==z?void 0:z.quote):[z&&z.text?z.text:"Tap here"]}var gt={"border-radius":y.enabled?y.width:0,background:c,"border-color":p.color,"border-width":p.width},bt=null;try{bt=document.querySelector("#"+Z)}catch(t){}if(!bt)try{bt=document.querySelector(Z)}catch(t){}if(bt||(bt=L(Z)),bt){var yt=document.createElement("span");yt.setAttribute("id","apxor-style-"+at+"-step-"+et);var xt=document.createElement("style");xt.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=G?G:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=U?U:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\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.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\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.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(W?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n text-align:').concat(rt,";\n color: ").concat(vt.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(vt.fontSize,"px;font-family: ").concat(vt.fontFamily,";\n font-weight: ").concat("bold"!==vt.fontStyle?"normal":vt.fontStyle,";font-style: ").concat("italic"===vt.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===Q?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n text-align:').concat(ot,";\n line-height: 1em;").concat("default"===Q?"padding:14px;padding-top:4px":"","\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);color: ").concat(pt.color,";\n opacity: 0.75;text-decoration: none\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.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(pt.fontSize,"px;font-family: ").concat(pt.fontFamily,"; \n font-weight: ").concat("bold"!==pt.fontStyle?"normal":pt.fontStyle,";\n font-style: ").concat("italic"===pt.fontStyle?"italic":"unset",";\n color: ").concat(pt.color,";line-height: ").concat("default"===Q?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(T(dt,v,g,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(ri(B,0),"; }\n 50% { transform: ").concat(ri(B,50),"; }\n 100% { transform: ").concat(ri(B,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(ri(B,0),"; }\n 50% { transform: ").concat(ri(B,50),"; }\n 100% { transform: ").concat(ri(B,100),"; }\n}\n.tippy-tooltip.apxor-").concat(at,"-step-").concat(et,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(R?w:"none",";color: ").concat(pt.color,";\n opacity: ").concat(C,";border-radius: ").concat(gt["border-radius"]+"px",";\n background-color: ").concat(gt.background,";").concat(function(t){switch(t.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(B),";\n}\n.apxor-").concat(at,"-step-").concat(et,"-theme .tippy-roundarrow {\n fill: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(gt.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(gt.background,";\n}\n "),yt.appendChild(xt),bt.parentNode.insertBefore(yt,bt);var wt=function(t){return function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(o)try{ti.complete(),i&&t.logActionEvent("InlineTargetViewClicked",e,n)}catch(e){t.isShowingAction=!1,t.currentAction=null,console.error(e)}}(n,at,st,!0,I)},_t=function(){var t;try{var e;null===(e=ti)||void 0===e||e.complete()}catch(t){console.error(t)}Et.disconnect(),kt.disconnect();try{var n,i=document.getElementById("apxor-style-"+at+"-step-"+et);null==i||null===(n=i.parentNode)||void 0===n||n.removeChild(i)}catch(t){}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(t){}o&&o(null===(t=ti)||void 0===t?void 0:t._isCancelled),bt.removeEventListener("click",wt)},Ct=!1,Et=new MutationObserver((function(){if(!document.body.contains(bt)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(et,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),_t()}})),kt=new IntersectionObserver((function(){var t=D(bt);if(!t&&Ct){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(et,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),_t()}t&&(Ct=!0)})),At=P(null==q?void 0:q.text,null==q?void 0:q.segments,null==q?void 0:q.quote);ti.addStep("apxor-step-"+et,{title:"default"===Q?""===At?null:At.outerHTML:null,text:ft,classes:"apxor-".concat(at,"-step-").concat(et,"-theme"),attachTo:{element:bt,on:B.toLowerCase()},showCancelLink:W,buttons:ct,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:k,escapeWithReference:M,theme:"apxor-".concat(at,"-step-").concat(et),onShow:function(){i&&i(),bt.addEventListener("click",wt),Et.observe(document.body,{childList:!0,subtree:!0}),kt.observe(bt)},onHidden:_t}})}else console.warn("Element not found with id or path")},si=function(t,e,n,i,o,r,a){var s,l,c=Array.isArray(e)&&e.length>0,d=t.delay,p=t.dim_background,u=t.view_id,h=t.find_interval,f=void 0===h?0:h,v=t.max_find_interval,m=void 0===v?1e4:v,g=t.scrollToView,b=void 0!==g&&g;"Script"===(null===(s=t.title_config)||void 0===s?void 0:s.text)&&(t.title_config.isDynamicText?N(t.title_config):B(t.title_config)),"Script"===(null===(l=t.text_config)||void 0===l?void 0:l.text)&&(t.text_config.isDynamicText?N(t.text_config):B(t.text_config));var y=!1;b&&(y={behavior:"smooth",block:"center"}),ti=new ni.Tour({defaultStepOptions:{scrollTo:y},useModalOverlay:c||p});var x=function(){var t=document.getElementById(u);if(!t)try{t=document.querySelector(u)}catch(t){}return t||(t=L(u)),t},w=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(o.currentAction=null)}catch(t){return o.isShowingAction=!1,void(o.currentAction=null)}if(c?e.forEach((function(t,e){var n=t.ui;ai(n,i,o,r,a)})):ai(t,i,o,r,a),o.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{ti.start(),o.isShowingAction=!0}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}};return setTimeout((function(){var t=x();t?w(t):(console.warn("Element with id:".concat(u," not found.")),f?(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval((function(){var i=x();i?(clearInterval(n),w(i)):new Date-e>m&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")),o.currentAction=null)}),f)}(u)):o.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{ti.complete()}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}}),d+n.duration),ti.complete},li=H(10);function ci(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 di(t){var e=t.opacity,n=t.type,i=document.createElement("div");i.setAttribute("id",li+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="99%";var o="";return o="circle"===n?function(t){var e=t.bg_color,n=t.opacity,i=t.innerRadius,o=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,l=t.outerCircleCenterY;return ci('\n <rect\n x="'.concat(s-a,'"\n y="').concat(l-a<0?0:l-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(l,'" \n r="').concat(a,'" \n fill="').concat(e,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}(t):function(t){var e=t.bg_color,n=t.opacity,i=t.targetElementLeft,o=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return ci('\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 '))}(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 pi(t,e,n,i,o){var r,a,s=t.bg_color,l=t.buttons_config,c=void 0===l?[]:l,d=t.button_position,p=t.button_direction,u=void 0===p?"horizontal":p,h=t.coach_mark_details,f=h.has_ripple,v=void 0!==f&&f,m=h.type,g=void 0===m?"circle":m,b=t.delay,y=t.dismiss_outside_touch,x=void 0!==y&&y,w=t.opacity,_=void 0===w?.8:w,C=t.position,E=void 0===C?"TOP":C,k=t.text_config,M=t.title_config,O=void 0===M?null:M,I=t.view_id,F=t.scroll_to_view,P=void 0!==F&&F,q=e.configId,Z=e.configName;"Script"===(null===(r=t.title_config)||void 0===r?void 0:r.text)&&(t.title_config.isDynamicText?N(t.title_config):B(t.title_config)),"Script"===(null===(a=t.text_config)||void 0===a?void 0:a.text)&&(t.text_config.isDynamicText?N(t.text_config):B(t.text_config));var V=document.getElementById(I);if(!V)try{V=document.querySelector(I)}catch(t){}if(V||(V=L(I)),V)if(li=H(10),P||D(V)){var R=!1,j=new MutationObserver((function(){document.body.contains(V)||nt()})),W=new IntersectionObserver((function(){var t=D(V);!t&&R&&nt(),t&&(R=!0)})),Y=function(t){var e=t.getBoundingClientRect(),n=e.left+window.scrollX,i=e.top+window.scrollY;return{left:n,top:i,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY,x:A(e.x)?e.x+window.scrollX:n,y:A(e.y)?e.y+window.scrollY:i,width:e.width,height:e.height}}(V),U=Y.left,X=void 0===U?0:U,G=Y.top,J=void 0===G?0:G,Q=Y.width,K=void 0===Q?0:Q,$=Y.height,tt=void 0===$?0:$,et=Y.left<window.innerWidth/2;if(0!==tt&&0!==K){var nt=function(){j.disconnect(),W.disconnect(),xt.parentNode.removeChild(xt),it.parentNode.removeChild(it),lt.parentNode.removeChild(lt),o&&o(),wt&&clearTimeout(wt)},it=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,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,l=null;if(!e&&t?l=z(t,li):e&&t&&((l=document.createElement("div")).style.display="inline-flex",l.style.flexDirection="column",l.style.visibility="hidden",l.style.textAlign=(null==t?void 0:t.alignment)||"center",l.style.lineHeight="26px",l.style.letterSpacing="0.01em",l.appendChild(z(e,li)),l.appendChild(z(t,li))),n&&n.length>0){var c=document.createElement("footer");c.className="shepherd-footer",c.style.zIndex=99999,c.style.margin="8px",c.style.padding="0";var d=function(){s&&s()},p=S(n,{next:d,complete:d,cancel:d},r,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=T(h,i,o),c.appendChild(f),u.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=(t.segments,document.createElement("button"));o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},c.appendChild(o)}));var v=document.createElement("div");v.style.display="inline-flex",v.style.flexDirection="column",v.style.visibility="hidden",v.appendChild(l),v.appendChild(c),l=v}return l.style.position="absolute",document.body.appendChild(l),l}(k,O,c,d,u,q,Z,nt),ot=it.offsetWidth,rt=it.offsetHeight,at=0,st=0;k&&k.margin_config&&(at=Number(k.margin_config.left)||0,st=Number(k.margin_config.right)||0);var lt=function(t,e,n,i,o,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,l=n-(a-t)/2,c=i-(a-e)/2;"circle"!=o&&(a=t,s=e,l=n,c=i);var d=document.createElement("div");return d.setAttribute("id",li+"-ripple-div"),r&&(d.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}\n.ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;left: -5px;\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>")}(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(l,"px"),d.style.top="".concat(c,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}(K,tt,X,J,g,v),ct=X+K/2,dt=J+tt/2,pt=Math.sqrt(Math.pow(K,2)+Math.pow(tt,2))/2,ut=pt+Math.max(ot,K)/2+10,ht=-1,ft=-1,vt=-1,mt=-1,gt=dt-pt,bt=dt+pt;switch(E){case"TOP":ft=(vt=ct-ot/2)<0?5:vt,ht="circle"===g?dt-pt-rt-25:J-rt-25,mt=bt-Math.abs(bt-ht)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":ft=(vt=ct-ot/2)<0?5:vt,mt=gt+((ht="circle"===g?dt+pt+25:J+tt+25)+rt-gt)/2}if(-1!==ft&&-1!==ht&&-1!==mt){!et&&ft+ot>window.innerWidth&&(ft=window.innerWidth-ot-at-st-10),it.style.left="".concat(ft,"px"),it.style.top="".concat(ht,"px");var yt=((vt=Math.min(X,ft))+Math.max(X+K,ft+ot))/2;(yt=Math.min(yt,document.scrollingElement.scrollWidth))<0&&(yt=0),(mt=Math.min(mt,document.scrollingElement.scrollHeight))<0&&(mt=0);var xt=di({bg_color:s,opacity:_,innerRadius:pt,innerCenterX:ct,innerCenterY:dt,outerRadius:ut,outerCircleCenterX:yt,outerCircleCenterY:mt,targetElementLeft:X,targetElementTop:J,targetElementWidth:K,targetElementHeight:tt,type:g});xt.style.visibility="hidden",lt.style.visibility="hidden",it.style.visibility="hidden";var wt=null,_t=function(t){var e=!t,n=V.getBoundingClientRect();t&&t.clientX>=n.left&&t.clientX<=n.left+n.width&&t.clientY>=n.top&&t.clientY<=n.top+n.height&&(e=!0),(x||e)&&nt()};return n&&!0===n.auto_dismiss&&(wt=setTimeout((function(){return _t()}),b+n.duration)),xt.style.visibility="visible",lt.style.visibility="visible",it.style.visibility="visible",it.childElementCount>0&&(it.children[0].style.visibility="visible"),x&&xt.addEventListener("click",_t),lt.addEventListener("click",_t),P&&("TOP"===E?window.scrollTo({top:mt-ut,behavior:"smooth"}):"BOTTOM"===E&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,mt+ut),behavior:"smooth"})),j.observe(document.body,{childList:!0,subtree:!0}),W.observe(V),i&&i(),_t}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",I)}else console.warn("Element ",I," not in viewport. Can't show");else console.warn("Element not found with id or path: ",I)}var ui=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>\n ','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#7BB65C"/>\n <path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n <path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n </svg>'],hi=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9046C0.617188 4.88216 5.49907 3.24249e-05 11.5221 3.24249e-05C17.5439 3.24249e-05 22.4257 4.88216 22.4257 10.9046C22.4257 16.9269 17.5439 21.809 11.5221 21.809C5.49907 21.809 0.617188 16.9269 0.617188 10.9046Z" fill="#EA8F4D"/>\n <path d="M8.30879 8.87557C8.30879 9.62346 7.94802 10.2299 7.50409 10.2299C7.06145 10.2299 6.70068 9.62346 6.70068 8.87557C6.70068 8.12768 7.06145 7.52116 7.50409 7.52116C7.94802 7.52116 8.30879 8.12768 8.30879 8.87557Z" fill="black"/>\n <path d="M16.3427 8.87557C16.3427 9.62346 15.9832 10.2299 15.5393 10.2299C15.0953 10.2299 14.7358 9.62346 14.7358 8.87557C14.7358 8.12768 15.0953 7.52116 15.5393 7.52116C15.9832 7.52116 16.3427 8.12768 16.3427 8.87557Z" fill="black"/>\n <path d="M7.61719 15.4999C8.95052 13.0405 13.1172 11.9999 15.6172 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9046C0.425781 4.88216 5.30767 3.24249e-05 11.3307 3.24249e-05C17.3524 3.24249e-05 22.2343 4.88216 22.2343 10.9046C22.2343 16.9269 17.3524 21.809 11.3307 21.809C5.30767 21.809 0.425781 16.9269 0.425781 10.9046Z" fill="#F1B052"/>\n <path d="M8.11738 8.87557C8.11738 9.62346 7.75661 10.2299 7.31269 10.2299C6.87004 10.2299 6.50928 9.62346 6.50928 8.87557C6.50928 8.12768 6.87004 7.52116 7.31269 7.52116C7.75661 7.52116 8.11738 8.12768 8.11738 8.87557Z" fill="black"/>\n <path d="M16.1513 8.87557C16.1513 9.62346 15.7918 10.2299 15.3479 10.2299C14.9039 10.2299 14.5444 9.62346 14.5444 8.87557C14.5444 8.12768 14.9039 7.52116 15.3479 7.52116C15.7918 7.52116 16.1513 8.12768 16.1513 8.87557Z" fill="black"/>\n <path d="M8.42578 15.5002C9.92578 14.0001 12.4258 14.0001 13.9258 15.5001" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.20353e-05 10.9049 3.20353e-05C16.9267 3.20353e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#F8C94F"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9046C0.0429688 4.88216 4.92485 3.24249e-05 10.9479 3.24249e-05C16.9696 3.24249e-05 21.8515 4.88216 21.8515 10.9046C21.8515 16.9269 16.9696 21.809 10.9479 21.809C4.92485 21.809 0.0429688 16.9269 0.0429688 10.9046Z" fill="#F6DE4F"/>\n <path d="M7.73457 8.87557C7.73457 9.62346 7.3738 10.2299 6.92987 10.2299C6.48723 10.2299 6.12646 9.62346 6.12646 8.87557C6.12646 8.12768 6.48723 7.52116 6.92987 7.52116C7.3738 7.52116 7.73457 8.12768 7.73457 8.87557Z" fill="black"/>\n <path d="M15.7685 8.87557C15.7685 9.62346 15.409 10.2299 14.965 10.2299C14.5211 10.2299 14.1616 9.62346 14.1616 8.87557C14.1616 8.12768 14.5211 7.52116 14.965 7.52116C15.409 7.52116 15.7685 8.12768 15.7685 8.87557Z" fill="black"/>\n <path d="M13.543 14.3751C12.043 15.8751 9.54297 15.8751 8.04297 14.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9046C0.851562 4.88216 5.73345 3.24249e-05 11.7565 3.24249e-05C17.7782 3.24249e-05 22.6601 4.88216 22.6601 10.9046C22.6601 16.9269 17.7782 21.809 11.7565 21.809C5.73345 21.809 0.851562 16.9269 0.851562 10.9046Z" fill="#D7D55A"/>\n <path d="M8.54316 8.87557C8.54316 9.62346 8.18239 10.2299 7.73847 10.2299C7.29582 10.2299 6.93506 9.62346 6.93506 8.87557C6.93506 8.12768 7.29582 7.52116 7.73847 7.52116C8.18239 7.52116 8.54316 8.12768 8.54316 8.87557Z" fill="black"/>\n <path d="M16.577 8.87557C16.577 9.62346 16.2176 10.2299 15.7736 10.2299C15.3297 10.2299 14.9702 9.62346 14.9702 8.87557C14.9702 8.12768 15.3297 7.52116 15.7736 7.52116C16.2176 7.52116 16.577 8.12768 16.577 8.87557Z" fill="black"/>\n <path d="M15.3516 14.3749C13.8516 17.0001 9.85156 17.0002 7.85156 14.375" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9046C0.660156 4.88216 5.54204 3.24249e-05 11.5651 3.24249e-05C17.5868 3.24249e-05 22.4687 4.88216 22.4687 10.9046C22.4687 16.9269 17.5868 21.809 11.5651 21.809C5.54204 21.809 0.660156 16.9269 0.660156 10.9046Z" fill="#B7CF6A"/>\n <path d="M8.35176 8.87557C8.35176 9.62346 7.99099 10.2299 7.54706 10.2299C7.10442 10.2299 6.74365 9.62346 6.74365 8.87557C6.74365 8.12768 7.10442 7.52116 7.54706 7.52116C7.99099 7.52116 8.35176 8.12768 8.35176 8.87557Z" fill="black"/>\n <path d="M16.3856 8.87557C16.3856 9.62346 16.0262 10.2299 15.5822 10.2299C15.1383 10.2299 14.7788 9.62346 14.7788 8.87557C14.7788 8.12768 15.1383 7.52116 15.5822 7.52116C16.0262 7.52116 16.3856 8.12768 16.3856 8.87557Z" fill="black"/>\n <path d="M15.1602 13.375C14.6602 17.5002 8.16016 17.5003 7.66016 13.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#7BB65C"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],fi=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n <path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n <path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055Z" fill="#646A6F"/>\n <path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168Z" fill="#646A6F"/>\n <path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000334176 11.7135 -0.000334176C17.7353 -0.000334176 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n <path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n <path d="M7.80859 16.4997C8.80859 12.4996 13.8086 10.4996 15.8086 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000334176 11.5221 -0.000334176C17.5439 -0.000334176 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n <path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n <path d="M7.61719 15.4995C8.95052 13.0401 13.1172 11.9996 15.6172 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n <path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n <path d="M8.42578 15.5001C9.92578 14 12.4258 14 13.9258 15.5" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n <path d="M7.73438 15.5003C9.73438 15.5 11.7344 15.4998 14.7344 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9042C0.0429688 4.8818 4.92485 -0.000333786 10.9479 -0.000333786C16.9696 -0.000333786 21.8515 4.8818 21.8515 10.9042C21.8515 16.9266 16.9696 21.8086 10.9479 21.8086C4.92485 21.8086 0.0429688 16.9266 0.0429688 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.73506 8.87521C7.73506 9.6231 7.37429 10.2295 6.93036 10.2295C6.48772 10.2295 6.12695 9.6231 6.12695 8.87521C6.12695 8.12732 6.48772 7.52079 6.93036 7.52079C7.37429 7.52079 7.73506 8.12732 7.73506 8.87521Z" fill="#646A6F"/>\n <path d="M15.7689 8.87521C15.7689 9.6231 15.4095 10.2295 14.9655 10.2295C14.5216 10.2295 14.1621 9.6231 14.1621 8.87521C14.1621 8.12732 14.5216 7.52079 14.9655 7.52079C15.4095 7.52079 15.7689 8.12732 15.7689 8.87521Z" fill="#646A6F"/>\n <path d="M13.543 14.3749C12.043 15.875 9.54297 15.875 8.04297 14.375" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9042C0.851562 4.8818 5.73345 -0.000333786 11.7565 -0.000333786C17.7782 -0.000333786 22.6601 4.8818 22.6601 10.9042C22.6601 16.9266 17.7782 21.8086 11.7565 21.8086C5.73345 21.8086 0.851562 16.9266 0.851562 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.54365 8.87521C8.54365 9.6231 8.18288 10.2295 7.73896 10.2295C7.29631 10.2295 6.93555 9.6231 6.93555 8.87521C6.93555 8.12732 7.29631 7.52079 7.73896 7.52079C8.18288 7.52079 8.54365 8.12732 8.54365 8.87521Z" fill="#646A6F"/>\n <path d="M16.5775 8.87521C16.5775 9.6231 16.218 10.2295 15.7741 10.2295C15.3302 10.2295 14.9707 9.6231 14.9707 8.87521C14.9707 8.12732 15.3302 7.52079 15.7741 7.52079C16.218 7.52079 16.5775 8.12732 16.5775 8.87521Z" fill="#646A6F"/>\n <path d="M15.3516 14.3748C13.8516 17 9.85156 17 7.85156 14.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9042C0.660156 4.8818 5.54204 -0.000333786 11.5651 -0.000333786C17.5868 -0.000333786 22.4687 4.8818 22.4687 10.9042C22.4687 16.9266 17.5868 21.8086 11.5651 21.8086C5.54204 21.8086 0.660156 16.9266 0.660156 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.35225 8.87521C8.35225 9.6231 7.99147 10.2295 7.54755 10.2295C7.10491 10.2295 6.74414 9.6231 6.74414 8.87521C6.74414 8.12732 7.10491 7.52079 7.54755 7.52079C7.99147 7.52079 8.35225 8.12732 8.35225 8.87521Z" fill="#646A6F"/>\n <path d="M16.3861 8.87521C16.3861 9.6231 16.0266 10.2295 15.5827 10.2295C15.1388 10.2295 14.7793 9.6231 14.7793 8.87521C14.7793 8.12732 15.1388 7.52079 15.5827 7.52079C16.0266 7.52079 16.3861 8.12732 16.3861 8.87521Z" fill="#646A6F"/>\n <path d="M15.1602 13.3748C14.6602 17.5 8.16016 17.5 7.66016 13.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9042C0.46875 4.8818 5.35063 -0.000333786 11.3737 -0.000333786C17.3954 -0.000333786 22.2773 4.8818 22.2773 10.9042C22.2773 16.9266 17.3954 21.8086 11.3737 21.8086C5.35063 21.8086 0.46875 16.9266 0.46875 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.16084 8.87521C8.16084 9.6231 7.80007 10.2295 7.35614 10.2295C6.9135 10.2295 6.55273 9.6231 6.55273 8.87521C6.55273 8.12732 6.9135 7.52079 7.35614 7.52079C7.80007 7.52079 8.16084 8.12732 8.16084 8.87521Z" fill="#646A6F"/>\n <path d="M16.1947 8.87521C16.1947 9.6231 15.8352 10.2295 15.3913 10.2295C14.9474 10.2295 14.5879 9.6231 14.5879 8.87521C14.5879 8.12732 14.9474 7.52079 15.3913 7.52079C15.8352 7.52079 16.1947 8.12732 16.1947 8.87521Z" fill="#646A6F"/>\n <path d="M14.9688 13.3748C14.4688 17.5 7.96875 17.5 7.46875 13.3749L14.9688 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],vi=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n<path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n<path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n<path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055" fill="#646A6F"/>\n<path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168" fill="#646A6F"/>\n<path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000333786 11.7135 -0.000333786C17.7353 -0.000333786 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n<path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n<path d="M7.80859 15.4995C9.14193 13.0401 13.3086 11.9996 15.8086 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000333786 11.5221 -0.000333786C17.5439 -0.000333786 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n<path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n<path d="M8.11719 15.5003C10.1172 15.5 12.1172 15.4998 15.1172 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n<path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n<path d="M14.9258 13.3748C14.4258 17.5 7.92578 17.5 7.42578 13.3749L14.9258 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n<path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n<path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n<path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n</svg>'];var mi=function(t,e,n,i,o){var r=i.dim_background,a=i.dim_bg_color,s=i.dim_bg_opacity,l=i.position,c=o.question_background_color,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(l){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(r){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(s,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;max-height:").concat(window.innerHeight,"px;overflow: auto;min-height:").concat(e,"%;background:").concat(c,";z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id","apx-dlg-c"),m.classList.add("apx-dlg-c"),d.appendChild(m),d.appendChild(p),d.on_dismiss=n,document.body.appendChild(d),d},gi=function(t){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(t,";\n opacity: 0.5;\n }\n ")},bi=function(t,e){var n=t.answerMode,i=t.choices,o=void 0===i?[]:i,r=t.text_answer,a=void 0===r?"":r,s=t.selected_rating,l=void 0===s?-1:s,c=!0;n===b||n===g?c=-1!==o.findIndex((function(t){return!0===t.is_selected})):n===x?c=a.length>0:n===y&&(c=l>0);c?(e.className="apx-ba",e.disabled=!1):(e.className="apx-bi",e.disabled=!0)},yi=function(t){var e,n=t.maximum_characters,i=t.background_color,o=t.placeholder,r=t.text_color,a=document.createElement("textarea"),s=null!==(e=null==t?void 0:t.textinput_border_color)&&void 0!==e?e:"black";return a.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border: 1px solid ".concat(s,";resize:none;background:").concat(i,";color:").concat(r),a.className="apx-ta",a.setAttribute("placeholder",o),a.setAttribute("maxlength",n),a},xi=function(t,e,n){var i=e.question_text_color,o=e.question_background_color,r=e.option_bg_color_active,a=e.option_bg_color_inactive,s=e.option_text_color_active,l=e.option_text_color_inactive,c=e.option_bg_type,d=t.rating_style,p=t.answerMode,u=t.choices,h=void 0===u?[]:u,f=t.rating,v=void 0===f?{rating_style:d,bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:f,m=t.rating_scale,w=void 0===m?5:m,A=t.selected_rating,L=void 0===A?-1:A,M=t.text_answer,T=void 0===M?"":M,S=t.text_config?t.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},O=!1,D=[];if(p===g||p===b){var I=yi(S);I.style.visibility="hidden";var N=function(t,e){t.style.color=e?s:l},B=function(t,e){var n=e?r:a;"filled"===c?t.style.background=n:"outline"===c&&(t.style.borderColor=n)};h.forEach((function(e,i){var o=document.createElement("label");o.className="apx-lc",o.innerText=e.value;var r=document.createElement("input");r.name=r.type=p===g?"radio":"checkbox",r.checked=e.is_selected;var a=document.createElement("span");a.className="apx-i",o.appendChild(r),o.appendChild(a),B(o,e.is_selected),N(o,e.is_selected),e.is_other&&(O=!0,I.addEventListener("input",(function(t){e.other_answer=t.target.value}))),e.is_selected&&e.is_other&&(I.style.visibility="visible",e.other_answer&&(I.value=e.other_answer)),p===b?r.onchange=function(i){var r=i.target.checked;e.is_selected=r,N(o,r),B(o,r),e.is_other&&(I.style.visibility=r?"visible":"hidden"),bi(t,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",i+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(t,n){var i=t.checked;h[n].is_selected=i,N(t.parentNode,i),B(t.parentNode,i),e.is_other&&(I.style.visibility=i?"visible":"hidden")})),bi(t,n)}),D.push(o)})),O&&D.push(I)}else if(p===x&&null!==S){var F=S.example,P=S.example_text_color;if(""!==F&&""!==F.trim()){var z=document.createElement("span");z.innerHTML="Example: "+F,z.style.color=P,z.style.marginTop="12px",z.style.fontFamily="inherit",z.style.fontSize="15px",D.push(z)}var H=yi(S);H.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),bi(t,n)})),""!==T&&""!==T.trim()&&(H.innerText=T),D.push(H)}else if(p===y){var q=v.rating_style,Z=v.bg_color,V=v.selected_bg_color,R=document.createElement("div"),j="",W=[],Y="",U="cursor:pointer;font-size:30px;width:auto;height:auto;";if("stylized"===q)W=5===w?vi:fi,R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===w?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),j="opacity:1 !important;",Y="".concat(U,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("classic"===q)W=5===w?C:_,R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===w?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),j="opacity:1 !important;border:1.06px solid #017DFD; background-color:rgba(1, 125, 253, 0.1);\n ",Y="".concat(U,"padding-right:7px;padding-top:4px;padding-bottom:2px;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("star"===q){R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===w?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden");for(var X=0;X<w;X++)W.push("&#11088;");j="filter:grayscale(0%) !important",Y="".concat(U,"filter:grayscale(100%)")}else"numbers"===q&&(W=5==w?["1","2","3","4","5"]:["0","1","2","3","4","5","6","7","8","9","10"],j="background:".concat(V," !important;color:white !important;"),Y="display:flex;justify-content:space-evenly;align-items:center;color:#646A6E;margin-bottom:".concat(5===w?"0px":"10px",";font-size:15px;width:40px;height:40px;background-color:").concat(Z,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11);border-radius:50%"),R.style.marginTop="12px",R.style="display:flex;align-text:center;flex-wrap:wrap;justify-content:".concat(5===w?"space-evenly":"center",";gap:15px;padding-top:8px;padding-bottom:8px;overflow:hidden"));var G=document.createElement("style"),J="";(5==w?E:k).forEach((function(t,e){J+=".apx-rsel-".concat(e,"{\n background:").concat(t,"!important;\n color:white !important;\n }")})),G.innerHTML=".apx-rsel{".concat(j,"}")+J+".apx-r{".concat(Y,"}\n"),R.appendChild(G);for(var Q=function(t){return"star"!==q?t+1===L:t+1<=L},K=[],$=0;$<W.length;$++){var tt=document.createElement("div");tt.innerHTML="".concat("").concat(W[$]);var et=document.createElement("div");"classic"===q?(11==W.length?"".concat(et.innerHTML=$):"".concat(et.innerHTML=$+1),et.style.fontSize="12.83px",et.style.display="flex",et.style.fontWeight="500",et.style.justifyContent="center",et.style.alignItems="center",tt.appendChild(et),tt.style.display="flex",tt.style.justifyContent="space-evenly",tt.style.alignItems="center",tt.style.flexDirection="column",tt.style.width="40px",tt.style.height="70px"):"stylized"===q&&(11==W.length?"".concat(et.innerHTML=$):"".concat(et.innerHTML=$+1),et.style.fontSize="12.83px",et.style.display="flex",et.style.justifyContent="center",et.style.alignItems="center",tt.appendChild(et),tt.style.display="flex",tt.style.justifyContent="space-evenly",tt.style.alignItems="center",tt.style.marginBottom="15px",tt.style.marginRight="5px",tt.style.gap="4px",tt.style.flexDirection="column"),Q($)&&tt.classList.add("apx-rsel"),tt.classList.add("apx-r"),K.push(tt)}var nt=function(t,e,n,i,o){console.log(n),n.forEach((function(n,r){var a=document.createElement("div");a.innerHTML=5===w?r+1:r,a.style.fontSize="12.83px",a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center",t.appendChild(a),n.innerHTML=r===e?i[e]:o[r],n.appendChild(a)}))};K.forEach((function(e,i){t.selected_rating=i+1,e.addEventListener("click",(function(){if("stylized"===q&&(5===W.length?nt(e,i,K,ui,vi):nt(e,i,K,hi,fi)),"numbers"===q?e.classList.add("apx-rsel-".concat(i)):e.classList.add("apx-rsel"),t.is_answered=!0,bi(t,n),"numbers"===q){for(var o=0;o<i;o++)K[o].classList.remove("apx-rsel-".concat(o));for(var r=i+1;r<W.length;r++)K[r].classList.remove("apx-rsel-".concat(r))}else if("star"===q){for(var a=0;a<i+1;a++)K[a].classList.add("apx-rsel");for(var s=i+1;s<W.length;s++)K[s].classList.remove("apx-rsel")}else{for(var l=0;l<i;l++)K[l].classList.remove("apx-rsel");for(var c=i+1;c<W.length;c++)K[c].classList.remove("apx-rsel")}t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var i,o=document.createElement("span");o.setAttribute("id","nps_advanced"),o.innerHTML=null===(i=e.question)||void 0===i?void 0:i.question;var r=yi(S);r.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),bi(t,n)})),o.appendChild(r),R.appendChild(o);var a=document.getElementById("nps_advanced");a&&R.removeChild(a),o.appendChild(r),R.appendChild(o)}else{var s=document.getElementById("nps_advanced");s&&R.removeChild(s)}}))})),R.appendChild(e)})),D.push(R)}var it=document.createElement("div");it.style.padding="14px",it.style.display="flex",it.style.flexDirection="column",it.style.minHeight="340px";var ot=document.createElement("style"),rt="";p===x?rt=gi(S.placeholder_text_color):p!==g&&p!==b||(rt=function(t,e,n,i,o,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(o,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(o,";\n background-color: white;\n border-radius: ").concat(t===g?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(i,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(e,";\n border: 1px solid ").concat(i,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(t===g?2:1,"px;\n left: ").concat(t===g?2:4,"px;\n width: ").concat(t===g?10:4,"px;\n height: ").concat(t===g?10:8,"px;\n border-radius: ").concat(t===g?"50%":"0",";\n background: ").concat(t===g?i:"transparent",";\n border: ").concat(t===g?"none":"solid white",";\n border-width: ").concat(t===g?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(t===g?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(t===g?"unset":"rotate(45deg)",";\n transform: ").concat(t===g?"unset":"rotate(45deg)",";\n }\n ")}(p,r,a,s,l,c),O&&(rt+=gi(S.placeholder_text_color))),ot.innerHTML=rt.replaceAll("\n","").replace(/[\s]{2,999}/g,""),it.appendChild(ot);var at=document.createElement("span");return at.innerText=t.title,at.style="margin-bottom:12px;color:".concat(i,";background-color:").concat(o,";font-size:16px;font-weight:600"),it.appendChild(at),D.forEach((function(t){return it.appendChild(t)})),it},wi=function(t,e,n,i,o,r){var a=function(t,e,n,i){var o=t.cancel_button_color,r=t.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===e,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===e?"54":"",";}.apx-pr{cursor:").concat(0===e?"no-drop":"pointer",";visibility:").concat(0===e?"hidden":"visible",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var l=document.createElement("div");l.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var c=document.createElement("span");return c.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",c.innerText=i?"":"".concat(e+1,"/").concat(n),l.appendChild(a),l.appendChild(c),l.appendChild(s),{prevButton:a,closeButton:s,headerNode:l}}(t,i,o,r),s=a.headerNode,l=a.prevButton,c=a.closeButton,d=function(t,e,n,i,o){var r=t.skip_text_color,a=t.submit_text_color,s=t.submit_active_color,l=t.submit_inactive_color,c=n===i-1||o?null:document.createElement("button");c&&(c.innerText="Skip",c.className="apx-b",c.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===i-1&&"Next >"===e.submit_text?"Submit":e.submit_text,"<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(l,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),bi(e,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",c&&p.appendChild(c),p.appendChild(d),{footerNode:p,skipButton:c,submitButton:d}}(t,n,i,o,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=xi(n,e,u),v=document.createElement("div");v.className="apx-sq";var m=document.createElement("style");return m.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",v.appendChild(m),v.appendChild(s),v.appendChild(f),{questionRoot:v,footerNode:h,prevButton:l,closeButton:c,skipButton:p,submitButton:u}},_i=window.ApxorLogger,Ci=l((function t(e){var n=this;a(this,t),c(this,"Zmlv",(function(){n.is_selected=!1,n.other_answer=null}));var i=e.id,o=e.value,r=e.is_other,s=e.next_question_id;if(!i||!o)throw new Error("Invalid Choice");this.id=i,this.value=o,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),Ei=l((function t(e){var n=this;a(this,t),c(this,"Zmlv",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(t){return t.Zmlv()}))}));var i=e.id,o=e.answer_mode,r=e.title,s=e.is_required,l=e.submit_text,d=e.rating_style,u=e.rating_scale,h=e.choices,f=void 0===h?[]:h,v=e.text_config,m=void 0===v?null:v,w=e.randomize_choices,_=void 0!==w&&w,C=e.response_cfg,E=void 0===C?{}:C,k=e.advanced_options,A=e.rules,L=void 0===A?[]:A;if(!i||!o)throw new Error("Invalid question");var M=-1;switch(o){case"single_choice":M=g;break;case"multi_choice":M=b;break;case"text":M=x;break;case"rating":M=y;break;default:M=-1}if(this.answerMode=M,this.id=i,this.is_required=s,this.submit_text=l,this.randomize_choices=_,this.response_cfg=E,this.text_config=m,this.title=r,this.rating_style=d,this.rating_scale=u,this.is_answered=!1,this.selected_rating=-1,this.rules=L,this.rulesArray=[],k&&this.rules.forEach((function(t){if(e.hasOwnProperty(t.qid)){var i={max:t.max,min:t.min,question:e[t.qid]};n.rulesArray.push(i)}})),this.choices=[],this.answerMode===g||this.answerMode===b){for(var T,S=[],O=0;O<f.length;O++){var D=new Ci(f[O]);D.is_other?S.push(D):this.choices.push(D)}_&&(this.choices=p(this.choices).map((function(t,e,n){var i=e+Math.floor(Math.random()*(n.length-e)),o=[n[e],n[i]];return n[i]=o[0],n[e]=o[1],n[e]}))),(T=this.choices).push.apply(T,S)}})),ki=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.dialog_config,a=void 0===r?null:r,s=i.show_progress_bar,l=void 0===s||s,c=i.is_response_based_survey,d=void 0!==c&&c,p=i.questions,u=void 0===p?[]:p,h=i.show_success_message,f=void 0===h||h,v=i.auto_hide_message,m=void 0===v?2e3:v,g=i.success_message,b=void 0===g?"":g,y=i.question_text_color,x=void 0===y?"#002845":y,w=i.submit_active_color,_=void 0===w?"#017DFD":w,C=i.submit_inactive_color,E=void 0===C?"#017DFD65":C,k=i.option_bg_type,A=void 0===k?"filled":k,L=i.option_text_color_active,M=void 0===L?"#002845":L,T=i.option_text_color_inactive,S=void 0===T?"#002845":T,O=i.option_bg_color_active,D=void 0===O?"#FFF":O,I=i.option_bg_color_inactive,N=void 0===I?"#FFF":I,B=i.question_background_color,F=void 0===B?"#FFF":B,P=i.success_message_bg_color,z=void 0===P?"#109B15":P,H=i.success_message_icon_color,q=void 0===H?"#109B15":H,Z=i.success_message_text_color,V=void 0===Z?"#002845":Z,R=i.skip_text_color,j=void 0===R?"#017DFD":R,W=i.cancel_button_color,Y=void 0===W?"#000":W,U=i.previous_button_color,X=void 0===U?"#000":U,G=i.progress_bar_color,J=void 0===G?"#017DFD":G,Q=i.submit_text_color,K=void 0===Q?"#FFF":Q,$=i.width,tt=void 0===$?350:$,et=i.min_height,nt=void 0===et?40:et,it=i.position,ot=void 0===it?"center":it,rt=i.dim_background,at=void 0===rt||rt,st=i.dim_bg_color,lt=void 0===st?"#313131":st,ct=i.dim_bg_opacity,dt=void 0===ct?.54:ct;n.configId=t,n.name=e,n.delay=o,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=b,n.auto_hide_message=m,n.questions=[],n.displayedQuestionIndeces=[],n.answered_questions=[],n.width=tt,n.min_height=nt,n.layoutConfig={show_progress_bar:l,skip_text_color:j,cancel_button_color:Y,previous_button_color:X,progress_bar_color:J,submit_text_color:K,submit_active_color:_,submit_inactive_color:E,success_message_bg_color:z,success_message_icon_color:q,success_message_text_color:V,position:ot,dim_background:at,dim_bg_color:lt,dim_bg_opacity:dt},n.questionConfig={question_text_color:x,question_background_color:F,option_bg_color_active:D,option_bg_color_inactive:N,option_text_color_active:M,option_text_color_inactive:S,option_bg_type:A},a&&(n.dialog_config=a);for(var pt=0;pt<u.length;pt++)try{if("request_survey"===u[pt].answer_mode||"success_message"===u[pt].answer_mode)continue;n.questions.push(new Ei(u[pt])),n.answered_questions.push(-1)}catch(t){return _i.error("Failed to parse Q",pt,t),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),c(this,"RrNq",(function(t,e){n.isValid&&setTimeout((function(){try{var i=window.ApxorRTM;if(null!==i.currentAction&&void 0!==i.currentAction)return void _i.error("An action is already being shown.");n.startTime=Date.now();var o=mi(n.width,n.min_height,e,n.layoutConfig,n.questionConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.RGqD("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,l=r.icon_width,c=r.icon_height,d=o.children[0];o.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(t){var e,n,i,o=t.icon_name,r=void 0===o?"":o,a=t.title,s=void 0===a?"Some dummy title":a,l=t.yes_text,c=void 0===l?"Yes":l,d=t.icon_width,p=void 0===d?180:d,u=t.icon_height,h=void 0===u?100:u,f=t.no_text,v=void 0===f?"No, thanks":f,m=t.dialog_background_color,g=void 0===m?"#FFF":m,b=t.title_color,y=void 0===b?"#3C3C3C":b,x=t.yes_button_bg_color,w=void 0===x?"#017DFD":x,_=(t.no_button_bg_color,t.yes_button_text_color),C=void 0===_?"#FFF":_,E=t.no_button_text_color,k=void 0===E?"#017DFD":E,A=(t.hide_close_button,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(t,"px;font-weight:").concat(e,";")});return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((e=r,n=p,i=h,e&&""!==e&&0!==n&&0!==i?'<img id="apx_icon" src="'.concat(e,'" style="width:').concat(n,"px;height:").concat(i,'px;">'):""),'<span style="').concat(A(16,600),"text-align:center;color:").concat(y,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(A(14,500),"color:").concat(C,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(c,'</button>\n <button id="').concat("apx-dn",'" style="').concat(A(14,500),"color:").concat(k,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(v,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.RGqD("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.rYwE(o,!0)},document.getElementById("apx-dn").onclick=function(){n.RGqD("apx_survey_dialog_no_clicked"),n.shTz(o)};var t=function(){o.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===l||0===c?"13%":"25%",d.classList.toggle("open"),n.RGqD("apx_survey_dialog_launched")};if(""!==s&&l>0&&c>0){var e=document.getElementById("apx_icon");e.onload=function(){t()},e.onerror=function(){n.RGqD("apx_survey_dialog_icon_failed"),n.shTz(o)}}else t()}),100)}else n.rYwE(o);t&&t((function(){return n.shTz(o)}))}catch(t){_i.error(t)}}),n.delay)})),c(this,"rYwE",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.layoutConfig,o=i.show_progress_bar,r=i.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),o||(a.style.visibility="hidden");var l=t.children[0];(e||l&&l.childElementCount>1)&&l.removeChild(l.children[l.childElementCount-1]),l.appendChild(a),n.Fyzf(t,0),e||setTimeout((function(){t.children[0].classList.toggle("open")}),100)})),c(this,"GSmX",(function(t){if(-1==t||!t)return-1;var e=n.questions.length;if(e>0)for(var i=0;i<e;i++)if(n.questions[i].id==t)return i;return-1})),c(this,"qxfv",(function(t,e){var i=t.answerMode,o=t.choices,r=void 0===o?[]:o;switch(i){case y:var a=null==t?void 0:t.response_cfg[(null==t?void 0:t.selected_rating)||11];a?e=n.GSmX(a):e+=1;break;case g:var s;if(r.forEach((function(t){t.is_selected&&(s=t)})),s){var l=s.next_question_id;e=n.GSmX(l)}else e+=1;break;case b:case x:default:e+=1}return e})),c(this,"Fyzf",(function(t,e){if(!(e>=n.questions.length)){var i=n.questions[e],o=wi(n.layoutConfig,n.questionConfig,i,e,n.questions.length,n.is_response_based_survey),r=o.prevButton,a=void 0===r?null:r,s=o.closeButton,l=void 0===s?null:s,c=o.submitButton,d=void 0===c?null:c,p=o.skipButton,u=void 0===p?null:p,h=o.questionRoot,f=o.footerNode,v=t.children[0];v&&v.childElementCount>2&&(v.removeChild(v.children[v.childElementCount-1]),v.removeChild(v.children[v.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(e+1)),"%)"),v.appendChild(h),v.appendChild(f),a&&(a.onclick=function(){n.TDHf(e);var i=n.displayedQuestionIndeces.pop();void 0!==i&&n.Fyzf(t,i)}),l&&l.addEventListener("click",(function(){n.RGqD("apx_survey_close_clicked",{where:"question "+(e+1)}),n.TDHf(e),n.DAdS(t,!1)})),d&&(d.onclick=function(){if(n.displayedQuestionIndeces.push(e),n.is_response_based_survey){n.TDHf(e);var o=n.qxfv(i,e);o===n.questions.length||-1===o?n.DAdS(t,!0):n.Fyzf(t,o)}else n.TDHf(e),e===n.questions.length-1?n.DAdS(t,!0):n.Fyzf(t,e+1)}),u&&(u.onclick=function(){n.displayedQuestionIndeces.push(e),e+1>=n.questions.length||(n.RGqD("apx_survey_skip_clicked",{where:"question "+(e+1)}),n.TDHf(e),n.Fyzf(t,e+1))})}})),c(this,"TDHf",(function(t){if(-1===n.answered_questions[t]){var e=n.ORAD(t),i=[];e.textBasedQuestionAnswers.length>0&&e.textBasedQuestionAnswers.forEach((function(t){i.push(t.answer)})),e.answers.length>0&&(n.RGqD("apx_survey_".concat(n.questions[t].title),{answers:e.answerTexts,text_answers:i}),n.answered_questions[t]=1)}})),c(this,"RGqD",(function(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null===(i=window.ApxorRTM)||void 0===i?void 0:i.nssS(n.configId),s=a._attr;e.logEvent(t,o(o({survey_id:n.configId,name:n.name},r),s))})),c(this,"ORAD",(function(t){var e=n.questions[t];if(!e)return null;var i={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=e.answerMode,r=e.choices,a=void 0===r?[]:r,s=e.selected_rating,l=void 0===s?-1:s,c=e.text_answer,d=void 0===c?"":c,p=e.is_answered,u=void 0!==p&&p,h=e.text_config,f=void 0===h?null:h;switch(o){case g:case b:a.forEach((function(t){t.is_selected&&(i.answers.push(t.id),i.answerTexts.push(t.value),t.is_other&&null!==t.other_answer&&""!==t.other_answer.trim()&&i.others.push({id:t.id,answer:t.other_answer}))}));break;case x:u&&""!==d&&""!==d.trim()&&null!==f&&(i.answers.push(f.id),i.answerTexts.push(d),i.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case y:-1!==l&&(i.answers.push(l),i.answerTexts.push(l))}return i})),c(this,"shTz",(function(t){t.on_dismiss&&t.on_dismiss(),t.children[0].classList.toggle("open"),setTimeout((function(){t.parentNode.removeChild(t),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),c(this,"aFKB",(function(t){var e=t.children[0];e.style.minHeight="unset",e&&e.childElementCount>2&&(e.removeChild(e.children[e.childElementCount-1]),e.removeChild(e.children[e.childElementCount-1]));var i=document.getElementById("apx-pb");i.parentNode.removeChild(i);var o,r,a,s,l,c,d=(o=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,l=r.success_message_text_color,(c=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),c.innerHTML="\n <div>\n ".concat(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:64,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width='.concat(t," height=").concat(e,' fill-rule="nonzero">\n <g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">\n <g transform="scale(6.4,6.4)">\n <path d="M20,38.5c-10.2,0 -18.5,-8.3 -18.5,-18.5c0,-10.2 8.3,-18.5 18.5,-18.5c10.2,0 18.5,8.3 18.5,18.5c0,10.2 -8.3,18.5 -18.5,18.5z" fill= ').concat(n,' stroke="none" stroke-width="1"/>\n <path d="M20,2c9.9,0 18,8.1 18,18c0,9.9 -8.1,18 -18,18c-9.9,0 -18,-8.1 -18,-18c0,-9.9 8.1,-18 18,-18M20,1c-10.5,0 -19,8.5 -19,19c0,10.5 8.5,19 19,19c10.5,0 19,-8.5 19,-19c0,-10.5 -8.5,-19 -19,-19z" fill="#5e9c76" stroke="none" stroke-width="1"/>\n <path d="M11.2,20.1l5.8,5.8l13.2,-13.2" fill="none" stroke="#ffffff" stroke-width="3"/>\n </g>\n </g>\n </svg>');return i}(64,64,s),'\n </div>\n <div style="font-size: 17px;margin-top:15px;color:').concat(l,'">').concat(o,"</div>\n "),c);e.appendChild(d),setTimeout((function(){n.shTz(t)}),n.auto_hide_message)})),c(this,"DAdS",(function(t,i){i&&n.show_success_message?n.aFKB(t):n.shTz(t);var o={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(t,e){var i=n.ORAD(e);if(i.answers.length>0){var r={question_id:t.id,answers:i.answers};t.rules.length>0&&t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var n=e.question.text_config,i=t.text_answer;r.answers=[].concat(p(r.answers),[n.id]);var o={id:n.id,answer:i};r.others||(r.others=[]),r.others.push(o)}})),i.others.length>0?r.others=i.others:i.textBasedQuestionAnswers.length>0&&(r.others=i.textBasedQuestionAnswers),o.responses.push(r)}})),o.responses.length>0){var r=Math.pow(10,3);o.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=e.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;o.session_id=e.getSessionId(),o.is_completed=i,o.app_version=a.getFromStorage("apx_ver",!1),o.device_uuid=e.getClientId(),o.launch_time=s,o.user_attributes=a.getUserAttributes(),o.session_attributes=a.getSessionAttributes(),n.zGJF(o)}i&&n.RGqD("apx_survey_completed"),n.questions.forEach((function(t,e){t.Zmlv(),n.answered_questions[e]=-1})),n.startTime=-1,n.bodyOverflow=""})),c(this,"zGJF",(function(t){var n=m.replace("<app_id>",e.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})})),this.isValid=!0,this.dialog_config=null})),Ai=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new ki;return i.initialize(t,e,n)?i:null}))})),Li=window.ApxorLogger,Mi=function(){function t(e,n,i,o,r){var s=this;a(this,t),c(this,"OFzr",(function(){s.createPlayer();try{if("PIP"==s.video_mode){var t=s.videoElement,e=s.hideCallback;t.onloadedmetadata=function(){t.disablePictureInPicture=!1,t.requestPictureInPicture().catch((function(t){Li.error("Can't show PIP:".concat(t)),e()}))}}else s.kWwG();s.showCallback()}catch(t){Li.error("Can't show video:".concat(t)),s.hideCallback()}})),c(this,"ltiS",(function(){var t=q(s.videoConfig),e=t.width,n=t.height;s.height=n,s.width=e})),c(this,"EDla",(function(){var t=document.getElementById("apxor-mpl-styles");t&&t.remove()})),c(this,"qsjK",(function(){s.videoElement.addEventListener("ended",(function(t){var e=document.getElementById("apxor-cta-btn");e&&e.classList.remove("apxor-hide-elmt")})),s.videoElement.addEventListener("play",(function(t){var e=document.getElementById("apxor-cta-btn");e&&e.classList.add("apxor-hide-elmt")}))})),c(this,"GPSB",(function(){var t=s.videoConfig.enable_pip_toggles;if(void 0===t||t){s.videoElement.addEventListener("leavepictureinpicture",(function(){s.videoElement.disablePictureInPicture=!0,"PIP"===s.videoConfig.video_mode?(s.hideCallback(),s.videoPlayer.remove()):s.videoPlayer.classList.remove("apxor-hide-elmt")}),!1);s.videoElement.addEventListener("enterpictureinpicture",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")}),!1)}})),c(this,"higD",(function(){var t=s.videoConfig,e=t.pip_btn_color,n=void 0===e?"#ffffff":e,i=t.close_btn_color,o=void 0===i?"#ffffff":i,r=t.enable_PIP,a=document.createElement("span");if(a.innerHTML=V(24,24,o),a.classList.add("apxor-close-btn"),a.addEventListener("click",(function(t){try{s.videoPlayer.remove(),s.hideCallback(),s.EDla()}catch(t){console.log("Error \n ".concat(t," \n occured while closing the video"))}})),s.videoPlayer.appendChild(a),r){var l=document.createElement("span");l.innerHTML=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}(24,24,n),l.classList.add("apxor-pip-btn"),l.addEventListener("click",(function(t){try{s.videoElement.disablePictureInPicture=!1,s.videoElement.requestPictureInPicture()}catch(t){console.log("Error \n ".concat(t," \n while starting the PIP"))}})),s.videoPlayer.appendChild(l)}})),c(this,"KExv",(function(){var t=s.videoConfig,e=t.buttons_config,n=t.button_position,i=void 0===n?"center":n,o=t.button_direction,r=void 0===o?"horizontal":o;if(e&&e.length>0){var a=function(){try{s.videoPlayer.remove(),s.hideCallback(),s.EDla()}catch(t){console.log("Can't close the video player\n".concat(t))}},l=Z(s.configId,s.name,"InApp_",e,i,r,a,a,a);l.setAttribute("id","apxor-cta-btn"),l.classList.add("apxor-video-cta"),l.classList.add("apxor-hide-elmt"),s.videoPlayer.appendChild(l)}})),c(this,"Rhfj",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")})),c(this,"kWwG",(function(){s.videoPlayer.classList.remove("apxor-hide-elmt")})),c(this,"dcpV",(function(){return s.videoElement})),this.videoConfig=e,this.videoPlayer=null,this.videoElement=null,this.video_mode=e.video_mode,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer"}return l(t,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apxor-video-player"),this.ltiS(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this.qsjK(),this.GPSB(),this.higD(),this.KExv(),this.Rhfj(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var t=document.createElement("style");t.setAttribute("id","apxor-mpl-styles"),t.innerHTML='\n div.apxor-video-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: #000000;\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: #000000;\n z-index:99999999;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\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(t)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.videoConfig.videoPosition){case"top-left":this.videoPlayer.classList.add("apxor-video-player--topLeft");break;case"top-right":this.videoPlayer.classList.add("apxor-video-player--topRight");break;case"bottom-left":this.videoPlayer.classList.add("apxor-video-player--bottomLeft");break;case"bottom-right":default:this.videoPlayer.classList.add("apxor-video-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var t=this.videoConfig,e=t.v_url,n=t.v_format,i=void 0===n?"video/mp4":n,o=t.mute_audio,r=void 0!==o&&o;t.video_mode;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,r&&(this.videoElement.muted=!0);var a=document.createElement("source");a.setAttribute("src",e),a.setAttribute("type",i),this.videoElement.appendChild(a),this.videoPlayer.appendChild(this.videoElement)}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apxor-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}(),Ti=function(){function t(e,n,i,o,r){var s;(a(this,t),this.dismiss_outside_touch=e.dismiss_outside_touch||!1,this.dim_background=e.dim_background||!1,this.dim_background_color=e.dim_background_color||"#0a0a0a",this.dim_background_opacity=e.dim_background_opacity||.5,this.background_color=e.background_color||"#FFFFFF",this.inapp_type=e.inapp_type||"small-text",this.inapp_position=e.inapp_position||"center",this.border_radius=e.border_radius||15,this.border_color=e.border_color||"#27a4f2",this.border_style=e.border_style||"outset",this.border_width=e.border_width||2,this.enable_close=e.enable_close||!0,this.close_btn_color=e.close_btn_color,this.close_btn_path=e.close_btn_path||"",this.close_btn_bg_color=e.close_btn_bg_color||"#FFFAAA",this.close_btn_type=e.close_btn_type||"normal",this.title_config=e.title_config,this.text_config=e.text_config,this.buttons_config=e.buttons_config,this.button_position=e.button_position,this.button_direction=e.button_direction||"horizontal",this.is_scrollable=e.is_scrollable||!1,this.scroll_border_color=e.scroll_border_color||"#000000",this.icon_path=e.icon_path||"",this.icon_width=e.icon_width||"",this.icon_height=e.icon_height||"",this.icon_margin=e.icon_margin||0,this.icon_radius=e.icon_radius||0,this.icon_margin_color=e.icon_margin_color||"black",this.icon_position=e.icon_position||"center",this.image_path=e.image_path||"",this.image_width=e.image_width||360,this.image_height=e.image_height||360,this.video_height=e.video_height||360,this.video_width=e.video_width||360,this.video_path=e.video_path||"",this.enable_gradient=e.enable_gradient,this.gradient=e.gradient||{},this.text_height=e.text_height||400,this.modal_width=e.modal_width||50,this.show_shadow=e.show_shadow||!0,this.shadow_color=e.shadow_color||"#888888",this.terminate_info=e.terminate_info||{},this.configId=n,this.name=i,this.showCallback=o,this.closeCallback=r,this.currentId=H(10),e.title_config)&&(this.title_icon_path=null!==(s=e.title_config.icon_path)&&void 0!==s?s:"",this.title_icon_height=e.title_config.icon_height,this.title_icon_width=e.title_config.icon_width,this.title_icon_radius=e.title_config.icon_radius,this.title_icon_margin=e.title_config.icon_margin,this.title_icon_margin_color=e.title_config.icon_margin_color);e.enable_gradient&&(this.gradient_direction=e.gradient.gradient_direction||"to right",this.gradient_c1=e.gradient.gradient_c1||"#000000",this.gradient_c2=e.gradient.gradient_c2||"#ffffff"),this.width="50%",this.height="auto",this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return l(t,[{key:"_setInAppModalDimensions",value:function(){switch(this.inapp_type){case"small-text":this.width="30%";break;case"medium-text":this.width="45%";break;case"large-text":this.width="60%";break;case"custom-size-text":this.modal_width<20||this.modal_width>80?this.width="50%":this.width="".concat(this.modal_width,"%");break;case"icon-text":this.width="50%";break;case"image-text":case"image-only":this._setDimenstionFromResolution(this.image_width,this.image_height);break;case"video-text":this._setDimenstionFromResolution(this.video_width,this.video_height);break;default:this.width="50%"}}},{key:"_setDimenstionFromResolution",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=window.innerWidth,o=window.innerHeight;if(t>i||e>o){var r=q({width:t,height:e},n);this.width="".concat(r.width,"px"),this.height="".concat(r.height,"px")}else this.width="".concat(t,"px"),this.height="".concat(e,"px")}},{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._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \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 {\n width:100%;\n height:100%;\n }\n .apx-dimbackground-overlay {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:".concat(this.dim_background?this.dim_background_color:"transparent",";\n ").concat(this.dim_background?"opacity: ".concat(this.dim_background_opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){return"\n .apx-inapp-container {\n width:".concat(this.width,";\n ").concat("image-only"===this.inapp_type?"height:".concat(this.height,";"):"","\n ").concat("image-only"===this.inapp_type||"video-text"===this.inapp_type?"":"padding: 20px;","\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 border: ").concat(this.border_width,"px ").concat(this.border_style," ").concat(this.border_color,";\n border-radius: ").concat(this.border_radius,"px;\n ").concat("top-left"==this.inapp_position?"top:0;left:0;":""," \n ").concat("top-right"==this.inapp_position?"top:0;right:0;":""," \n ").concat("bottom-left"==this.inapp_position?"bottom:0;left:0;":""," \n ").concat("bottom-right"==this.inapp_position?"bottom:0;right:0;":"","\n ").concat("center"==this.inapp_position?"left:50%;top:50%;-webkit-transform: translate(-50%, -50%);-moz-transform: translate(-50%, -50%);":"","\n ").concat(this.enable_gradient?"background-image:linear-gradient(".concat(this.gradient_direction,", ").concat(this.gradient_c1,", ").concat(this.gradient_c2,");"):"","\n ").concat(this.show_shadow?"box-shadow: 0px 0px 7px 7px ".concat(this.shadow_color,";"):"","\n }\n .apx-inapp-container.open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return"\n .apxor-inapp-scrollable {\n overflow:scroll; \n overflow-x: hidden;\n height:".concat(this.text_height,"px;\n border-top: 2px solid ").concat(this.scroll_border_color,";\n border-bottom : 2px solid ").concat(this.scroll_border_color,";\n }\n .apxor-inapp-nonscrollable {\n overflow : hidden;\n }\n ")}},{key:"_getTitleStyles",value:function(){var t,e,n;return"\n .apxor-title-div {\n ".concat(null!==(t=this.title_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.title_config.background_color,'";'):"","\n ").concat(null!==(e=this.title_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.title_config.margin_config.top,"px;margin-bottom:").concat(this.title_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.title_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.title_config.padding_config.top,"px;padding-bottom:").concat(this.title_config.padding_config.bottom,"px;"):""," \n ").concat(this.title_config.alignment?"text-align:".concat(this.title_config.alignment,";"):"","\n }\n .apxor-title-icon {\n ").concat(""!==this.title_icon_path?"background:url('".concat(this.title_icon_path,"');display: inline-block;height: ").concat(this.title_icon_height,"px;width: ").concat(this.title_icon_width,"px;border-radius:").concat(this.title_icon_radius,"px;border:").concat(this.title_icon_margin,"px solid ").concat(this.title_icon_margin_color,";margin-right: 15px;vertical-align: middle"):"","\n }\n ")}},{key:"_getDescriptionStyles",value:function(){var t,e,n;return"\n .apxor-inapp-description {\n ".concat(null!==(t=this.text_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.text_config.background_color,'";'):"","\n ").concat(null!==(e=this.text_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.text_config.margin_config.top,"px;margin-bottom:").concat(this.text_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.text_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.text_config.padding_config.top,"px;padding-bottom:").concat(this.text_config.padding_config.bottom,"px;"):""," \n ").concat(this.text_config.alignment?"text-align:".concat(this.text_config.alignment,";"):"","\n }\n ")}},{key:"_getIconStyles",value:function(){return"\n .apxor-inapp-icon-content {\n ".concat("icon-text"===this.inapp_type?"background:url('".concat(this.icon_path,"');display:inline-block;height: ").concat(this.icon_height,"px;width: ").concat(this.icon_width,"px;border-radius:").concat(this.icon_radius,"px;border:").concat(this.icon_margin,"px solid ").concat(this.icon_margin_color,";"):"","\n }\n .apxor-inapp-icon-container {\n ").concat("icon-text"===this.inapp_type?"text-align:".concat(this.icon_position,";"):"","\n }\n ")}},{key:"_getImageStyles",value:function(){return"\n .apxor-inapp-img-only {\n ".concat("image-only"===this.inapp_type?"background:url('".concat(this.image_path,"') no-repeat 50% 50%;"):"","\n }\n .apxor-inapp-img-txt {\n ").concat("image-text"===this.inapp_type?"height: ".concat(this.height,";width: ").concat(this.width,";margin-top:5px"):"","\n }\n ")}},{key:"_getVideoStyles",value:function(){return"\n .apxor-inapp-video {\n ".concat("video-text"===this.inapp_type?"height:".concat(this.height,";border:2px solid black;border-top-left-radius: ").concat(this.border_radius-this.border_width,"px;border-top-right-radius: ").concat(this.border_radius-this.border_width,"px;"):"","\n }\n ")}},{key:"_getControlsStyles",value:function(){return"\n .apxor-inapp-close {\n position: absolute;\n z-index:9999;\n top: 5px;\n right: 5px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n "}},{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: "\f62a"; \n }\n .bi-x-circle-fill::before { \n content: "\f622"; \n }\n '}},{key:"_setBackgroundOverlays",value:function(){var t=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay");var e=this.overlayElement;this.dim_background&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-dimbackground-overlay"),e=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.dismiss_outside_touch&&(e.onclick=function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),document.body.appendChild(this.overlayElement)}},{key:"_setAutoTerminate",value:function(){var t=this;if(this.terminate_info.auto_dismiss){var e=this.terminate_info.duration,n=void 0===e?1e3:e;window.setTimeout((function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),n)}}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container"),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_setTitleContent",value:function(){if(this.title_config){F(this.title_config);var t=document.createElement("div");if(t.classList.add("apxor-title-div"),""!=this.title_icon_path){var e=document.createElement("span");e.classList.add("apxor-title-icon"),t.appendChild(e)}t.appendChild(z(this.title_config,this.currentId,"title")),this.inAppContainer.appendChild(t)}}},{key:"_setDescriptionContent",value:function(){if(this.text_config){F(this.text_config);var t=document.createElement("div");t.classList.add("apxor-inapp-description"),t.appendChild(z(this.text_config,this.currentId,"description")),this.inAppContainer.appendChild(t),this.is_scrollable?t.classList.add("apxor-inapp-scrollable"):t.classList.add("apxor-inapp-nonscrollable"),this.inAppContainer.appendChild(t)}}},{key:"KExv",value:function(){var t=this,e=this.overlayElement,n=function(){t.closeCallback(e,"dismiss",".apx-inapp-container")},i=Z(this.configId,this.name,"InApp_",this.buttons_config,this.button_position,this.button_direction,n,n,n);this.inAppContainer.appendChild(i)}},{key:"_setCloseButton",value:function(){var t=this;if(this.enable_close){var e=document.createElement("span");"normal"===this.close_btn_type?e.innerHTML=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}(24,24,this.close_btn_color):"fill"===close_btn_type?e.innerHTML=V(24,24,this.close_btn_bg_color):e.innerHTML='<img src="'.concat(this.close_btn_path,'" width="24" height="24"></img>'),e.classList.add("apxor-inapp-close"),e.addEventListener("click",(function(e){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")})),this.inAppContainer.appendChild(e)}}},{key:"_setImageOnlyOptions",value:function(){"image-only"===this.inapp_type&&this.inAppContainer.classList.add("apxor-inapp-img-only")}},{key:"_setImageTextOptions",value:function(){if("image-text"===this.inapp_type){var t=document.createElement("div"),e=document.createElement("img");e.src=this.image_path,e.classList.add("apxor-inapp-img-txt"),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setVideoTextOptions",value:function(){if("video-text"===this.inapp_type){var t=document.createElement("div"),e=document.createElement("video");e.classList.add("apxor-inapp-video"),e.controlsList="noplaybackrate nodownload",e.disablePictureInPicture=!0,e.controls=!0;var n=document.createElement("source");n.setAttribute("src",this.video_path),n.setAttribute("type","video/mp4"),e.appendChild(n),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setIconTextOptions",value:function(){if("icon-text"===this.inapp_type){var t=document.createElement("div");t.classList.add("apxor-inapp-icon-container");var e=document.createElement("span");e.classList.add("apxor-inapp-icon-content"),t.appendChild(e),this.inAppContainer.appendChild(t)}}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this._setCloseButton(),this._setImageOnlyOptions(),this._setImageTextOptions(),this._setVideoTextOptions(),this._setIconTextOptions(),this._setTitleContent(),this._setDescriptionContent(),this.KExv()}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}},{key:"createInAppModal",value:function(){this._setInAppModalDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}}]),t}(),Si=window.ApxorLogger;var Oi=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.layout_type,a=void 0===r?"":r,s=i.html_config.data,l=void 0===s?"":s,c=i.window_attributes,d=c.width,p=void 0===d?"auto":d,u=c.height,h=void 0===u?"auto":u,f=c.dimmed_background,v=void 0===f||f,m=c.dismiss_outside_touch,g=void 0!==m&&m,b=c.position,y=void 0===b?"center":b;return n.configId=t,n.name=e,n.delay=o,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:v,dismiss_outside_touch:g,position:y},n.htmlConfig={data:l},"videos"!==a&&"modal"!==a&&""==n.htmlConfig.data?(n.isValid=!1,!1):(n.ui=i,n.rtmInstance=window.ApxorRTM,n.on_show=function(){n.rtmInstance.logActionEvent("inapp_shown",n.configId,n.name),n.rtmInstance.isShowingAction=!0,n.rtmInstance.currentAction=function(){}},n.on_hide=function(){n.rtmInstance.isShowingAction=!1,n.rtmInstance.currentAction=null,n.rtmInstance.logActionEvent("inapp_dismissed",n.configId,n.name)},!0)})),c(this,"LoTO",(function(){if(!n.isValid)return!1;setTimeout((function(){var t,e,i,o,r;if(null===n.rtmInstance.currentAction||void 0===n.rtmInstance.currentAction)try{if(Xi.getInstance().updateCount(n.configId),"videos"===n.layoutConfig.layout_type)t=n.ui,e=n.configId,i=n.name,o=n.on_show,r=n.on_hide,Mi.isAVideoBeingPlayed()||Mi.canShowVideoInApp(t)&&new Mi(t,e,i,o,r).OFzr();else if("modal"===n.layoutConfig.layout_type)!function(t,e,n,i,o){new Ti(t,e,n,i,o).createInAppModal()}(n.ui,n.configId,n.name,n.on_show,n._closeInApp);else{var a=function(t,e,n){var i=n.dimmed_background,o=document.createElement("div");o.setAttribute("id","apx-oly");var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(i?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id","apx-dlg-c"),a.classList.add("apx-dlg-c"),o.appendChild(a),o.appendChild(r),document.body.appendChild(o),o}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.aCYV(a)}),setTimeout((function(){a.children[0].classList.toggle("open"),a.children[0].innerHTML=n.htmlConfig.data,n.WXfo("inapp_shown"),n.on_show(),a.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.Ofdj(a,t)}}))}),100)}}catch(t){Si.error(t)}else Si.error("An action is already being shown.")}),n.delay)})),c(this,"Ofdj",(function(t,i){var o=i.getAttribute("href");if(null!=o&&o.includes("apxor")){var r,a=o.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.WXfo("walk_through_cancelled");break;case"xclose":n.WXfo("InAppXIconClicked");break;case"close":r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.WXfo(w(""===r?"Button":r));break;case"dl_url":var s=o.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),l=o.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.WXfo(w(""===r?"Button":r)),"true"==l?window.open(s,"_blank"):e.logClientEvent("REDIRECT",{url:s})}return n.aCYV(t,a),!1}return!0})),c(this,"aCYV",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c";"cancel"!==e&&n.WXfo("inapp_dismissed");var o=document.querySelector(i);o.classList.toggle("open"),setTimeout((function(){t.remove(),n.on_hide()}),300)})),c(this,"WXfo",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.rtmInstance.nssS(n.configId),a=r._attr;e.logEvent(t,o(o({id:n.configId,message_name:n.name},i),a))})),this.isValid=!0})),Di=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new Oi;return i.initialize(t,e,n)?i:null}))})),Ii=function(t){if(t.target){var e=t.target.classList,n=e.contains("apx-highlight")||-1!==e.toString().indexOf("apx-");e&&!n&&(t.target.classList.add("apx-highlight"),t.target.oldOnClick=t.target.onclick,t.target.onclick=null)}},Ni=function(t){t.target&&t.target.classList&&t.target.classList.contains("apx-highlight")&&(t.target.classList.remove("apx-highlight"),t.target.onclick=t.target.oldOnClick,t.target.oldOnClick=null)};var Bi="<b>View Selection Mode: ON",Fi="<b>View Selection Mode: OFF</b>",Pi="https://server.apxor.com/v1/sse/",zi=Pi+"layout?appId=<aid>&deviceId=<uid>",Hi=Pi+"ui-config?appId=<aid>&deviceId=<uid>",qi=Pi+"art-config?appId=<aid>&deviceId=<uid>",Zi="https://server.apxor.com/v4/frontendapi/web/test-devices",Vi=Zi+"?appId=<aid>",Ri=Zi+"/<uid>?appId=<aid>",ji=l((function t(){var n=this;a(this,t),c(this,"hNvD",null),c(this,"seqJ",null),c(this,"VCOW",null),c(this,"cQgr",null),c(this,"RcKQ",""),c(this,"init",(function(t,i){var o=function(t){if(window.document)for(var e=t+"=",n=window.document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return decodeURIComponent(o.substring(e.length,o.length))}return null}("_apx_ewc");if(o){var r=atob(o);try{var a=e.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,l=a.expiry,c=a.volatile_id;if(n.RcKQ=c,s===t&&Date.now()<=l){var d=document.createElement("span");if(d.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",d.innerHTML=Bi,n.seqJ=d,document.body.appendChild(d),n.hNvD=document.createElement("style"),n.hNvD.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.hNvD),n.isSelectionMode=!1,n.testDeviceData=e.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,v=void 0===f?"":f;if(""!==h&&""!==v){n.mbvD("select","".concat(h," - ").concat(v),v);var m=new EventSource(Hi.replace("<aid>",t).replace("<uid>",v)),g=new EventSource(qi.replace("<aid>",t).replace("<uid>",v));m.onmessage=g.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n.AOuM(i,t.data)}}}n.eDvQ(i)}}catch(t){}}})),c(this,"yscf",(function(){n.seqJ.parentNode.removeChild(n.seqJ),n.hNvD.parentNode.removeChild(n.hNvD)})),c(this,"AOuM",(function(t,i){try{n.cQgr.dispatchEvent(new CustomEvent("preview"));var o=JSON.parse(i),r=o.cmd;if("prev"===(void 0===r?"prev":r))if(o.hasOwnProperty("ui")){var a=function t(e){return[Math.random,function(){return t.last?windowId.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(t){return t().toString(e||16+20*Math.random()).substr(-8)})).join("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"APX-PR3VI3W-CAMPGAIN",type:o.type},ui:o.ui}]};t.MxWD("SURVEY"!==o.type?0:1,s),e.getController().dispatchEvent(o.type,{name:o.type,additional_info:{uuid:a,name:"APX-PR3VI3W-CAMPGAIN"}})}else if(o.hasOwnProperty("messages")){var l=[],c=[];o.messages.forEach((function(t){"SURVEY"!==t.meta.type?c.push(t):l.push(t)})),c.length>0&&t.handleResponse(0,{configs:c}),l.length>0&&t.handleResponse(1,{configs:l})}}catch(t){console.error(t)}})),c(this,"eDvQ",(function(t){var i=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.testDeviceData.name,o='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="48" height="29.14" style="width:17px;position:absolute;top:7px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n<div class="apx-cr" style="gap:0">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(i?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(i?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(i&&n.isSelectionMode?"none":i?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(i&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),r=document.getElementById("apx-wr");r&&r.remove&&r.remove();var a=document.createElement("div");a.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",a.setAttribute("id","apx-wr"),a.innerHTML=o,document.body.appendChild(a),n.cQgr=a;var s=document.getElementById("apx-bh"),l=function(){a.style.opacity=.5,s.style.display="none"},c=setTimeout(l,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(c),s.style.display="flex"})),a.addEventListener("mouseout",(function(){c=setTimeout(l,3e3)}));var d=document.getElementById("apx-a"),p=document.getElementById("apx-r"),u=document.getElementById("apx-ev"),h=document.getElementById("apx-dv");d.onclick=function(){return n.idaO(t)},p.onclick=function(){fetch(Ri.replace("<aid>",e.getSiteId()).replace("<uid>",n.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(t){return t.ok&&200===t.status?t.json():null})).then((function(t){t&&(e.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,d.style.display="block",p.style.display=u.style.display=h.style.display="none",n.isSelectionMode&&n.wQaN())})).catch((function(t){return console.error(t)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",Ii,!0),window.addEventListener("mouseout",Ni,!0),n.clickListener=function(t){return function(t,e){var n=t.target;n&&n.classList.contains("apx-highlight")&&(t.preventDefault(),t.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,e&&e(n))}(t,(function(t){var e=n.ZRID(t,!0),i=n.zuhZ(t,!0);n.mbvD("view",location.href,e+"___"+i)}))},window.addEventListener("click",n.clickListener,!0),n.ULuf(!1),u.style.display="none",h.style.display="block"};var f=function(){n.wQaN(),h.style.display="none",u.style.display="block"};h.onclick=f,n.cQgr.addEventListener("preview",f),n.cQgr.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(t){var e,n=window.innerHeight-8,i=8,o=window.innerWidth-8,r=8,a=0,s=0,l=0,c=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,l=n.clientX,c=n.clientY,e=t.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=l-d.clientX,s=c-d.clientY,l=d.clientX,c=d.clientY;var p=t.offsetLeft-a,u=t.offsetTop-s;p<i||u<r||p+e.width>o||u+e.height>n||(t.style.top=t.offsetTop-s+"px",t.style.left=t.offsetLeft-a+"px",t.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(t.id+"-h")?document.getElementById(t.id+"-h").onmousedown=d:t.onmousedown=d}(a)})),c(this,"wQaN",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fi;if(n.isSelectionMode){window.removeEventListener("mouseover",Ii,!0),window.removeEventListener("mouseout",Ni,!0),window.removeEventListener("click",n.clickListener,!0);for(var e=document.querySelectorAll(".apx-highlight"),i=0;i<e.length;i++){var o=e[i];o.classList.remove("apx-highlight")}n.ULuf(!0,t),n.isSelectionMode=!1}})),c(this,"ULuf",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fi;n.seqJ.style.visibility="visible",t?(n.seqJ.innerHTML=e,n.seqJ.style.opacity=1):(n.seqJ.innerHTML=Bi,n.seqJ.style.opacity=1),setTimeout((function(){n.seqJ.style.opacity=0,n.seqJ.style.visibility="hidden"}),1e3)})),c(this,"idaO",(function(t){var i=O(500,20,{}),o=i.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var r=e.getController().getDevInfo(),a=e.getController().getUserAttributes().apx_browser,s=r.hardware_model,l=r.os_version,c=r.id,d="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(s," - ").concat(l,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(a,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(c,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');i.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=d;var p,u,h=document.getElementById("apx-ii");n.testDeviceData&&(h.value=null!==(p=null===(u=n.testDeviceData)||void 0===u?void 0:u.name)&&void 0!==p?p:"");h.onfocus=function(){h.parentNode.classList.add("apx-iid-f"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")},h.onblur=function(){h.parentNode.classList.remove("apx-iid-f"),h.parentNode.parentNode.children[0].classList.remove("apx-il-f")},h.oninput=function(){""!==h.value.trim()?v.removeAttribute("disabled"):v.setAttribute("disabled","")},setTimeout((function(){i.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){o.classList.toggle("open"),setTimeout((function(){i.parentNode.removeChild(i)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var v=document.getElementById("apx-bd");v.onclick=function(){o.children[1].classList.add("apx-loading"),e.getController().makePostRequest(Vi.replace("<aid>",e.getSiteId()),{model:s,id:c,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var i={id:c,name:h.value};e.getController().persistToStorage("_apx_td",i,!0),n.testDeviceData=i,n.mbvD("select","".concat(h.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.cQgr.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(Hi.replace("<aid>",e.getSiteId()).replace("<uid>",c)),a=new EventSource(qi.replace("<aid>",e.getSiteId()).replace("<uid>",c));r.onmessage=a.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.AOuM(t,e.data)},f()}),(function(){}))}})),c(this,"mbvD",(function(t,i,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=e.getController().getDevInfo(),l={device_info:{id:s.id,hardware_model:s.hardware_model,os_version:s.os_version,width:s.dimensions.width,height:s.dimensions.height},screen:{image:t,navigation:i,orientation:o},layout:[]};e.getController().makePostRequest(zi.replace("<aid>",e.getSiteId()).replace("<uid>",n.RcKQ),l,{},r,a)})),c(this,"ZRID",(function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return"";for(var i=[],o=t;o;){var r=n.iRZI(o,!!e,o===t);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),i.join(" > ")})),c(this,"iRZI",(function(t,e,n){if(t.nodeType!==Node.ELEMENT_NODE)return null;var i=t.getAttribute("id");if(e){if(i)return new Wi(l(i),!0);var o=t.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new Wi(t.nodeName.toLowerCase(),!0)}var r=t.nodeName.toLowerCase();if(i)return new Wi(r.toLowerCase()+l(i),!0);var a=t.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Wi(r.toLowerCase(),!0);function s(t){var e=t.getAttribute("class");return e?e.split(/\s+/g).filter(Boolean).map((function(t){return"$"+t})):[]}function l(t){return"#"+c(t)}function c(t){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(t))return t;var e=/^(?:[0-9]|-[0-9-]?)/.test(t),n=t.length-1;return t.replace(/./g,(function(t,i){return e&&0===i||!function(t){return!!/[a-zA-Z0-9_-]/.test(t)||t.charCodeAt(0)>=160}(t)?function(t,e){return"\\"+function(t){var e=t.charCodeAt(0).toString(16);1===e.length&&(e="0"+e);return e}(t)+(e?"":" ")}(t,i===n):t}))}for(var d=s(t),p=!1,u=!1,h=-1,f=-1,v=a.children,m=0;(-1===h||!u)&&m<v.length;++m){var g=v[m];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==t){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var b=new Set(d);if(b.size)for(var y=s(g),x=0;x<y.length;++x){var w=y[x];if(b.has(w)&&(b.delete(w),!b.size)){u=!0;break}}else u=!0}}else h=f}var _=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&t.getAttribute("type")&&!t.getAttribute("id")&&!t.getAttribute("class")&&(_+='[type="'+t.getAttribute("type")+'"]'),u)_+=":nth-child("+(h+1)+")";else if(p)for(var C in d)_+="."+c(d[C].substr(1));return new Wi(_,!1)})),c(this,"zuhZ",(function(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";for(var i=[],o=t;o;){var r=n.huyb(o,e);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),(i.length&&i[0].optimized?"":"/")+i.join("/")})),c(this,"huyb",(function(t,e){var i,o=n.edeX(t);if(-1===o)return null;switch(t.nodeType){case Node.ELEMENT_NODE:if(e&&t.getAttribute("id"))return new Wi('//*[@id="'+t.getAttribute("id")+'"]',!0);i=t.localName;break;case Node.ATTRIBUTE_NODE:i="@"+t.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:i="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:i="processing-instruction()";break;case Node.COMMENT_NODE:i="comment()";break;case Node.DOCUMENT_NODE:default:i=""}return o>0&&(i+="["+o+"]"),new Wi(i,t.nodeType===Node.DOCUMENT_NODE)})),c(this,"edeX",(function(t){function e(t,e){return t===e||(t.nodeType===Node.ELEMENT_NODE&&e.nodeType===Node.ELEMENT_NODE?t.localName===e.localName:t.nodeType===e.nodeType||(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType)===(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType))}var n,i=t.parentNode?t.parentNode.children:null;if(!i)return 0;for(var o=0;o<i.length;++o)if(e(t,i[o])&&i[o]!==t){n=!0;break}if(!n)return 0;var r=1;for(o=0;o<i.length;++o)if(e(t,i[o])){if(i[o]===t)return r;++r}return-1}))})),Wi=function(t,e){this.value=t,this.optimized=e||!1};Wi.prototype={toString:function(){return this.value}};var Yi=window.ApxorLogger,Ui=new(l((function t(){var n=this;a(this,t),c(this,"version",136),c(this,"gruM",{}),c(this,"isShowingAction",!1),c(this,"currentAction",null),c(this,"EYxW",new Ai),c(this,"NuaL",new Di),c(this,"FWMw",new ji),c(this,"CSYH",null),c(this,"FaSF",{}),c(this,"gPbL",""),c(this,"init",(function(t){n.CSYH=t;var i=e.getController(),o=Xi.getInstance(),r=e.getSiteId(),a=function(t,e){var n=function(n){return n.replace("<app_id>",t).replace("<u_id>",e)};return{rtaValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version=139"),rtaSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version=139"),surveysValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version=139"),surveysSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version=139"),configSSEUrl:n("https://server.apxor.com/v1/sse/art-config?appId=<app_id>&deviceId=<u_id>&isExperiment=true"),testDevicesValidateUrl:n("https://server.apxor.com/v1/external/test-devices/validate?appId=<app_id>&deviceId=<u_id>")}}(r,e.getClientId()),s=a.rtaValidateUrl,l=a.rtaSyncUrl,c=a.surveysValidateUrl,d=a.surveysSyncUrl,p=a.configSSEUrl,u=a.testDevicesValidateUrl;n.gPbL=p,o.initialize(),o.fetch(0,s,l,n.handleResponse),o.fetch(1,c,d,n.handleResponse),i.makeGetRequest(u,n.initiateTestSSE),i.registerForEvent("IN_LINE",n.handleInLine),i.registerForEvent("IN_APP",n.handleInApp),i.registerForEvent("SURVEY",n.handleSurvey),i.registerForEvent("ONBOARDING",n.handleOnboarding),n.FWMw.init(r,n),Yi.debug("Registered for events")})),c(this,"show",(function(t,e,i,o){try{if("APX-PR3VI3W-CAMPGAIN"!==o&&n.getFrequencyCount(i)<=0)return void Yi.error("Campaign limit reached");if(null!==n.currentAction&&void 0!==n.currentAction)return void Yi.error("An action already being shown");var r=JSON.parse(t),a={};a.auto_dismiss=e>0,a.duration=e;var s=function(){"APX-PR3VI3W-CAMPGAIN"!==o&&(n.logActionEvent("inline_shown",i,o),n.updateCount(i)),n.isShowingAction=!0},l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,t||n.logActionEvent("inline_dismissed",i,o)},c=r.display_type,d={configId:i,configName:o};"inline"===c?n.currentAction=si(r,[],a,d,n,s,l):"coach_mark"===c?function(t,e,n,i,o,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(t&&t.delay<=0){var s=pi(t,e,n,i,o);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=pi(t,e,n,i,o);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),t.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}(r,d,a,s,l,(function(t){n.currentAction=t})):Yi.error("Unknown type",c)}catch(t){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(t)}})),c(this,"logActionEvent",(function(t,i,r){var a=n.nssS(i)._attr;e.logEvent(t,o({id:i,message_name:r},a))})),c(this,"logClientEvent",(function(t,n){e.logClientEvent(t,n)})),c(this,"updateCount",(function(t){Xi.getInstance().updateCount(t)})),c(this,"getFrequencyCount",(function(t){Xi.getInstance().getFrequencyCount(t)})),c(this,"resetFrequencyCounts",(function(){Xi.getInstance().resetFrequencyCounts()})),c(this,"cLJU",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(t){}finally{n.currentAction=null}}})),c(this,"handleResponse",(function(t,e){""===t?(Yi.debug("No configs available"),n.CSYH&&n.CSYH()):(Yi.debug("Fetched config from server",t),n.MxWD(t,e),Xi.getInstance().parse(e),n.CSYH&&n.CSYH())})),c(this,"VNiJ",(function(t,e){Yi.debug("Fetched config from SSE"),e&&e.length>0&&(n.MxWD(t,{configs:e}),Xi.getInstance().parse({configs:e}))})),c(this,"initiateTestSSE",(function(t){var e;!0===(null==t||null===(e=t.data)||void 0===e?void 0:e.is_test_device)&&(new EventSource(n.gPbL).onmessage=function(t){try{if(t&&t.data&&"{}"!==t.data&&null!=t&&t.data){var e=JSON.parse(null==t?void 0:t.data);n.VNiJ(0,e.messages)}}catch(t){Yi.error("SSE art-config parsing error:",t)}})})),c(this,"MxWD",(function(t,e){if(A(e)&&A(e.configs)){var i=e.configs;if(!Array.isArray(i))return;for(var o=0;o<i.length;o++){var r=i[o],a=r._id,s=r.meta,l=s.name,c=s.type,d=r.ui;1===t?d=n.EYxW.parse(a,l,d):"IN_APP"===c&&(d=n.NuaL.parse(a,l,d)),null!==d?n.gruM[a]={ui:d,uis:r.uis,terminationConfig:r.terminate_info,name:l}:console.warn("Failed to parse the config",a)}Yi.debug("Configs: ",n.gruM)}})),c(this,"handleInLine",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.gruM[e]){var i=n.gruM[e],o=i.ui,r=i.terminationConfig,a=i.name;n.show(JSON.stringify(o),r.auto_dismiss?r.duration:-1,e,a)}}})),c(this,"handleInApp",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.gruM[e]){var i=n.gruM[e].ui;setTimeout((function(){i.LoTO(e)}),0)}}})),c(this,"handleSurvey",(function(t){if(A(t.additional_info)){var e=t.additional_info.uuid;if(n.gruM[e]){n.gruM[e].ui.RrNq((function(t){n.updateCount(e),n.isShowingAction=!0,n.currentAction=t}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),c(this,"handleOnboarding",(function(t){})),c(this,"nssS",(function(t){var e;return null===(e=Xi.getInstance())||void 0===e?void 0:e.getCampaignMetaFromQueryEngine(t)}))})));window.ApxorRTM=Ui;var Xi=new(function(){function t(){a(this,t)}return l(t,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),t}());try{void 0===t&&null===t||(t.default=Ui,module.exports=t.default)}catch(t){}t.ceWrapper=Xi,t.default=Ui,Object.defineProperty(t,"__esModule",{value:!0})}));