1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[123],{1550:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"];return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.attributes)).reduce(function(e,n){return t.indexOf(n.nodeName)>-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e},[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter(function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null})}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map(function(e){return"."+e})}},584:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var n=[],o=e.length,r=[],i=1;i<=t;++i)!function e(t,n,o,r,i,a,l){if(a!==l)for(var c=r;c<=i&&i-c+1>=l-a;++c)o[a]=n[c],e(t,n,o,c+1,i,a+1,l);else t.push(o.slice(0,a).join(""))}(n,e,r,0,o-1,0,i);return n}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");return null!==t&&""!==t?t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t:null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(i){var a=i.childNodes,l=a.length;for(n=0;n<l;n++)if(r=a[n],(0,o.isElement)(r)&&(t++,r===e))return":nth-child("+t+")"}return null};var o=n(440)},175:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){for(var t=[],n=e;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,i=void 0===n?["ID","Class","Tag","NthChild"]:n,f=t.attributesToIgnore,g=void 0===f?["id","class","length"]:f,m=t.excludeRegex,v=void 0===m?null:m,b=[],y=(0,p.getParents)(e),w=!0,x=!1,k=void 0;try{for(var S,C=y[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=function(e,t,n,i){var u=void 0,p=(v={Tag:c.getTag,NthChild:l.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID},t.reduce(function(t,n){return t[n]=v[n](e),t},{}));i&&i instanceof RegExp&&(p.ID=i.test(p.ID)?null:p.ID,p.Class=p.Class.filter(function(e){return!i.test(e)}));var f=!0,g=!1,m=void 0;try{for(var v,b,y=t[Symbol.iterator]();!(f=(b=y.next()).done);f=!0){var w=b.value,x=p.ID,k=p.Tag,S=p.Class,C=p.Attributes,I=p.NthChild;switch(w){case"ID":if(x&&d(e,x))return x;break;case"Tag":if(k&&d(e,k))return k;break;case"Class":if(S&&S.length&&(u=h(e,S,k)))return u;break;case"Attributes":if(C&&C.length&&(u=h(e,C,k)))return u;break;case"NthChild":if(I)return I}}}catch(e){g=!0,m=e}finally{try{!f&&y.return&&y.return()}finally{if(g)throw m}}return"*"}(S.value,i,g,v);I&&b.push(I)}}catch(e){x=!0,k=e}finally{try{!w&&C.return&&C.return()}finally{if(x)throw k}}var L=[],T=!0,E=!1,O=void 0;try{for(var M,A=b[Symbol.iterator]();!(T=(M=A.next()).done);T=!0){var P=M.value;L.unshift(P);var R=L.join(" > ");if((0,u.isUnique)(e,R))return R}}catch(e){E=!0,O=e}finally{try{!T&&A.return&&A.return()}finally{if(E)throw O}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),l=n(64),c=n(970),u=n(213),p=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function f(e,t){return t.find(d.bind(null,e))}function h(e,t,n){var o=(0,i.getCombinations)(t,3),r=f(e,o);return r||n&&(r=f(e,o=o.map(function(e){return n+e})))?r:null}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName}},213:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!t)return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};(()=>{function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function n(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:String(n)}i.d(a,{A:()=>ob});var r=function(){var e,o;function r(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),n(this,"feedbackButton",null),n(this,"injectedFeedbackButton",!1),n(this,"buttonHidden",null),n(this,"lastButtonIcon",null)}return o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new r),this.instance}}],e=[{key:"toggleFeedbackButton",value:function(e){this.buttonHidden=!e,r.getInstance().updateFeedbackButtonState(),nT.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=ts.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",function(){e.feedbackButtonPressed()}),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var e=eq.getInstance().getFlowConfig();if(e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC||e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_BOTTOM||e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_LEFT){var t=document.querySelector(".bb-feedback-button-classic");t&&(t.innerText=e.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var e=eq.getInstance().getFlowConfig(),t="";t=e.buttonLogo?'<img class="bb-logo-logo" src="'.concat(e.buttonLogo,'" alt="Feedback Button" />'):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",nf.getInstance().isRTLLayout?"rtl":"ltr"),e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC||e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_BOTTOM||e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='<div class="bb-feedback-button-classic '.concat(e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_LEFT?"bb-feedback-button-classic--left":"").concat(e.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_BOTTOM?"bb-feedback-button-classic--bottom":"",'">').concat(e.widgetButtonText,"</div>")):t!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='<div class="bb-feedback-button-icon">'.concat(t).concat(p("arrowdown","#fff"),'</div><div class="bb-notification-bubble bb-notification-bubble--hidden"></div>')),this.lastButtonIcon=t;var n=!1;null===r.getInstance().buttonHidden?e.feedbackButtonPosition===r.FEEDBACK_BUTTON_NONE&&(n=!0):r.getInstance().buttonHidden&&(n=!0),n&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),e.feedbackButtonPosition===r.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),ts.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var o=ts.getInstance().appMode;"survey"!==o&&"survey_full"!==o&&"survey_web"!==o||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==e.hideForGuests||eM.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}],t(r.prototype,e),o&&t(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}();function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n(r,"FEEDBACK_BUTTON_BOTTOM_RIGHT","BOTTOM_RIGHT"),n(r,"FEEDBACK_BUTTON_BOTTOM_LEFT","BOTTOM_LEFT"),n(r,"FEEDBACK_BUTTON_CLASSIC","BUTTON_CLASSIC"),n(r,"FEEDBACK_BUTTON_CLASSIC_LEFT","BUTTON_CLASSIC_LEFT"),n(r,"FEEDBACK_BUTTON_CLASSIC_BOTTOM","BUTTON_CLASSIC_BOTTOM"),n(r,"FEEDBACK_BUTTON_NONE","BUTTON_NONE"),n(r,"instance",void 0);var c=function(e,t){3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n,o=(n=e.match(/.{2}/g),function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{i=(n=n.call(e)).next,!1;for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(n,3)||function(e,t){if(e){if("string"==typeof e)return l(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}(n,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=o[0],i=o[1],a=o[2],c=[parseInt(r,16)+t,parseInt(i,16)+t,parseInt(a,16)+t];r=c[0],i=c[1],a=c[2],r=Math.max(Math.min(255,r),0).toString(16),i=Math.max(Math.min(255,i),0).toString(16),a=Math.max(Math.min(255,a),0).toString(16);var u=(r.length<2?"0":"")+r,p=(i.length<2?"0":"")+i,d=(a.length<2?"0":"")+a;return"#".concat(u).concat(p).concat(d)},u=function(e){return(299*parseInt(e.substr(1,2),16)+587*parseInt(e.substr(3,2),16)+114*parseInt(e.substr(5,2),16))/1e3>=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'<svg class="bb-logo-logo bb-logo-logo--default" width="145" height="144" viewBox="0 0 145 144" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M38.9534 15H105.047C113.857 15 121 22.1426 121 30.9534L121 89.5238L121 96.015L121 125.541C121 128.759 117.393 130.66 114.739 128.84L90.1188 111.968H38.9534C30.1426 111.968 23 104.826 23 96.015V30.9534C23 22.1426 30.1426 15 38.9534 15Z" fill="white"/>\n </svg>':"unmute"===e?'<svg id="tooltip-svg-unmute" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path id="tooltip-svg-unmute-path" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.1 386.2C556.7 352 576 306.3 576 256c0-60.1-27.7-113.8-70.9-149c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C507.3 170.7 528 210.9 528 256c0 39.1-15.6 74.5-40.9 100.5L449 326.6c19-17.5 31-42.7 31-70.6c0-30.1-13.9-56.9-35.4-74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C425.1 227.6 432 241 432 256s-6.9 28.4-17.7 37.3c-1.3 1-2.4 2.2-3.4 3.4L352 250.6V64c0-12.6-7.4-24-18.9-29.2s-25-3.1-34.4 5.3L197.8 129.8 38.8 5.1zM352 373.3L82.9 161.3C53.8 167.4 32 193.1 32 224v64c0 35.3 28.7 64 64 64h67.8L298.7 471.9c9.4 8.4 22.9 10.4 34.4 5.3S352 460.6 352 448V373.3z"/></svg>':"mute"===e?'<svg id="tooltip-svg-mute" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path id="tooltip-svg-mute-path" d="M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"/></svg>':"replay"===e?'<svg id="tooltip-svg-replay" width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path id="tooltip-svg-replay-path" d="M48.5 224H40C26.7 224 16 213.3 16 200V72C16 62.3 21.8 53.5 30.8 49.8C39.8 46.1 50.1 48.1 57 55L98.6 96.6C186.2 10.1 327.3 10.4 414.4 97.6C501.9 185.1 501.9 326.9 414.4 414.4C326.9 501.9 185.1 501.9 97.6 414.4C85.1 401.9 85.1 381.6 97.6 369.1C110.1 356.6 130.4 356.6 142.9 369.1C205.4 431.6 306.7 431.6 369.2 369.1C431.7 306.6 431.7 205.3 369.2 142.8C307 80.6 206.5 80.3 143.9 141.8L185 183C191.9 189.9 193.9 200.2 190.2 209.2C186.5 218.2 177.7 224 168 224H48.5Z" />\n </svg>':"dismiss"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M294.6 166.6L317.3 144 272 98.7l-22.6 22.6L160 210.7 70.6 121.4 48 98.7 2.7 144l22.6 22.6L114.7 256 25.4 345.4 2.7 368 48 413.3l22.6-22.6L160 301.3l89.4 89.4L272 413.3 317.3 368l-22.6-22.6L205.3 256l89.4-89.4z"/></svg>':"blur"===e?'<svg width="1200pt" height="1200pt" version="1.1" viewBox="0 0 1200 1200" xmlns="http://www.w3.org/2000/svg">\n <path class="bb-svg-path" d="m602.25 1200c238.2 0 435.95-193.26 435.95-435.95 0-269.66-220.23-615.73-435.95-764.05-220.23 161.8-440.45 485.39-440.45 764.05 0 242.7 197.75 435.95 440.45 435.95zm-260.68-382.02c0 112.36 89.887 206.74 206.74 206.74v62.922c-148.32 0-274.16-121.35-274.16-269.66z" fill="#333"/>\n</svg>':"pen"===e?'<svg width="1072px" height="1034px" viewBox="0 0 1072 1034" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-907.000000, -217.000000)" fill-rule="nonzero">\n <g transform="translate(907.268457, 217.009827)">\n <g transform="translate(132.335119, 0.000000)" fill="#000" class="bb-svg-path">\n <path d="M20.3764235,730.530173 L10.1884235,720.342173 C-0.791576454,709.362173 -3.16357645,692.432173 4.37592355,678.858173 L83.1809235,537.018173 C71.7589235,502.979173 82.3098335,463.998173 112.254924,440.706173 L655.334924,18.3161733 C689.951924,-8.6058267 739.197924,-5.5388267 770.214924,25.4684733 L913.774924,169.028473 C944.782924,200.040473 947.848924,249.286473 920.927224,283.908473 L498.537224,826.988473 C496.322424,829.836173 493.935624,832.543173 491.384924,835.090073 C467.271924,859.207073 432.513924,866.195073 402.232924,856.063073 L260.382924,934.8
168073 C246.804924,942.407173 229.874924,940.036073 218.894924,929.055573 L208.706924,918.867573 L20.3764235,730.530173 Z M866.006424,241.190173 C871.393124,234.264373 870.779824,224.417173 864.576724,218.213173 L721.016724,74.6531733 C714.813624,68.4500733 704.965724,67.8367733 698.043724,73.2234733 L154.963724,495.613473 C147.381724,501.507973 146.018424,512.433473 151.912924,520.015473 C152.358234,520.585783 152.834804,521.128773 153.346524,521.636573 L417.586524,785.886573 C424.379524,792.675673 435.391524,792.675673 442.180524,785.886573 C442.692244,785.374853 443.168804,784.831873 443.610224,784.265473 L866.006424,241.190173 Z M342.796424,809.480173 L129.746424,596.430173 L77.9264235,689.707173 L249.516424,861.297173 L342.796424,809.480173 Z"></path>\n </g>\n <g transform="translate(-0.000000, 755.530173)" fill="#EB144C">\n <path d="M124.711543,0 L313.042043,188.3374 L233.288043,268.0914 C222.003043,279.3764 204.483043,281.5324 190.800043,273.3219 L16.8900429,168.9719 C-2.51595711,157.3309 -5.80895711,130.5499 10.1908429,114.5499 L124.711543,0 Z" class="bb-pen-tip"></path>\n </g>\n </g>\n </g>\n </g>\n</svg>':"rect"===e?'<svg width="339px" height="241px" viewBox="0 0 339 241" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-0.000865, 0.000000)" fill-rule="nonzero">\n <g transform="translate(0.000865, 0.000000)" fill="#000000" class="bb-svg-path">\n <path d="M339,0 L339,241 L0,241 L0,0 L339,0 Z M312.826351,26.168387 L26.1855674,26.168387 L26.1855674,214.41156 L312.826351,214.41156 L312.826351,26.168387 Z"></path>\n </g>\n <g transform="translate(0.000000, 83.206095)" fill="#EB144C" class="bb-pen-tip">\n <path d="M0,0 L26.186,26.186 L26.1864325,131.205465 L131.204,131.205 L157.792,157.793 L0.000865118243,157.793905 L0,0 Z"></path>\n </g>\n </g>\n </g>\n</svg>':"pointer"===e?'<svg width="1200pt" height="1200pt" version="1.1" viewBox="0 0 1200 1200" xmlns="http://www.w3.org/2000/svg">\n <path d="m1050.7 508.95-225.94 157.5 160.31 160.31c4.4531 4.4531 6.9141 10.43 6.9141 16.758s-2.4609 12.305-6.9141 16.758l-126.09 126.09c-4.4531 4.4531-10.43 6.9141-16.758 6.9141-6.3281 0-12.188-2.4609-16.758-6.9141l-160.2-160.43-157.62 225.94c-3.3984 4.9219-9.0234 7.8516-14.883 7.8516-0.70313 0-1.5234 0-2.2266-0.11719-6.7969-0.82031-12.422-5.2734-14.766-11.719l-333.16-880.55c-2.5781-6.6797-0.9375-14.297 4.2188-19.336 5.0391-5.0391 12.656-6.6797 19.336-4.2188l880.66 333.05c6.3281 2.3438 10.781 8.0859 11.602 14.766 0.82031 6.7969-2.1094 13.359-7.7344 17.344z" fill="#333"/>\n </svg>':"clip"===e?'<svg width="600px" height="1126px" viewBox="0 0 600 1126" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-0.002000, 0.501000)" fill="#333333" fill-rule="nonzero">\n <path d="M225.002,1124.999 C165.33,1124.999 108.102,1101.292 65.902,1059.097 C23.707,1016.902 5.68434189e-14,959.671 5.68434189e-14,899.997 L5.68434189e-14,299.997 C5.68434189e-14,220.431 31.605,144.127 87.867,87.867 C144.129,31.605 220.437,-4.26325641e-14 299.997,-4.26325641e-14 C379.557,-4.26325641e-14 455.867,31.605 512.127,87.867 C568.389,144.129 599.994,220.437 599.994,299.997 L599.994,1012.497 C599.994,1025.895 592.8456,1038.274 581.244,1044.974 C569.642,1051.6732 555.346,1051.6732 543.744,1044.974 C532.142,1038.2748 524.994,1025.896 524.994,1012.497 L524.994,299.997 C524.994,240.325 501.287,183.097 459.092,140.897 C416.897,98.702 359.666,74.995 299.992,74.995 C240.318,74.995 183.092,98.702 140.892,140.897 C98.697,183.092 74.99,240.323 74.99,299.997 L74.99,899.997 C74.99,953.587 103.58,1003.107 149.99,1029.897 C196.4,1056.694 253.58,1056.694 299.99,1029.897 C346.4,1003.104 374.99,953.585 374.99,899.997 L374.99,337.497 C374.99,310.704 360.697,285.942 337.49,272.544 C314.283,259.149 285.697,259.149 262.49,272.544 C239.283,285.942 224.99,310.704 224.99,337.497 L224.99,824.997 C224.99,838.395 217.8416,850.774 206.24,857.474 C194.638,864.1732 180.342,864.1732 168.74,857.474 C157.138,850.7748 149.99,838.396 149.99,824.997 L149.99,337.497 C149.99,283.907 178.58,234.387 224.99,207.597 C271.4,180.8 328.58,180.8 374.99,207.597 C421.4,234.39 449.99,283.909 449.99,337.497 L449.99,899.997 C449.99,959.669 426.283,1016.897 384.088,1059.097 C341.893,1101.292 284.662,1124.999 224.988,1124.999 L225.002,1124.999 Z" id="Path"></path>\n </g>\n </g>\n</svg>':"mic"===e?'<svg\n width="1200pt"\n height="1200pt"\n version="1.1"\n viewB
1ox="0 0 1200 1200"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g class="bb-svg-path">\n <path\n d="m600 862.5c144.75 0 262.5-117.75 262.5-262.5v-300c0-144.75-117.75-262.5-262.5-262.5s-262.5 117.75-262.5 262.5v300c0 144.75 117.75 262.5 262.5 262.5z"\n />\n <path\n d="m1012.5 600c0-20.707-16.793-37.5-37.5-37.5s-37.5 16.793-37.5 37.5c0 186.11-151.41 337.5-337.5 337.5s-337.5-151.39-337.5-337.5c0-20.707-16.793-37.5-37.5-37.5s-37.5 16.793-37.5 37.5c0 214.8 165.08 391.57 375 410.6v114.4c0 20.727 16.793 37.5 37.5 37.5s37.5-16.773 37.5-37.5v-114.4c209.92-19.031 375-195.8 375-410.6z"\n />\n </g>\n </svg>':"camera"===e?'<svg width="1155px" height="1004px" viewBox="0 0 1155 1004" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="#333333" fill-rule="nonzero">\n <g transform="translate(128.324095, 0.000000)">\n <path d="M42.7803063,0.00413459787 C31.4357421,0.00413459787 20.5549853,4.41399115 12.5336107,12.2572687 C4.51223664,20.1005462 0.00420584816,30.741831 0.00420584816,41.8370305 L0.00420584816,251.00151 C-0.156199045,262.200455 4.27736739,272.989996 12.315738,280.963903 C20.3585574,288.938257 31.3288589,293.431222 42.7803063,293.431222 C54.2317532,293.431222 65.2018267,288.938592 73.2448746,280.963903 C81.2832452,272.989549 85.7172445,262.200455 85.5564062,251.00151 L85.5564062,83.6699265 L256.660808,83.6699265 C268.112255,83.8267939 279.145066,79.4909873 287.298762,71.6298611 C295.452913,63.7643845 300.04718,53.0359758 300.04718,41.8370305 C300.04718,30.6380854 295.453255,19.9098998 287.298762,12.0441998 C279.144611,4.18307356 268.112255,-0.153157091 256.660808,0.00413459787 L42.7803063,0.00413459787 Z"></path>\n <path d="M983.227131,710.59444 C971.895913,710.764382 961.099907,715.326799 953.20401,723.279287 C945.312674,731.227538 940.964345,741.91668 941.119476,752.99849 L941.119476,920.330075 L770.015075,920.330075 C758.563631,920.173205 747.530815,924.509015 739.377123,932.370139 C731.222968,940.235615 726.628705,950.964028 726.628705,962.16297 C726.628705,973.361918 731.222627,984.090105 739.377123,991.955802 C747.531272,999.816926 758.563631,1004.15316 770.015075,1003.99587 L983.895579,1003.99587 C995.24014,1003.99587 1006.1209,999.586011 1014.14227,991.742733 C1022.16365,983.899455 1026.67168,973.258169 1026.67168,962.16297 L1026.67168,752.99849 C1026.83208,741.690223 1022.30053,730.801401 1014.11489,722.812989 C1005.93394,714.825472 994.790363,710.415949 983.227131,710.59444 L983.227131,710.59444 Z"></path>\n <path d="M983.227131,375.93127 C971.895913,376.101212 961.099907,380.66363 953.20401,388.61612 C945.312674,396.56437 940.964345,407.253512 941.119476,418.335325 L941.119476,585.66691 C940.959072,596.865853 945.39264,607.655394 953.431008,615.629303 C961.47383,623.603658 972.444131,628.096618 983.895579,628.096618 C995.347023,628.096618 1006.3171,623.603989 1014.36015,615.629303 C1022.39852,607.654947 1026.83251,596.865853 1026.67168,585.66691 L1026.67168,418.335325 C1026.83208,407.027056 1022.30053,396.138232 1014.11489,388.149822 C1005.93394,380.162305 994.790363,375.752783 983.227131,375.93127 L983.227131,375.93127 Z"></path>\n <path d="M769.974012,0.00413459787 C758.522563,-0.152733184 747.489752,4.18307356 739.336055,12.0441998 C731.181906,19.9096767 726.587637,30.6380854 726.587637,41.8370305 C726.587637,53.0359758 731.181564,63.7641611 739.336055,71.6298611 C747.490209,79.4909873 758.522563,83.8272181 769.974012,83.6699265 L941.078414,83.6699265 L941.078414,251.00151 C940.918009,262.200455 945.351572,272.989996 953.389945,280.963903 C961.432763,288.938257 972.403063,293.431222 983.854512,293.431222 C995.30596,293.431222 1006.27603,288.938592 1014.31908,280.963903 C1022.35745,272.989549 1026.79145,262.200455 1026.63061,251.00151 L1026.63061,41.8370305 C1026.63061,30.7426118 1022.12133,20.1017733 1014.10121,12.2572687 C1006.08109,4.41276405 995.199876,0.00413459787 983.854512,0.00413459787 L769.974012,0.00413459787 Z"></path>\n <path d="M427.765208,0.00413459787 C416.31376,-0.152733184 405.280949,4.18307356 397.127256,12.0441998 C388.973102,19.9096767 384.378838,30.6380854 384.378838,41.8370305 C384.378838,53.0359758 388.972761,63.7641611 397.127256,71.
16298611 C405.281406,79.4909873 416.31376,83.8272181 427.765208,83.6699265 L598.86961,83.6699265 C610.321058,83.8267939 621.35387,79.4909873 629.507562,71.6298611 C637.661716,63.7643845 642.255985,53.0359758 642.255985,41.8370305 C642.255985,30.6380854 637.662058,19.9098998 629.507562,12.0441998 C621.353413,4.18307356 610.321058,-0.153157091 598.86961,0.00413459787 L427.765208,0.00413459787 Z"></path>\n </g>\n <g transform="translate(0.000000, 427.000000)">\n <path d="M768.516184,22.1826583 C752.659627,13.73125 732.573775,13.73125 717.773442,24.29375 L562.379192,124.6375 L562.379192,31.6875 C562.379192,13.7330104 548.635081,0 530.666079,0 L31.7131123,0 C13.7441105,0 0,13.7330104 0,31.6875 L0,475.3125 C0,493.26699 13.7441105,507 31.7131123,507 L530.666079,507 C548.635081,507 562.379192,493.26699 562.379192,475.3125 L562.379192,382.3625 L717.773442,482.70625 C726.231681,487.9875 735.742444,491.157658 745.257258,491.157658 C753.715498,491.157658 761.113815,489.046567 769.572406,484.820862 C786.485185,475.313732 796,458.414612 796,439.400352 L796,68.6566021 C794.943601,48.5869719 785.428963,31.6878521 768.516184,22.1807219 L768.516184,22.1826583 Z"></path>\n </g>\n </g>\n </g>\n</svg>':"recorderon"===e?'<svg width="1251px" height="1251px" viewBox="0 0 1251 1251" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g>\n <circle fill="#E31810" cx="625.5" cy="625.5" r="625.5"></circle>\n <circle fill="#F71008" cx="625" cy="625" r="507"></circle>\n <g transform="translate(175.000000, 449.000000)" fill="#FFFFFF" fill-rule="nonzero">\n <path d="M0,347.097493 L0,4.90250696 L135.528311,4.90250696 C161.471024,4.90250696 183.639743,9.49741034 202.034469,18.6872171 C220.429194,27.8770239 234.46286,40.8541449 244.135466,57.6185803 C253.808072,74.3830156 258.644376,94.0714804 258.644376,116.683975 C258.644376,139.40786 253.724206,158.929238 243.883867,175.248107 C234.043527,191.566976 219.814173,204.070682 201.195803,212.759227 C182.577434,221.447772 160.073248,225.792044 133.683247,225.792044 L42.9396629,225.792044 L42.9396629,167.64563 L121.941933,167.64563 C135.807866,167.64563 147.325536,165.751973 156.494943,161.964659 C165.66435,158.177344 172.51345,152.496373 177.042243,144.921744 C181.571035,137.347116 183.835432,127.934526 183.835432,116.683975 C183.835432,105.322032 181.571035,95.7423543 177.042243,87.9449425 C172.51345,80.1475308 165.636395,74.2159282 156.411077,70.1501349 C147.185759,66.0843416 135.584222,64.051445 121.606467,64.051445 L72.6284142,64.051445 L72.6284142,347.097493 L0,347.097493 Z M185.512762,191.37204 L270.888889,347.097493 L190.712487,347.097493 L107.181424,191.37204 L185.512762,191.37204 Z"></path>\n <polygon points="309.166667 347.097493 309.166667 4.90250696 540.126846 4.90250696 540.126846 64.5527072 381.634607 64.5527072 381.634607 146.091356 528.244113 146.091356 528.244113 205.741556 381.634607 205.741556 381.634607 287.447293 540.796296 287.447293 540.796296 347.097493"></polygon>\n <path d="M901,124.638783 L827.757943,124.638783 C826.420189,115.158428 823.68894,106.709759 819.564197,99.2927757 C815.439454,91.8757921 810.144176,85.5462611 803.678363,80.3041825 C797.212549,75.0621039 789.77129,71.0468948 781.354585,68.2585551 C772.93788,65.4702155 763.824427,64.0760456 754.014228,64.0760456 C736.288981,64.0760456 720.849065,68.4537389 707.69448,77.2091255 C694.539894,85.964512 684.339516,98.6793409 677.093346,115.353612 C669.847176,132.027883 666.224091,152.243346 666.224091,176 C666.224091,200.425856 669.875046,220.948035 677.176956,237.56654 C684.478866,254.185044 694.707113,266.732573 707.861699,275.209125 C721.016285,283.685678 736.233242,287.923954 753.51257,287.923954 C763.21129,287.923954 772.213263,286.641318 780.518488,284.076046 C788.823714,281.510773 796.209233,277.746515 802.675047,272.78327 C809.14086,267.820025 814.519748,261.769328 818.81171,254.631179 C823.103672,247.493029 826.08575,239.351077 827.757943,230.205323 L901,230.539924 C899.104848,246.26616 894.394837,261.406844 886.869968,275.961977 C879.3451,290.51711 869.256201,303.510773 856.603274,314.942966 C843.950346,326.375158 828.900608,335.409379 811.45406,342.045627 C794.007513,348.681876 774.303504,352 752.342035,352 C721.796641,352 694.512024,345.084918 670.488184,331.254753 C646.464343,317.424588 627.512821,297.404309
1613.633619,271.193916 C599.754416,244.983523 592.814815,213.252218 592.814815,176 C592.814815,138.636248 599.838026,106.849176 613.884448,80.6387833 C627.93087,54.4283904 646.993871,34.4359949 671.073451,20.661597 C695.153031,6.88719899 722.242559,0 752.342035,0 C772.185393,0 790.607387,2.78833967 807.608016,8.36501901 C824.608646,13.9416984 839.686254,22.0557668 852.840839,32.7072243 C865.995425,43.3586819 876.72533,56.3802281 885.030556,71.7718631 C893.335782,87.1634981 898.65893,104.785805 901,124.638783 Z"></path>\n </g>\n </g>\n </g>\n</svg>':"recorderoff"===e?'<svg width="1251px" height="1251px" viewBox="0 0 1251 1251" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g class="bb-rec-on-circle" fill="#EEEEEE" fill-rule="nonzero">\n <path d="M625.5,0 C970.954111,0 1251,280.045889 1251,625.5 C1251,970.954111 970.954111,1251 625.5,1251 C280.045889,1251 0,970.954111 0,625.5 C0,280.045889 280.045889,0 625.5,0 Z M626,124 C348.753056,124 124,348.753056 124,626 C124,903.246944 348.753056,1128 626,1128 C903.246944,1128 1128,903.246944 1128,626 C1128,348.753056 903.246944,124 626,124 Z"></path>\n </g>\n <g class="bb-rec-on-cont" fill="#E31810" transform="translate(86.000000, 86.000000)" fill-rule="nonzero">\n <path d="M540,0 C241.2,0 0,241.2 0,540 C0,838.8 241.2,1080 540,1080 C838.8,1080 1080,838.8 1080,540 C1080,241.2 838.8,0 540,0 Z M777.6,741.6 C777.6,761.998 761.998,777.6 741.6,777.6 L338.4,777.6 C318.002,777.6 302.4,761.998 302.4,741.6 L302.4,338.4 C302.4,318.002 318.002,302.4 338.4,302.4 L741.6,302.4 C761.998,302.4 777.6,318.002 777.6,338.4 L777.6,741.6 Z"></path>\n </g>\n </g>\n </svg>':"arrowdown"===e?'<svg class="bb-logo-arrowdown" fill="'.concat(t,'" width="100pt" height="100pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">\n <path d="m50 77.637c-1.3477 0-2.6953-0.51562-3.7266-1.543l-44.73-44.73c-2.0586-2.0586-2.0586-5.3945 0-7.4531 2.0586-2.0586 5.3945-2.0586 7.4531 0l41.004 41 41.004-41c2.0586-2.0586 5.3945-2.0586 7.4531 0 2.0586 2.0586 2.0586 5.3945 0 7.4531l-44.73 44.727c-1.0312 1.0312-2.3789 1.5469-3.7266 1.5469z"/>\n </svg>'):"arrowleft"===e?'<svg fill="'.concat(t,'" width="100pt" height="100pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">\n <path d="m70.988 1.6211c2.1875-2.168 5.7344-2.168 7.9297 0 2.1836 2.168 2.1836 5.7227 0 7.8906l-46.016 40.445 46.016 40.5c2.1836 2.168 2.1836 5.668 0 7.8906-2.1953 2.168-5.7383 2.168-7.9297 0l-50.039-44.109c-1.168-1.168-1.668-2.7227-1.5898-4.2773-0.078125-1.5 0.42188-3.0547 1.5898-4.2227l50.039-44.109z" fill-rule="evenodd"/>\n </svg>'):"close"===e?'<svg fill="'.concat(t,'" width="100pt" height="100pt" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">\n <path d="m72.812 33.02l-5.832-5.832-16.98 16.875-16.98-16.875-5.832 5.832 16.875 16.98-16.875 16.98 5.832 5.832 16.98-16.875 16.98 16.875 5.832-5.832-16.875-16.98z"/>\n </svg>'):"undo"===e?'<svg width="62px" height="60px" viewBox="0 0 62 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g class="bb-svg-path" transform="translate(-0.000500, 0.001926)" fill-rule="nonzero">\n <path d="M28.0005,51.6270739 C24.9653,51.0684839 22.0825,49.8731739 19.5396,48.1192739 L13.8208,53.8380739 C17.9536,57.0060739 22.8403,59.0333739 28.0008,59.7286739 L28.0005,51.6270739 Z" id="Path"></path>\n <path d="M2.2705,33.9980739 C2.96581,39.1582739 4.9932,44.0450739 8.1611,48.1780739 L13.8799,42.4592739 C12.126,39.9162739 10.9307,37.0334739 10.3721,33.9983739 L2.2705,33.9980739 Z" id="Path"></path>\n <path d="M61.7305,33.9980739 L53.6289,33.9980739 C53.07031,37.0332739 51.875,39.9160739 50.1211,42.4589739 L55.8399,48.1777739 C59.0079,44.0449739 61.0352,39.1582739 61.7305,33.9977739 L61.7305,33.9980739 Z" id="Path"></path>
1\n <path d="M4.0005,24.9980739 L24.0005,24.9980739 L24.0005,16.9980739 L14.27,16.9980739 C17.6762,12.3613739 22.7622,9.24417393 28.442,8.31057393 C34.1178,7.38088393 39.934,8.70901393 44.645,12.0175739 C49.352,15.3222739 52.5786,20.3417739 53.6294,25.9975739 L61.731,25.9975739 C60.6646,18.0834739 56.4888,10.9235739 50.129,6.09957393 C43.7657,1.27147393 35.746,-0.818426068 27.836,0.290973932 C19.9298,1.39647393 12.793,5.61127393 8,11.9979739 L8,0.997973932 L-3.55271368e-15,0.997973932 L-3.55271368e-15,20.9979739 C-3.55271368e-15,22.0604739 0.42188,23.0760739 1.1719,23.8260739 C1.92192,24.5760739 2.9375,24.9979739 4,24.9979739 L4.0005,24.9980739 Z" id="Path"></path>\n <path d="M36.0005,51.6270739 L36.0005,59.7286739 C41.1607,59.0333639 46.0475,57.0059739 50.1805,53.8380739 L44.4617,48.1192739 C41.9187,49.8731739 39.0359,51.0684739 36.0008,51.6270739 L36.0005,51.6270739 Z" id="Path"></path>\n </g>\n </g>\n </svg>':"circle-dot"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"/></svg>'):"circle-question"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>'):"circle-info"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216 192V224h24 48 24v24 88h8 24v48H296 216 192V336h24zm72-144H224V128h64v64z"/></svg>'):"circle-exclamation"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm24-384v24V264v24H232V264 152 128h48zM232 368V320h48v48H232z"/></svg>'):"circle-up"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM384 256H304V384H208V256H128V224L256 96 384 224v32z"/></svg>'):"circle-right"===e?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="'.concat(t,'" d="M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM256 384l0-80-128 0 0-96 128 0 0-80 32 0L416 256 288 384l-32 0z"/></svg>'):""};function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function h(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=d(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:String(t)}var m=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),h(this,"startTimestamp",Date.now()),h(this,"requestId",0),h(this,"requests",{}),h(this,"externalRequests",[]),h(this,"maxRequests",30),h(this,"filters",[]),h(this,"defaultBlacklist",["gleap.io"]),h(this,"blacklist",[]),h(this,"initialized",!1),h(this,"stopped",!1),h(this,"loadAllResources",!1)}
1return e=[{key:"setLoadAllResources",value:function(e){this.loadAllResources=e}},{key:"isContentTypeSupported",value:function(e){if("string"!=typeof e)return!1;if(""===e)return!0;e=e.toLocaleLowerCase();for(var t=["text/","xml","json"],n=0;n<t.length;n++)if(e.includes(t[n]))return!0;return!1}},{key:"getRequests",value:function(){var e=JSON.parse(JSON.stringify(Object.values(this.requests)));if(this.externalRequests&&this.externalRequests.length>0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n&&n.request&&n.request.headers)for(var o=0;o<this.filters.length;o++)delete n.request.headers[this.filters[o]];if(n&&n.request&&n.request.payload){var r=n.request.payload;try{r=JSON.parse(n.request.payload)}catch(e){}if(r){for(o=0;o<this.filters.length;o++)delete r[this.filters[o]];n.request.payload=JSON.stringify(r)}}if(n&&n.response&&n.response.responseText)try{var i=JSON.parse(n.response.responseText);for(o=0;o<this.filters.length;o++)delete i[this.filters[o]];n.response.responseText=JSON.stringify(i)}catch(e){}}try{if("undefined"!=typeof window&&window.performance){var a=window.performance.getEntriesByType("resource");for(t=0;t<a.length;t++){var l=a[t];l&&l.name&&(this.loadAllResources||["xmlhttprequest","fetch"].indexOf(l.initiatorType)>-1)&&!e.find(function(e){return e.url===l.name})&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+l.startTime),url:l.name,duration:Math.round(l.duration),initiatorType:l.initiatorType})}}}catch(e){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter(function(e){for(var t=0;t<c.length;t++)if(e&&e.url&&e.url.includes(c[t]))return!1;return!0})}catch(e){}return e}},{key:"setMaxRequests",value:function(e){e>70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n<t.length;n++)delete this.requests[t[n]]}},{key:"calcRequestTime",value:function(e){if(e&&this.requests&&this.requests[e]){var t=this.requests[e].date;t&&(this.requests[e].duration=(new Date).getTime()-t.getTime())}}},{key:"getTextContentSize",value:function(e){var t=0;try{t=(new TextEncoder).encode(e).length}catch(n){try{t=encodeURI(s).split(/%..|./).length-1}catch(n){try{t=new Blob([e]).size}catch(n){t=e.length}}}return t/1024/1024}},{key:"cleanupContentSize",value:function(e){return this.getTextContentSize(e)>.15?"<content_too_large>":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":d(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(e){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:"<request_still_open>"},e.calcRequestTime(o)}catch(e){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then(function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()}).catch(function(t){e.cleanRequests()}):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:"<content_type_not_supported>"}),e.calcRequestTime(o),e.cleanRequests())}catch(e){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then(function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t}).catch(function(t){throw e.onFetchFailed(t,o),t})}),e}},{key:"blobToTextPromise",value:function(e){return new Promise(function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)})}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&f(n.prototype,e),t&&f(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();h(m,"instance",void 0);var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>
12&&void 0!==arguments[2]?arguments[2]:400;return new Promise(function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,l=n;t>a.width/4&&(r=a.width/4),n>a.height/4&&(l=a.height/4);var c=a.width,u=a.height;c>u?c>r&&(u*=r/c,c=r):u>l&&(c*=l/u,u=l),e.width=c,e.height=u,e.getContext("2d").drawImage(a,0,0,c,u),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}})},b=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.
1substr(0,4)))},y=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(e){return{}}return e},w=function(e,t){return e.length>t?e.slice(0,t)+"...":e},x=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(e){}return e},k=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(e){}return null},S=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(e){}else localStorage.removeItem(n)},C=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",function(){e()})};let I=Math.min,L=Math.max,T=Math.round,E=Math.floor,O=e=>({x:e,y:e}),M={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function P(e,t){return"function"==typeof e?e(t):e}function R(e){return e.split("-")[0]}function N(e){return e.split("-")[1]}function D(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function F(e){return["top","bottom"].includes(R(e))?"y":"x"}function B(e){return e.replace(/start|end/g,e=>A[e])}function _(e){return e.replace(/left|right|bottom|top/g,e=>M[e])}function H(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function q(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function U(e,t,n){let o,{reference:r,floating:i}=e,a=F(t),l=D(F(t)),c=j(l),u=R(t),p="y"===a,d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[c]/2-i[c]/2;switch(u){case"top":o={x:d,y:r.y-i.height};break;case"bottom":o={x:d,y:r.y+r.height};break;case"right":o={x:r.x+r.width,y:f};break;case"left":o={x:r.x-i.width,y:f};break;default:o={x:r.x,y:r.y}}switch(N(t)){case"start":o[l]-=h*(n&&p?-1:1);break;case"end":o[l]+=h*(n&&p?-1:1)}return o}async function z(e,t){var n;void 0===t&&(t={});let{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=P(t,e),g=H(h),m=l[f?"floating"===d?"reference":"floating":d],v=q(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),b="floating"===d?{...a.floating,x:o,y:r}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=q(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}function W(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return e instanceof Node||e instanceof G(e).Node}function Z(e){return e instanceof Element||e instanceof G(e).Element}function K(e){return e instanceof HTMLElement||e instanceof G(e).HTMLElement}function Y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof G(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Q(e){let t=$(),n=et(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function $(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ee(e){return["html","body","#document"].includes(W(e))}function et(e){return G(e).getComputedStyle(e)}function en(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eo(e){if("html"===W(e))return e;let t=e.assignedSlot||e.parentNode||Y(e)&&e.host||V(e);return Y(t)?t.host:t}function er(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=eo(t);return ee(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&J(n)?n:e(n)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=G(r);
1return i?t.concat(a,a.visualViewport||[],J(r)?r:[],a.frameElement&&n?er(a.frameElement):[]):t.concat(r,er(r,[],n))}function ei(e){let t=et(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=K(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=T(n)!==i||T(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ea(e){return Z(e)?e:e.contextElement}function es(e){let t=ea(e);if(!K(t))return O(1);let n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ei(t),a=(i?T(n.width):n.width)/o,l=(i?T(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=O(0);function ec(e){let t=G(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,o){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ea(e),l=O(1);t&&(o?Z(o)&&(l=es(o)):l=es(e));let c=(void 0===(r=n)&&(r=!1),!(!o||r&&o!==G(a))&&r)?ec(a):O(0),u=(i.left+c.x)/l.x,p=(i.top+c.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=G(a),t=o&&Z(o)?G(o):o,n=e,r=n.frameElement;for(;r&&o&&t!==n;){let e=es(r),t=r.getBoundingClientRect(),o=et(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,p*=e.y,d*=e.x,f*=e.y,u+=i,p+=a,r=(n=G(r)).frameElement}}return q({width:d,height:f,x:u,y:p})}let ep=[":popover-open",":modal"];function ed(e){return ep.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ef(e){return eu(V(e)).left+en(e).scrollLeft}function eh(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=G(e),o=V(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;let e=$();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)o=function(e){let t=V(e),n=en(e),o=e.ownerDocument.body,r=L(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=L(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===et(o).direction&&(a+=L(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(V(e));else if(Z(t))o=function(e,t){let n=eu(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=K(e)?es(e):O(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{let n=ec(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return q(o)}function eg(e,t){return K(e)&&"fixed"!==et(e).position?t?t(e):e.offsetParent:null}function em(e,t){let n=G(e);if(!K(e)||ed(e))return n;let o=eg(e,t);for(;o&&["table","td","th"].includes(W(o))&&"static"===et(o).position;)o=eg(o,t);return o&&("html"===W(o)||"body"===W(o)&&"static"===et(o).position&&!Q(o))?n:o||function(e){let t=eo(e);for(;K(t)&&!ee(t);){if(Q(t))return t;t=eo(t)}return null}(e)||n}let ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e,i="fixed"===r,a=V(o),l=!!t&&ed(t.floating);if(o===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=O(1),p=O(0),d=K(o);if((d||!d&&!i)&&(("body"!==W(o)||J(a))&&(c=en(o)),K(o))){let e=eu(o);u=es(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e,i=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let o=er(e,[],!1).filter(e=>Z(e)&&"body"!==W(e)),r=null,i="fixed"===et(e).position,a=i?eo(e):e;for(;Z(a)&&!ee(a);){let t=et(a),n=Q(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||J(a)&&!n&&function e(t,n){let o=eo(t);return!(o===n||!Z(o)||ee(o))&&("fixed"===et(o).position||e(o,n))}(e,a))?o=o.filter(e=>e!==a):r=t,a=eo(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((e,n)=>{let o=eh(t,n,r);return e.top=L(o.top,e.top),e.right=I(o.right,e.right),e.bottom=I(o.bottom,e.bottom),e.left=L(o.left,e.left),e},eh(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:em,getElementRects:async function(e){let t=this.getOffsetParent||em,n=this.getDimensions;return{reference:function(e,t,n){let o=K(t),r=V(t),i="fixed"===n,a=eu(e,!0,i,t),l={scrollLeft:0,scrollTop:0},c=O(0);if(o||!o&&!i)if(("body"!==W(t)||J(r))&&(l=en(t)),o){let e=eu(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=ef(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:es,isElement:Z,isRTL:function(e){return"rtl"===et(e).direction}};function eb(e){return(eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ey(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ex(o.key),o)}}
1function ew(e,t,n){return(t=ex(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e){var t=function(e,t){if("object"!=eb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=eb(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eb(t)?t:String(t)}function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var eS=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),ew(this,"tooltips",[]),ew(this,"filteredTooltips",[]),ew(this,"lastUrl",null),ew(this,"elementToFloatingUIMap",new WeakMap),ew(this,"elementToTooltipMap",new WeakMap),ew(this,"nextId",0),ew(this,"linkTooltip",function(t,n){if(!t.hasAttribute("data-gleap-tooltip")){var o=e.nextId++;if(t.setAttribute("data-gleap-tooltip",o),t){var r=null;if("hotspot"===n.mode){var i=document.createElement("div");i.setAttribute("data-gleap-tooltip-anchor",o),i.classList.add("gleap-tooltip-anchor"),t.setAttribute("data-gleap-tooltip-mode","hotspot"),e.canEmbed(t)?t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i):t.parentNode.insertBefore(i,t.nextSibling);var a=document.createElement("div");a.classList.add("gleap-tooltip-hotspot"),a.setAttribute("data-gleap-tooltip-hotspot",o),a.innerHTML="".concat(p(n.icon,n.color)).concat(n.animated?'<div style="background-color: '.concat(n.color,'" class="gleap-tooltip-hotspot-animation"></div>'):""),i.appendChild(a),e.repositionHotspot(t,n),r=a,e.elementToTooltipMap.set(t,n)}else r=t;var l=e.createTooltip(r,n.html,n);e.elementToFloatingUIMap.set(t,l)}}}),ew(this,"updateFilteredTooltips",function(){e.filteredTooltips=e.getFilteredTooltips(),e.checkForTooltips()}),ew(this,"getFilteredTooltips",function(){if(!e.tooltips)return[];var t=window.location.href;return e.tooltips.filter(function(e){if(!e.page||0===e.page.length)return!0;var n=e.pageType,o=e.page;switch(n){case"is":return t===o;case"isnot":return t!==o;case"contains":return t.includes(o);case"notcontains":return!t.includes(o);case"startswith":return t.startsWith(o);case"endswith":return t.endsWith(o);default:return!1}})}),ew(this,"checkForTooltips",function(){for(var t=0;t<e.filteredTooltips.length;t++){var n=e.filteredTooltips[t];try{for(var o=document.querySelectorAll(n.selector),r=0;r<o.length;r++){var i=o[r];i&&e.linkTooltip(i,n)}}catch(e){}}}),ew(this,"load",function(){var t=eM.getInstance(),n=new XMLHttpRequest;n.open("GET",t.apiUrl+"/config/"+t.sdkKey+"/tooltips"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.setRequestHeader("Api-Token",t.sdkKey);try{n.setRequestHeader("Gleap-Id",t.session.gleapId),n.setRequestHeader("Gleap-Hash",t.session.gleapHash)}catch(e){}n.onerror=function(){console.error("Failed to fetch tooltips")},n.onreadystatechange=function(t){if(4===n.readyState&&200===n.status)try{e.tooltips=JSON.parse(n.responseText),e.updateFilteredTooltips()}catch(e){console.error("Failed to parse tooltips",e)}},n.send()})}return e=[{key:"processNodeInsertion",value:function(e){var t=this;e.nodeType===Node.ELEMENT_NODE&&(this.checkNodeTooltip(e),e.childNodes&&e.childNodes.forEach(function(e){t.processNodeInsertion(e)}))}},{key:"checkNodeTooltip",value:function(e){var t=this;this.filteredTooltips.length>0&&this.filteredTooltips.forEach(function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)})}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r=(n=t.updateHotspotPositions.bind(t),o=null,function(){if(!o){var e=this,t=arguments;o=setTimeout(function(){n.call.apply(n,[e].concat(function(e){if(Array.isArray(e))return ek(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return ek(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ek(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),o=null},250)}});window.addEventListener("resize",r),this.observer=new MutationObserver(function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEac
1h(function(n){n.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)}),n.removedNodes.forEach(function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach(function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)})}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='<div class="gleap-tooltip-inner">\n '.concat(t,'\n <div class="gleap-tooltip-arrow">\n <svg width="116" height="56" viewBox="0 0 116 56" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M57.75 0.74998L115.5 0.680177L66.8726 49.3076C61.7958 54.3844 53.5646 54.3844 48.4878 49.3076L4.05618e-05 0.819784L57.75 0.74998Z" fill="white"/>\n </svg>\n </div>\n </div>'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,u=ea(e),p=r||i?[...u?er(u):[],...er(t)]:[];p.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let d=u&&l?function(e,t){let n,o=null,r=V(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();let{left:u,top:p,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;let h={rootMargin:-E(p)+"px "+-E(r.clientWidth-(u+d))+"px "+-E(r.clientHeight-(p+f))+"px "+-E(u)+"px",threshold:L(0,I(1,c))||1},g=!0;function m(e){let t=e[0].intersectionRatio;if(t!==c){if(!g)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(m,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,h)}o.observe(e)}(!0),i}(u,n):null,f,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let m=c?eu(e):null;return c&&function t(){let o=eu(e);m&&(o.x!==m.x||o.y!==m.y||o.width!==m.width||o.height!==m.height)&&n(),m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(f)}}(e,o,function(){var t,r;let a;((e,t,n)=>{let o=new Map,r={platform:ev,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{let{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:d}=U(u,o,c),f=o,h={},g=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:v,y:b,data:y,reset:w}=await m({x:p,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});p=null!=v?v:p,d=null!=b?b:d,h={...h,[i]:{...h[i],...y}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:p,y:d}=U(u,f,c)),n=-1)}return{x:p,y:d,placement:f,strategy:r,middlewareData:h}})(e,t,{...r,platform:i})})(e,o,{placement:"left"===n.posX?"left":"right",middleware:[{name:"offset",options:10,async fn(e){var t,n;let{x:o,y:r,placement:i,middlewareData:a}=e,l=await async function(e,t){let{placement:n,platform:o,elements:r}=e,i=await (null==o.isRTL?void 0:o.isRTL(r.floating)),a=R(n),l=N(n),c="y"===F(n),u=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,d=P(10,e),{mainAxis:f,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof g&&(h="end"===l?-1*g:g),c?{x:h*p,y:f*u}:{x:f*u,y:h*p}}(e,10);return i===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:i}}}},(void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o,r,i,a;let{placement:l,middlewareData:c,rects:u,initialPlacement:p,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...w}=P(t,e);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let x=R(l),k=R(p)===p,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=m||(k||!y?[_(p)]:function(e){let t=_(e);return[B(e),t,B(t)]}(p));
1m||"none"===b||C.push(...function(e,t,n,o){let r=N(e),i=function(e,t,n){let o=["left","right"],r=["right","left"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(R(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(B)))),i}(p,y,b,S));let I=[p,...C],L=await z(e,w),T=[],E=(null==(o=c.flip)?void 0:o.overflows)||[];if(h&&T.push(L[x]),g){let e=function(e,t,n){void 0===n&&(n=!1);let o=N(e),r=D(F(e)),i=j(r),a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_(a)),[a,_(a)]}(l,u,S);T.push(L[e[0]],L[e[1]])}if(E=[...E,{placement:l,overflows:T}],!T.every(e=>e<=0)){let e=((null==(r=c.flip)?void 0:r.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(i=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=E.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=p}if(l!==n)return{reset:{placement:n}}}return{}}}),(void 0===r&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=P(r,e),u={x:t,y:n},p=await z(e,c),d=F(R(o)),f=D(d),h=u[f],g=u[d];if(i){let e="y"===f?"bottom":"right";h=L(h+p["y"===f?"top":"left"],I(h,h-p[e]))}if(a){let e="y"===d?"bottom":"right";g=L(g+p["y"===d?"top":"left"],I(g,g-p[e]))}let m=l.fn({...e,[f]:h,[d]:g});return{...m,data:{x:m.x-t,y:m.y-n}}}}),{name:"arrow",options:a={element:i},async fn(e){let{x:t,y:n,placement:o,rects:r,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:p=0}=P(a,e)||{};if(null==u)return{};let d=H(p),f={x:t,y:n},h=D(F(o)),g=j(h),m=await i.getDimensions(u),v="y"===h,b=v?"clientHeight":"clientWidth",y=r.reference[g]+r.reference[h]-f[h]-r.floating[g],w=f[h]-r.reference[h],x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u)),k=x?x[b]:0;k&&await (null==i.isElement?void 0:i.isElement(x))||(k=l.floating[b]||r.floating[g]);let S=k/2-m[g]/2-1,C=I(d[v?"top":"left"],S),T=I(d[v?"bottom":"right"],S),E=k-m[g]-T,O=k/2-m[g]/2+(y/2-w/2),M=L(C,I(O,E)),A=!c.arrow&&null!=N(o)&&O!==M&&r.reference[g]/2-(O<C?C:T)-m[g]/2<0,R=A?O<C?O-C:O-E:0;return{[h]:f[h]+R,data:{[h]:M,centerOffset:O-M-R,...A&&{alignmentOffset:R}},reset:A}}}]}).then(function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var l={left:"",top:"",transform:""};null!=r.arrow.x&&(l.left="".concat(r.arrow.x,"px"),"bottom"===a?(l.transform="translateY(-7px) rotate(180deg)",l.top="".concat(-20,"px")):"top"===a&&(l.transform="translateY(7px) rotate(0deg)",l.top="100%")),null!=r.arrow.y&&(l.top="".concat(r.arrow.y,"px"),"right"===a?(l.transform="translateX(-7px) rotate(90deg)",l.left="".concat(-20,"px")):"left"===a&&(l.transform="translateX(7px) rotate(270deg)",l.left="100%")),Object.assign(i.style,l)}}catch(e){}})});function l(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout(function(){o.style.opacity="0",setTimeout(function(){o.style.visibility="hidden",o.style.pointerEvents="none"},200)},500)}return e.addEventListener("mouseenter",l),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",l),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e);r.width=i.getBoundingClientRect().width+parseFloat(a.paddingLeft)}catch(e){}var l=document.querySelector('[data-gleap-tooltip-anchor="'.concat(n,'"]')).getBoundingClientRect(),c=l.left-r.left,u=l.top-r.top,p=0,d=0;switch(t.posX){case"left":d=-1*(t.offsetX+17);break;case"right":d=r.width+t.offsetX}switch(t.posY){case"top":p=0+t.offsetY;break;case"bottom":p=r.height-17+t.offsetY;break;case"center":p=r.height/2-8.5+t.offsetY}o&&(o.style.position="absolute",o.style.top=p-u+"px",o.style.left=d-c+"px")}}}}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n,this.instance.start()),this.instance}}],e&&ey(n.prototype,e),t&&ey(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function eC(e){return(eC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function eL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eI(Object(n),!0).forEach(function(t){eE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eT(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,eO(o.key),o)}}function eE(e,t,n){return(t=eO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eO(e){var t=function(e,t){if("object"!=eC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=eC(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eC(t)?t:String(t)}ew(eS,"instance",void 0);var eM=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),eE(this,"apiUrl","https://api.gleap.io"),eE(this,"wsApiUrl","wss://ws.gleap.io"),eE(this,"sdkKey",null),eE(this,"updatingSession",!1),eE(this,"useCookies",!1),eE(this,"session",{gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0}),eE(this,"ready",!1),eE(this,"onSessionReadyListener",[]),eE(this,"setOnSessionReady",function(t){e.ready?t():e.onSessionReadyListener.push(t)}),eE(this,"injectSession",function(t){t&&e.session&&(t.setRequestHeader("Api-Token",e.sdkKey),t.setRequestHeader("Gleap-Id",e.session.gleapId),t.setRequestHeader("Gleap-Hash",e.session.gleapHash))}),eE(this,"clearSession",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.session&&e.session.gleapHash&&tN.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(e.session.gleapHash));try{S("session-".concat(e.sdkKey),null)}catch(e){}if(e.useCookies)try{var o="session-".concat(e.sdkKey);try{var r=x(window.location.host.split(":")[0]);document.cookie=o+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+r}catch(e){}}catch(e){}e.ready=!1,e.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},ts.getInstance().sendMessage({name:"session-cleared"},!0),nT.getInstance().clearAllNotifications(!1),nT.getInstance().setNotificationCount(0),nN.getInstance().removeBannerUI(),n&&!isNaN(t)&&setTimeout(function(){e.startSession(t+1)},10*Math.pow(t,2)*1e3)}),eE(this,"validateSession",function(t){t&&t.gleapId&&(e.session&&e.session.gleapHash&&tN.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(e.session.gleapHash)),S("session-".concat(e.sdkKey),t),e.useCookies&&function(e,t,n){try{var o="",r=new Date;r.setTime(r.getTime()+31536e6),o="; expires="+r.toUTCString();var i=x(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(e){}}("session-".concat(e.sdkKey),encodeURIComponent(JSON.stringify(t)),365),e.session=t,e.ready=!0,e.session&&e.session.gleapHash&&tN.notifyEvent("register-pushmessage-group","gleapuser-".concat(e.session.gleapHash)),e.notifySessionReady())}),eE(this,"startSession",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(e.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t))return r.substring(t.length,r.length)}}catch(e){}return null}("session-".concat(e.sdkKey));if(n){var o=JSON.parse(decodeURIComponent(n));e.validateSession(o)}}}catch(e){}if(!(e.session&&e.session.gleapId&&e.session.gleapId.length>0)){var r=k("session-".concat(e.sdkKey));r&&e.validateSession(r)}var i=new XMLHttpRequest;i.open("POST",e.apiUrl+"/sessions"),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.setRequestHeader("Api-Token",e.sdkKey);try{e.session&&e.session.gleapId&&e.session.gleapHash&&(i.setRequestHeader("Gleap-Id",e.session.gleapId),i.setRequestHeader("Gleap-Hash",e.session.gleapHash))}catch(e){}i.onreadystatechange=function(n){if(4===i.readyState)if(200===i.status||201===i.status)try{var o=JSON.parse(i.responseText);e.validateSession(o),eD.getInstance().restart(),eS.getInstance().load()}catch(e){}else 429!==i.status&&e.clearSession(t,!0)},i.send(JSON.stringify({lang:nf.getInstance().getActiveLanguage()}))}),eE(this,"checkIfSessionNeedsUpdate",function(t,n){if(!e.session||!e.session.userId||
1!t)return!0;try{if(e.session.userId.toString()!==t.toString())return!0}catch(e){}if(n)for(var o=Object.keys(n),r=0;r<o.length;r++){var i=o[r];if(JSON.stringify(e.session[i])!==JSON.stringify(n[i])&&(!e.session.customData||JSON.stringify(e.session.customData[i])!==JSON.stringify(n[i])))return!0}return!1}),eE(this,"updateSession",function(t){return new Promise(function(n,o){e.setOnSessionReady(function(){if(!e.session.gleapId||!e.session.gleapHash)return o("Session not ready yet.");var r=new XMLHttpRequest;r.open("POST",e.apiUrl+"/sessions/partialupdate"),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.setRequestHeader("Api-Token",e.sdkKey);try{r.setRequestHeader("Gleap-Id",e.session.gleapId),r.setRequestHeader("Gleap-Hash",e.session.gleapHash)}catch(e){}r.onerror=function(){o()},r.onreadystatechange=function(t){if(4===r.readyState)if(200===r.status||201===r.status)try{var i=JSON.parse(r.responseText);e.validateSession(i),n(i)}catch(e){o(e)}else o()},r.send(JSON.stringify({data:eL(eL({},t),{},{lang:nf.getInstance().getActiveLanguage()}),type:"js",sdkVersion:"13.9.3",ws:!0}))})})}),eE(this,"identifySession",function(t,n,o){if(e.checkIfSessionNeedsUpdate(t,n))return new Promise(function(r,i){e.setOnSessionReady(function(){if(!e.session.gleapId||!e.session.gleapHash)return i("Session not ready yet.");var a=new XMLHttpRequest;a.open("POST",e.apiUrl+"/sessions/identify"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",e.sdkKey);try{a.setRequestHeader("Gleap-Id",e.session.gleapId),a.setRequestHeader("Gleap-Hash",e.session.gleapHash)}catch(e){}a.onerror=function(){i()},a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);e.validateSession(n),eD.getInstance().restart(),eS.getInstance().load(),r(n)}catch(e){i(e)}else i()};var l=eL({},n);n.customData&&(delete l.customData,l=eL(eL({},l),n.customData)),a.send(JSON.stringify(eL(eL({},l),{},{userId:t,userHash:o,lang:nf.getInstance().getActiveLanguage()})))})})}),eE(this,"startProductTourConfig",function(t){return new Promise(function(n,o){e.setOnSessionReady(function(){if(!e.session.gleapId||!e.session.gleapHash)return o("Session not ready yet.");var r=new XMLHttpRequest;r.open("POST",e.apiUrl+"/outbound/producttours"),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.setRequestHeader("Api-Token",e.sdkKey);try{r.setRequestHeader("Gleap-Id",e.session.gleapId),r.setRequestHeader("Gleap-Hash",e.session.gleapHash)}catch(e){}r.onerror=function(){o()},r.onreadystatechange=function(e){if(4===r.readyState)if(200===r.status||201===r.status)try{var t=JSON.parse(r.responseText);t&&t.config&&n(t.config)}catch(e){o(e)}else o()},r.send(JSON.stringify({outboundId:t}))})})})}return e=[{key:"getName",value:function(){try{return this.session.name?this.session.name.split(" ")[0].split("@")[0].split(".")[0].split("+")[0]:""}catch(e){return this.session.name}}},{key:"getSession",value:function(){return this.session}},{key:"getGleapId",value:function(){return this.session&&this.session.gleapId?this.session.gleapId:null}},{key:"isUser",value:function(){return!(!this.session||!this.session.userId)}},{key:"notifySessionReady",value:function(){if(this.onSessionReadyListener.length>0)for(var e=0;e<this.onSessionReadyListener.length;e++)this.onSessionReadyListener[e]();this.onSessionReadyListener=[],ts.getInstance().sendSessionUpdate()}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&eT(n.prototype,e),t&&eT(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function eA(e){return(eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eP(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,eN(o.key),o)}}function eR(e,t,n){return(t=eN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eN(e){var t=function(e,t){if("object"!=eA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=eA(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eA(t)?t:String(t)}eE(eM,"instance",void 0);var eD=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),eR(this,"eventArray",[]),eR(this,"streamedEventArray",[]),eR(this,"eventMaxLength",500),eR(this,"errorCount",0),eR(this,"streamingEvents",!1),eR(this,"lastUrl",void 0),eR(this,"mainLoopTimeout",null),eR(this,"socket",null),eR(this,"connectedWebSocketGleapId",null),eR(this,"connectionTimeout",null),eR(this,"pingWS",null),eR(this,"handleOpenBound",null),eR(this,"handleErrorBound",null),eR(this,"handleMessageBound",null),eR(this,"handleCloseBound",null),eR(this,"runEventStreamLoop",function(){e.streamEvents(),e.mainLoopTimeout=setTimeout(function(){e.runEventStreamLoop()},2500)}),eR(this,"streamEvents",function(){if(!(!eM.getInstance().ready||e.streamingEvents||e.errorCount>2)&&0!==e.streamedEventArray.length&&e.socket&&e.socket.readyState===e.socket.OPEN){e.streamingEvents=!0;var t=new XMLHttpRequest;t.open("POST",eM.getInstance().apiUrl+"/sessions/ping"),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),eM.getInstance().injectSession(t),t.onerror=function(){e.errorCount++,e.streamingEvents=!1},t.onreadystatechange=function(n){4===t.readyState&&(200===t.status||201===t.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var n=td.getInstance().getSessionDuration();t.send(JSON.stringify({time:n,events:e.streamedEventArray,opened:ts.getInstance().isOpened(),type:"js",sdkVersion:"13.9.3",ws:!0})),e.streamedEventArray=[]}}),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=eM.getInstance().session.gleapId,eM.getInstance().session&&eM.getInstance().sdkKey&&(this.socket=new WebSocket("".concat(eM.getInstance().wsApiUrl,"?gleapId=").concat(eM.getInstance().session.gleapId,"&gleapHash=").concat(eM.getInstance().session.gleapHash,"&apiKey=").concat(eM.getInstance().sdkKey,"&sdkVersion=").concat("13.9.3")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval(function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))},1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout(function(){t.initWebSocket()},5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;ts.getInstance().isOpened()||(n&&ov.getInstance().performActions(n),null!=o&&nT.getInstance().setNotificationCount(o))}}catch(e){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval(function(){e.errorCount=0},6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==eM.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){n.getInstance().logEvent("sessionStarted"),n.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ov.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval(function(){e.logCurrentPage()},1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=y(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}],eP(n.prototype,e),t&&eP(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function ej(e){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eF(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,e_(o.key),o)}}function eB(e,t,n){return(t=e_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e_(e){var t=function(e,t){if("object"!=ej(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ej(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ej(t)?t:String(t)}eR(eD,"instance",void 0);var eH=function(e,t){var n=parseInt(e);return isNaN(n)?t:n},eq=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),eB(this,"flowConfig",null),eB(this,"projectActions",null),eB(this,"onConfigLoadedListener",[]),eB(this,"aiTools",[]),eB(this,"onConfigLoaded",function(t){null!==e.flowConfig?t():e.onConfigLoadedListener.push(t)}),eB(this,"setAiTools",function(t){e.aiTools=t}),eB(this,"getAiTools",function(){return e.aiTools}),eB(this,"start",function(){var t=eM.getInstance(),n=k("config-".concat(t.sdkKey,"-").concat(nf.getInstance().getActiveLanguage()));return n?(e.applyConfig(n),e.loadConfigFromServer().catch(function(e){}),Promise.resolve()):e.loadConfigFromServer()}),eB(this,"loadConfigFromServer",function(){return new Promise(function(t,n){var o=eM.getInstance(),r=new XMLHttpRequest,i=nf.getInstance().getActiveLanguage();r.open("GET",o.apiUrl+"/config/"+o.sdkKey+"?lang="+i),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.injectSession(r),r.onerror=function(){n()}
1,r.onreadystatechange=function(a){if(4===r.readyState){if(200===r.status||201===r.status)try{var l=JSON.parse(r.responseText);try{S("config-".concat(o.sdkKey,"-").concat(i),l)}catch(e){}return e.applyConfig(l),t()}catch(e){}n()}},r.send()})})}return e=[{key:"getFlowConfig",value:function(){return this.flowConfig}},{key:"applyStylesFromConfig",value:function(){var e=this.flowConfig;ov.setStyles(e.color?e.color:"#485BFF",e.headerColor?e.headerColor:"#485BFF",e.buttonColor?e.buttonColor:"#485BFF",e.backgroundColor?e.backgroundColor:"#FFFFFF",eH(e.borderRadius,20),eH(e.buttonX,20),eH(e.buttonY,20),e.feedbackButtonPosition)}},{key:"notifyConfigLoaded",value:function(){if(this.onConfigLoadedListener.length>0)for(var e=0;e<this.onConfigLoadedListener.length;e++)this.onConfigLoadedListener[e]();this.onConfigLoadedListener=[]}},{key:"applyConfig",value:function(e){try{var t=e.flowConfig;this.flowConfig=t,this.applyStylesFromConfig(),ts.getInstance().sendConfigUpdate(),r.getInstance().updateFeedbackButtonState(),nT.getInstance().updateContainerStyle(),t.enableWebReplays?t3.getInstance().start():t3.getInstance().stop(),t.enableNetworkLogs&&m.getInstance().start(),m.getInstance().setLoadAllResources(!!t.sendNetworkResources),t.networkLogPropsToIgnore&&m.getInstance().setFilters(t.networkLogPropsToIgnore),t.networkLogBlacklist&&m.getInstance().setBlacklist(t.networkLogBlacklist),nf.getInstance().updateRTLSupport(),ov.enableShortcuts(!!t.enableShortcuts),this.notifyConfigLoaded()}catch(e){}}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&eF(n.prototype,e),t&&eF(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();eB(eq,"instance",void 0);var eU=["//fonts.googleapis.com","//cdn.jsdelivr.net","//cdnjs.cloudflare.com","//ajax.googleapis.com","//use.typekit.net",".amazonaws.com","//jssdk.gleap.io",".gstatic.com"];function ez(e){return(ez="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eW(){eW=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function p(t,n,o,i){var a,l,c,u,p=Object.create((n&&n.prototype instanceof v?n:v).prototype);return r(p,"_invoke",{value:(a=t,l=o,c=new E(i||[]),u=f,function(t,n){if(u===h)throw Error("Generator is already running");if(u===g){if("throw"===t)throw n;return{value:e,done:!0}}for(c.method=t,c.arg=n;;){var o=c.delegate;if(o){var r=function t(n,o){var r=o.method,i=n.iterator[r];if(i===e)return o.delegate=null,"throw"===r&&n.iterator.return&&(o.method="return",o.arg=e,t(n,o),"throw"===o.method)||"return"!==r&&(o.method="throw",o.arg=TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(i,n.iterator,o.arg);if("throw"===a.type)return o.method="throw",o.arg=a.arg,o.delegate=null,m;var l=a.arg;return l?l.done?(o[n.resultName]=l.value,o.next=n.nextLoc,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,m):l:(o.method="throw",o.arg=TypeError("iterator result is not an object"),o.delegate=null,m)}(o,c);if(r){if(r===m)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(u===f)throw u=g,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u=h;var i=d(a,l,c);if("normal"===i.type){if(u=c.done?g:"suspendedYield",i.arg===m)continue;return{value:i.arg,done:c.done}}"throw"===i.type&&(u=g,c.method="throw",c.arg=i.arg)}})}),p}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",h="executing",g="completed",m={};function v(){}function b(){}function y(){}var w={};u(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&o.call(k,a)&&(w=k);var S=y.prototype=v.prototype=Object.create(w);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){var n;r(this,"_invoke",{value:function(r,i){function a(){return new t(function(n,a){!function n(r,i,a,l){var c=d(e[r],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==ez(p)&&o.call(p,"__await")?t.resolve(p.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(p).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,l)})}l(c.arg)}(r,i,n,a)})}return n=n?n.then(a,a):a()}})}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw TypeError(ez(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(I.prototype),u(I.prototype,l,function(){return this}),t.AsyncIterator=I,t.async=function(e,n,o,r,i){void 0===i&&(i=Prom
1ise);var a=new I(p(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(S),u(S,c,"Generator"),u(S,a,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return l.type="throw",l.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:O(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function eG(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var eV=function(e,t,n){var o,r;return o=/url\((.*?)\)/g,r=function(e){return new Promise(function(o,r){if(!e)return o(e);var i=e.substr(4,e.length-5).replaceAll("'","").replaceAll('"',"");if(0===i.indexOf("http")||0===i.indexOf("//")||0===i.indexOf("data"))return o(e);try{var a=i;return t&&(a=t+"/"+i),n?o("url("+a+")"):eX(a).then(function(e){return o("url("+e+")")})}catch(t){return o(e)}})},new Promise(function(t,n){var i=[];e.replace(o,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=r.apply(void 0,[e].concat(n));i.push(a)}),Promise.all(i).then(function(n){t(e.replace(o,function(){return n.shift()}))}).catch(function(){n()})})},eX=function(e){return new Promise(function(t,n){if(e){var o=new XMLHttpRequest;o.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.onerror=function(){n()},e.readAsDataURL(o.response)},o.onerror=function(e){t()},o.open("GET",e),o.responseType="blob",o.send()}else t()})},eZ=function(e){return new Promise(function(t,n){if(e&&e.src){if(function(e){if(!e)return!1;for(var t=0;t<eU.length;t++)if(-1!==e.indexOf(eU[t]))return!0;return!1}(e.src))return t();var o=new XMLHttpRequest;o.onload=function(){var n=new FileReader;n.onloadend=function(){var o;o=n.result,v(o,500,500).then(function(n){e.src=n,t()}).catch(function(){console.warn("BB: Image resize failed."),t()})},n.onerror=function(){t()},n.readAsDataURL(o.response)},o.onerror=function(e){t()};var r=e.src;o.open("GET",r),o.responseType="blob",o.send()}else t()})},eK=function(e,t,n,o){var r=null;t.ownerNode&&(r=e.querySelector('[bb-styleid="'+o+'"]'));try{if(r){var i=null;if(""!=n){var a=e.querySelector("head"),l=window.document.createElement("style");a.appendChild(l),l.type="text/css",l.styleSheet?l.styleSheet.cssText=n:l.appendChild(window.document.createTextNode(n)),i=l}else{var c=window.document.createElement("link");c.rel="stylesheet",c.type=t.type,c.href=t.href,c.media=t.media,i=c}i&&(r.parentNode.insertBefore(i,r),r.remove())}}catch(e){}},eY=function(e){var t=null;try{e.cssRules?t=e.cssRules:e.rules&&(t=e.rules)}catch(e){}var n="";if(t)for(var o in t)t[o].cssText&&(n+=t[o].cssText);return n},eJ=function(e,t){for(var n,o=[],r=0;r<document.styleSheets.length;r++)!function(){var e=document.styleSheets[r];if(!e.media||"print"!==e.media.mediaText){var i=eY(e);if(e&&e.ownerNode)if(""!=i){var a=document.getElementsByTagName("base");n=a.length?a[0].href.substr(location.origin.length,999):window.location.href,e.href&&(n=e.href);var l=n.substring(0,n.lastIndexOf("/"));o.push(eV(i,l,t).then(function(t){return{styletext:t,stylesheet:e,styleId:e.ownerNode.getAttribute("bb-styleid")}}))}
1else o.push(Promise.resolve({styletext:i,stylesheet:e,styleId:e.ownerNode.getAttribute("bb-styleid")}))}}();return Promise.all(o).then(function(t){if(t)for(var n=0;n<t.length;n++)eK(e,t[n].stylesheet,t[n].styletext,t[n].styleId);return!0})},eQ=function(e,t,n){if(void 0!==e.adoptedStyleSheets)for(var o=0;o<e.adoptedStyleSheets.length;o++){var r=eY(e.adoptedStyleSheets[o]),i=window.document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=r:i.appendChild(window.document.createTextNode(r)),n&&i.setAttribute("bb-shadow-child",n),t.insertBefore(i,t.firstElementChild)}},e$=function(e){var t,n,o=1,r=(t=eW().mark(function e(t,n,i){var a,l,c,u,p,d,f,h;return eW().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=function(e,t,n){for(;e;)r(e,t,n),e=e.nextSibling},void 0===(l=t.cloneNode()).setAttribute||(i&&l.setAttribute("bb-shadow-child",i),!(t instanceof HTMLCanvasElement))){e.next=18;break}return e.prev=5,c=t.getBoundingClientRect(),e.next=9,v(t.toDataURL(),900,900);case 9:u=e.sent,l.setAttribute("bb-canvas-data",u),l.setAttribute("bb-canvas-height",c.height),l.setAttribute("bb-canvas-width",c.width),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),console.warn("Gleap: Failed to clone canvas data.",e.t0);case 18:t.nodeType==Node.ELEMENT_NODE&&("IFRAME"!=(p=t.tagName?t.tagName.toUpperCase():t.tagName)&&"VIDEO"!=p&&"EMBED"!=p&&"IMG"!=p&&"SVG"!=p||(d=t.getBoundingClientRect(),l.setAttribute("bb-element",!0),l.setAttribute("bb-height",d.height),l.setAttribute("bb-width",d.width)),(t.scrollTop>0||t.scrollLeft>0)&&(l.setAttribute("bb-scrollpos",!0),l.setAttribute("bb-scrolltop",t.scrollTop),l.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==p&&"TEXTAREA"!==p&&"INPUT"!==p||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=Array(f.length+1).join("*")),l.setAttribute("bb-data-value",f),("checkbox"===t.type||"radio"===t.type)&&t.checked&&l.setAttribute("bb-data-checked",!0))),n.appendChild(l),t.shadowRoot&&(h=o,o++,a(t.shadowRoot.firstChild,l,h),eQ(t.shadowRoot,l,h),void 0!==l.setAttribute&&l.setAttribute("bb-shadow-parent",h)),a(t.firstChild,l);case 22:case"end":return e.stop()}},e,null,[[5,15]])}),n=function(){var e=this,n=arguments;return new Promise(function(o,r){var i=t.apply(e,n);function a(e){eG(i,o,r,a,l,"next",e)}function l(e){eG(i,o,r,a,l,"throw",e)}a(void 0)})},function(e,t,o){return n.apply(this,arguments)}),i=document.createDocumentFragment();r(e,i);var a=i.querySelector("head");return a||(a=i),eQ(window.document,a),i};function e0(e){return(e0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e1(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,e3(o.key),o)}}function e2(e,t,n){return(t=e3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e3(e){var t=function(e,t){if("object"!=e0(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=e0(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e0(t)?t:String(t)}var e4=function(){var e,t;function n(e,t){var o=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e2(this,"rerender",void 0),e2(this,"stream",void 0),e2(this,"mediaRecorder",void 0),e2(this,"audioMuted",!1),e2(this,"audioAvailable",!0),e2(this,"available",!0),e2(this,"isRecording",!1),e2(this,"file",null),e2(this,"maxRecordTime",120),e2(this,"recordTime",0),e2(this,"recordingTimer",null),e2(this,"permissionErrorText",""),e2(this,"startScreenRecording",function(){var e=this;if(!navigator.mediaDevices||!navigator.mediaDevices.getDisplayMedia||this.isRecording)return this.available=!1,void this.rerender();navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:Math.min(window.screen.width,3072)},height:{ideal:Math.min(window.screen.height,1728)},frameRate:{ideal:10,max:24},displaySurface:"monitor"},selfBrowserSurface:"include",audio:!0}).then(function(t){e.stream=t,e.audioMuted?(e.audioAvailable=!1,e.handleRecord({stream:t})):e.startAudioRecording(),e.rerender()}).catch(function(t){window.alert(e.permissionErrorText),e.rerender()})}),e2(this,"stopScreenRecording",function(){this.mediaRecorder&&this.stream&&this.isRecording&&(this.recordingTimer&&(clearInterval(this.recordingTimer),this.recordingTimer=null),this.mediaRecorder.stop(),this.stream.getTracks().forEac
1h(function(e){e.stop()}),this.rerender())}),e2(this,"startAudioRecording",function(){var e=this;this.stream&&navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(t){for(var n=0;n<t.getAudioTracks().length;n++)e.stream.addTrack(t.getAudioTracks()[n]);e.audioMuted=!1,e.audioAvailable=!0,e.handleRecord({stream:e.stream}),e.rerender()}).catch(function(t){e.audioAvailable=!1,e.handleRecord({stream:e.stream}),e.rerender()})}),e2(this,"toggleAudio",function(){if(this.audioMuted=!this.audioMuted,this.rerender(),this.stream)for(var e=this.stream.getAudioTracks(),t=0;t<e.length;t++)e[t].enabled=!this.audioMuted}),e2(this,"clearPreview",function(){document.querySelector(".bb-capture-preview video").src=null,this.file=null,this.rerender()}),e2(this,"handleRecord",function(e){var t=e.stream,n=this,o=[];this.mediaRecorder=new MediaRecorder(t,{mimeType:this.getSupportedMimeType()}),this.isRecording=!0,this.recordTime=0;var r=document.querySelector(".bb-capture-toolbar-item-timer");this.recordingTimer=setInterval(function(){n.recordTime++;var e=n.maxRecordTime-n.recordTime;e>0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())},1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()}),e2(this,"prepareRecording",function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())}),this.rerender=e,this.permissionErrorText=t,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout(function(){o.rerender()},100)}return e=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e<t.length;e++){var n=t[e];if(MediaRecorder.isTypeSupported(n))return n}return"video/webm"}},{key:"formatTime",value:function(e){return(e-(e%=60))/60+(9<e?":":":0")+e}}],e1(n.prototype,e),t&&e1(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function e5(e){return(e5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function e7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e9(Object(n),!0).forEach(function(t){e8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function e6(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,te(o.key),o)}}function e8(e,t,n){return(t=te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){var t=function(e,t){if("object"!=e5(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=e5(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e5(t)?t:String(t)}e2(e4,"uploadScreenRecording",function(e){return new Promise(function(t,n){null==e&&t(null);var o=new XMLHttpRequest;o.open("POST",eM.getInstance().apiUrl+"/uploads/sdk"),eM.getInstance().injectSession(o);var r=new FormData;r.append("file",e),o.send(r),o.onerror=function(){n()},o.onreadystatechange=function(){4==o.readyState&&(200==o.status?t(JSON.parse(o.response).fileUrl):n())}})});var tt=function(){var e,t;function n(e,t,o,r,i,a,l){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e8(this,"excludeData",{}),e8(this,"type","BUG"),e8(this,"priority","LOW"),e8(this,"customData",{}),e8(this,"ticketAttributes",{}),e8(this,"metaData",{}),e8(this,"consoleLog",[]),e8(this,"networkLogs",[]),e8(this,"customEventLog",[]),e8(this,"formData",{}),e8(this,"isSilent",!1),e8(this,"outboundId",void 0),e8(this,"screenshotData",void 0),e8(this,"webReplay",void 0),e8(this,"screenRecordingUrl",void 0),e8(this,"spamToken",void 0),this.type=e,this.priority=t,this.formData=o,this.isSilent=r,this.excludeData=i,this.outboundId=a,this.spamToken=l}return e=[{key:"takeSnapshot",value:function(){var e=this,t=ov.getInstance();this.customData=tM.getInstance().getCustomData(),this.metaData=td.getInstance().getMetaData(),this.consoleLog=ty.getInstance().getLogs(),this.networkLogs=m.getInstance().getRequests(),this.customEventLog=eD.getInstance().getEventArray(),this.ticketAttributes=tM.getInstance().getTicketAttributes();var n=[],o=t.getGlobalDataItem("webReplay");null!==o&&(this.webReplay=o);var r=t.getGlobalDataItem("screenRecordingData");if(null!=r){var i=e4.uploadScreenRecording(r).then(function(t){t&&(e.screenRecordingUrl=t)});n.push(i)}if(!this.excludeData||!this.excludeData.screenshot){var a,l=(a=t.isLiveMode(),new Promise(function(e,t){for(var n=window.document.querySelectorAll("style, link"),o=0;o<n.length;++o)n[o].setAttribute("bb-styleid",o);var r=e$(window.document.documentElement),i=r.querySelectorAll("link[rel=import]");for(o=0;o<i.length;++o){var l=i[o];if(l&&l.childNodes&&l.childNodes.length>0){for(var c=l.childNodes;c.length>0;)l.parentNode.insertBefore(c[0],l);l.remove()}}var u=r.querySelectorAll("script, noscript");for(o=0;o<u.length;++o)u[o].remove();var p="",d=r.querySelectorAll("base");for(o=0;o<d.length;++o)d[o].href&&(p=d[o].href),d[o].remove();var f=window.location.href.substring(0,window.location.href.lastIndexOf("/")),h=f+"/";p&&(p.startsWith("http")?h=p:(h=f+p).endsWith("/")||(h+="/"));var g=window.document.createElement("base");g.href=h;var m=r.querySelector("head");m.insertBefore(g,m.firstChild);var v=r.querySelectorAll(".bb-feedback-dialog-container, .bb-capture-editor-borderlayer");for(o=0;o<v.length;++o)v[o].remove();var y=r.querySelectorAll("[bb-element=true]");for(o=0;o<y.length;++o)y[o]&&(y[o].style.height=y[o].getAttribute("bb-height")+"px");new Promise(function(e,t){return a?eJ(r,a).then(function(){e()}).catch(function(){e()}):(function(e){for(var t=e.querySelectorAll("img"),n=[],o=0;o<t.length;o++){var r=t[o];n.push(eZ(r))}return Promise.all(n)})(r).then(function(){return eJ(r,a).then(function(){e()})}).catch(function(){console.warn("Gleap: Failed with resolving local resources. Please contact the Gleap support team."),e()})}).then(function(){e({html:function(e){var t="",n=window.document.doctype;if(n&&(t="<!DOCTYPE "+n.name+(n.publicId?' PUBLIC "'+n.publicId+'"':"")+(!n.publicId&&n.systemId?" SYSTEM":"")+(n.systemId?' "'+n.systemId+'"':"")+">"),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)e.childNodes[o]&&(t+=e.childNodes[o].outerHTML);return t}(r),baseUrl:f,width:window.innerWidth,height:window.innerHeight,isMobile:b()})})})).then(function(n){if(n){var o=t.getGlobalDataItem("snapshotPosition");n.x=o.x,n.y=o.y,e.screenshotData=n}});n.push(l)}return Promise.all(n)}}
1,{key:"getData",value:function(){var e={type:this.type,priority:this.priority,customData:this.customData,metaData:this.metaData,consoleLog:this.consoleLog,networkLogs:this.networkLogs,customEventLog:this.customEventLog,formData:e7(e7({},this.ticketAttributes),this.formData),isSilent:this.isSilent,outbound:this.outboundId,screenshotData:this.screenshotData,webReplay:this.webReplay,screenRecordingUrl:this.screenRecordingUrl,spamToken:this.spamToken},t=nz.getInstance().getTags();if(t&&t.length>0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;o<n.length;o++){var r=n[o];!0===this.excludeData[r]&&(e[r]&&delete e[r],"screenshot"===r&&delete e.screenshotData,"replays"===r&&delete e.webReplay)}return e}},{key:"getTicketData",value:function(){var e=this;return new Promise(function(t,n){e.takeSnapshot().then(function(){t(e.getData())}).catch(function(e){console.log("Failed to take snapshot",e),n()})})}},{key:"sendFeedback",value:function(){var e=this;return new Promise(function(t,n){e.takeSnapshot().then(function(){var o=e.getData(),r=new XMLHttpRequest;r.open("POST",eM.getInstance().apiUrl+"/bugs/v2"),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),eM.getInstance().injectSession(r),r.onerror=function(e){n()},r.onreadystatechange=function(e){if(4===r.readyState)if(200===r.status||201===r.status)try{var o=JSON.parse(r.responseText);t(o)}catch(e){n()}else n()},r.send(JSON.stringify(o))}).catch(function(e){console.log("Failed to take snapshot",e),n()})})}}],e6(n.prototype,e),t&&e6(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ta(o.key),o)}}function ti(e,t,n){return(t=ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(e){var t=function(e,t){if("object"!=tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tn(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tn(t)?t:String(t)}var ts=function(){var e,t;function n(){var e=this;if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),ti(this,"frameUrl","https://messenger-app.gleap.io"),ti(this,"gleapFrameContainer",null),ti(this,"gleapFrame",null),ti(this,"comReady",!1),ti(this,"injectedFrame",!1),ti(this,"widgetOpened",!1),ti(this,"listeners",[]),ti(this,"appMode","widget"),ti(this,"markerManager",void 0),ti(this,"escListener",void 0),ti(this,"frameHeight",0),ti(this,"queue",[]),ti(this,"urlHandler",function(e,t){if(e&&e.length>0)if(t){var n=window.open(e,"_blank");!n||n.closed||void 0===n.closed?window.location.href=e:n.focus()}else window.location.href=e}),ti(this,"autoWhiteListCookieManager",function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])}),ti(this,"injectFrame",function(){e.injectedFrame||(e.injectedFrame=!0,e.autoWhiteListCookieManager(),C(function(){eq.getInstance().onConfigLoaded(function(){eq.getInstance().applyStylesFromConfig();var t=document.createElement("div");t.className="gleap-frame-container gleap-frame-container--hidden gl-block",t.innerHTML='<div class="gleap-frame-container-inner"><iframe src="'.concat(e.frameUrl,'" class="gleap-frame" scrolling="yes" allow="autoplay; encrypted-media; fullscreen;" frameborder="0"></iframe></div>'),document.body.appendChild(t),e.gleapFrameContainer=t,e.gleapFrame=document.querySelector(".gleap-frame"),e.updateFrameStyle(),"widget"===e.appMode&&e.showFrameContainer(!0)})}))}),ti(this,"showImage",function(e){C(function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='<div class="gleap-image-view-close">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm97.9-320l-17 17-47 47 47 47 17 17L320 353.9l-17-17-47-47-47 47-17 17L158.1 320l17-17 47-47-47-47-17-17L192 158.1l17 17 47 47 47-47 17-17L353.9 192z"/></svg>\n </div><img class="gleap-image-view-image" src="'.concat(e,'" />'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",function(){n()}),t.addEventListener("click",function(e){e.target===t&&n()})})}),ti(this,"updateFrameStyle",function(){if(e.gleapFrameContainer){for(var t="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",i="gleap-frame-container--classic",a="gleap-frame-container--classic-left",l="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",u=[i,a,n,l,c,t,o],p=0;p<u.length;p++)e.gleapFrameContainer.classList.remove(u[p]);var d=void 0,f=eq.getInstance().getFlowConfig();f.feedbackButtonPosition!==r.FEEDBACK_BUTTON_CLASSIC&&f.feedbackButtonPosition!==r.FEEDBACK_BUTTON_CLASSIC_BOTTOM||(d=i),f.feedbackButtonPosition===r.FEEDBACK_BUTTON_CLASSIC_LEFT&&(d=a),f.feedbackButtonPosition===r.FEEDBACK_BUTTON_BOTTOM_LEFT&&(d=l),null===r.getInstance().buttonHidden?f.feedbackButtonPosition===r.FEEDBACK_BUTTON_NONE&&(d=c):r.getInstance().buttonHidden&&(d=c),d&&e.gleapFrameContainer.classList.add(d),"survey"===e.appMode&&e.gleapFrameContainer.classList.add(t),"survey_full"!==e.appMode&&"survey_web"!==e.appMode||e.gleapFrameContainer.classList.add(o),"extended"===e.appMode&&e.gleapFrameContainer.classList.add(n),e.gleapFrameContainer.setAttribute("dir",nf.getInstance().isRTLLayout?"rtl":"ltr")}}),this.startCommunication(),"undefined"!=typeof window){var t=function(){try{document.documentElement.style.setProperty("--glvh",.01*window.innerHeight+"px")}catch(e){}};try{window.addEventListener("resize",t),t()}catch(e){}}}return e=[{key:"setUrlHandler",value:function(e){this.urlHandler=e}},{key:"isSurvey",value:function(){return"survey"===this.appMode||"survey_full"===this.appMode||"survey_web"===this.appMode}},{key:"setAppMode",value:function(e){this.appMode=e,this.updateFrameStyle();var t=document.querySelector(".gleap-frame-container-inner");("widget"===this.appMode||"survey_full"===this.appMode||"survey_web"===this.appMode)&&t&&(t.style.maxHeight="".concat(700,"px"))}},{key:"registerEscListener",value:function(){var e=this;this.escListener||(this.escListener=function(t){"Escape"===(t=t||window.event).key&&e.hideWidget()},document.addEventListener("keydown",this.escListener))}},{key:"unregisterEscListener",value:function(){this.escListener&&(document.removeEventListener("keydown",this.escListener),this.escListener=null)}},{key:"destroy",value:function(){this.gleapFrame&&this.gleapFrame.remove(),this.gleapFrameContainer&&this.gleapFrameContainer.remove(),this.injectedFrame=!1,this.widgetOpened=!1,this.markerManager=void 0,this.gleapFrameContainer=null,this.gleapFrame=null}},{key:"isOpened",value:function(){return this.widgetOpened||null!=this.markerManager}},{key:"showFrameContainer",value:function(e){var t=this;if(this.gleapFrameContainer){var n=eq.getInstance().getFlowConfig(),o="gleap-frame-container--loading";this.gleapFrameContainer.classList&&(this.gleapFrameContainer.classList.remove("gleap-frame-container--hidden"),e?(this.gleapFrameContainer.classList.add(o),n.disableBGFade&&this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nofade"),n.disableBGGradient&&this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nogradient")):this.gleapFrameContainer.classList.remove(o),setTimeout(function(){t.gleapFrameContainer.classList.add("gleap-frame-container--animate")},500)),this.widgetOpened=!0,this.updateUI()}}},{key:"runWidgetShouldOpenCallback",value:function(){this.gleapFrameContainer&&(this.workThroughQueue(),ov.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}
1),this.showFrameContainer(!1),this.updateWidgetStatus(),tN.notifyEvent("open"),this.registerEscListener())}},{key:"updateUI",value:function(){nT.getInstance().clearAllNotifications(this.isSurvey()),nT.getInstance().setNotificationCount(0),r.getInstance().updateFeedbackButtonState()}},{key:"showWidget",value:function(){var e=this;setTimeout(function(){e.gleapFrameContainer?e.runWidgetShouldOpenCallback():n.getInstance().injectFrame(),e.updateUI()},0)}},{key:"updateWidgetStatus",value:function(){this.sendMessage({name:"widget-status-update",data:{isWidgetOpen:this.widgetOpened}})}},{key:"hideMarkerManager",value:function(){this.markerManager&&(this.markerManager.clear(),this.markerManager=null)}},{key:"hideWidget",value:function(){"survey_web"!==this.appMode&&(this.hideMarkerManager(),this.gleapFrameContainer&&(this.gleapFrameContainer.classList.add("gleap-frame-container--hidden"),this.gleapFrameContainer.classList.remove("gleap-frame-container--animate")),this.widgetOpened=!1,this.updateWidgetStatus(),r.getInstance().updateFeedbackButtonState(),tN.notifyEvent("close"),nT.getInstance().reloadNotificationsFromCache(),this.unregisterEscListener(),"undefined"!=typeof window&&void 0!==window.focus&&window.focus())}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(e){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:eM.getInstance().getSession(),apiUrl:eM.getInstance().apiUrl,sdkKey:eM.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:eq.getInstance().getFlowConfig(),aiTools:eq.getInstance().getAiTools(),overrideLanguage:nf.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new nl(e),this.markerManager.show(function(e){e||t.hideMarkerManager(),t.showWidget()})}},{key:"workThroughQueue",value:function(){var e,t=function(e){if(Array.isArray(e))return to(e)}(e=this.queue)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return to(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return to(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();this.queue=[];for(var n=0;n<t.length;n++)this.sendMessage(t[n],!0)}},{key:"startCommunication",value:function(){var e=this;this.addMessageListener(function(t){if("ping"===t.name&&(e.comReady=!0,e.sendConfigUpdate(),e.sendSessionUpdate(),e.workThroughQueue(),setTimeout(function(){e.runWidgetShouldOpenCallback()},300)),"play-ping"===t.name&&nB.ping(),"open-image"===t.name&&e.showImage(t.data.url),"page-changed"===t.name&&(t.data&&("newsdetails"===t.data.name||"appextended"===t.data.name)?e.setAppMode("extended"):"extended"===e.appMode&&e.setAppMode("widget")),"collect-ticket-data"===t.name){var n={customData:tM.getInstance().getCustomData(),metaData:td.getInstance().getMetaData(),consoleLog:ty.getInstance().getLogs(),networkLogs:m.getInstance().getRequests(),customEventLog:eD.getInstance().getEventArray(),formData:tM.getInstance().getTicketAttributes()},o=nz.getInstance().getTags();o&&o.length>0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");("survey"===e.appMode||"survey_full"===e.appMode||"survey_web"===e.appMode)&&r&&(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&tN.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&tB.triggerCustomAction(t.data),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&tN.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var l=t.data.formData,c=t.data.action,u=t.data.outboundId,p=t.data.spamToken;new tt(c.feedbackType,"MEDIUM",l,!1,c.excludeData,u,p).sendFeedback().then(function(t){e.sendMessage({name:"feedback-sent",data:t}),tN.notifyEvent("feedback-sent",l)}).catch(function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),tN.notifyEvent("error-while-sending")})}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)}),window.addEventListener("message",function(t){if(t.origin===e.frameUrl||t.origin===nN.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o<e.listeners.length;o++)e.listeners[o]&&e.listeners[o](n)}catch(e){}})}},{key:"addMessageListener",value:function(e){this.listeners.push(e)}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&tr(n.prototype,e),t&&tr(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tl(e){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tp(o.key),o)}}function tu(e,t,n){return(t=tp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tp(e){var t=function(e,t){if("object"!=tl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tl(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tl(t)?t:String(t)}ti(ts,"instance",void 0);var td=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),tu(this,"sessionStart",new Date),tu(this,"appBuildNumber",""),tu(this,"appVersionCode",""),tu(this,"environment","prod")}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}},{key:"setAppVersionCode",value:function(e){this.getInstance().appVersionCode=e}},{key:"setAppBuildNumber",value:function(e){this.getInstance().appBuildNumber=e}}],e=[{key:"getSessionDuration",value:function(){return Math.round(((new Date).getTime()-this.sessionStart.getTime())/1e3)}},{key:"getMetaData",value:function(){var e,t,n,o=navigator.userAgent,r=navigator.appName,i=""+parseFloat(navigator.appVersion),a=parseInt(navigator.appVersion,10);-1!==(t=o.indexOf("Opera"))?(r="Opera",i=o.substring(t+6),-1!==(t=o.indexOf("Version"))&&(i=o.substring(t+8))):-1!==(t=o.indexOf("MSIE"))?(r="Microsoft Internet Explorer",i=o.substring(t+5)):-1!==(t=o.indexOf("Chrome"))?(r="Chrome",i=o.substring(t+7)):-1!==(t=o.indexOf("Safari"))?(r="Safari",i=o.substring(t+7),-1!==(t=o.indexOf("Version"))&&(i=o.substring(t+8))):-1!==(t=o.indexOf("Firefox"))?(r="Firefox",i=o.substring(t+8)):(e=o.lastIndexOf(" ")+1)<(t=o.lastIndexOf("/"))&&(r=o.substring(e,t),i=o.substring(t+1),r.toLowerCase()===r.toUpperCase()&&(r=navigator.appName)),-1!==(n=i.indexOf(";"))&&(i=i.substring(0,n)),-1!==(n=i.indexOf(" "))&&(i=i.substring(0,n)),isNaN(parseInt(""+i,10))&&(i=""+parseFloat(navigator.appVersion),parseInt(navigator.appVersion,10));var l="Unknown OS";return -1!==navigator.appVersion.indexOf("Win")&&(l="Windows"),-1!==navigator.appVersion.indexOf("Mac")&&(l="MacOS"),-1!==navigator.appVersion.indexOf("X11")&&(l="UNIX"),-1!==navigator.appVersion.indexOf("Linux")&&(l="Linux"),-1!==navigator.appVersion.indexOf("iPad")&&(l="iPad"),-1!==navigator.appVersion.indexOf("iPhone")&&(l="iPhone"),-1!==navigator.appVersion.indexOf("Android")&&(l="Android"),{browserName:r+"("+i+")",userAgent:o,browser:r,systemName:l,buildVersionNumber:this.appBuildNumber,releaseVersionNumber:this.appVersionCode,sessionDuration:this.getSessionDuration(),devicePixelRatio:window.devicePixelRatio,screenWidth:window.screen.width,screenHeight:window.screen.height,innerWidth:window.innerWidth,innerHeight:window.innerHeight,currentUrl:window.location.href,language:navigator.language||navigator.userLanguage,mobile:b(),sdkVersion:"13.9.3",sdkType:"javascript",environment:this.environment}}}],tc(n.prototype,e),t&&tc(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tf(e){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?th(Object(n),!0).forEach(function(t){tv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tm(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tb(o.key),o)}}function tv(e,t,n){return(t=tb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tb(e){var t=function(e,t){if("object"!=tf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tf(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tf(t)?t:String(t)}tu(td,"instance",void 0);var ty=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),tv(this,"logArray",[]),tv(this,"disabled",!1),tv(this,"originalConsoleLog",void 0),tv(this,"logMaxLength",500)}return e=[{key:"getLogs",value:function(){return this.logArray}},{key:"stop",value:function(){this.disabled=!0,this.originalConsoleLog&&(window.console=this.originalConsoleLog)}},{key:"addLog",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:w(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o<e.length;o++)n+=e[o]+" "}catch(e){}this.addLog(n,t)}}},{key:"start",value:function(){if(!this.disabled){var e,t=this;window.console=(e=window.console,window.console&&e||(e={}),t.originalConsoleLog=e,tg(tg({},e),{},{log:function(){t.addLogWithArgs(arguments,"INFO"),e.log&&e.log.apply(e,arguments)},warn:function(){t.addLogWithArgs(arguments,"WARNING"),e.warn&&e.warn.apply(e,arguments)},error:function(){t.addLogWithArgs(arguments,"ERROR"),e.error&&e.error.apply(e,arguments)},info:function(n){t.addLogWithArgs(arguments,"INFO"),e.info&&e.info.apply(e,arguments)}}))}}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&tm(n.prototype,e),t&&tm(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tw(e){return(tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tx(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tk(o.key),o)}}function tk(e){var t=function(e,t){if("object"!=tw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tw(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tw(t)?t:String(t)}tv(ty,"instance",void 0);var tS,tC,tI=function(){var e,t;function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function")}return e=[{key:"start",value:function(){document.addEventListener("click",function(e){e.target&&("A"===e.target.tagName&&"gleap:"===e.target.protocol&&(e.preventDefault(),om(e.target.href)),ts.getInstance().isOpened()||ty.getInstance().addLog(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=w(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var l=(e.tagName||"").toLowerCase(),c="<",u=">";return t||(c="[",u="]"),"".concat(c).concat(l).concat(o).concat(r).concat(u).concat(n).concat(c,"/").concat(l).concat(u)}(e.target),"CLICK"))})}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&tx(n.prototype,e),t&&tx(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tL(e){return(tL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tT(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tO(o.
1key),o)}}function tE(e,t,n){return(t=tO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tO(e){var t=function(e,t){if("object"!=tL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tL(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tL(t)?t:String(t)}tC=void 0,(tS=tk(tS="instance"))in tI?Object.defineProperty(tI,tS,{value:tC,enumerable:!0,configurable:!0,writable:!0}):tI[tS]=tC;var tM=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),tE(this,"customData",{}),tE(this,"ticketAttributes",{})}return e=[{key:"getCustomData",value:function(){return this.customData}},{key:"attachCustomData",value:function(e){this.customData=Object.assign(this.customData,y(e))}},{key:"setCustomData",value:function(e,t){this.customData[e]=t}},{key:"removeCustomData",value:function(e){delete this.customData[e]}},{key:"clearCustomData",value:function(){this.customData={}}},{key:"setTicketAttribute",value:function(e,t){this.ticketAttributes[e]=t}},{key:"getTicketAttributes",value:function(){return this.ticketAttributes}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&tT(n.prototype,e),t&&tT(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function tA(e){return(tA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tP(e,t,n){return(t=tR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e){var t=function(e,t){if("object"!=tA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tA(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tA(t)?t:String(t)}tE(tM,"instance",void 0);var tN=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),tP(this,"eventListeners",{})}return e=[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}},{key:"notifyEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ov.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r<o.length;r++){var i=o[r];i&&i(t)}}},{key:"on",value:function(e,t){var n=this.getInstance();n.eventListeners[e]||(n.eventListeners[e]=[]),n.eventListeners[e].push(t)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tR(o.key),o)}}(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tD(e){return(tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tj(e,t,n){return(t=tF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tF(e){var t=function(e,t){if("object"!=tD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tD(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tD(t)?t:String(t)}tP(tN,"instance",void 0);var tB=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),tj(this,"customActionCallbacks",[])}return e=[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}},{key:"registerCustomAction",value:function(e){var t=this.getInstance();t.customActionCallbacks&&t.customActionCallbacks.push(e)}},{key:"triggerCustomAction",value:function(e){var t=this.getInstance();if(t.customActionCallbacks)for(var n=0;n<t.customActionCallbacks.length;n++){var o=t.customActionCallbacks[n];o&&o({name:e})}}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,tF(o.key),o)}}(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function t_(){t_=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function p(t,n,o,i){var a,l,c,u,p=Object.create((n&&n.prototype instanceof v?n:v).prototype);return r(p,"_invoke",{value:(a=t,l=o,c=new E(i||[]),u=f,function(t,n){if(u===h)throw Error("Generator is already running");if(u===g){if("throw"===t)throw n;return{value:e,done:!0}}for(c.method=t,c.arg=n;;){var o=c.delegate;if(o){var r=function t(n,o){var r=o.method,i=n.iterator[r];if(i===e)return o.delegate=null,"throw"===r&&n.iterator.return&&
vendor: 5,139 bytes, line 1
1(o.method="return",o.arg=e,t(n,o),"throw"===o.method)||"return"!==r&&(o.method="throw",o.arg=TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(i,n.iterator,o.arg);if("throw"===a.type)return o.method="throw",o.arg=a.arg,o.delegate=null,m;var l=a.arg;return l?l.done?(o[n.resultName]=l.value,o.next=n.nextLoc,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,m):l:(o.method="throw",o.arg=TypeError("iterator result is not an object"),o.delegate=null,m)}(o,c);if(r){if(r===m)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(u===f)throw u=g,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u=h;var i=d(a,l,c);if("normal"===i.type){if(u=c.done?g:"suspendedYield",i.arg===m)continue;return{value:i.arg,done:c.done}}"throw"===i.type&&(u=g,c.method="throw",c.arg=i.arg)}})}),p}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",h="executing",g="completed",m={};function v(){}function b(){}function y(){}var w={};u(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(O([])));k&&k!==n&&o.call(k,a)&&(w=k);var S=y.prototype=v.prototype=Object.create(w);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){var n;r(this,"_invoke",{value:function(r,i){function a(){return new t(function(n,a){!function n(r,i,a,l){var c=d(e[r],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==tZ(p)&&o.call(p,"__await")?t.resolve(p.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(p).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,l)})}l(c.arg)}(r,i,n,a)})}return n=n?n.then(a,a):a()}})}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw TypeError(tZ(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(I.prototype),u(I.prototype,l,function(){return this}),t.AsyncIterator=I,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new I(p(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(S),u(S,c,"Generator"),u(S,a,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return l.type="throw",l.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
1if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:O(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function tH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||tz(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tq(e){return function(e){if(Array.isArray(e))return tW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tz(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tU(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tz(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function tz(e,t){if(e){if("string"==typeof e)return tW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tW(e,t):void 0}}function tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tG(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tV(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=tZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tZ(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tZ(t)?t:String(t)}(o.key),o)}}function tX(e,t,n){return t&&tV(e.prototype,t),n&&tV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tZ(e){return(tZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}tj(tB,"instance",void 0);var tK=function(){function e(e){var t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function t(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function n(e){try{var t,n=e.rules||e.cssRules;return n?((t=Array.from(n).map(o).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function o(e){var t=e.cssText;if("styleSheet"in e)try{t=n(e.styleSheet)||t}catch(e){}return t}(d=p||(p={}))[d.Document=0]="Document",d[d.DocumentType=1]="DocumentType",d[d.Element=2]="Element",d[d.Text=3]="Text",d[d.CDATA=4]="CDATA",d[d.Comment=5]="Comment";var r=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){if(!e)return -1;var t,n=null==(t=this.getMeta(e))?void 0:t.id;return null!=n?n:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,n=this.getId(e);
1this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var n=this.getNode(e);if(n){var o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(t,o)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function i(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}var a="__rrweb_original__",l=1,c=RegExp("[^a-z0-9-_:]");function u(){return l++}var p,d,f,h,g=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,m=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,v=/^(data:)([^,]*),(.*)/i;function b(e,t){return(e||"").replace(g,function(e,n,o,r,i,a){var l=o||i||a,c=n||r||"";if(!l)return e;if(!m.test(l)||v.test(l))return"url(".concat(c).concat(l).concat(c,")");if("/"===l[0])return"url(".concat(c).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+l).concat(c,")");var u=t.split("/"),p=l.split("/");u.pop();for(var d=0;d<p.length;d++){var f=p[d];"."!==f&&(".."===f?u.pop():u.push(f))}return"url(".concat(c).concat(u.join("/")).concat(c,")")})}var y=/^[^ \t\n\r\u000c]+/,w=/^[, \t\n\r\u000c]+/;function x(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function k(){var e=document.createElement("a");return e.href="",e.href}function S(e,t,n,o){return"src"===n||"href"===n&&o&&("use"!==t||"#"!==o[0])||"xlink:href"===n&&o&&"#"!==o[0]||"background"===n&&o&&("table"===t||"td"===t||"th"===t)?x(e,o):"srcset"===n&&o?function(e,t){if(""===t.trim())return t;var n=0;function o(e){var o,r=e.exec(t.substring(n));return r?(o=r[0],n+=o.length,o):""}for(var r=[];o(w),!(n>=t.length);){var i=o(y);if(","===i.slice(-1))i=x(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=x(e,i);for(var l=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(l)")"===c&&(l=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(l=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?b(o,k()):"object"===t&&"data"===n&&o?x(e,o):o}function C(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&C(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&C(e.parentNode,t,n)}function I(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(C(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function L(e){return void 0===e?"":e.toLowerCase()}function T(o,r){var l,d=r.doc,g=r.mirror,m=r.blockClass,v=r.blockSelector,y=r.maskTextClass,w=r.maskTextSelector,x=r.skipChild,C=void 0!==x&&x,E=r.inlineStylesheet,O=void 0===E||E,M=r.maskInputOptions,A=void 0===M?{}:M,P=r.maskTextFn,R=r.maskInputFn,N=r.slimDOMOptions,D=r.dataURLOptions,j=void 0===D?{}:D,F=r.inlineImages,B=void 0!==F&&F,_=r.recordCanvas,H=void 0!==_&&_,q=r.onSerialize,U=r.onIframeLoad,z=r.iframeLoadTimeout,W=void 0===z?5e3:z,G=r.onStylesheetLoad,V=r.stylesheetLoadTimeout,X=void 0===V?5e3:V,Z=r.keepIframeSrcFn,K=void 0===Z?function(){return!1}:Z,Y=r.newlyAddedElement,J=r.preserveWhiteSpace,Q=void 0===J||J,$=function(e,t){var o=t.doc,r=t.mirror,l=t.blockClass,u=t.blockSelector,d=t.maskTextClass,g=t.maskTextSelector,m=t.inlineStylesheet,v=t.maskInputOptions,y=t.maskTextFn,w=t.maskInputFn,x=t.dataURLOptions,C=t.inlineImages,L=t.recordCanvas,T=t.keepIframeSrcFn,E=t.newlyAddedElement,O=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(o,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:p.Document,childNodes:[],compatMode:e.compatMode}:{type:p.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:p.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return function(e,t){for(var o=t.doc,r=t.blockClass,l=t.blockSelector,u=t.inlineStylesheet,d=t.maskInputOptions,g=void 0===d?{}:d,m=t.maskInputFn,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,x=t.recordCanvas,C=t.keepIframeSrcFn,I=t.newlyAddedElement,L=t.rootId,T=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(e,r,l),E=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return c.test(t)?"div":t}(e),O={},M=e.attributes.length,A=0;A<M;A++){var P=e.attributes[A];O[P.name]=S(o,E,P.name,P.value)}if("link"===E&&u){var R=Array.from(o.styleSheets).find(function(t){return t.href===e.href}),N=null;R&&(N=n(R)),N&&(delete O.rel,delete O.href,O._cssText=b(N,R.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length&&(N=n(e.sheet))&&(O._cssText=b(N,k())),"input"===E||"textarea"===E||"select"===E){var D=e.value,j=e.checked;"radio"!==O.type&&"checkbox"!==O.type&&"submit"!==O.type&&"button"!==O.type&&D?O.value=i({type:O.type,tagName:E,value:D,maskInputOptions:g,maskInputFn:m}):j&&(O.checked=j)}if("option"===E&&(e.selected&&!g.select?O.selected=!0:delete O.selected),"canvas"===E&&x){if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var o=0;
1o<e.height;o+=50){var r=t.getImageData;if(new Uint32Array((a in r?r[a]:r).call(t,n,o,Math.min(50,e.width-n),Math.min(50,e.height-o)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(O.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){var F=e.toDataURL(y.type,y.quality),B=document.createElement("canvas");B.width=e.width,B.height=e.height,F!==B.toDataURL(y.type,y.quality)&&(O.rr_dataURL=F)}}if("img"===E&&w){f||(h=(f=o.createElement("canvas")).getContext("2d"));var _=e.crossOrigin;e.crossOrigin="anonymous";var H=function(){try{f.width=e.naturalWidth,f.height=e.naturalHeight,h.drawImage(e,0,0),O.rr_dataURL=f.toDataURL(y.type,y.quality)}catch(t){console.warn("Cannot inline img src=".concat(e.currentSrc,"! Error: ").concat(t))}_?O.crossOrigin=_:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?H():e.onload=H}if(("audio"===E||"video"===E)&&(O.rr_mediaState=e.paused?"paused":"played",O.rr_mediaCurrentTime=e.currentTime),void 0!==I&&I||(e.scrollLeft&&(O.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(O.rr_scrollTop=e.scrollTop)),T){var q=e.getBoundingClientRect(),U=q.width,z=q.height;O={class:O.class,rr_width:"".concat(U,"px"),rr_height:"".concat(z,"px")}}return"iframe"!==E||C(O.src)||(e.contentDocument||(O.rr_src=O.src),delete O.src),{type:p.Element,tagName:E,attributes:O,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:L}}(e,{doc:o,blockClass:l,blockSelector:u,inlineStylesheet:m,maskInputOptions:void 0===v?{}:v,maskInputFn:w,dataURLOptions:void 0===x?{}:x,inlineImages:C,recordCanvas:L,keepIframeSrcFn:T,newlyAddedElement:void 0!==E&&E,rootId:O});case e.TEXT_NODE:return function(e,t){var n,o,r=t.maskTextClass,i=t.maskTextSelector,a=t.maskTextFn,l=t.rootId,c=e.parentNode&&e.parentNode.tagName,u=e.textContent,d="STYLE"===c||void 0,f="SCRIPT"===c||void 0;if(d&&u){try{e.nextSibling||e.previousSibling||null!=(o=e.parentNode.sheet)&&o.cssRules&&(u=(n=e.parentNode.sheet).cssRules?Array.from(n.cssRules).map(function(e){return e.cssText||""}).join(""):"")}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}u=b(u,k())}return f&&(u="SCRIPT_PLACEHOLDER"),!d&&!f&&u&&I(e,r,i)&&(u=a?a(u):u.replace(/[\S]/g,"*")),{type:p.Text,textContent:u||"",isStyle:d,rootId:l}}(e,{maskTextClass:d,maskTextSelector:g,maskTextFn:y,rootId:O});case e.CDATA_SECTION_NODE:return{type:p.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:p.Comment,textContent:e.textContent||"",rootId:O};default:return!1}}(o,{doc:d,mirror:g,blockClass:m,blockSelector:v,maskTextClass:y,maskTextSelector:w,inlineStylesheet:O,maskInputOptions:A,maskTextFn:P,maskInputFn:R,dataURLOptions:j,inlineImages:B,recordCanvas:H,keepIframeSrcFn:K,newlyAddedElement:void 0!==Y&&Y});if(!$)return console.warn(o,"not serialized"),null;l=g.hasNode(o)?g.getId(o):!(N.comment&&$.type===p.Comment||$.type===p.Element&&(N.script&&("script"===$.tagName||"link"===$.tagName&&"preload"===$.attributes.rel&&"script"===$.attributes.as||"link"===$.tagName&&"prefetch"===$.attributes.rel&&"string"==typeof $.attributes.href&&$.attributes.href.endsWith(".js"))||N.headFavicon&&("link"===$.tagName&&"shortcut icon"===$.attributes.rel||"meta"===$.tagName&&(L($.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===L($.attributes.name)||"icon"===L($.attributes.rel)||"apple-touch-icon"===L($.attributes.rel)||"shortcut icon"===L($.attributes.rel)))||"meta"===$.tagName&&(N.headMetaDescKeywords&&L($.attributes.name).match(/^description|keywords$/)||N.headMetaSocial&&(L($.attributes.property).match(/^(og|twitter|fb):/)||L($.attributes.name).match(/^(og|twitter):/)||"pinterest"===L($.attributes.name))||N.headMetaRobots&&("robots"===L($.attributes.name)||"googlebot"===L($.attributes.name)||"bingbot"===L($.attributes.name))||N.headMetaHttpEquiv&&void 0!==$.attributes["http-equiv"]||N.headMetaAuthorship&&("author"===L($.attributes.name)||"generator"===L($.attributes.name)||"framework"===L($.attributes.name)||"publisher"===L($.attributes.name)||"progid"===L($.attributes.name)||L($.attributes.property).match(/^article:/)||L($.attributes.property).match(/^product:/))||N.headMetaVerification&&("google-site-verification"===L($.attributes.name)||"yandex-verification"===L($.attributes.name)||"csrf-token"===L($.attributes.name)||"p:domain_verify"===L($.attributes.name)||"verify-v1"===L($.attributes.name)||"verification"===L($.attributes.name)||"shopify-checkout-api-token"===L($.attributes.name)))))&&(Q||$.type!==p.Text||$.isStyle||$.textContent.replace(/^\s+|\s+$/gm,"").length)?u
1():-2;var ee=Object.assign($,{id:l});if(g.add(o,ee),-2===l)return null;q&&q(o);var et=!C;if(ee.type===p.Element){et=et&&!ee.needBlock,delete ee.needBlock;var en=o.shadowRoot;en&&t(en)&&(ee.isShadowHost=!0)}if((ee.type===p.Document||ee.type===p.Element)&&et){N.headWhitespace&&ee.type===p.Element&&"head"===ee.tagName&&(Q=!1);for(var eo,er={doc:d,mirror:g,blockClass:m,blockSelector:v,maskTextClass:y,maskTextSelector:w,skipChild:C,inlineStylesheet:O,maskInputOptions:A,maskTextFn:P,maskInputFn:R,slimDOMOptions:N,dataURLOptions:j,inlineImages:B,recordCanvas:H,preserveWhiteSpace:Q,onSerialize:q,onIframeLoad:U,iframeLoadTimeout:W,onStylesheetLoad:G,stylesheetLoadTimeout:X,keepIframeSrcFn:K},ei=0,ea=Array.from(o.childNodes);ei<ea.length;ei++)(eo=T(ea[ei],er))&&ee.childNodes.push(eo);if(o.nodeType===o.ELEMENT_NODE&&o.shadowRoot)for(var es=0,el=Array.from(o.shadowRoot.childNodes);es<el.length;es++)(eo=T(el[es],er))&&(t(o.shadowRoot)&&(eo.isShadow=!0),ee.childNodes.push(eo))}return o.parentNode&&e(o.parentNode)&&t(o.parentNode)&&(ee.isShadow=!0),ee.type===p.Element&&"iframe"===ee.tagName&&function(e,t,n){var o=e.contentWindow;if(o){var r,i=!1;try{r=o.document.readyState}catch(e){return}if("complete"!==r){var a=setTimeout(function(){i||(t(),i=!0)},n);return e.addEventListener("load",function(){clearTimeout(a),i=!0,t()})}var l="about:blank";if(o.location.href!==l||e.src===l||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(o,function(){var e=o.contentDocument;if(e&&U){var t=T(e,{doc:e,mirror:g,blockClass:m,blockSelector:v,maskTextClass:y,maskTextSelector:w,skipChild:!1,inlineStylesheet:O,maskInputOptions:A,maskTextFn:P,maskInputFn:R,slimDOMOptions:N,dataURLOptions:j,inlineImages:B,recordCanvas:H,preserveWhiteSpace:Q,onSerialize:q,onIframeLoad:U,iframeLoadTimeout:W,onStylesheetLoad:G,stylesheetLoadTimeout:X,keepIframeSrcFn:K});t&&U(o,t)}},W),ee.type===p.Element&&"link"===ee.tagName&&"stylesheet"===ee.attributes.rel&&function(e,t,n){var o,r=!1;try{o=e.sheet}catch(e){return}if(!o){var i=setTimeout(function(){r||(t(),r=!0)},n);e.addEventListener("load",function(){clearTimeout(i),r=!0,t()})}}(o,function(){if(G){var e=T(o,{doc:d,mirror:g,blockClass:m,blockSelector:v,maskTextClass:y,maskTextSelector:w,skipChild:!1,inlineStylesheet:O,maskInputOptions:A,maskTextFn:P,maskInputFn:R,slimDOMOptions:N,dataURLOptions:j,inlineImages:B,recordCanvas:H,preserveWhiteSpace:Q,onSerialize:q,onIframeLoad:U,iframeLoadTimeout:W,onStylesheetLoad:G,stylesheetLoadTimeout:X,keepIframeSrcFn:K});e&&G(o,e)}},X),ee}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}var O="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",M={map:{},getId:function(){return console.error(O),-1},getNode:function(){return console.error(O),null},removeNodeFromMap:function(){console.error(O)},has:function(){return console.error(O),!1},reset:function(){console.error(O)}};function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=Date.now();r||!1!==n.leading||(r=c);var u=t-(c-r),p=this;u<=0||u>t?(o&&(clearTimeout(o),o=null),r=c,e.apply(p,a)):o||!1===n.trailing||(o=setTimeout(function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(p,a)},u))}}function P(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),i&&i.set&&i.set.call(this,e)}}),function(){return P(e,t,i||{},!0)}}function R(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(e){return function(){}}}function N(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function D(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function j(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(C(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function F(e,t){return -2===t.getId(e)}function B(e){return!!e.changedTouches}
1function _(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function H(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function q(e){return!!(null==e?void 0:e.shadowRoot)}("undefined"==typeof window?"undefined":tZ(window))<"u"&&window.Proxy&&window.Reflect&&(M=new Proxy(M,{get:function(e,t,n){return"map"===t&&console.error(O),Reflect.get(e,t,n)}}));var U=function(){function e(){tG(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return tX(e,[{key:"getId",value:function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){var n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}(),z=((e5=z||{})[e5.DomContentLoaded=0]="DomContentLoaded",e5[e5.Load=1]="Load",e5[e5.FullSnapshot=2]="FullSnapshot",e5[e5.IncrementalSnapshot=3]="IncrementalSnapshot",e5[e5.Meta=4]="Meta",e5[e5.Custom=5]="Custom",e5[e5.Plugin=6]="Plugin",e5),W=((e9=W||{})[e9.Mutation=0]="Mutation",e9[e9.MouseMove=1]="MouseMove",e9[e9.MouseInteraction=2]="MouseInteraction",e9[e9.Scroll=3]="Scroll",e9[e9.ViewportResize=4]="ViewportResize",e9[e9.Input=5]="Input",e9[e9.TouchMove=6]="TouchMove",e9[e9.MediaInteraction=7]="MediaInteraction",e9[e9.StyleSheetRule=8]="StyleSheetRule",e9[e9.CanvasMutation=9]="CanvasMutation",e9[e9.Font=10]="Font",e9[e9.Log=11]="Log",e9[e9.Drag=12]="Drag",e9[e9.StyleDeclaration=13]="StyleDeclaration",e9[e9.Selection=14]="Selection",e9[e9.AdoptedStyleSheet=15]="AdoptedStyleSheet",e9),G=((e7=G||{})[e7.MouseUp=0]="MouseUp",e7[e7.MouseDown=1]="MouseDown",e7[e7.Click=2]="Click",e7[e7.ContextMenu=3]="ContextMenu",e7[e7.DblClick=4]="DblClick",e7[e7.Focus=5]="Focus",e7[e7.Blur=6]="Blur",e7[e7.TouchStart=7]="TouchStart",e7[e7.TouchMove_Departed=8]="TouchMove_Departed",e7[e7.TouchEnd=9]="TouchEnd",e7[e7.TouchCancel=10]="TouchCancel",e7),V=((e6=V||{})[e6["2D"]=0]="2D",e6[e6.WebGL=1]="WebGL",e6[e6.WebGL2=2]="WebGL2",e6),X=((e8=X||{})[e8.Play=0]="Play",e8[e8.Pause=1]="Pause",e8[e8.Seeked=2]="Seeked",e8[e8.VolumeChange=3]="VolumeChange",e8[e8.RateChange=4]="RateChange",e8),Z=((te=Z||{}).Start="start",te.Pause="pause",te.Resume="resume",te.Resize="resize",te.Finish="finish",te.FullsnapshotRebuilded="fullsnapshot-rebuilded",te.Loa
1dStylesheetStart="load-stylesheet-start",te.LoadStylesheetEnd="load-stylesheet-end",te.SkipStart="skip-start",te.SkipEnd="skip-end",te.MouseInteraction="mouse-interaction",te.EventCast="event-cast",te.CustomEvent="custom-event",te.Flush="flush",te.StateChange="state-change",te.PlayBack="play-back",te.Destroy="destroy",te),K=function(){function e(){tG(this,e),this.length=0,this.head=null}return tX(e,[{key:"get",value:function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t,n=this.head,o=0;o<e;o++)n=(null==(t=n)?void 0:t.next)||null;return n}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var o=e.nextSibling.__ln.previous;t.previous=o,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,o&&(o.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;!this.head||(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}]),e}(),Y=function(e,t){return"".concat(e,"@").concat(t)},J=function(){function n(){var o=this;tG(this,n),this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(o.processMutation),o.emit()},this.emit=function(){if(!o.frozen&&!o.locked){for(var t=[],n=new K,r=function(e){for(var t=e,n=-2;-2===n;)n=(t=t&&t.nextSibling)&&o.mirror.getId(t);return n},i=function(i){var a,l,c,u,p,d=null;(null==(c=null==(l=i.getRootNode)?void 0:l.call(i))?void 0:c.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&i.getRootNode().host&&(d=i.getRootNode().host);for(var f=d;(null==(p=null==(u=null==(a=f)?void 0:a.getRootNode)?void 0:u.call(f))?void 0:p.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&f.getRootNode().host;)f=f.getRootNode().host;var h=!(o.doc.contains(i)||f&&o.doc.contains(f));if(i.parentNode&&!h){var g=e(i.parentNode)?o.mirror.getId(d):o.mirror.getId(i.parentNode),m=r(i);if(-1===g||-1===m)return n.addNode(i);var v=T(i,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(e){_(e,o.mirror)&&o.iframeManager.addIframe(e),H(e,o.mirror)&&o.stylesheetManager.trackLinkElement(e),q(i)&&o.shadowDomManager.addShadowRoot(i.shadowRoot,o.doc)},onIframeLoad:function(e,t){o.iframeManager.attachIframe(e,t),o.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,t){o.stylesheetManager.attachLinkElement(e,t)}});v&&t.push({parentId:g,nextId:m,node:v})}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var a=0,l=Array.from(o.movedSet.values());a<l.length;a++){var c=l[a];$(o.removes,c,o.mirror)&&!o.movedSet.has(c.parentNode)||i(c)}for(var u=0,p=Array.from(o.addedSet.values());u<p.length;u++){var d=p[u];!ee(o.droppedSet,d)&&!$(o.removes,d,o.mirror)||ee(o.movedSet,d)?i(d):o.droppedSet.add(d)}for(var f=null;n.length;){var h=null;if(f){var g=o.mirror.getId(f.value.parentNode),m=r(f.value);-1!==g&&-1!==m&&(h=f)}if(!h)for(var v=n.length-1;v>=0;v--){var b=n.get(v);if(b){var y=o.mirror.getId(b.value.parentNode);if(-1===r(b.value))continue;if(-1!==y){h=b;break}var w=b.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=w.parentNode.host;if(-1!==o.mirror.getId(x)){h=b;break}}}}if(!h){for(;n.head;)n.removeNode(n.head.value);break}f=h.previous,n.removeNode(h.value),i(h.value)}var k={texts:o.texts.map(function(e){return{id:o.mirror.getId(e.n
1ode),value:e.value}}).filter(function(e){return o.mirror.has(e.id)}),attributes:o.attributes.map(function(e){return{id:o.mirror.getId(e.node),attributes:e.attributes}}).filter(function(e){return o.mirror.has(e.id)}),removes:o.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(o.texts=[],o.attributes=[],o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.movedMap={},o.mutationCb(k))}},this.processMutation=function(n){if(!F(n.target,o.mirror))switch(n.type){case"characterData":var r=n.target.textContent;j(n.target,o.blockClass,o.blockSelector,!1)||r===n.oldValue||o.texts.push({value:I(n.target,o.maskTextClass,o.maskTextSelector)&&r?o.maskTextFn?o.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:n.target});break;case"attributes":var a=n.target,l=n.target.getAttribute(n.attributeName);if("value"===n.attributeName&&(l=i({maskInputOptions:o.maskInputOptions,tagName:n.target.tagName,type:n.target.getAttribute("type"),value:l,maskInputFn:o.maskInputFn})),j(n.target,o.blockClass,o.blockSelector,!1)||l===n.oldValue)return;var c=o.attributes.find(function(e){return e.node===n.target});if("IFRAME"===a.tagName&&"src"===n.attributeName&&!o.keepIframeSrcFn(l)){if(a.contentDocument)return;n.attributeName="rr_src"}if(c||(c={node:n.target,attributes:{}},o.attributes.push(c)),"style"===n.attributeName){var u=o.doc.createElement("span");n.oldValue&&u.setAttribute("style",n.oldValue),(void 0===c.attributes.style||null===c.attributes.style)&&(c.attributes.style={});for(var p=c.attributes.style,d=0,f=Array.from(a.style);d<f.length;d++){var h=f[d],g=a.style.getPropertyValue(h),m=a.style.getPropertyPriority(h);(g!==u.style.getPropertyValue(h)||m!==u.style.getPropertyPriority(h))&&(p[h]=""===m?g:[g,m])}for(var v=0,b=Array.from(u.style);v<b.length;v++){var y=b[v];""===a.style.getPropertyValue(y)&&(p[y]=!1)}}else c.attributes[n.attributeName]=S(o.doc,a.tagName,n.attributeName,l);break;case"childList":if(j(n.target,o.blockClass,o.blockSelector,!0))return;n.addedNodes.forEach(function(e){return o.genAdds(e,n.target)}),n.removedNodes.forEach(function(r){var i=o.mirror.getId(r),a=e(n.target)?o.mirror.getId(n.target.host):o.mirror.getId(n.target);j(n.target,o.blockClass,o.blockSelector,!1)||F(r,o.mirror)||-1===o.mirror.getId(r)||(o.addedSet.has(r)?(Q(o.addedSet,r),o.droppedSet.add(r)):o.addedSet.has(n.target)&&-1===i||function t(n,o){if(e(n))return!1;var r=o.getId(n);return!o.has(r)||(!n.parentNode||n.parentNode.nodeType!==n.DOCUMENT_NODE)&&(!n.parentNode||t(n.parentNode,o))}(n.target,o.mirror)||(o.movedSet.has(r)&&o.movedMap[Y(i,a)]?Q(o.movedSet,r):o.removes.push({parentId:a,id:i,isShadow:!(!e(n.target)||!t(n.target))||void 0})),o.mapRemoves.push(r))})}},this.genAdds=function(e,t){if(o.mirror.hasNode(e)){if(F(e,o.mirror))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&-1!==n&&(o.movedMap[Y(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);j(e,o.blockClass,o.blockSelector,!1)||e.childNodes.forEach(function(e){return o.genAdds(e)})}}return tX(n,[{key:"init",value:function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager"].forEach(function(n){t[n]=e[n]})}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),n}();function Q(e,t){e.delete(t),t.childNodes.forEach(function(t){return Q(e,t)})}function $(e,t,n){return 0!==e.length&&function e(t,n,o){var r=n.parentNode;if(!r)return!1;var i=o.getId(r);return!!t.some(function(e){return e.id===i})||e(t,r,o)}
1(e,t,n)}function ee(e,t){return 0!==e.size&&function e(t,n){var o=n.parentNode;return!!o&&(!!t.has(o)||e(t,o))}(e,t)}var et=Object.defineProperty,en=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,es=function(e,t,n){return t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},el=function(e,t){for(var n in t||(t={}))ei.call(t,n)&&es(e,n,t[n]);if(er){var o,r=tU(er(t));try{for(r.s();!(o=r.n()).done;)n=o.value,ea.call(t,n)&&es(e,n,t[n])}catch(e){r.e(e)}finally{r.f()}}return e},ec=[],eu=("undefined"==typeof CSSGroupingRule?"undefined":tZ(CSSGroupingRule))<"u",ep=("undefined"==typeof CSSMediaRule?"undefined":tZ(CSSMediaRule))<"u",ed=("undefined"==typeof CSSSupportsRule?"undefined":tZ(CSSSupportsRule))<"u",ef=("undefined"==typeof CSSConditionRule?"undefined":tZ(CSSConditionRule))<"u";function eh(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function eg(e,t){var n,o,r,i=new J;ec.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,l=null==(r=null==(o=null==(n=window)?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");l&&window[l]&&(a=window[l]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function em(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector;return E("scroll",A(function(e){var a=eh(e);if(a&&!j(a,r,i,!0)){var l=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:l,x:c.scrollLeft,y:c.scrollTop})}else t({id:l,x:a.scrollLeft,y:a.scrollTop})}},e.sampling.scroll||100),n)}function ev(e,t){var n=el({},e);return t||delete n.userTriggered,n}var eb=["INPUT","TEXTAREA","SELECT"],ey=new WeakMap;function ew(e){var t;return t=[],eu&&e.parentRule instanceof CSSGroupingRule||ep&&e.parentRule instanceof CSSMediaRule||ed&&e.parentRule instanceof CSSSupportsRule||ef&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function ex(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function ek(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,l=null;l="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,u=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==l&&-1!==l&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=u.set)?void 0:t.call(this,e);if(null!==l&&-1!==l)try{a.adoptStyleSheets(e,l)}catch(e){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}):function(){}}for(var eS=function(){function e(t){tG(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return tX(e,[{key:"getId",value:function(e,t,n,o){var r=n||this.getIdToRemoteIdMap(e),i=o||this.getRemoteIdToIdMap(e),a=r.get(t);return a||(a=this.generateIdFn(),r.set(t,a),i.set(a,t)),a}},{key:"getIds",value:function(e,t){var n=this,o=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getId(e,t,o,r)})}},{key:"getRemoteId",value:function(e,t,n){var o=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:o.get(t)||-1}},{key:"getRemoteIds",value:function(e,t){var n=this,o=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getRemoteId(e,t,o)})}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),eC=function(){function e(t){tG(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=ne
1w eS(u),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return tX(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case z.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:z.IncrementalSnapshot,data:{source:W.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case z.Meta:case z.Load:case z.DomContentLoaded:return!1;case z.Plugin:return t;case z.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case z.IncrementalSnapshot:switch(t.data.source){case W.Mutation:return t.data.adds.forEach(function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)}),t.data.removes.forEach(function(t){o.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){o.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){o.replaceIds(t,e,["id"])}),t;case W.Drag:case W.TouchMove:case W.MouseMove:return t.data.positions.forEach(function(t){o.replaceIds(t,e,["id"])}),t;case W.ViewportResize:return!1;case W.MediaInteraction:case W.MouseInteraction:case W.Scroll:case W.CanvasMutation:case W.Input:return this.replaceIds(t.data,e,["id"]),t;case W.StyleSheetRule:case W.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case W.Font:return t;case W.Selection:return t.data.ranges.forEach(function(t){o.replaceIds(t,e,["start","end"])}),t;case W.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(function(t){o.replaceStyleIds(t,e,["styleId"])}),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=tU(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})}}]),e}(),eI=Object.defineProperty,eL=Object.defineProperties,eT=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertySymbols,eO=Object.prototype.hasOwnProperty,eM=Object.prototype.propertyIsEnumerable,eA=function(e,t,n){return t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},eP=function(e,t){for(var n in t||(t={}))eO.call(t,n)&&eA(e,n,t[n]);if(eE){var o,r=tU(eE(t));try{for(r.s();!(o=r.n()).done;)n=o.value,eM.call(t,n)&&eA(e,n,t[n])}catch(e){r.e(e)}finally{r.f()}}return e},eR=function(e,t){return eL(e,eT(t))},eN=function(){function e(t){tG(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(R(Element.prototype,"attachShadow",function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}return tX(e,[{key:"addShadowRoot",value:function(e,n){var o=this;!t(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),eg(eR(eP({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),em(eR(eP({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,o.mirror.getId(e.host)),ek({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},e)},0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(R(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}}))}}}
1,{key:"reset",value:function(){this.restorePatches.forEach(function(e){return e()}),this.shadowDoms=new WeakSet}}]),e}(),eD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ej=("undefined"==typeof Uint8Array?"undefined":tZ(Uint8Array))>"u"?[]:new Uint8Array(256),eF=0;eF<64;eF++)ej[eD.charCodeAt(eF)]=eF;var eB=new Map,e_=function(e,t,n){if(e&&(eq(e,t)||"object"==tZ(e))){var o,r,i=(o=e.constructor.name,(r=eB.get(n))||(r=new Map,eB.set(n,r)),r.has(o)||r.set(o,[]),r.get(o)),a=i.indexOf(e);return -1===a&&(a=i.length,i.push(e)),a}},eH=function(e,t,n){return tq(e).map(function(e){return function e(t,n,o){return t instanceof Array?t.map(function(t){return e(t,n,o)}):null===t?t:t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray?{rr_type:t.constructor.name,args:[Object.values(t)]}:t instanceof ArrayBuffer?{rr_type:t.constructor.name,base64:function(e){var t,n=new Uint8Array(e),o=n.length,r="";for(t=0;t<o;t+=3)r+=eD[n[t]>>2],r+=eD[(3&n[t])<<4|n[t+1]>>4],r+=eD[(15&n[t+1])<<2|n[t+2]>>6],r+=eD[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(t)}:t instanceof DataView?{rr_type:t.constructor.name,args:[e(t.buffer,n,o),t.byteOffset,t.byteLength]}:t instanceof HTMLImageElement?{rr_type:t.constructor.name,src:t.src}:t instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:t.toDataURL()}:t instanceof ImageData?{rr_type:t.constructor.name,args:[e(t.data,n,o),t.width,t.height]}:eq(t,n)||"object"==tZ(t)?{rr_type:t.constructor.name,index:e_(t,n,o)}:t}(e,t,n)})},eq=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(n){return e instanceof t[n]})};function eU(e,t,n){var o=[];try{var r=R(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return j(this,t,n,!0)||"__context"in this||(this.__context=o),e.apply(this,[o].concat(i))}});o.push(r)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){o.forEach(function(e){return e()})}}function ez(e,t,n,o,r,i,a){var l,c=[],u=tU(Object.getOwnPropertyNames(e));try{for(u.s();!(l=u.n()).done;)!function(){var i=l.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])return 1;var u=R(e,i,function(e){return function(){for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];var p=e.apply(this,c);if(e_(p,a,this),!j(this.canvas,o,r,!0)){var d=eH([].concat(c),a,this);n(this.canvas,{type:t,property:i,args:d})}return p}});c.push(u)}catch(o){var p=P(e,i,{set:function(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});c.push(p)}}()}catch(e){u.e(e)}finally{u.f()}return c}var eW=function(e){var t,n,o,r;return new Worker(tt=tt||(t=null,o=(n=function(e,t){var n=atob(e);if(t){for(var o=new Uint8Array(n.length),r=0,i=n.length;r<i;++r)o[r]=n.charCodeAt(r);return String.fromCharCode.apply(null,new Uint16Array(o.buffer))}return n}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybi
1BsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",!1)).indexOf("\n",10)+1,r=new Blob([n.substring(o)+(t?"//# sourceMappingURL="+t:"")],{type:"application/javascript"}),URL.createObjectURL(r)),e)},eG=Object.getOwnPropertySymbols,eV=Object.prototype.hasOwnProperty,eX=Object.prototype.propertyIsEnumerable,eZ=function(){function e(t){var n=this;tG(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,l=t.blockSelector,c=t.recordCanvas,u=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,l),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,l,{dataURLOptions:u})}return tX(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=eU(t,n,o),l=new Map,c=new eW;c.onmessage=function(e){var t=e.data.id;if(l.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:V["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var u,p=1e3/e,d=0;u=requestAnimationFrame(function e(a){var f;d&&a-d<p||(d=a,(f=[],t.document.querySelectorAll("canvas").forEach(function(e){j(e,n,o,!0)||f.push(e)}),f).forEach(function(e){var t;return t=t_().mark(function t(){var n,o,i,a;return t_().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.mirror.getId(e),!l.get(o)){t.next=3;break}return t.abrupt("return");case 3:return l.set(o,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(i=e.getContext(e.__context))?void 0:i.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&(null==i||i.clear(i.COLOR_BUFFER_BIT)),t.next=6,createImageBitmap(e);case 6:a=t.sent,c.postMessage({id:o,bitmap:a,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[a]);case 8:case"end":return t.stop()}},t,this)}),new Promise(function(e,n){var o=function(e){try{a(t.next(e))}catch(e){n(e)}},r=function(e){try{a(t.throw(e))}catch(e){n(e)}},a=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(o,r)};a((t=t.apply(i,null)).next())})})),u=requestAnimationFrame(e)}),this.resetObservers=function(){a(),cancelAnimationFrame(u)}}},{key:"initCanvasMutationObserver",value:function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o,r,i=eU(e,t,n),a=function(e,t,n,o){var r,i=[],a=tU(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));try{for(a.s();!(r=a.n()).done;)!function(){var a=r.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])return 1;var l=R(t.CanvasRenderingContext2D.prototype,a,function(r){return function(){for(var i=this,l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];return j(this.canvas,n,o,!0)||setTimeout(function(){var n=eH([].concat(c),t,i);e(i.canvas,{type:V["2D"],property:a,args:n})},0),r.apply(this,c)}});i.push(l)}catch(n){var c=P(t.CanvasRenderingContext2D.prototype,a,{set:function(t){e(this.canvas,{type:V["2D"],property:a,args:[t],setter:!0})}});i.push(c)}}()}catch(e){a.e(e)}finally{a.f()}
1return function(){i.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),l=(o=this.processMutation.bind(this),this.mirror,(r=[]).push.apply(r,tq(ez(e.WebGLRenderingContext.prototype,V.WebGL,o,t,n,0,e))),"u">tZ(e.WebGL2RenderingContext)&&r.push.apply(r,tq(ez(e.WebGL2RenderingContext.prototype,V.WebGL2,o,t,n,0,e))),function(){r.forEach(function(e){return e()})});this.resetObservers=function(){i(),a(),l()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"startRAFTimestamping",value:function(){var e=this;requestAnimationFrame(function t(n){e.rafStamps.latestId=n,requestAnimationFrame(t)})}},{key:"flushPendingCanvasMutations",value:function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var o=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})}},{key:"flushPendingCanvasMutationFor",value:function(e,t){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(e);if(n&&-1!==t){var o=n.map(function(e){return function(e,t){var n={};for(var o in e)eV.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&eG){var r,i=tU(eG(e));try{for(i.s();!(r=i.n()).done;)o=r.value,0>t.indexOf(o)&&eX.call(e,o)&&(n[o]=e[o])}catch(e){i.e(e)}finally{i.f()}}return n}(e,["type"])}),r=n[0].type;this.mutationCb({id:t,type:r,commands:o}),this.pendingCanvasMutations.delete(e)}}}}]),e}(),eK=function(){function e(t){tG(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new U,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return tX(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var n,r={id:t,styleIds:[]},i=[],a=tU(e);try{for(a.s();!(n=a.n()).done;){var l=n.value,c=void 0;if(this.styleMirror.has(l))c=this.styleMirror.getId(l);else{c=this.styleMirror.add(l);var u=Array.from(l.rules||CSSRule);i.push({styleId:c,rules:u.map(function(e,t){return{rule:o(e),index:t}})})}r.styleIds.push(c)}}catch(e){a.e(e)}finally{a.f()}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),eY=Object.defineProperty,eJ=Object.defineProperties,eQ=Object.getOwnPropertyDescriptors,e$=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,e1=Object.prototype.propertyIsEnumerable,e2=function(e,t,n){return t in e?eY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},e3=function(e,t){for(var n in t||(t={}))e0.call(t,n)&&e2(e,n,t[n]);if(e$){var o,r=tU(e$(t));try{for(r.s();!(o=r.n()).done;)n=o.value,e1.call(t,n)&&e2(e,n,t[n])}catch(e){r.e(e)}finally{r.f()}}return e};function e4(e){return eJ(e3({},e),eQ({timestamp:Date.now()}))}var e5,e9,e7,e6,e8,te,tt,tn,to,tr,ti=!1,ta=new r;function ts(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,a=e.blockClass,l=void 0===a?"rr-block":a,c=e.blockSelector,u=void 0===c?null:c,p=e.ignoreClass,d=void 0===p?"rr-ignore":p,f=e.maskTextClass,h=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,b=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,x=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,O=void 0===L?{}:L,M=e.dataURLOptions,F=void 0===M?{}:M,U=e.mousemoveWait,V=e.recordCanvas,Z=void 0!==V&&V,K=e.recordCrossOriginIframes,Y=void 0!==K&&K,J=e.userTriggeredOnInput,Q=void 0!==J&&J,$=e.collectFonts,ee=void 0!==$&&$,et=e.inlineImages,er=void 0!==et&&et,ei=e.plugins,ea=e.keepIframeSrcFn,es=void 0===ea?function(){return!1}:ea,eS=e.ignoreCSSAttributes,eI=void 0===eS?new Set([]):eS,eL=!Y||window.parent===window,eT=!1;if(!eL)try{window.parent.document,eT=!1}catch(e){eT=!0}if(eL&&!t)throw Error("emit function is required");void 0!==U&&void 0===O.mousemove&&(O.mousemove=U),ta.reset();var eE=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},eO=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===x,headMetaDescKeywords:"all"===x}:x||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;
1"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0];if(!(0 in n))throw TypeError("1 argument is required");do if(e===r)return!0;while(r=r&&r.parentNode);return!1})}();var eM,eA=0,eP=function(e){var t,n=tU(ei||[]);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.eventProcessor&&(e=o.eventProcessor(e))}}catch(e){n.e(e)}finally{n.f()}return I&&(e=I(e)),e};tn=function(e,r){var i;if((null==(i=ec[0])?void 0:i.isFrozen())&&e.type!==z.FullSnapshot&&(e.type!==z.IncrementalSnapshot||e.data.source!==W.Mutation)&&ec.forEach(function(e){return e.unfreeze()}),eL)null==t||t(eP(e),r);else if(eT){var a={type:"rrweb",event:eP(e),isCheckout:r};window.parent.postMessage(a,"*")}if(e.type===z.FullSnapshot)eM=e,eA=0;else if(e.type===z.IncrementalSnapshot){if(e.data.source===W.Mutation&&e.data.isAttachIframe)return;eA++;var l=o&&eA>=o,c=n&&e.timestamp-eM.timestamp>n;(l||c)&&to(!0)}};var eR,eD=function(e){tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.Mutation},e)}))},ej=function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.Scroll},e)}))},eF=function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.CanvasMutation},e)}))},eB=new eK({mutationCb:eD,adoptedStyleSheetCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.AdoptedStyleSheet},e)}))}}),e_=new eC({mirror:ta,mutationCb:eD,stylesheetManager:eB,recordCrossOriginIframes:Y,wrappedEmit:tn}),eH=tU(ei||[]);try{for(eH.s();!(eR=eH.n()).done;){var eq=eR.value;eq.getMirror&&eq.getMirror({nodeMirror:ta,crossOriginIframeMirror:e_.crossOriginIframeMirror,crossOriginIframeStyleMirror:e_.crossOriginIframeStyleMirror})}}catch(e){eH.e(e)}finally{eH.f()}tr=new eZ({recordCanvas:Z,mutationCb:eF,win:window,blockClass:l,blockSelector:u,mirror:ta,sampling:O.canvas,dataURLOptions:F});var eU=new eN({mutationCb:eD,scrollCb:ej,bypassOptions:{blockClass:l,blockSelector:u,maskTextClass:h,maskTextSelector:m,inlineStylesheet:b,maskInputOptions:eE,dataURLOptions:F,maskTextFn:S,maskInputFn:k,recordCanvas:Z,inlineImages:er,sampling:O,slimDOMOptions:eO,iframeManager:e_,stylesheetManager:eB,canvasManager:tr,keepIframeSrcFn:es},mirror:ta});to=function(){var e,t,n,o,i,a,c,p,d,f,g,v,y,w,x,k,C,I,L,E,O,M,A,P,R,j,B,U,W,G,V,X,K,Y,J,Q,$=arguments.length>0&&void 0!==arguments[0]&&arguments[0];tn(e4({type:z.Meta,data:{href:window.location.href,width:D(),height:N()}}),$),eB.reset(),ec.forEach(function(e){return e.lock()});var ee=(e=document,o=void 0===(n=(t={mirror:ta,blockClass:l,blockSelector:u,maskTextClass:h,maskTextSelector:m,inlineStylesheet:b,maskAllInputs:eE,maskTextFn:S,slimDOM:eO,dataURLOptions:F,recordCanvas:Z,inlineImages:er,onSerialize:function(e){_(e,ta)&&e_.addIframe(e),H(e,ta)&&eB.trackLinkElement(e),q(e)&&eU.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){e_.attachIframe(e,t),eU.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eB.attachLinkElement(e,t)},keepIframeSrcFn:es}).mirror)?new r:n,i=t.blockClass,a=t.blockSelector,c=t.maskTextClass,p=t.maskTextSelector,d=t.inlineStylesheet,f=t.inlineImages,g=t.recordCanvas,y=void 0!==(v=t.maskAllInputs)&&v,w=t.maskTextFn,x=t.maskInputFn,C=void 0!==(k=t.slimDOM)&&k,I=t.dataURLOptions,L=t.preserveWhiteSpace,E=t.onSerialize,O=t.onIframeLoad,M=t.iframeLoadTimeout,A=t.onStylesheetLoad,T(e,{doc:e,mirror:o,blockClass:void 0===i?"rr-block":i,blockSelector:void 0===a?null:a,maskTextClass:void 0===c?"rr-mask":c,maskTextSelector:void 0===p?null:p,skipChild:!1,inlineStylesheet:void 0===d||d,maskInputOptions:!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===y?{password:!0}:y,maskTextFn:w,maskInputFn:x,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===C?{}:C,dataURLOptions:I,inlineImages:void 0!==f&&f,recordCanvas:void 0!==g&&g,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:t.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(P=t.keepIframeSrcFn)?function(){return!1}:P,newlyAddedElement:!1}));if(!ee)return console.warn("Failed to snapshot the document");tn(e4({type:z.FullSnapshot,data:{node:ee,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==(R=document)?void 0:R.documentElement.scrollLeft)||(null==(X=null==(V=null==(j=document)?void 0:j.body)?void 0:V.parentElement)?void 0:X.scrollLeft)||(null==(K=null==(B=document)?void 0:B.body)?void 0:K.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==(U=document)?void 0:U.documentElement.scrollTop)||(null==(J=null==(Y=null==(W=document)?void 0:W.body)?void 0:Y.parentElement)?void 0:J.scrollTop)||(null==(Q=null==(G=document)?void 0:G.body)?void 0:Q.scrollTop)||0}}})),ec.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eB.adoptStyleSheets(document.adoptedStyleSheets,ta.getId(document))};try{var ez=[];ez.push(E("DOMContentLoaded",function(){tn(e4({type:z.DomContentLoaded,data:{}}))}));var eW=function(e){var t;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};o=e.mutationCb,r=e.mousemoveCb,a=e.mouseInteractionCb,l=e.scrollCb,c=e.viewportResizeCb,u=e.inputCb,p=e.mediaInteractionCb,d=e.styleSheetRuleCb,f=e.styleDeclarationCb,h=e.canvasMutationCb,g=e.fontCb,m=e.selectionCb,e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),o.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),r.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),a.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),l.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),c.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),u.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),p.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),d.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),f.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),h.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),g.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),m.apply(void 0,arguments)};var o,r,a,l,c,u,p,d,f,h,g,m,v,b,y,w,x,k,S,C,I,L,T,O,M,F,_,H,q,U,z,V,Z,K,Y,J,Q,$,ee,et,er,ei,ea,es,eS,eC,eI,eL,eT,eE=eg(e,e.doc),eO=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,l="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=A(function(e){var n=Date.now()-i;t(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],i=null},l),p=A(function(e){var t=eh(e),n=B(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),u(("undefined"==typeof DragEvent?"undefined":tZ(DragEvent))<"u"&&e instanceof DragEvent?W.Drag:e instanceof MouseEvent?W.MouseMove:W.TouchMove)},a,{trailing:!1}),d=[E("mousemove",p,o),E("touchmove",p,o),E("drag",p,o)];return function(){d.forEach(function(e){return e()})}}(e),eM=function(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var l=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(G).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e]}
1).forEach(function(e){var a=e.toLowerCase(),l=function(n){var a=eh(n);if(!j(a,r,i,!0)){var l=B(n)?n.changedTouches[0]:n;if(l){var c=o.getId(a),u=l.clientX,p=l.clientY;t({type:G[e],id:c,x:u,y:p})}}};c.push(E(a,l,n))}),function(){c.forEach(function(e){return e()})}}(e),eA=em(e),eP=(v=e.viewportResizeCb,b=-1,y=-1,E("resize",A(function(){var e=N(),t=D();(b!==e||y!==t)&&(v({width:Number(t),height:Number(e)}),b=e,y=t)},200),window)),eR=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,a=e.blockSelector,l=e.ignoreClass,c=e.maskInputOptions,u=e.maskInputFn,p=e.sampling,d=e.userTriggeredOnInput;function f(e){var t=eh(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(0>eb.indexOf(t.tagName))&&!j(t,r,a,!0)){var p=t.type;if(!t.classList.contains(l)){var f=t.value,g=!1;"radio"===p||"checkbox"===p?g=t.checked:(c[t.tagName.toLowerCase()]||c[p])&&(f=i({maskInputOptions:c,tagName:t.tagName,type:p,value:f,maskInputFn:u})),h(t,ev({text:f,isChecked:g,userTriggered:o},d));var m=t.name;"radio"===p&&m&&g&&n.querySelectorAll('input[type="radio"][name="'.concat(m,'"]')).forEach(function(e){e!==t&&h(e,ev({text:e.value,isChecked:!g,userTriggered:!1},d))})}}}function h(e,n){var r=ey.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){ey.set(e,n);var i,a=o.getId(e);t((i=el({},n),en(i,eo({id:a}))))}}var g=("last"===p.input?["change"]:["input","change"]).map(function(e){return E(e,f,n)}),m=n.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),b=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&g.push.apply(g,tq(b.map(function(e){return P(e[0],e[1],{set:function(){f({target:this})}},!1,m)}))),function(){g.forEach(function(e){return e()})}}(e),eN=(w=e.mediaInteractionCb,x=e.blockClass,k=e.blockSelector,S=e.mirror,C=e.sampling,L=[E("play",(I=function(e){return A(function(t){var n=eh(t);if(n&&!j(n,x,k,!0)){var o=n.currentTime,r=n.volume,i=n.muted,a=n.playbackRate;w({type:e,id:S.getId(n),currentTime:o,volume:r,muted:i,playbackRate:a})}},C.media||500)})(X.Play)),E("pause",I(X.Pause)),E("seeked",I(X.Seeked)),E("volumechange",I(X.VolumeChange)),E("ratechange",I(X.RateChange))],function(){L.forEach(function(e){return e()})}),eD=(T={win:n},O=e.styleSheetRuleCb,M=e.mirror,F=e.stylesheetManager,H=(_=T.win).CSSStyleSheet.prototype.insertRule,_.CSSStyleSheet.prototype.insertRule=function(e,t){var n=ex(this,M,F.styleMirror),o=n.id,r=n.styleId;return(o&&-1!==o||r&&-1!==r)&&O({id:o,styleId:r,adds:[{rule:e,index:t}]}),H.apply(this,[e,t])},z=_.CSSStyleSheet.prototype.deleteRule,_.CSSStyleSheet.prototype.deleteRule=function(e){var t=ex(this,M,F.styleMirror),n=t.id,o=t.styleId;return(n&&-1!==n||o&&-1!==o)&&O({id:n,styleId:o,removes:[{index:e}]}),z.apply(this,[e])},_.CSSStyleSheet.prototype.replace&&(q=_.CSSStyleSheet.prototype.replace,_.CSSStyleSheet.prototype.replace=function(e){var t=ex(this,M,F.styleMirror),n=t.id,o=t.styleId;return(n&&-1!==n||o&&-1!==o)&&O({id:n,styleId:o,replace:e}),q.apply(this,[e])}),_.CSSStyleSheet.prototype.replaceSync&&(U=_.CSSStyleSheet.prototype.replaceSync,_.CSSStyleSheet.prototype.replaceSync=function(e){var t=ex(this,M,F.styleMirror),n=t.id,o=t.styleId;return(n&&-1!==n||o&&-1!==o)&&O({id:n,styleId:o,replaceSync:e}),U.apply(this,[e])}),V={},eu?V.CSSGroupingRule=_.CSSGroupingRule:(ep&&(V.CSSMediaRule=_.CSSMediaRule),ef&&(V.CSSConditionRule=_.CSSConditionRule),ed&&(V.CSSSupportsRule=_.CSSSupportsRule)),Z={},Object.entries(V).forEach(function(e){var t=tH(e,2),n=t[0],o=t[1];Z[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=function(e,t){var o=ex(this.parentStyleSheet,M,F.styleMirror),r=o.id,i=o.styleId;return(r&&-1!==r||i&&-1!==i)&&O({id:r,styleId:i,adds:[{rule:e,index:[].concat(tq(ew(this)),[t||0])}]}),Z[n].insertRule.apply(this,[e,t])},o.prototype.deleteRule=function(e){var t=ex(this.parentStyleSheet,M,F.styleMirror),o=t.id,r=t.styleId;
1return(o&&-1!==o||r&&-1!==r)&&O({id:o,styleId:r,removes:[{index:[].concat(tq(ew(this)),[e])}]}),Z[n].deleteRule.apply(this,[e])}}),function(){_.CSSStyleSheet.prototype.insertRule=H,_.CSSStyleSheet.prototype.deleteRule=z,q&&(_.CSSStyleSheet.prototype.replace=q),U&&(_.CSSStyleSheet.prototype.replaceSync=U),Object.entries(V).forEach(function(e){var t=tH(e,2),n=t[0],o=t[1];o.prototype.insertRule=Z[n].insertRule,o.prototype.deleteRule=Z[n].deleteRule})}),ej=ek(e,e.doc),eF=(K={win:n},Y=e.styleDeclarationCb,J=e.mirror,Q=e.ignoreCSSAttributes,$=e.stylesheetManager,et=(ee=K.win).CSSStyleDeclaration.prototype.setProperty,ee.CSSStyleDeclaration.prototype.setProperty=function(e,t,n){if(Q.has(e))return et.apply(this,[e,t,n]);var o,r=ex(null==(o=this.parentRule)?void 0:o.parentStyleSheet,J,$.styleMirror),i=r.id,a=r.styleId;return(i&&-1!==i||a&&-1!==a)&&Y({id:i,styleId:a,set:{property:e,value:t,priority:n},index:ew(this.parentRule)}),et.apply(this,[e,t,n])},er=ee.CSSStyleDeclaration.prototype.removeProperty,ee.CSSStyleDeclaration.prototype.removeProperty=function(e){if(Q.has(e))return er.apply(this,[e]);var t,n=ex(null==(t=this.parentRule)?void 0:t.parentStyleSheet,J,$.styleMirror),o=n.id,r=n.styleId;return(o&&-1!==o||r&&-1!==r)&&Y({id:o,styleId:r,remove:{property:e},index:ew(this.parentRule)}),er.apply(this,[e])},function(){ee.CSSStyleDeclaration.prototype.setProperty=et,ee.CSSStyleDeclaration.prototype.removeProperty=er}),eB=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var l=R(n.fonts,"add",function(e){return function(n){return setTimeout(function(){var e=i.get(n);e&&(t(e),i.delete(n))},0),e.apply(this,[n])}});return r.push(function(){o.FontFace=a}),r.push(l),function(){r.forEach(function(e){return e()})}}(e):function(){},e_=(ei=e.doc,ea=e.mirror,es=e.blockClass,eS=e.blockSelector,eC=e.selectionCb,eI=!0,(eL=function(){var e=ei.getSelection();if(!(!e||eI&&null!=e&&e.isCollapsed)){eI=e.isCollapsed||!1;for(var t=[],n=e.rangeCount||0,o=0;o<n;o++){var r=e.getRangeAt(o),i=r.startContainer,a=r.startOffset,l=r.endContainer,c=r.endOffset;j(i,es,eS,!0)||j(l,es,eS,!0)||t.push({start:ea.getId(i),startOffset:a,end:ea.getId(l),endOffset:c})}eC({ranges:t})}})(),E("selectionchange",eL)),eH=[],eq=tU(e.plugins);try{for(eq.s();!(eT=eq.n()).done;){var eU=eT.value;eH.push(eU.observer(eU.callback,n,eU.options))}}catch(e){eq.e(e)}finally{eq.f()}return function(){ec.forEach(function(e){return e.reset()}),eE.disconnect(),eO(),eM(),eA(),eP(),eR(),eN(),eD(),ej(),eF(),eB(),e_(),eH.forEach(function(e){return e()})}}({mutationCb:eD,mousemoveCb:function(e,t){return tn(e4({type:z.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.MouseInteraction},e)}))},scrollCb:ej,viewportResizeCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.ViewportResize},e)}))},inputCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.Input},e)}))},mediaInteractionCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.StyleDeclaration},e)}))},canvasMutationCb:eF,fontCb:function(e){return tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.Font},e)}))},selectionCb:function(e){tn(e4({type:z.IncrementalSnapshot,data:e3({source:W.Selection},e)}))},blockClass:l,ignoreClass:d,maskTextClass:h,maskTextSelector:m,maskInputOptions:eE,inlineStylesheet:b,sampling:O,recordCanvas:Z,inlineImages:er,userTriggeredOnInput:Q,collectFonts:ee,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:es,blockSelector:u,slimDOMOptions:eO,dataURLOptions:F,mirror:ta,iframeManager:e_,stylesheetManager:eB,shadowDomManager:eU,canvasManager:tr,ignoreCSSAttributes:eI,plugins:(null==(t=null==ei?void 0:ei.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return tn(e4({type:z.Plugin,data:{plugin:e.name,payload:t}}
1))}}}))||[]},C)};e_.addLoadListener(function(e){ez.push(eW(e.contentDocument))});var eG=function(){to(),ez.push(eW(document)),ti=!0};return"interactive"===document.readyState||"complete"===document.readyState?eG():ez.push(E("load",function(){tn(e4({type:z.Load,data:{}})),eG()},window)),function(){ez.forEach(function(e){return e()}),ti=!1}}catch(e){console.warn(e)}}return ts.addCustomEvent=function(e,t){if(!ti)throw Error("please add custom event after start recording");tn(e4({type:z.Custom,data:{tag:e,payload:t}}))},ts.freezePage=function(){ec.forEach(function(e){return e.freeze()})},ts.takeFullSnapshot=function(e){if(!ti)throw Error("please take full snapshot after start recording");to(e)},ts.mirror=ta,ts}();function tY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tJ(e){return(tJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function t$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tQ(Object(n),!0).forEach(function(t){t1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t0(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t2(o.key),o)}}function t1(e,t,n){return(t=t2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(e){var t=function(e,t){if("object"!=tJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=tJ(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tJ(t)?t:String(t)}var t3=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),t1(this,"startDate",void 0),t1(this,"events",[]),t1(this,"bufferSize",0),t1(this,"stopFunction",void 0),t1(this,"customOptions",{})}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"setOptions",value:function(e){this.customOptions=e}},{key:"start",value:function(){this.stop(),this.startDate=Date.now();var e=this.events;try{this.stopFunction=tK(t$(t$(t$({},{inlineStylesheet:!0,blockClass:"gl-block",ignoreClass:"gl-ignore",maskTextClass:"gl-mask",dataURLOptions:{quality:.7},recordCanvas:!1,sampling:{scroll:150,mouseInteraction:{MouseUp:!1,MouseDown:!1,Click:!0,ContextMenu:!0,DblClick:!0,Focus:!0,Blur:!0,TouchStart:!0,TouchEnd:!1}},collectFonts:!1,recordCrossOriginIframes:!1}),this.customOptions),{},{emit:function(t){var n=function(e){var t=JSON.stringify(e);if(t.length>4e6){var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tY(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tY(e,void 0)}}(e))){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(o.s();!(n=o.n()).done;){var r=n.value;t="image/"===r[1].toLocaleLowerCase().slice(0,6)?t.replace(r[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(r[0],"")}}catch(e){o.e(e)}finally{o.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(e){console.error(e)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:b(),type:"rrweb"}}}],t0(n.prototype,e),t&&t0(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function t4(e){return(t4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function t5(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t7(o.key),o)}}function t9(e,t,n){return(t=t7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t7(e){var t=function(e,t){if("object"!=t4(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=t4(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==t4(t)?t:String(t)}t1(t3,"instance",void 0);var t6=function(){var e,t;function n(e){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),t9(this,"rerender",void 0),t9(this,"svgElement",null),t9(this,"path",null),t9(this,"strPath",void 0),t9(this,"strokeWidth",12),t9(this,"strokeWidthRect",6),t9(this,"bufferSize",4),t9(this,"buffer",[]),t9(this,"startPoint",null),t9(this,"tool","rect"),t9(this,"color","#EB144C"),t9(this,"mouseDown",null),t9(this,"mouseMove",null),t9(this,"mouseUp",null),t9(this,"resizeListener",null),t9(this,"pathBuffer",[]);var o=this;this.rerender=e,this.svgElement=document.querySelector(".bb-capture-svg"),this.svgElement.style.minHeight="".concat(document.documentElement.scrollHeight,"px"),this.resizeListener=function(e){o.svgElement.style.minHeight="".concat(document.documentElement.scrollHeight,"px")},window.addEventListener("resize",this.resizeListener,!0),this.mouseDown=function(e){e.preventDefault();var t=document.querySelector(".bb-capture-toolbar-item-colorpicker");t&&(t.style.display="none"),o.fadeOutToolbar(),"pen"!==o.tool&&"blur"!==o.tool||o.mouseDownPen(e),"rect"===o.tool&&o.mouseDownRect(e)},this.mouseMove=function(e){e.preventDefault(),"pen"!==o.tool&&"blur"!==o.tool||o.mouseMovePen(e),"rect"===o.tool&&o.mouseMoveRect(e)},this.mouseUp=function(e){e.preventDefault(),o.fadeInToolbar(),"pen"!==o.tool&&"blur"!==o.tool||o.mouseUpPen(e),"rect"===o.tool&&o.mouseUpRect(e)},this.svgElement.addEventListener("mousedown",this.mouseDown),this.svgElement.addEventListener("mousemove",this.mouseMove),this.svgElement.addEventListener("mouseup",this.mouseUp),this.svgElement.addEventListener("touchstart",this.mouseDown,!1),this.svgElement.addEventListener("touchmove",this.mouseMove,!1),this.svgElement.addEventListener("touchend",this.mouseUp,!1),setTimeout(function(){t.rerender()},100)}return e=[{key:"clear",value:function(){if(this.svgElement)for(;this.svgElement.firstChild;)this.svgElement.firstChild.remove()}},{key:"destroy",value:function(){this.svgElement.removeEventListener("mousedown",this.mouseDown),this.svgElement.removeEventListener("mousemove",this.mouseMove),this.svgElement.removeEventListener("mouseup",this.mouseUp),this.svgElement.removeEventListener("touchstart",this.mouseDown),this.svgElement.removeEventListener("touchmove",this.mouseMove),this.svgElement.removeEventListener("touchend",this.mouseUp),window.removeEventListener("resize",this.resizeListener)}},{key:"mouseUpPen",value:function(){this.path&&(this.path=null)}},{key:"mouseUpRect",value:function(){this.path&&(this.path=null)}},{key:"mouseMovePen",value:function(e){this.path&&(this.appendToBuffer(this.getMousePosition(e)),this.updateSvgPath())}},{key:"mouseMoveRect",value:function(e){if(this.path){var t=this.getMousePosition(e),n=Math.abs(t.x-this.startPoint.x),o=Math.abs(t.y-this.startPoint.y),r=t.x,i=t.y;t.x>this.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;o<t;o++)a++,r+=(n=this.buffer[o]).x,i+=n.y;return{x:r/a,y:i/a}}return null}},{key:"updateSvgPath",value:function(){var e=this.getAveragePoint(0);if(e){this.strPath+=" L"+e.x+" "+e.y;for(var t="",n=2;n<this.buffer.length;n+=2)t+=" L"+(e=this.getAveragePoint(n)).x+" "+e.y;this.path.setAttribute("d",this.strPath+t)}}},{key:"appendToBuffer",value:function(e){for(this.buffer.push(e);this.buffer.length>this.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],t5(n.prototype,e),t&&t5(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function t8(e){return(t8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nn(o.key),o)}}function nt(e,t,n){return(t=nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e){var t=function(e,t){if("object"!=t8(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=t8(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==t8(t)?t:String(t)}var no=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),nt(this,"keys",{37:1,38:1,39:1,40:1}
1),nt(this,"supportsPassive",!1),nt(this,"wheelOpt",!!this.supportsPassive&&{passive:!1}),nt(this,"wheelEvent","onwheel"in document.createElement("div")?"wheel":"mousewheel"),nt(this,"scrollDisabled",!1);var e=this;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e.supportsPassive=!0,e.wheelOpt=!!e.supportsPassive&&{passive:!1}}}))}catch(e){}}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}},{key:"disableScroll",value:function(){var e=this.getInstance();e.scrollDisabled||(e.scrollDisabled=!0,window.addEventListener("DOMMouseScroll",e.preventDefault,!1),window.addEventListener(e.wheelEvent,e.preventDefault,e.wheelOpt),window.addEventListener("touchmove",e.preventDefault,e.wheelOpt),window.addEventListener("keydown",e.preventDefaultForScrollKeys,!1))}},{key:"enableScroll",value:function(){var e=this.getInstance();e.scrollDisabled&&(e.scrollDisabled=!1,window.removeEventListener("DOMMouseScroll",e.preventDefault,!1),window.removeEventListener(e.wheelEvent,e.preventDefault,e.wheelOpt),window.removeEventListener("touchmove",e.preventDefault,e.wheelOpt),window.removeEventListener("keydown",e.preventDefaultForScrollKeys,!1))}}],e=[{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"preventDefaultForScrollKeys",value:function(e){if(this.keys&&this.keys[e.keyCode])return this.preventDefault(e),!1}}],ne(n.prototype,e),t&&ne(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function nr(e){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ni(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ns(o.key),o)}}function na(e,t,n){return(t=ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e){var t=function(e,t){if("object"!=nr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nr(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nr(t)?t:String(t)}nt(no,"instance",void 0);var nl=function(){var e,t;function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),na(this,"type","screenshot"),na(this,"dragCursor",null),na(this,"screenRecorder",null),na(this,"callback",null),na(this,"screenDrawer",null),na(this,"escListener",null),na(this,"pageLeaveListener",null),na(this,"overrideLanguage",ov.getInstance().overrideLanguage),na(this,"showNextStep",function(){this.showWidgetUI(),this.callback&&(ts.getInstance().sendMessage({name:"set-form-data",data:{formKey:"capture",data:{value:this.type,dirty:!0}}}),this.callback(!0))}),this.type=e}return e=[{key:"hideWidgetUI",value:function(){var e=document.querySelector(".bb-feedback-button");e&&(e.style.display="none");var t=document.querySelector(".bb-feedback-dialog-container");t&&(t.style.display="none")}},{key:"showWidgetUI",value:function(){"screenshot"===this.type&&no.enableScroll(),this.screenRecorder&&this.screenRecorder.stopScreenRecording(),this.unregisterListeners(),this.cleanupMousePointer(),this.screenDrawer&&this.screenDrawer.destroy();var e=document.querySelector(".bb-capture-toolbar");e&&e.remove();var t=document.querySelector(".bb-capture-svg");t&&t.classList.add("bb-capture-svg--preview");var n=document.querySelector(".bb-capture-preview");n&&n.remove();var o=document.querySelector(".bb-feedback-button");o&&(o.style.display="flex");var r=document.querySelector(".bb-feedback-dialog-container");r&&(r.style.display="block");var i=document.querySelector(".bb-capture-dismiss");i&&(i.style.display="none");var a=document.querySelector(".bb-capture-toolbar-item-colorpicker");a&&(a.style.display="none");var l=document.querySelector(".bb-capture-editor-borderlayer");l&&(l.style.display="none")}},{key:"clear",value:function(){var e=document.querySelector(".bb-capture-editor");e&&e.remove()}},{key:"setMouseMove",value:function(e,t){this.dragCursor&&(this.dragCursor.style.left="".concat(e+6,"px"),this.dragCursor.style.top="".concat(t-26,"px"),this.dragCursor.style.right=null)}},{key:"mouseMoveEventHandler",value:function(e){var t=e.clientX,n=e.clientY;this.setMouseMove(t,n)}},{key:"touchMoveEventHandler",value:function(e){var t=e.touches[0].clientX,n=e.touches[0].clientY;this.setMouseMove(t,n)}},{key:"setupMousePointer",value:function(){var e=this;
1this.dragCursor=document.querySelector(".bb-capture-editor-drag-info");var t=document.querySelector(".bb-capture-svg");t.addEventListener("mouseenter",function(t){e.dragCursor.style.opacity=1}),t.addEventListener("mouseleave",function(t){e.dragCursor.style.opacity=0}),document.documentElement.addEventListener("mousemove",this.mouseMoveEventHandler.bind(this)),document.documentElement.addEventListener("touchmove",this.touchMoveEventHandler.bind(this))}},{key:"cleanupMousePointer",value:function(){document.documentElement.removeEventListener("mousemove",this.mouseMoveEventHandler),document.documentElement.removeEventListener("touchmove",this.touchMoveEventHandler),this.dragCursor&&this.dragCursor.remove()}},{key:"createEditorUI",value:function(){var e=document.createElement("div");e.className="bb-capture-editor",e.innerHTML='\n <div class="bb-capture-editor-borderlayer"></div>\n <svg class="bb-capture-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xml:space="preserve"></svg>\n <div class="bb-capture-dismiss">'.concat(p("dismiss"),"</div>\n <div class='bb-capture-editor-drag-info'>").concat(p("rect"),'</div>\n <div class="bb-capture-toolbar">\n ').concat("capture"===this.type?'<div class="bb-capture-toolbar-item bb-capture-item-rec bb-capture-toolbar-item-recording" data-type="recording">\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n <span class="bb-tooltip bb-tooltip-screen-recording"></span>\n </div>\n <div class="bb-capture-toolbar-item bb-capture-item-rec" data-type="mic">\n ').concat(p("mic"),'\n <span class="bb-tooltip bb-tooltip-audio-recording"></span>\n </div>\n <div class="bb-capture-toolbar-item-timer bb-capture-item-rec">2:00</div>\n <div class="bb-capture-toolbar-item-spacer"></div>\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="pointer">\n ').concat(p("pointer"),"\n </div>"):"",'\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool bb-capture-toolbar-item--active" data-type="rect">\n ').concat(p("rect"),'\n </div>\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="pen">\n ').concat(p("pen"),'\n </div>\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="blur">\n ').concat(p("blur"),'\n </div>\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem" data-type="colorpicker">\n <div class="bb-capture-toolbar-item-selectedcolor"></div>\n <span class="bb-tooltip">').concat(nf.translateText("pickAColor"),'</span>\n </div>\n <div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="undo">\n ').concat(p("undo"),'\n <span class="bb-tooltip">').concat(nf.translateText("undo"),"</span>\n </div>\n ").concat("capture"!==this.type?'<div class="bb-capture-button-next">'.concat(nf.translateText("next"),"</div>"):"",'\n </div>\n <div class="bb-capture-toolbar-item-colorpicker">\n <div class="bb-capture-toolbar-item-color" data-color="#EB144C"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#FF6705"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#FDB903"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#9900EE"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#00D082"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#0A93E4"></div>\n <div class="bb-capture-toolbar-item-color" data-color="#CCCCCC"></div>\n </div>\n <div class="bb-capture-preview">\n <div class="bb-capture-preview-inner">\n <video controls muted autoplay></video>\n <div class="bb-capture-preview-buttons">\n <div class="bb-capture-preview-retrybutton">').concat(nf.translateText("retry"),'</div>\n <div class="bb-capture-preview-sendbutton">').concat(nf.translateText("next"),"</div>\n </div>\n </div>\n </div>\n "),document.body.appendChild(e),e.setAttribute("dir",nf.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ov.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),no.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new t6(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var e=this,t=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=0;i<o.length;i++)!function(){var a=o[i],l=a.getAttribute("data-color");a.style.backgroundColor=l,a.onclick=function(){a&&(e.screenDrawer.setColor(l),r&&(r.style.display="none"),t.style.backgroundColor=a.style.backgroundColor,n.setPenColor(l))}}()}},{key:"dismiss",value:function(){this.showWidgetUI(),this.callback&&this.callback(!1)}},{key:"setupToolbar",value:function(){var e=this;document.querySelector(".bb-capture-dismiss").onclick=function(){e.dismiss()};var t=document.querySelector(".bb-capture-button-next");t&&(t.onclick=this.showNextStep.bind(this));for(var n=document.querySelector(".bb-capture-toolbar-item-colorpicker"),o=document.querySelector(".bb-capture-svg"),r=function(t,n){for(var r=document.querySelectorAll(".bb-capture-toolbar-item-tool"),i=0;i<r.length;i++)r[i].classList.remove("bb-capture-toolbar-item--active");if(n.classList.add("bb-capture-toolbar-item--active"),e.screenDrawer.setTool(t),e.dragCursor.innerHTML="","pointer"===t)o.style.pointerEvents="none";else{o.style.pointerEvents="auto";
1try{var a=n.querySelector("svg").cloneNode(!0);a&&e.dragCursor&&e.dragCursor.appendChild(a)}catch(e){}}},i=document.querySelectorAll(".bb-capture-toolbar-item"),a=0;a<i.length;a++)!function(){var t=i[a];t.onclick=function(){var o=t.getAttribute("data-type");n&&"colorpicker"!==o&&(n.style.display="none"),"mic"===o&&e.screenRecorder.toggleAudio(),"recording"===o&&(e.screenRecorder.isRecording?e.screenRecorder.stopScreenRecording():(e.screenRecorder.startScreenRecording(),r("pointer",document.querySelector(".bb-capture-toolbar-item[data-type='pointer']")))),("capture"!==e.type||e.screenRecorder.isRecording)&&("pen"!==o&&"blur"!==o&&"rect"!==o&&"pointer"!==o||r(o,t),"colorpicker"===o&&("flex"===n.style.display?n.style.display="none":n.style.display="flex"),"undo"===o&&e.screenDrawer.removeLastAddedPathFromSvg())}}()}},{key:"captureScreenDrawerRerender",value:function(){if(this.screenDrawer)for(var e="bb-capture-editor-item-inactive",t=document.querySelectorAll(".bb-capture-toolbar-item"),n=0;n<t.length;n++){var o=t[n];"undo"===o.getAttribute("data-type")&&(null!=this.screenDrawer.pathBuffer&&this.screenDrawer.pathBuffer.length>0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ov.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",l="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(l)):(i.classList.add(l),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var u=0;u<n.length;u++){var p=n[u];switch(p.getAttribute("data-type")){case"mic":this.screenRecorder.audioAvailable&&this.screenRecorder.available?(p.classList.remove(e),this.screenRecorder.audioMuted?(p.classList.add("bb-capture-toolbar-item--inactivecross"),r.innerHTML=nf.translateText("unmute")):(p.classList.remove("bb-capture-toolbar-item--inactivecross"),r.innerHTML=nf.translateText("mute"))):(p.classList.add(e),p.classList.add("bb-capture-toolbar-item--inactivecross"),r.innerHTML=nf.translateText("browserNotSupported"));break;case"recording":this.screenRecorder.available?(p.classList.remove(e),this.screenRecorder.isRecording?(p.setAttribute("data-active","true"),o.innerHTML=nf.translateText("stopRecording"),t.style.display="block"):(p.setAttribute("data-active","false"),o.innerHTML=nf.translateText("startRecording"),t.style.display="none")):(p.classList.add(e),o.innerHTML=nf.translateText("browserNotSupported"))}}}}},{key:"setupScreenRecording",value:function(){var e=this;document.querySelector(".bb-capture-preview-sendbutton").onclick=this.showNextStep.bind(this),document.querySelector(".bb-capture-preview-retrybutton").onclick=function(){e.screenRecorder.clearPreview(),e.screenDrawer&&e.screenDrawer.clear()},this.screenRecorder=new e4(this.captureRenderer.bind(this),nf.translateText("accessToScreenSharingDenied"))}}],t=[{key:"setPenColor",value:function(e){for(var t=document.querySelectorAll(".bb-pen-tip"),n=0;n<t.length;n++)t[n].style.fill=e}}],e&&ni(n.prototype,e),t&&ni(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nd(o.key),o)}}
1function np(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nd(e){var t=function(e,t){if("object"!=nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nc(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nc(t)?t:String(t)}var nf=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),np(this,"overrideLanguage",""),np(this,"isRTLLayout",!1)}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}},{key:"translateText",value:function(e){if(!e)return"";var t=eq.getInstance().getFlowConfig().staticTranslations;return t&&t[e]?t[e]:e}}],e=[{key:"getOverrideLanguage",value:function(){return this.overrideLanguage}},{key:"setOverrideLanguage",value:function(e){this.overrideLanguage=e}},{key:"updateRTLSupport",value:function(){var e=eq.getInstance().getFlowConfig();this.isRTLLayout=!1,e&&e.localizationOptions&&e.localizationOptions.rtl&&(this.isRTLLayout=!0),r.getInstance().updateFeedbackButtonState(),ts.getInstance().updateFrameStyle()}},{key:"getActiveLanguage",value:function(){var e="en";return"undefined"!=typeof navigator&&(e=navigator.language.toLowerCase()),this.overrideLanguage&&""!==this.overrideLanguage&&(e=this.overrideLanguage.toLowerCase()),e}}],nu(n.prototype,e),t&&nu(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function nh(e){return(nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ng(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nv(o.key),o)}}function nm(e,t,n){return(t=nv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nv(e){var t=function(e,t){if("object"!=nh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nh(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nh(t)?t:String(t)}np(nf,"instance",void 0);var nb=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),nm(this,"shortCutListener",void 0)}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"start",value:function(){this.shortCutListener||(this.shortCutListener=document.addEventListener("keyup",function(e){var t,n=(void 0!==e.ke
1y?t=e.key:void 0!==e.keyIdentifier?t=e.keyIdentifier:void 0!==e.keyCode&&(t=e.keyCode),t);e.ctrlKey&&("u"===n||"U"===n||85===n)&&ov.startFeedbackFlowWithOptions("bugreporting",{autostartDrawing:!0})}))}},{key:"stop",value:function(){this.shortCutListener&&(document.removeEventListener("keyup",this.shortCutListener),this.shortCutListener=void 0)}}],ng(n.prototype,e),t&&ng(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function ny(e){return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nw(e,t,n){return(t=nx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nx(e){var t=function(e,t){if("object"!=ny(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ny(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ny(t)?t:String(t)}nm(nb,"instance",void 0);var nk=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),nw(this,"formPreFill",{})}return e=[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nx(o.key),o)}}(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function nS(e){return(nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nC(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nL(o.key),o)}}function nI(e,t,n){return(t=nL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nL(e){var t=function(e,t){if("object"!=nS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nS(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nS(t)?t:String(t)}nw(nk,"instance",void 0);var nT=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),nI(this,"notificationContainer",null),nI(this,"notifications",[]),nI(this,"unreadCount",0),nI(this,"unreadNotificationsKey","unread-notifications"),nI(this,"isTabActive",!0),nI(this,"showNotificationBadge",!0)}return e=[{key:"updateTabBarNotificationCount",value:function(){tN.notifyEvent("unread-count-changed",this.unreadCount)}},{key:"injectNotificationUI",value:function(){if(!this.notificationContainer){var e=document.createElement("div");e.className="gleap-notification-container gleap-font",document.body.appendChild(e),this.notificationContainer=e,this.updateContainerStyle(),this.reloadNotificationsFromCache()}}},{key:"reloadNotificationsFromCache",value:function(){var e=k(this.unreadNotificationsKey);e&&e.length>0&&(e.length>2?this.notifications=e.splice(0,e.length-2):this.notifications=e,this.renderNotifications())}},{key:"setNotificationCount",value:function(e){ts.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),r.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find(function(t){return e.outbound===t.outbound})||(this.notifications.push(e),e.sound&&nB.ping()),this.notifications.length>2&&this.notifications.shift(),S(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");
1t.onclick=function(){e.clearAllNotifications()},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);for(var n,o,r=0;r<this.notifications.length;r++)!function(){var t=e.notifications[r];n=(n=t.data.text).replaceAll("{{name}}",eM.getInstance().getName());var i=document.createElement("div");i.onclick=function(){t.data.conversation?ov.openConversation(t.data.conversation.shareToken):t.data.news?ov.openNewsArticle(t.data.news.id):t.data.checklist?ov.openChecklist(t.data.checklist.id):ov.open()},t.data.news?(i.className="gleap-notification-item-news",i.innerHTML='\n <div class="gleap-notification-item-news-container">\n '.concat(t.data.coverImageUrl&&""!==t.data.coverImageUrl&&!t.data.coverImageUrl.includes("NewsImagePlaceholder")?'<img class="gleap-notification-item-news-image" src="'.concat(t.data.coverImageUrl,'" />'):"",'\n <div class="gleap-notification-item-news-content">\n <div class="gleap-notification-item-news-content-title">').concat(n,"</div>\n ").concat(t.data.previewText&&t.data.previewText.length>0?'<div class="gleap-notification-item-news-preview">'.concat(t.data.previewText,"</div>"):"".concat(t.data.sender?'\n <div class="gleap-notification-item-news-sender">\n '.concat(t.data.sender.profileImageUrl&&'<img src="'.concat(t.data.sender.profileImageUrl,'" />')," ").concat(t.data.sender.name,"</div>"):""),"\n </div>\n </div>")):t.data.checklist?((o=Math.round(t.data.currentStep/t.data.totalSteps*100))<100&&(o+=4),i.className="gleap-notification-item-checklist",i.innerHTML='\n <div class="gleap-notification-item-checklist-container">\n <div class="gleap-notification-item-checklist-content">\n <div class="gleap-notification-item-checklist-content-title">'.concat(t.data.text,'</div>\n <div class="gleap-notification-item-checklist-content-progress">\n <div class="gleap-notification-item-checklist-content-progress-inner" style="width: ').concat(o,'%;"></div>\n </div>\n <div class="gleap-notification-item-checklist-content-next">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M4 12H20M20 12L14 6M20 12L14 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ').concat(t.data.nextStepTitle,"\n </div>\n </div>\n </div>")):(i.className="gleap-notification-item",i.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&'<img src="'.concat(t.data.sender.profileImageUrl,'" />'),'\n <div class="gleap-notification-item-container">\n ').concat(t.data.sender?'<div class="gleap-notification-item-sender">'.concat(t.data.sender.name,"</div>"):"",'\n <div class="gleap-notification-item-content">').concat(n,"</div>\n </div>")),e.notificationContainer.appendChild(i)}()}}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],S(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=eq.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==r.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==r.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===r.getInstance().buttonHidden?e.feedbackButtonPosition===r.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):r.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",nf.getInstance().isRTLLayout?"rtl":"ltr")}}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&nC(n.prototype,e),t&&nC(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function nE(e){return(nE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?nO(Object(n),!0).forEach(function(t){nP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nA(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nR(o.key),o)}}function nP(e,t,n){return(t=nR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nR(e){var t=function(e,t){if("object"!=nE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nE(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nE(t)?t:String(t)}nI(nT,"instance",void 0);var nN=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),nP(this,"bannerUrl","https://outboundmedia.gleap.io"),nP(this,"bannerContainer",null),nP(this,"bannerData",null),this.startCommunication()}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"setBannerUrl",value:function(e){this.bannerUrl=e}},{key:"startCommunication",value:function(){var e=this;window.addEventListener("message",function(t){if(t.origin===e.bannerUrl)try{var n,o,r,i,a,l,c,u,p=JSON.parse(t.data);"banner-loaded"===p.name&&e.bannerData&&e.sendMessage({name:"banner-data",data:e.bannerData}),"banner-height"===p.name&&document.documentElement.style.setProperty("--gleap-margin-top",p.data.height+"px"),"banner-data-set"===p.name&&(document.body.classList.add("gleap-b-shown"),"floating"===(null==(n=e.bannerData)?void 0:n.format)&&document.body.classList.add("gleap-b-f")),"banner-close"===p.name&&e.removeBannerUI(),"start-conversation"===p.name&&ov.startBot(null==(o=p.data)?void 0:o.botId),"start-custom-action"===p.name&&ov.triggerCustomAction(null==(r=p.data)?void 0:r.action),"show-form"===p.name&&ov.startFeedbackFlow(null==(i=p.data)?void 0:i.formId),"show-survey"===p.name&&ov.showSurvey(null==(a=p.data)?void 0:a.formId,null==(l=p.data)?void 0:l.surveyFormat),"show-news-article"===p.name&&ov.openNewsArticle(null==(c=p.data)?void 0:c.articleId),"show-help-article"===p.name&&ov.openHelpCenterArticle(null==(u=p.data)?void 0:u.articleId)}catch(e){}})}},{key:"removeBannerUI",value:function(){this.bannerContainer&&(document.body.removeChild(this.bannerContainer),this.bannerContainer=null),document.body.classList.remove("gleap-b-shown"),document.body.classList.remove("gleap-b-f")}},{key:"injectBannerUI",value:function(e){if(this.bannerContainer||!document.body)return!1;this.bannerData=e;var t=document.createElement("div");t.className="gleap-b",t.innerHTML='<iframe src="'.concat(this.bannerUrl,'" class="gleap-b-frame" scrolling="no" title="Gleap Banner" role="dialog" frameborder="0"></iframe>'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(nM(nM({},e),{},{type:"banner"})),"*")}catch(e){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}],nA(n.prototype,e),t&&nA(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function nD(e){return(nD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nj(e,t,n){return(t=nF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nF(e){var t=function(e,t){if("object"!=nD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nD(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nD(t)?t:String(t)}nP(nN,"instance",void 0);
1var nB=function(){function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")}return function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nF(o.key),o)}}(e,[{key:"playSound",value:function(e){this.settings.play=e}},{key:"ping",value:function(){try{if(!this.settings.play)return;this.audio||(this.audio=new Audio("https://js.gleap.io/res/ping.mp3"));var e=this.audio.play();void 0!==e&&e.then(function(e){}).catch(function(e){})}catch(e){}}}]),Object.defineProperty(e,"prototype",{writable:!1}),e}();function n_(e){return(n_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nH(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nU(o.key),o)}}function nq(e,t,n){return(t=nU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nU(e){var t=function(e,t){if("object"!=n_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=n_(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n_(t)?t:String(t)}nj(nB,"audio",void 0),nj(nB,"settings",{play:!0});var nz=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),nq(this,"tags",[])}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"getTags",value:function(){return this.tags}},{key:"setTags",value:function(e){this.tags=e}}],nH(n.prototype,e),t&&nH(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();nq(nz,"instance",void 0);class nW{constructor(e){var t,n,o,r,i,a,l,c,u,p,d;this.overlay=document.createElement("div"),this.overlay.className=e.className||"_ext-element-overlay",this.overlay.style.background=(null==(t=e.style)?void 0:t.background)||"rgba(250, 240, 202, 0.2)",this.overlay.style.borderColor=(null==(n=e.style)?void 0:n.borderColor)||"#F95738",this.overlay.style.borderStyle=(null==(o=e.style)?void 0:o.borderStyle)||"solid",this.overlay.style.borderRadius=(null==(r=e.style)?void 0:r.borderRadius)||"1px",this.overlay.style.borderWidth=(null==(i=e.style)?void 0:i.borderWidth)||"1px",this.overlay.style.boxSizing=(null==(a=e.style)?void 0:a.boxSizing)||"border-box",this.overlay.style.cursor=(null==(l=e.style)?void 0:l.cursor)||"crosshair",this.overlay.style.position=(null==(c=e.style)?void 0:c.position)||"absolute",this.overlay.style.zIndex=(null==(u=e.style)?void 0:u.zIndex)||"2147483647",this.overlay.style.margin=(null==(p=e.style)?void 0:p.margin)||"0px",this.overlay.style.padding=(null==(d=e.style)?void 0:d.padding)||"0px",this.shadowContainer=document.createElement("div"),this.shadowContainer.className="_ext-element-overlay-container",this.shadowContainer.style.position="absolute",this.shadowContainer.style.top="0px",this.shadowContainer.style.left="0px",this.shadowContainer.style.margin="0px",this.shadowContainer.style.padding="0px",this.shadowRoot=this.shadowContainer.attachShadow({mode:"open"})}addToDOM(e,t){this.usingShadowDOM=t,t?(e.insertBefore(this.shadowContainer,e.firstChild),this.shadowRoot.appendChild(this.overlay)):e.appendChild(this.overlay)}removeFromDOM(){this.setBounds({x:0,y:0,width:0,height:0}),this.overlay.remove(),this.usingShadowDOM&&this.shadowContainer.remove()}captureCursor(){this.overlay.style.pointerEvents="auto"}ignoreCursor(){this.overlay.style.pointerEvents="none"}setBounds({x:e,y:t,width:n,height:o}){this.overlay.style.left=e+"px",this.overlay.style.top=t+"px",this.overlay.style.width=n+"px",this.overlay.style.height=o+"px"}}class nG{constructor(e){this.handleMouseMove=e=>{this.mouseX=e.clientX,this.mouseY=e.clientY},this.handleClick=e=>{var t;this.target&&(null==(t=this.options)?void 0:t.onClick)&&this.options.onClick(this.target),e.preventDefault()},this.tick=()=>{this.updateTarget(),this.tickReq=window.requestAnimationFrame(this.tick)},this.active=!1,this.overlay=new nW(null!=e?e:{})}start(e){var t,n;return!this.active&&(this.active=!0,this.options=e,document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("click",this.handleClick,!0),this.overlay.addToDOM(null!=(t=e.parentElement)?t:document.body,null==(n=e.useShadowDOM)||n),this.tick(),!0)}stop(){this.active=!1,this.options=void 0,document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("click",this.handleClick,!0),this.overlay.removeFromDOM(),this.target=void 0,this.mouseX=void 0,this.mouseY=void 0,this.tickReq&&window.cancelAnimationFrame(this.tickReq)}updateTarget(){var e,t;if(void 0===this.mouseX||void 0===this.mouseY)return;
1this.overlay.ignoreCursor();let n=document.elementFromPoint(this.mouseX,this.mouseY);if(this.overlay.captureCursor(),!n||n===this.target)return;if((null==(e=this.options)?void 0:e.elementFilter)&&!this.options.elementFilter(n))return this.target=void 0,void this.overlay.setBounds({x:0,y:0,width:0,height:0});this.target=n;let o=(e=>{let t=e.getBoundingClientRect();return{x:window.pageXOffset+t.left,y:window.pageYOffset+t.top,width:e.offsetWidth,height:e.offsetHeight}})(n);this.overlay.setBounds(o),(null==(t=this.options)?void 0:t.onHover)&&this.options.onHover(n)}}var nV=i(924);function nX(e){return(nX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nZ(e,t,n){return(t=nK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nK(e){var t=function(e,t){if("object"!=nX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nX(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nX(t)?t:String(t)}let nY=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),nZ(this,"picker",null),nZ(this,"onElementPicked",null),nZ(this,"stopPicker",function(){if(t.picker)return t.picker.stop(),void(t.picker=null)}),nZ(this,"startPicker",function(){t.stopPicker(),t.picker=new nG({style:{borderColor:"#2142E7",background:"transparent",borderWidth:"4px",borderRadius:"5px"}}),t.picker.start({useShadowDOM:!1,onClick:function(e){try{var n=(0,nV.A)(e);t.onElementPicked&&t.onElementPicked(n)}catch(e){console.error("Error while getting unique selector",e)}},elementFilter:function(e){return!e.classList.contains("gleap-admin-collapse-ui")&&!e.closest(".gleap-admin-collapse-ui")}})}),nZ(this,"setMode",function(e){t.mode=e,"navigate"===e&&t.stopPicker(),"picker"===e&&t.startPicker()})});function nJ(e){return(nJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function n$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nQ(Object(n),!0).forEach(function(t){n1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n0(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n2(o.key),o)}}function n1(e,t,n){return(t=n2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n2(e){var t=function(e,t){if("object"!=nJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nJ(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nJ(t)?t:String(t)}var n3=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),n1(this,"libraryInstance",null),n1(this,"lastUrl",void 0),n1(this,"injectedFrame",!1),n1(this,"gleapFrameContainer",null),n1(this,"gleapCollapseUI",null),n1(this,"injectedCollapseUI",!1),n1(this,"gleapFrame",null),n1(this,"configData",null),n1(this,"adminHelper",null),n1(this,"status","navigate"),n1(this,"toggleCollapseUI",function(){var t="gleap-admin-collapse-ui-active",n="gleap-admin-frame-container-active",o=function(e,t){return e&&e.classList.contains(t)};(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])||o(e.gleapCollapseUI,t)&&o(e.gleapFrameContainer,n))&&(e.gleapCollapseUI&&e.gleapCollapseUI.classList.toggle(t),e.gleapFrameContainer&&e.gleapFrameContainer.classList.toggle(n))}),n1(this,"injectCollapseUI",function(){if(!e.injectedCollapseUI){e.injectedCollapseUI=!0;var t=document.createElement("div");t.className="gleap-admin-collapse-ui",t.innerHTML='<div class="gleap-admin-collapse-ui-icon">\n '.concat(p("arrowdown"),"\n </div>"),document.body.appendChild(t),e.gleapCollapseUI=t,t.addEventListener("click",function(){e.toggleCollapseUI()})}}),n1(this,"injectFrame",function(){var t;if(!e.injectedFrame){e.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML='<iframe src="https://app.gleap.io/'.concat("tooltips"===(null==e||null==(t=e.configData)?void 0:t.type)?"tooltipbuilder":"producttourbuilder",'" class="gleap-admin-frame" scrolling="no" title="Gleap Admin Window" allow="autoplay; encrypted-media; fullscreen;" frameborder="0"></iframe>'),document.body.appendChild(n),e.gleapFrameContainer=n,e.gleapFrame=document.querySelector(".gleap-admin-frame")}})}return t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval(function(){e.logCurrentPage()},1e3)}},{key:"initAdminHelper",value:function(){var e=this;e.adminHelper=new nY;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(e){console.log(e)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",function(n){if(n.origin&&(n.origin,1))try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:t.configData}),"smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(e){console.log(e)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(e){}}),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(n$(n$({},e),{},{type:"admin"})),"*")}catch(e){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(n$(n$({},e),{},{type:"tourbuilder"})),"*")}catch(e){}}}],n0(n.prototype,e),t&&n0(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function n4(e){return(n4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n5(e){return function(e){if(Array.isArray(e))return n9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n9(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n9(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function n7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function n6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?n7(Object(n),!0).forEach(function(t){!function(e,t,n){var o;o=function(e,t){if("object"!=n4(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=n4(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==n4(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n1(n3,"instance",void 0);var n8=function(){var e={};function t(){e=n6({animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(n5(n?[e]:[]),o)}).filter(function(e){return"none"!==getComputedStyle(e).pointerEvents&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)})}function i(e){if(e&&!((t=e.getBoundingClientRect()).top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))){var t,o=n("smoothScroll");e.scrollIntoView({behavior:!o||function(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}(e)?"auto":"smooth",inline:"center",block:"center"})}}var a={};function l(e){return e?a[e]:a}var c={};function u(e){var t;null==(t=c[e])||t.call(c)}function p(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};a.__activeStagePosition=n,d(n)}}function d(e){var t,o,r,i,c=l("__overlaySvg");if(c){var p=c.firstElementChild;if("path"!==(null==p?void 0:p.tagName))throw Error("no path element found in stage svg");p.setAttribute("d",f(e))}else t=window.innerWidth,o=window.innerHeight,(r=document.createElementNS("http://www.w3.org/2000/svg","svg")).classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%",(i=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttribute("d",f(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),document.body.appendChild(r),y(r,function(e){"path"===e.target.tagName&&u("overlayClick")}),a.__overlaySvg=r}function f(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,l=e.height+2*r,c=Math.floor(Math.max(Math.min(i,a/2,l/2),0)),u=e.x-r+c,p=e.y-r,d=a-2*c,f=l-2*c;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(p," h").concat(d," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",").concat(c," v").concat(f," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",").concat(c," h-").concat(d," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",-").concat(c," v-").concat(f," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",-").concat(c," z")}function h(e){var t,r,c,u,f,g,m,v,b,y,k,S,C,I,L,T,E,O,M,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,P=e.element,R="string"==typeof P?document.querySelector(P):P;P&&!R&&A>=0?setTimeout(function(){w(),h(e,A-100)},100):(R||(R=function(){var e=document.getElementById("gleap-tour-dummy-element");
1if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),t=R,u=Date.now(),f=l("__activeStep"),m=!(g=l("__activeElement")||t)||g===t,v="gleap-tour-dummy-element"===t.id,b="gleap-tour-dummy-element"===g.id,y=n("animate"),k=e.onHighlightStarted||n("onHighlightStarted"),S=(null==e?void 0:e.onHighlighted)||n("onHighlighted"),C=(null==f?void 0:f.onDeselected)||n("onDeselected"),I=n(),L=l(),!m&&C&&C(b?void 0:g,f,{config:I,state:L}),k&&k(v?void 0:t,e,{config:I,state:L}),T=!m&&y,E=!1,w(),a.previousStep=f,a.previousElement=g,a.activeStep=e,a.activeElement=t,M=O=function r(){if(l("__transitionCallback")===r){var i,c,h,m,b=Date.now()-u,y=400-b<=200;e.popover&&y&&!E&&T&&(x(t,e),E=!0),n("animate")&&b<400?(c=(i=l("__activeStagePosition"))||g.getBoundingClientRect(),h=t.getBoundingClientRect(),d(i={x:o(b,c.x,h.x-c.x,400),y:o(b,c.y,h.y-c.y,400),width:o(b,c.width,h.width-c.width,400),height:o(b,c.height,h.height-c.height,400)}),m=i,a.__activeStagePosition=m):(p(t),S&&S(v?void 0:t,e,{config:n(),state:l()}),a.__transitionCallback=void 0,a.__previousStep=f,a.__previousElement=g,a.__activeStep=e,a.__activeElement=t),window.requestAnimationFrame(r)}},a.__transitionCallback=M,window.requestAnimationFrame(O),i(t),!T&&e.popover&&x(t,e),g.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),g.removeAttribute("aria-haspopup"),g.removeAttribute("aria-expanded"),g.removeAttribute("aria-controls"),null!=(r=null!=(c=e.disableActiveInteraction)?c:n("disableActiveInteraction"))&&r&&t.classList.add("gleap-tour-no-interaction"),t.classList.add("gleap-tour-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","gleap-tour-popover-content"))}function g(){var e=l("__activeElement"),t=l("__activeStep");e&&(p(e),function(){var e=l("__activeStagePosition"),t=l("__overlaySvg");if(e)if(t){var n=window.innerWidth,o=window.innerHeight;t.setAttribute("viewBox","0 0 ".concat(n," ").concat(o))}else console.warn("No stage svg found.")}(),I(e,t))}function m(){var e,t=l("__resizeTimeout");t&&window.cancelAnimationFrame(t),e=window.requestAnimationFrame(g),a.__resizeTimeout=e}function v(e){var t;if(l("isInitialized")&&("Tab"===e.key||9===e.keyCode)){var n=l("__activeElement"),o=null==(t=l("popover"))?void 0:t.wrapper,i=r([].concat(n5(o?[o]:[]),n5(n?[n]:[]))),a=i[0],c=i[i.length-1];if(e.preventDefault(),e.shiftKey){var u=i[i.indexOf(document.activeElement)-1]||c;null==u||u.focus()}else{var p=i[i.indexOf(document.activeElement)+1]||a;null==p||p.focus()}}}function b(e){var t;(null==(t=n("allowKeyboardControl"))||t)&&("Escape"===e.key?u("escapePress"):"ArrowRight"===e.key?u("arrowRightPress"):"ArrowLeft"===e.key&&u("arrowLeftPress"))}function y(e,t,n){var o=function(t,o){var r=t.target;e.contains(r)&&(n&&!n(r)||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),null==o||o(t))};document.addEventListener("pointerdown",o,!0),document.addEventListener("mousedown",o,!0),document.addEventListener("pointerup",o,!0),document.addEventListener("mouseup",o,!0),document.addEventListener("click",function(e){o(e,t)},!0)}function w(){var e=l("popover");e&&(e.wrapper.style.display="none")}function x(e,t){var o,c,p,d,f,h,g,m,v,b,w,x,k,S=l("popover");S&&document.body.removeChild(S.wrapper),(o=document.createElement("div")).classList.add("gleap-tour-popover"),(c=document.createElement("div")).classList.add("gleap-tour-popover-arrow"),(p=document.createElement("header")).id="gleap-tour-popover-title",p.classList.add("gleap-tour-popover-title"),p.style.display="none",p.innerText="Popover Title",(d=document.createElement("div")).id="gleap-tour-popover-description",d.classList.add("gleap-tour-popover-description"),d.style.display="none",d.innerText="Popover description is here",(f=document.createElement("button")).type="button",f.classList.add("gleap-tour-popover-close-btn"),f.setAttribute("aria-label","Close"),f.innerHTML="×",(h=document.createElement("footer")).classList.add("gleap-tour-popover-footer"),(g=document.createElement("span")).classList.add("gleap-tour-popover-progress-text"),g.innerText="",(m=document.createElement("span")).classList.add("gleap-tour-popover-navigation-btns"),(v=document.createElement("button")).type="button",v.classList.add("gleap-tour-popover-prev-btn"),v.innerHTML="← Previous",(b=document.createElement("button")).type="button",b.classList.add("gleap-tour-popover-next-btn"),b.innerHTML="Next →",m.appendChild(v),m.appendChild(b),h.appendChild(g),h.appendChild(m),o.appendChild(f),o.appendChild(c),o.appendChild(p),o.appendChild(d),o.appendChild(h),S={wrapper:o,arrow:c,title:p,description:d,footer:h,previousButton:v,nextButton:b,closeButton:f,footerButtons:m,progress:g},document.body.appendChild(S.wrapper);var C=t.popover||{},L=C.title,T=C.description,E=C.showButtons,O=C.disableButtons,M=C.showProgress,A=C.nextBtnText,P=void 0===A?n("nextBtnText")||"Next":A,R=C.prevBtnText,N=void 0===R?n("prevBtnText")||"Previous":R,D=C.progressText,j=void 0===D?n("progressText")||"{current} of {total}":D;S.nextButton.innerHTML=P,S.previousButton.innerHTML=N,S.progress.innerHTML=j,L?(S.title.innerHTML=L,S.title.style.display="block"):S.title.style.display="none",T?(S.description.innerHTML=T,S.description.style.display="block"):S.description.style.display="none";var F=E||n("showButtons"),B=M||n("showProgress")||!1,_=(null==F?void 0:F.includes("next"))||(null==F?void 0:F.includes("previous"))||B;S.closeButton.style.display=F.includes("close")?"block":"none",_?(S.footer.style.display="flex",S.progress.style.display=B?"block":"none",S.nextButton.style.display=F.includes("next")?"block":"none",S.previousButton.style.display=F.includes("previous")?"block":"none"):S.footer.style.display="none";var H=O||n("disableButtons")||[];(null==H?void 0:H.includes("next"))&&(S.nextButton.disabled=!0,S.nextButton.classList.add("gleap-tour-popover-btn-disabled")),(null==H?void 0:H.includes("previous"))&&(S.previousButton.disabled=!0,S.previousButton.classList.add("gleap-tour-popover-btn-disabled")),(null==H?void 0:H.includes("close"))&&(S.closeButton.disabled=!0,S.closeButton.classList.add("gleap-tour-popover-btn-disabled"));var q=S.wrapper;q.style.display="block",q.style.left="",q.style.top="",q.style.bottom="",q.style.right="",q.id="gleap-tour-popover-content",q.setAttribute("role","dialog"),q.setAttribute("aria-labelledby","gleap-tour-popover-title"),q.setAttribute("aria-describedby","gleap-tour-popover-description"),S.arrow.className="gleap-tour-popover-arrow";var U=(null==(x=t.popover)?void 0:x.popoverClass)||n("popoverClass")||"";q.className="gleap-tour-popover ".concat(U).trim(),y(S.wrapper,function(o){var r,i,a,c=o.target,p=(null==(r=t.popover)?void 0:r.onNextClick)||n("onNextClick"),d=(null==(i=t.popover)?void 0:i.onPrevClick)||n("onPrevClick"),f=(null==(a=t.popover)?void 0:a.onCloseClick)||n("onCloseClick");return c.classList.contains("gleap-tour-popover-next-btn")?p?p(e,t,{config:n(),state:l()}):u("nextClick"):c.classList.contains("gleap-tour-popover-prev-btn")?d?d(e,t,{config:n(),state:l()}):u("prevClick"):c.classList.contains("gleap-tour-popover-close-btn")?f?f(e,t,{config:n(),state:l()}):u("closeClick"):void 0},function(e){return!(null==S?void 0:S.description.contains(e))&&!(null==S?void 0:S.title.contains(e))&&"string"==typeof e.className&&e.className.includes("gleap-tour-popover")}),w=S,a.popover=w;
1var z=(null==(k=t.popover)?void 0:k.onPopoverRender)||n("onPopoverRender");z&&z(S,{config:n(),state:l()}),I(e,t),i(q);var W=r([q].concat(n5(e.classList.contains("gleap-tour-dummy-element")?[]:[e])));W.length>0&&W[0].focus()}function k(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function S(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function C(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function I(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=r.side,c=void 0===i?"start":i,u="gleap-tour-dummy-element"===e.id?"over":void 0===a?"left":a,p=n("stagePadding")||0,d=k(),f=o.arrow.getBoundingClientRect(),h=e.getBoundingClientRect(),g=h.top-d.height,m=g>=0,v=window.innerHeight-(h.bottom+d.height),b=v>=0,y=h.left-d.width,w=y>=0,x=window.innerWidth-(h.right+d.width),I=x>=0,L=!(m||b||w||I),T=u;if("top"===u&&m?I=w=b=!1:"bottom"===u&&b?I=w=m=!1:"left"===u&&w?I=m=b=!1:"right"===u&&I&&(w=m=b=!1),"over"===u){var E=window.innerWidth/2-d.realWidth/2,O=window.innerHeight/2-d.realHeight/2;o.wrapper.style.left="".concat(E,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(O,"px"),o.wrapper.style.bottom="auto"}else if(L){var M=window.innerWidth/2-(null==d?void 0:d.realWidth)/2;o.wrapper.style.left="".concat(M,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(w){var A=Math.min(y,window.innerWidth-(null==d?void 0:d.realWidth)-f.width),P=S(c,{elementDimensions:h,popoverDimensions:d,popoverPadding:p,popoverArrowDimensions:f});o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.top="".concat(P,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",T="left"}else if(I){var R=Math.min(x,window.innerWidth-(null==d?void 0:d.realWidth)-f.width),N=S(c,{elementDimensions:h,popoverDimensions:d,popoverPadding:p,popoverArrowDimensions:f});o.wrapper.style.right="".concat(R,"px"),o.wrapper.style.top="".concat(N,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",T="right"}else if(m){var D=Math.min(g,window.innerHeight-d.realHeight-f.width),j=C(c,{elementDimensions:h,popoverDimensions:d,popoverPadding:p,popoverArrowDimensions:f});o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.left="".concat(j,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",T="top"}else if(b){var F=Math.min(v,window.innerHeight-(null==d?void 0:d.realHeight)-f.width),B=C(c,{elementDimensions:h,popoverDimensions:d,popoverPadding:p,popoverArrowDimensions:f});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(F,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",T="bottom"}L?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(o){var r=n.getBoundingClientRect(),i=k(),a=o.arrow,c=i.width,u=window.innerWidth,p=r.width,d=r.left,f=i.height,h=window.innerHeight,g=r.top,m=r.height;a.className="gleap-tour-popover-arrow";var v=t,b=e;"top"===t?(d+p<=0?(v="right",b="end"):d+p-c<=0&&(v="top",b="start"),d>=u?(v="left",b="end"):d+c>=u&&(v="top",b="end")):"bottom"===t?(d+p<=0?(v="right",b="start"):d+p-c<=0&&(v="bottom",b="start"),d>=u?(v="left",b="start"):d+c>=u&&(v="bottom",b="end")):"left"===t?(g+m<=0?(v="bottom",b="end"):g+m-f<=0&&(v="left",b="start"),g>=h?(v="top",b="end"):g+f>=h&&(v="left",b="end")):"right"===t&&(g+m<=0?(v="bottom",b="start"):g+m-f<=0&&(v="right",b="start"),g>=h?(v="top",b="start"):g+f>=h&&(v="right",b="end")),v?(a.classList.add("gleap-tour-popover-arrow-side-".concat(v)),a.classList.add("gleap-tour-popover-arrow-align-".concat(b))):a.classList.add("gleap-tour-popover-arrow-none")}}(c,T,e)}}return function(){function e(){n("allowClose")&&f()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?d(o):f()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?d(o):f()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");
1if(void 0!==t&&void 0!==o&&void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function u(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if(void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function p(){l("isInitialized")||(a.isInitialized=!0,document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",b,!1),window.addEventListener("keydown",v,!1),window.addEventListener("resize",m),window.addEventListener("scroll",m),c.overlayClick=e,c.escapePress=e,c.arrowLeftPress=i,c.arrowRightPress=u)}function d(){var e,t,o,r,i,l,c,u,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,g=n("steps");if(!g)return console.error("No steps to drive through"),void f();if(g[p]){m=document.activeElement,a.__activeOnDestroyed=m,a.activeIndex=p;var m,v=g[p],b=g[p+1],y=g[p-1],w=(null==(e=v.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",x=n("allowClose"),k=void 0!==(null==(t=v.popover)?void 0:t.showProgress)?null==(o=v.popover)?void 0:o.showProgress:n("showProgress"),S=((null==(r=v.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(p+1)).replace("{{total}}","".concat(g.length)),C=(null==(i=v.popover)?void 0:i.showButtons)||n("showButtons"),I=["next","previous"].concat(n5(x?["close"]:[])).filter(function(e){return!(null==C?void 0:C.length)||C.includes(e)}),L=(null==(l=v.popover)?void 0:l.onNextClick)||n("onNextClick"),T=(null==(c=v.popover)?void 0:c.onPrevClick)||n("onPrevClick"),E=(null==(u=v.popover)?void 0:u.onCloseClick)||n("onCloseClick");h(n6(n6({},v),{},{popover:n6({showButtons:I,nextBtnText:b?void 0:w,disableButtons:n5(y?[]:["previous"]),showProgress:k,progressText:S,onNextClick:L||function(){b?d(p+1):f()},onPrevClick:T||function(){d(p-1)},onCloseClick:E||function(){f()}},(null==v?void 0:v.popover)||{})}))}else f()}function f(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i)i(t&&"gleap-tour-dummy-element"!==(null==t?void 0:t.id)?t:void 0,o,{config:n(),state:l()});else{var u,p,d,f,h=(null==o?void 0:o.onDeselected)||n("onDeselected"),g=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",b),window.removeEventListener("resize",m),window.removeEventListener("scroll",m),(d=l("popover"))&&(null==(p=d.wrapper.parentElement)||p.removeChild(d.wrapper)),null==(u=document.getElementById("gleap-tour-dummy-element"))||u.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach(function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}),(f=l("__overlaySvg"))&&f.remove(),c={},a={},t&&o){var v="gleap-tour-dummy-element"===t.id;h&&h(v?void 0:t,o,{config:n(),state:l()}),g&&g(v?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:m,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;p(),d(e)},setConfig:t,setSteps:function(e){a={},t(n6(n6({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?d(e):f()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){p(),h(n6(n6({},e),{},{popover:e.popover?n6({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){f(!1)}}}}();function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function on(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,or(o.key),o)}}
1function oo(e,t,n){return(t=or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=oe(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:String(t)}var oi=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),oo(this,"productTourData",void 0),oo(this,"productTourId",void 0),oo(this,"onCompletion",void 0),oo(this,"unmuted",!1)}return e=[{key:"startWithConfig",value:function(e,t,n){return this.productTourId=e,this.productTourData=t,this.onCompletion=n,this.start()}},{key:"start",value:function(){var e=this.productTourData;if(e){this.unmuted=!1;for(var t=e.steps,n=this,o=[],r=0;r<t.length;r++){var i=t[r],a="CLICK"===i.mode,l="INPUT"===i.mode,c="",u=!1;if("video-pointer"===i.type)c='<div class="gleap-tour-video">\n <video class="gleap-tour-video-obj" muted autoplay>\n <source src="'.concat(i.videoUrl,'" type="video/mp4">\n </video>\n <div class="gleap-tour-video-playpause">').concat(p("unmute"),"</div>\n </div>");else{var d="";e.sender&&e.sender.firstName&&(u=!0,d='<div class="gleap-tour-sender">\n <div class="gleap-tour-sender-image" style="background-image: url(\''.concat(e.sender.profileImageUrl,'\');"></div>\n <div class="gleap-tour-sender-name">').concat(e.sender.firstName,"</div>\n </div>")),c="".concat(d,'<div class="gleap-tour-message">').concat(i.message,"</div>")}var f={disableActiveInteraction:!a&&!l,popover:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach(function(t){oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({description:c,popoverClass:"gleap-tour-popover-".concat(i.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(e.allowClose&&"gleap-tour-popover-can-close")},a?{showButtons:[]}:{})};i.selector&&i.selector.length>0&&(f.element=i.selector),o.push(f)}var h=["next","close"];e.backButton&&h.push("previous");var g=n8(oo(oo(oo(oo(oo(oo(oo(oo({showProgress:!0,steps:o},"showProgress",t.length>1),"allowClose",e.allowClose),"nextBtnText",e.nextText),"doneBtnText",e.doneText),"prevBtnText",e.prevText),"showButtons",h),"onDestroyStarted",function(){g.hasNextStep()?g.destroy():(g.destroy(),n.onCompletion&&n.onCompletion({tourId:n.productTourId})),document.removeEventListener("click",m)}),"onPopoverRender",function(e){if(e)for(var t=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),o=function(){setTimeout(function(){g.refresh()},500),setTimeout(function(){g.refresh()},750)},r=0;r<t.length;r++){var i=t[r];"IMG"===i.tagName?(i.addEventListener("load",function(){o()}),i.addEventListener("error",function(){o()})):"VIDEO"===i.tagName&&(i.addEventListener("canplaythrough",function(){o()}),i.addEventListener("error",function(){o()}))}var a="gleap-tour-video--playing",l=document.querySelector(".gleap-tour-video-playpause"),c=document.querySelector(".gleap-tour-video-obj");if(c){var u=c.closest(".gleap-tour-video");n.unmuted&&c&&(c.pause(),c.muted=!1,c.play(),u.classList.add(a)),c.addEventListener("ended",function(){l.innerHTML=p("replay"),l.classList.add("gleap-tour-video-svg--fullscreen"),u.classList.remove(a)}),c.addEventListener("play",function(){console.log("Video started"),l.classList.remove("gleap-tour-video-svg--fullscreen")}),l&&l.addEventListener("click",function(){return d()});var d=function(){c.muted?(n.unmuted=!0,c.pause(),c.currentTime=0,c.muted=!1,c.play(),l.innerHTML=p("mute"),u.classList.add(a)):c.paused?(c.muted=!1,c.play(),l.innerHTML=p("mute"),u.classList.add(a)):(c.pause(),l.innerHTML=p("unmute"),u.classList.remove(a))}}}));g.drive(),document.addEventListener("click",m)}function m(e){if(!document.querySelector(".gleap-tour-popover").contains(e.target)){var n,o=t[g.getActiveIndex()],r=g.getActiveElement();r&&"INPUT"===r.tagName||"INPUT"===o.mode||null!=e&&null!=(n=e.target)&&n.id.includes("tooltip-svg")||g.moveNext()}}}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}}],e&&on(n.prototype,e),t&&on(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();function oa(e){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function os(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,op(o.key),o)}}function ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ol(Object(n),!0).forEach(function(t){ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ou(e,t,n){return(t=op(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function op(e){var t=function(e,t){if("object"!=oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=oa(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oa(t)?t:String(t)}oo(oi,"instance",void 0),"undefined"!=typeof HTMLCanvasElement&&HTMLCanvasElement.prototype&&void 0===HTMLCanvasElement.prototype.__originalGetContext&&(HTMLCanvasElement.prototype.__originalGetContext=HTMLCanvasElement.prototype.getContext,HTMLCanvasElement.prototype.getContext=function(e,t){return this.__originalGetContext(e,oc(oc({},t),{},{preserveDrawingBuffer:!0}))});var od=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),ou(this,"initialized",!1),ou(this,"offlineMode",!1),ou(this,"disablePageTracking",!1),ou(this,"disableInAppNotifications",!1),ou(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(td.getInstance(),ty.getInstance().start(),tI.getInstance().start(),n3.getInstance().start())}return e=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){ts.getInstance().destroy(),eq.getInstance().start().then(function(){r.getInstance().refresh(),nT.getInstance().injectNotificationUI()}).catch(function(e){console.warn("Failed to initialize Gleap.")})}},{key:"performActions",value:function(e){for(var t=0;t<e.length;t++){var o=e[t];o&&o.actionType&&("notification"===o.actionType?this.disableInAppNotifications||n.showNotification(o):"banner"===o.actionType?n.showBanner(o):"tour"===o.actionType?n.startProductTourWithConfig(o.outbound,o.data):n.showSurvey(o.actionType,o.format))}}},{key:"setGlobalDataItem",value:function(e,t){this.globalData[e]=t}},{key:"getGlobalDataItem",value:function(e){return this.globalData[e]}},{key:"takeCurrentReplay",value:function(){var e=t3.getInstance().getReplayData();this.setGlobalDataItem("webReplay",e)}}],t=[{key:"getInstance",value:function(){return this.instance||(this.instance=new n),this.instance}},{key:"setEnvironment",value:function(e){td.getInstance().environment=e}},{key:"setTags",value:function(e){nz.getInstance().setTags(e)}},{key:"setUrlHandler",value:function(e){ts.getInstance().setUrlHandler(e)}},{key:"setOfflineMode",value:function(e){this.getInstance().offlineMode=e}},{key:"setDisableInAppNotifications",value:function(e){this.getInstance().disableInAppNotifications=e}},{key:"setDisablePageTracking",value:function(e){this.getInstance().disablePageTracking=e}},{key:"disableConsoleLogOverwrite",value:function(){ty.getInstance().stop()}},{key:"setAiTools",value:function(e){eq.getInstance().setAiTools(e)}},{key:"attachNetworkLogs",value:function(e){m.getInstance().externalRequests=y(e)}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"INFO";ty.getInstance().addLog(e,t)}},{key:"initialize",value:function(e){var t=this.getInstance();if(t.initialized)console.warn("Gleap already initialized.");else{t.initialized=!0;var o=eM.getInstance();o.sdkKey=e,o.setOnSessionReady(function(){setTimeout(function(){eq.getInstance().start().then(function(){eD.getInstance().start(),C(function(){r.getInstance().injectFeedbackButton(),nT.getInstance().injectNotificationUI(),n.checkForUrlParams(),tN.notifyEvent("initialized")})}).catch(function(e){console.warn("Failed to initialize Gleap.")})},0)}),o.startSession()}}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var e=new URLSearchParams(window.location.search),t=e.get("gleap_widget");t&&t.length>0&&n.open();var o=e.get("gleap_feedback");o&&o.length>0&&n.startFeedbackFlow(o);var r=e.get("gleap_survey"),i=e.get("gleap_survey_format");r&&r.length>
10&&n.showSurvey(r,"survey_full"===i?"survey_full":"survey");var a=e.get("gleap_tour");if(a&&a.length>0){var l=parseInt(e.get("gleap_tour_delay"));isNaN(l)&&(l=4),setTimeout(function(){n.startProductTour(a)},1e3*l)}}catch(e){}}},{key:"destroy",value:function(){t3.getInstance().stop(),eD.getInstance().stop(),ts.getInstance().destroy(),r.getInstance().toggleFeedbackButton(!1),nT.getInstance().clearAllNotifications(!0),eM.getInstance().clearSession(0,!1),nN.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){nN.getInstance().removeBannerUI()}},{key:"setUseCookies",value:function(e){eM.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return eM.getInstance().identifySession(e,y(t),n)}},{key:"updateContact",value:function(e){return eM.getInstance().updateSession(y(e))}},{key:"clearIdentity",value:function(){eM.getInstance().clearSession()}},{key:"getIdentity",value:function(){return eM.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=eM.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return ts.getInstance().isOpened()}},{key:"hide",value:function(){ts.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){m.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){m.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){m.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){m.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){t3.getInstance().setOptions(e)}},{key:"close",value:function(){ts.getInstance().hideWidget()}},{key:"open",value:function(){ts.getInstance().setAppMode("widget"),ts.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){eD.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){eD.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=y(e);nk.getInstance().formPreFill=t,ts.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){tN.on(e,t)}},{key:"enableShortcuts",value:function(e){e?nb.getInstance().start():nb.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){r.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){td.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){td.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){eM.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){eM.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){nN.getInstance().setBannerUrl(e)}},{key:"setFrameUrl",value:function(e){ts.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){tM.getInstance().setTicketAttribute(e,t)}},{key:"attachCustomData",value:function(e){tM.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){tM.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){tM.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){tM.getInstance().clearCustomData()}},{key:"playSound",value:function(e){nB.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=nT.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(e){nf.getInstance().setOverrideLanguage(e),n.getInstance().initialized&&setTimeout(function(){n.getInstance().softReInitialize(),n.updateContact({lang:e})},1e3)}},{key:"registerCustomAction",value:function(e){tB.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){tB.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,p=arguments.length>7&&void 0!==arguments[7]?arguments[7]:r.FEEDBACK_BUTTON_BOTTOM_LEFT;C(function(){var d,f,h,g,m,v,b,y,w,x,k,S,C,I,L,T,E,O,M;d=i,f=u(e),h=u(n),g=u(o),m=u(t),v="#ffffff"===g,b=c(t,"#ffffff"===m?-35:-15),y=c(o,v?100:-120
1),w=c(o,v?30:-12),x=c(o,v?80:-30),k=Math.round(1.05*(d=parseInt(d,10))),S=Math.round(.8*d),C=Math.round(.6*d),I=Math.round(.4*d),L=Math.round(.25*d),T=57+l,p===r.FEEDBACK_BUTTON_CLASSIC_BOTTOM?T=l+15:(p&&p.includes("CLASSIC")||p===r.FEEDBACK_BUTTON_NONE)&&(T=l),E='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-frame-container {\n right: '.concat(a,"px;\n bottom: ").concat(61+l,"px;\n width: calc(100% - 40px);\n max-width: 400px;\n position: fixed;\n z-index: ").concat(0x7fffffef,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(0x80000034,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;
1\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(0x80000033,";\n transform: translateX(-50%);\n border-radius: ").concat(I,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(0x80000033,";\n background-color: ").concat(g,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(0x8000005c,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(o,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(a,"px;\n bottom: ").concat(61+l,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(b," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(o,"1A 70%,\n ").concat(o," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(l,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(a,"px;\n bottom: ").concat(l,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(a,"px;\n bottom: ").concat(l,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(l,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(l,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(a,"px;\n bottom: ").concat(l,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(a,"px;\n bottom: ").concat(l,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(a,"px;\n bottom: ").concat(61+l,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(a,"px;\n bottom: ").concat(61+l,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(T,"px;\n right: ").concat(a,"px;\n z-index: ").concat(0x7fffffee,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+a,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+a,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(a,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(l,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(y,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(o,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(o,";\n border-radius: ").concat(y,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(C,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(g,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(w,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(y,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(g,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(y,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(y,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(g,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;
1\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(o,";\n border-radius: ").concat(y,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(C,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(y,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n }\n\n .gleap-notification-item-news:hover .gleap-notification-item-news-content-title {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(C,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(o,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(g,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(o,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(y,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(g,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+l,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(S,"px);\n top: ").concat(S,"px;\n background-color: ").concat(o,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block;\n pointer-events: auto;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(l,"px;\n right: ").concat(a,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(0x7fffffee,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(l,"px;\n right: auto;\n left: ").concat(a,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(l,"px;\n right: auto;\n left: ").concat(a,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(l,"px;\n right: ").concat(a,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;
1\n min-width: 20px;\n padding: 0px 4px;\n height: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(a,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(a,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(0x7fffffde,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(0x7fffffe0,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(0x7fffffda,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;
1\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(0x7fffffe2,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(0x7fffffe2,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(L,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(L,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(f,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(0x7fffffe4,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(0x7fffffe2,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }
1\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(g,";\n border-radius: ").concat(k,"px;\n background-color: ").concat(w,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(x,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(w,";\n }\n .bb-tooltip {\n border-radius: ").concat(I,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(x,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(f,";\n background-color: ").concat(e,";\n border-radius: ").concat(k,"px;\n }\n .bb-capture-button-next {\n color: ").concat(f,";\n background-color: ").concat(e,";\n border-radius: ").concat(L,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(o,";\n border-radius: ").concat(I,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(y,";\n }\n .bb-svg-path {\n fill: ").concat(g,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(I,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(o,";\n border-radius: ").concat(I,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(o,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(w,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(I,"px;\n border-top-right-radius: ").concat(I,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(h,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(h,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(h,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }
1\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 20px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(g,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px;\n margin-bottom: 10px;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(0x7ffffff3,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }
1\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n margin-top: 6px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(0x7ffffff8,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100%;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(h," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(I,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(f,";\n border-radius: ").concat(L,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(g," !important;\n background-color: ").concat(w," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-en
1d.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n '),(O=document.querySelector(".gleap-styles"))&&O.remove(),(M=document.createElement("style")).innerHTML=E,M.className="gleap-styles",document.body.appendChild(M)})}},{key:"sendSilentCrashReport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return n.sendSilentCrashReportWithFormData({description:e},t,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout(function(){t.silentCrashReportSent=!1},1e4);var r=o?y(o):{},i=eM.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new tt("CRASH",n,a,!0,r).sendFeedback().then(function(){}).catch(function(e){})}}}},{key:"showSurvey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";n.startFeedbackFlowWithOptions(e,{hideBackButton:!0,format:t},!0)}},{key:"startClassicForm",value:function(e,t){n.startFeedbackFlowWithOptions(e,{hideBackButton:!t})}},{key:"startFeedbackFlow",value:function(e,t){n.startFeedbackFlowWithOptions(e,{hideBackButton:!t})}},{key:"startFeedbackFlowWithOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.autostartDrawing,i=t.hideBackButton,a=t.format;if(eM.getInstance().ready){n.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var l="start-feedbackflow";o&&(l="start-survey"),ts.getInstance().setAppMode(o?a:"widget"),ts.getInstance().sendMessage({name:l,data:{flow:e,hideBackButton:i,format:a}},!0),r?ts.getInstance().showDrawingScreen("screenshot"):ts.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),ts.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"startConversation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.startBot("",e)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),ts.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),ts.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-news-article",data:{id:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"openChecklists",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-checklists",data:{hideBackButton:!e}},!0),ts.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!!e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"start-checklist",data:{outboundId:e,hideBackButton:!t}},!0),ts.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),ts.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),ts.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ts.getInstance().setAppMode("widget"),ts.getInstance().sendMessage({name:"open-feature-requests",data:{hideBackButton:!e}},!0),ts.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;eM.getInstance().startProductTourConfig(e).then(function(n){t.startProductTourWithConfig(e,n)}).catch(function(e){})}},{key:"startProductTourWithConfig",value:function(e,t){oi.getInstance().startWithConfig(e,t,function(e){var t={tourId:e.tourId};tN.notifyEvent("productTourCompleted",t),n.trackEvent("tour-".concat(e.tourId,"-completed"),t)})}},{key:"showBanner",value:function(e){try{nN.getInstance().showBanner(e)}catch(e){}}},{key:"showNotification",value:function(e){nT.getInstance().showNotification(e)}}],e&&os(n.prototype,e),t&&os(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();if(ou(od,"invoked",!0),ou(od,"silentCrashReportSent",!1),ou(od,"instance",void 0),"undefined"!=typeof window){var of=window.GleapActions;if(of&&of.length>0)for(var oh=0;oh<of.length;oh++){var og=of[oh];og&&og.e&&od[og.e]&&od[og.e].apply(od,og.a)}}var om=function(e){try{var t=e.split("/"),n=t[2];if("article"===n){var o=t[3];od.openHelpCenterArticle(o,!0)}if("collection"===n){var r=t[3];od.openHelpCenterCollection(r,!0)}if("flow"===n){var i=t[3];od.startFeedbackFlow(i,!0)}if("survey"===n){var a=t[3];od.showSurvey(a)}if("bot"===n){var l=t[3];od.startBot(l,!0)}if("news"===n){var c=t[3];od.openNewsArticle(c,!0)}if("checklist"===n){var u=t[3];od.startChecklist(u,!0)}if("tour"===n){var p=t[3];od.startProductTour(p)}}catch(t){console.error("Failed to handle Gleap link: ",e)}};let ov=od,ob=od})();var l=a.A}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.