window.voicepanelConfig = {"baseUrl":"https://app.voicepanel.co","distributions":[{"id":"dst_FfiXh8lmdnlgpL","key":"face-swap-in-progress-v1","study_id":"stdy_iwLBY6T9hA735i","traffic_threshold":0},{"id":"dst_p3yK0xXqaFIGCm","key":"face-swap-in-progress","study_id":"stdy_iwLBY6T9hA735i","traffic_threshold":10000}]}; var Voicepanel=function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,o=1,n=arguments.length;o(new TextEncoder).encode(e);function t(t,o){let n,r,i,a,s,c,d,l;for("string"==typeof t&&(t=e(t)),n=3&t.length,r=t.length-n,i=o,s=3432918353,c=461845907,l=0;l>>16)*s&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(65535&d)*c+(((d>>>16)*c&65535)<<16)&4294967295,i^=d,i=i<<13|i>>>19,a=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=27492+(65535&a)+((58964+(a>>>16)&65535)<<16);switch(d=0,n){case 3:d^=(255&t[l+2])<<16;case 2:d^=(255&t[l+1])<<8;case 1:d^=255&t[l],d=(65535&d)*s+(((d>>>16)*s&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(65535&d)*c+(((d>>>16)*c&65535)<<16)&4294967295,i^=d}return i^=t.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}const o=t;o.v2=function(t,o){"string"==typeof t&&(t=e(t));let n,r=t.length,i=o^r,a=0;for(;r>=4;)n=255&t[a]|(255&t[++a])<<8|(255&t[++a])<<16|(255&t[++a])<<24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),n^=n>>>24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^n,r-=4,++a;switch(r){case 3:i^=(255&t[a+2])<<16;case 2:i^=(255&t[a+1])<<8;case 1:i^=255&t[a],i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)}return i^=i>>>13,i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16),i^=i>>>15,i>>>0},o.v3=t,r.exports=o}()),n.exports)),s="_vp_surveys_shown",c="_vp_override",d="_vp_user_id";return window.voicepanelConfig=window.voicepanelConfig||{},"on"===(i=new URLSearchParams(window.location.search).get("voicepanel"))&&localStorage.setItem(c,"1"),"off"===i&&localStorage.removeItem(c),function(){function t(o){return void 0===o&&(o={}),this.config={},this.healthCheckTimeouts={},t.instance?(t.instance.config=e(e({},t.instance.config),o),t.instance):(this.config=e(e({},window.voicepanelConfig),o),this.setupMessageHandler(),t.instance=this,this)}return t.init=function(e){return void 0===e&&(e={}),new t(e)},t.prototype.setupMessageHandler=function(){"undefined"!=typeof window&&window.addEventListener("message",this.handleMessage.bind(this))},t.prototype.handleMessage=function(e){var t=e.data.id;e.data.closeVoicepanel&&t&&this.hideByStudyId(t),e.data.setSurveyShown&&t&&this.setSurveyShown(t),e.data.isAlive&&t&&this.clearHealthCheckTimeout(t),e.data.isReady&&t&&this.displaySurvey(t)},t.prototype.getOrSetVoicepanelId=function(){var e=localStorage.getItem(d);return e||(e=crypto.randomUUID(),localStorage.setItem(d,e)),e},t.prototype.getStudyId=function(e){var t,o;return(null===(o=((null===(t=this.config)||void 0===t?void 0:t.distributions)||[]).find((function(t){return(null==t?void 0:t.key)===e})))||void 0===o?void 0:o.study_id)||""},t.prototype.hash=function(e){return a.v3(e)},t.prototype.isInTrafficThreshold=function(e){var t=e.threshold,o=e.vpId,n=e.studyId,r=this.hash("".concat(o,":").concat(n))%1e6;return"number"!=typeof t||r<=t},t.prototype.getIframeId=function(e){return"voicepanel-".concat(e)},t.prototype.hideByStudyId=function(e){if("undefined"!=typeof document)for(var t=document.querySelectorAll("iframe[id='".concat(this.getIframeId(e),"']")),o=0;o