!function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,c={f:a&&!s.call({1:2},1)?function(e){var t=a(this,e);return!!t&&t.enumerable}:s},u=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h={}.toString,d=function(e){return h.call(e).slice(8,-1)},f="".split,l=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?f.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return l(p(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},v=r.document,k=m(v)&&m(v.createElement),$=function(e){return k?v.createElement(e):{}},E=!i&&!o((function(){return 7!=Object.defineProperty($("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,S={f:i?x:function(e,t){e=b(e);t=g(t,!0);if(E)try{return x(e,t)}catch(e){}if(w(e,t))return u(!c.f.call(e,t),e[t])}},O=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},I=Object.defineProperty,L={f:i?I:function(e,t,n){O(e);t=g(t,!0);O(n);if(E)try{return I(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");"value"in n&&(e[t]=n.value);return e}},T=i?function(e,t,n){return L.f(e,t,u(1,n))}:function(e,t,n){e[t]=n;return e},_=function(e,t){try{T(r,e,t)}catch(n){r[e]=t}return t},M="__core-js_shared__",j=r[M]||_(M,{}),W=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(e){return W.call(e)});var q,P,C,F=j.inspectSource,N=r.WeakMap,R="function"==typeof N&&/native code/.test(F(N)),H=!1,z=t((function(e){(e.exports=function(e,t){return j[e]||(j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:H?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),A=0,U=Math.random(),D=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++A+U).toString(36)},B=z("keys"),V=function(e){return B[e]||(B[e]=D(e))},Q={},G=r.WeakMap,J=function(e){return C(e)?P(e):q(e,{})},K=function(e){return function(t){var n;if(!m(t)||(n=P(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(R){var Y=new G,Z=Y.get,X=Y.has,ee=Y.set;q=function(e,t){ee.call(Y,e,t);return t};P=function(e){return Z.call(Y,e)||{}};C=function(e){return X.call(Y,e)}}else{var te=V("state");Q[te]=!0;q=function(e,t){T(e,te,t);return t};P=function(e){return w(e,te)?e[te]:{}};C=function(e){return w(e,te)}}var ne={set:q,get:P,has:C,enforce:J,getterFor:K},re=(ne.set,ne.get,ne.has,ne.enforce,ne.getterFor,t((function(e){var t=ne.get,n=ne.enforce,o=String(String).split("String");(e.exports=function(e,t,i,s){var a=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;if("function"==typeof i){"string"!=typeof t||w(i,"name")||T(i,"name",t);n(i).source=o.join("string"==typeof t?t:"")}if(e!==r){a?!u&&e[t]&&(c=!0):delete e[t];c?e[t]=i:T(e,t,i)}else c?e[t]=i:_(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||F(this)}))}))),oe=r,ie=function(e){return"function"==typeof e?e:void 0},se=function(e,t){return arguments.length<2?ie(oe[e])||ie(r[e]):oe[e]&&oe[e][t]||r[e]&&r[e][t]},ae=Math.ceil,ce=Math.floor,ue=function(e){return isNaN(e=+e)?0:(e>0?ce:ae)(e)},he=Math.min,de=function(e){return e>0?he(ue(e),9007199254740991):0},fe=Math.max,le=Math.min,pe=function(e,t){var n=ue(e);return n<0?fe(n+t,0):le(n,t)},be=function(e){return function(t,n,r){var o,i=b(t),s=de(i.length),a=pe(r,s);if(e&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},me={includes:be(!0),indexOf:be(!1)},ge=(me.includes,me.indexOf,me.indexOf),ye=function(e,t){var n,r=b(e),o=0,i=[];for(n in r)!w(Q,n)&&w(r,n)&&i.push(n);for(;t.length>o;)w(r,n=t[o++])&&(~ge(i,n)||i.push(n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ve=we.concat("length","prototype"),ke={f:Object.getOwnPropertyNames||function(e){return ye(e,ve)}},$e={f:Object.getOwnPropertySymbols},Ee=se("Reflect","ownKeys")||function(e){var t=ke.f(O(e)),n=$e.f;return n?t.concat(n(e)):t},xe=function(e,t){for(var n=Ee(t),r=L.f,o=S.f,i=0;io;)for(var u,h=l(arguments[o++]),d=s?qe(h).concat(s(h)):qe(h),f=d.length,p=0;f>p;){u=d[p++];i&&!a.call(h,u)||(n[u]=h[u])}return n}:Ce;We({target:"Object",stat:!0,forced:Object.assign!==Ne},{assign:Ne})}();!function(){"use strict";const e="na1";function t(t=""){return t&&t!==e?`-${t}`:""}const n="PREVIEW_EDITOR",r="PREVIEW_UI",o="FETCHER",i="UI",s="change-expand",a="expand",c="focus",u="hide",h="load-survey",d="location-change",f="ready",l="reset",p="resize-popup",b="setup",m="show",g="fetched",y="update",w="load-config-only",v="config-fetched",k="show-loaded-config",$=e=>{if(!e||""===e)return".*";const t=e.split("/");return`${t[0]}//${t[2]}`};var E=e=>{let t=!0,n=[];const r=(...e)=>{n.forEach((t=>{t(...e)}))};return o=>{t&&0===n.length&&(t=e(r));n.push(o);return()=>{const e=n.length;n=n.filter((e=>e!==o));t&&0===n.length&&e>0&&t()}}},x=(e,t,n={})=>E((r=>{e.addEventListener(t,r,n);return()=>{e.removeEventListener(t,r,n)}}));const S=(e,t)=>{const n=new RegExp(`^${$(e)}`),r=x(window,"message");return e=>r((({data:r,origin:o,source:i})=>{if(!r||!n.test(o))return;let s;try{s=JSON.parse(r)}catch(e){return}const{payload:a,type:c}=s;if(!a||c!==L)return;const{channel:u,payload:{messageType:h,payload:d}}=a;u===t&&e(h,d,o,i)}))},O=e=>S(document.referrer,e),I=(e,t)=>S(e.src,t);const L="hubspot-servicehub-feedback",T=(e,t,n)=>(r,o)=>{t.postMessage(JSON.stringify({payload:{channel:e,payload:{messageType:r,payload:o}},type:L}),n||"*")},_=(e,t)=>T(t,e.contentWindow,e.src),M=e=>T(e,window.parent,document.referrer),j=(e,t,n)=>{const r=I(e,t),o=_(e,t),i=r((e=>{if(e===f){n({sender:o,subscribe:r});i()}}))};var W=(e,t)=>E((n=>{const r=setInterval(n,e);return()=>{t&&t();clearInterval(r)}}));const q=(e,t)=>e===t;var P=((e,t=q,n=1e3)=>{let r,o=!0;const i=W(n,(()=>{o=!0}));return n=>i((()=>{const i=e();if(!t(i,r)){o||n(i);r=i}o=!1}))})((()=>location.href));const C="live-preview",F="preview",N="standard",R="feedback-web",H=`${R}-fetcher`,z=`${R}-ui`,A=(e,t)=>{Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])}));return e},U=(e,t={})=>A(document.createElement(e),t),D=(e,t)=>{const n=(e.childNodes||{})[0];if(n){e.insertBefore(t,n);return e}e.appendChild(t);return e},B=e=>e.replace(/(^ *| *$)/g,"").replace(/ +/g," "),V=(e,t)=>{e.className=B(`${e.className} ${t}`)},Q=(e,t)=>{e.className=B(e.className.replace(new RegExp(t,"g"),""))},G=.4,J=350,K=J+200,Y=480,Z=450,X=Math.max(Y,J,K,Z),ee=416,te=420,ne=544,re=768,oe=600,ie="hs-feedback-ui",se="hs-feedback-fetcher",ae="hs-feedback-extended-width",ce="hs-feedback-shown",ue="hs-feedback-slid-out",he="hs-feedback-expanded",de=(e,t)=>`\n @keyframes feedback-slide-in-${e} {\n from {transform: translate(0, ${100*t}%);}\n to {transform: translate(0, 0);}\n }\n\n @keyframes feedback-slide-out-${e} {\n from {transform: translate(0, 0);}\n to {transform: translate(0, ${100*t}%);}\n }\n\n #${ie}.${e} {\n animation-name: feedback-slide-in-${e};\n }\n\n #${ie}.${e}.${ue} {\n animation-name: feedback-slide-out-${e};\n animation-fill-mode: forwards;\n }\n`,fe=`\n #${ie} {\n animation-duration: ${G}s;\n animation-timing-function: ease-out;\n display: none;\n height: 0;\n overflow: hidden;\n position: fixed;\n z-index: 2147483647;\n max-width: 100%;\n }\n\n .hubspot.space-sword #${ie} {\n /* TODO: replace the 1211 with z-index token once available from Trellis (issue: https://git.hubteam.com/HubSpot/foundations-theming/issues/233) */\n z-index: ${window.hsFeedbackWebZIndex||1211};\n }\n\n #${ie}.${ce} {\n display: block;\n }\n\n #${se} {\n display: none\n }\n\n ${de("hs-feedback-left",1)}\n ${de("hs-feedback-right",1)}\n ${de("hs-feedback-top",-1)}\n\n #${ie} > iframe {\n width: 100%;\n height: 100%;\n }\n\n #${ie}:not(.hs-feedback-top) {\n bottom: 0;\n }\n\n #${ie}.hs-feedback-left {\n left: 0;\n }\n\n #${ie}.hs-feedback-right {\n right: 0;\n }\n\n .zorse #${ie}:not(.hs-feedback-top) {\n bottom: 6px;\n }\n\n .zorse #${ie}.hs-feedback-right {\n right: 0;\n }\n\n #${ie}.hs-feedback-top {\n left: 0;\n top: 0;\n width: 100%;\n }\n\n #${ie}.hs-feedback-nps:not(.hs-feedback-top) {\n width: ${Y}px;\n }\n\n #${ie}.hs-feedback-csat:not(.hs-feedback-top) {\n width: ${J}px;\n }\n\n #${ie}.hs-feedback-csat.${ae}:not(.hs-feedback-top) {\n width: ${K}px;\n }\n\n #${ie}.hs-feedback-csat:not(.hs-feedback-top):not(.${he}):not(.hs-feedback-mobile) {\n width: ${Z}px;\n }\n\n #${ie}.hs-feedback-csat.${ae}:not(.hs-feedback-top) {\n width: ${K}px !important;\n }\n\n #${ie}.preview.hs-feedback-csat.hs-feedback-callout:not(.${he}):not(.hs-feedback-top) {\n width: ${Z}px !important;\n }\n\n #${ie}:not(.preview):not(.hs-feedback-callout):not(.hs-feedback-top):not(.hs-feedback-desktop),\n #${ie}.${he}:not(.preview):not(.hs-feedback-top):not(.hs-feedback-desktop) {\n width: 100% !important;\n }\n\n @media only screen and (max-width: ${oe}px) {\n #${ie}.preview:not(.hs-feedback-top),\n #${ie}.${he}.preview:not(.hs-feedback-top) {\n width: 100% !important;\n }\n }\n\n #${ie}.${ce} ~ #tally-widget-container,\n #${ie}.${ce} ~ #wootric-modal {\n display: none !important;\n }\n\n /* hide all popups in the same position as us */\n #${ie}.hs-feedback-right.${ce}:not(.hs-feedback-mobile) ~ #hubspot-messages-iframe-container,\n #${ie}.hs-feedback-right.${ce}:not(.hs-feedback-mobile) ~ .leadinModal-theme-bottom-right-corner,\n #${ie}.hs-feedback-left.${ce}:not(.hs-feedback-mobile) ~ .leadinModal-theme-bottom-left-corner,\n #${ie}.hs-feedback-top.${ce}:not(.hs-feedback-mobile) ~ .leadinModal-theme-top {\n display: none !important;\n }\n\n /* hide leadflows when we're tablet-stretched across from them */\n @media only screen and (min-width: ${ne}px) and (max-width: ${Math.max(re,X+te)}px) {\n #${ie}.hs-feedback-left.${ce} ~ .leadinModal-theme-bottom-right-corner,\n #${ie}.hs-feedback-right.${ce} ~ .leadinModal-theme-bottom-left-corner {\n display: none !important;\n }\n }\n\n /* hide messages when we're tablet-stretched across from them */\n @media only screen and (max-width: ${Math.max(re,X+ee)}px) {\n #${ie}.hs-feedback-left.${ce} ~ #hubspot-messages-iframe-container {\n display: none !important;\n }\n }\n\n\n /* repeat above rules for small screens when we're set to display on mobile */\n #${ie}.hs-feedback-mobile.hs-feedback-right.${ce}:not(.hs-feedback-no-mobile) ~ #hubspot-messages-iframe-container,\n #${ie}.hs-feedback-mobile.hs-feedback-left.${ce}:not(.hs-feedback-no-mobile) ~ #hubspot-messages-iframe-container,\n #${ie}.hs-feedback-mobile.hs-feedback-right.${ce}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-right-corner,\n #${ie}.hs-feedback-mobile.hs-feedback-left.${ce}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-left-corner,\n #${ie}.hs-feedback-mobile.hs-feedback-top.${ce}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-top,\n #${ie}.hs-feedback-mobile.hs-feedback-left.${ce}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-right-corner,\n #${ie}.hs-feedback-mobile.hs-feedback-right.${ce}:not(.hs-feedback-no-mobile) ~ .leadinModal-theme-bottom-left-corner {\n display: none !important;\n }\n\n /* don't display us on small screens if we're set to not display on mobile */\n #${ie}.hs-feedback-mobile.hs-feedback-no-mobile {\n display: none;\n }\n`,le=M(o),pe=1e3,be=()=>{const e=document.querySelector("#isc-zorse-widget")||document.querySelector("#chat-widget"),t=document.getElementById("hs-feedback-ui");if(e){const n=e.children[0];if(n){const e=n.clientWidth+20;t&&(t.style.marginRight=`${e}px`)}}else t&&(t.style.marginRight="0px")};class me{constructor(){this.setFetcher=e=>{this.fetcher=e;this._runQueuedEvents();return this};this.initialiseUI=({iframe:e,parent:t,sender:n})=>{this.iframe=e;this.sendToIframe=n;this.iframeWrapper=t;this._runQueuedEvents();setInterval(be,100)};this._runQueuedEvents=()=>{const e=this.queuedEvents;this.queuedEvents=[];e.forEach((e=>e(this)))};this._onSurveyLoaded=e=>{this._setMetaData(e);this.onSurveyLoad&&this.onSurveyLoad(e)};this._queueEvent=e=>{this.queuedEvents.push(e);return this};this._push=e=>{this._queueEvent(e);this.fetcher&&this._runQueuedEvents()};this._setSurveyLanguage=e=>{this.surveyLanguage=e.config.language};this._setMetaData=e=>{this._setSurveyLanguage(e);this.config=e;return this};this._onConfigLoaded=e=>{this._setMetaData(e);this.onConfigLoaded&&this.onConfigLoaded(e);return this};this.hide=()=>{if(!this.iframeWrapper)return this._queueEvent(this.hide);V(this.iframeWrapper,ue);window.setTimeout((()=>{Q(this.iframeWrapper,ce)}),500);return this};this.show=()=>{if(!this.iframeWrapper)return this._queueEvent(this.show);Q(this.iframeWrapper,ue);V(this.iframeWrapper,ce);return this};this.expand=()=>{if(!this.iframeWrapper)return this._queueEvent(this.expand);V(this.iframeWrapper,he);this.sendToIframe(s,!0);return this};this.minimize=()=>{if(!this.iframeWrapper)return this._queueEvent(this.minimize);Q(this.iframeWrapper,he);this.sendToIframe(s,!1);return this};this.reset=()=>{if(!this.iframeWrapper)return this._queueEvent(this.reset);this.sendToIframe(l,!1);return this};this.showOnMouseLeave=(e=!1)=>{const t=()=>{e&&this.expand();this.show();document.removeEventListener("mouseleave",t)};document.addEventListener("mouseleave",t);return this};this.showOnScroll=(e=!1)=>{const t=Math.max(document.body.offsetHeight,document.body.scrollHeight),n=.5*(t-window.innerHeight),r=()=>{e&&this.expand();this.show()};if(t===window.innerHeight){setTimeout(r,pe);return this}const o=()=>{const e=document.body.scrollTop||window.pageYOffset;if(window.innerHeight+e>n){r();document.removeEventListener("scroll",o)}};document.addEventListener("scroll",o);return this};this.loadConfigOnly=(e,t)=>{if(!this.fetcher)return this._queueEvent((()=>this.loadConfigOnly(e,t)));this.fetcher(w,{surveyType:e,surveyId:t});return this};this.loadSurvey=(e,t)=>{if(!this.fetcher)return this._queueEvent((()=>this.loadSurvey(e,t)));this.fetcher(h,{surveyType:e,surveyId:t});return this};this.showSurvey=e=>{if(!this.fetcher)return this._queueEvent((()=>this.showSurvey()));if(!e)return this;this.fetcher(k,e);return this};this.checkIsLanguageValid=e=>e===this.surveyLanguage;this.renderSurvey=()=>{if(!this.config)return this._queueEvent((()=>this.renderSurvey()));le(g,this.config);return this};this.getSurveyConfig=()=>this.config;this.fetcher=null;this.onSurveyLoad=null;this._onReady=null;this.iframeWrapper=null;this.iframe=null;this.sendToIframe=null;this.onConfigLoaded=null;this.surveyLanguage=null;this.config=null;this.queuedEvents=window.onHsFeedbackReady||[];window.hsFeedback=this;window.onHsFeedbackReady={push:this._push}}}var ge=me;var ye=e=>{const t=document.querySelector(`script[${e}]`);return t?t.getAttribute(e):null};const we="hsWebSurveyPreview",ve="hsWebSurveyTestId",ke="data-hubspot-feedback-portal-id",$e="data-hubspot-feedback-customer-portal-id",Ee="data-hubspot-feedback-env",xe="data-hubspot-feedback-hubspot-app",Se="data-hubspot-feedback-hubspot-email",Oe="data-hubspot-feedback-user-lang",Ie="data-hubspot-feedback-client-load-only",Le="data-hsjs-hublet",Te={},_e=window.location.hash,Me=window.location.search;(()=>{if(_e.length>0){const e=_e.split("?");if(e.length>1)return`?${e[1]}`}return Me})().replace(/[(?|&)]([^=]+)=([^&#]+)/g,((e,t,n)=>{Te[t]=n}));const je=e=>{try{return"true"===localStorage.getItem(e)}catch(e){return!1}};function We(){return window.location.hostname.split(".")[0].split("-")[1]||""}const qe=ye(Ee),Pe=ye(ke),Ce=ye($e),Fe=Te[we],Ne=Te[ve],Re=Boolean(window.feedbackTestPage)||Boolean(Fe),He=Boolean(window.hsFeedbackPreview),ze=Boolean(ye(xe)),Ae=ye(Se),Ue=ye(Oe),De=ye(Le)||We(),Be="true"===ye(Ie),Ve=je("LOCAL_RENDERER"),Qe=/MSIE\s/.test(navigator.userAgent)&&parseFloat(navigator.appVersion.split("MSIE")[1])<11,Ge=/bot|python-requests|hubspot|phantomjs|bingpreview/i.test(navigator.userAgent);/hsWebSurveyTestId/.test(document.referrer);if(Ve){const e=document.querySelector("body"),t=document.createElement("div");t.setAttribute("class","UIRibbon-sc-1wnhcos-0 hwuPWx");t.innerText="Web renderer local";t.style.top="130px";t.style.zIndex=5;e.appendChild(t)}const Je=document.head||document.getElementsByTagName("head")[0],Ke=e=>{const t=document.createElement("style");t.type="text/css";t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e));return t};const Ye=()=>location,Ze=()=>window.top.innerWidth;(e=>{Je.appendChild(Ke(e))})(fe);const Xe=window._hsq=window._hsq||[],et={portalId:Pe,isPreview:He,isTest:Re},tt=t(De),nt=`https://${He&&/local/.test(Ye().origin)||Ve?"local":"app"}${tt}.hubspot${"prod"===qe?"":"qa"}.com`,rt={};let ot;window.hsFeedbackLoaded||(ot=new ge);const it=(e,t)=>{switch(e){case g:ft(i,b,{mode:N,payload:{isHubspot:ze,portalId:Pe,response:t,pageTitle:document.title,pageUrl:location.href,utk:et.utk,windowWidth:Ze(),hublet:De,clientLoadOnly:Be}});ot._onSurveyLoaded(t);break;case v:ot._onConfigLoaded(t)}},st=()=>{const e=rt[i];return e&&e.data&&e.data.parent.className.indexOf(ce)>=0},at=M(n),ct=e=>()=>{e(y,{pageTitle:document.title,pageUrl:Ye().href,windowWidth:Ze()})},ut={FETCHER:{onInit:({sender:e})=>{P((t=>{st()||e(d,t)}))},handleMessages:it,parentAttrs:{id:se,title:"submit hubspot feedback"},path:H},UI:{onInit:e=>{const{sender:t}=e,n=ct(t);P(n);x(window,"resize")(n);x(document,"focus")((()=>{t(c)}));ot.initialiseUI(e);return{client:ot}},handleMessages:(e,t)=>{dt(i,(({parent:n})=>{switch(e){case m:{const{classes:e,displayOnScroll:r,surveyId:o,surveyLanguage:i,surveyType:s,userLocale:a}=t;if(ze&&i!==(Ue||a)||window.disabledHsPopups&&window.disabledHsPopups.indexOf("FEEDBACK")>-1)return;const c=[...e,...He?["preview"]:[]].join(" ").toLowerCase();Fe||void 0===o||Xe.push(["trackFeedbackView",{surveyId:o,surveyType:s}]);n.baseClasses=c;n.className=c;r?ot.showOnScroll():ot.show();break}case a:t?V(n,he):Q(n,he);at(e,t);break;case u:ot.hide();setTimeout((()=>{n.className=n.baseClasses}),1e3);break;case p:{const{newHeight:e,newWidth:r}=t;n.style.width=r?`${r}px`:null;n.style.height=`${e}px`;break}default:at(e,t)}}))},parentAttrs:{id:ie,title:"submit hubspot feedback"},path:z}},ht=e=>{const{path:t,parentAttrs:n}=ut[e],r=U("iframe",{frameborder:0,title:"Submit HubSpot product feedback",src:`${nt}/${t}`}),o=U("div",n);D(o,r);D(document.body,o);return[r,o]},dt=(e,t)=>{if(rt[e]){rt[e](t);return}const n=[t];rt[e]=e=>{n.push(e)};const[r,o]=ht(e);j(r,e,(({sender:t,subscribe:i})=>{const{handleMessages:s,onInit:a}=ut[e];i(s);let c={frame:r,parent:o,subscribe:i,sender:t};c=Object.assign({},c,a(c)||{});const u=e=>{e(c)};rt[e]=u;u.data=c;n.forEach(rt[e])}))},ft=(e,t,n={})=>{dt(e,(({sender:e})=>{e(t,n)}))},lt=({frame:e})=>{const t=_(e,r);O(n)(t);at(f)};if(!Ge&&!Qe&&!window.hsFeedbackLoaded)if(Fe||He){let e,t={pageUrl:Ye().href};dt(i,(n=>{const{sender:r}=n;if(Fe){e=C;t={livePreviewId:Ne}}else{e=F;lt(n)}r(b,{mode:e,hublet:De,clientLoadOnly:Be,windowWidth:Ze(),payload:Object.assign({},et,t)})}))}else if(ze){et.hsEmail=Ae;dt(o,(({sender:e})=>{e(b,{email:Ae,portalId:Ce,pageUrl:Ye().href,targetPortalId:Pe,isHubspot:ze,hublet:De,clientLoadOnly:Be});ot.setFetcher(e)}))}else Xe.push(["addCookieListener",e=>{if(!e)return;const t=e.split(".")[1];et.utk=t;dt(o,(e=>{const{sender:n}=e;n(b,{pageUrl:Ye().href,portalId:Pe,utk:t,hublet:De,clientLoadOnly:Be});ot.setFetcher(n)}))}]);window.hsFeedbackLoaded=!0}(); //# sourceMappingURL=//static.hsappstatic.net/feedback-web-renderer-ui/static-1.24916/bundles/popupInjector.js.map