!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=3)}([function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n,t){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=t(9),o=t(10),i=t(11);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,n){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,n){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return U(e).length;default:if(r)return F(e).length;n=(""+n).toLowerCase(),r=!0}}function w(e,n,t){var r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,n,t);case"utf8":case"utf-8":return C(this,n,t);case"ascii":return S(this,n,t);case"latin1":case"binary":return W(this,n,t);case"base64":return P(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function g(e,n,t,r,o){if(0===e.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"==typeof n&&(n=c.from(n,r)),c.isBuffer(n))return 0===n.length?-1:y(e,n,t,r,o);if("number"==typeof n)return n&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):y(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,n,t,r,o){var i,a=1,u=e.length,c=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;a=2,u/=2,c/=2,t/=2}function s(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){var f=-1;for(i=t;iu&&(t=u-c),i=t;i>=0;i--){for(var d=!0,l=0;lo&&(r=o):r=o;var i=n.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function P(e,n,t){return 0===n&&t===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(n,t))}function C(e,n,t){t=Math.min(e.length,t);for(var r=[],o=n;o239?4:s>223?3:s>191?2:1;if(o+d<=t)switch(d){case 1:s<128&&(f=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(f=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(f=c)}null===f?(f=65533,d=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),o+=d}return function(e){var n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);var t="",r=0;for(;r0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},c.prototype.compare=function(e,n,t,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(t>>>=0)-(n>>>=0),u=Math.min(i,a),s=this.slice(r,o),f=e.slice(n,t),d=0;do)&&(t=o),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return m(this,e,n,t);case"utf8":case"utf-8":return b(this,e,n,t);case"ascii":return E(this,e,n,t);case"latin1":case"binary":return _(this,e,n,t);case"base64":return x(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,n,t){var r="";t=Math.min(e.length,t);for(var o=n;or)&&(t=r);for(var o="",i=n;it)throw new RangeError("Trying to access beyond buffer length")}function T(e,n,t,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||ne.length)throw new RangeError("Index out of range")}function N(e,n,t,r){n<0&&(n=65535+n+1);for(var o=0,i=Math.min(e.length-t,2);o>>8*(r?o:1-o)}function k(e,n,t,r){n<0&&(n=4294967295+n+1);for(var o=0,i=Math.min(e.length-t,4);o>>8*(r?o:3-o)&255}function j(e,n,t,r,o,i){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function I(e,n,t,r,i){return i||j(e,0,t,4),o.write(e,n,t,r,23,4),t+4}function z(e,n,t,r,i){return i||j(e,0,t,8),o.write(e,n,t,r,52,8),t+8}c.prototype.slice=function(e,n){var t,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n0&&(o*=256);)r+=this[e+--n]*o;return r},c.prototype.readUInt8=function(e,n){return n||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,n){return n||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,n){return n||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,n){return n||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,n){return n||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,n,t){e|=0,n|=0,t||R(e,n,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*n)),r},c.prototype.readIntBE=function(e,n,t){e|=0,n|=0,t||R(e,n,this.length);for(var r=n,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},c.prototype.readInt8=function(e,n){return n||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,n){n||R(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},c.prototype.readInt16BE=function(e,n){n||R(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},c.prototype.readInt32LE=function(e,n){return n||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,n){return n||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,n){return n||R(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,n){return n||R(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,n){return n||R(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,n){return n||R(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,n,t,r){(e=+e,n|=0,t|=0,r)||T(this,e,n,t,Math.pow(2,8*t)-1,0);var o=1,i=0;for(this[n]=255&e;++i=0&&(i*=256);)this[n+o]=e/i&255;return n+t},c.prototype.writeUInt8=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},c.prototype.writeUInt16LE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):N(this,e,n,!0),n+2},c.prototype.writeUInt16BE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):N(this,e,n,!1),n+2},c.prototype.writeUInt32LE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):k(this,e,n,!0),n+4},c.prototype.writeUInt32BE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):k(this,e,n,!1),n+4},c.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);T(this,e,n,t,o-1,-o)}var i=0,a=1,u=0;for(this[n]=255&e;++i>0)-u&255;return n+t},c.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);T(this,e,n,t,o-1,-o)}var i=t-1,a=1,u=0;for(this[n+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[n+i+1]&&(u=1),this[n+i]=(e/a>>0)-u&255;return n+t},c.prototype.writeInt8=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},c.prototype.writeInt16LE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):N(this,e,n,!0),n+2},c.prototype.writeInt16BE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):N(this,e,n,!1),n+2},c.prototype.writeInt32LE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):k(this,e,n,!0),n+4},c.prototype.writeInt32BE=function(e,n,t){return e=+e,n|=0,t||T(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):k(this,e,n,!1),n+4},c.prototype.writeFloatLE=function(e,n,t){return I(this,e,n,!0,t)},c.prototype.writeFloatBE=function(e,n,t){return I(this,e,n,!1,t)},c.prototype.writeDoubleLE=function(e,n,t){return z(this,e,n,!0,t)},c.prototype.writeDoubleBE=function(e,n,t){return z(this,e,n,!1,t)},c.prototype.copy=function(e,n,t,r){if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n=0;--o)e[o+n]=this[o+t];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(i=n;i55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,n,t,r){for(var o=0;o=n.length||o>=e.length);++o)n[o+t]=e[o];return o}}).call(this,t(0))},function(e,n,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.strings=n.defaultLocalizationProps=void 0;var o=r(t(16)),i=r(t(18)),a=r(t(19)),u=r(t(20)),c=r(t(21)),s=r(t(22)),f=r(t(23)),d=r(t(24)),l=r(t(25)),h=r(t(26)),p=r(t(27)),w=r(t(28)),v=r(t(29)),g=r(t(30)),y=r(t(31)),m=r(t(32)),b=r(t(33)),E=r(t(34)),_=r(t(35)),x=r(t(36));n.defaultLocalizationProps={cs:i.default,da:a.default,de:u.default,en:c.default,es:s.default,et:f.default,fi:d.default,fr:l.default,is:h.default,it:p.default,lt:w.default,lv:v.default,nl:g.default,no:y.default,pl:m.default,pt:b.default,sk:E.default,sv:_.default,zh:x.default},n.strings=new o.default(n.defaultLocalizationProps)},function(e,n,t){t(4),e.exports=t(5)},function(e,n,t){(function(e){("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"55b7b62"}}).call(this,t(0))},function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),o=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return o(n,e),n};Object.defineProperty(n,"__esModule",{value:!0});var a=i(t(6)),u=t(13),c=t(40);t(41);a.create({tag:"imbox-launcher",url:function(e){switch(e.props.env){case"local":return"http://localhost:8062/index.".concat(c.RELEASE_TAG,".html");case"qa":return"".concat(location.protocol,"//").concat(location.host,"/launcher/index.").concat(c.RELEASE_TAG,".html");case"dev":return"https://dev-widget-launcher.imbox.io/index.".concat(c.RELEASE_TAG,".html");default:return"https://widget-launcher.imbox.io/index.".concat(c.RELEASE_TAG,".html")}},defaultEnv:c.ENV});function s(){var e=window.xprops&&window.xprops.userId;window.xprops&&window.xprops.onClick(e)}function f(){window.xprops&&window.xprops.onMouseenter&&window.xprops.onMouseenter()}window.xprops&&window.xprops.registerWidgetRPCHandler("launcher",(function(e,n,t){"addStyles"===e?(!function(e){var n=document.createElement("style");n.innerText=e,n.id="custom-styles",n.type="text/css";var t=document.querySelector("#custom-styles");t&&document.querySelector("head").removeChild(t),document.querySelector("head").appendChild(n)}(n[0]),t()):"getVersion"===e?t({releaseTag:c.RELEASE_TAG}):"setScreenReaderMode"===e?(document.body.classList.remove("no-focus-outline"),t()):t()})),window.onload=function(){var e=document.getElementById("root"),n=document.createElement("div");e.appendChild(n);new u.Launcher({container:n,props:{onClick:s,onMouseenter:f}})}},function(e,n,t){(function(n){n&&Object({NODE_ENV:"production",ZOID_FRAME_ONLY:!0})?(e.exports=t(8),e.exports.default=e.exports):(e.exports=t(12),e.exports.default=e.exports)}).call(this,t(7))},function(e,n){var t,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],f=!1,d=-1;function l(){f&&c&&(f=!1,c.length?s=c.concat(s):d=-1,s.length&&h())}function h(){if(!f){var e=u(l);f=!0;for(var n=s.length;n;){for(c=s,s=[];++d1)for(var t=1;t>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+pe(e,n+1)}}function we(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function ve(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function ge(e){return e}function ye(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function me(e){return[].slice.call(e)}function be(e){return null!=e}function Ee(e){return"[object RegExp]"==={}.toString.call(e)}function _e(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function xe(e){var n,t=[],r=!1,o={set:function(n,t){return r||(e[n]=t,o.register((function(){delete e[n]}))),t},register:function(e){var o=he((function(){return e(n)}));return r?e(n):t.push(o),{cancel:function(){var e=t.indexOf(o);-1!==e&&t.splice(e,1)}}},all:function(e){n=e;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return w.all(o).then(le)}};return o}function Oe(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}fe.clear=function(){se=ce},fe((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));var Pe=function(e){function n(n){var t;return(t=e.call(this,n)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),t.constructor):t.stack=new Error(n).stack,t}return i(n,e),n}(ee(Error));function Ce(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function Se(){return Boolean(document.body)&&"complete"===document.readyState}function We(){return Boolean(document.body)&&"interactive"===document.readyState}function Ae(e){return encodeURIComponent(e)}function De(e){return function(n,t,r){void 0===r&&(r=[]);var o=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},i=ae(r);return o.hasOwnProperty(i)?o[i]:o[i]=function(){var n={};if(!e)return n;if(-1===e.indexOf("="))return n;for(var t=0,r=e.split("&");t { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var c=t.__id__||ie();e=bn.unwrap(e);var s=t.__name__||t.name||r;return"string"==typeof s&&"function"==typeof s.indexOf&&0===s.indexOf("anonymous::")&&(s=s.replace("anonymous::",r+"::")),bn.isProxyWindow(e)?(En(c,t,s,e,n),e.awaitWindow().then((function(e){En(c,t,s,e,n)}))):En(c,t,s,e,n),ln("cross_domain_function",{id:c,name:s})}function On(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=wn);var t=JSON.stringify(e,(function(e){var t=this[e];if(fn(this))return t;var r=dn(t);if(!r)return t;var o=n[r]||pn[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return ln("cross_domain_zalgo_promise",{then:xn(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return xn(e,n,t,r,{on:i,send:a})},o.object=function(e){return J(e)||bn.isProxyWindow(e)?ln("cross_domain_window",bn.serialize(e,{send:a})):e},o))}function Pn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=gn),"undefined"!==e)return JSON.parse(e,(function(e,t){if(fn(this))return t;var r,o;if(fn(t)?(r=t.__type__,o=t.__val__):(r=dn(t),o=t),!r)return o;var i=n[r]||vn[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new w(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return bn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=_n(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:C()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return bn.deserialize(e,{send:i})},o))}var Cn={};function Sn(e,n,t,r){var o=r.on,i=r.send;return w.try((function(){var r=rn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||w.flush().then((function(){if(I(e))throw new Error("Window is closed");var t,a=On(e,n,((t={}).__post_robot_11_0_0__=r.buffer||[],t),{on:o,send:i});delete r.buffer;for(var u=Object.keys(Cn),c=[],s=0;s1?n-1:0),o=1;o1?t-1:0),i=1;i iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(t),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on(Gn.RENDERED,(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){Be(r)}),1)})),a.on(Gn.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(f.style.width=$e(n)),"number"==typeof t&&(f.style.height=$e(t))})),f}}var ft=xe(),dt=xe(),lt=function(e){var n,t,r,o;Ke().initialized||(Ke().initialized=!0,t=(n={on:In,send:zn}).on,r=n.send,(o=Ke()).receiveMessage=o.receiveMessage||function(e){return jn(e,{on:t,send:r})},function(e){var n=e.on,t=e.send;Qe().getOrSet("postMessageListener",(function(){return Le(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;w.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");jn({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:In,send:zn}),function(e){var n=e.on,t=e.send;Qe("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return an(e.source,{domain:e.origin}),{instanceID:on()}})),r=M();return r&&un(r,{send:t}).catch((function(e){})),e}))}({on:In,send:zn}));var i=function(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,u=void 0===i?{}:i,c=e.dimensions,s=void 0===c?{}:c,f=e.autoResize,d=void 0===f?{}:f,l=e.allowedParentDomains,h=void 0===l?"*":l,p=e.attributes,w=void 0===p?{}:p,v=e.defaultContext,g=void 0===v?Zn.IFRAME:v,y=e.containerTemplate,m=void 0===y?st:y,b=e.prerenderTemplate,E=void 0===b?null:b,_=e.validate,x=e.eligible,O=void 0===x?function(){return{eligible:!0}}:x,P=e.logger,C=void 0===P?{info:le}:P,W=e.exports,A=void 0===W?le:W,D=e.method,R=e.children,T=void 0===R?function(){return{}}:R,N=n.replace(/-/g,"_"),k=a({},{window:{type:Hn.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!J(n)&&!bn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(J(n)){if(I(n))throw new Error("Window is closed");if(!S(n))throw new Error("Window is not same domain")}},decorate:function(e){return Mn(e.value)}},timeout:{type:Hn.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:Hn.STRING,required:!1},onDisplay:{type:Hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:ot,decorate:it},onRendered:{type:Hn.FUNCTION,required:!1,sendToChild:!1,default:ot,decorate:it},onRender:{type:Hn.FUNCTION,required:!1,sendToChild:!1,default:ot,decorate:it},onClose:{type:Hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:ot,decorate:it},onDestroy:{type:Hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:ot,decorate:it},onResize:{type:Hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:ot},onFocus:{type:Hn.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:ot},close:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:Hn.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:Hn.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:Hn.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!m)throw new Error("Container template required");return{name:N,tag:n,url:t,domain:r,bridgeUrl:o,method:D,propsDef:k,dimensions:s,autoResize:d,allowedParentDomains:h,attributes:w,defaultContext:g,containerTemplate:m,prerenderTemplate:E,validate:_,logger:C,eligible:O,children:T,exports:"function"==typeof A?A:function(e){for(var n=e.getExports,t={},r=function(e,r){var o=r[e],i=A[o].type,a=n().then((function(e){return e[o]}));t[o]=i===Hn.FUNCTION?function(){for(var e=arguments.length,n=new Array(e),t=0;t0?a-4:a;for(t=0;t>16&255,c[f++]=n>>8&255,c[f++]=255&n;2===u&&(n=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,c[f++]=255&n);1===u&&(n=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,c[f++]=n>>8&255,c[f++]=255&n);return c},n.fromByteArray=function(e){for(var n,t=e.length,o=t%3,i=[],a=0,u=t-o;au?u:a+16383));1===o?(n=e[t-1],i.push(r[n>>2]+r[n<<4&63]+"==")):2===o&&(n=(e[t-2]<<8)+e[t-1],i.push(r[n>>10]+r[n>>4&63]+r[n<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=n),[t,t===n?0:4-t%4]}function f(e,n,t){for(var o,i,a=[],u=n;u>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,n){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ n.read=function(e,n,t,r,o){var i,a,u=8*o-r-1,c=(1<>1,f=-7,d=t?o-1:0,l=t?-1:1,h=e[n+d];for(d+=l,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+e[n+d],d+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+e[n+d],d+=l,f-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,n,t,r,o,i){var a,u,c,s=8*i-o-1,f=(1<>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,w=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,a=f):(a=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-a))<1&&(a--,c*=2),(n+=a+d>=1?l/c:l*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=f?(u=0,a=f):a+d>=1?(u=(n*c-1)*Math.pow(2,o),a+=d):(u=n*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[t+h]=255&u,h+=p,u/=256,o-=8);for(a=a<0;e[t+h]=255&a,h+=p,a/=256,s-=8);e[t+h-p]|=128*w}},function(e,n){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},function(e,n,t){(function(n){"undefined"!=typeof self&&self,e.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function o(e,n){return(o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function i(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,o(e,n)}function a(){return(a=Object.assign||function(e){for(var n=1;n>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+ge(e,n+1)}}function ye(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function me(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function be(e){return e}function Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function _e(e){return[].slice.call(e)}function xe(e){return null!=e}function Oe(e){return"[object RegExp]"==={}.toString.call(e)}function Pe(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Ce(e){var n,t=[],r=!1,o={set:function(n,t){return r||(e[n]=t,o.register((function(){delete e[n]}))),t},register:function(e){var o=ve((function(){return e(n)}));return r?e(n):t.push(o),{cancel:function(){var e=t.indexOf(o);-1!==e&&t.splice(e,1)}}},all:function(e){n=e;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return w.all(o).then(we)}};return o}function Se(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}he.clear=function(){le=de},he((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));var We=function(e){function n(n){var t;return(t=e.call(this,n)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),t.constructor):t.stack=new Error(n).stack,t}return i(n,e),n}(re(Error));function Ae(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function De(){return Boolean(document.body)&&"complete"===document.readyState}function Re(){return Boolean(document.body)&&"interactive"===document.readyState}function Te(e){return encodeURIComponent(e)}function Ne(e){return function(n,t,r){void 0===r&&(r=[]);var o=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},i=se(r);return o.hasOwnProperty(i)?o[i]:o[i]=function(){var n={};if(!e)return n;if(-1===e.indexOf("="))return n;for(var t=0,r=e.split("&");t { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var c=t.__id__||ce();e=Fn.unwrap(e);var s=t.__name__||t.name||r;return"string"==typeof s&&"function"==typeof s.indexOf&&0===s.indexOf("anonymous::")&&(s=s.replace("anonymous::",r+"::")),Fn.isProxyWindow(e)?(Un(c,t,s,e,n),e.awaitWindow().then((function(e){Un(c,t,s,e,n)}))):Un(c,t,s,e,n),mn("cross_domain_function",{id:c,name:s})}function Yn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=_n);var t=JSON.stringify(e,(function(e){var t=this[e];if(gn(this))return t;var r=yn(t);if(!r)return t;var o=n[r]||En[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return mn("cross_domain_zalgo_promise",{then:qn(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return qn(e,n,t,r,{on:i,send:a})},o.object=function(e){return V(e)||Fn.isProxyWindow(e)?mn("cross_domain_window",Fn.serialize(e,{send:a})):e},o))}function Jn(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=On),"undefined"!==e)return JSON.parse(e,(function(e,t){if(gn(this))return t;var r,o;if(gn(t)?(r=t.__type__,o=t.__val__):(r=yn(t),o=t),!r)return o;var i=n[r]||xn[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new w(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return Fn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Bn(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:C()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return Fn.deserialize(e,{send:i})},o))}var Hn={};function Vn(e,n,t,r){var o=r.on,i=r.send;return w.try((function(){var r=fn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||w.flush().then((function(){if(I(e))throw new Error("Window is closed");var t,a=Yn(e,n,((t={}).__post_robot_11_0_0__=r.buffer||[],t),{on:o,send:i});delete r.buffer;for(var u=Object.keys(Hn),c=[],s=0;s1?n-1:0),o=1;o1?t-1:0),i=1;i iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(t),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on(gt.RENDERED,(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){Je(r)}),1)})),a.on(gt.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(f.style.width=nn(n)),"number"==typeof t&&(f.style.height=nn(t))})),f}}function Tt(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body"),i=n.createElement("style"),a=n.createElement("div");return a.classList.add("spinner"),t.cspNonce&&i.setAttribute("nonce",t.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(n.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var Nt=Ce(),kt=Ce(),jt=function(e){var n,t,r,o;rn().initialized||(rn().initialized=!0,t=(n={on:tt,send:ot}).on,r=n.send,(o=rn()).receiveMessage=o.receiveMessage||function(e){return nt(e,{on:t,send:r})},function(e){var n=e.on,t=e.send;an().getOrSet("postMessageListener",(function(){return Be(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;w.try((function(){var n=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),n){if(!o)throw new Error("Post message did not have origin domain");nt({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:tt,send:ot}),zn({on:tt,send:ot,receiveMessage:nt}),function(e){var n=e.on,t=e.send;an("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return ln(e.source,{domain:e.origin}),{instanceID:dn()}})),r=F();return r&&hn(r,{send:t}).catch((function(e){})),e}))}({on:tt,send:ot}));var i=function(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,u=void 0===i?{}:i,c=e.dimensions,s=void 0===c?{}:c,f=e.autoResize,d=void 0===f?{}:f,l=e.allowedParentDomains,h=void 0===l?"*":l,p=e.attributes,w=void 0===p?{}:p,v=e.defaultContext,g=void 0===v?vt.IFRAME:v,y=e.containerTemplate,m=void 0===y?Rt:y,b=e.prerenderTemplate,E=void 0===b?Tt:b,_=e.validate,x=e.eligible,O=void 0===x?function(){return{eligible:!0}}:x,P=e.logger,C=void 0===P?{info:we}:P,W=e.exports,A=void 0===W?we:W,D=e.method,R=e.children,T=void 0===R?function(){return{}}:R,N=n.replace(/-/g,"_"),k=a({},{window:{type:pt.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!V(n)&&!Fn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(V(n)){if(I(n))throw new Error("Window is closed");if(!S(n))throw new Error("Window is not same domain")}},decorate:function(e){return it(e.value)}},timeout:{type:pt.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:pt.STRING,required:!1},onDisplay:{type:pt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Ct,decorate:St},onRendered:{type:pt.FUNCTION,required:!1,sendToChild:!1,default:Ct,decorate:St},onRender:{type:pt.FUNCTION,required:!1,sendToChild:!1,default:Ct,decorate:St},onClose:{type:pt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Ct,decorate:St},onDestroy:{type:pt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Ct,decorate:St},onResize:{type:pt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Ct},onFocus:{type:pt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Ct},close:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:pt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:pt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:pt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!m)throw new Error("Container template required");return{name:N,tag:n,url:t,domain:r,bridgeUrl:o,method:D,propsDef:k,dimensions:s,autoResize:d,allowedParentDomains:h,attributes:w,defaultContext:g,containerTemplate:m,prerenderTemplate:E,validate:_,logger:C,eligible:O,children:T,exports:"function"==typeof A?A:function(e){for(var n=e.getExports,t={},r=function(e,r){var o=r[e],i=A[o].type,a=n().then((function(e){return e[o]}));t[o]=i===pt.FUNCTION?function(){for(var e=arguments.length,n=new Array(e),t=0;t1?t-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2];try{for(var r=this._props[n||this._language],o=e.split("."),i=0;i=0?e.substring(0,t):e;return n[r]?r:Object.keys(n)[0]},n.validateTranslationKeys=function(e){var n=["_interfaceLanguage","_language","_defaultLanguage","_defaultLanguageFirstLevelKeys","_props"];e.forEach((function(e){if(-1!==n.indexOf(e))throw new Error(e+" cannot be used as a key. It is a reserved word.")}))},n.randomPseudo=function(e){for(var n="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r