@monei-js/components 1.7.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -9
- package/dist/chunk.js +13 -0
- package/dist/index.cjs +1623 -0
- package/dist/index.d.cts +510 -0
- package/dist/index.d.ts +508 -14
- package/dist/index.js +1596 -7
- package/dist/monei.umd.production.min.js +64 -0
- package/dist/monei.umd.production.min.js.map +1 -0
- package/package.json +41 -65
- package/src/bridge/types.ts +102 -0
- package/dist/api.d.ts +0 -13
- package/dist/bizum/container.d.ts +0 -4
- package/dist/bizum/index.d.ts +0 -5
- package/dist/bizum/modal.d.ts +0 -3
- package/dist/bizum/types.d.ts +0 -30
- package/dist/cardInput/index.d.ts +0 -8
- package/dist/cardInput/types.d.ts +0 -51
- package/dist/click2pay/container.d.ts +0 -4
- package/dist/click2pay/index.d.ts +0 -5
- package/dist/click2pay/modal.d.ts +0 -3
- package/dist/click2pay/types.d.ts +0 -23
- package/dist/cofidis/container.d.ts +0 -4
- package/dist/cofidis/index.d.ts +0 -6
- package/dist/cofidis/modal.d.ts +0 -3
- package/dist/cofidis/types.d.ts +0 -45
- package/dist/cofidis/widget.d.ts +0 -3
- package/dist/cofidisLoan/container.d.ts +0 -4
- package/dist/cofidisLoan/index.d.ts +0 -7
- package/dist/cofidisLoan/modal.d.ts +0 -4
- package/dist/cofidisLoan/types.d.ts +0 -45
- package/dist/cofidisLoan/widget.d.ts +0 -4
- package/dist/components.cjs.development.js +0 -18927
- package/dist/components.cjs.development.js.map +0 -1
- package/dist/components.cjs.production.min.js +0 -2
- package/dist/components.cjs.production.min.js.map +0 -1
- package/dist/components.esm.js +0 -18909
- package/dist/components.esm.js.map +0 -1
- package/dist/config.d.ts +0 -28
- package/dist/container.d.ts +0 -1
- package/dist/enums.d.ts +0 -4
- package/dist/googlePay/index.d.ts +0 -4
- package/dist/googlePay/types.d.ts +0 -21
- package/dist/paymentModal/container.d.ts +0 -4
- package/dist/paymentModal/index.d.ts +0 -6
- package/dist/paymentModal/types.d.ts +0 -28
- package/dist/paymentRequest/index.d.ts +0 -4
- package/dist/paymentRequest/types.d.ts +0 -22
- package/dist/paypal/index.d.ts +0 -4
- package/dist/paypal/types.d.ts +0 -27
- package/dist/types.d.ts +0 -194
- package/dist/utils.d.ts +0 -11
- package/types/belter.d.ts +0 -1
- package/types/component.d.ts +0 -196
- package/types/css.d.ts +0 -9
- package/types/global.d.ts +0 -3
- package/types/post-robot.d.ts +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e,n,t,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void t(e)}u.done?n(c):Promise.resolve(c).then(r,o)}function n(n){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=n.apply(t,r);function u(n){e(a,o,i,u,c,"next",n)}function c(n){e(a,o,i,u,c,"throw",n)}u(void 0)}))}}function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function r(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&i(e,n)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,n,t){return(u=a()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&i(o,t.prototype),o}).apply(null,arguments)}function c(e){var n="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return u(e,arguments,o(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)})(e)}function s(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return d(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,void 0):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){l=function(e,n){return new a(e,void 0,n)};var t=c(RegExp),o=RegExp.prototype,i=new WeakMap;function a(e,n,r){var o=t.call(this,e,n);return i.set(o,r||i.get(e)),o}function u(e,n){var t=i.get(n);return Object.keys(t).reduce((function(n,r){return n[r]=e[t[r]],n}),Object.create(null))}return r(a,t),a.prototype.exec=function(e){var n=o.exec.call(this,e);return n&&(n.groups=u(n,this)),n},a.prototype[Symbol.replace]=function(e,n){if("string"==typeof n){var t=i.get(this);return o[Symbol.replace].call(this,e,n.replace(/\$<([^>]+)>/g,(function(e,n){return"$"+t[n]})))}if("function"==typeof n){var r=this;return o[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!=typeof e[e.length-1]&&e.push(u(e,r)),n.apply(this,e)}))}return o[Symbol.replace].call(this,e,n)},l.apply(this,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e,n){return e(n={exports:{}},n.exports),n.exports}function m(e){return e&&e.default||e}var v=w((function(e){var n=function(e){var n=Object.prototype,t=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var o=Object.create((n&&n.prototype instanceof f?n:f).prototype),i=new _(r||[]);return o._invoke=function(e,n,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var u=E(a,t);if(u){if(u===d)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var c=s(e,n,t);if("normal"===c.type){if(r=t.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:t.done}}"throw"===c.type&&(r="completed",t.method="throw",t.arg=c.arg)}}}(e,t,i),o}function s(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function l(){}function p(){}var h={};h[o]=function(){return this};var w=Object.getPrototypeOf,m=w&&w(w(O([])));m&&m!==n&&t.call(m,o)&&(h=m);var v=p.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function g(e,n){var r;this._invoke=function(o,i){function a(){return new n((function(r,a){!function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var d=c.arg,f=d.value;return f&&"object"==typeof f&&t.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):n.resolve(f).then((function(e){d.value=e,a(d)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function E(e,n){var t=e.iterator[n.method];if(void 0===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,E(e,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=s(t,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,d;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function b(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function P(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(t.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return l.prototype=v.constructor=p,p.constructor=l,l.displayName=u(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===l||"GeneratorFunction"===(n.displayName||n.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(g.prototype),g.prototype[i]=function(){return this},e.AsyncIterator=g,e.async=function(n,t,r,o,i){void 0===i&&(i=Promise);var a=new g(c(n,t,r,o),i);return e.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),u(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var n=[];for(var t in e)n.push(t);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&t.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=t.call(i,"catchLoc"),c=t.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,n){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&&n&&(this.next=n),d},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),P(t),d}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;P(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,t){return this.delegate={iterator:O(e),resultName:n,nextLoc:t},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}})),y=2592e5,g="thumbmark",E={exclude:[],include:[],stabilize:["private","iframe"],logging:!0,timeout:5e3,cache_api_call:!0,cache_lifetime_in_ms:0,performance:!1,experimental:!1,property_name_factory:function(e){return g+"_"+e}},b={private:[{exclude:["canvas"],browsers:["firefox","safari>=17","brave"]},{exclude:["audio"],browsers:["samsungbrowser","safari"]},{exclude:["fonts"],browsers:["firefox"]},{exclude:["audio.sampleHash","hardware.deviceMemory","header.acceptLanguage.q","system.hardwareConcurrency","plugins"],browsers:["brave"]},{exclude:["tls.extensions"],browsers:["firefox","chrome","safari"]},{exclude:["header.acceptLanguage"],browsers:["edge","chrome"]}],iframe:[{exclude:["system.applePayVersion","system.cookieEnabled"],browsers:["safari"]},{exclude:["permissions"]}],vpn:[{exclude:["ip"]}],always:[{exclude:["speech"],browsers:["brave","firefox"]}]},P="undefined"!=typeof window?window.OfflineAudioContext||window.webkitOfflineAudioContext:null;function _(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}function O(e,n,t){for(var r=[],o=0;o<e[0].data.length;o++){for(var i=[],a=0;a<e.length;a++)i.push(e[a].data[o]);r.push(S(i))}var u=new Uint8ClampedArray(r);return new ImageData(u,n,t)}function S(e){if(0===e.length)return 0;for(var n,t={},r=f(e);!(n=r()).done;){var o=n.value;t[o]=(t[o]||0)+1}var i=e[0];for(var a in t)t[a]>t[i]&&(i=parseInt(a,10));return i}function x(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var T=new Uint32Array([597399067,2869860233,951274213,2716044179]);function I(e,n){return e<<n|e>>>32-n}function C(e,n){if(void 0===n&&(n=0),n=n?0|n:0,"string"==typeof e&&(e=function(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).buffer;for(var n=[],t=0;t<e.length;t++){var r=e.charCodeAt(t);r<128?n.push(r):r<2048?n.push(192|r>>6,128|63&r):r<55296||r>=57344?n.push(224|r>>12,128|r>>6&63,128|63&r):(t++,r=65536+((1023&r)<<10|1023&e.charCodeAt(t)),n.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return new Uint8Array(n).buffer}(e)),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var t=new Uint32Array([n,n,n,n]);!function(e,n){for(var t=e.byteLength/16|0,r=new Uint32Array(e,0,4*t),o=0;o<t;o++){var i=r.subarray(4*o,4*(o+1));i[0]=Math.imul(i[0],T[0]),i[0]=I(i[0],15),i[0]=Math.imul(i[0],T[1]),n[0]=n[0]^i[0],n[0]=I(n[0],19),n[0]=n[0]+n[1],n[0]=Math.imul(n[0],5)+1444728091,i[1]=Math.imul(i[1],T[1]),i[1]=I(i[1],16),i[1]=Math.imul(i[1],T[2]),n[1]=n[1]^i[1],n[1]=I(n[1],17),n[1]=n[1]+n[2],n[1]=Math.imul(n[1],5)+197830471,i[2]=Math.imul(i[2],T[2]),i[2]=I(i[2],17),i[2]=Math.imul(i[2],T[3]),n[2]=n[2]^i[2],n[2]=I(n[2],15),n[2]=n[2]+n[3],n[2]=Math.imul(n[2],5)+2530024501,i[3]=Math.imul(i[3],T[3]),i[3]=I(i[3],18),i[3]=Math.imul(i[3],T[0]),n[3]=n[3]^i[3],n[3]=I(n[3],13),n[3]=n[3]+n[0],n[3]=Math.imul(n[3],5)+850148119}}(e,t),function(e,n){var t=e.byteLength/16|0,r=e.byteLength%16,o=new Uint32Array(4),i=new Uint8Array(e,16*t,r);switch(r){case 15:o[3]=o[3]^i[14]<<16;case 14:o[3]=o[3]^i[13]<<8;case 13:o[3]=o[3]^i[12],o[3]=Math.imul(o[3],T[3]),o[3]=I(o[3],18),o[3]=Math.imul(o[3],T[0]),n[3]=n[3]^o[3];case 12:o[2]=o[2]^i[11]<<24;case 11:o[2]=o[2]^i[10]<<16;case 10:o[2]=o[2]^i[9]<<8;case 9:o[2]=o[2]^i[8],o[2]=Math.imul(o[2],T[2]),o[2]=I(o[2],17),o[2]=Math.imul(o[2],T[3]),n[2]=n[2]^o[2];case 8:o[1]=o[1]^i[7]<<24;case 7:o[1]=o[1]^i[6]<<16;case 6:o[1]=o[1]^i[5]<<8;case 5:o[1]=o[1]^i[4],o[1]=Math.imul(o[1],T[1]),o[1]=I(o[1],16),o[1]=Math.imul(o[1],T[2]),n[1]=n[1]^o[1];case 4:o[0]=o[0]^i[3]<<24;case 3:o[0]=o[0]^i[2]<<16;case 2:o[0]=o[0]^i[1]<<8;case 1:o[0]=o[0]^i[0],o[0]=Math.imul(o[0],T[0]),o[0]=I(o[0],15),o[0]=Math.imul(o[0],T[1]),n[0]=n[0]^o[0]}}(e,t),function(e,n){n[0]=n[0]^e.byteLength,n[1]=n[1]^e.byteLength,n[2]=n[2]^e.byteLength,n[3]=n[3]^e.byteLength,n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0,n[0]=x(n[0]),n[1]=x(n[1]),n[2]=x(n[2]),n[3]=x(n[3]),n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0}(e,t);var r=new Uint8Array(t.buffer);return Array.from(r).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}function R(e){return N.apply(this,arguments)}function N(){return(N=n(v.mark((function e(n){var t,r,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.body){e.next=5;break}return e.next=3,k(50);case 3:e.next=0;break;case 5:if((r=document.createElement("iframe")).setAttribute("frameBorder","0"),(o=r.style).setProperty("position","fixed"),o.setProperty("display","block","important"),o.setProperty("visibility","visible"),o.setProperty("border","0"),o.setProperty("opacity","0"),r.src="about:blank",document.body.appendChild(r),i=r.contentDocument||(null===(t=r.contentWindow)||void 0===t?void 0:t.document)){e.next=12;break}throw new Error("Iframe document is not accessible");case 12:n({iframe:i}),setTimeout((function(){document.body.removeChild(r)}),0);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,n){return new Promise((function(t){return setTimeout(t,e,n)}))}var A=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],j=["monospace","sans-serif","serif"];function W(e,n){return e.font="72px "+n,e.measureText("WwMmLli0Oo").width}function M(){var e,n=document.createElement("canvas"),t=null!==(e=n.getContext("webgl"))&&void 0!==e?e:n.getContext("experimental-webgl");if(t&&"getParameter"in t)try{var r=(t.getParameter(t.VENDOR)||"").toString(),o=(t.getParameter(t.RENDERER)||"").toString(),i={vendor:r,renderer:o,version:(t.getParameter(t.VERSION)||"").toString(),shadingLanguageVersion:(t.getParameter(t.SHADING_LANGUAGE_VERSION)||"").toString()};if(!o.length||!r.length){var a=t.getExtension("WEBGL_debug_renderer_info");if(a){var u=(t.getParameter(a.UNMASKED_VENDOR_WEBGL)||"").toString(),c=(t.getParameter(a.UNMASKED_RENDERER_WEBGL)||"").toString();u&&(i.vendorUnmasked=u),c&&(i.rendererUnmasked=c)}}return i}catch(e){}return"undefined"}function L(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}var D=function(e,n,t,r){for(var o=(t-n)/r,i=0,a=0;a<r;a++)i+=e(n+(a+.5)*o);return i*o};function F(e,n){var t={};return n.forEach((function(n){var r=function(e){if(0===e.length)return null;var n={};e.forEach((function(e){var t=String(e);n[t]=(n[t]||0)+1}));var t=e[0],r=1;return Object.keys(n).forEach((function(e){n[e]>r&&(t=e,r=n[e])})),t}(e.map((function(e){return n in e?e[n]:void 0})).filter((function(e){return void 0!==e})));r&&(t[n]=r)})),t}var q=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function B(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=0,n=[{name:"Brave",detect:function(){return!!navigator.brave}}];e<n.length;e++){var t=n[e];if(t.detect()){var r=z(navigator.userAgent);return{name:t.name,version:r.version}}}return z(navigator.userAgent)}function z(e){for(var n,t,r,o,i,a,u={edg:"Edge",edga:"Edge",edgios:"Edge",opr:"Opera",opx:"Opera",crios:"Chrome",fxios:"Firefox",samsung:"SamsungBrowser",vivaldi:"Vivaldi"},c=0,s=[l(/(SamsungBrowser)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(EdgA|EdgiOS|Edg)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(OPR|OPX)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/Opera[\t-\r \/\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]([0-9]+(?:\.[0-9]+)+)/,{version:1}),l(/Opera Mini\/([0-9]+(?:\.[0-9]+)+)/,{version:1}),l(/Opera Mobi\/([0-9]+(?:\.[0-9]+)+)/,{version:1}),l(/(Vivaldi)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(CriOS)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(FxiOS)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(Chrome|Chromium)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/(Firefox|Waterfox|Iceweasel|IceCat)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/Version\/([\.0-9]+).*Safari\/[\.0-9]+|(Safari)\/([\.0-9]+)/,{version1:1,name:2,version2:3}),l(/(MSIE|Trident|IEMobile).+?([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2}),l(/([A-Za-z]+)\/([0-9]+(?:\.[0-9]+)+)/,{name:1,version:2})];c<s.length;c++){var d=s[c],f=e.match(d);if(f){var p=null===(n=f.groups)||void 0===n?void 0:n.name,h=(null===(t=f.groups)||void 0===t?void 0:t.version)||(null===(r=f.groups)||void 0===r?void 0:r.version1)||(null===(o=f.groups)||void 0===o?void 0:o.version2);if(p||!(null===(i=f.groups)||void 0===i?void 0:i.version1)&&!(null===(a=f.groups)||void 0===a?void 0:a.version2)||(p="Safari"),!p&&d.source.includes("Opera Mini")&&(p="Opera Mini"),!p&&d.source.includes("Opera Mobi")&&(p="Opera Mobi"),!p&&d.source.includes("Opera")&&(p="Opera"),!p&&f[1]&&(p=f[1]),!h&&f[2]&&(h=f[2]),p)return{name:u[p.toLowerCase()]||p,version:h||"unknown"}}}return{name:"unknown",version:"unknown"}}function U(){if("undefined"==typeof navigator||!navigator.userAgent)return!1;var e=navigator.userAgent;return/Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|Windows Phone/i.test(e)&&!/iPad/i.test(e)}function Y(){var e=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(n).forEach((function(t){n[t].forEach((function(n){matchMedia("("+t+": "+n+")").matches&&e.push(t+": "+n)}))})),e}function V(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)try{for(var e=window.ApplePaySession.supportsVersion,n=15;n>0;n--)if(e(n))return n}catch(e){return 0}return 0}var H,G="SamsungBrowser"!==B().name?1:3,J=null;function $(e){var n=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,o;if(Array.isArray(t)){for(o="[",r=0;r<t.length;r++)r&&(o+=","),o+=e(t[r])||"null";return o+"]"}if(null===t)return"null";if(-1!==n.indexOf(t))throw new TypeError("Converting circular structure to JSON");var i=n.push(t)-1,a=Object.keys(t).sort();for(o="",r=0;r<a.length;r++){var u=a[r],c=e(t[u]);c&&(o&&(o+=","),o+=JSON.stringify(u)+":"+c)}return n.splice(i,1),"{"+o+"}"}}(e)||""}var Z=["𝔄","𝔅","ℭ","𝔇","𝔈","𝔉","𝔸","𝔹","ℂ","𝔻","𝔼","𝔽"],X=["β","ψ","λ","ε","ζ","α","ξ","μ","ρ","φ","κ","τ","η","σ","ι","ω","γ","ν","χ","δ","θ","π","υ","ο"];function K(e,n){return"<math><mrow>"+n+"</mrow></math>"}function Q(){var e="<mo>∏</mo>";return Z.forEach((function(n,t){var r=2*t,o=X.slice(r,r+2);2===o.length&&(e+="<mmultiscripts><mi>"+n+"</mi><none/><mi>"+o[1]+"</mi><mprescripts></mprescripts><mi>"+o[0]+"</mi><none/></mmultiscripts>")})),K(0,"<munderover><mmultiscripts>"+e+"</mmultiscripts></munderover>")}function ee(){var e=[];return Z.forEach((function(n,t){var r=2*t,o=X.slice(r,r+2);2===o.length&&e.push(K(0,"<mmultiscripts><mi>"+n+"</mi><none/><mi>"+o[1]+"</mi><mprescripts></mprescripts><mi>"+o[0]+"</mi><none/></mmultiscripts>"))})),e}var ne={audio:function(){var e=n(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",P?n(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{var t=new P(1,5e3,44100),r=t.createBufferSource(),o=t.createOscillator();o.frequency.value=1e3;var i,a=t.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.2,o.connect(a),a.connect(t.destination),o.start(),t.oncomplete=function(n){i=n.renderedBuffer.getChannelData(0),e({sampleHash:_(i),maxChannels:t.destination.maxChannelCount,channelCountMode:r.channelCountMode})},t.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),n(e)}})));case 1:case"end":return e.stop()}}),e)})))():null);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),canvas:function(){var e=n(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),n=e.getContext("2d");if(!n)return null;e.width=280,e.height=20;var t=n.createLinearGradient(0,0,e.width,e.height);t.addColorStop(0,"red"),t.addColorStop(1/6,"orange"),t.addColorStop(2/6,"yellow"),t.addColorStop(.5,"green"),t.addColorStop(4/6,"blue"),t.addColorStop(5/6,"indigo"),t.addColorStop(1,"violet"),n.fillStyle=t,n.fillRect(0,0,e.width,e.height);var r="Random Text WMwmil10Oo";return n.font="23.123px Arial",n.fillStyle="black",n.fillText(r,-5,15),n.fillStyle="rgba(0, 0, 255, 0.5)",n.fillText(r,-3.3,17.7),n.beginPath(),n.moveTo(0,0),n.lineTo(2*e.width/7,e.height),n.strokeStyle="white",n.lineWidth=2,n.stroke(),n.getImageData(0,0,e.width,e.height)}()})).filter((function(e){return null!==e}));e(0!==n.length?{commonPixelsHash:C(O(n,280,20).data.toString()).toString()}:null)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fonts:function(){var e=n(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){try{R(function(){var t=n(v.mark((function n(t){var r,o,i;return v.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.iframe.createElement("canvas").getContext("2d")){n.next=4;break}return n.abrupt("return",void e(null));case 4:o=j.map((function(e){return W(r,e)})),i={},A.forEach((function(e){var n=W(r,e);o.includes(n)||(i[e]=n)})),e(i);case 7:case"end":return n.stop()}}),n)})));return function(e){return t.apply(this,arguments)}}())}catch(n){e(null)}})));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),hardware:function(){return new Promise((function(e,n){var t=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,r=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:M(),architecture:L(),deviceMemory:t.toString()||"undefined",jsHeapSizeLimit:r.jsHeapSizeLimit||0})}))},locales:function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))},math:function(){return new Promise((function(e){e({acos:Math.acos(.5),asin:D(Math.asin,-1,1,97),cos:D(Math.cos,0,Math.PI,97),largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),sin:D(Math.sin,-Math.PI,Math.PI,97),tan:D(Math.tan,0,2*Math.PI,97)})}))},permissions:function(){var e=n(v.mark((function e(t){var r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(null==t?void 0:t.permissions_to_check)||q,e.t0=F,e.next=4,Promise.all(Array.from({length:3},(function(){return(e=n(v.mark((function e(n){var t,r,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},r=f(n);case 2:if((o=r()).done){e.next=15;break}return i=o.value,e.prev=4,e.next=7,navigator.permissions.query({name:i});case 7:t[i]=e.sent.state.toString(),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(4);case 13:e.next=2;break;case 15:return e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,null,[[4,11]])}))),function(n){return e.apply(this,arguments)})(r);var e})));case 4:return e.t1=e.sent,e.t2=r,e.abrupt("return",(0,e.t0)(e.t1,e.t2));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),plugins:function(){var e=n(v.mark((function e(){var n,t,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],navigator.plugins)for(t=0;t<navigator.plugins.length;t++)r=navigator.plugins[t],n.push([r.name,r.filename,r.description].join("|"));return e.abrupt("return",new Promise((function(e){e({plugins:n})})));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),screen:function(e){function n(){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(){return new Promise((function(e){if("undefined"!=typeof matchMedia&&"undefined"!=typeof screen){var n={is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:Y()};U()&&navigator.maxTouchPoints>0&&(n.resolution=function(){var e=window.screen.width,n=window.screen.height;return Math.max(e,n).toString()+"x"+Math.min(e,n).toString()}()),e(n)}else e(null)}))})),system:function(){return new Promise((function(e){var n=B();e({platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:n.name,version:n.version},mobile:U(),applePayVersion:V(),cookieEnabled:window.navigator.cookieEnabled})}))},webgl:function(){var e=n(v.mark((function e(){var n;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof document&&((H=document.createElement("canvas")).width=200,H.height=100,J=H.getContext("webgl")),e.prev=1,J){e.next=4;break}throw new Error("WebGL not supported");case 4:return n=Array.from({length:G},(function(){return function(){try{if(!J)throw new Error("WebGL not supported");var e=J.createShader(J.VERTEX_SHADER),n=J.createShader(J.FRAGMENT_SHADER);if(!e||!n)throw new Error("Failed to create shaders");if(J.shaderSource(e,"\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "),J.shaderSource(n,"\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n "),J.compileShader(e),!J.getShaderParameter(e,J.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+J.getShaderInfoLog(e));if(J.compileShader(n),!J.getShaderParameter(n,J.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+J.getShaderInfoLog(n));var t=J.createProgram();if(!t)throw new Error("Failed to create shader program");if(J.attachShader(t,e),J.attachShader(t,n),J.linkProgram(t),!J.getProgramParameter(t,J.LINK_STATUS))throw new Error("Shader program linking failed: "+J.getProgramInfoLog(t));J.useProgram(t);for(var r=new Float32Array(548),o=2*Math.PI/137,i=0;i<137;i++){var a=i*o;r[4*i]=0,r[4*i+1]=0,r[4*i+2]=Math.cos(a)*(H.width/2),r[4*i+3]=Math.sin(a)*(H.height/2)}var u=J.createBuffer();J.bindBuffer(J.ARRAY_BUFFER,u),J.bufferData(J.ARRAY_BUFFER,r,J.STATIC_DRAW);var c=J.getAttribLocation(t,"position");J.enableVertexAttribArray(c),J.vertexAttribPointer(c,2,J.FLOAT,!1,0,0),J.viewport(0,0,H.width,H.height),J.clearColor(0,0,0,1),J.clear(J.COLOR_BUFFER_BIT),J.drawArrays(J.LINES,0,274);var s=new Uint8ClampedArray(H.width*H.height*4);return J.readPixels(0,0,H.width,H.height,J.RGBA,J.UNSIGNED_BYTE,s),new ImageData(s,H.width,H.height)}catch(e){return new ImageData(1,1)}finally{J&&(J.bindBuffer(J.ARRAY_BUFFER,null),J.useProgram(null),J.viewport(0,0,J.drawingBufferWidth,J.drawingBufferHeight),J.clearColor(0,0,0,0))}}()})),e.abrupt("return",{commonPixelsHash:C(O(n,H.width,H.height).data.toString()).toString()});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",{webgl:"unsupported"});case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),webrtc:function(){var e=n(v.mark((function e(r){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){try{var o=window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection;if(!o)return void e({supported:!1,error:"WebRTC not supported"});var i=new o({iceCandidatePoolSize:1,iceServers:[]});i.createDataChannel(""),n(v.mark((function n(){var o,a,u,c,s,d,f,l,p,h,w;return v.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o={offerToReceiveAudio:!0,offerToReceiveVideo:!0},n.next=4,i.createOffer(o);case 4:return a=n.sent,n.next=7,i.setLocalDescription(a);case 7:return u=a.sdp||"",c=[].concat(new Set((u.match(/extmap:\d+ [^\n\r]+/g)||[]).map((function(e){return e.replace(/extmap:\d+ /,"")})))).sort(),f=(d=function(e,n){return n.map((function(n){var t=new RegExp("(rtpmap|fmtp|rtcp-fb):"+n+" (.+)","g"),r=[].concat(u.matchAll(t));if(!r.length)return null;var o={};return r.forEach((function(n){var t=n[1],r=n[2],i=r.split("/");"rtpmap"===t?(o.mimeType=e+"/"+i[0],o.clockRate=+i[1],"audio"===e&&(o.channels=+i[2]||1)):"rtcp-fb"===t?(o.feedbackSupport=o.feedbackSupport||[],o.feedbackSupport.push(r)):"fmtp"===t&&(o.sdpFmtpLine=r)})),o})).filter(Boolean)})("audio",(s=function(e){var n=u.match(new RegExp("m="+e+" [^\\s]+ [^\\s]+ ([^\\n\\r]+)"));return n?n[1].split(" "):[]})("audio")),l=d("video",s("video")),p={audio:{count:f.length,hash:C($(f))},video:{count:l.length,hash:C($(l))},extensionsHash:C($(c))},h=Math.floor(.9*((null==r?void 0:r.timeout)||5e3)),n.next=18,new Promise((function(e){var n=setTimeout((function(){i.removeEventListener("icecandidate",r),i.close(),e(t({supported:!0},p,{timeout:!0}))}),h),r=function r(o){var a=o.candidate;a&&a.candidate&&(clearTimeout(n),i.removeEventListener("icecandidate",r),i.close(),e(t({supported:!0},p,{candidateType:a.type||""})))};i.addEventListener("icecandidate",r)}));case 18:e({details:w=n.sent,hash:C($(w))}),n.next=25;break;case 22:n.prev=22,n.t0=n.catch(0),i.close(),e({supported:!0,error:"WebRTC offer failed: "+n.t0.message});case 25:case"end":return n.stop()}}),n,null,[[0,22]])})))()}catch(n){e({supported:!1,error:"WebRTC error: "+n.message})}})));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),speech:function(){var e=n(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){try{if("undefined"==typeof window||!window.speechSynthesis||"function"!=typeof window.speechSynthesis.getVoices)return void e({supported:!1,error:"Speech Synthesis API not supported"});var n=!1,t=null,r=function(r){if(!n){n=!0,t&&clearTimeout(t);try{var o=r.map((function(e){var n=function(e){return e.replace(/\\/g,"\\\\").replace(/,/g,"\\,")};return[n(e.voiceURI||""),n(e.name||""),n(e.lang||""),e.localService?"1":"0",e.default?"1":"0"].join(",")}));o.sort();var i={voiceCount:r.length,voicesHash:C($(o))};e({details:i,hash:C($(i))})}catch(n){e({supported:!0,error:"Voice processing failed: "+n.message})}}},o=window.speechSynthesis.getVoices();if(o.length>0)return void r(o);t=setTimeout((function(){var e=window.speechSynthesis.getVoices();r(e)}),800),window.speechSynthesis.addEventListener("voiceschanged",(function e(){window.speechSynthesis.removeEventListener("voiceschanged",e);var n=window.speechSynthesis.getVoices();r(n)}))}catch(n){e({supported:!1,error:"Speech Synthesis error: "+n.message})}})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},te={mathml:function(){var e=n(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){try{R(function(){var t=n(v.mark((function n(t){var r,o,i,a,u;return v.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.iframe,n.prev=1,function(e){try{var n=e.createElement("math");n.innerHTML="<mrow><mi>x</mi></mrow>",n.style.position="absolute",n.style.visibility="hidden",e.body.appendChild(n);var t=n.getBoundingClientRect();return e.body.removeChild(n),t.width>0&&t.height>0}catch(e){return!1}}(r)){n.next=4;break}return n.abrupt("return",void e({supported:!1,error:"MathML not supported"}));case 4:o=[K(0,"<msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mrow><mi>g</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mfrac><mi>dx</mi>"),K(0,"<mfrac><mrow><mi>π</mi><mo>×</mo><msup><mi>r</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><mi>σ</mi></mrow></mfrac>"),K(0,"<mo>[</mo><mtable><mtr><mtd><mi>α</mi></mtd><mtd><mi>β</mi></mtd></mtr><mtr><mtd><mi>γ</mi></mtd><mtd><mi>δ</mi></mtd></mtr></mtable><mo>]</mo>"),Q()].concat(ee()),i=[],a="",o.forEach((function(e,n){var t=function(e,n){try{var t=n.createElement("math");t.innerHTML=e.replace(/<\/?math>/g,""),t.style.whiteSpace="nowrap",t.style.position="absolute",t.style.visibility="hidden",t.style.top="-9999px",n.body.appendChild(t);var r=t.getBoundingClientRect(),o=(n.defaultView||window).getComputedStyle(t),i={dimensions:{width:r.width,height:r.height},fontInfo:{fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,lineHeight:o.lineHeight,fontVariant:o.fontVariant||"normal",fontStretch:o.fontStretch||"normal",fontSizeAdjust:o.fontSizeAdjust||"none",textRendering:o.textRendering||"auto",fontFeatureSettings:o.fontFeatureSettings||"normal",fontVariantNumeric:o.fontVariantNumeric||"normal",fontKerning:o.fontKerning||"auto"}};return n.body.removeChild(t),i}catch(e){return{error:e.message}}}(e,r);i.push({width:t.dimensions.width,height:t.dimensions.height}),0===n&&t.fontInfo&&(a=C($(t.fontInfo)))})),e({details:u={fontStyleHash:a,dimensions:i},hash:C($(u))}),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),e({supported:!1,error:"MathML error: "+n.t0.message});case 14:case"end":return n.stop()}}),n,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}())}catch(n){e({supported:!1,error:"MathML error: "+n.message})}})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},re={},oe={timeout:"true"};function ie(e,n){var t,r,o=B();if("unknown"===o.name&&n){var i=null===(t=n.system)||void 0===t?void 0:t.browser;(null==i?void 0:i.name)&&(o={name:String(i.name),version:String(i.version||"unknown")})}for(var a,u=o.name.toLowerCase(),c=parseInt(o.version.split(".")[0]||"0",10),s=[].concat((null==e?void 0:e.exclude)||[]),d=f([].concat(new Set([].concat((null==e?void 0:e.stabilize)||[],["always"]))));!(a=d()).done;){var l=b[a.value];if(l)for(var p,h=f(l);!(p=h()).done;){var w=p.value;"browsers"in w&&!(null===(r=w.browsers)||void 0===r?void 0:r.some((function(e){var n=e.match(/(.+?)(>=)(\d+)/);return n?u===n[1]&&c>=+n[3]:u===e})))||s.push.apply(s,w.exclude)}}return s}function ae(e,n){var t=ie(n,e),r=(null==n?void 0:n.include)||[];return function e(n,o){void 0===o&&(o="");for(var i={},a=function(){var n=c[u],a=n[0],s=n[1],d=o?o+"."+a:a;if("object"!=typeof s||Array.isArray(s)||null===s){var f=t.some((function(e){return d.startsWith(e)})),l=r.some((function(e){return d.startsWith(e)}));f&&!l||(i[a]=s)}else{var p=e(s,d);Object.keys(p).length>0&&(i[a]=p)}},u=0,c=Object.entries(n);u<c.length;u++)a();return i}(e)}var ue="visitor_id";function ce(e){return e.storage_property_name?e.storage_property_name:e.property_name_factory(ue)}var se=g+"_"+ue;function de(e,n){try{localStorage.setItem(ce(n),e)}catch(e){}}var fe="cache";function le(e){try{var n=localStorage.getItem(e.property_name_factory(fe));return JSON.parse(n)||{}}catch(e){}return{}}function pe(e){return e.cache_lifetime_in_ms>y?Date.now()+y:Date.now()+e.cache_lifetime_in_ms}var he=null,we=null,me=function(e,n){if(e.cache_api_call){if(we)return Promise.resolve(we);var r=function(e){var n=le(e);if(n&&n.apiResponse&&n.apiResponseExpiry&&Date.now()<=n.apiResponseExpiry)return n.apiResponse}(e);if(r)return Promise.resolve(r);if(he)return he}var o=(e.api_endpoint||"https://api.thumbmarkjs.com")+"/thumbmark",i=function(e){try{var n=ce(e),t=localStorage.getItem(n);return t||n===se||(t=localStorage.getItem(se))&&de(t,e),t}catch(e){return null}}(e),a={components:n,options:e,clientHash:C($(n)),version:"1.7.4"};if(i&&(a.visitorId=i),e.metadata){var u="function"==typeof e.metadata?e.metadata():e.metadata;u&&(("string"==typeof u?u.length:JSON.stringify(u).length)>1e3?console.error("ThumbmarkJS: Metadata exceeds 1000 characters. Skipping metadata."):a.metadata=u)}var c=fetch(o,{method:"POST",headers:{"x-api-key":e.api_key,Authorization:"custom-authorized","Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){if(!e.ok){if(403===e.status)throw new Error("INVALID_API_KEY");throw new Error("HTTP error! status: "+e.status)}return e.json()})).then((function(n){return n.visitorId&&n.visitorId!==i&&de(n.visitorId,e),we=n,function(e,n){e.cache_api_call&&e.cache_lifetime_in_ms&&function(e,n){var r=t({},le(e),n);try{localStorage.setItem(e.property_name_factory(fe),JSON.stringify(r))}catch(e){}}(e,{apiResponseExpiry:pe(e),apiResponse:n})}(e,n),he=null,n})).catch((function(e){throw he=null,e})),s=e.timeout||5e3,d=new Promise((function(n){setTimeout((function(){var r=le(e);n(r&&r.apiResponse?r.apiResponse:t({info:{timed_out:!0}},i&&{visitorId:i}))}),s)}));return he=Promise.race([c,d])};function ve(e){return ye.apply(this,arguments)}function ye(){return(ye=n(v.mark((function e(r){var o,i,a,u,c,s,d,f,l,p,h,w,m,y,g,b,P,_,O,S;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof document&&"undefined"!=typeof window){e.next=2;break}return e.abrupt("return",{thumbmark:"",components:{},info:{},version:"1.7.4",error:[{type:"fatal",message:"Browser environment required"}]});case 2:return e.prev=2,a=t({},E,r),u=[],c=a.logging&&!sessionStorage.getItem("_tmjs_l")&&Math.random()<1e-4,s=t({},ne,re),e.next=9,ge(s,a);case 9:if(f=(d=e.sent).elapsed,l=d.resolvedComponents,u.push.apply(u,d.errors),p={},h={},!c&&!a.experimental){e.next=23;break}return e.next=18,ge(te,a);case 18:p=(w=e.sent).resolvedComponents,h=w.elapsed,u.push.apply(u,w.errors);case 23:if(m=a.api_key?me(a,l):null,y=null,!m){e.next=37;break}return e.prev=26,e.next=29,m;case 29:y=e.sent,e.next=37;break;case 32:if(e.prev=32,e.t0=e.catch(26),!(e.t0 instanceof Error&&"INVALID_API_KEY"===e.t0.message)){e.next=36;break}return e.abrupt("return",{error:[{type:"api_unauthorized",message:"Invalid API key or quota exceeded"}],components:{},info:{},version:"1.7.4",thumbmark:""});case 36:u.push({type:"api_error",message:e.t0 instanceof Error?e.t0.message:String(e.t0)});case 37:return(null===(o=null==y?void 0:y.info)||void 0===o?void 0:o.timed_out)&&u.push({type:"api_timeout",message:"API request timed out"}),g=t({},f,h),b=a.performance?{elapsed:g}:{},P=ae((null==y?void 0:y.components)||{},a),_=t({},l,P),O=(null==y?void 0:y.info)||{uniqueness:{score:"api only"}},S=null!==(i=null==y?void 0:y.thumbmark)&&void 0!==i?i:C($(_)),c&&function(){var e=n(v.mark((function e(n,r,o,i,a){var u,c;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===i&&(i={}),void 0===a&&(a=[]),c=t({thumbmark:n,components:r,experimental:i,version:"1.7.4",options:o,path:null===(u=null===window||void 0===window?void 0:window.location)||void 0===u?void 0:u.pathname},a.length>0&&{errors:a}),sessionStorage.setItem("_tmjs_l","1"),e.prev=4,e.next=7,fetch("https://api.thumbmarkjs.com/log",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(n,t,r,o,i){return e.apply(this,arguments)}}()(S,_,a,p,u).catch((function(){})),e.abrupt("return",t({},(null==y?void 0:y.visitorId)&&{visitorId:y.visitorId},{thumbmark:S,components:_,info:O,version:"1.7.4"},b,u.length>0&&{error:u},Object.keys(p).length>0&&a.experimental&&{experimental:p},(null==y?void 0:y.requestId)&&{requestId:y.requestId},(null==y?void 0:y.metadata)&&{metadata:y.metadata}));case 43:return e.prev=43,e.t1=e.catch(2),e.abrupt("return",{thumbmark:"",components:{},info:{},version:"1.7.4",error:[{type:"fatal",message:e.t1 instanceof Error?e.t1.message:String(e.t1)}]});case 46:case"end":return e.stop()}}),e,null,[[2,43],[26,32]])})))).apply(this,arguments)}function ge(e,n){return Ee.apply(this,arguments)}function Ee(){return(Ee=n(v.mark((function e(n,r){var o,i,a,u,c,s,d,f,l;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t({},E,r),i=ie(o).filter((function(e){return!e.includes(".")})),a=Object.entries(n).filter((function(e){var n;return!(null===(n=null==o?void 0:o.exclude)||void 0===n?void 0:n.includes(e[0]))})).filter((function(e){return!i.includes(e[0])})).filter((function(e){var n,t,r,i,a=e[0];return(null===(n=null==o?void 0:o.include)||void 0===n?void 0:n.some((function(e){return e.includes(".")})))?null===(t=null==o?void 0:o.include)||void 0===t?void 0:t.some((function(e){return e.startsWith(a)})):0===(null===(r=null==o?void 0:o.include)||void 0===r?void 0:r.length)||(null===(i=null==o?void 0:o.include)||void 0===i?void 0:i.includes(a))})),u=a.map((function(e){return e[0]})),c=a.map((function(e){return(0,e[1])(r)})),e.next=7,function(e,n,t){return Promise.all(e.map((function(e){var r,o,i=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-i}})).catch((function(e){return{value:t,elapsed:performance.now()-i,error:e instanceof Error?e.message:String(e)}})),(r=n,o=t,new Promise((function(e){setTimeout((function(){return e(o)}),r)}))).then((function(e){return{value:e,elapsed:performance.now()-i,error:"timeout"}}))])})))}(c,(null==o?void 0:o.timeout)||5e3,oe);case 7:return s={},d={},f=[],e.sent.forEach((function(e,n){var t,r=u[n];s[r]=null!==(t=e.elapsed)&&void 0!==t?t:0,"timeout"===e.error?f.push({type:"component_timeout",message:"Component '"+r+"' timed out",component:r}):e.error&&f.push({type:"component_error",message:e.error,component:r}),null!=e.value&&(d[r]=e.value)})),l=ae(d,o),e.abrupt("return",{elapsed:s,resolvedComponents:l,errors:f});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var be,Pe=function(e){return Object.keys(e).reduce((function(n,t){return n[t]="string"==typeof e[t]?e[t]:e[t]+"px",n}),{})},_e=function(e,n,t,r){return new Promise((function(o,i){var a=Array.from(document.scripts).find((function(n){return n.src===e}));if(a){if(!r)return void o(a);a.remove()}var u=document.createElement("script");u.src=e,u.onload=function(){return o(u)},u.onerror=function(e){return i(e)},n&&u.setAttribute("nonce",n),t&&Object.keys(t).forEach((function(e){t[e]&&(u.dataset[e]=t[e])})),document.head.appendChild(u)}))},Oe=function(e){return Object.keys(e).reduce((function(n,t){return void 0!==e[t]&&n.push(t+"="+e[t]),n}),[]).join("&")},Se=function(){var e,n;try{e=window.localStorage}catch(r){var t=(n=new Map,{getItem:function(e){return n.get(e)},setItem:function(e,t){n.set(e,t)},clear:function(){n=new Map},removeItem:function(e){n.delete(e)}});Object.defineProperty(window,"localStorage",{value:t}),e=t}return e},xe=function(){var e,n=Se();try{e=n.getItem("i18nextLng")}catch(e){}return e?e.split("-")[0]:""},Te=function(e){try{var n;return String(null!=(n=e())?n:"")}catch(e){return""}},Ie=function(){var e=[window.screen.colorDepth,window.screen.height,window.screen.width,(new Date).getTimezoneOffset(),xe(),Te((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})),Te((function(){return window.devicePixelRatio})),Te((function(){return navigator.hardwareConcurrency})),Te((function(){return navigator.deviceMemory})),Te((function(){return navigator.maxTouchPoints})),Te((function(){return navigator.platform})),Te((function(){var e;return null==(e=navigator.languages)?void 0:e.join(",")}))].join("|");return window.btoa(e)},Ce=new(function(){function e(e){this.options=t({},E,e)}var r=e.prototype;return r.get=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ve(t({},this.options,n)));case 1:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}(),r.getVersion=function(){return"1.7.4"},r.includeComponent=function(e,n){!function(e,n,t){re[e]=n}(e,n)},e}())({stabilize:[]}),Re=function(){var e=n(v.mark((function e(){var n,t;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(Ce.get());case 2:return e.abrupt("return",null!=(n=null==(t=e.sent[1])?void 0:t.thumbmark)?n:"");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=void 0,e.next=4,n;case 4:return e.t1=e.sent,e.abrupt("return",[e.t0,e.t1]);case 8:return e.prev=8,e.t2=e.catch(0),e.abrupt("return",[e.t2,void 0]);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(n){return e.apply(this,arguments)}}(),ke=function(e){if(!(e.paymentId||e.accountId&&e.amount&&e.currency))throw new Error("You need to provide paymentId or accountId amount and currency")},Ae={__proto__:null,transformStyle:Pe,loadScript:_e,stringify:Oe,fixLocalstorage:Se,getClientEnv:Ie,getClientFingerprint:Re,withError:Ne,isMethodSupported:function(e,n){return e.paymentMethods&&e.paymentMethods.includes(n)},validateComponentProps:ke},je="https://js.monei.com",We=t({},{domain:je,version:"v2",stage:"prod",isProduction:!0,paymentPageUrl:je+"/v2/payment-page/",posPaymentPageUrl:je+"/v2/pos-payment-page/",cardInputUrl:je+"/v2/inner-card-input/",paymentModalUrl:je+"/v2/inner-payment-modal/",paypalUrl:je+"/v2/inner-paypal/",bizumUrl:je+"/v2/inner-bizum/",bizumButtonUrl:je+"/v2/inner-bizum-button/",cofidisUrl:je+"/v2/inner-cofidis/",cofidisButtonUrl:je+"/v2/inner-cofidis-button/",cofidisWidgetUrl:je+"/v2/inner-cofidis-widget/",cofidisLoanUrl:je+"/v2/inner-cofidis-loan/",cofidisLoanButtonUrl:je+"/v2/inner-cofidis-loan-button/",cofidisLoanWidgetUrl:je+"/v2/inner-cofidis-loan-widget/",googlePayUrl:je+"/v2/inner-google-pay/",paymentRequestUrl:je+"/v2/inner-payment-request/",click2PayUrl:je+"/v2/inner-click2pay/",click2PayButtonUrl:je+"/v2/inner-click2pay-button/"},{apiUrl:"https://api.monei.com/v1",secureDomain:"https://secure.monei.com",rootDomain:"monei.com"}),Me=function(){var e=n(v.mark((function e(n,r){var o,i,a,u,c,s,d;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=(o=void 0===r?{}:r).headers,c=o.body,"POST"===(a=void 0===(i=o.method)?"GET":i)&&(u=t({"Content-Type":"application/json"},u)),e.next=4,fetch(""+We.apiUrl+n,{method:a,headers:u,body:c?JSON.stringify(c):void 0});case 4:return s=e.sent,e.next=7,Ne(s.json());case 7:if(d=e.sent[1],s.ok){e.next=11;break}throw d||new Error(s.statusText);case 11:return e.abrupt("return",d);case 12:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Le={},De=function(){var e=n(v.mark((function e(n){var t,r,o,i,a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.accountId,!(r=n.paymentId)){e.next=5;break}o={paymentId:r},e.next=10;break;case 5:if(!t){e.next=9;break}o={accountId:t},e.next=10;break;case 9:throw new Error("You need to provide paymentId or accountId");case 10:if(!((i=Oe(o))in Le)){e.next=13;break}return e.abrupt("return",Le[i]);case 13:return a=Me("/payment-methods?"+i),Le[i]=a,e.abrupt("return",a);case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Fe=function(){var e=n(v.mark((function e(n){var t,r,o,i,a,u,c,s;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.paymentMethod,o=n.sessionId,i=n.amount,a=n.currency,u=n.accountId,c=n.transactionType,!(r=n.paymentId)){e.next=5;break}s={paymentId:r,paymentMethod:t},e.next=10;break;case 5:if(!u){e.next=9;break}s={accountId:u,paymentMethod:t,sessionId:o,amount:i,currency:a,transactionType:c},e.next=10;break;case 9:throw new Error("You need to provide paymentId or accountId");case 10:return e.t0=Me,e.t1=Ie(),e.next=14,Re();case 14:return e.t2=e.sent,e.t3={"X-Client-Env":e.t1,"X-Client-Fingerprint":e.t2},e.t4=s,e.t5={method:"POST",headers:e.t3,body:e.t4},e.abrupt("return",(0,e.t0)("/tokens",e.t5));case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),qe=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Me("/payments/"+n+"/client-get"));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Be=function(){var e=n(v.mark((function e(n){var t,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.paymentId,r=s(n,["paymentId"]),e.t0=Me,e.t1="/payments/"+t+"/client-confirm",e.t2=Ie(),e.next=6,Re();case 6:return e.t3=e.sent,e.t4={"X-Client-Env":e.t2,"X-Client-Fingerprint":e.t3},e.t5=r,e.t6={method:"POST",headers:e.t4,body:e.t5},e.abrupt("return",(0,e.t0)(e.t1,e.t6));case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ze=function(){var e=n(v.mark((function e(n){var t,r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.signature,r=s(n,["signature"]),e.t0=Me,e.t1=Ie(),e.next=5,Re();case 5:return e.t2=e.sent,e.t3=t,e.t4={"X-Client-Env":e.t1,"X-Client-Fingerprint":e.t2,"Client-Signature":e.t3},e.t5=r,e.t6={method:"POST",headers:e.t4,body:e.t5},e.abrupt("return",(0,e.t0)("/client-payments",e.t6));case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ue=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Me("/payments/"+n.paymentId+"/client-receipt",{method:"POST",body:{customerEmail:n.customerEmail,signature:n.signature,language:n.language}}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ye=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Me("/apple-pay/sessions",{method:"POST",body:n}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ve={__proto__:null,getPaymentMethods:De,createToken:Fe,getPayment:qe,confirmPayment:Be,createPayment:ze,sendPaymentReceipt:Ue,createApplePaySession:Ye,calculateFinancing:function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Me("/cofidis/calculate-financing",{method:"POST",body:n}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),validateBizumPhone:function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Me("/bizum/validate-phone",{method:"POST",body:n}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},He=w((function(e,n){var t;"undefined"!=typeof self&&self,t=function(){return 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,n,t){function r(e){return"[object RegExp]"==={}.toString.call(e)}t.r(n),t.d(n,"Promise",(function(){return R})),t.d(n,"TYPES",(function(){return He})),t.d(n,"ProxyWindow",(function(){return be})),t.d(n,"setup",(function(){return Ye})),t.d(n,"destroy",(function(){return Ve})),t.d(n,"serializeMessage",(function(){return qe})),t.d(n,"deserializeMessage",(function(){return Be})),t.d(n,"createProxyWindow",(function(){return ze})),t.d(n,"toProxyWindow",(function(){return Ue})),t.d(n,"on",(function(){return Le})),t.d(n,"once",(function(){return De})),t.d(n,"send",(function(){return Fe})),t.d(n,"markWindowKnown",(function(){return de})),t.d(n,"cleanUpWindow",(function(){return Ge})),t.d(n,"bridge",(function(){}));var o="Call was rejected by callee.\r\n";function i(e){return void 0===e&&(e=window),"about:"===e.location.protocol}function a(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function u(e){if(void 0===e&&(e=window),e&&!a(e))try{return e.opener}catch(e){}}function c(e){try{return!0}catch(e){}return!1}function s(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=n.protocol;if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=a(e);return r&&c()?s(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function d(e){void 0===e&&(e=window);var n=s(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function f(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(i(e)&&c())return!0}catch(e){}try{if(s(e)===s(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(i(e)&&c())return!0;if(d(window)===d(e))return!0}catch(e){}return!1}function l(e){if(!f(e))throw new Error("Expected window to be same domain");return e}function p(e,n){if(!e||!n)return!1;var t=a(n);return t?t===e:-1!==function(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}(n).indexOf(e)}function h(e){var n,t,r=[];try{n=e.frames}catch(t){n=e}try{t=n.length}catch(e){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=n[o]}catch(e){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=n[a]}catch(e){return r}if(!u)return r;r.push(u)}return r}var w=[],m=[];function v(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==o}if(n&&f(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(w,e);if(-1!==t){var r=m[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function y(e){return void 0===e&&(e=window),u(e=e||window)||a(e)||void 0}function g(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(r(n))return!1;if(Array.isArray(n))return!1}return r(e)?r(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!r(n)&&e.some((function(e){return g(e,n)})))}function E(e){try{if(e===window)return!0}catch(e){if(e&&e.message===o)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===o)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===o)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===o)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===o)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===o)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function b(e){try{e.close()}catch(e){}}function P(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var _,O=[],S=[],x=0;function T(){if(!x&&_){var e=_;_=null,e.resolve()}}function I(){x+=1}function C(){x-=1,T()}var R=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;I();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return C(),void this.reject(e)}C(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(P(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(P(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===O.indexOf(e)){O.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<S.length;t++)S[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,I();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var a=r[i],u=a.onSuccess,c=a.onError,s=a.promise,d=void 0;if(n)try{d=u?u(this.value):this.value}catch(e){s.reject(e);continue}else if(t){if(!c){s.reject(this.error);continue}try{d=c(this.error)}catch(e){s.reject(e);continue}}d instanceof e&&(d.resolved||d.rejected)?(d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0):P(d)?d instanceof e&&(d.resolved||d.rejected)?d.resolved?s.resolve(d.value):s.reject(d.error):o(d,s):s.resolve(d)}r.length=0,this.dispatching=!1,C()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.resolve=function(n){return n instanceof e?n:P(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[];if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},a=0;a<n.length;a++){var u=n[a];if(u instanceof e){if(u.resolved){o[a]=u.value,r-=1;continue}}else if(!P(u)){o[a]=u,r-=1;continue}i(a,e.resolve(u),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];P(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return S.push(e),{cancel:function(){S.splice(S.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;I();try{o=n.apply(t,r||[])}catch(n){return C(),e.reject(n)}return C(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||P(n)},e.flush=function(){return n=_=_||new e,T(),n;var n},e}();function N(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var k,A=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>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<n.length;t++){var r=n[t];if(E(r)&&v(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!E(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=N(i,e);-1===u?(i.push(e),a.push(n)):a[u]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=N(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=N(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==N(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function j(e){return e.name||e.__name__||e.displayName||"anonymous"}function W(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function M(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})));if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function L(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(k=k||new A,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=k.get(e);return n||(n=typeof e+":"+M(),k.set(e,n)),n}(n)+"]":n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function D(){return{}}var F=0,q=0;function B(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=F;F+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s;u<q&&(t=null,r=null,u=F,F+=1),s=i?(r=r||new A).getOrSet(this,D):t=t||{};var d=L(o),f=s[d];if(f&&a&&Date.now()-f.time<a&&(delete s[d],f=null),f)return f.value;var l=Date.now(),p=e.apply(this,arguments);return s[d]={time:l,value:p},p};return c.reset=function(){t=null,r=null},W(c,(n.name||j(e))+"::memoized")}function z(e){var n={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=L(i);return n.hasOwnProperty(u)||(n[u]=R.try((function(){return e.apply(r,t)})).finally((function(){delete n[u]}))),n[u]}return t.reset=function(){n={}},W(t,j(e)+"::promiseMemoized")}function U(){}function Y(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";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: "+Y(e,n+1)}}function V(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function H(e){return"[object RegExp]"==={}.toString.call(e)}function G(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function J(){return Boolean(document.body)&&"complete"===document.readyState}function $(){return Boolean(document.body)&&"interactive"===document.readyState}B.clear=function(){q=F},B((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})),B((function(){return new R((function(e){if(J()||$())return e();var n=setInterval((function(){if(J()||$())return clearInterval(n),e()}),10)}))}));var Z="undefined"!=typeof document?document.currentScript:null,X=B((function(){if(Z)return Z;if(Z=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return Z;throw new Error("Can not determine current script")})),K=M();function Q(e){void 0===e&&(e=window);var n="__post_robot_10_0_42__";return e!==window?e[n]:e[n]=e[n]||{}}B((function(){var e;try{e=X()}catch(e){return K}var n=e.getAttribute("data-uid");return n&&"string"==typeof n||(n=e.getAttribute("data-uid-auto"))&&"string"==typeof n||(n=M(),e.setAttribute("data-uid-auto",n)),n}));var ee=function(){return{}};function ne(e,n){return void 0===e&&(e="store"),void 0===n&&(n=ee),G(Q(),e,(function(){var e=n();return{has:function(n){return e.hasOwnProperty(n)},get:function(n,t){return e.hasOwnProperty(n)?e[n]:t},set:function(n,t){return e[n]=t,t},del:function(n){delete e[n]},getOrSet:function(n,t){return G(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var te,re=function(){};function oe(){var e=Q();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new re,e.WINDOW_WILDCARD}function ie(e,n){return void 0===e&&(e="store"),void 0===n&&(n=ee),ne("windowStore").getOrSet(e,(function(){var t=new A,r=function(e){return t.getOrSet(e,n)};return{has:function(n){return r(n).hasOwnProperty(e)},get:function(n,t){var o=r(n);return o.hasOwnProperty(e)?o[e]:t},set:function(n,t){return r(n)[e]=t,t},del:function(n){delete r(n)[e]},getOrSet:function(n,t){return G(r(n),e,t)}}}))}function ae(){return ne("instance").getOrSet("instanceID",M)}function ue(e,n){var t=n.domain,r=ie("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=R.resolve({domain:t});return r.set(e,i),i}function ce(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:ae()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return ue(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function se(e,n){var t=n.send;return ie("windowInstanceIDPromises").getOrSet(e,(function(){return ce(e,{send:t}).then((function(e){return e.instanceID}))}))}function de(e){ie("knownWindows").set(e,!0)}function fe(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function le(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function pe(e,n){return{__type__:e,__val__:n}}var he,we=((te={}).function=function(){},te.error=function(e){return pe("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},te.promise=function(){},te.regex=function(e){return pe("regex",e.source)},te.date=function(e){return pe("date",e.toJSON())},te.array=function(e){return e},te.object=function(e){return e},te.string=function(e){return e},te.number=function(e){return e},te.boolean=function(e){return e},te.null=function(e){return e},te),me={},ve=((he={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},he.error=function(e){var n=e.stack,t=e.code,r=e.data,o=new Error(e.message);return o.code=t,r&&(o.data=r),o.stack=n+"\n\n"+o.stack,o},he.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},he.regex=function(e){return new RegExp(e)},he.date=function(e){return new Date(e)},he.array=function(e){return e},he.object=function(e){return e},he.string=function(e){return e},he.number=function(e){return e},he.boolean=function(e){return e},he.null=function(e){return e},he),ye={};function ge(){for(var e=ne("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Ee(e,n){var t=n.send,r=n.id,o=void 0===r?M():r,i=e.then((function(e){if(f(e))return l(e).name})),a=e.then((function(e){if(v(e))throw new Error("Window is closed, can not determine type");return u(e)?"popup":"iframe"}));return i.catch(U),a.catch(U),{id:o,getType:function(){return a},getInstanceID:z((function(){return e.then((function(e){return se(e,{send:t})}))})),close:function(){return e.then(b)},getName:function(){return e.then((function(e){if(!v(e))return f(e)?l(e).name:i}))},focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return v(e)}))},setLocation:function(n){return e.then((function(e){var t=window.location.protocol+"//"+window.location.host;if(0===n.indexOf("/"))n=""+t+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(t))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if(f(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){var t=f(e),r=function(e){if(f(e))return l(e).frameElement;for(var n=0,t=document.querySelectorAll("iframe");n<t.length;n++){var r=t[n];if(r&&r.contentWindow&&r.contentWindow===e)return r}}(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);l(e).name=n,r&&r.setAttribute("name",n),i=R.resolve(n)}))}}}new R((function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval((function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)}),10)}));var be=function(){function e(e){var n=e.send,t=e.win,r=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new R,this.serializedWindow=r||Ee(this.actualWindowPromise,{send:n}),ne("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:n})}var n=e.prototype;return n.getID=function(){return this.serializedWindow.id},n.getType=function(){return this.serializedWindow.getType()},n.isPopup=function(){return this.getType().then((function(e){return"popup"===e}))},n.setLocation=function(e){var n=this;return this.serializedWindow.setLocation(e).then((function(){return n}))},n.getName=function(){return this.serializedWindow.getName()},n.setName=function(e){var n=this;return this.serializedWindow.setName(e).then((function(){return n}))},n.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},n.focus=function(){var e=this,n=this.isPopup(),t=this.getName(),r=R.hash({isPopup:n,name:t}).then((function(e){var n=e.name;e.isPopup&&n&&window.open("",n)})),o=this.serializedWindow.focus();return R.all([r,o]).then((function(){return e}))},n.isClosed=function(){return this.serializedWindow.isClosed()},n.getWindow=function(){return this.actualWindow},n.setWindow=function(e,n){var t=n.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Ee(this.actualWindowPromise,{send:t,id:this.getID()}),ie("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return R.try((function(){return t.actualWindow?e===t.actualWindow:R.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:se(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&v(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return ge(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return ge(),ne("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!E(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(ge(),e.isProxyWindow(n))return n;var o=n;return ie("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Pe(e,n,t,r,o){var i=ie("methodStore"),a=ne("proxyWindowMethods");be.isProxyWindow(r)?a.set(e,{val:n,name:t,domain:o,source:r}):(a.del(e),i.getOrSet(r,(function(){return{}}))[e]={domain:o,name:t,val:n,source:r})}function _e(e,n){var t=ie("methodStore"),r=ne("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Oe(e,n,t,r,o){var i,a,u;a=(i={on:o.on,send:o.send}).on,u=i.send,ne("builtinListeners").getOrSet("functionCalls",(function(){return a("postrobot_method",{domain:"*"},(function(e){var n=e.source,t=e.origin,r=e.data,o=r.id,i=r.name,a=_e(n,o);if(!a)throw new Error("Could not find method '"+i+"' with id: "+r.id+" in "+d(window));var c=a.source,s=a.domain,f=a.val;return R.try((function(){if(!g(s,t))throw new Error("Method '"+r.name+"' domain "+JSON.stringify(H(a.domain)?a.domain.source:a.domain)+" does not match origin "+t+" in "+d(window));if(be.isProxyWindow(c))return c.matchWindow(n,{send:u}).then((function(e){if(!e)throw new Error("Method call '"+r.name+"' failed - proxy window does not match source in "+d(window))}))})).then((function(){return f.apply({source:n,origin:t},r.args)}),(function(e){return R.try((function(){if(f.onError)return f.onError(e)})).then((function(){var n,t;throw e.stack&&(e.stack="Remote call to "+i+"("+(void 0===(n=r.args)&&(n=[]),(t=n,[].slice.call(t)).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var c=t.__id__||M();e=be.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+"::")),be.isProxyWindow(e)?(Pe(c,t,s,e,n),e.awaitWindow().then((function(e){Pe(c,t,s,e,n)}))):Pe(c,t,s,e,n),pe("cross_domain_function",{id:c,name:s})}function Se(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=me);var t=JSON.stringify(e,(function(e){var t=this[e];if(fe(this))return t;var r=le(t);if(!r)return t;var o=n[r]||we[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 pe("cross_domain_zalgo_promise",{then:Oe(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 Oe(e,n,t,r,{on:i,send:a})},o.object=function(e){return E(e)||be.isProxyWindow(e)?pe("cross_domain_window",be.serialize(e,{send:a})):e},o))}function xe(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=ye),"undefined"!==e)return JSON.parse(e,(function(e,t){if(fe(this))return t;var r,o;if(fe(t)?(r=t.__type__,o=t.__val__):(r=le(t),o=t),!r)return o;var i=n[r]||ve[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new R(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 be.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=_e(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:d()},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 be.deserialize(e,{send:i})},o))}var Te={};function Ie(e,n,t,r){var o=r.on,i=r.send;return R.try((function(){var r=ie().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||R.flush().then((function(){if(v(e))throw new Error("Window is closed");var t,a=Se(e,n,((t={}).__post_robot_10_0_42__=r.buffer||[],t),{on:o,send:i});delete r.buffer;for(var u=Object.keys(Te),c=[],s=0;s<u.length;s++){var d=u[s];try{Te[d](e,a,n)}catch(e){c.push(e)}}if(c.length===u.length)throw new Error("All post-robot messaging strategies failed:\n\n"+c.map((function(e,n){return n+". "+Y(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(U)}function Ce(e){return ne("responseListeners").get(e)}function Re(e){ne("responseListeners").del(e)}function Ne(e){return ne("erroredResponseListeners").has(e)}function ke(e){var n=e.name,t=e.win,r=e.domain,o=ie("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,oe()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[n];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var d=0,f=s.__domain_regex__;d<f.length;d++){var l=f[d],p=l.listener;if(g(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function Ae(e,n,t,r){var o=r.on,i=r.send,a=ke({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return R.flush().then((function(){if(!t.fireAndForget&&!v(e))try{return Ie(e,n,{id:M(),origin:d(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+d()+"\n\n"+Y(e))}}))}return R.all([R.flush().then((function(){if(!t.fireAndForget&&!v(e))try{return Ie(e,n,{id:M(),origin:d(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+d()+"\n\n"+Y(e))}})),R.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!g(a.domain,n))throw new Error("Request origin "+n+" does not match domain "+a.domain.toString());return a.handler({source:e,origin:n,data:t.data})})).then((function(e){return c("success",e)}),(function(e){return c("error",null,e)}))]).then(U).catch((function(e){if(a&&a.handleError)return a.handleError(e);throw e}))}function je(e,n,t){if(!Ne(t.hash)){var r=Ce(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!g(r.domain,n))throw new Error("Ack origin "+n+" does not match domain "+r.domain.toString());if(e!==r.win)throw new Error("Ack source does not match registered window")}catch(e){r.promise.reject(e)}r.ack=!0}}function We(e,n,t){if(!Ne(t.hash)){var o,i=Ce(t.hash);if(!i)throw new Error("No handler found for post message response for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!g(i.domain,n))throw new Error("Response origin "+n+" does not match domain "+(o=i.domain,Array.isArray(o)?"("+o.join(" | ")+")":r(o)?"RegExp("+o.toString():o.toString()));if(e!==i.win)throw new Error("Response source does not match registered window");Re(t.hash),"error"===t.ack?i.promise.reject(t.error):"success"===t.ack&&i.promise.resolve({source:e,origin:n,data:t.data})}}function Me(e,n){var t=n.on,r=n.send,o=ne("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,a=e.origin,u=function(e,n,t,r){var o,i=r.on,a=r.send;try{o=xe(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o.__post_robot_10_0_42__;if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){de(i);for(var c=0;c<u.length;c++){var s=u[c];if(o.has(s.id))return;if(o.set(s.id,!0),v(i)&&!s.fireAndForget)return;0===s.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===s.type?Ae(i,a,s,{on:t,send:r}):"postrobot_message_response"===s.type?We(i,a,s):"postrobot_message_ack"===s.type&&je(i,a,s)}catch(e){setTimeout((function(){throw e}),0)}}}}function Le(e,n,t){if(!e)throw new Error("Expected name");if("function"==typeof(n=n||{})&&(t=n,n={}),!t)throw new Error("Expected handler");(n=n||{}).name=e,n.handler=t||n.handler;var r=n.window,o=n.domain,i=function e(n,t){var r=n.name,o=n.win,i=n.domain,a=ie("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(Array.isArray(o)){for(var u=[],c=0,s=o;c<s.length;c++)u.push(e({name:r,domain:i,win:s[c]},t));return{cancel:function(){for(var e=0;e<u.length;e++)u[e].cancel()}}}if(Array.isArray(i)){for(var d=[],f=0,l=i;f<l.length;f++)d.push(e({name:r,win:o,domain:l[f]},t));return{cancel:function(){for(var e=0;e<d.length;e++)d[e].cancel()}}}var p=ke({name:r,win:o,domain:i});if(o&&"*"!==o||(o=oe()),i=i||"*",p)throw o&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(o===oe()?"wildcard":"specified")+" window"):o?new Error("Request listener already exists for "+r+" for "+(o===oe()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var h,w,m=a.getOrSet(o,(function(){return{}})),v=G(m,r,(function(){return{}})),y=i.toString();return H(i)?(h=G(v,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):v[y]=t,{cancel:function(){delete v[y],w&&(h.splice(h.indexOf(w,1)),h.length||delete v.__domain_regex__),Object.keys(v).length||delete m[r],o&&!Object.keys(m).length&&a.del(o)}}}({name:e,win:r,domain:o},{handler:n.handler,handleError:n.errorHandler||function(e){throw e},window:r,domain:o||"*",name:e});return{cancel:function(){i.cancel()}}}function De(e,n,t){"function"==typeof(n=n||{})&&(t=n,n={});var r,o=new R;return n.errorHandler=function(e){r.cancel(),o.reject(e)},r=Le(e,n,(function(e){if(r.cancel(),o.resolve(e),t)return t(e)})),o.cancel=r.cancel,o}Te.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)};var Fe=function e(n,t,r,o){var i=(o=o||{}).domain||"*",u=o.timeout||-1,c=o.timeout||5e3,s=o.fireAndForget||!1;return R.try((function(){if(function(e,n,t){if(!e)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!H(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(v(n))throw new Error("Can not send "+e+". Target window is closed")}(t,n,i),function(e,n){var t=y(n);if(t)return t===e;if(n===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(a(e)===e)return e;try{if(p(window,e)&&window.top)return window.top}catch(e){}try{if(p(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=function e(n){for(var t=[],r=0,o=h(n);r<o.length;r++){var i=o[r];t.push(i);for(var a=0,u=e(i);a<u.length;a++)t.push(u[a])}return t}(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(a(r)===r)return r}}(n)===n)return!1;for(var r=0,o=h(e);r<o.length;r++)if(o[r]===n)return!0;return!1}(window,n))return function(e,n,t){void 0===n&&(n=5e3),void 0===t&&(t="Window");var r=function(e){return ie("helloPromises").getOrSet(e,(function(){return new R}))}(e);return-1!==n&&(r=r.timeout(n,new Error(t+" did not load after "+n+"ms"))),r}(n,c)})).then((function(t){return function(e,n,t,r){var o=r.send;return R.try((function(){return"string"==typeof n?n:R.try((function(){return t||ce(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!g(n,n))throw new Error("Domain "+V(n)+" does not match "+V(n));return e}))}))}(n,i,(void 0===t?{}:t).domain,{send:e})})).then((function(o){var i,a=o,c="postrobot_method"===t&&r&&"string"==typeof r.name?r.name+"()":t,f=new R,l=t+"_"+M();if(!s){var p={name:t,win:n,domain:a,promise:f};!function(e,n){ne("responseListeners").set(e,n)}(l,p);var h=ie("requestPromises").getOrSet(n,(function(){return[]}));h.push(f),f.catch((function(){!function(e){ne("erroredResponseListeners").set(e,!0)}(l),Re(l)}));var w=function(e){return ie("knownWindows").get(e,!1)}(n)?1e4:2e3,m=u,y=w,g=m,E=(function e(){i=setTimeout((function(){v(n)?f.reject(new Error("Window closed for "+t+" before "+(p.ack?"response":"ack"))):p.cancelled?f.reject(new Error("Response listener was cancelled for "+t)):(y=Math.max(y-500,0),-1!==g&&(g=Math.max(g-500,0)),p.ack||0!==y?0===g&&f.reject(new Error("No response for postMessage "+c+" in "+d()+" in "+m+"ms")):f.reject(new Error("No ack for postMessage "+c+" in "+d()+" in "+w+"ms"))),e()}),500)}(),{cancel:function(){clearTimeout(i)}});f.finally((function(){E.cancel(),h.splice(h.indexOf(f,1))})).catch(U)}return Ie(n,a,{id:M(),origin:d(window),type:"postrobot_message_request",hash:l,name:t,data:r,fireAndForget:s},{on:Le,send:e}).then((function(){return s?f.resolve():f}),(function(e){throw new Error("Send request message failed for "+c+" in "+d()+"\n\n"+Y(e))}))}))};function qe(e,n,t){return Se(e,n,t,{on:Le,send:Fe})}function Be(e,n,t){return xe(e,n,t,{on:Le,send:Fe})}function ze(e){return new be({send:Fe,win:e})}function Ue(e){return be.toProxyWindow(e,{send:Fe})}function Ye(){var e,n,t,r;Q().initialized||(Q().initialized=!0,n=(e={on:Le,send:Fe}).on,t=e.send,(r=Q()).receiveMessage=r.receiveMessage||function(e){return Me(e,{on:n,send:t})},function(e){var n=e.on,t=e.send;ne().getOrSet("postMessageListener",(function(){return(e=window).addEventListener("message",r=function(e){!function(e,n){var t=n.on,r=n.send;R.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");Me({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}),{cancel:function(){e.removeEventListener("message",r)}};var e,r}))}({on:Le,send:Fe}),function(e){var n=e.on,t=e.send;ne("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return ue(e.source,{domain:e.origin}),{instanceID:ae()}})),r=y();return r&&ce(r,{send:t}).catch((function(e){})),e}))}({on:Le,send:Fe}))}function Ve(){var e;!function(){for(var e=ne("responseListeners"),n=0,t=e.keys();n<t.length;n++){var r=t[n],o=e.get(r);o&&(o.cancelled=!0),e.del(r)}}(),(e=ne().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_42__}var He=!0;function Ge(e){for(var n=0,t=ie("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(v(e)?"closed":"cleaned up")+" before response")).catch(U)}Ye()}])},e.exports=t()})),Ge=h(He),Je=m(Object.assign({__proto__:null,default:Ge,__moduleExports:He},Ge)),$e=w((function(e){e.exports=Je,e.exports.default=e.exports})),Ze=h(w((function(e,n){var t;"undefined"!=typeof self&&self,t=function(){return 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,n,t){function r(e,n){return(r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function a(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}t.r(n),t.d(n,"PopupOpenError",(function(){return ze})),t.d(n,"create",(function(){return Bt})),t.d(n,"destroy",(function(){return Yt})),t.d(n,"destroyComponents",(function(){return zt})),t.d(n,"destroyAll",(function(){return Ut})),t.d(n,"PROP_TYPE",(function(){return wt})),t.d(n,"PROP_SERIALIZATION",(function(){return mt})),t.d(n,"CONTEXT",(function(){return vt})),t.d(n,"EVENT",(function(){return yt}));var u,c=[],s=[],d=0;function f(){if(!d&&u){var e=u;u=null,e.resolve()}}function l(){d+=1}function p(){d-=1,f()}var h=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;l();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return p(),void this.reject(e)}p(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(a(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===c.indexOf(e)){c.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<s.length;t++)s[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,l();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,s=u.onError,d=u.promise,f=void 0;if(n)try{f=c?c(this.value):this.value}catch(e){d.reject(e);continue}else if(t){if(!s){d.reject(this.error);continue}try{f=s(this.error)}catch(e){d.reject(e);continue}}if(f instanceof e&&(f.resolved||f.rejected)){var h=f;h.resolved?d.resolve(h.value):d.reject(h.error),h.errorHandled=!0}else a(f)?f instanceof e&&(f.resolved||f.rejected)?f.resolved?d.resolve(f.value):d.reject(f.error):o(f,d):d.resolve(f)}r.length=0,this.dispatching=!1,p()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:a(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof e){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!a(c)){o[u]=c,r-=1;continue}i(u,e.resolve(c),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];a(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return s.push(e),{cancel:function(){s.splice(s.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;l();try{o=n.apply(t,r||[])}catch(n){return p(),e.reject(n)}return p(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||a(n)},e.flush=function(){return n=u=u||new e,f(),n;var n},e}();function w(e){return"[object RegExp]"==={}.toString.call(e)}var m={IFRAME:"iframe",POPUP:"popup"},v="Call was rejected by callee.\r\n";function y(e){return void 0===e&&(e=window),e.location.protocol}function g(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return y(e)}function E(e){return void 0===e&&(e=window),"about:"===g(e)}function b(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function P(e){if(void 0===e&&(e=window),e&&!b(e))try{return e.opener}catch(e){}}function _(e){try{return!0}catch(e){}return!1}function O(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=y(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=b(e);return r&&_()?O(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function S(e){void 0===e&&(e=window);var n=O(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function x(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(E(e)&&_())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===g(e)}(e)&&_())return!0}catch(e){}try{if(O(e)===O(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(E(e)&&_())return!0;if(S(window)===S(e))return!0}catch(e){}return!1}function T(e){if(!x(e))throw new Error("Expected window to be same domain");return e}function I(e,n){if(!e||!n)return!1;var t=b(n);return t?t===e:-1!==function(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}(n).indexOf(e)}function C(e){var n,t,r=[];try{n=e.frames}catch(t){n=e}try{t=n.length}catch(e){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=n[o]}catch(e){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=n[a]}catch(e){return r}if(!u)return r;r.push(u)}return r}function R(e){for(var n=[],t=0,r=C(e);t<r.length;t++){var o=r[t];n.push(o);for(var i=0,a=R(o);i<a.length;i++)n.push(a[i])}return n}function N(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(b(e)===e)return e;try{if(I(window,e)&&window.top)return window.top}catch(e){}try{if(I(e,window)&&window.top)return window.top}catch(e){}for(var n=0,t=R(e);n<t.length;n++){var r=t[n];try{if(r.top)return r.top}catch(e){}if(b(r)===r)return r}}function k(e){var n=N(e);if(!n)throw new Error("Can not determine top window");var t=[].concat(R(n),[n]);return-1===t.indexOf(e)&&(t=[].concat(t,[e],R(e))),t}var A=[],j=[];function W(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==v}if(n&&x(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(A,e);if(-1!==t){var r=j[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function M(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}function L(e,n){for(var t=C(e),r=0;r<t.length;r++){var o=t[r];try{if(x(o)&&o.name===n&&-1!==t.indexOf(o))return o}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function D(e,n){return e===P(n)}function F(e){return void 0===e&&(e=window),P(e=e||window)||b(e)||void 0}function q(e,n){for(var t=0;t<e.length;t++)for(var r=e[t],o=0;o<n.length;o++)if(r===n[o])return!0;return!1}function B(e){void 0===e&&(e=window);for(var n=0,t=e;t;)(t=b(t))&&(n+=1);return n}function z(e,n){var t=N(e)||e,r=N(n)||n;try{if(t&&r)return t===r}catch(e){}var o=k(e),i=k(n);if(q(o,i))return!0;var a=P(t),u=P(r);return a&&q(k(a),i)||u&&q(k(u),o),!1}function U(e,n){if("string"==typeof e){if("string"==typeof n)return"*"===e||n===e;if(w(n))return!1;if(Array.isArray(n))return!1}return w(e)?w(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!w(n)&&e.some((function(e){return U(e,n)})))}function Y(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):S()}function V(e,n,t,r){var o;return void 0===t&&(t=1e3),void 0===r&&(r=1/0),function i(){if(W(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))}(),{cancel:function(){o&&clearTimeout(o)}}}function H(e){try{if(e===window)return!0}catch(e){if(e&&e.message===v)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===v)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===v)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===v)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===v)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===v)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function G(e){if(0!==Y(e).indexOf("mock:"))return e;throw new Error("Mock urls not supported out of test mode")}function J(e){if(x(e))return T(e).frameElement;for(var n=0,t=document.querySelectorAll("iframe");n<t.length;n++){var r=t[n];if(r&&r.contentWindow&&r.contentWindow===e)return r}}function $(e){if(function(e){return void 0===e&&(e=window),Boolean(b(e))}(e)){var n=J(e);if(n&&n.parentElement)return void n.parentElement.removeChild(n)}try{e.close()}catch(e){}}function Z(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var X,K=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>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<n.length;t++){var r=n[t];if(H(r)&&W(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!H(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=Z(i,e);-1===u?(i.push(e),a.push(n)):a[u]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=Z(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=Z(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==Z(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ne(e,n,t){return(ne=ee()?Reflect.construct:function(e,n,t){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return t&&r(i,t.prototype),i}).apply(null,arguments)}function te(e){var n="function"==typeof Map?new Map:void 0;return(te=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return ne(e,arguments,Q(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)})(e)}function re(e){var n=!1;try{(e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument)&&(n=!0)}catch(e){}return n}function oe(e){return e.name||e.__name__||e.displayName||"anonymous"}function ie(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function ae(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function ue(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+ae((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ce(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(X=X||new K,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=X.get(e);return n||(n=typeof e+":"+ue(),X.set(e,n)),n}(n)+"]":re(n)?{}:n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function se(){return{}}var de=0,fe=0;function le(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=de;de+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s,d;u<fe&&(t=null,r=null,u=de,de+=1),s=i?(r=r||new K).getOrSet(this,se):t=t||{};try{d=ce(o)}catch(n){return e.apply(this,arguments)}var f=s[d];if(f&&a&&Date.now()-f.time<a&&(delete s[d],f=null),f)return f.value;var l=Date.now(),p=e.apply(this,arguments);return s[d]={time:l,value:p},p};return c.reset=function(){t=null,r=null},ie(c,(n.name||oe(e))+"::memoized")}function pe(e){var n={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=ce(i);return n.hasOwnProperty(u)||(n[u]=h.try((function(){return e.apply(r,t)})).finally((function(){delete n[u]}))),n[u]}return t.reset=function(){n={}},ie(t,oe(e)+"::promiseMemoized")}function he(){}function we(e){var n=!1;return ie((function(){if(!n)return n=!0,e.apply(this,arguments)}),oe(e)+"::once")}function me(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";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: "+me(e,n+1)}}function ve(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function ye(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 Ee(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function be(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Pe(e,n,t){if(Array.isArray(e)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof e&&null!==e&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){delete e[n];var r=t();return e[n]=r,r},set:function(t){delete e[n],e[n]=t}})}function _e(e){return[].slice.call(e)}function Oe(e){return"object"==typeof(n=e)&&null!==n&&"[object Object]"==={}.toString.call(e);var n}function Se(e){if(!Oe(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!Oe(t)&&!!t.hasOwnProperty("isPrototypeOf")}function xe(e,n,t){if(void 0===t&&(t=""),Array.isArray(e)){for(var r=e.length,o=[],i=function(r){Pe(o,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Se(i)||Array.isArray(i))&&(i=xe(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(Se(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return 1;Pe(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(Se(i)||Array.isArray(i))&&(i=xe(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function Te(e){return null!=e}function Ie(e){return"[object RegExp]"==={}.toString.call(e)}function Ce(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function Re(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=we((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 h.all(o).then(he)}};return o}function Ne(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}le.clear=function(){fe=de},le((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 ke=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 o(n,e),n}(te(Error));function Ae(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function je(){return Boolean(document.body)&&"complete"===document.readyState}function We(){return Boolean(document.body)&&"interactive"===document.readyState}function Me(e){return encodeURIComponent(e)}function Le(e){return function(n,t,r){void 0===r&&(r=[]);var o=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},i=ce(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<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}.apply(void 0,r)}(Le,0,[e])}function De(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?(void 0===(t=i({},Le(e),n))&&(t={}),Object.keys(t).filter((function(e){return"string"==typeof t[e]||"boolean"==typeof t[e]})).map((function(e){var n=t[e];if("string"!=typeof n&&"boolean"!=typeof n)throw new TypeError("Invalid type for query");return Me(e)+"="+Me(n.toString())})).join("&")):e;var t}function Fe(e,n){return void 0===n&&(n=document),re(e)?e:"string"==typeof e?n.querySelector(e):void 0}function qe(e){return new h((function(n,t){var r=ve(e),o=Fe(e);if(o)return n(o);if(je())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){if(o=Fe(e))n(o),clearInterval(i);else if(je())return clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))}),10)}))}le((function(){return new h((function(e){if(je()||We())return e();var n=setInterval((function(){if(je()||We())return clearInterval(n),e()}),10)}))}));var Be,ze=function(e){function n(){return e.apply(this,arguments)||this}return o(n,e),n}(ke);function Ue(e){if((Be=Be||new K).has(e)){var n=Be.get(e);if(n)return n}var t=new h((function(n,t){e.addEventListener("load",(function(){!function(e){if(function(){for(var e=0;e<A.length;e++){var n=!1;try{n=A[e].closed}catch(e){}n&&(j.splice(e,1),A.splice(e,1))}}(),e&&e.contentWindow)try{A.push(e.contentWindow),j.push(e)}catch(e){}}(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return Be.set(e,t),t}function Ye(e){return Ue(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function Ve(e,n){void 0===e&&(e={});var t=e.style||{},r=function(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r,o,i,a=document.createElement(e);if(n.style&&ye(a.style,n.style),n.class&&(a.className=n.class.join(" ")),n.id&&a.setAttribute("id",n.id),n.attributes)for(var u=0,c=Object.keys(n.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,n.attributes[s])}if(n.styleSheet&&(r=a,o=n.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),n.html){if("iframe"===e)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=n.html}return a}("iframe",{attributes:i({allowTransparency:"true"},e.attributes||{}),style:i({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",ue()),Ue(r),n&&function(e,n){void 0===n&&(n=document);var t=Fe(e,n);if(t)return t;throw new Error("Can not find element: "+ve(e))}(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function He(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function Ge(e){e.style.setProperty("display","")}function Je(e){e.style.setProperty("display","none","important")}function $e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ze(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function Xe(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,f=void 0===d?window:d,l=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:l,height:p});var w,m,v=function(){if(!h&&function(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==l||u&&r!==p)&&n({width:t,height:r}),l=t,p=r}};return f.addEventListener("resize",v),void 0!==f.ResizeObserver?((w=new f.ResizeObserver(v)).observe(e),m=Ee(v,10*s)):void 0!==f.MutationObserver?((w=new f.MutationObserver(v)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=Ee(v,10*s)):m=Ee(v,s),{cancel:function(){h=!0,w.disconnect(),window.removeEventListener("resize",v),m.cancel()}}}function Ke(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var Qe="undefined"!=typeof document?document.currentScript:null,en=le((function(){if(Qe)return Qe;if(Qe=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return Qe;throw new Error("Can not determine current script")})),nn=ue();function tn(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function rn(e){if("number"==typeof e)return e;var n=e.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+e);return parseInt(n[1],10)}function on(e){return rn(e)+"px"}function an(e){return"number"==typeof e?on(e):tn(e)?e:on(e)}function un(e,n){if("number"==typeof e)return e;if(tn(e))return parseInt(n*rn(e)/100,10);if("string"==typeof(t=e)&&/^[0-9]+px$/.test(t))return rn(e);var t;throw new Error("Can not normalize dimension: "+e)}function cn(e){void 0===e&&(e=window);var n="__post_robot_11_0_0__";return e!==window?e[n]:e[n]=e[n]||{}}le((function(){var e;try{e=en()}catch(e){return nn}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var t=function(e){for(var n="",t=0;t<e.length;t++){var r=e[t].charCodeAt(0)*t;e[t+1]&&(r+=e[t+1].charCodeAt(0)*(t-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+t.slice(t.length-30)}else n=ue();return e.setAttribute("data-uid-auto",n),n}));var sn=function(){return{}};function dn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=sn),Ce(cn(),e,(function(){var e=n();return{has:function(n){return e.hasOwnProperty(n)},get:function(n,t){return e.hasOwnProperty(n)?e[n]:t},set:function(n,t){return e[n]=t,t},del:function(n){delete e[n]},getOrSet:function(n,t){return Ce(e,n,t)},reset:function(){e=n()},keys:function(){return Object.keys(e)}}}))}var fn,ln=function(){};function pn(){var e=cn();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new ln,e.WINDOW_WILDCARD}function hn(e,n){return void 0===e&&(e="store"),void 0===n&&(n=sn),dn("windowStore").getOrSet(e,(function(){var t=new K,r=function(e){return t.getOrSet(e,n)};return{has:function(n){return r(n).hasOwnProperty(e)},get:function(n,t){var o=r(n);return o.hasOwnProperty(e)?o[e]:t},set:function(n,t){return r(n)[e]=t,t},del:function(n){delete r(n)[e]},getOrSet:function(n,t){return Ce(r(n),e,t)}}}))}function wn(){return dn("instance").getOrSet("instanceID",ue)}function mn(e,n){var t=n.domain,r=hn("helloPromises"),o=r.get(e);o&&o.resolve({domain:t});var i=h.resolve({domain:t});return r.set(e,i),i}function vn(e,n){return(0,n.send)(e,"postrobot_hello",{instanceID:wn()},{domain:"*",timeout:-1}).then((function(n){var t=n.origin,r=n.data.instanceID;return mn(e,{domain:t}),{win:e,domain:t,instanceID:r}}))}function yn(e,n){var t=n.send;return hn("windowInstanceIDPromises").getOrSet(e,(function(){return vn(e,{send:t}).then((function(e){return e.instanceID}))}))}function gn(e,n,t){void 0===n&&(n=5e3),void 0===t&&(t="Window");var r=function(e){return hn("helloPromises").getOrSet(e,(function(){return new h}))}(e);return-1!==n&&(r=r.timeout(n,new Error(t+" did not load after "+n+"ms"))),r}function En(e){hn("knownWindows").set(e,!0)}function bn(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function Pn(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function _n(e,n){return{__type__:e,__val__:n}}var On,Sn=((fn={}).function=function(){},fn.error=function(e){return _n("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},fn.promise=function(){},fn.regex=function(e){return _n("regex",e.source)},fn.date=function(e){return _n("date",e.toJSON())},fn.array=function(e){return e},fn.object=function(e){return e},fn.string=function(e){return e},fn.number=function(e){return e},fn.boolean=function(e){return e},fn.null=function(e){return e},fn[void 0]=function(e){return _n("undefined",e)},fn),xn={},Tn=((On={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},On.error=function(e){var n=e.stack,t=e.code,r=e.data,o=new Error(e.message);return o.code=t,r&&(o.data=r),o.stack=n+"\n\n"+o.stack,o},On.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},On.regex=function(e){return new RegExp(e)},On.date=function(e){return new Date(e)},On.array=function(e){return e},On.object=function(e){return e},On.string=function(e){return e},On.number=function(e){return e},On.boolean=function(e){return e},On.null=function(e){return e},On[void 0]=function(){},On),In={};function Cn(){return!!M(window).match(/MSIE|trident|edge\/12|edge\/13/i)}function Rn(e){return!z(window,e)}function Nn(e,n){if(e){if(S()!==Y(e))return!0}else if(n&&!x(n))return!0;return!1}function kn(e){var n=e.win,t=e.domain;return!(!Cn()||t&&!Nn(t,n)||n&&!Rn(n))}function An(e){return"__postrobot_bridge___"+(e=e||Y(e)).replace(/[^a-zA-Z0-9]+/g,"_")}function jn(){return Boolean(window.name&&window.name===An(S()))}var Wn=new h((function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval((function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)}),10)}));function Mn(e){hn("remoteWindowPromises").getOrSet(e,(function(){return new h}))}function Ln(e){var n=hn("remoteWindowPromises").get(e);if(!n)throw new Error("Remote window promise not found");return n}function Dn(e,n,t){Ln(e).resolve((function(r,o,i){if(r!==e)throw new Error("Remote window does not match window");if(!U(o,n))throw new Error("Remote domain "+o+" does not match domain "+n);t.fireAndForget(i)}))}function Fn(e,n){Ln(e).reject(n).catch(he)}function qn(e){for(var n=e.win,t=e.name,r=e.domain,o=dn("popupWindowsByName"),i=hn("popupWindowsByWin"),a=0,u=o.keys();a<u.length;a++){var c=u[a],s=o.get(c);s&&!W(s.win)||o.del(c)}if(W(n))return{win:n,name:t,domain:r};var d=i.getOrSet(n,(function(){return t?o.getOrSet(t,(function(){return{win:n,name:t}})):{win:n}}));if(d.win&&d.win!==n)throw new Error("Different window already linked for window: "+(t||"undefined"));return t&&(d.name=t,o.set(t,d)),r&&(d.domain=r,Mn(n)),i.set(n,d),d}function Bn(e){var n,t=e.on,r=e.send,o=e.receiveMessage;n=window.open,window.open=function(e,t,r,o){var i=n.call(this,G(e),t,r,o);return i?(qn({win:i,name:t,domain:e?Y(e):null}),i):i},function(e){var n=e.on,t=e.send,r=e.receiveMessage,o=dn("popupWindowsByName");n("postrobot_open_tunnel",(function(e){var i=e.source,a=e.origin,u=e.data,c=dn("bridges").get(a);if(!c)throw new Error("Can not find bridge promise for domain "+a);return c.then((function(e){if(i!==e)throw new Error("Message source does not matched registered bridge for domain "+a);if(!u.name)throw new Error("Register window expected to be passed window name");if(!u.sendMessage)throw new Error("Register window expected to be passed sendMessage method");if(!o.has(u.name))throw new Error("Window with name "+u.name+" does not exist, or was not opened by this window");var c=function(){return o.get(u.name)};if(!c().domain)throw new Error("We do not have a registered domain for window "+u.name);if(c().domain!==a)throw new Error("Message origin "+a+" does not matched registered window origin "+(c().domain||"unknown"));return Dn(c().win,a,u.sendMessage),{sendMessage:function(e){if(window&&!window.closed&&c()){var o=c().domain;if(o)try{r({data:e,origin:o,source:c().win},{on:n,send:t})}catch(e){h.reject(e)}}}}}))}))}({on:t,send:r,receiveMessage:o}),function(e){var n=e.send;cn(window).openTunnelToParent=function(e){var t=e.name,r=e.source,o=e.canary,i=e.sendMessage,a=dn("tunnelWindows"),u=b(window);if(!u)throw new Error("No parent window found to open tunnel to");var c=function(e){var n=e.name,t=e.source,r=e.canary,o=e.sendMessage;!function(){for(var e=dn("tunnelWindows"),n=0,t=e.keys();n<t.length;n++){var r=t[n];W(e[r].source)&&e.del(r)}}();var i=ue();return dn("tunnelWindows").set(i,{name:n,source:t,canary:r,sendMessage:o}),i}({name:t,source:r,canary:o,sendMessage:i});return n(u,"postrobot_open_tunnel",{name:t,sendMessage:function(){var e=a.get(c);if(e&&e.source&&!W(e.source)){try{e.canary()}catch(e){return}e.sendMessage.apply(this,arguments)}}},{domain:"*"})}}({send:r}),function(e){var n=e.on,t=e.send,r=e.receiveMessage;h.try((function(){var e,o=P(window);if(o&&kn({win:o}))return Mn(o),(e=o,hn("remoteBridgeAwaiters").getOrSet(e,(function(){return h.try((function(){var n=L(e,An(S()));if(n)return x(n)&&cn(T(n))?n:new h((function(e){var t,r;t=setInterval((function(){if(n&&x(n)&&cn(T(n)))return clearInterval(t),clearTimeout(r),e(n)}),100),r=setTimeout((function(){return clearInterval(t),e()}),2e3)}))}))}))).then((function(e){return e?window.name?cn(T(e)).openTunnelToParent({name:window.name,source:window,canary:function(){},sendMessage:function(e){try{window}catch(e){return}if(window&&!window.closed)try{r({data:e,origin:this.origin,source:this.source},{on:n,send:t})}catch(e){h.reject(e)}}}).then((function(e){var n=e.source,t=e.origin,r=e.data;if(n!==o)throw new Error("Source does not match opener");Dn(n,t,r.sendMessage)})).catch((function(e){throw Fn(o,e),e})):Fn(o,new Error("Can not register with opener: window does not have a name")):Fn(o,new Error("Can not register with opener: no bridge found in opener"))}))}))}({on:t,send:r,receiveMessage:o})}function zn(){for(var e=dn("idToProxyWindow"),n=0,t=e.keys();n<t.length;n++){var r=t[n];e.get(r).shouldClean()&&e.del(r)}}function Un(e,n){var t=n.send,r=n.id,o=void 0===r?ue():r,i=e.then((function(e){if(x(e))return T(e).name})),a=e.then((function(e){if(W(e))throw new Error("Window is closed, can not determine type");return P(e)?m.POPUP:m.IFRAME}));i.catch(he),a.catch(he);var u=function(){return e.then((function(e){if(!W(e))return x(e)?T(e).name:i}))};return{id:o,getType:function(){return a},getInstanceID:pe((function(){return e.then((function(e){return yn(e,{send:t})}))})),close:function(){return e.then($)},getName:u,focus:function(){return e.then((function(e){e.focus()}))},isClosed:function(){return e.then((function(e){return W(e)}))},setLocation:function(n,t){return void 0===t&&(t={}),e.then((function(e){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===n.indexOf("/"))n=""+r+n;else if(!n.match(/^https?:\/\//)&&0!==n.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(n));if("post"===i)return u().then((function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var n=e.url,t=e.target,r=e.body,o=e.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",n),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,d=c[u],f=document.createElement("input");f.setAttribute("name",d),f.setAttribute("value",null==(s=r[d])?void 0:s.toString()),a.appendChild(f)}Ae().appendChild(a),a.submit(),Ae().removeChild(a)}({url:n,target:e,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(x(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(n)}catch(e){}e.location=n}))},setName:function(n){return e.then((function(e){qn({win:e,name:n});var t=x(e),r=J(e);if(!t)throw new Error("Can not set name for cross-domain window: "+n);T(e).name=n,r&&r.setAttribute("name",n),i=h.resolve(n)}))}}}var Yn=function(){function e(e){var n=e.send,t=e.win,r=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new h,this.serializedWindow=r||Un(this.actualWindowPromise,{send:n}),dn("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:n})}var n=e.prototype;return n.getID=function(){return this.serializedWindow.id},n.getType=function(){return this.serializedWindow.getType()},n.isPopup=function(){return this.getType().then((function(e){return e===m.POPUP}))},n.setLocation=function(e,n){var t=this;return this.serializedWindow.setLocation(e,n).then((function(){return t}))},n.getName=function(){return this.serializedWindow.getName()},n.setName=function(e){var n=this;return this.serializedWindow.setName(e).then((function(){return n}))},n.close=function(){var e=this;return this.serializedWindow.close().then((function(){return e}))},n.focus=function(){var e=this,n=this.isPopup(),t=this.getName(),r=h.hash({isPopup:n,name:t}).then((function(e){var n=e.name;e.isPopup&&n&&window.open("",n,"noopener")})),o=this.serializedWindow.focus();return h.all([r,o]).then((function(){return e}))},n.isClosed=function(){return this.serializedWindow.isClosed()},n.getWindow=function(){return this.actualWindow},n.setWindow=function(e,n){var t=n.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Un(this.actualWindowPromise,{send:t,id:this.getID()}),hn("winToProxyWindow").set(e,this)},n.awaitWindow=function(){return this.actualWindowPromise},n.matchWindow=function(e,n){var t=this,r=n.send;return h.try((function(){return t.actualWindow?e===t.actualWindow:h.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:yn(e,{send:r})}).then((function(n){var o=n.proxyInstanceID===n.knownWindowInstanceID;return o&&t.setWindow(e,{send:r}),o}))}))},n.unwrap=function(){return this.actualWindow||this},n.getInstanceID=function(){return this.serializedWindow.getInstanceID()},n.shouldClean=function(){return Boolean(this.actualWindow&&W(this.actualWindow))},n.serialize=function(){return this.serializedWindow},e.unwrap=function(n){return e.isProxyWindow(n)?n.unwrap():n},e.serialize=function(n,t){var r=t.send;return zn(),e.toProxyWindow(n,{send:r}).serialize()},e.deserialize=function(n,t){var r=t.send;return zn(),dn("idToProxyWindow").get(n.id)||new e({serializedWindow:n,send:r})},e.isProxyWindow=function(e){return Boolean(e&&!H(e)&&e.isProxyWindow)},e.toProxyWindow=function(n,t){var r=t.send;if(zn(),e.isProxyWindow(n))return n;var o=n;return hn("winToProxyWindow").get(o)||new e({win:o,send:r})},e}();function Vn(e,n,t,r,o){var i=hn("methodStore"),a=dn("proxyWindowMethods");Yn.isProxyWindow(r)?a.set(e,{val:n,name:t,domain:o,source:r}):(a.del(e),i.getOrSet(r,(function(){return{}}))[e]={domain:o,name:t,val:n,source:r})}function Hn(e,n){var t=hn("methodStore"),r=dn("proxyWindowMethods");return t.getOrSet(e,(function(){return{}}))[n]||r.get(n)}function Gn(e,n,t,r,o){var i,a,u;a=(i={on:o.on,send:o.send}).on,u=i.send,dn("builtinListeners").getOrSet("functionCalls",(function(){return a("postrobot_method",{domain:"*"},(function(e){var n=e.source,t=e.origin,r=e.data,o=r.id,i=r.name,a=Hn(n,o);if(!a)throw new Error("Could not find method '"+i+"' with id: "+r.id+" in "+S(window));var c=a.source,s=a.domain,d=a.val;return h.try((function(){if(!U(s,t))throw new Error("Method '"+r.name+"' domain "+JSON.stringify(Ie(a.domain)?a.domain.source:a.domain)+" does not match origin "+t+" in "+S(window));if(Yn.isProxyWindow(c))return c.matchWindow(n,{send:u}).then((function(e){if(!e)throw new Error("Method call '"+r.name+"' failed - proxy window does not match source in "+S(window))}))})).then((function(){return d.apply({source:n,origin:t},r.args)}),(function(e){return h.try((function(){if(d.onError)return d.onError(e)})).then((function(){var n;throw e.stack&&(e.stack="Remote call to "+i+"("+(void 0===(n=r.args)&&(n=[]),_e(n).map((function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:o,name:i}}))}))}));var c=t.__id__||ue();e=Yn.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+"::")),Yn.isProxyWindow(e)?(Vn(c,t,s,e,n),e.awaitWindow().then((function(e){Vn(c,t,s,e,n)}))):Vn(c,t,s,e,n),_n("cross_domain_function",{id:c,name:s})}function Jn(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=xn);var t=JSON.stringify(e,(function(e){var t=this[e];if(bn(this))return t;var r=Pn(t);if(!r)return t;var o=n[r]||Sn[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 _n("cross_domain_zalgo_promise",{then:Gn(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 Gn(e,n,t,r,{on:i,send:a})},o.object=function(e){return H(e)||Yn.isProxyWindow(e)?_n("cross_domain_window",Yn.serialize(e,{send:a})):e},o))}function $n(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=In),"undefined"!==e)return JSON.parse(e,(function(e,t){if(bn(this))return t;var r,o;if(bn(t)?(r=t.__type__,o=t.__val__):(r=Pn(t),o=t),!r)return o;var i=n[r]||Tn[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new h(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 Yn.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=Hn(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:S()},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 Yn.deserialize(e,{send:i})},o))}var Zn={};function Xn(e,n,t,r){var o=r.on,i=r.send;return h.try((function(){var r=hn().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||h.flush().then((function(){if(W(e))throw new Error("Window is closed");var t,a=Jn(e,n,((t={}).__post_robot_11_0_0__=r.buffer||[],t),{on:o,send:i});delete r.buffer;for(var u=Object.keys(Zn),c=[],s=0;s<u.length;s++){var d=u[s];try{Zn[d](e,a,n)}catch(e){c.push(e)}}if(c.length===u.length)throw new Error("All post-robot messaging strategies failed:\n\n"+c.map((function(e,n){return n+". "+me(e)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(he)}function Kn(e){return dn("responseListeners").get(e)}function Qn(e){dn("responseListeners").del(e)}function et(e){return dn("erroredResponseListeners").has(e)}function nt(e){var n=e.name,t=e.win,r=e.domain,o=hn("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!n)throw new Error("Name required to get request listener");for(var i=0,a=[t,pn()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[n];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var d=0,f=s.__domain_regex__;d<f.length;d++){var l=f[d],p=l.listener;if(U(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function tt(e,n){var t=n.on,r=n.send,o=dn("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,a=e.origin,u=function(e,n,t,r){var o,i=r.on,a=r.send;try{o=$n(n,t,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o.__post_robot_11_0_0__;if(Array.isArray(u))return u}}(e.data,i,a,{on:t,send:r});if(u){En(i);for(var c,s=function(){var e=u[d];if(o.has(e.id))return{v:void 0};if(o.set(e.id,!0),W(i)&&!e.fireAndForget)return{v:void 0};0===e.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===e.type?function(e,n,t,r){var o=r.on,i=r.send,a=nt({name:t.name,win:e,domain:n}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return h.flush().then((function(){if(!t.fireAndForget&&!W(e))try{return Xn(e,n,{id:ue(),origin:S(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+u+" in "+S()+"\n\n"+me(e))}}))}h.all([h.flush().then((function(){if(!t.fireAndForget&&!W(e))try{return Xn(e,n,{id:ue(),origin:S(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(e){throw new Error("Send ack message failed for "+u+" in "+S()+"\n\n"+me(e))}})),h.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return a.handler({source:e,origin:n,data:t.data})})).then((function(e){return c("success",e)}),(function(e){return c("error",null,e)}))]).then(he).catch((function(e){if(a&&a.handleError)return a.handleError(e);throw e}))}(i,a,e,{on:t,send:r}):"postrobot_message_response"===e.type?function(e,n,t){if(!et(t.hash)){var r,o=Kn(t.hash);if(!o)throw new Error("No handler found for post message response for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!U(o.domain,n))throw new Error("Response origin "+n+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":w(r)?"RegExp("+r.toString()+")":r.toString()));if(e!==o.win)throw new Error("Response source does not match registered window");Qn(t.hash),"error"===t.ack?o.promise.reject(t.error):"success"===t.ack&&o.promise.resolve({source:e,origin:n,data:t.data})}}(i,a,e):"postrobot_message_ack"===e.type&&function(e,n,t){if(!et(t.hash)){var r=Kn(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+n+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!U(r.domain,n))throw new Error("Ack origin "+n+" does not match domain "+r.domain.toString());if(e!==r.win)throw new Error("Ack source does not match registered window")}catch(e){r.promise.reject(e)}r.ack=!0}}(i,a,e)}catch(e){setTimeout((function(){throw e}),0)}},d=0;d<u.length;d++)if(c=s())return c.v}}function rt(e,n,t){if(!e)throw new Error("Expected name");if("function"==typeof(n=n||{})&&(t=n,n={}),!t)throw new Error("Expected handler");var r=function e(n,t){var r=n.name,o=n.win,i=n.domain,a=hn("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&Yn.isProxyWindow(o)){var u=o.awaitWindow().then((function(n){return e({name:r,win:n,domain:i},t)}));return{cancel:function(){u.then((function(e){return e.cancel()}),he)}}}var c=o;if(Array.isArray(c)){for(var s=[],d=0,f=c;d<f.length;d++)s.push(e({name:r,domain:i,win:f[d]},t));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,h=i;p<h.length;p++)l.push(e({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var e=0;e<l.length;e++)l[e].cancel()}}}var w=nt({name:r,win:c,domain:i});c&&"*"!==c||(c=pn());var m=(i=i||"*").toString();if(w)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===pn()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===pn()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var v,y,g=a.getOrSet(c,(function(){return{}})),E=Ce(g,r,(function(){return{}}));return Ie(i)?(v=Ce(E,"__domain_regex__",(function(){return[]}))).push(y={regex:i,listener:t}):E[m]=t,{cancel:function(){delete E[m],y&&(v.splice(v.indexOf(y,1)),v.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:e,win:n.window,domain:n.domain||"*"},{handler:t||n.handler,handleError:n.errorHandler||function(e){throw e}});return{cancel:function(){r.cancel()}}}Zn.postrobot_post_message=function(e,n,t){0===t.indexOf("file:")&&(t="*"),e.postMessage(n,t)},Zn.postrobot_bridge=function(e,n,t){if(!Cn()&&!jn())throw new Error("Bridge not needed for browser");if(x(e))throw new Error("Post message through bridge disabled between same domain windows");if(!1!==z(window,e))throw new Error("Can only use bridge to communicate between two different windows, not between frames");!function(e,n,t){var r=D(window,e),o=D(e,window);if(!r&&!o)throw new Error("Can only send messages to and from parent and popup windows");Ln(e).then((function(r){return r(e,n,t)}))}(e,t,n)},Zn.postrobot_global=function(e,n){if(!M(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!x(e))throw new Error("Post message through global disabled between different domain windows");if(!1!==z(window,e))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=cn(e);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:S(),data:n})};var ot,it=function e(n,t,r,o){var i=(o=o||{}).domain||"*",a=o.timeout||-1,u=o.timeout||5e3,c=o.fireAndForget||!1;return Yn.toProxyWindow(n,{send:e}).awaitWindow().then((function(n){return h.try((function(){if(function(e,n,t){if(!e)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!Ie(t))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(W(n))throw new Error("Can not send "+e+". Target window is closed")}(t,n,i),function(e,n){var t=F(n);if(t)return t===e;if(n===e)return!1;if(N(n)===n)return!1;for(var r=0,o=C(e);r<o.length;r++)if(o[r]===n)return!0;return!1}(window,n))return gn(n,u)})).then((function(t){return function(e,n,t,r){var o=r.send;return h.try((function(){return"string"==typeof n?n:h.try((function(){return t||vn(e,{send:o}).then((function(e){return e.domain}))})).then((function(e){if(!U(n,n))throw new Error("Domain "+ve(n)+" does not match "+ve(n));return e}))}))}(n,i,(void 0===t?{}:t).domain,{send:e})})).then((function(o){var i=o,u="postrobot_method"===t&&r&&"string"==typeof r.name?r.name+"()":t,s=new h,d=t+"_"+ue();if(!c){var f={name:t,win:n,domain:i,promise:s};!function(e,n){dn("responseListeners").set(e,n)}(d,f);var l=hn("requestPromises").getOrSet(n,(function(){return[]}));l.push(s),s.catch((function(){!function(e){dn("erroredResponseListeners").set(e,!0)}(d),Qn(d)}));var p=function(e){return hn("knownWindows").get(e,!1)}(n)?1e4:2e3,w=a,m=p,v=w,y=Ee((function(){return W(n)?s.reject(new Error("Window closed for "+t+" before "+(f.ack?"response":"ack"))):f.cancelled?s.reject(new Error("Response listener was cancelled for "+t)):(m=Math.max(m-500,0),-1!==v&&(v=Math.max(v-500,0)),f.ack||0!==m?0===v?s.reject(new Error("No response for postMessage "+u+" in "+S()+" in "+w+"ms")):void 0:s.reject(new Error("No ack for postMessage "+u+" in "+S()+" in "+p+"ms")))}),500);s.finally((function(){y.cancel(),l.splice(l.indexOf(s,1))})).catch(he)}return Xn(n,i,{id:ue(),origin:S(window),type:"postrobot_message_request",hash:d,name:t,data:r,fireAndForget:c},{on:rt,send:e}).then((function(){return c?s.resolve():s}),(function(e){throw new Error("Send request message failed for "+u+" in "+S()+"\n\n"+me(e))}))}))}))};function at(e){return Yn.toProxyWindow(e,{send:it})}function ut(e){for(var n=0,t=hn("requestPromises").get(e,[]);n<t.length;n++)t[n].reject(new Error("Window "+(W(e)?"closed":"cleaned up")+" before response")).catch(he)}function ct(e){if(!x(e))throw new Error("Can not get global for window on different domain");return e.__zoid_10_3_3__||(e.__zoid_10_3_3__={}),e.__zoid_10_3_3__}function st(e,n){try{return n(ct(e))}catch(e){}}function dt(e){return{get:function(){var n=this;return h.try((function(){if(n.source&&n.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function ft(e){return ae(JSON.stringify(e))}function lt(e){var n=ct(e);return n.references=n.references||{},n.references}function pt(e){var n,t,r=e.data,o=e.metaData,i=e.sender,a=e.receiver,u=e.passByReference,c=void 0!==u&&u,s=e.basic,d=void 0!==s&&s,f=at(a.win),l=d?JSON.stringify(r):Jn(f,a.domain,r,{on:rt,send:it}),p=c?(n=l,t=ue(),lt(window)[t]=n,{type:"uid",uid:t}):{type:"raw",val:l};return{serializedData:ft({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete lt(e)[n.uid]}}}function ht(e){var n,t,r=e.sender,o=e.basic,i=void 0!==o&&o,a=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),u=a.reference,c=a.metaData;n="function"==typeof r.win?r.win({metaData:c}):r.win,t="function"==typeof r.domain?r.domain({metaData:c}):"string"==typeof r.domain?r.domain:a.sender.domain;var s=function(e,n){if("raw"===n.type)return n.val;if("uid"===n.type)return lt(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):function(e,n,t){return $n(e,n,t,{on:rt,send:it})}(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}ot={setupBridge:Bn,openBridge:function(e,n){var t=dn("bridges"),r=dn("bridgeFrames");return n=n||Y(e),t.getOrSet(n,(function(){return h.try((function(){if(S()===n)throw new Error("Can not open bridge on the same domain as current domain: "+n);var t=An(n);if(L(window,t))throw new Error("Frame with name "+t+" already exists on page");var o=function(e,n){var t=document.createElement("iframe");return t.setAttribute("name",e),t.setAttribute("id",e),t.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),t.setAttribute("frameborder","0"),t.setAttribute("border","0"),t.setAttribute("scrolling","no"),t.setAttribute("allowTransparency","true"),t.setAttribute("tabindex","-1"),t.setAttribute("hidden","true"),t.setAttribute("title",""),t.setAttribute("role","presentation"),t.src=n,t}(t,e);return r.set(n,o),Wn.then((function(n){n.appendChild(o);var t=o.contentWindow;return new h((function(e,n){o.addEventListener("load",e),o.addEventListener("error",n)})).then((function(){return gn(t,5e3,"Bridge "+e)})).then((function(){return t}))}))}))}))},linkWindow:qn,linkUrl:function(e,n){qn({win:e,domain:Y(n)})},isBridge:jn,needsBridge:kn,needsBridgeForBrowser:Cn,hasBridge:function(e,n){return dn("bridges").has(n||Y(e))},needsBridgeForWin:Rn,needsBridgeForDomain:Nn,destroyBridges:function(){for(var e=dn("bridges"),n=dn("bridgeFrames"),t=0,r=n.keys();t<r.length;t++){var o=n.get(r[t]);o&&o.parentNode&&o.parentNode.removeChild(o)}n.reset(),e.reset()}};var wt={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},mt={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},vt=m,yt={RENDER:"zoid-render",RENDERED:"zoid-rendered",PRERENDER:"zoid-prerender",PRERENDERED:"zoid-prerendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROPS:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function gt(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function Et(e){if(!e)throw new Error("No window name");var n=e.split("__"),t=n[1],r=n[2],o=n[3];if("zoid"!==t)throw new Error("Window not rendered by zoid - got "+t);if(!r)throw new Error("Expected component name");if(!o)throw new Error("Expected serialized payload ref");return{name:r,serializedInitialPayload:o}}var bt=le((function(e){var n=ht({data:Et(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return Ne("opener",P(window));if("parent"===e.type&&"number"==typeof e.distance)return Ne("parent",function(e,n){return void 0===n&&(n=1),function(e,n){void 0===n&&(n=1);for(var t=e,r=0;r<n;r++){if(!t)return;t=b(t)}return t}(e,B(e)-n)}(window,e.distance));if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=e.uid,t=F(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=k(t);r<o.length;r++){var i=o[r];if(x(i)){var a=st(i,(function(e){return e.windows&&e.windows[n]}));if(a)return a}}}else if("name"===e.type){var u=e.name;return Ne("namedWindow",function(e,n){return L(e,n)||function e(n,t){var r=L(n,t);if(r)return r;for(var o=0,i=C(n);o<i.length;o++){var a=e(i[o],t);if(a)return a}}(N(e)||e,n)}(Ne("ancestor",F(window)),u))}throw new Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:n.sender,payload:n.data,reference:n.reference}}));function Pt(){return bt(window.name)}function _t(e,n){if(void 0===n&&(n=window),e===b(n))return{type:"parent",distance:B(e)};if(e===P(n))return{type:"opener"};if(x(e)&&(r=e)!==N(r)){var t=T(e).name;if(t)return{type:"name",name:t}}var r}function Ot(e,n,t,r,o){if(!e.hasOwnProperty(t))return r;var i=e[t];return"function"==typeof i.childDecorate?i.childDecorate({value:r,uid:o.uid,tag:o.tag,close:o.close,focus:o.focus,onError:o.onError,onProps:o.onProps,resize:o.resize,getParent:o.getParent,getParentDomain:o.getParentDomain,show:o.show,hide:o.hide,export:o.export,getSiblings:o.getSiblings}):r}function St(){return h.try((function(){window.focus()}))}function xt(){return h.try((function(){window.close()}))}var Tt=function(){return he},It=function(e){return we(e.value)};function Ct(e,n,t){for(var r=0,o=Object.keys(i({},e,n));r<o.length;r++){var a=o[r];t(a,n[a],e[a])}}function Rt(e,n,t){var r={};return h.all(function(e,n,o){var i=[];return Ct(e,n,(function(e,n,o){var a=function(e,n,o){return h.resolve().then((function(){var i,a;if(null!=o&&n){var u=(i={},i.get=n.queryParam,i.post=n.bodyParam,i)[t],c=(a={},a.get=n.queryValue,a.post=n.bodyValue,a)[t];if(u)return h.hash({finalParam:h.try((function(){return"function"==typeof u?u({value:o}):"string"==typeof u?u:e})),finalValue:h.try((function(){return"function"==typeof c&&Te(o)?c({value:o}):o}))}).then((function(t){var o,i=t.finalParam,a=t.finalValue;if("boolean"==typeof a)o=a.toString();else if("string"==typeof a)o=a.toString();else if("object"==typeof a&&null!==a){if(n.serialization===mt.JSON)o=JSON.stringify(a);else if(n.serialization===mt.BASE64)o=ae(JSON.stringify(a));else if(n.serialization===mt.DOTIFY||!n.serialization){o=function e(n,t,r){for(var o in void 0===t&&(t=""),void 0===r&&(r={}),t=t?t+".":t,n)n.hasOwnProperty(o)&&null!=n[o]&&"function"!=typeof n[o]&&(n[o]&&Array.isArray(n[o])&&n[o].length&&n[o].every((function(e){return"object"!=typeof e}))?r[""+t+o+"[]"]=n[o].join(","):n[o]&&"object"==typeof n[o]?r=e(n[o],""+t+o,r):r[""+t+o]=n[o].toString());return r}(a,e);for(var u=0,c=Object.keys(o);u<c.length;u++){var s=c[u];r[s]=o[s]}return}}else"number"==typeof a&&(o=a.toString());r[i]=o}))}}))}(e,n,o);i.push(a)})),i}(n,e)).then((function(){return r}))}function Nt(e){var n,t,r,o,a,u,c,s,d=e.uid,f=e.options,l=e.overrides,p=void 0===l?{}:l,w=e.parentWin,m=void 0===w?window:w,v=f.propsDef,y=f.containerTemplate,g=f.prerenderTemplate,E=f.tag,b=f.name,P=f.attributes,_=f.dimensions,O=f.autoResize,I=f.url,C=f.domain,R=f.exports,N=new h,k=[],A=Re(),j={},M={},L={visible:!0},D=p.event?p.event:(n={},t={},r={on:function(e,n){var r=t[e]=t[e]||[];r.push(n);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(n),1))}}},once:function(e,n){var t=r.on(e,(function(){t.cancel(),n()}));return t},trigger:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t[e],a=[];if(i)for(var u=function(){var e=i[c];a.push(h.try((function(){return e.apply(void 0,r)})))},c=0;c<i.length;c++)u();return h.all(a).then(he)},triggerOnce:function(e){if(n[e])return h.resolve();n[e]=!0;for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return r.trigger.apply(r,[e].concat(o))},reset:function(){t={}}}),q=p.props?p.props:{},H=!1,J=p.onError,Z=p.getProxyContainer,X=p.show,K=p.hide,Q=p.close,ee=p.renderContainer,ne=p.getProxyWindow,te=p.setProxyWin,re=p.openFrame,oe=p.openPrerenderFrame,ie=p.prerender,ae=p.open,ce=p.openPrerender,se=p.watchForUnload,de=p.getInternalState,fe=p.setInternalState,pe=function(){return"function"==typeof _?_({props:q}):_},ge=function(){return h.try((function(){return p.resolveInitPromise?p.resolveInitPromise():N.resolve()}))},be=function(e){return h.try((function(){return p.rejectInitPromise?p.rejectInitPromise(e):N.reject(e)}))},Pe=function(e){for(var n={},t=0,r=Object.keys(q);t<r.length;t++){var o=r[t],i=v[o];if(!i||!1!==i.sendToChild){var a=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(n,t){return n||U(t,e)}),!1):U(e,S(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=q[o])}}return h.hash(n)},Oe=function(){return h.try((function(){return de?de():L}))},Se=function(e){return h.try((function(){return fe?fe(e):L=i({},L,e)}))},xe=function(){return ne?ne():h.try((function(){var e=q.window;if(e){var n=at(e);return A.register((function(){return e.close()})),n}return new Yn({send:it})}))},Ie=function(e){return te?te(e):h.try((function(){o=e}))},Ce=function(){return X?X():h.hash({setState:Se({visible:!0}),showElement:a?a.get().then(Ge):null}).then(he)},Ne=function(){return K?K():h.hash({setState:Se({visible:!1}),showElement:a?a.get().then(Je):null}).then(he)},ke=function(){return"function"==typeof I?I({props:q}):I},Ae=function(){return"function"==typeof P?P({props:q}):P},je=function(){return Y(ke())},We=function(e,n){var t=n.windowName;return re?re(e,{windowName:t}):h.try((function(){if(e===vt.IFRAME)return dt(Ve({attributes:i({name:t,title:b},Ae().iframe)}))}))},Me=function(e){return oe?oe(e):h.try((function(){if(e===vt.IFRAME)return dt(Ve({attributes:i({name:"__zoid_prerender_frame__"+b+"_"+ue()+"__",title:"prerender__"+b},Ae().iframe)}))}))},Le=function(e,n,t){return ce?ce(e,n,t):h.try((function(){if(e===vt.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return A.register((function(){return $e(e)})),Ye(e).then((function(e){return T(e)})).then((function(e){return at(e)}))}))}if(e===vt.POPUP)return n;throw new Error("No render context available for "+e)}))},Be=function(){return h.try((function(){if(o)return h.all([D.trigger(yt.FOCUS),o.focus()]).then(he)}))},Ue=function(){var e=ct(window);return e.windows=e.windows||{},e.windows[d]=window,A.register((function(){delete e.windows[d]})),d},Qe=function(e,n,t,r){if(n===S(window))return{type:"global",uid:Ue()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(q.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(F(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===vt.POPUP)return{type:"opener"};if(t===vt.IFRAME)return{type:"parent",distance:B(window)};throw new Error("Can not construct window reference for child")},en=function(e,n){return h.try((function(){var t;c=e,u=n,null==(t=o)||t.isPopup().then((function(e){var t;""!==(null==n?void 0:n.name)&&e&&(null==(t=o)||t.setName(null==n?void 0:n.name))})).finally((function(){ge(),A.register((function(){return n.close.fireAndForget().catch(he)}))}))}))},nn=function(e){var n=e.width,t=e.height;return h.try((function(){D.trigger(yt.RESIZE,{width:n,height:t})}))},tn=function(e){return h.try((function(){return D.trigger(yt.DESTROY)})).catch(he).then((function(){return A.all(e)})).then((function(){var n=e||new Error("Component destroyed");s&&Ze(s)||"Window navigated away"===n.message?N.resolve():N.asyncReject(n)}))},rn=le((function(e){return h.try((function(){if(Q){if(W(Q.__source__))return;return Q()}return h.try((function(){return D.trigger(yt.CLOSE)})).then((function(){return tn(e||new Error("Component closed"))}))}))})),on=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return ae?ae(e,{proxyWin:t,proxyFrame:r,windowName:o}):h.try((function(){if(e===vt.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return Ye(e).then((function(n){return A.register((function(){return $e(e)})),A.register((function(){return ut(n)})),n}))}))}if(e===vt.POPUP){var n=pe(),t=n.width,a=void 0===t?"300px":t,u=n.height,c=void 0===u?"150px":u;a=un(a,window.outerWidth),c=un(c,window.outerWidth);var s=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,a=void 0===o?"":o,u=n.width,c=n.height,s=0,d=0;u&&(window.outerWidth?d=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(d=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=i({top:s,left:d,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var f,l=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+ve(n[e])})).filter(Boolean).join(",");try{f=window.open("",a,l)}catch(e){throw new ze("Can not open popup window - "+(e.stack||e.message))}if(W(f))throw new ze("Can not open popup window - blocked");return r&&window.addEventListener("unload",(function(){return f.close()})),f}(0,i({name:o,width:a,height:c},Ae().popup));return A.register((function(){return $(s)})),A.register((function(){return ut(s)})),s}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:it}),t.setName(o).then((function(){return t}))}))},an=function(){return h.try((function(){var e=He(window,"unload",we((function(){tn(new Error("Window navigated away"))}))),n=V(m,tn,3e3);if(A.register(n.cancel),A.register(e.cancel),se)return se()}))},cn=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,rn(new Error("Detected component window close"))):h.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,rn(new Error("Detected component window close"))}))})).then((function(){return n}))},sn=function(e){return J?J(e):h.try((function(){if(-1===k.indexOf(e))return k.push(e),N.asyncReject(e),D.trigger(yt.ERROR,e)}))},dn=new h,fn=function(e){return h.try((function(){dn.resolve(e)}))};en.onError=sn;var ln=function(e,n){return e({uid:d,container:n.container,context:n.context,doc:n.doc,frame:n.frame,prerenderFrame:n.prerenderFrame,focus:Be,close:rn,state:j,props:q,tag:E,dimensions:pe(),event:D})},pn=function(e,n){var t=n.context;return ie?ie(e,{context:t}):h.try((function(){if(g){D.trigger(yt.PRERENDER);var n=e.getWindow();if(n&&x(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=T(n)).document,o=ln(g,{context:t,doc:r});if(o){if(o.ownerDocument!==r)throw new Error("Expected prerender template to have been created with document from child window");!function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=_e(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=_e(n.children);a<u.length;a++)r.appendChild(u[a])}(n,o);var i=O.width,a=void 0!==i&&i,u=O.height,c=void 0!==u&&u,s=O.element,d=void 0===s?"body":s;if((d=Fe(d,r))&&(a||c)){var f=Xe(d,(function(e){nn({width:a?e.width:void 0,height:c?e.height:void 0})}),{width:a,height:c,win:n});D.on(yt.RENDERED,f.cancel)}D.trigger(yt.PRERENDERED)}}}}))},hn=function(e,n){var t=n.proxyFrame,r=n.proxyPrerenderFrame,o=n.context,i=n.rerender;return ee?ee(e,{proxyFrame:t,proxyPrerenderFrame:r,context:o,rerender:i}):h.hash({container:e.get(),frame:t?t.get():null,prerenderFrame:r?r.get():null,internalState:Oe()}).then((function(e){var n=e.container,t=e.internalState.visible,r=ln(y,{context:o,container:n,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(r){t||Je(r),function(e,n){e.appendChild(n)}(n,r);var u=function(e,n){n=we(n);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var e=0;e<a.length;e++)a[e].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&$e(r)},c=function(){i||(n(),u())};if(Ze(e))return c(),{cancel:u};if(window.MutationObserver)for(var s=e.parentElement;s;){var d=new window.MutationObserver((function(){Ze(e)&&c()}));d.observe(s,{childList:!0}),a.push(d),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+ue()+"__"),r.style.display="none",Ye(r).then((function(e){(o=T(e)).addEventListener("unload",c)})),e.appendChild(r),t=Ee((function(){Ze(e)&&c()}),1e3),{cancel:u}}(r,(function(){var e=new Error("Detected container element removed from DOM");return h.delay(1).then((function(){if(!Ze(r))return A.all(e),i().then(ge,be);rn(e)}))}));return A.register((function(){return u.cancel()})),A.register((function(){return $e(r)})),a=dt(r)}}))},wn=function(){return{state:j,event:D,close:rn,focus:Be,resize:nn,onError:sn,updateProps:vn,show:Ce,hide:Ne}},mn=function(e){void 0===e&&(e={});var n=s,t=wn();ye(M,e),function(e,n,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;Ct(t,e,(function(e,r,d){var f=!1,l=d;Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return f?l:(f=!0,function(){if(!r)return l;var f=r.alias;if(f&&!Te(d)&&Te(t[f])&&(l=t[f]),r.value&&(l=r.value({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||Te(l)||Te(t[e])||(l=r.default({props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),Te(l)){if(r.type===wt.ARRAY?!Array.isArray(l):typeof l!==r.type)throw new TypeError("Prop is not of type "+r.type+": "+e)}else if(!1!==r.required&&!Te(t[e]))throw new Error('Expected prop "'+e+'" to be defined');return Te(l)&&r.decorate&&(l=r.decorate({value:l,props:n,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),Ct(n,e,he)}(v,q,M,t,n)},vn=function(e){return mn(e),N.then((function(){var e=u,n=o;if(e&&n&&c)return Pe(c).then((function(t){return e.updateProps(t).catch((function(e){return cn(n).then((function(n){if(!n)throw e}))}))}))}))},yn=function(e){return Z?Z(e):h.try((function(){return qe(e)})).then((function(e){return Ke(e)&&(e=function e(n){var t=function(e){var n=function(e){for(;e.parentNode;)e=e.parentNode;if(Ke(e))return e}(e);if(n&&n.host)return n.host}(n);if(!t)throw new Error("Element is not in shadow dom");var r="shadow-slot-"+ue(),o=document.createElement("slot");o.setAttribute("name",r),n.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",r),t.appendChild(i),Ke(t)?e(i):i}(e)),s=e,dt(e)}))};return{init:function(){D.on(yt.RENDER,(function(){return q.onRender()})),D.on(yt.PRERENDER,(function(){return q.onPrerender()})),D.on(yt.DISPLAY,(function(){return q.onDisplay()})),D.on(yt.RENDERED,(function(){return q.onRendered()})),D.on(yt.PRERENDERED,(function(){return q.onPrerendered()})),D.on(yt.CLOSE,(function(){return q.onClose()})),D.on(yt.DESTROY,(function(){return q.onDestroy()})),D.on(yt.RESIZE,(function(){return q.onResize()})),D.on(yt.FOCUS,(function(){return q.onFocus()})),D.on(yt.PROPS,(function(e){return q.onProps(e)})),D.on(yt.ERROR,(function(e){return q&&q.onError?q.onError(e):be(e).then((function(){setTimeout((function(){throw e}),1)}))})),A.register(D.reset)},render:function(e){var n=e.target,t=e.container,r=e.context,i=e.rerender;return h.try((function(){var e=je(),a=C||je();!function(e,n,t){if(e!==window){if(!z(window,e))throw new Error("Can only renderTo an adjacent frame");var r=S();if(!U(n,r)&&!x(e))throw new Error("Can not render remotely to "+n.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(n,a,t);var u=h.try((function(){if(n!==window)return function(e,n){for(var t={},r=0,o=Object.keys(q);r<o.length;r++){var i=o[r],a=v[i];a&&a.allowDelegate&&(t[i]=q[i])}var u=it(n,"zoid_delegate_"+b,{uid:d,overrides:{props:t,event:D,close:rn,onError:sn,getInternalState:Oe,setInternalState:Se,resolveInitPromise:ge,rejectInitPromise:be}}).then((function(e){var t=e.data.parent;return A.register((function(e){if(!W(n))return t.destroy(e)})),t.getDelegateOverrides()})).catch((function(e){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+me(e))}));return Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.getProxyContainer.apply(e,n)}))},ee=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.renderContainer.apply(e,n)}))},X=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.show.apply(e,n)}))},K=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.hide.apply(e,n)}))},se=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.watchForUnload.apply(e,n)}))},e===vt.IFRAME?(ne=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.getProxyWindow.apply(e,n)}))},re=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.openFrame.apply(e,n)}))},oe=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.openPrerenderFrame.apply(e,n)}))},ie=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.prerender.apply(e,n)}))},ae=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.open.apply(e,n)}))},ce=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.openPrerender.apply(e,n)}))}):e===vt.POPUP&&(te=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return u.then((function(e){return e.setProxyWin.apply(e,n)}))}),u}(r,n)})),c=q.window,l=an(),p=Rt(v,q,"post"),w=D.trigger(yt.RENDER),m=yn(t),y=xe(),g=m.then((function(){return mn()})),P=g.then((function(){return Rt(v,q,"get").then((function(e){return function(e,n){var t,r,o=n.query||{},i=n.hash||{},a=e.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=De(u[1],o),s=De(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}(G(ke()),{query:e})}))})),_=y.then((function(t){return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.initialChildDomain,o=n.childDomainMatch,i=n.target,a=void 0===i?window:i,u=n.context;return function(e){var n=void 0===e?{}:e,t=n.proxyWin,r=n.childDomainMatch,o=n.context;return Pe(n.initialChildDomain).then((function(e){return{uid:d,context:o,tag:E,childDomainMatch:r,version:"10_3_3",props:e,exports:(n=t,{init:function(e){return en(this.origin,e)},close:rn,checkClose:function(){return cn(n)},resize:nn,onError:sn,show:Ce,hide:Ne,export:fn})};var n}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:u}).then((function(e){var n=pt({data:e,metaData:{windowRef:Qe(a,r,u,t)},sender:{domain:S(window)},receiver:{win:t,domain:o},passByReference:r===S()}),i=n.serializedData;return A.register(n.cleanReference),i}))}({proxyWin:(o={proxyWin:t,initialChildDomain:e,childDomainMatch:a,target:n,context:r}).proxyWin,initialChildDomain:o.initialChildDomain,childDomainMatch:o.childDomainMatch,target:o.target,context:o.context}).then((function(e){return gt({name:b,serializedPayload:e})}));var o})),O=_.then((function(e){return We(r,{windowName:e})})),T=Me(r),I=h.hash({proxyContainer:m,proxyFrame:O,proxyPrerenderFrame:T}).then((function(e){return hn(e.proxyContainer,{context:r,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})})).then((function(e){return e})),R=h.hash({windowName:_,proxyFrame:O,proxyWin:y}).then((function(e){var n=e.proxyWin;return c?n:on(r,{windowName:e.windowName,proxyWin:n,proxyFrame:e.proxyFrame})})),k=h.hash({proxyWin:R,proxyPrerenderFrame:T}).then((function(e){return Le(r,e.proxyWin,e.proxyPrerenderFrame)})),j=R.then((function(e){return o=e,Ie(e)})),M=h.hash({proxyPrerenderWin:k,state:j}).then((function(e){return pn(e.proxyPrerenderWin,{context:r})})),L=h.hash({proxyWin:R,windowName:_}).then((function(e){if(c)return e.proxyWin.setName(e.windowName)})),F=h.hash({body:p}).then((function(e){return f.method?f.method:Object.keys(e.body).length?"post":"get"})),B=h.hash({proxyWin:R,windowUrl:P,body:p,method:F,windowName:L,prerender:M}).then((function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})})),V=R.then((function(e){!function e(n,t){var r=!1;return A.register((function(){r=!0})),h.delay(2e3).then((function(){return n.isClosed()})).then((function(o){if(!r){if(t===vt.POPUP&&o)return rn(new Error("Detected popup close"));var i=Boolean(s&&Ze(s));return t===vt.IFRAME&&o&&(i||H)?rn(new Error("Detected iframe close")):e(n,t)}}))}(e,r)})),J=h.hash({container:I,prerender:M}).then((function(){return D.trigger(yt.DISPLAY)})),$=R.then((function(n){return function(e,n,t){return h.try((function(){return e.awaitWindow()})).then((function(e){if(ot&&ot.needsBridge({win:e,domain:n})&&!ot.hasBridge(n,n)){var r="function"==typeof f.bridgeUrl?f.bridgeUrl({props:q}):f.bridgeUrl;if(!r)throw new Error("Bridge needed to render "+t);var o=Y(r);return ot.linkUrl(e,n),ot.openBridge(G(r),o)}}))}(n,e,r)})),Q=B.then((function(){return h.try((function(){var e=q.timeout;if(e)return N.timeout(e,new Error("Loading component timed out after "+e+" milliseconds"))}))})),ue=N.then((function(){return H=!0,D.trigger(yt.RENDERED)}));return h.hash({initPromise:N,buildUrlPromise:P,onRenderPromise:w,getProxyContainerPromise:m,openFramePromise:O,openPrerenderFramePromise:T,renderContainerPromise:I,openPromise:R,openPrerenderPromise:k,setStatePromise:j,prerenderPromise:M,loadUrlPromise:B,buildWindowNamePromise:_,setWindowNamePromise:L,watchForClosePromise:V,onDisplayPromise:J,openBridgePromise:$,runTimeoutPromise:Q,onRenderedPromise:ue,delegatePromise:u,watchForUnloadPromise:l,finalSetPropsPromise:g})})).catch((function(e){return h.all([sn(e),tn(e)]).then((function(){throw e}),(function(){throw e}))})).then(he)},destroy:tn,getProps:function(){return q},setProps:mn,export:fn,getHelpers:wn,getDelegateOverrides:function(){return h.try((function(){return{getProxyContainer:yn,show:Ce,hide:Ne,renderContainer:hn,getProxyWindow:xe,watchForUnload:an,openFrame:We,openPrerenderFrame:Me,prerender:pn,open:on,openPrerender:Le,setProxyWin:Ie}}))},getExports:function(){return R({getExports:function(){return dn}})}}}var kt={register:function(e,n,t,r){var i=r.React,a=r.ReactDOM;return function(e){function n(){return e.apply(this,arguments)||this}o(n,e);var r=n.prototype;return r.render=function(){return i.createElement("div",null)},r.componentDidMount=function(){var e=a.findDOMNode(this),n=t(ye({},this.props));n.render(e,vt.IFRAME),this.setState({parent:n})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(ye({},this.props)).catch(he)},n}(i.Component)}},At={register:function(e,n,t,r){return r.component(e,{render:function(e){return e("div")},inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,vt.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(he)},deep:!0}}})}},jt={register:function(e,n,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(i({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[be(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,vt.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(i({},this.$attrs)).catch(he)},deep:!0}}}}},Wt={register:function(e,n,t,r){return r.module(e,[]).directive(be(e),(function(){for(var e={},r=0,o=Object.keys(n);r<o.length;r++)e[o[r]]="=";return e.props="=",{scope:e,restrict:"E",controller:["$scope","$element",function(e,n){function r(){if("$apply"!==e.$root.$$phase&&"$digest"!==e.$root.$$phase)try{e.$apply()}catch(e){}}var o=function(){return xe(e.props,(function(e){return"function"==typeof e?function(){var n=e.apply(this,arguments);return r(),n}:e}))},i=t(o());i.render(n[0],vt.IFRAME),e.$watch((function(){i.updateProps(o()).catch(he)}))}]}}))}},Mt={register:function(e,n,t,r){var o=r.Component,a=r.NgModule,u=r.ElementRef,c=r.NgZone,s=r.Inject,d=function(){function e(e,n){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=e,this.zone=n}var n=e.prototype;return n.getProps=function(){var e=this;return xe(i({},this.internalProps,this.props),(function(n){if("function"==typeof n){var t=e.zone;return function(){var e=arguments,r=this;return t.run((function(){return n.apply(r,e)}))}}return n}))},n.ngOnInit=function(){var e=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(e,vt.IFRAME)},n.ngDoCheck=function(){this.parent&&!function(e,n){var t={};for(var r in e)if(e.hasOwnProperty(r)&&(t[r]=!0,e[r]!==n[r]))return!1;for(var o in n)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=i({},this.props),this.parent.updateProps(this.getProps()))},e}();d.annotations=void 0,d.parameters=void 0,d.parameters=[[new s(u)],[new s(c)]],d.annotations=[new o({selector:e,template:"<div></div>",inputs:["props"]})];var f=function(){};return f.annotations=void 0,f.annotations=[new a({declarations:[d],exports:[d]})],f}};function Lt(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var f=o.createElement("style");return i.cspNonce&&f.setAttribute("nonce",i.cspNonce),f.appendChild(o.createTextNode("\n #"+n+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+n+" > 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 ")),d.appendChild(t),d.appendChild(r),d.appendChild(f),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on(yt.RENDERED,(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){$e(r)}),1)})),a.on(yt.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=an(n)),"number"==typeof t&&(d.style.height=an(t))})),d}}function Dt(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 Ft=Re(),qt=Re(),Bt=function(e){!function(){var e,n,t,r;cn().initialized||(cn().initialized=!0,n=(e={on:rt,send:it}).on,t=e.send,(r=cn()).receiveMessage=r.receiveMessage||function(e){return tt(e,{on:n,send:t})},function(e){var n=e.on,t=e.send;dn().getOrSet("postMessageListener",(function(){return He(window,"message",(function(e){!function(e,n){var t=n.on,r=n.send;h.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");tt({source:n,origin:o,data:i},{on:t,send:r})}}))}(e,{on:n,send:t})}))}))}({on:rt,send:it}),Bn({on:rt,send:it,receiveMessage:tt}),function(e){var n=e.on,t=e.send;dn("builtinListeners").getOrSet("helloListener",(function(){var e=n("postrobot_hello",{domain:"*"},(function(e){return mn(e.source,{domain:e.origin}),{instanceID:wn()}})),r=F();return r&&vn(r,{send:t}).catch((function(e){})),e}))}({on:rt,send:it}))}();var n=function(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,a=e.props,u=void 0===a?{}:a,c=e.dimensions,s=void 0===c?{}:c,d=e.autoResize,f=void 0===d?{}:d,l=e.allowedParentDomains,p=void 0===l?"*":l,h=e.attributes,w=void 0===h?{}:h,m=e.defaultContext,v=void 0===m?vt.IFRAME:m,y=e.containerTemplate,g=void 0===y?Lt:y,E=e.prerenderTemplate,b=void 0===E?Dt:E,P=e.validate,_=e.eligible,O=void 0===_?function(){return{eligible:!0}}:_,S=e.logger,T=void 0===S?{info:he}:S,I=e.exports,C=void 0===I?he:I,R=e.method,N=e.children,k=void 0===N?function(){return{}}:N,A=n.replace(/-/g,"_"),j=i({},{window:{type:wt.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!H(n)&&!Yn.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(H(n)){if(W(n))throw new Error("Window is closed");if(!x(n))throw new Error("Window is not same domain")}},decorate:function(e){return at(e.value)}},timeout:{type:wt.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:wt.STRING,required:!1},onDisplay:{type:wt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Tt,decorate:It},onRendered:{type:wt.FUNCTION,required:!1,sendToChild:!1,default:Tt,decorate:It},onRender:{type:wt.FUNCTION,required:!1,sendToChild:!1,default:Tt,decorate:It},onPrerendered:{type:wt.FUNCTION,required:!1,sendToChild:!1,default:Tt,decorate:It},onPrerender:{type:wt.FUNCTION,required:!1,sendToChild:!1,default:Tt,decorate:It},onClose:{type:wt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Tt,decorate:It},onDestroy:{type:wt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Tt,decorate:It},onResize:{type:wt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Tt},onFocus:{type:wt.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:Tt},close:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:wt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:wt.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:wt.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},u);if(!g)throw new Error("Container template required");return{name:A,tag:n,url:t,domain:r,bridgeUrl:o,method:R,propsDef:j,dimensions:s,autoResize:f,allowedParentDomains:p,attributes:w,defaultContext:v,containerTemplate:g,prerenderTemplate:b,validate:P,logger:T,eligible:O,children:k,exports:"function"==typeof C?C:function(e){for(var n=e.getExports,t={},r=function(){var e=i[o],r=C[e].type,a=n().then((function(n){return n[e]}));t[e]=r===wt.FUNCTION?function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return a.then((function(e){return e.apply(void 0,n)}))}:a},o=0,i=Object.keys(C);o<i.length;o++)r();return t}}}(e),o=r.name,a=r.tag,u=r.defaultContext,c=r.propsDef,s=r.eligible,d=r.children,f=ct(window),l={},p=[],w=function(){if(function(e){try{return Et(window.name).name===e}catch(e){}return!1}(o)){var e=Pt().payload;if(e.tag===a&&U(e.childDomainMatch,S()))return!0}return!1},m=le((function(){if(w()){if(window.xprops)throw delete f.components[a],new Error("Can not register "+o+" as child - child already registered");var e=function(e){var n,t=e.tag,r=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=Pt(),c=u.parent,s=u.payload,d=c.win,f=c.domain,l=new h,p=s.version,w=s.uid,m=s.exports,v=s.context,y=s.props;if(!function(e,n){if(!/_/.test(e)||!/_/.test("10_3_3"))throw new Error("Versions are in an invalid format ("+e+", 10_3_3)");return e.split("_")[0]==="10_3_3".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_3_3");var g=m.show,E=m.hide,b=m.close,P=m.onError,_=m.checkClose,O=m.export,I=m.resize,C=m.init,R=function(){return d},N=function(){return f},A=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},j=function(e){return I.fireAndForget({width:e.width,height:e.height})},W=function(e){return l.resolve(e),O(e)},M=function(e){var r=(void 0===e?{}:e).anyParent,o=[],i=n.parent;if(void 0===r&&(r=!i),!r&&!i)throw new Error("No parent found for "+t+" child");for(var a=0,u=k(window);a<u.length;a++){var c=u[a];if(x(c)){var s=T(c).xprops;if(s&&R()===s.getParent()){var d=s.parent;if(r||!i||d&&d.uid===i.uid){var f=st(c,(function(e){return e.exports}));o.push({props:s,exports:f})}}}}return o},L=function(e,o,i){void 0===i&&(i=!1);var u=function(e,n,t,r,o,i){void 0===i&&(i=!1);for(var a={},u=0,c=Object.keys(t);u<c.length;u++){var s=c[u],d=n[s],f=d&&d.trustedDomains&&d.trustedDomains.length>0?d.trustedDomains.reduce((function(e,n){return e||U(n,S(window))}),!1):r===S(window)||x(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=Ot(n,0,s,t[s],o);a[s]=l,d&&d.alias&&!a[d.alias]&&(a[d.alias]=l)}}if(!i)for(var p=0,h=Object.keys(n);p<h.length;p++){var w=h[p];t.hasOwnProperty(w)||(a[w]=Ot(n,0,w,void 0,o))}return a}(d,r,e,o,{tag:t,show:g,hide:E,close:b,focus:St,onError:P,resize:j,getSiblings:M,onProps:A,getParent:R,getParentDomain:N,uid:w,export:W},i);n?ye(n,u):n=u;for(var c=0;c<a.length;c++)(0,a[c])(n)},D=function(e){return h.try((function(){return L(e,f,!0)}))};return{init:function(){return h.try((function(){var n="";return x(d)&&(n=function(e){var n=e.componentName,t=e.parentComponentWindow,r=ht({data:Et(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=gt({name:n,serializedPayload:pt({data:r.data,metaData:{windowRef:_t(t)},sender:{domain:o.domain},receiver:{win:window,domain:S()},basic:!0}).serializedData});return window.name=i,i}}({componentName:e.name,parentComponentWindow:d})||""),ct(window).exports=e.exports({getExports:function(){return l}}),function(e,n){if(!U(e,n))throw new Error("Can not be rendered by domain: "+n)}(i,f),En(d),window.addEventListener("beforeunload",(function(){_.fireAndForget()})),window.addEventListener("unload",(function(){_.fireAndForget()})),V(d,(function(){xt()})),C({name:n,updateProps:D,close:xt})})).then((function(){return(e=o.width,n=void 0!==e&&e,t=o.height,r=void 0!==t&&t,i=o.element,qe(void 0===i?"body":i).catch(he).then((function(e){return{width:n,height:r,element:e}}))).then((function(e){var n=e.width,t=e.height,r=e.element;r&&(n||t)&&v!==vt.POPUP&&Xe(r,(function(e){j({width:n?e.width:void 0,height:t?e.height:void 0})}),{width:n,height:t})}));var e,n,t,r,i})).catch((function(e){P(e)}))},getProps:function(){return n||(L(y,f),n)}}}(r);return e.init(),e}})),v=function e(n){var t,c="zoid-"+a+"-"+ue(),f=n||{},l=s({props:f}),w=l.eligible,m=l.reason,v=f.onDestroy;f.onDestroy=function(){if(t&&w&&p.splice(p.indexOf(t),1),v)return v.apply(void 0,arguments)};var y=Nt({uid:c,options:r});y.init(),w?y.setProps(f):f.onDestroy&&f.onDestroy(),Ft.register((function(e){return y.destroy(e||new Error("zoid destroyed all components"))}));var g=function(n){var t=(void 0===n?{}:n).decorate;return e((void 0===t?ge:t)(f))},E=function(e,n,r){return h.try((function(){if(!w){var n=new Error(m||o+" component is not eligible");return y.destroy(n).then((function(){throw n}))}if(!H(e))throw new Error("Must pass window to renderTo");return function(e,n){return h.try((function(){if(e.window)return at(e.window).getType();if(n){if(n!==vt.IFRAME&&n!==vt.POPUP)throw new Error("Unrecognized context: "+n);return n}return u}))}(f,r)})).then((function(o){if(n=function(e,n){if(n){if("string"!=typeof n&&!re(n))throw new TypeError("Expected string or element selector to be passed");return n}if(e===vt.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,n),e!==window&&"string"!=typeof n)throw new Error("Must pass string element when rendering to another window");return y.render({target:e,container:n,context:o,rerender:function(){var o=g();return ye(t,o),o.renderTo(e,n,r)}})})).catch((function(e){return y.destroy(e).then((function(){throw e}))}))};return t=i({},y.getExports(),y.getHelpers(),function(){for(var e=d(),n={},t=function(){var t=o[r],a=e[t];n[t]=function(e){var n=y.getProps(),t=i({},e,{parent:{uid:c,props:n,export:y.export}});return a(t)}},r=0,o=Object.keys(e);r<o.length;r++)t();return n}(),{isEligible:function(){return w},clone:g,render:function(e,n){return E(window,e,n)},renderTo:function(e,n,t){return E(e,n,t)}}),w&&p.push(t),t};if(m(),n=rt("zoid_allow_delegate_"+o,(function(){return!0})),t=rt("zoid_delegate_"+o,(function(e){var n=e.data;return{parent:Nt({uid:n.uid,options:r,overrides:n.overrides,parentWin:e.source})}})),qt.register(n.cancel),qt.register(t.cancel),f.components=f.components||{},f.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return f.components[a]=!0,{init:v,instances:p,driver:function(e,n){var t={react:kt,angular:Wt,vue:At,vue3:jt,angular2:Mt};if(!t[e])throw new Error("Could not find driver for framework: "+e);return l[e]||(l[e]=t[e].register(a,c,v,n)),l[e]},isChild:w,canRenderTo:function(e){return it(e,"zoid_allow_delegate_"+o).then((function(e){return e.data})).catch((function(){return!1}))},registerChild:m}}(e),t=function(e){return n.init(e)};t.driver=function(e,t){return n.driver(e,t)},t.isChild=function(){return n.isChild()},t.canRenderTo=function(e){return n.canRenderTo(e)},t.instances=n.instances;var r=n.registerChild();return r&&(window.xprops=t.xprops=r.getProps()),t};function zt(e){ot&&ot.destroyBridges();var n=Ft.all(e);return Ft=Re(),n}var Ut=zt;function Yt(e){var n;return Ut(),delete window.__zoid_10_3_3__,function(){for(var e=dn("responseListeners"),n=0,t=e.keys();n<t.length;n++){var r=t[n],o=e.get(r);o&&(o.cancelled=!0),e.del(r)}}(),(n=dn().get("postMessageListener"))&&n.cancel(),delete window.__post_robot_11_0_0__,qt.all(e)}}])},e.exports=t()}))),Xe=w((function(e,n){var t;"undefined"!=typeof self&&self,t=function(){return 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,n,t){t.r(n),t.d(n,"getUserAgent",(function(){return o})),t.d(n,"isDevice",(function(){return i})),t.d(n,"isWebView",(function(){return a})),t.d(n,"isStandAlone",(function(){return u})),t.d(n,"isFacebookWebView",(function(){return c})),t.d(n,"isFirefoxIOS",(function(){return s})),t.d(n,"isEdgeIOS",(function(){return d})),t.d(n,"isOperaMini",(function(){return f})),t.d(n,"isAndroid",(function(){return l})),t.d(n,"isIos",(function(){return h})),t.d(n,"isGoogleSearchApp",(function(){return w})),t.d(n,"isQQBrowser",(function(){return m})),t.d(n,"isIosWebview",(function(){return v})),t.d(n,"isSFVC",(function(){return y})),t.d(n,"isSFVCorSafari",(function(){return g})),t.d(n,"isAndroidWebview",(function(){return E})),t.d(n,"isIE",(function(){return b})),t.d(n,"isIECompHeader",(function(){return P})),t.d(n,"isElectron",(function(){return _})),t.d(n,"isIEIntranet",(function(){return O})),t.d(n,"isMacOsCna",(function(){return S})),t.d(n,"supportsPopups",(function(){return x})),t.d(n,"isChrome",(function(){return T})),t.d(n,"isSafari",(function(){return I})),t.d(n,"isApplePaySupported",(function(){return C})),t.d(n,"isDocumentReady",(function(){return Nn})),t.d(n,"isDocumentInteractive",(function(){return kn})),t.d(n,"urlEncode",(function(){return An})),t.d(n,"waitForWindowReady",(function(){return jn})),t.d(n,"waitForDocumentReady",(function(){return Wn})),t.d(n,"waitForDocumentBody",(function(){return Mn})),t.d(n,"parseQuery",(function(){return Ln})),t.d(n,"getQueryParam",(function(){return Dn})),t.d(n,"urlWillRedirectPage",(function(){return Fn})),t.d(n,"formatQuery",(function(){return qn})),t.d(n,"extendQuery",(function(){return Bn})),t.d(n,"extendUrl",(function(){return zn})),t.d(n,"redirect",(function(){return Un})),t.d(n,"hasMetaViewPort",(function(){return Yn})),t.d(n,"isElementVisible",(function(){return Vn})),t.d(n,"getPerformance",(function(){return Hn})),t.d(n,"enablePerformance",(function(){return Gn})),t.d(n,"getPageRenderTime",(function(){return Jn})),t.d(n,"htmlEncode",(function(){return $n})),t.d(n,"isBrowser",(function(){return Zn})),t.d(n,"querySelectorAll",(function(){return Xn})),t.d(n,"onClick",(function(){return Kn})),t.d(n,"getScript",(function(){return Qn})),t.d(n,"isLocalStorageEnabled",(function(){return et})),t.d(n,"getBrowserLocales",(function(){return nt})),t.d(n,"appendChild",(function(){return tt})),t.d(n,"isElement",(function(){return rt})),t.d(n,"getElementSafe",(function(){return ot})),t.d(n,"getElement",(function(){return it})),t.d(n,"elementReady",(function(){return at})),t.d(n,"PopupOpenError",(function(){return ct})),t.d(n,"popup",(function(){return st})),t.d(n,"writeToWindow",(function(){return dt})),t.d(n,"writeElementToWindow",(function(){return ft})),t.d(n,"setStyle",(function(){return lt})),t.d(n,"awaitFrameLoad",(function(){return pt})),t.d(n,"awaitFrameWindow",(function(){return ht})),t.d(n,"createElement",(function(){return wt})),t.d(n,"iframe",(function(){return mt})),t.d(n,"addEventListener",(function(){return vt})),t.d(n,"bindEvents",(function(){return yt})),t.d(n,"setVendorCSS",(function(){return Et})),t.d(n,"animate",(function(){return _t})),t.d(n,"makeElementVisible",(function(){return Ot})),t.d(n,"makeElementInvisible",(function(){return St})),t.d(n,"showElement",(function(){return xt})),t.d(n,"hideElement",(function(){return Tt})),t.d(n,"destroyElement",(function(){return It})),t.d(n,"showAndAnimate",(function(){return Ct})),t.d(n,"animateAndHide",(function(){return Rt})),t.d(n,"addClass",(function(){return Nt})),t.d(n,"removeClass",(function(){return kt})),t.d(n,"isElementClosed",(function(){return At})),t.d(n,"watchElementForClose",(function(){return jt})),t.d(n,"fixScripts",(function(){return Wt})),t.d(n,"onResize",(function(){return Mt})),t.d(n,"getResourceLoadTime",(function(){return Lt})),t.d(n,"isShadowElement",(function(){return Dt})),t.d(n,"getShadowRoot",(function(){return Ft})),t.d(n,"getShadowHost",(function(){return qt})),t.d(n,"insertShadowSlot",(function(){return Bt})),t.d(n,"preventClickFocus",(function(){return zt})),t.d(n,"getStackTrace",(function(){return Ut})),t.d(n,"getCurrentScript",(function(){return Vt})),t.d(n,"getCurrentScriptUID",(function(){return Gt})),t.d(n,"experiment",(function(){return Kt})),t.d(n,"getGlobalNameSpace",(function(){return Qt})),t.d(n,"getStorage",(function(){return Jt})),t.d(n,"getFunctionName",(function(){return ie})),t.d(n,"setFunctionName",(function(){return ae})),t.d(n,"base64encode",(function(){return ue})),t.d(n,"base64decode",(function(){return ce})),t.d(n,"uniqueID",(function(){return se})),t.d(n,"getGlobal",(function(){return de})),t.d(n,"getObjectID",(function(){return fe})),t.d(n,"getEmptyObject",(function(){return pe})),t.d(n,"memoize",(function(){return me})),t.d(n,"promiseIdentity",(function(){return ve})),t.d(n,"memoizePromise",(function(){return ye})),t.d(n,"promisify",(function(){return ge})),t.d(n,"inlineMemoize",(function(){return Ee})),t.d(n,"noop",(function(){return be})),t.d(n,"once",(function(){return Pe})),t.d(n,"hashStr",(function(){return _e})),t.d(n,"strHashStr",(function(){return Oe})),t.d(n,"match",(function(){return Se})),t.d(n,"awaitKey",(function(){return xe})),t.d(n,"stringifyError",(function(){return Te})),t.d(n,"stringifyErrorMessage",(function(){return Ie})),t.d(n,"stringify",(function(){return Ce})),t.d(n,"domainMatches",(function(){return Re})),t.d(n,"patchMethod",(function(){return Ne})),t.d(n,"extend",(function(){return ke})),t.d(n,"values",(function(){return Ae})),t.d(n,"memoizedValues",(function(){return je})),t.d(n,"perc",(function(){return We})),t.d(n,"min",(function(){return Me})),t.d(n,"max",(function(){return Le})),t.d(n,"roundUp",(function(){return De})),t.d(n,"regexMap",(function(){return Fe})),t.d(n,"svgToBase64",(function(){return qe})),t.d(n,"objFilter",(function(){return Be})),t.d(n,"identity",(function(){return ze})),t.d(n,"regexTokenize",(function(){return Ue})),t.d(n,"promiseDebounce",(function(){return Ye})),t.d(n,"safeInterval",(function(){return Ve})),t.d(n,"isInteger",(function(){return He})),t.d(n,"isFloat",(function(){return Ge})),t.d(n,"serializePrimitive",(function(){return Je})),t.d(n,"deserializePrimitive",(function(){return $e})),t.d(n,"dotify",(function(){return Ze})),t.d(n,"undotify",(function(){return Xe})),t.d(n,"eventEmitter",(function(){return Ke})),t.d(n,"camelToDasherize",(function(){return Qe})),t.d(n,"dasherizeToCamel",(function(){return en})),t.d(n,"capitalizeFirstLetter",(function(){return nn})),t.d(n,"get",(function(){return tn})),t.d(n,"safeTimeout",(function(){return rn})),t.d(n,"defineLazyProp",(function(){return on})),t.d(n,"arrayFrom",(function(){return an})),t.d(n,"isObject",(function(){return un})),t.d(n,"isObjectObject",(function(){return cn})),t.d(n,"isPlainObject",(function(){return sn})),t.d(n,"replaceObject",(function(){return dn})),t.d(n,"copyProp",(function(){return fn})),t.d(n,"regex",(function(){return ln})),t.d(n,"regexAll",(function(){return pn})),t.d(n,"isDefined",(function(){return hn})),t.d(n,"cycle",(function(){return wn})),t.d(n,"debounce",(function(){return mn})),t.d(n,"isRegex",(function(){return vn})),t.d(n,"weakMapMemoize",(function(){return yn})),t.d(n,"weakMapMemoizePromise",(function(){return gn})),t.d(n,"getOrSet",(function(){return En})),t.d(n,"cleanup",(function(){return bn})),t.d(n,"tryCatch",(function(){return Pn})),t.d(n,"removeFromArray",(function(){return _n})),t.d(n,"assertExists",(function(){return On})),t.d(n,"unique",(function(){return Sn})),t.d(n,"constHas",(function(){return xn})),t.d(n,"dedupeErrors",(function(){return Tn})),t.d(n,"ExtendableError",(function(){return In})),t.d(n,"request",(function(){return nr})),t.d(n,"addHeaderBuilder",(function(){return tr})),t.d(n,"TYPES",(function(){return rr})),t.d(n,"memoized",(function(){return or})),t.d(n,"promise",(function(){return ir})),t.d(n,"isPerc",(function(){return ar})),t.d(n,"isPx",(function(){return ur})),t.d(n,"toNum",(function(){return cr})),t.d(n,"toPx",(function(){return sr})),t.d(n,"toCSS",(function(){return dr})),t.d(n,"percOf",(function(){return fr})),t.d(n,"normalizeDimension",(function(){return lr})),t.d(n,"wrapPromise",(function(){return pr})),t.d(n,"KEY_CODES",(function(){return Cn})),t.d(n,"ATTRIBUTES",(function(){return Rn})),t.d(n,"iPhoneScreenHeightMatrix",(function(){return r}));var r={926:{device:"iPhone 12 Pro Max",textSizeHeights:[752,748,744,738],zoomHeight:{1.15:[752,747,744,738],1.25:[753,748,744,738],1.5:[752,749,744,738],1.75:[753,747,744,739],2:[752,748,744],2.5:[753,748],3:[753,744]},maybeSafari:{2:[738],2.5:[745,738],3:[747,738]}},896:{device:"iPhone XS Max, iPhone 11 Pro Max, iPhone XR, iPhone 11",textSizeHeights:[721,717,713,707],zoomHeight:{1.15:[721,716,713,707],1.25:[721,718,713,708],1.5:[722,717,713],1.75:[721,718,712,707],2:[722,718,714,708],2.5:[720,718,713,708],3:[720,717,708]},maybeSafari:{1.5:[707],3:[714]}},844:{device:"iPhone 12, iPhone 12 Pro",textSizeHeights:[670,666,662,656],zoomHeight:{1.15:[670,666,662],1.25:[670,666,663,656],1.5:[671,666,662],1.75:[670,667,662,656],2:[670,666,662],2.5:[670,663],3:[669,666,663,657]},maybeSafari:{1.15:[656],1.5:[656],2:[656],2.5:[665,655],3:[663]}},812:{device:"iPhone X, iPhone XS, iPhone 11 Pro, iPhone 12 Mini",textSizeHeights:[641,637,633,627],zoomHeight:{1.15:[641,637,633,627],1.25:[641,638,633,628],1.5:[641,638,633,627],1.75:[641,637,634],2:[642,638,634,628],2.5:[640,638,633,628],3:[642,633]},maybeSafari:{1.75:[627],3:[636,627]}},736:{device:"iPhone 6 Plus, iPhone 6S Plus, iPhone 7 Plus, iPhone 8 Plus",textSizeHeights:[628,624,620,614],zoomHeight:{1.15:[628,624,620,614],1.25:[628,624,620,614],1.5:[629,624,620],1.75:[628,625,620,614],2:[628,624,620],2.5:[628,625,620,615],3:[627,624,615]},maybeSafari:{1.5:[614],2:[614],3:[621]}},667:{device:"iPhone 6, iPhone 6S, iPhone 7, iPhone 8, iPhone SE2",textSizeHeights:[559,555,551,545],zoomHeight:{1.15:[559,555,551,545],1.25:[559,555,551,545],1.5:[560,555,551],1.75:[558,555,551],2:[560,556,552,546],2.5:[560,555,550],3:[558,555,546]},maybeSafari:{1.5:[545],1.75:[544],2.5:[545],3:[552]}}};function o(){return window.navigator.mockUserAgent||window.navigator.userAgent}function i(e){return void 0===e&&(e=o()),!!e.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function a(){var e=o();return/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(e)||/\bwv\b/.test(e)||/Android.*Version\/(\d)\.(\d)/i.test(e)}function u(){return!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches}function c(e){return void 0===e&&(e=o()),/FBAN/.test(e)||/FBAV/.test(e)}function s(e){return void 0===e&&(e=o()),/FxiOS/i.test(e)}function d(e){return void 0===e&&(e=o()),/EdgiOS/i.test(e)}function f(e){return void 0===e&&(e=o()),/Opera Mini/i.test(e)}function l(e){return void 0===e&&(e=o()),/Android/.test(e)}function h(e){return void 0===e&&(e=o()),/iPhone|iPod|iPad/.test(e)}function w(e){return void 0===e&&(e=o()),/\bGSA\b/.test(e)}function m(e){return void 0===e&&(e=o()),/QQBrowser/.test(e)}function v(e){return void 0===e&&(e=o()),!!h(e)&&(!!w(e)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(e))}function y(e){if(void 0===e&&(e=o()),h(e)){var n=r[window.outerHeight];if(!n)return!1;var t=window.innerHeight,i=Math.round(window.screen.width/window.innerWidth*100)/100,a=Math.round(t*i);return i>1&&n.zoomHeight[i]?-1!==n.zoomHeight[i].indexOf(a):-1!==n.textSizeHeights.indexOf(a)}return!1}function g(e){if(void 0===e&&(e=o()),h(e)){var n=y(e),t=r[window.outerHeight];if(!t)return!1;var i=window.innerHeight,a=Math.round(window.screen.width/window.innerWidth*100)/100,u=Math.round(i*a),c=t.maybeSafari,s=!1;return a>1&&c[a]&&-1!==c[a].indexOf(u)&&(s=!0),n||s}return!1}function E(e){return void 0===e&&(e=o()),!!l(e)&&/Version\/[\d.]+/.test(e)&&!f(e)}function b(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function P(){var e=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),n=window.document.querySelector('meta[content="IE=edge"]');return!(!e||!n)}function _(){return!("undefined"==typeof process||!process.versions||!process.versions.electron)}function O(){if(window.document.documentMode)try{var e=window.status;return window.status="testIntranetMode","testIntranetMode"===window.status&&(window.status=e,!0)}catch(e){return!1}return!1}function S(){var e=o();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(e)}function x(e){return void 0===e&&(e=o()),!(v(e)||E(e)||f(e)||s(e)||d(e)||c(e)||m(e)||_()||S()||u())}function T(e){return void 0===e&&(e=o()),/Chrome|Chromium|CriOS/.test(e)}function I(e){return void 0===e&&(e=o()),/Safari/.test(e)&&!T(e)}function C(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(e){return!1}return!1}function R(e,n){return(R=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function N(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,R(e,n)}function k(){return(k=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function A(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var j,W=[],M=[],L=0;function D(){if(!L&&j){var e=j;j=null,e.resolve()}}function F(){L+=1}function q(){L-=1,D()}var B=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;F();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return q(),void this.reject(e)}q(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(A(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(A(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===W.indexOf(e)){W.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<M.length;t++)M[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,F();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var a=r[i],u=a.onSuccess,c=a.onError,s=a.promise,d=void 0;if(n)try{d=u?u(this.value):this.value}catch(e){s.reject(e);continue}else if(t){if(!c){s.reject(this.error);continue}try{d=c(this.error)}catch(e){s.reject(e);continue}}d instanceof e&&(d.resolved||d.rejected)?(d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0):A(d)?d instanceof e&&(d.resolved||d.rejected)?d.resolved?s.resolve(d.value):s.reject(d.error):o(d,s):s.resolve(d)}r.length=0,this.dispatching=!1,q()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.resolve=function(n){return n instanceof e?n:A(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[];if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},a=0;a<n.length;a++){var u=n[a];if(u instanceof e){if(u.resolved){o[a]=u.value,r-=1;continue}}else if(!A(u)){o[a]=u,r-=1;continue}i(a,e.resolve(u),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];A(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return M.push(e),{cancel:function(){M.splice(M.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;F();try{o=n.apply(t,r||[])}catch(n){return q(),e.reject(n)}return q(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||A(n)},e.flush=function(){return n=j=j||new e,D(),n;var n},e}(),z="Call was rejected by callee.\r\n";function U(e){return void 0===e&&(e=window),"about:"===e.location.protocol}function Y(e){try{return!0}catch(e){}return!1}function V(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=n.protocol;if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=function(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}(e);return r&&Y()?V(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function H(e){void 0===e&&(e=window);var n=V(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function G(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(U(e)&&Y())return!0}catch(e){}try{if(V(e)===V(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(U(e)&&Y())return!0;if(H(window)===H(e))return!0}catch(e){}return!1}var J=[],$=[];function Z(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==z}if(n&&G(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(J,e);if(-1!==t){var r=$[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function X(e){try{if(e===window)return!0}catch(e){if(e&&e.message===z)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===z)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===z)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===z)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===z)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===z)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function K(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Q,ee=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>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<n.length;t++){var r=n[t];if(X(r)&&Z(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!X(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=K(i,e);-1===u?(i.push(e),a.push(n)):a[u]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=K(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=K(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==K(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function te(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function re(e,n,t){return(re=te()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&R(o,t.prototype),o}).apply(null,arguments)}function oe(e){var n="function"==typeof Map?new Map:void 0;return(oe=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return re(e,arguments,ne(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),R(t,e)})(e)}function ie(e){return e.name||e.__name__||e.displayName||"anonymous"}function ae(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function ue(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})));if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}function ce(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function se(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+ue((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function de(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if(void 0!==p)return p;throw new Error("No global found")}function fe(e){if(Q=Q||new ee,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Q.get(e);return n||(n=typeof e+":"+se(),Q.set(e,n)),n}function le(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+fe(n)+"]":n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function pe(){return{}}var he=0,we=0;function me(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,u=he;he+=1;var c=function(){for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];var s;u<we&&(t=null,r=null,u=he,he+=1),s=i?(r=r||new ee).getOrSet(this,pe):t=t||{};var d=le(o),f=s[d];if(f&&a&&Date.now()-f.time<a&&(delete s[d],f=null),f)return f.value;var l=Date.now(),p=e.apply(this,arguments);return s[d]={time:l,value:p},p};return c.reset=function(){t=null,r=null},ae(c,(n.name||ie(e))+"::memoized")}function ve(e){return B.resolve(e)}function ye(e){var n={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=le(i);return n.hasOwnProperty(u)||(n[u]=B.try((function(){return e.apply(r,t)})).finally((function(){delete n[u]}))),n[u]}return t.reset=function(){n={}},ae(t,ie(e)+"::promiseMemoized")}function ge(e,n){function t(){return B.try(e,this,arguments)}return void 0===n&&(n={}),n.name&&(t.displayName=n.name+":promisified"),ae(t,ie(e)+"::promisified")}function Ee(e,n,t){void 0===t&&(t=[]);var r=e.__inline_memoize_cache__=e.__inline_memoize_cache__||{},o=le(t);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,t)}function be(){}function Pe(e){var n=!1;return ae((function(){if(!n)return n=!0,e.apply(this,arguments)}),ie(e)+"::once")}function _e(e){for(var n=0,t=0;t<e.length;t++)n+=e[t].charCodeAt(0)*Math.pow(t%10+1,5);return Math.floor(Math.pow(Math.sqrt(n),5))}function Oe(e){for(var n="",t=0;t<e.length;t++){var r=e[t].charCodeAt(0)*t;e[t+1]&&(r+=e[t+1].charCodeAt(0)*(t-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}function Se(e,n){var t=e.match(n);if(t)return t[1]}function xe(e,n){return new B((function(t){var r=e[n];if(r)return t(r);delete e[n],Object.defineProperty(e,n,{configurable:!0,set:function(e){(r=e)&&t(r)},get:function(){return r}})}))}function Te(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";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: "+Te(e,n+1)}}function Ie(e){var n="<unknown error: "+{}.toString.call(e)+">";return e?e instanceof Error?e.message||n:"string"==typeof e.message&&e.message||n:n}function Ce(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function Re(e,n){var t=(e=e.split("://")[1]).indexOf(n);return-1!==t&&e.slice(t)===n}function Ne(e,n,t){var r=e[n];e[n]=function(){var e=arguments,n=this;return t({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(n,e)}})}}function ke(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}me.clear=function(){we=he};var Ae=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},je=me(Ae);function We(e,n){return Math.round(e*n/100)}function Me(){return Math.min.apply(Math,arguments)}function Le(){return Math.max.apply(Math,arguments)}function De(e,n){var t=e%n;return t?e-t+n:e}function Fe(e,n,t){var r=[];return e.replace(n,(function(e){r.push(t?t.apply(null,arguments):e)})),r}function qe(e){return"data:image/svg+xml;base64,"+ue(e)}function Be(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function ze(e){return e}function Ue(e,n){var t=[];return e.replace(n,(function(e){return t.push(e),""})),t}function Ye(e,n){var t,r;return void 0===n&&(n=50),ae((function(){r&&clearTimeout(r);var o=t=t||new B;return r=setTimeout((function(){t=null,r=null,B.try(e).then((function(e){o.resolve(e)}),(function(e){o.reject(e)}))}),n),o}),ie(e)+"::promiseDebounced")}function Ve(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function He(e){return Boolean(e.match(/^[0-9]+$/))}function Ge(e){return Boolean(e.match(/^[0-9]+\.[0-9]+$/))}function Je(e){return e.toString()}function $e(e){return"true"===e||"false"!==e&&(He(e)?parseInt(e,10):Ge(e)?parseFloat(e):e)}function Ze(e,n,t){for(var r in void 0===n&&(n=""),void 0===t&&(t={}),n=n?n+".":n,e)e.hasOwnProperty(r)&&null!=e[r]&&"function"!=typeof e[r]&&(e[r]&&Array.isArray(e[r])&&e[r].length&&e[r].every((function(e){return"object"!=typeof e}))?t[""+n+r+"[]"]=e[r].join(","):e[r]&&"object"==typeof e[r]?t=Ze(e[r],""+n+r,t):t[""+n+r]=Je(e[r]));return t}function Xe(e){var n={};for(var t in e)if(e.hasOwnProperty(t)&&"string"==typeof e[t]){var r=e[t];t.match(/^.+\[\]$/)?(t=t.slice(0,-2),r=r.split(",").map($e)):r=$e(r);for(var o=n,i=t.split("."),a=0;a<i.length;a++){var u=i[a],c=a+1===i.length,s=!c&&He(i[a+1]);if("constructor"===u||"prototype"===u||"__proto__"===u)throw new Error("Disallowed key: "+u);c?o[u]=r:o=o[u]=o[u]||(s?[]:{})}}return n}function Ke(){var e={},n={};return{on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var t=this.on(e,(function(){t.cancel(),n()}));return t},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n[e],a=[];if(i)for(var u=function(e){var n=i[e];a.push(B.try((function(){return n.apply(void 0,r)})))},c=0;c<i.length;c++)u(c);return B.all(a).then(be)},triggerOnce:function(n){if(e[n])return B.resolve();e[n]=!0;for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return this.trigger.apply(this,[n].concat(r))},reset:function(){n={}}}}function Qe(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}function en(e){return e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function nn(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function tn(e,n,t){if(!n)return t;for(var r=n.split("."),o=0;o<r.length;o++){if("object"!=typeof e||null===e)return t;e=e[r[o]]}return void 0===e?t:e}function rn(e,n){var t=Ve((function(){(n-=100)<=0&&(t.cancel(),e())}),100)}function on(e,n,t){if(Array.isArray(e)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof e&&null!==e&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){delete e[n];var r=t();return e[n]=r,r},set:function(t){delete e[n],e[n]=t}})}function an(e){return[].slice.call(e)}function un(e){return"object"==typeof e&&null!==e}function cn(e){return un(e)&&"[object Object]"==={}.toString.call(e)}function sn(e){if(!cn(e))return!1;var n=e.constructor;if("function"!=typeof n)return!1;var t=n.prototype;return!!cn(t)&&!!t.hasOwnProperty("isPrototypeOf")}function dn(e,n,t){if(void 0===t&&(t=""),Array.isArray(e)){for(var r=e.length,o=[],i=function(r){on(o,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(sn(i)||Array.isArray(i))&&(i=dn(i,n,o)),i}))},a=0;a<r;a++)i(a);return o}if(sn(e)){var u={},c=function(r){if(!e.hasOwnProperty(r))return"continue";on(u,r,(function(){var o=t?t+"."+r:""+r,i=n(e[r],r,o);return(sn(i)||Array.isArray(i))&&(i=dn(i,n,o)),i}))};for(var s in e)c(s);return u}throw new Error("Pass an object or array")}function fn(e,n,t,r){if(e.hasOwnProperty(t)){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o)}else n[t]=r}function ln(e,n,t){void 0===t&&(t=0),"string"==typeof e&&(e=new RegExp(e));var r=n.slice(t).match(e);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:t+o,end:t+o+i.length,length:i.length,replace:function(e){return i?""+i.slice(0,t+o)+e+i.slice(o+i.length):""}}}}function pn(e,n){for(var t=[],r=0;;){var o=ln(e,n,r);if(!o)break;t.push(o),r=Se.end}return t}function hn(e){return null!=e}function wn(e){return B.try(e).then((function(){return wn(e)}))}function mn(e,n){var t;return void 0===n&&(n=100),ae((function(){var r=arguments,o=this;clearTimeout(t),t=setTimeout((function(){return e.apply(o,r)}),n)}),ie(e)+"::debounced")}function vn(e){return"[object RegExp]"==={}.toString.call(e)}var yn=function(e){var n=new ee;return function(t){var r=this;return n.getOrSet(t,(function(){return e.call(r,t)}))}},gn=function(e){var n=new ee;return function(t){var r=this;return n.getOrSet(t,(function(){return e.call(r,t).finally((function(){n.delete(t)}))}))}};function En(e,n,t){if(e.hasOwnProperty(n))return e[n];var r=t();return e[n]=r,r}function bn(e){var n,t=[],r=!1;return{set:function(n,t){return r||(e[n]=t,this.register((function(){delete e[n]}))),t},register:function(e){r?e(n):t.push(Pe((function(){return e(n)})))},all:function(e){n=e;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return B.all(o).then(be)}}}function Pn(e){var n,t;try{n=e()}catch(e){t=e}return{result:n,error:t}}function _n(e,n){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}function On(e,n){if(null==n)throw new Error("Expected "+e+" to be present");return n}function Sn(e){for(var n={},t=0;t<e.length;t++)n[e[t]]=!0;return Object.keys(n)}var xn=function(e,n){return-1!==je(e).indexOf(n)};function Tn(e){var n=[],t={};return function(r){if(-1===n.indexOf(r)){n.push(r);var o=Te(r);if(!t[o])return t[o]=!0,e(r)}}}var In=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 N(n,e),n}(oe(Error)),Cn={ENTER:13,SPACE:32},Rn={UID:"data-uid"};function Nn(){return Boolean(document.body)&&"complete"===document.readyState}function kn(){return Boolean(document.body)&&"interactive"===document.readyState}function An(e){return encodeURIComponent(e)}function jn(){return Ee(jn,(function(){return new B((function(e){Nn()&&e(),window.addEventListener("load",(function(){return e()}))}))}))}var Wn=me((function(){return new B((function(e){if(Nn()||kn())return e();var n=setInterval((function(){if(Nn()||kn())return clearInterval(n),e()}),10)}))}));function Mn(){return B.try((function(){return document.body?document.body:Wn().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function Ln(e){return Ee(Ln,(function(){var n={};if(!e)return n;if(-1===e.indexOf("="))return n;for(var t=0,r=e.split("&");t<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[e])}function Dn(e){return Ln(window.location.search.slice(1))[e]}function Fn(e){return-1===e.indexOf("#")||0!==e.indexOf("#")&&e.split("#")[0]!==window.location.href.split("#")[0]}function qn(e){return void 0===e&&(e={}),Object.keys(e).filter((function(n){return"string"==typeof e[n]||"boolean"==typeof e[n]})).map((function(n){var t=e[n];if("string"!=typeof t&&"boolean"!=typeof t)throw new TypeError("Invalid type for query");return An(n)+"="+An(t.toString())})).join("&")}function Bn(e,n){return void 0===n&&(n={}),n&&Object.keys(n).length?qn(k({},Ln(e),n)):e}function zn(e,n){var t,r,o=n.query||{},i=n.hash||{},a=e.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=Bn(u[1],o),s=Bn(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}function Un(e,n){return void 0===n&&(n=window),new B((function(t){n.location=e,Fn(e)||t()}))}function Yn(){var e=document.querySelector("meta[name=viewport]");return!(i()&&window.screen.width<660&&!e)}function Vn(e){return Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Hn(){return Ee(Hn,(function(){var e=window.performance;if(e&&e.now&&e.timing&&e.timing.connectEnd&&e.timing.navigationStart&&Math.abs(e.now()-Date.now())>1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}function Gn(){return Boolean(Hn())}function Jn(){return Wn().then((function(){var e=Hn();if(e){var n=e.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}function $n(e){return void 0===e&&(e=""),e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Zn(){return"undefined"!=typeof window&&void 0!==window.location}function Xn(e,n){return void 0===n&&(n=window.document),[].slice.call(n.querySelectorAll(e))}function Kn(e,n){e.addEventListener("touchstart",be),e.addEventListener("click",n),e.addEventListener("keypress",(function(e){if(e.keyCode===Cn.ENTER||e.keyCode===Cn.SPACE)return n(e)}))}function Qn(e){var n=e.host,t=void 0===n?window.location.host:n,r=e.path,o=e.reverse,i=void 0!==o&&o;return Ee(Qn,(function(){var e=""+t+r,n=[].slice.call(document.getElementsByTagName("script"));i&&n.reverse();for(var o=0;o<n.length;o++){var a=n[o];if(a.src&&a.src.replace(/^https?:\/\//,"").split("?")[0]===e)return a}}),[r])}function et(){return Ee(et,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function nt(){var e=window.navigator,n=e.languages?[].concat(e.languages):[];return e.language&&n.push(e.language),e.userLanguage&&n.push(e.userLanguage),n.map((function(e){if(e&&e.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=e.split(/[-_]/);return{country:n[1],lang:n[0]}}return e&&e.match(/^[a-z]{2}$/)?{lang:e}:null})).filter(Boolean)}function tt(e,n){e.appendChild(n)}function rt(e){return e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}function ot(e,n){return void 0===n&&(n=document),rt(e)?e:"string"==typeof e?n.querySelector(e):void 0}function it(e,n){void 0===n&&(n=document);var t=ot(e,n);if(t)return t;throw new Error("Can not find element: "+Ce(e))}function at(e){return new B((function(n,t){var r=Ce(e),o=ot(e);if(o)return n(o);if(Nn())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=ot(e))?(clearInterval(i),n(o)):Nn()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}var ut,ct=function(e){function n(){return e.apply(this,arguments)||this}return N(n,e),n}(In);function st(e,n){var t=(n=n||{}).width,r=n.height,o=0,i=0;t&&(window.outerWidth?i=Math.round((window.outerWidth-t)/2)+window.screenX:window.screen.width&&(i=Math.round((window.screen.width-t)/2))),r&&(window.outerHeight?o=Math.round((window.outerHeight-r)/2)+window.screenY:window.screen.height&&(o=Math.round((window.screen.height-r)/2))),t&&r&&(n=k({top:o,left:i,width:t,height:r,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var a=n.name||"";delete n.name;var u,c=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+Ce(n[e])})).filter(Boolean).join(",");try{u=window.open(e,a,c)}catch(e){throw new ct("Can not open popup window - "+(e.stack||e.message))}if(Z(u))throw new ct("Can not open popup window - blocked");return window.addEventListener("unload",(function(){return u.close()})),u}function dt(e,n){try{e.document.open(),e.document.write(n),e.document.close()}catch(t){try{e.location="javascript: document.open(); document.write("+JSON.stringify(n)+"); document.close();"}catch(e){}}}function ft(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=an(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=an(n.children);a<u.length;a++)r.appendChild(u[a])}function lt(e,n,t){void 0===t&&(t=window.document),e.styleSheet?e.styleSheet.cssText=n:e.appendChild(t.createTextNode(n))}function pt(e){if((ut=ut||new ee).has(e)){var n=ut.get(e);if(n)return n}var t=new B((function(n,t){e.addEventListener("load",(function(){!function(e){if(function(){for(var e=0;e<J.length;e++){var n=!1;try{n=J[e].closed}catch(e){}n&&($.splice(e,1),J.splice(e,1))}}(),e&&e.contentWindow)try{J.push(e.contentWindow),$.push(e)}catch(e){}}(e),n(e)})),e.addEventListener("error",(function(r){e.contentWindow?n(e):t(r)}))}));return ut.set(e,t),t}function ht(e){return pt(e).then((function(e){if(!e.contentWindow)throw new Error("Could not find window in iframe");return e.contentWindow}))}function wt(e,n,t){void 0===e&&(e="div"),void 0===n&&(n={}),e=e.toLowerCase();var r=document.createElement(e);if(n.style&&ke(r.style,n.style),n.class&&(r.className=n.class.join(" ")),n.id&&r.setAttribute("id",n.id),n.attributes)for(var o=0,i=Object.keys(n.attributes);o<i.length;o++){var a=i[o];r.setAttribute(a,n.attributes[a])}if(n.styleSheet&<(r,n.styleSheet),t&&tt(t,r),n.html)if("iframe"===e){if(!t||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");dt(r.contentWindow,n.html)}else r.innerHTML=n.html;return r}function mt(e,n){void 0===e&&(e={});var t=e.style||{},r=wt("iframe",{attributes:k({allowTransparency:"true"},e.attributes||{}),style:k({backgroundColor:"transparent",border:"none"},t),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",se()),pt(r),n&&it(n).appendChild(r),(e.url||o)&&r.setAttribute("src",e.url||"about:blank"),r}function vt(e,n,t){return e.addEventListener(n,t),{cancel:function(){e.removeEventListener(n,t)}}}function yt(e,n,t){t=Pe(t);for(var r=0;r<n.length;r++)e.addEventListener(n[r],t);return{cancel:Pe((function(){for(var r=0;r<n.length;r++)e.removeEventListener(n[r],t)}))}}var gt=["webkit","moz","ms","o"];function Et(e,n,t){e.style[n]=t;for(var r=nn(n),o=0;o<gt.length;o++)e.style[""+gt[o]+r]=t}var bt=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],Pt=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function _t(e,n,t,r){return void 0===r&&(r=1e3),new B((function(o,i){var a=it(e);if(!a)return o();var u,c,s,d,f=!1;function l(){clearTimeout(u),clearTimeout(c),s.cancel(),d.cancel()}s=yt(a,bt,(function(e){e.target===a&&e.animationName===n&&(clearTimeout(u),e.stopPropagation(),s.cancel(),f=!0,c=setTimeout((function(){l(),o()}),r))})),d=yt(a,Pt,(function(e){if(e.target===a&&e.animationName===n)return l(),"string"==typeof e.animationName&&e.animationName!==n?i("Expected animation name to be "+n+", found "+e.animationName):o()})),Et(a,"animationName",n),u=setTimeout((function(){if(!f)return l(),o()}),200),t&&t(l)}))}function Ot(e){e.style.setProperty("visibility","")}function St(e){e.style.setProperty("visibility","hidden","important")}function xt(e){e.style.setProperty("display","")}function Tt(e){e.style.setProperty("display","none","important")}function It(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,n,t){var r=_t(e,n,t);return xt(e),r}function Rt(e,n,t){return _t(e,n,t).then((function(){Tt(e)}))}function Nt(e,n){e.classList.add(n)}function kt(e,n){e.classList.remove(n)}function At(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function jt(e,n){n=Pe(n);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var e=0;e<a.length;e++)a[e].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&It(r)},c=function(){i||(n(),u())};if(At(e))return c(),{cancel:u};if(window.MutationObserver)for(var s=e.parentElement;s;){var d=new window.MutationObserver((function(){At(e)&&c()}));d.observe(s,{childList:!0}),a.push(d),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+se()+"__"),r.style.display="none",ht(r).then((function(e){(o=function(e){if(!G(e))throw new Error("Expected window to be same domain");return e}(e)).addEventListener("unload",c)})),e.appendChild(r),t=Ve((function(){At(e)&&c()}),1e3),{cancel:u}}function Wt(e,n){void 0===n&&(n=window.document);for(var t=0,r=Xn("script",e);t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}function Mt(e,n,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,d=r.win,f=void 0===d?window:d,l=e.offsetWidth,p=e.offsetHeight,h=!1;n({width:l,height:p});var w,m,v=function(){if(!h&&Vn(e)){var t=e.offsetWidth,r=e.offsetHeight;(i&&t!==l||u&&r!==p)&&n({width:t,height:r}),l=t,p=r}};return f.addEventListener("resize",v),void 0!==f.ResizeObserver?((w=new f.ResizeObserver(v)).observe(e),m=Ve(v,10*s)):void 0!==f.MutationObserver?((w=new f.MutationObserver(v)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=Ve(v,10*s)):m=Ve(v,s),{cancel:function(){h=!0,w.disconnect(),window.removeEventListener("resize",v),m.cancel()}}}function Lt(e){var n=Hn();if(n&&"function"==typeof n.getEntries)for(var t=n.getEntries(),r=0;r<t.length;r++){var o=t[r];if(o&&o.name&&0===o.name.indexOf(e)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function Dt(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}function Ft(e){for(;e.parentNode;)e=e.parentNode;if(Dt(e))return e}function qt(e){var n=Ft(e);if(n.host)return n.host}function Bt(e){var n=qt(e);if(!n)throw new Error("Element is not in shadow dom");if(Dt(n))throw new Error("Host element is also in shadow dom");var t="shadow-slot-"+se(),r=document.createElement("slot");r.setAttribute("name",t),e.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",t),n.appendChild(o),o}function zt(e){var n=function n(t){return e.removeEventListener("focus",n),t.preventDefault(),e.blur(),!1};e.addEventListener("mousedown",(function(){e.addEventListener("focus",n),setTimeout((function(){e.removeEventListener("focus",n)}),1)}))}function Ut(){try{throw new Error("_")}catch(e){return e.stack||""}}var Yt="undefined"!=typeof document?document.currentScript:null,Vt=me((function(){if(Yt)return Yt;if(Yt=function(){try{var e=Ut(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return Yt;throw new Error("Can not determine current script")})),Ht=se(),Gt=me((function(){var e;try{e=Vt()}catch(e){return Ht}var n=e.getAttribute(Rn.UID);return n&&"string"==typeof n||(n=e.getAttribute(Rn.UID+"-auto"))&&"string"==typeof n||(n=se(),e.setAttribute(Rn.UID+"-auto",n)),n}));function Jt(e){var n=e.name,t=e.lifetime,r=void 0===t?12e5:t;return Ee(Jt,(function(){var e,t="__"+n+"_storage__",o=se();function i(n){var r,i=et();if(e&&(r=e),!r&&i){var a=window.localStorage.getItem(t);a&&(r=JSON.parse(a))}r||(r=de()[t]),r||(r={id:o}),r.id||(r.id=o),e=r;var u=n(r);return i?window.localStorage.setItem(t,JSON.stringify(r)):de()[t]=r,e=null,u}function a(){return i((function(e){return e.id}))}function u(e){return i((function(n){var t=n.__session__,o=Date.now();return t&&o-t.created>r&&(t=null),t||(t={guid:se(),created:o}),n.__session__=t,e(t)}))}return{getState:i,getID:a,isStateFresh:function(){return a()===o},getSessionState:function(e){return u((function(n){return n.state=n.state||{},e(n.state)}))},getSessionID:function(){return u((function(e){return e.guid}))}}}),[{name:n,lifetime:r}])}function $t(){return Jt({name:"belter_experiment"})}function Zt(e){return $t().getSessionState((function(n){return n.loggedBeacons=n.loggedBeacons||[],-1===n.loggedBeacons.indexOf(e)&&(n.loggedBeacons.push(e),!0)}))}function Xt(e){return Math.floor(Math.random()*e)}function Kt(e){var n,t=e.name,r=e.sample,o=void 0===r?50:r,i=e.logTreatment,a=void 0===i?be:i,u=e.logCheckpoint,c=void 0===u?be:u,s=e.sticky,d=void 0===s||s?function(e){return $t().getState((function(n){return n.throttlePercentiles=n.throttlePercentiles||{},n.throttlePercentiles[e]=n.throttlePercentiles[e]||Xt(100),n.throttlePercentiles[e]}))}(t):Xt(100),f=t+"_"+(n=d<o?"test":o>=50||o<=d&&d<2*o?"control":"throttle"),l=!1,p=!1;try{window.localStorage&&window.localStorage.getItem(t)&&(p=!0)}catch(e){}return{isEnabled:function(){return"test"===n||p},isDisabled:function(){return"test"!==n&&!p},getTreatment:function(){return f},log:function(e,n){return void 0===n&&(n={}),l?(Zt(f+"_"+JSON.stringify(n))&&a({name:t,treatment:f,payload:n,throttle:d}),Zt(f+"_"+e+"_"+JSON.stringify(n))&&c({name:t,treatment:f,checkpoint:e,payload:n,throttle:d}),this):this},logStart:function(e){return void 0===e&&(e={}),l=!0,this.log("start",e)},logComplete:function(e){return void 0===e&&(e={}),this.log("complete",e)}}}function Qt(e){var n=e.name,t=e.version,r=void 0===t?"latest":t,o=de(),i="__"+n+"__"+r+"_global__",a=o[i]=o[i]||{};return{get:function(e,n){return n=n||{},a[e]=a[e]||n}}}var er=[];function nr(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,u=e.data,c=e.body,s=e.win,d=void 0===s?window:s,f=e.timeout,l=void 0===f?0:f;return new B((function(e,t){if(a&&u||a&&c||u&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,f=Object.keys(i);s<f.length;s++){var p=f[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(u||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<er.length;h++)for(var w=(0,er[h])(),m=0,v=Object.keys(w);m<v.length;m++){var y=v[m];o[y.toLowerCase()]=w[y]}var g=new d.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),u=this.responseText;try{u=JSON.parse(u)}catch(e){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:u})}),!1),g.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(e){return encodeURIComponent(e)+"="+(u?encodeURIComponent(u[e]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(c)}))}function tr(e){er.push(e)}var rr=!0;function or(e,n,t){t.value=me(t.value,{name:n,thisNamespace:!0})}function ir(e,n,t){t.value=ge(t.value,{name:n})}function ar(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function ur(e){return"string"==typeof e&&/^[0-9]+px$/.test(e)}function cr(e){if("number"==typeof e)return e;var n=e.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+e);return parseInt(n[1],10)}function sr(e){return cr(e)+"px"}function dr(e){return"number"==typeof e?sr(e):ar(e)?e:sr(e)}function fr(e,n){return parseInt(e*cr(n)/100,10)}function lr(e,n){if("number"==typeof e)return e;if(ar(e))return fr(n,e);if(ur(e))return cr(e);throw new Error("Can not normalize dimension: "+e)}function pr(e,n){var t=(void 0===n?{}:n).timeout,r=[],o=[],i=setTimeout((function(){r.length&&o.push(B.asyncReject(new Error("Expected "+r[0]+" to be called")))}),void 0===t?5e3:t),a=function(e,n){return void 0===n&&(n=be),r.push(e),function(){for(var t=this,i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];_n(r,e);var c=Pn((function(){var e;return(e=n).call.apply(e,[t].concat(a))})),s=c.result,d=c.error;if(d)throw o.push(B.asyncReject(d)),d;return o.push(B.resolve(s)),s}},u=function(e,n){return void 0===n&&(n=be),function(){var t;o.push(B.asyncReject(new Error("Expected "+e+" to not be called")));for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(t=n).call.apply(t,[this].concat(i))}},c=function(e,n){return void 0===n&&(n=be),r.push(e),function(){for(var t=this,i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];_n(r,e);var c=Pn((function(){var e;return(e=n).call.apply(e,[t].concat(a))})),s=c.result,d=c.error;if(d)throw d;return o.push(B.resolve(s).then((function(){throw new Error("Expected "+e+" to throw an error")}),be)),s}},s=function e(){return B.try((function(){if(o.length)return o.pop()})).then((function(){return o.length?e():r.length?B.delay(10).then(e):void 0}))};return o.push(B.try((function(){return e({expect:a,avoid:u,expectError:c,error:u,wait:s})}))),s().then((function(){clearTimeout(i)}))}}])},e.exports=t()})),Ke=h(Xe),Qe=m(Object.assign({__proto__:null,default:Ke,__moduleExports:Xe},Ke));function en(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var f=o.createElement("style");return i.cspNonce&&f.setAttribute("nonce",i.cspNonce),f.appendChild(o.createTextNode("\n #"+n+" {\n display: block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n #"+n+" > iframe {\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: all .2s ease-in-out;\n }\n #"+n+" > iframe."+be.INVISIBLE+" {\n opacity: 0;\n }\n #"+n+" > iframe."+be.VISIBLE+" {\n opacity: 1;\n }\n ")),t.allowPaymentRequest="true",d.appendChild(t),d.appendChild(r),d.appendChild(f),r.classList.add(be.VISIBLE),t.classList.add(be.INVISIBLE),a.on(Ze.EVENT.RENDERED,(function(){r.classList.remove(be.VISIBLE),r.classList.add(be.INVISIBLE),t.classList.remove(be.INVISIBLE),t.classList.add(be.VISIBLE),setTimeout((function(){Qe.destroyElement(r)}),1)})),a.on(Ze.EVENT.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Qe.toCSS(n)),"number"==typeof t&&(d.style.height=Qe.toCSS(t))})),d}}!function(e){e.VISIBLE="is-visible",e.INVISIBLE="is-invisible"}(be||(be={}));var nn,tn=function(e){var n,t,r,o,i,a;if(null!=(n=e.state)&&n.__createToken)return e.state.__createToken;if(null!=(t=e.parent)&&null!=(r=t.state)&&r.__createToken)return e.parent.state.__createToken;if(null!=(o=e.state)&&null!=(i=o.parent)&&null!=(a=i.state)&&a.__createToken)return e.state.parent.state.__createToken;throw new Error("Index is not registered")},rn=function(){var e=n(v.mark((function e(n,t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tn(n)(t);case 2:return e.abrupt("return",e.sent.data);case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),on=Ze.create({tag:"monei-card-input",url:We.cardInputUrl,dimensions:{width:"100%",height:"auto"},autoResize:{width:!1,height:!0},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1,alias:"orderId"},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},onBlur:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onEnter:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onChange:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onFocus:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},placeholders:{type:Ze.PROP_TYPE.OBJECT,required:!1},errorMessages:{type:Ze.PROP_TYPE.OBJECT,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}}},validate:ke,containerTemplate:function(e){return e.state.__createToken=function(n){if(void 0===n&&(n={}),!e.frame)throw new Error("CardInput instance is not registered");return $e.send(e.frame.contentWindow,"CREATE_TOKEN",n,{domain:We.domain})},en(e)},prerenderTemplate:function(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body");o.style.margin="0";var i=n.createElement("div");i.style.height="36px",i.style.boxSizing="border-box";var a=t.style||t.innerStyle;return null!=a&&a.base&&Object.assign(i.style,Pe(a.base)),null!=a&&a.loading&&Object.assign(i.style,Pe(a.loading)),o.appendChild(i),r.appendChild(o),r}}),an=Ze.create({tag:"monei-payment-modal",url:We.paymentModalUrl,dimensions:{width:"100%",height:"100%"},autoResize:{width:!1,height:!1},containerTemplate:en,prerenderTemplate:function(){},props:{paymentId:{type:Ze.PROP_TYPE.STRING,required:!0},isOpen:{type:Ze.PROP_TYPE.BOOLEAN,required:!0},language:{type:Ze.PROP_TYPE.STRING,required:!1},generatePaymentToken:{type:Ze.PROP_TYPE.BOOLEAN,required:!1},fullscreen:{type:Ze.PROP_TYPE.BOOLEAN,required:!1},customer:{type:Ze.PROP_TYPE.OBJECT,required:!1},paymentMethod:{type:Ze.PROP_TYPE.OBJECT,required:!1},allowedPaymentMethods:{type:Ze.PROP_TYPE.ARRAY,required:!1},customDomain:{type:Ze.PROP_TYPE.STRING,required:!1},billingDetails:{type:Ze.PROP_TYPE.OBJECT,required:!1},shippingDetails:{type:Ze.PROP_TYPE.OBJECT,required:!1},onResult:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1}}}),un=function(){var e=n(v.mark((function e(r){var o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=document.createElement("div"),i=document.body.style.overflow,document.body.appendChild(o),e.abrupt("return",new Promise(function(){var e=n(v.mark((function e(n,a){var u;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=new an(t({},r,{isOpen:!0,onOpen:function(){Object.assign(document.body.style,{overflow:"hidden"}),Object.assign(o.style,{position:"fixed",overflow:"hidden",display:"block",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%",zIndex:99999})},onResult:function(e){n(e),Object.assign(document.body.style,{overflow:i}),document.body.removeChild(o)},onError:function(e){a(e),Object.assign(document.body.style,{overflow:i}),document.body.removeChild(o)}})),e.next=3,u.render(o);case 3:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),cn=function(){var e=n(v.mark((function e(r,o,i){var a,u;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e(i,r.cspNonce,{namespace:"monei-paypal",cspNonce:r.cspNonce},!0);case 2:return o.__scriptId=e.sent.dataset.uidAuto,"string"==typeof(a=t({},{layout:"horizontal",tagline:!1},r.style)).height&&(a.height=parseInt(a.height.replace("px",""))),null==r.onLoad||r.onLoad(!0),e.next=10,window["monei-paypal"].Buttons({createOrder:function(){var e=n(v.mark((function e(){var n,t;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Fe({paymentId:r.paymentId,accountId:r.accountId,sessionId:r.sessionId,amount:r.amount,currency:r.currency,transactionType:r.transactionType,paymentMethod:{paypal:{}}});case 3:return u=(t=e.sent).paymentToken,e.abrupt("return",null==(n=t.paypal)?void 0:n.orderId);case 8:return e.prev=8,e.t0=e.catch(0),null==r.onError||r.onError(e.t0),e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),onApprove:function(e){e.orderID?r.onSubmit({token:u}):null==r.onError||r.onError(e)},onClick:function(e,n){var t=!0;if(r.onBeforeOpen&&(t=r.onBeforeOpen()),!t)return n.reject()},style:a}).render(o.__container);case 10:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),sn=Ze.create({tag:"monei-paypal",url:We.paypalUrl,dimensions:{width:"100%",height:"0"},autoResize:{width:!1,height:!1},prerenderTemplate:function(){},containerTemplate:function(e){if(e.state.__container=e.container,!e.props.accountId&&!e.props.paymentId)throw new Error("You need to provide paymentId or accountId");var n=en(e);return e.event.on(Ze.EVENT.DESTROY,(function(){window["monei-paypal"].Buttons.instances.forEach((function(e){e.close()}));var n=e.state.__scriptId;if(n){var t=document.querySelector('script[data-uid-auto="'+n+'"]');t&&t.remove()}})),n},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},transactionType:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},cspNonce:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}},__onLoadPayPal:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return cn.bind(null,e.props,e.state)}}}});!function(e){e.BEFORE_CLOSE="BEFORE_CLOSE"}(nn||(nn={}));var dn,fn=Ze.create({tag:"monei-bizum",url:We.bizumUrl,dimensions:{width:"100%",height:"100%"},autoResize:{width:!1,height:!1},prerenderTemplate:function(){},containerTemplate:function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");if(i.isHidden)return d.setAttribute("id",n),d.style.display="none",d.appendChild(t),d.appendChild(r),d;var f=o.createElement("div");d.setAttribute("id",n),f.classList.add("backdrop"),d.appendChild(f);var l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.appendChild(o.createTextNode("\n #"+n+" {\n position: fixed;\n overflow: hidden;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: "+c+";\n height: "+s+";\n z-index: 99999;\n }\n #"+n+" > .backdrop {\n position: fixed;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(40, 40, 40, 0.7);\n transition: opacity 0.35s ease-in-out;\n opacity: 0;\n will-change: opacity;\n }\n #"+n+" > .backdrop."+be.VISIBLE+" {\n opacity: 1;\n }\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: all .2s ease-in-out;\n }\n #"+n+" > iframe."+be.INVISIBLE+" {\n opacity: 0;\n }\n #"+n+" > iframe."+be.VISIBLE+" {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(l),r.classList.add(be.VISIBLE),t.classList.add(be.INVISIBLE),setTimeout((function(){f.classList.add(be.VISIBLE)}),1),a.on(Ze.EVENT.RENDERED,(function(){r.classList.remove(be.VISIBLE),r.classList.add(be.INVISIBLE),t.classList.remove(be.INVISIBLE),t.classList.add(be.VISIBLE),setTimeout((function(){Qe.destroyElement(r)}),1)})),a.on(nn.BEFORE_CLOSE,(function(){f.classList.remove(be.VISIBLE)})),a.on(Ze.EVENT.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Qe.toCSS(n)),"number"==typeof t&&(d.style.height=Qe.toCSS(t))})),d}},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},transactionType:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},phoneNumber:{type:Ze.PROP_TYPE.STRING,required:!1},isHidden:{type:Ze.PROP_TYPE.BOOLEAN,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeClose:{type:Ze.PROP_TYPE.FUNCTION,required:!1,default:function(e){var n=e.event;return function(){n.trigger(nn.BEFORE_CLOSE)}}}},exports:{setPhoneNumber:{type:"function"},getPhoneNumber:{type:"function"}}}),ln=Ze.create({tag:"monei-bizum-button",url:We.bizumButtonUrl,dimensions:{width:"100%",height:"auto"},autoResize:{width:!1,height:!0},validate:ke,containerTemplate:en,prerenderTemplate:function(){},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},transactionType:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},phoneNumber:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}},__onClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){var n=e.props,r=e.state,o=document.createElement("div");return document.body.appendChild(o),function(e){var i=e.amount,a=e.currency;if(!r.isOpen){var u=!0;if(n.onBeforeOpen&&(u=n.onBeforeOpen()),u){r.isOpen=!0;var c=new fn(t({amount:i,currency:a},n,{onClose:function(){r.isOpen=!1,window.onpopstate=null,document.body.style.overflow=""},isOpen:!0}));return window.history.pushState(null,"",window.location.href),window.onpopstate=function(){return c.updateProps({isOpen:!1})},Object.assign(document.body.style,{overflow:"hidden"}),c.render(o)}}}}}}});(dn||(dn={})).BEFORE_CLOSE="BEFORE_CLOSE";var pn,hn=Ze.create({tag:"monei-cofidis",url:We.cofidisUrl,dimensions:{width:"100%",height:"100%"},autoResize:{width:!1,height:!1},prerenderTemplate:function(){},containerTemplate:function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div"),f=o.createElement("div");d.setAttribute("id",n),f.classList.add("backdrop"),d.appendChild(f);var l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.appendChild(o.createTextNode("\n #"+n+" {\n position: fixed;\n overflow: hidden;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: "+c+";\n height: "+s+";\n z-index: 99999;\n }\n #"+n+" > .backdrop {\n position: fixed;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(40, 40, 40, 0.7);\n transition: opacity 0.35s ease-in-out;\n opacity: 0;\n will-change: opacity;\n }\n #"+n+" > .backdrop."+be.VISIBLE+" {\n opacity: 1;\n }\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: all .2s ease-in-out;\n }\n #"+n+" > iframe."+be.INVISIBLE+" {\n opacity: 0;\n }\n #"+n+" > iframe."+be.VISIBLE+" {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(l),r.classList.add(be.VISIBLE),t.classList.add(be.INVISIBLE),setTimeout((function(){f.classList.add(be.VISIBLE)}),1),a.on(Ze.EVENT.RENDERED,(function(){r.classList.remove(be.VISIBLE),r.classList.add(be.INVISIBLE),t.classList.remove(be.INVISIBLE),t.classList.add(be.VISIBLE),setTimeout((function(){Qe.destroyElement(r)}),1)})),a.on(dn.BEFORE_CLOSE,(function(){f.classList.remove(be.VISIBLE)})),a.on(Ze.EVENT.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Qe.toCSS(n)),"number"==typeof t&&(d.style.height=Qe.toCSS(t))})),d}},props:{paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeClose:{type:Ze.PROP_TYPE.FUNCTION,required:!1,default:function(e){var n=e.event;return function(){n.trigger(dn.BEFORE_CLOSE)}}}}}),wn=Ze.create({tag:"monei-cofidis-widget",url:We.cofidisWidgetUrl,dimensions:{width:"100%",height:"46px"},autoResize:{width:!1,height:!0},prerenderTemplate:function(){},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!0},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},amountInt:{type:Ze.PROP_TYPE.NUMBER,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1,default:function(){return"es"}},showLogo:{type:Ze.PROP_TYPE.BOOLEAN,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},__onClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(){return function(e){window.open(e,"_blank")}}}}}),mn=Ze.create({tag:"monei-cofidis-button",url:We.cofidisButtonUrl,dimensions:{width:"100%",height:"45px"},autoResize:{width:!1,height:!0},validate:ke,containerTemplate:en,prerenderTemplate:function(){},props:{paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},hint:{type:Ze.PROP_TYPE.BOOLEAN,default:function(){return!0},required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}},__onHintClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(){return function(e){window.open(e,"_blank")}}},__onClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){var n=e.props,r=document.createElement("div");return document.body.appendChild(r),function(e){var o=e.amount,i=e.currency,a=e.accountId,u=!0;if(n.onBeforeOpen&&(u=n.onBeforeOpen()),u){var c=new hn(t({},n,{amount:o,currency:i,accountId:a,onClose:function(){window.onpopstate=null,document.body.style.overflow=""},isOpen:!0}));return window.history.pushState(null,"",window.location.href),window.onpopstate=function(){return c.updateProps({isOpen:!1})},Object.assign(document.body.style,{overflow:"hidden"}),c.render(r)}}}}}});(pn||(pn={})).BEFORE_CLOSE="BEFORE_CLOSE";var vn,yn,gn,En=Ze.create({tag:"monei-cofidis-loan",url:We.cofidisLoanUrl,dimensions:{width:"100%",height:"100%"},autoResize:{width:!1,height:!1},prerenderTemplate:function(){},containerTemplate:function(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div"),f=o.createElement("div");d.setAttribute("id",n),f.classList.add("backdrop"),d.appendChild(f);var l=o.createElement("style");return i.cspNonce&&l.setAttribute("nonce",i.cspNonce),l.appendChild(o.createTextNode("\n #"+n+" {\n position: fixed;\n overflow: hidden;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: "+c+";\n height: "+s+";\n z-index: 99999;\n }\n #"+n+" > .backdrop {\n position: fixed;\n display: block;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(40, 40, 40, 0.7);\n transition: opacity 0.35s ease-in-out;\n opacity: 0;\n will-change: opacity;\n }\n #"+n+" > .backdrop."+be.VISIBLE+" {\n opacity: 1;\n }\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: all .2s ease-in-out;\n }\n #"+n+" > iframe."+be.INVISIBLE+" {\n opacity: 0;\n }\n #"+n+" > iframe."+be.VISIBLE+" {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(l),r.classList.add(be.VISIBLE),t.classList.add(be.INVISIBLE),setTimeout((function(){f.classList.add(be.VISIBLE)}),1),a.on(Ze.EVENT.RENDERED,(function(){r.classList.remove(be.VISIBLE),r.classList.add(be.INVISIBLE),t.classList.remove(be.INVISIBLE),t.classList.add(be.VISIBLE),setTimeout((function(){Qe.destroyElement(r)}),1)})),a.on(pn.BEFORE_CLOSE,(function(){f.classList.remove(be.VISIBLE)})),a.on(Ze.EVENT.RESIZE,(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Qe.toCSS(n)),"number"==typeof t&&(d.style.height=Qe.toCSS(t))})),d}},props:{paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeClose:{type:Ze.PROP_TYPE.FUNCTION,required:!1,default:function(e){var n=e.event;return function(){n.trigger(pn.BEFORE_CLOSE)}}}}}),bn=En,Pn=Ze.create({tag:"monei-cofidis-loan-widget",url:We.cofidisLoanWidgetUrl,dimensions:{width:"100%",height:"46px"},autoResize:{width:!1,height:!0},prerenderTemplate:function(){},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!0},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},amountInt:{type:Ze.PROP_TYPE.NUMBER,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1,default:function(){return"es"}},showLogo:{type:Ze.PROP_TYPE.BOOLEAN,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},__onClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(){return function(e){window.open(e,"_blank")}}}}}),_n=Pn,On=Ze.create({tag:"monei-cofidis-loan-button",url:We.cofidisLoanButtonUrl,dimensions:{width:"100%",height:"45px"},autoResize:{width:!1,height:!0},validate:ke,containerTemplate:en,prerenderTemplate:function(){},props:{paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},hint:{type:Ze.PROP_TYPE.BOOLEAN,default:function(){return!0},required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}},__onHintClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(){return function(e){window.open(e,"_blank")}}},__onClick:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){var n=e.props,r=document.createElement("div");return document.body.appendChild(r),function(e){var o=e.amount,i=e.currency,a=e.accountId,u=!0;if(n.onBeforeOpen&&(u=n.onBeforeOpen()),u){var c=new En(t({},n,{amount:o,currency:i,accountId:a,onClose:function(){window.onpopstate=null,document.body.style.overflow=""},isOpen:!0}));return window.history.pushState(null,"",window.location.href),window.onpopstate=function(){return c.updateProps({isOpen:!1})},Object.assign(document.body.style,{overflow:"hidden"}),c.render(r)}}}}}}),Sn=On,xn=Ze.create({tag:"monei-google-pay",url:We.googlePayUrl,dimensions:{width:"100%",height:"0"},autoResize:{width:!1,height:!0},validate:ke,containerTemplate:en,prerenderTemplate:function(){},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}}}}),Tn=function(){var e=n(v.mark((function e(r,o,i){var a;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=new window.ApplePaySession(3,o)).onvalidatemerchant=function(){var e=n(v.mark((function e(n){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ye(t({},i,{validationUrl:n.validationURL}));case 3:a.completeMerchantValidation(e.sent),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a.abort();case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),a.onpaymentauthorized=function(){var e=n(v.mark((function e(n){var t,o,i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.stringify(n.payment.token),o=window.btoa(t),e.prev=2,e.next=5,Fe({accountId:r.accountId,paymentId:r.paymentId,sessionId:r.sessionId,paymentMethod:{applePay:{token:o}}});case 5:r.onSubmit({token:(i=e.sent).paymentToken,error:i.error}),a.completePayment({status:window.ApplePaySession.STATUS_SUCCESS}),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),null==r.onError||r.onError(e.t0),a.completePayment({status:window.ApplePaySession.STATUS_FAILURE});case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(n){return e.apply(this,arguments)}}(),a.begin();case 4:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),In=Ze.create({tag:"monei-payment-request",url:We.paymentRequestUrl,dimensions:{width:"100%",height:"auto"},autoResize:{width:!1,height:!0},validate:ke,containerTemplate:en,prerenderTemplate:function(){},props:{accountId:{type:Ze.PROP_TYPE.STRING,required:!1},sessionId:{type:Ze.PROP_TYPE.STRING,required:!1},paymentId:{type:Ze.PROP_TYPE.STRING,required:!1},amount:{type:Ze.PROP_TYPE.NUMBER,required:!1},currency:{type:Ze.PROP_TYPE.STRING,required:!1},language:{type:Ze.PROP_TYPE.STRING,required:!1},onError:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onLoad:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeOpen:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},onBeforeSubmit:{type:Ze.PROP_TYPE.FUNCTION,required:!1},style:{type:Ze.PROP_TYPE.OBJECT,alias:"innerStyle",required:!1},__getConfig:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return De.bind(null,e.props)}},__isApplePaySupported:{type:Ze.PROP_TYPE.BOOLEAN,required:!1,value:function(){try{var e;return null==(e=window.ApplePaySession)?void 0:e.canMakePayments()}catch(e){return!1}}},__onApplePayButtonClicked:{type:Ze.PROP_TYPE.FUNCTION,required:!1,value:function(e){return Tn.bind(null,e.props)}}}});(vn=exports.NextActionType||(exports.NextActionType={})).CONFIRM="CONFIRM",vn.FRICTIONLESS_CHALLENGE="FRICTIONLESS_CHALLENGE",vn.BIZUM_CHALLENGE="BIZUM_CHALLENGE",vn.CHALLENGE="CHALLENGE",vn.COMPLETE="COMPLETE",(yn=exports.CardBrand||(exports.CardBrand={})).Visa="visa",yn.Mastercard="mastercard",yn.Amex="amex",yn.Discover="discover",yn.Diners="diners",yn.JCB="jcb",yn.Maestro="maestro",yn.UnionPay="unionpay",yn.Elo="elo",yn.Hipercard="hipercard",(gn=exports.TransactionType||(exports.TransactionType={})).AUTH="AUTH",gn.SALE="SALE",gn.PAYOUT="PAYOUT",gn.VERIF="VERIF";var Cn=Ve,Rn=Ae;exports.Bizum=ln,exports.BizumModal=fn,exports.CardInput=on,exports.Cofidis=mn,exports.CofidisLoan=On,exports.CofidisLoanModal=En,exports.CofidisLoanWidget=Pn,exports.CofidisModal=hn,exports.CofidisPay=Sn,exports.CofidisPayModal=bn,exports.CofidisPayWidget=_n,exports.CofidisWidget=wn,exports.GooglePay=xn,exports.PayPal=sn,exports.PaymentModal=an,exports.PaymentRequest=In,exports.api=Cn,exports.config=We,exports.confirmPayment=un,exports.createToken=rn,exports.utils=Rn;
|
|
2
|
-
//# sourceMappingURL=components.cjs.production.min.js.map
|