PageSourceSearch

https://chat.chatspark.io/loader.js

js chatspark.io collected 2026-10-04 16:08:59 UTC 131,957 bytes, 90 lines download raw bytes

1(()=>{function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var r,n,o,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a={},u={},s=i.parcelRequire5b45;null==s&&((s=function(e){if(e in a)return a[e].exports;if(e in u){var t=u[e];delete u[e];var r={id:e,exports:{}};return a[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){u[e]=t},i.parcelRequire5b45=s);var c=s.register;c("jkAiw",function(e,t){var r,n=s("72MPx").Buffer;"undefined"!=typeof self?self:e.exports,r=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return({}).hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(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||"undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(e){}return!1}r.r(t),r.d(t,"PopupOpenError",function(){return eW}),r.d(t,"create",function(){return rr}),r.d(t,"destroy",function(){return ri}),r.d(t,"destroyComponents",function(){return rn}),r.d(t,"destroyAll",function(){return ro}),r.d(t,"PROP_TYPE",function(){return tV}),r.d(t,"PROP_SERIALIZATION",function(){return tJ}),r.d(t,"CONTEXT",function(){return tY}),r.d(t,"EVENT",function(){return tZ});var s,c,f,d,l,h,p=[],w=[],g=0;function m(){if(!g&&s){var e=s;s=null,e.resolve()}}function y(){g-=1,m()}var v=function(){function e(e){var t=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 r,n,o=!1,i=!1,a=!1;g+=1;try{e(function(e){a?t.resolve(e):(o=!0,r=e)},function(e){a?t.reject(e):(i=!0,n=e)})}catch(e){y(),this.reject(e);return}y(),a=!0,o?this.resolve(r):i&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(u(e))throw Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(u(e))throw Error("Can not reject promise with another promise");return e||(e=Error("Expected reject to be called with Error, got "+(e&&"function"==typeof e.toString?e.toString():({}).toString.call(e)))),this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===p.indexOf(e)){p.push(e),setTimeout(function(){throw e},1);for(var r=0;r<w.length;r++)w[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this}
1,t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,g+=1;for(var o=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},i=0;i<n.length;i++){var a=n[i],s=a.onSuccess,c=a.onError,f=a.promise,d=void 0;if(t)try{d=s?s(this.value):this.value}catch(e){f.reject(e);continue}else if(r){if(!c){f.reject(this.error);continue}try{d=c(this.error)}catch(e){f.reject(e);continue}}if(d instanceof e&&(d.resolved||d.rejected)){var l=d;l.resolved?f.resolve(l.value):f.reject(l.error),l.errorHandled=!0}else u(d)?d instanceof e&&(d.resolved||d.rejected)?d.resolved?f.resolve(d.value):f.reject(d.error):o(d,f):f.resolve(d)}n.length=0,this.dispatching=!1,y()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:u(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,o=[];if(!n)return r.resolve(o),r;for(var i=function(e,t,i){return t.then(function(t){o[e]=t,0==(n-=1)&&r.resolve(o)},function(e){i.reject(e)})},a=0;a<t.length;a++){var s=t[a];if(s instanceof e){if(s.resolved){o[a]=s.value,n-=1;continue}}else if(!u(s)){o[a]=s,n-=1;continue}i(a,e.resolve(s),r)}return 0===n&&r.resolve(o),r},e.hash=function(t){var r={},n=[],o=function(e){if(t.hasOwnProperty(e)){var o=t[e];u(o)?n.push(o.then(function(t){r[e]=t})):r[e]=o}};for(var i in t)o(i);return e.all(n).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return w.push(e),{cancel:function(){w.splice(w.indexOf(e),1)}}},e.try=function(t,r,n){var o;if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.try expected a function");g+=1;try{o=t.apply(r,n||[])}catch(t){return y(),e.reject(t)}return y(),e.resolve(o)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||u(t)},e.flush=function(){var t;return t=s=s||new e,m(),t},e}();function b(e){return"[object RegExp]"===({}).toString.call(e)}var E={IFRAME:"iframe",POPUP:"popup"},_="Call was rejected by callee.\r\n";function x(e){return void 0===e&&(e=window),e.location.protocol}function S(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return x(e)}function P(e){return void 0===e&&(e=window),"about:"===S(e)}function O(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function C(e){if(void 0===e&&(e=window),e&&!O(e))try{return e.opener}catch(e){}}function A(e){try{return!0}catch(e){}return!1}function I(e){void 0===e&&(e=window);var t=e.location;if(!t)throw Error("Can not read window location");var r=x(e);if(!r)throw Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=O(e);return n&&A()?I(n):"about://"}var o=t.host;if(!o)throw Error("Can not read window host");return r+"//"+o}function T(e){void 0===e&&(e=window);var t=I(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function k(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var t,r=Object.getOwnPropertyDescriptor(e,"location");if(r&&!1===r.enumerable)return!1}catch(e){}try{if(P(e)&&A())return!0}catch(e){}try{if(t=e,void 0===t&&(t=window),"mock:"===S(t)&&A())return!0}catch(e){}try{if(I(e)===I(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window||P(e)&&A()||T(window)===T(e))return!0}catch(e){}return!1}function N(e){if(!k(e))throw Error("Expected window to be same domain");return e}function R(e,t){if(!e||!t)return!1;var r=O(t);return r?r===e:-1!==(function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(e){}return t})(t).indexOf(e)}function D(e){var t,r,n=[];try{t=e.frames}catch(r){t=e}try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var o=0;o<r;o++){var i=void 0;try{i=t[o]}catch(e){continue}n.push(i)}return n}for(var a=0;a<100;a++){var u=void 0;try{u=t[a]}catch(e){break}if(!u)break;n.push(u)}return n}function W(e){for(var t=[],r=0,n=D(e);r<n.length;r++){var o=n[r];t.push(o);for(var i=0,a=W(o);i<a.length;i++)t.push(a[i])}return t}function B(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(O(e)===e)return e;try{if(R(window,e)&&window.top)return window.top}catch(e){}try{if(R(e,window)&&window.top)return window.top}catch(e){}for(var t=0,r=W(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(e){}if(O(n)===n)return n}}function L(e){var t=B(e);if(!t)throw Error("Can not determine top window");
vendor: 3,029 bytes, line 1
1var r=[].concat(W(t),[t]);return -1===r.indexOf(e)&&(r=[].concat(r,[e],W(e))),r}var j=[],U=[];function M(e,t){void 0===t&&(t=!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!==_}if(t&&k(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return -1}(j,e);if(-1!==r){var n=U[r];if(n&&function(e){if(!e.contentWindow||!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function z(e){return(e=e||window).navigator.mockUserAgent||e.navigator.userAgent}function F(e,t){for(var r=D(e),n=0;n<r.length;n++){var o=r[n];try{if(k(o)&&o.name===t&&-1!==r.indexOf(o))return o}catch(e){}}try{if(-1!==r.indexOf(e.frames[t]))return e.frames[t]}catch(e){}try{if(-1!==r.indexOf(e[t]))return e[t]}catch(e){}}function q(e){return void 0===e&&(e=window),C(e=e||window)||O(e)||void 0}function H(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],o=0;o<t.length;o++)if(n===t[o])return!0;return!1}function $(e){void 0===e&&(e=window);for(var t=0,r=e;r;)(r=O(r))&&(t+=1);return t}function V(e,t){var r=B(e)||e,n=B(t)||t;try{if(r&&n)return r===n}catch(e){}var o=L(e),i=L(t);if(H(o,i))return!0;var a=C(r),u=C(n);return a&&H(L(a),i)||u&&H(L(u),o),!1}function J(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(b(t)||Array.isArray(t))return!1}return b(e)?b(t)?e.toString()===t.toString():!Array.isArray(t)&&!!t.match(e):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!b(t)&&e.some(function(e){return J(e,t)}))}function Y(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):T()}function Z(e,t,r,n){var o;return void 0===r&&(r=1e3),void 0===n&&(n=1/0),function i(){if(M(e))return o&&clearTimeout(o),t();n<=0?clearTimeout(o):(n-=r,o=setTimeout(i,r))}(),{cancel:function(){o&&clearTimeout(o)}}}function G(e){try{if(e===window)return!0}catch(e){if(e&&e.message===_)return!0}try{if("[object Window]"===({}).toString.call(e))return!0}catch(e){if(e&&e.message===_)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===_)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===_)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===_)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===_)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 X(e){if(0!==Y(e).indexOf("mock:"))return e;throw Error("Mock urls not supported out of test mode")}function K(e){if(k(e))return N(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];
1if(n&&n.contentWindow&&n.contentWindow===e)return n}}function Q(e){var t;if(void 0===(t=e)&&(t=window),O(t)){var r=K(e);if(r&&r.parentElement){r.parentElement.removeChild(r);return}}try{e.close()}catch(e){}}function ee(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return -1}var et=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||void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(G(n)&&M(n)){if(e)try{e.delete(n)}catch(e){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!G(e)},t.set=function(e,t){if(!e)throw Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,o=e[n];o&&o[0]===e?o[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0});return}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=ee(i,e);-1===u?(i.push(e),a.push(t)):a[u]=t},t.get=function(e){if(!e)throw Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(e){}this._cleanupClosedWindows();var n=ee(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(e){}this._cleanupClosedWindows();var n=this.keys,o=ee(n,e);-1!==o&&(n.splice(o,1),this.values.splice(o,1))},t.has=function(e){if(!e)throw Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==ee(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function en(e,t,r){return(en=!function(){if("undefined"==typeof Reflect||!Reflect.construct||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(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&o(i,r.prototype),i}:Reflect.construct).apply(null,arguments)}function eo(e){var t="function"==typeof Map?new Map:void 0;return(eo=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return en(e,arguments,er(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function ei(e){return e.name||e.__name__||e.displayName||"anonymous"}function ea(e,t){try{delete e.name,e.name=t}catch(e){}return e.__name__=e.displayName=t,e}function eu(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/[=]/g,"");if(void 0!==n)return n.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw Error("Can not find window.btoa or Buffer")}function es(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})+"_"+eu((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ec(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(c=c||new et,null==e||"object"!=typeof e&&"function"!=typeof e)throw Error("Invalid object");var t=c.get(e);return t||(t=typeof e+":"+es(),c.set(e,t)),t}(t)+"]":t})}catch(e){throw Error("Arguments not serializable -- can not be used to memoize")}}function ef(){return{}}var ed=0,el=0;function eh(e,t){void 0===t&&(t={});var r,n,o=t.thisNamespace,i=void 0!==o&&o,a=t.time,u=ed;ed+=1;var s=function(){for(var t,o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];u<el&&(r=null,n=null,u=ed,ed+=1),t=i?(n=n||new et).getOrSet(this,ef):r=r||{};var f=ec(s),d=t[f];if(d&&a&&Date.now()-d.time<a&&(delete t[f],d=null),d)return d.value;var l=Date.now(),h=e.apply(this,arguments);return t[f]={time:l,value:h},h};return s.reset=function(){r=null,n=null}
1,ea(s,(t.name||ei(e))+"::memoized")}function ep(){}function ew(e){var t=!1;return ea(function(){if(!t)return t=!0,e.apply(this,arguments)},ei(e)+"::once")}function eg(e,t){if(void 0===t&&(t=1),t>=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 r=e&&e.stack,n=e&&e.message;if(r&&n)return -1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():({}).toString.call(e)}catch(e){return"Error while stringifying error: "+eg(e,t+1)}}function em(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():({}).toString.call(e)}function ey(e,t){if(!t)return e;if(Object.assign)return Object.assign(e,t);for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ev(e,t){var r;return function n(){r=setTimeout(function(){e(),n()},t)}(),{cancel:function(){clearTimeout(r)}}}function eb(e){return[].slice.call(e)}function eE(e){return null!=e}function e_(e){return"[object RegExp]"===({}).toString.call(e)}function ex(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function eS(e){var t,r=[],n=!1,o={set:function(t,r){return n||(e[t]=r,o.register(function(){delete e[t]})),r},register:function(e){var o=ew(function(){return e(t)});return n?e(t):r.push(o),{cancel:function(){var e=r.indexOf(o);-1!==e&&r.splice(e,1)}}},all:function(e){t=e;var o=[];for(n=!0;r.length;){var i=r.shift();o.push(i())}return v.all(o).then(ep)}};return o}function eP(e,t){if(null==t)throw Error("Expected "+e+" to be present");return t}eh.clear=function(){el=ed},eh(function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t});var eO=function(e){function t(t){var r;return(r=e.call(this,t)||this).name=r.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r),r.constructor):r.stack=Error(t).stack,r}return i(t,e),t}(eo(Error));function eC(){var e=document.body;if(!e)throw Error("Body element not found");return e}function eA(){return!!document.body&&"complete"===document.readyState}function eI(){return!!document.body&&"interactive"===document.readyState}function eT(e){return encodeURIComponent(e)}function ek(e,t){var r;return void 0===t&&(t={}),t&&Object.keys(t).length?(void 0===(r=a({},function e(t){var r,n,o,i;return r=e,n=[t],o=r.__inline_memoize_cache__=r.__inline_memoize_cache__||{},i=ec(n),o.hasOwnProperty(i)?o[i]:o[i]=(function(){var e={};if(!t||-1===t.indexOf("="))return e;for(var r=0,n=t.split("&");r<n.length;r++){var o=n[r];(o=o.split("="))[0]&&o[1]&&(e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return e}).apply(void 0,n)}(e),t))&&(r={}),Object.keys(r).filter(function(e){return"string"==typeof r[e]||"boolean"==typeof r[e]}).map(function(e){var t=r[e];if("string"!=typeof t&&"boolean"!=typeof t)throw TypeError("Invalid type for query");return eT(e)+"="+eT(t.toString())}).join("&")):e}function eN(e){return e instanceof window.Element||null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}function eR(e,t){return void 0===t&&(t=document),eN(e)?e:"string"==typeof e?t.querySelector(e):void 0}function eD(e){return new v(function(t,r){var n=em(e),o=eR(e);if(o)return t(o);if(eA())return r(Error("Document is ready and element "+n+" does not exist"));var i=setInterval(function(){if(o=eR(e))t(o),clearInterval(i);else if(eA())return clearInterval(i),r(Error("Document is ready and element "+n+" does not exist"))},10)})}eh(function(){return new v(function(e){if(eA()||eI())return e();var t=setInterval(function(){if(eA()||eI())return clearInterval(t),e()},10)})});var eW=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(eO);function eB(e){if((f=f||new et).has(e)){var t=f.get(e);if(t)return t}var r=new v(function(t,r){e.addEventListener("load",function(){(function(e){if(function(){for(var e=0;e<j.length;e++){var t=!1;try{t=j[e].closed}catch(e){}t&&(U.splice(e,1),j.splice(e,1))}}(),e&&e.contentWindow)try{j.push(e.contentWindow),U.push(e)}catch(e){}})(e),t(e)}),e.addEventListener("error",function(n){e.contentWindow?t(e):r(n)})});return f.set(e,r),r}function eL(e){return eB(e).then(function(e){if(!e.contentWindow)throw Error("Could not find window in iframe");return e.contentWindow})}function ej(e,t){void 0===e&&(e={});var r=e.style||{},n=function(e,t,r){void 0===e&&(e="div"),void 0===t&&(t={}),e=e.toLowerCase();var n,o,i=document.createElement(e);
1if(t.style&&ey(i.style,t.style),t.class&&(i.className=t.class.join(" ")),t.id&&i.setAttribute("id",t.id),t.attributes)for(var a=0,u=Object.keys(t.attributes);a<u.length;a++){var s=u[a];i.setAttribute(s,t.attributes[s])}if(t.styleSheet&&(n=t.styleSheet,void 0===o&&(o=window.document),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(o.createTextNode(n))),t.html){if("iframe"===e)throw Error("Iframe html can not be written unless container provided and iframe in DOM");i.innerHTML=t.html}return i}("iframe",{attributes:a({allowTransparency:"true"},e.attributes||{}),style:a({backgroundColor:"transparent",border:"none"},r),html:e.html,class:e.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return n.hasAttribute("id")||n.setAttribute("id",es()),eB(n),t&&(function(e,t){void 0===t&&(t=document);var r=eR(e,t);if(r)return r;throw Error("Can not find element: "+em(e))})(t).appendChild(n),(e.url||o)&&n.setAttribute("src",e.url||"about:blank"),n}function eU(e,t,r){return e.addEventListener(t,r),{cancel:function(){e.removeEventListener(t,r)}}}function eM(e){e.style.setProperty("display","")}function ez(e){e.style.setProperty("display","none","important")}function eF(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function eq(e){return!(e&&e.parentNode&&e.ownerDocument&&e.ownerDocument.documentElement&&e.ownerDocument.documentElement.contains(e))}function eH(e,t,r){var n,o,i=void 0===r?{}:r,a=i.width,u=void 0===a||a,s=i.height,c=void 0===s||s,f=i.interval,d=void 0===f?100:f,l=i.win,h=void 0===l?window:l,p=e.offsetWidth,w=e.offsetHeight,g=!1;t({width:p,height:w});var m=function(){if(!g&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)){var r=e.offsetWidth,n=e.offsetHeight;(u&&r!==p||c&&n!==w)&&t({width:r,height:n}),p=r,w=n}};return h.addEventListener("resize",m),void 0!==h.ResizeObserver?((n=new h.ResizeObserver(m)).observe(e),o=ev(m,10*d)):void 0!==h.MutationObserver?((n=new h.MutationObserver(m)).observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),o=ev(m,10*d)):o=ev(m,d),{cancel:function(){g=!0,n.disconnect(),window.removeEventListener("resize",m),o.cancel()}}}function e$(e){for(;e.parentNode;)e=e.parentNode;return"[object ShadowRoot]"===e.toString()}var eV="undefined"!=typeof document?document.currentScript:null,eJ=eh(function(){if(eV||(eV=function(){try{var e=function(){try{throw Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();n<o.length;n++){var i=o[n];if(i.src&&i.src===r)return i}}catch(e){}}()))return eV;throw Error("Can not determine current script")}),eY=es();function eZ(e){return"string"==typeof e&&/^[0-9]+%$/.test(e)}function eG(e){if("number"==typeof e)return e;var t=e.match(/^([0-9]+)(px|%)$/);if(!t)throw Error("Could not match css value from "+e);return parseInt(t[1],10)}function eX(e){return"number"==typeof e?eG(e)+"px":eZ(e)?e:eG(e)+"px"}function eK(e,t){if("number"==typeof e)return e;if(eZ(e))return parseInt(t*eG(e)/100,10);if("string"==typeof e&&/^[0-9]+px$/.test(e))return eG(e);throw Error("Can not normalize dimension: "+e)}function eQ(e){void 0===e&&(e=window);var t="__post_robot_10_0_44__";return e!==window?e[t]:e[t]=e[t]||{}}eh(function(){try{e=eJ()}catch(e){return eY}var e,t=e.getAttribute("data-uid");if(t&&"string"==typeof t||(t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=es();return e.setAttribute("data-uid-auto",t),t});var e0=function(){return{}};function e1(e,t){return void 0===e&&(e="store"),void 0===t&&(t=e0),ex(eQ(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return ex(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var e2=function(){};function e6(){var e=eQ();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new e2,e.WINDOW_WILDCARD}function e8(e,t){return void 0===e&&(e="store"),void 0===t&&(t=e0),e1("windowStore").getOrSet(e,function(){var r=new et,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var o=n(t);return o.hasOwnProperty(e)?o[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return ex(n(t),e,r)}}})}function e5(){return e1("instance").getOrSet("instanceID",es)}function e3(e,t){var r=t.domain,n=e8("helloPromises"),o=n.get(e);o&&o.resolve({domain:r});var i=v.resolve({domain:r});return n.set(e,i),i}function e4(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:e5()},{domain:"*",timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return e3(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function e9(e,t){var r=t.send;return e8("windowInstanceIDPromises").getOrSet(e,function(){return e4(e,{send:r}).then(function(e){return e.instanceID})})}function e7(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n=e8("helloPromises").getOrSet(e,function(){return new v});return -1!==t&&(n=n.timeout(t,Error(r+" did not load after "+t+"ms"))),n}function te(e){e8("knownWindows").set(e,!0)}function tt(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function tr(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 tn(e,t){return{__type__:e,__val__:t}}var to=((d={}).function=function(){},d.error=function(e){return tn("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},d.promise=function(){},d.regex=function(e){return tn("regex",e.source)},d.date=function(e){return tn("date",e.toJSON())},d.array=function(e){return e},d.object=function(e){return e},d.string=function(e){return e},d.number=function(e){return e},d.boolean=function(e){return e},d.null=function(e){return e},d[void 0]=function(e){return tn("undefined",e)},d),ti={},ta=((l={}).function=function(){throw Error("Function serialization is not implemented;
1 nothing to deserialize")},l.error=function(e){var t=e.stack,r=e.code,n=e.data,o=Error(e.message);return o.code=r,n&&(o.data=n),o.stack=t+"\n\n"+o.stack,o},l.promise=function(){throw Error("Promise serialization is not implemented; nothing to deserialize")},l.regex=function(e){return new RegExp(e)},l.date=function(e){return new Date(e)},l.array=function(e){return e},l.object=function(e){return e},l.string=function(e){return e},l.number=function(e){return e},l.boolean=function(e){return e},l.null=function(e){return e},l[void 0]=function(){},l),tu={};function ts(){return!!z(window).match(/MSIE|trident|edge\/12|edge\/13/i)}function tc(e){return!V(window,e)}function tf(e,t){if(e){if(T()!==Y(e))return!0}else if(t&&!k(t))return!0;return!1}function td(e){var t=e.win,r=e.domain;return!(!ts()||r&&!tf(r,t)||t&&!tc(t))}function tl(e){return"__postrobot_bridge___"+(e=e||Y(e)).replace(/[^a-zA-Z0-9]+/g,"_")}function th(){return!!(window.name&&window.name===tl(T()))}var tp=new v(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});function tw(e){e8("remoteWindowPromises").getOrSet(e,function(){return new v})}function tg(e){var t=e8("remoteWindowPromises").get(e);if(!t)throw Error("Remote window promise not found");return t}function tm(e,t,r){tg(e).resolve(function(n,o,i){if(n!==e)throw Error("Remote window does not match window");if(!J(o,t))throw Error("Remote domain "+o+" does not match domain "+t);r.fireAndForget(i)})}function ty(e,t){tg(e).reject(t).catch(ep)}function tv(e){for(var t=e.win,r=e.name,n=e.domain,o=e1("popupWindowsByName"),i=e8("popupWindowsByWin"),a=0,u=o.keys();a<u.length;a++){var s=u[a],c=o.get(s);c&&!M(c.win)||o.del(s)}if(M(t))return{win:t,name:r,domain:n};var f=i.getOrSet(t,function(){return r?o.getOrSet(r,function(){return{win:t,name:r}}):{win:t}});if(f.win&&f.win!==t)throw Error("Different window already linked for window: "+(r||"undefined"));return r&&(f.name=r,o.set(r,f)),n&&(f.domain=n,tw(t)),i.set(t,f),f}function tb(e){var t,r,n,o,i,a,u,s,c,f,d=e.on,l=e.send,h=e.receiveMessage;f=window.open,window.open=function(e,t,r,n){var o=f.call(this,X(e),t,r,n);return o&&tv({win:o,name:t,domain:e?Y(e):null}),o},r=(t={on:d,send:l,receiveMessage:h}).on,n=t.send,o=t.receiveMessage,i=e1("popupWindowsByName"),r("postrobot_open_tunnel",function(e){var t=e.source,a=e.origin,u=e.data,s=e1("bridges").get(a);if(!s)throw Error("Can not find bridge promise for domain "+a);return s.then(function(e){if(t!==e)throw Error("Message source does not matched registered bridge for domain "+a);if(!u.name)throw Error("Register window expected to be passed window name");if(!u.sendMessage)throw Error("Register window expected to be passed sendMessage method");if(!i.has(u.name))throw Error("Window with name "+u.name+" does not exist, or was not opened by this window");var s=function(){return i.get(u.name)};if(!s().domain)throw Error("We do not have a registered domain for window "+u.name);if(s().domain!==a)throw Error("Message origin "+a+" does not matched registered window origin "+(s().domain||"unknown"));return tm(s().win,a,u.sendMessage),{sendMessage:function(e){if(window&&!window.closed&&s()){var t=s().domain;if(t)try{o({data:e,origin:t,source:s().win},{on:r,send:n})}catch(e){v.reject(e)}}}}})}),eQ(window).openTunnelToParent=function(e){var t,r,n,o,i,a,u=e.name,s=e.source,c=e.canary,f=e.sendMessage,d=e1("tunnelWindows"),h=O(window);if(!h)throw Error("No parent window found to open tunnel to");var p=(r=(t={name:u,source:s,canary:c,sendMessage:f}).name,n=t.source,o=t.canary,i=t.sendMessage,function(){for(var e=e1("tunnelWindows"),t=0,r=e.keys();t<r.length;t++){var n=r[t];M(e[n].source)&&e.del(n)}}(),a=es(),e1("tunnelWindows").set(a,{name:r,source:n,canary:o,sendMessage:i}),a);return l(h,"postrobot_open_tunnel",{name:u,sendMessage:function(){var e=d.get(p);if(e&&e.source&&!M(e.source)){try{e.canary()}catch(e){return}e.sendMessage.apply(this,arguments)}}},{domain:"*"})},u=(a={on:d,send:l,receiveMessage:h}).on,s=a.send,c=a.receiveMessage,v.try(function(){var e=C(window);if(e&&td({win:e}))return tw(e),e8("remoteBridgeAwaiters").getOrSet(e,function(){return v.try(function(){var t=F(e,tl(T()));if(t)return k(t)&&eQ(N(t))?t:new v(function(e){var r,n;r=setInterval(function(){if(t&&k(t)&&eQ(N(t)))return clearInterval(r),clearTimeout(n),e(t)},100),n=setTimeout(function(){return clearInterval(r),e()},2e3)})})}).then(function(t){return t?window.name?eQ(N(t)).openTunnelToParent({name:window.name,source:window,canary:function(){},sendMessage:function(e){try{window}catch(e){return}if(window&&!window.closed)try{c({data:e,origin:this.origin,source:this.source},{on:u,send:s})}catch(e){v.reject(e)}}}).then(function(t){var r=t.source,n=t.origin,o=t.data;if(r!==e)throw Error("Source does not match opener");tm(r,n,o.sendMessage)}
1).catch(function(t){throw ty(e,t),t}):ty(e,Error("Can not register with opener: window does not have a name")):ty(e,Error("Can not register with opener: no bridge found in opener"))})})}function tE(){for(var e=e1("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function t_(e,t){var r=t.send,n=t.id,o=void 0===n?es():n,i=e.then(function(e){if(k(e))return N(e).name}),a=e.then(function(e){if(M(e))throw Error("Window is closed, can not determine type");return C(e)?E.POPUP:E.IFRAME});i.catch(ep),a.catch(ep);var u=function(){return e.then(function(e){if(!M(e))return k(e)?N(e).name:i})};return{id:o,getType:function(){return a},getInstanceID:function(e){var t={};function r(){for(var r=arguments,n=this,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=ec(i);return t.hasOwnProperty(u)||(t[u]=v.try(function(){return e.apply(n,r)}).finally(function(){delete t[u]})),t[u]}return r.reset=function(){t={}},ea(r,ei(e)+"::promiseMemoized")}(function(){return e.then(function(e){return e9(e,{send:r})})}),close:function(){return e.then(Q)},getName:u,focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return M(e)})},setLocation:function(t,r){return void 0===r&&(r={}),e.then(function(e){var n=window.location.protocol+"//"+window.location.host,o=r.method,i=void 0===o?"get":o,a=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===i)return u().then(function(e){if(!e)throw Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,o=e.method,i=document.createElement("form");if(i.setAttribute("target",r),i.setAttribute("method",void 0===o?"post":o),i.setAttribute("action",t),i.style.display="none",n)for(var a=0,u=Object.keys(n);a<u.length;a++){var s,c=u[a],f=document.createElement("input");f.setAttribute("name",c),f.setAttribute("value",null==(s=n[c])?void 0:s.toString()),i.appendChild(f)}eC().appendChild(i),i.submit(),eC().removeChild(i)}({url:t,target:e,method:i,body:a})});if("get"!==i)throw Error("Unsupported method: "+i);if(k(e))try{if(e.location&&"function"==typeof e.location.replace){e.location.replace(t);return}}catch(e){}e.location=t})},setName:function(t){return e.then(function(e){tv({win:e,name:t});var r=k(e),n=K(e);if(!r)throw Error("Can not set name for cross-domain window: "+t);N(e).name=t,n&&n.setAttribute("name",t),i=v.resolve(t)})}}}var tx=function(){function e(e){var t=e.send,r=e.win,n=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 v,this.serializedWindow=n||t_(this.actualWindowPromise,{send:t}),e1("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then(function(e){return e===E.POPUP})},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then(function(){return r})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=v.hash({isPopup:t,name:r}).then(function(e){var t=e.name;e.isPopup&&t&&window.open("",t)}),o=this.serializedWindow.focus();return v.all([n,o]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=t_(this.actualWindowPromise,{send:r,id:this.getID()}),e8("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return v.try(function(){return r.actualWindow?e===r.actualWindow:v.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:e9(e,{send:n})}).then(function(t){var o=t.proxyInstanceID===t.knownWindowInstanceID;return o&&r.setWindow(e,{send:n}),o})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return!!(this.actualWindow&&M(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return tE(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;
1return tE(),e1("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return!!(e&&!G(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;return(tE(),e.isProxyWindow(t))?t:e8("winToProxyWindow").get(t)||new e({win:t,send:n})},e}();function tS(e,t,r,n,o){var i=e8("methodStore"),a=e1("proxyWindowMethods");tx.isProxyWindow(n)?a.set(e,{val:t,name:r,domain:o,source:n}):(a.del(e),i.getOrSet(n,function(){return{}})[e]={domain:o,name:r,val:t,source:n})}function tP(e,t){var r=e8("methodStore"),n=e1("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function tO(e,t,r,n,o){a=(i={on:o.on,send:o.send}).on,u=i.send,e1("builtinListeners").getOrSet("functionCalls",function(){return a("postrobot_method",{domain:"*"},function(e){var t=e.source,r=e.origin,n=e.data,o=n.id,i=n.name,a=tP(t,o);if(!a)throw Error("Could not find method '"+i+"' with id: "+n.id+" in "+T(window));var s=a.source,c=a.domain,f=a.val;return v.try(function(){if(!J(c,r))throw Error("Method '"+n.name+"' domain "+JSON.stringify(e_(a.domain)?a.domain.source:a.domain)+" does not match origin "+r+" in "+T(window));if(tx.isProxyWindow(s))return s.matchWindow(t,{send:u}).then(function(e){if(!e)throw Error("Method call '"+n.name+"' failed - proxy window does not match source in "+T(window))})}).then(function(){return f.apply({source:t,origin:r},n.args)},function(e){return v.try(function(){if(f.onError)return f.onError(e)}).then(function(){var t;throw e.stack&&(e.stack="Remote call to "+i+"("+(void 0===(t=n.args)&&(t=[]),eb(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 i,a,u,s=r.__id__||es();e=tx.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),tx.isProxyWindow(e)?(tS(s,r,c,e,t),e.awaitWindow().then(function(e){tS(s,r,c,e,t)})):tS(s,r,c,e,t),tn("cross_domain_function",{id:s,name:c})}function tC(e,t,r,n){var o,i,a,u=n.on,s=n.send;return void 0===((a={}).promise=function(r,n){var o;return tn("cross_domain_zalgo_promise",{then:tO(e,t,function(e,t){return r.then(e,t)},n,{on:(o={on:u,send:s}).on,send:o.send})})},a.function=function(r,n){return tO(e,t,r,n,{on:u,send:s})},a.object=function(e){return G(e)||tx.isProxyWindow(e)?tn("cross_domain_window",tx.serialize(e,{send:s})):e},o=a)&&(o=ti),void 0===(i=JSON.stringify(r,function(e){var t=this[e];if(tt(this))return t;var r=tr(t);if(!r)return t;var n=o[r]||to[r];return n?n(t,e):t}))?"undefined":i}function tA(e,t,r,n){var o,i=n.send;return function(e,t){if(void 0===t&&(t=tu),"undefined"!==e)return JSON.parse(e,function(e,r){if(tt(this))return r;if(tt(r)?(n=r.__type__,o=r.__val__):(n=tr(r),o=r),!n)return o;var n,o,i=t[n]||ta[n];return i?i(o,e):o})}(r,((o={}).cross_domain_zalgo_promise=function(e){return new v(e.then)},o.cross_domain_function=function(r){var n,o,a,u,s,c;return n={send:i},o=r.id,a=r.name,u=n.send,(c=(s=function(r){function n(){var i=arguments;return tx.toProxyWindow(e,{send:u}).awaitWindow().then(function(e){var s=tP(e,o);if(s&&s.val!==n)return s.val.apply({source:window,origin:T()},i);var c=[].slice.call(i);return r.fireAndForget?u(e,"postrobot_method",{id:o,name:a,args:c},{domain:t,fireAndForget:!0}):u(e,"postrobot_method",{id:o,name:a,args:c},{domain:t,fireAndForget:!1}).then(function(e){return e.data.result})}).catch(function(e){throw e})}return void 0===r&&(r={}),n.__name__=a,n.__origin__=t,n.__source__=e,n.__id__=o,n.origin=t,n})()).fireAndForget=s({fireAndForget:!0}),c},o.cross_domain_window=function(e){return tx.deserialize(e,{send:i})},o))}var tI={};function tT(e,t,r,n){var o=n.on,i=n.send;return v.try(function(){var n=e8().getOrSet(e,function(){return{}});return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||v.flush().then(function(){if(M(e))throw Error("Window is closed");var r,a=tC(e,t,((r={}).__post_robot_10_0_44__=n.buffer||[],r),{on:o,send:i});delete n.buffer;for(var u=Object.keys(tI),s=[],c=0;c<u.length;c++){var f=u[c];try{tI[f](e,a,t)}catch(e){s.push(e)}}if(s.length===u.length)throw Error("All post-robot messaging strategies failed:\n\n"+s.map(function(e,t){return t+". "+eg(e)}).join("\n\n"))}),n.flush.then(function(){delete n.flush})}).then(ep)}function tk(e){return e1("responseListeners").get(e)}function tN(e){e1("responseListeners").del(e)}function tR(e){return e1("erroredResponseListeners").has(e)}function tD(e){var t=e.name,r=e.win,n=e.domain,o=e8("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw Error("Name required to get request listener");for(var i=0,a=[r,e6()];i<a.length;i++){var u=a[i];if(u){var s=o.get(u);if(s){var c=s[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var f=0,d=c.__domain_regex__;f<d.length;f++){var l=d[f],h=l.listener;if(J(l.regex,n))return h}}if(c["*"])return c["*"]}}}}}function tW(e,t){var r=t.on,n=t.send,o=e1("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(e){return}var i=e.source,a=e.origin,u=function(e,t,r,n){var o,i=n.on,a=n.send;try{o=tA(t,r,e,{on:i,send:a})}catch(e){return}if(o&&"object"==typeof o&&null!==o){var u=o.__post_robot_10_0_44__;if(Array.isArray(u))return u}}(e.data,i,a,{on:r,send:n});if(u){te(i);for(var s=0;s<u.length;s++){var c=u[s];if(o.has(c.id)||(o.set(c.id,!0),M(i)&&!c.fireAndForget))return;0===c.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===c.type?function(e,t,r,n){var o=n.on,i=n.send,a=tD({name:r.name,win:e,domain:t}),u="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function s(n,a,s){return v.flush().then(function(){if(!r.fireAndForget&&!M(e))try{return tT(e,t,{id:es(),origin:T(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:a,error:s},{on:o,send:i})}catch(e){throw Error("Send response message failed for "+u+" in "+T()+"\n\n"+eg(e))}})}return v.all([v.flush().then(function(){if(!r.fireAndForget&&!M(e))try{return tT(e,t,{id:es(),origin:T(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:o,send:i})}catch(e){throw Error("Send ack message failed for "+u+" in "+T()+"\n\n"+eg(e))}}),v.try(function(){if(!a)throw Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!J(a.domain,t))throw Error("Request origin "+t+" does not match domain "+a.domain.toString());return a.handler({source:e,origin:t,data:r.data})}).then(function(e){return s("success",e)},function(e){return s("error",null,e)})]).then(ep).catch(function(e){if(a&&a.handleError)return a.handleError(e);throw e})}(i,a,c,{on:r,send:n}):"postrobot_message_response"===c.type?function(e,t,r){if(!tR(r.hash)){var n,o=tk(r.hash);if(!o)throw Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!J(o.domain,t))throw Error("Response origin "+t+" does not match domain "+(Array.isArray(n=o.domain)?"("+n.join(" | ")+")":b(n)?"RegExp("+n.toString()+")":n.toString()));if(e!==o.win)throw Error("Response source does not match registered window");tN(r.hash),"error"===r.ack?o.promise.reject(r.error):"success"===r.ack&&o.promise.resolve({source:e,origin:t,data:r.data})}}(i,a,c):"postrobot_message_ack"===c.type&&function(e,t,r){if(!tR(r.hash)){var n=tk(r.hash);if(!n)throw Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!J(n.domain,t))throw Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw Error("Ack source does not match registered window")}catch(e){n.promise.reject(e)}n.ack=!0}}(i,a,c)}catch(e){setTimeout(function(){throw e},0)}}}}function tB(e,t,r){if(!e)throw Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw Error("Expected handler");(t=t||{}).name=e,t.handler=r||t.handler;
1var n=t.window,o=t.domain,i=function e(t,r){var n,o,i=t.name,a=t.win,u=t.domain,s=e8("requestListeners");if(!i||"string"!=typeof i)throw Error("Name required to add request listener");if(Array.isArray(a)){for(var c=[],f=0,d=a;f<d.length;f++)c.push(e({name:i,domain:u,win:d[f]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(u)){for(var l=[],h=0,p=u;h<p.length;h++)l.push(e({name:i,win:a,domain:p[h]},r));return{cancel:function(){for(var e=0;e<l.length;e++)l[e].cancel()}}}var w=tD({name:i,win:a,domain:u});if(a&&"*"!==a||(a=e6()),u=u||"*",w)throw a&&u?Error("Request listener already exists for "+i+" on domain "+u.toString()+" for "+(a===e6()?"wildcard":"specified")+" window"):a?Error("Request listener already exists for "+i+" for "+(a===e6()?"wildcard":"specified")+" window"):u?Error("Request listener already exists for "+i+" on domain "+u.toString()):Error("Request listener already exists for "+i);var g=s.getOrSet(a,function(){return{}}),m=ex(g,i,function(){return{}}),y=u.toString();return e_(u)?(n=ex(m,"__domain_regex__",function(){return[]})).push(o={regex:u,listener:r}):m[y]=r,{cancel:function(){delete m[y],o&&(n.splice(n.indexOf(o,1)),n.length||delete m.__domain_regex__),Object.keys(m).length||delete g[i],a&&!Object.keys(g).length&&s.del(a)}}}({name:e,win:n,domain:o},{handler:t.handler,handleError:t.errorHandler||function(e){throw e},window:n,domain:o||"*",name:e});return{cancel:function(){i.cancel()}}}tI.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)},tI.postrobot_bridge=function(e,t,r){if(!ts()&&!th())throw Error("Bridge not needed for browser");if(k(e))throw Error("Post message through bridge disabled between same domain windows");if(!1!==V(window,e))throw Error("Can only use bridge to communicate between two different windows, not between frames");!function(e,t,r){var n=window===C(e),o=e===C(window);if(!n&&!o)throw Error("Can only send messages to and from parent and popup windows");tg(e).then(function(n){return n(e,t,r)})}(e,r,t)},tI.postrobot_global=function(e,t){if(!z(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw Error("Global messaging not needed for browser");if(!k(e))throw Error("Post message through global disabled between different domain windows");if(!1!==V(window,e))throw Error("Can only use global to communicate between two different windows, not between frames");var r=eQ(e);if(!r)throw Error("Can not find postRobot global on foreign window");r.receiveMessage({source:window,origin:T(),data:t})};var tL=function e(t,r,n,o){var i=(o=o||{}).domain||"*",a=o.timeout||-1,u=o.timeout||5e3,s=o.fireAndForget||!1;return v.try(function(){if(function(e,t,r){if(!e)throw Error("Expected name");if(r&&"string"!=typeof r&&!Array.isArray(r)&&!e_(r))throw TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(M(t))throw Error("Can not send "+e+". Target window is closed")}(r,t,i),function(e,t){var r=q(t);if(r)return r===e;if(t===e||B(t)===t)return!1;for(var n=0,o=D(e);n<o.length;n++)if(o[n]===t)return!0;return!1}(window,t))return e7(t,u)}).then(function(r){var n,o;return n=(void 0===r?{}:r).domain,o=e,v.try(function(){return"string"==typeof i?i:v.try(function(){return n||e4(t,{send:o}).then(function(e){return e.domain})}).then(function(e){if(!J(i,i))throw Error("Domain "+em(i)+" does not match "+em(i));return e})})}).then(function(o){var i="postrobot_method"===r&&n&&"string"==typeof n.name?n.name+"()":r,u=new v,c=r+"_"+es();if(!s){var f={name:r,win:t,domain:o,promise:u};e1("responseListeners").set(c,f);var d=e8("requestPromises").getOrSet(t,function(){return[]});d.push(u),u.catch(function(){e1("erroredResponseListeners").set(c,!0),tN(c)});var l=e8("knownWindows").get(t,!1)?1e4:2e3,h=l,p=a,w=ev(function(){return M(t)?u.reject(Error("Window closed for "+r+" before "+(f.ack?"response":"ack"))):f.cancelled?u.reject(Error("Response listener was cancelled for "+r)):(h=Math.max(h-500,0),-1!==p&&(p=Math.max(p-500,0)),f.ack||0!==h?0===p?u.reject(Error("No response for postMessage "+i+" in "+T()+" in "+a+"ms")):void 0:u.reject(Error("No ack for postMessage "+i+" in "+T()+" in "+l+"ms")))},500);u.finally(function(){w.cancel(),d.splice(d.indexOf(u,1))}).catch(ep)}return tT(t,o,{id:es(),origin:T(window),type:"postrobot_message_request",hash:c,name:r,data:n,fireAndForget:s},{on:tB,send:e}).then(function(){return s?u.resolve():u},function(e){throw Error("Send request message failed for "+i+" in "+T()+"\n\n"+eg(e))})})};function tj(e){return tx.toProxyWindow(e,{send:tL})}function tU(e){for(var t=0,r=e8("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(Error("Window "+(M(e)?"closed":"cleaned up")+" before response")).catch(ep)}function tM(e){if(!k(e))throw Error("Can not get global for window on different domain");return e.__zoid_9_0_86__||(e.__zoid_9_0_86__={}),e.__zoid_9_0_86__}function tz(e,t){try{return t(tM(e))}catch(e){}}function tF(e){return{get:function(){var t=this;return v.try(function(){if(t.source&&t.source!==window)throw Error("Can not call get on proxy object from a remote window");return e})}}}function tq(e){var t=tM(e);return t.references=t.references||{},t.references}function tH(e){var t,r=e.data,n=e.metaData,o=e.sender,i=e.receiver,a=e.passByReference,u=e.basic,s=tj(i.win),c=void 0!==u&&u?JSON.stringify(r):tC(s,i.domain,r,{on:tB,send:tL}),f=void 0!==a&&a?(t=es(),tq(window)[t]=c,{type:"uid",uid:t}):{type:"raw",val:c};return{serializedData:eu(JSON.stringify({sender:{domain:o.domain},metaData:n,reference:f})),cleanReference:function(){var e;e=window,"uid"===f.type&&delete tq(e)[f.uid]}}}function t$(e){var t,r,o=e.sender,i=e.basic,a=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(void 0!==n)return n.from(e,"base64").toString("utf8");throw Error("Can not find window.atob or Buffer")}(e.data)),u=a.reference,s=a.metaData;t="function"==typeof o.win?o.win({metaData:s}):o.win,r="function"==typeof o.domain?o.domain({metaData:s}):"string"==typeof o.domain?o.domain:a.sender.domain;var c=function(e,t){if("raw"===t.type)return t.val;if("uid"===t.type)return tq(e)[t.uid];throw Error("Unsupported ref type: "+t.type)}(t,u);return{data:void 0!==i&&i?JSON.parse(c):tA(t,r,c,{on:tB,send:tL}),metaData:s,sender:{win:t,domain:r},reference:u}}h={setupBridge:tb,openBridge:function(e,t){var r=e1("bridges"),n=e1("bridgeFrames");return t=t||Y(e),r.getOrSet(t,function(){return v.try(function(){if(T()===t)throw Error("Can not open bridge on the same domain as current domain: "+t);var r,o=tl(t);if(F(window,o))throw Error("Frame with name "+o+" already exists on page");var i=((r=document.createElement("iframe")).setAttribute("name",o),r.setAttribute("id",o),r.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),r.setAttribute("frameborder","0"),r.setAttribute("border","0"),r.setAttribute("scrolling","no"),r.setAttribute("allowTransparency","true"),r.setAttribute("tabindex","-1"),r.setAttribute("hidden","true"),r.setAttribute("title",""),r.setAttribute("role","presentation"),r.src=e,r);return n.set(t,i),tp.then(function(t){t.appendChild(i);var r=i.contentWindow;return new v(function(e,t){i.addEventListener("load",e),i.addEventListener("error",t)}).then(function(){return e7(r,5e3,"Bridge "+e)}).then(function(){return r})})})})},linkWindow:tv,linkUrl:function(e,t){tv({win:e,domain:Y(t)})},isBridge:th,needsBridge:td,needsBridgeForBrowser:ts,hasBridge:function(e,t){return e1("bridges").has(t||Y(e))},needsBridgeForWin:tc,needsBridgeForDomain:tf,destroyBridges:function(){for(var e=e1("bridges"),t=e1("bridgeFrames"),r=0,n=t.keys();r<n.length;r++){var o=t.get(n[r]);o&&o.parentNode&&o.parentNode.removeChild(o)}t.reset(),e.reset()}};var tV={STRING:"string",OBJECT:"object",FUNCTION:"function",BOOLEAN:"boolean",NUMBER:"number",ARRAY:"array"},tJ={JSON:"json",DOTIFY:"dotify",BASE64:"base64"},tY=E,tZ={RENDER:"zoid-render",RENDERED:"zoid-rendered",DISPLAY:"zoid-display",ERROR:"zoid-error",CLOSE:"zoid-close",DESTROY:"zoid-destroy",PROP
1S:"zoid-props",RESIZE:"zoid-resize",FOCUS:"zoid-focus"};function tG(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function tX(e){if(!e)throw Error("No window name");var t=e.split("__"),r=t[1],n=t[2],o=t[3];if("zoid"!==r)throw Error("Window not rendered by zoid - got "+r);if(!n)throw Error("Expected component name");if(!o)throw Error("Expected serialized payload ref");return{name:n,serializedInitialPayload:o}}var tK=eh(function(e){var t=t$({data:tX(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return eP("opener",C(window));if("parent"===e.type&&"number"==typeof e.distance){var t,r;return eP("parent",(t=window,void 0===(r=e.distance)&&(r=1),function(e,t){void 0===t&&(t=1);for(var r=e,n=0;n<t;n++){if(!r)return;r=O(r)}return r}(t,$(t)-r)))}if("global"===e.type&&e.uid&&"string"==typeof e.uid){var n=function(){var t=e.uid,r=q(window);if(!r)throw Error("Can not find ancestor window");for(var n=0,o=L(r);n<o.length;n++){var i=o[n];if(k(i)){var a=tz(i,function(e){return e.windows&&e.windows[t]});if(a)return{v:a}}}}();if("object"==typeof n)return n.v}else if("name"===e.type){var o,i=e.name;return eP("namedWindow",F(o=eP("ancestor",q(window)),i)||function e(t,r){var n=F(t,r);if(n)return n;for(var o=0,i=D(t);o<i.length;o++){var a=e(i[o],r);if(a)return a}}(B(o)||o,i))}throw Error("Unable to find "+e.type+" parent component window")}(e.metaData.windowRef)}}});return{parent:t.sender,payload:t.data,reference:t.reference}});function tQ(){return tK(window.name)}function t0(e,t,r,n,o){if(!e.hasOwnProperty(r))return n;var i=e[r];return"function"==typeof i.childDecorate?i.childDecorate({value:n,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}):n}function t1(){return v.try(function(){window.focus()})}function t2(){return v.try(function(){window.close()})}var t6=function(){return ep},t8=function(e){return ew(e.value)};function t5(e,t,r){for(var n=0,o=Object.keys(a({},e,t));n<o.length;n++){var i=o[n];r(i,t[i],e[i])}}function t3(e,t,r){var n,o={};return v.all((n=[],t5(t,e,function(e,t,i){var a=v.resolve().then(function(){var n,a;if(null!=i&&t){var u=((n={}).get=t.queryParam,n.post=t.bodyParam,n)[r],s=((a={}).get=t.queryValue,a.post=t.bodyValue,a)[r];if(u)return v.hash({finalParam:v.try(function(){return"function"==typeof u?u({value:i}):"string"==typeof u?u:e}),finalValue:v.try(function(){return"function"==typeof s&&eE(i)?s({value:i}):i})}).then(function(r){var n,i=r.finalParam,a=r.finalValue;if("boolean"==typeof a)n=a.toString();else if("string"==typeof a)n=a.toString();else if("object"==typeof a&&null!==a){if(t.serialization===tJ.JSON)n=JSON.stringify(a);else if(t.serialization===tJ.BASE64)n=eu(JSON.stringify(a));else if(t.serialization===tJ.DOTIFY||!t.serialization){n=function e(t,r,n){for(var o in void 0===r&&(r=""),void 0===n&&(n={}),r=r?r+".":r,t)t.hasOwnProperty(o)&&null!=t[o]&&"function"!=typeof t[o]&&(t[o]&&Array.isArray(t[o])&&t[o].length&&t[o].every(function(e){return"object"!=typeof e})?n[""+r+o+"[]"]=t[o].join(","):t[o]&&"object"==typeof t[o]?n=e(t[o],""+r+o,n):n[""+r+o]=t[o].toString());return n}(a,e);for(var u=0,s=Object.keys(n);u<s.length;u++){var c=s[u];o[c]=n[c]}return}}else"number"==typeof a&&(n=a.toString());o[i]=n})}});n.push(a)}),n)).then(function(){return o})}function t4(e){var t,r,n,o,i,u,s,c,f=e.uid,d=e.options,l=e.overrides,p=void 0===l?{}:l,w=e.parentWin,g=void 0===w?window:w,m=d.propsDef,y=d.containerTemplate,b=d.prerenderTemplate,E=d.tag,_=d.name,x=d.attributes,S=d.dimensions,P=d.autoResize,O=d.url,C=d.domain,A=d.exports,I=new v,R=[],D=eS(),W={},B={},L={visible:!0},j=p.event?p.event:(t={},r={},n={on:function(e,t){var n=r[e]=r[e]||[];n.push(t);var o=!1;return{cancel:function(){o||(o=!0,n.splice(n.indexOf(t),1))}}},once:function(e,t){var r=n.on(e,function(){r.cancel(),t()});return r},trigger:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=r[e],a=[];if(i)for(var u=0;u<i.length;u++)(function(e){var t=i[e];a.push(v.try(function(){return t.apply(void 0,n)}))})(u);return v.all(a).then(ep)},triggerOnce:function(e){if(t[e])return v.resolve();t[e]=!0;for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];
1return n.trigger.apply(n,[e].concat(o))},reset:function(){r={}}}),U=p.props?p.props:{},z=p.onError,F=p.getProxyContainer,H=p.show,G=p.hide,K=p.close,ee=p.renderContainer,et=p.getProxyWindow,er=p.setProxyWin,en=p.openFrame,eo=p.openPrerenderFrame,ei=p.prerender,ea=p.open,eu=p.openPrerender,ec=p.watchForUnload,ef=p.getInternalState,ed=p.setInternalState,el=function(){return"function"==typeof S?S({props:U}):S},e_=function(){return v.try(function(){return p.resolveInitPromise?p.resolveInitPromise():I.resolve()})},ex=function(e){return v.try(function(){return p.rejectInitPromise?p.rejectInitPromise(e):I.reject(e)})},eP=function(e){for(var t={},r=0,n=Object.keys(U);r<n.length;r++){var o=n[r],i=m[o];i&&!1===i.sendToChild||i&&i.sameDomain&&!J(e,T(window))||(t[o]=U[o])}return v.hash(t)},eO=function(){return v.try(function(){return ef?ef():L})},eC=function(e){return v.try(function(){return ed?ed(e):L=a({},L,e)})},eA=function(){return et?et():v.try(function(){var e=U.window;if(e){var t=tj(e);return D.register(function(){return e.close()}),t}return new tx({send:tL})})},eI=function(e){return er?er(e):v.try(function(){o=e})},eT=function(){return H?H():v.hash({setState:eC({visible:!0}),showElement:i?i.get().then(eM):null}).then(ep)},eN=function(){return G?G():v.hash({setState:eC({visible:!1}),showElement:i?i.get().then(ez):null}).then(ep)},eB=function(){return"function"==typeof O?O({props:U}):O},eV=function(){return"function"==typeof x?x({props:U}):x},eJ=function(){return Y(eB())},eY=function(e,t){var r=t.windowName;return en?en(e,{windowName:r}):v.try(function(){if(e===tY.IFRAME)return tF(ej({attributes:a({name:r,title:_},eV().iframe)}))})},eZ=function(e){return eo?eo(e):v.try(function(){if(e===tY.IFRAME)return tF(ej({attributes:a({name:"__zoid_prerender_frame__"+_+"_"+es()+"__",title:"prerender__"+_},eV().iframe)}))})},eG=function(e,t,r){return eu?eu(e,t,r):v.try(function(){if(e===tY.IFRAME){if(!r)throw Error("Expected proxy frame to be passed");return r.get().then(function(e){return D.register(function(){return eF(e)}),eL(e).then(function(e){return N(e)}).then(function(e){return tj(e)})})}if(e===tY.POPUP)return t;throw Error("No render context available for "+e)})},eX=function(){return v.try(function(){if(o)return v.all([j.trigger(tZ.FOCUS),o.focus()]).then(ep)})},eQ=function(){var e=tM(window);return e.windows=e.windows||{},e.windows[f]=window,D.register(function(){delete e.windows[f]}),f},e0=function(e,t,r,n){if(t===T(window))return{type:"global",uid:eQ()};if(e!==window)throw Error("Can not construct cross-domain window reference for different target window");if(U.window){var o=n.getWindow();if(!o)throw Error("Can not construct cross-domain window reference for lazy window prop");if(q(o)!==window)throw Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(r===tY.POPUP)return{type:"opener"};if(r===tY.IFRAME)return{type:"parent",distance:$(window)};throw Error("Can not construct window reference for child")},e1=function(e,t){return v.try(function(){s=e,u=t,e_(),D.register(function(){return t.close.fireAndForget().catch(ep)})})},e2=function(e){var t=e.width,r=e.height;return v.try(function(){j.trigger(tZ.RESIZE,{width:t,height:r})})},e6=function(e){return v.try(function(){return j.trigger(tZ.DESTROY)}).catch(ep).then(function(){return D.all(e)}).then(function(){I.asyncReject(e||Error("Component destroyed"))})},e8=eh(function(e){return v.try(function(){if(K){if(M(K.__source__))return;return K()}return v.try(function(){return j.trigger(tZ.CLOSE)}).then(function(){return e6(e||Error("Component closed"))})})}),e5=function(e,t){var r=t.proxyWin,n=t.proxyFrame,o=t.windowName;return ea?ea(e,{proxyWin:r,proxyFrame:n,windowName:o}):v.try(function(){if(e===tY.IFRAME){if(!n)throw Error("Expected proxy frame to be passed");return n.get().then(function(e){return eL(e).then(function(t){return D.register(function(){return eF(e)}),D.register(function(){return tU(t)}),t})})}if(e===tY.POPUP){var t=el(),r=t.width,i=void 0===r?"300px":r,u=t.height,s=void 0===u?"150px":u;i=eK(i,window.outerWidth),s=eK(s,window.outerWidth);var c=function(e,t){var r,n=(t=t||{}).closeOnUnload,o=t.name,i=t.width,u=t.height,s=0,c=0;i&&(window.outerWidth?c=Math.round((window.outerWidth-i)/2)+window.screenX:window.screen.width&&(c=Math.round((window.screen.width-i)/2))),u&&(window.outerHeight?s=Math.round((window.outerHeight-u)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-u)/2))),delete t.closeOnUnload,delete t.name,i&&u&&(t=a({top:s,left:c,width:i,height:u,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},t));var f=Object.keys(t).map(function(e){if(null!=t[e])return e+"="+em(t[e])}
1).filter(Boolean).join(",");try{r=window.open("",void 0===o?"":o,f)}catch(e){throw new eW("Can not open popup window - "+(e.stack||e.message))}if(M(r))throw new eW("Can not open popup window - blocked");return(void 0===n?1:n)&&window.addEventListener("unload",function(){return r.close()}),r}(0,a({name:o,width:i,height:s},eV().popup));return D.register(function(){return Q(c)}),D.register(function(){return tU(c)}),c}throw Error("No render context available for "+e)}).then(function(e){return r.setWindow(e,{send:tL}),r.setName(o).then(function(){return r})})},e3=function(){return v.try(function(){var e=eU(window,"unload",ew(function(){e6(Error("Window navigated away"))})),t=Z(g,e6,3e3);if(D.register(t.cancel),D.register(e.cancel),ec)return ec()})},e4=function(e){var t=!1;return e.isClosed().then(function(r){return r?(t=!0,e8(Error("Detected component window close"))):v.delay(200).then(function(){return e.isClosed()}).then(function(e){if(e)return t=!0,e8(Error("Detected component window close"))})}).then(function(){return t})},e9=function(e){return z?z(e):v.try(function(){if(-1===R.indexOf(e))return R.push(e),I.asyncReject(e),j.trigger(tZ.ERROR,e)})},e7=new v,te=function(e){return v.try(function(){e7.resolve(e)})};e1.onError=e9;var tt=function(e,t){return e({uid:f,container:t.container,context:t.context,doc:t.doc,frame:t.frame,prerenderFrame:t.prerenderFrame,focus:eX,close:e8,state:W,props:U,tag:E,dimensions:el(),event:j})},tr=function(e,t){var r=t.context;return ei?ei(e,{context:r}):v.try(function(){if(b){var t=e.getWindow();if(t&&k(t)&&function(e){try{if(!e.location.href||"about:blank"===e.location.href)return!0}catch(e){}return!1}(t)){var n=(t=N(t)).document,o=tt(b,{context:r,doc:n});if(o){if(o.ownerDocument!==n)throw Error("Expected prerender template to have been created with document from child window");!function(e,t){var r=t.tagName.toLowerCase();if("html"!==r)throw Error("Expected element to be html, got "+r);for(var n=e.document.documentElement,o=0,i=eb(n.children);o<i.length;o++)n.removeChild(i[o]);for(var a=0,u=eb(t.children);a<u.length;a++)n.appendChild(u[a])}(t,o);var i=P.width,a=void 0!==i&&i,u=P.height,s=void 0!==u&&u,c=P.element,f=void 0===c?"body":c;if((f=eR(f,n))&&(a||s)){var d=eH(f,function(e){e2({width:a?e.width:void 0,height:s?e.height:void 0})},{width:a,height:s,win:t});j.on(tZ.RENDERED,d.cancel)}}}}})},tn=function(e,t){var r=t.proxyFrame,n=t.proxyPrerenderFrame,o=t.context,a=t.rerender;return ee?ee(e,{proxyFrame:r,proxyPrerenderFrame:n,context:o,rerender:a}):v.hash({container:e.get(),frame:r?r.get():null,prerenderFrame:n?n.get():null,internalState:eO()}).then(function(e){var t=e.container,r=e.internalState.visible,n=tt(y,{context:o,container:t,frame:e.frame,prerenderFrame:e.prerenderFrame,doc:document});if(n){r||ez(n),function(e,t){e.appendChild(t)}(t,n);var u=function(e,t){t=ew(t);var r,n,o,i=!1,a=[],u=function(){i=!0;for(var e=0;e<a.length;e++)a[e].disconnect();r&&r.cancel(),o&&o.removeEventListener("unload",s),n&&eF(n)},s=function(){i||(t(),u())};if(eq(e))return s(),{cancel:u};if(window.MutationObserver)for(var c=e.parentElement;c;){var f=new window.MutationObserver(function(){eq(e)&&s()});f.observe(c,{childList:!0}),a.push(f),c=c.parentElement}return(n=document.createElement("iframe")).setAttribute("name","__detect_close_"+es()+"__"),n.style.display="none",eL(n).then(function(e){(o=N(e)).addEventListener("unload",s)}),e.appendChild(n),r=ev(function(){eq(e)&&s()},1e3),{cancel:u}}(n,function(){var e=Error("Detected container element removed from DOM");return v.delay(1).then(function(){if(!eq(n))return D.all(e),a().then(e_,ex);e8(e)})});return D.register(function(){return u.cancel()}),D.register(function(){return eF(n)}),i=tF(n)}})},to=function(){return{state:W,event:j,close:e8,focus:eX,resize:e2,onError:e9,updateProps:ta,show:eT,hide:eN}},ti=function(e){void 0===e&&(e={});var t,r,n,o,i,a=c,u=to();ey(B,e),t=u.state,r=u.close,n=u.focus,o=u.event,i=u.onError,t5(B,m,function(e,u,s){var c=!1,f=s;Object.defineProperty(U,e,{configurable:!0,enumerable:!0,get:function(){return c?f:(c=!0,function(){if(!u)return f;var c=u.alias;if(c&&!eE(s)&&eE(B[c])&&(f=B[c]),u.value&&(f=u.value({props:U,state:t,close:r,focus:n,event:o,onError:i,container:a})),!u.default||eE(f)||eE(B[e])||(f=u.default({props:U,state:t,close:r,focus:n,event:o,onError:i,container:a})),eE(f)){if(u.type===tV.ARRAY?!Array.isArray(f):typeof f!==u.type)throw TypeError("Prop is not of type "+u.type+": "+e)}else if(!1!==u.required&&!eE(B[e]))throw Error('Expected prop "'+e+'" to be defined');return eE(f)&&u.decorate&&(f=u.decorate({value:f,props:U,state:t,close:r,focus:n,event:o,onError:i,container:a})),f}())}})}),t5(U,m,ep)},ta=function(e){return ti(e),I.then(function(){var e=u,t=o;if(e&&t&&s)return eP(s).then(function(r){return e.updateProps(r).catch(function(e){return e4(t).then(function(t){if(!t)throw e})})})})},tu=function(e){return F?F(e):v.try(function(){return eD(e)}).then(function(e){return e$(e)&&(e=function e(t){var r=function(e){var t=function(e){for(;e.parentNode;)e=e.parentNode;if(e$(e))return e}(e);if(t&&t.host)return t.host}(t);if(!r)throw Error("Element is not in shadow dom");var n="shadow-slot-"+es(),o=document.createElement("slot");o.setAttribute("name",n),t.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",n),r.appendChild(i),e$(r)?e(i):i}(e)),c=e,tF(e)})};return{init:function(){j.on(tZ.RENDER,function(){return U.onRender()}),j.on(tZ.DISPLAY,function(){return U.onDisplay()}),j.on(tZ.RENDERED,function(){return U.onRendered()}),j.on(tZ.CLOSE,function(){return U.onClose()}),j.on(tZ.DESTROY,function(){return U.onDestroy()}),j.on(tZ.RESIZE,function(){return U.onResize()}),j.on(tZ.FOCUS,function(){return U.onFocus()}),j.on(tZ.PROPS,function(e){return U.onProps(e)}),j.on(tZ.ERROR,function(e){return U&&U.onError?U.onError(e):ex(e).then(function(){setTimeout(function(){throw e},1)})}),D.register(j.reset)},render:function(e){var t=e.target,r=e.container,n=e.context,i=e.rerender;return v.try(function(){var e=eJ(),a=C||eJ();!function(e,t,r){if(e!==window){if(!V(window,e))throw Error("Can only renderTo an adjacent frame");var n=T();if(!J(t,n)&&!k(e))throw Error("Can not render remotely to "+t.toString()+" - can only render to "+n);if(r&&"string"!=typeof r)throw Error("Container passed to renderTo must be a string selector, got "+typeof r+" }")}}(t,a,r);var u=v.try(function(){if(t!==window)return function(e,t){for(var r={},n=0,o=Object.keys(U);n<o.length;n++){var i=o[n],a=m[i];a&&a.allowDelegate&&(r[i]=U[i])}var u=tL(t,"zoid_delegate_"+_,{uid:f,overrides:{props:r,event:j,close:e8,onError:e9,getInternalState:eO,setInternalState:eC,resolveInitPromise:e_,rejectInitPromise:ex}}).then(function(e){var r=e.data.parent;return D.register(function(e){if(!M(t))return r.destroy(e)}),r.getDelegateOverrides()}).catch(function(e){throw Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+eg(e))});return F=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.getProxyContainer.apply(e,t)})},ee=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.renderContainer.apply(e,t)})},H=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.show.apply(e,t)})},G=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.hide.apply(e,t)})},ec=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.watchForUnload.apply(e,t)})}
1,e===tY.IFRAME?(et=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.getProxyWindow.apply(e,t)})},en=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.openFrame.apply(e,t)})},eo=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.openPrerenderFrame.apply(e,t)})},ei=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.prerender.apply(e,t)})},ea=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.open.apply(e,t)})},eu=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.openPrerender.apply(e,t)})}):e===tY.POPUP&&(er=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.then(function(e){return e.setProxyWin.apply(e,t)})}),u}(n,t)}),s=U.window,c=e3(),l=t3(m,U,"post"),p=j.trigger(tZ.RENDER),w=tu(r),g=eA(),y=w.then(function(){return ti()}),b=y.then(function(){return t3(m,U,"get").then(function(e){var t,r,n,o,i,a,u,s,c,f;return t=X(eB()),i=(r={query:e}).query||{},a=r.hash||{},o=(u=t.split("#"))[1],n=(s=(n=u[0]).split("?"))[0],c=ek(s[1],i),f=ek(o,a),c&&(n=n+"?"+c),f&&(n=n+"#"+f),n})}),x=g.then(function(r){var o,i,u,s,c,d,l,h,p,w,g,m,y,v;return(s=(u={proxyWin:(o={proxyWin:r,initialChildDomain:e,childDomainMatch:a,target:t,context:n}).proxyWin,initialChildDomain:o.initialChildDomain,childDomainMatch:o.childDomainMatch,target:o.target,context:o.context}).proxyWin,c=u.initialChildDomain,d=u.childDomainMatch,h=void 0===(l=u.target)?window:l,(m=(g={proxyWin:s,initialChildDomain:c,childDomainMatch:d,context:p=u.context}).proxyWin,y=g.childDomainMatch,v=g.context,eP(g.initialChildDomain).then(function(e){return{uid:f,context:v,tag:E,childDomainMatch:y,version:"9_0_86",props:e,exports:{init:function(e){return e1(this.origin,e)},close:e8,checkClose:function(){return e4(m)},resize:e2,onError:e9,show:eT,hide:eN,export:te}}})).then(function(e){var t=tH({data:e,metaData:{windowRef:e0(h,c,p,s)},sender:{domain:T(window)},receiver:{win:s,domain:d},passByReference:c===T()}),r=t.serializedData;return D.register(t.cleanReference),r})).then(function(e){return tG({name:_,serializedPayload:e})})}),S=x.then(function(e){return eY(n,{windowName:e})}),P=eZ(n),O=v.hash({proxyContainer:w,proxyFrame:S,proxyPrerenderFrame:P}).then(function(e){return tn(e.proxyContainer,{context:n,proxyFrame:e.proxyFrame,proxyPrerenderFrame:e.proxyPrerenderFrame,rerender:i})}).then(function(e){return e}),A=v.hash({windowName:x,proxyFrame:S,proxyWin:g}).then(function(e){var t=e.proxyWin;return s?t:e5(n,{windowName:e.windowName,proxyWin:t,proxyFrame:e.proxyFrame})}),N=v.hash({proxyWin:A,proxyPrerenderFrame:P}).then(function(e){return eG(n,e.proxyWin,e.proxyPrerenderFrame)}),R=A.then(function(e){return o=e,eI(e)}),W=v.hash({proxyPrerenderWin:N,state:R}).then(function(e){return tr(e.proxyPrerenderWin,{context:n})}),B=v.hash({proxyWin:A,windowName:x}).then(function(e){if(s)return e.proxyWin.setName(e.windowName)}),L=v.hash({body:l}).then(function(e){return d.method?d.method:Object.keys(e.body).length?"post":"get"}),z=v.hash({proxyWin:A,windowUrl:b,body:l,method:L,windowName:B,prerender:W}).then(function(e){return e.proxyWin.setLocation(e.windowUrl,{method:e.method,body:e.body})}),q=A.then(function(e){!function e(t,r){var n=!1;return D.register(function(){n=!0}),v.delay(2e3).then(function(){return t.isClosed()}).then(function(o){if(!n)return o?e8(Error("Detected "+r+" close")):e(t,r)})}(e,n)}),$=v.hash({container:O,prerender:W}).then(function(){return j.trigger(tZ.DISPLAY)}),Z=A.then(function(t){return v.try(function(){return t.awaitWindow()}).then(function(t){if(h&&h.needsBridge({win:t,domain:e})&&!h.hasBridge(e,e)){var r="function"==typeof d.bridgeUrl?d.bridgeUrl({props:U}):d.bridgeUrl;if(!r)throw Error("Bridge needed to render "+n);var o=Y(r);return h.linkUrl(t,e),h.openBridge(X(r),o)}})}),K=z.then(function(){return v.try(function(){var e=U.timeout;if(e)return I.timeout(e,Error("Loading component timed out after "+e+" milliseconds"))})}),Q=I.then(function(){return j.trigger(tZ.RENDERED)});return v.hash({initPromise:I,buildUrlPromise:b,onRenderPromise:p,getProxyContainerPromise:w,openFramePromise:S,openPrerenderFramePromise:P,renderContainerPromise:O,openPromise:A,openPrerenderPromise:N,setStatePromise:R,prerenderPromise:W,loadUrlPromise:z,buildWindowNamePromise:x,setWindowNamePromise:B,watchForClosePromise:q,onDisplayPromise:$,openBridgePromise:Z,runTimeoutPromise:K,onRenderedPromise:Q,delegatePromise:u,watchForUnloadPromise:c,finalSetPropsPromise:y})}).catch(function(e){return v.all([e9(e),e6(e)]).then(function(){throw e},function(){throw e})}).then(ep)},destroy:e6,getProps:function(){return U},setProps:ti,export:te,getHelpers:to,getDelegateOverrides:function(){return v.try(function(){return{getProxyContainer:tu,show:eT,hide:eN,renderContainer:tn,getProxyWindow:eA,watchForUnload:e3,openFrame:eY,openPrerenderFrame:eZ,prerender:tr,open:e5,openPrerender:eG,setProxyWin:eI}})},getExports:function(){return A({getExports:function(){return e7}})}}}function t9(e){var t=e.uid,r=e.frame,n=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,s=u.width,c=u.height;if(r&&n){var f=o.createElement("div");f.setAttribute("id",t);var d=o.createElement("style");return i.cspNonce&&d.setAttribute("nonce",i.cspNonce),d.appendChild(o.createTextNode("\n            #"+t+" {\n                display: inline-block;\n                position: relative;\n                width: "+s+";\n                height: "+c+";\n            }\n\n            #"+t+" > 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            #"+t+" > iframe.zoid-invisible {\n                opacity: 0;\n            }\n\n            #"+t+" > iframe.zoid-visible {\n                opacity: 1;\n        }\n        ")),f.appendChild(r),f.appendChild(n),f.appendChild(d),n.classList.add("zoid-visible"),r.classList.add("zoid-invisible"),a.on(tZ.RENDERED,function(){n.classList.remove("zoid-visible"),n.classList.add("zoid-invisible"),r.classList.remove("zoid-invisible"),r.classList.add("zoid-visible"),setTimeout(function(){eF(n)},1)}),a.on(tZ.RESIZE,function(e){var t=e.width,r=e.height;"number"==typeof t&&(f.style.width=eX(t)),"number"==typeof r&&(f.style.height=eX(r))}),f}}function t7(e){var t=e.doc,r=e.props,n=t.createElement("html"),o=t.createElement("body"),i=t.createElement("style"),a=t.createElement("div");return a.classList.add("spinner"),r.cspNonce&&i.setAttribute("nonce",r.cspNonce),n.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(t.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        ")),n}var re=eS(),rt=eS(),rr=function(e){eQ().initialized||(eQ().initialized=!0,r=(t={on:tB,send:tL}).on,n=t.send,(o=eQ()).receiveMessage=o.receiveMessage||function(e){return tW(e,{on:r,send:n})},u=(i={on:tB,send:tL}).on,s=i.send,e1().getOrSet("postMessageListener",function(){return eU(window,"message",function(e){var t,r,n;r=(t={on:u,send:s}).on,n=t.send,v.try(function(){var t=e.source||e.sourceElement,o=e.origin||e.originalEvent&&e.originalEvent.origin,i=e.data;if("null"===o&&(o="file://"),t){if(!o)throw Error("Post message did n
1ot have origin domain");tW({source:t,origin:o,data:i},{on:r,send:n})}})})}),tb({on:tB,send:tL,receiveMessage:tW}),f=(c={on:tB,send:tL}).on,d=c.send,e1("builtinListeners").getOrSet("helloListener",function(){var e=f("postrobot_hello",{domain:"*"},function(e){return e3(e.source,{domain:e.origin}),{instanceID:e5()}}),t=q();return t&&e4(t,{send:d}).catch(function(e){}),e}));var t,r,n,o,i,u,s,c,f,d,l=function(e){var t,r,n=function(e){var t=e.tag,r=e.url,n=e.domain,o=e.bridgeUrl,i=e.props,u=e.dimensions,s=e.autoResize,c=e.allowedParentDomains,f=e.attributes,d=e.defaultContext,l=void 0===d?tY.IFRAME:d,h=e.containerTemplate,p=void 0===h?t9:h,w=e.prerenderTemplate,g=e.validate,m=e.eligible,y=e.logger,v=void 0===y?{info:ep}:y,b=e.exports,E=void 0===b?ep:b,_=e.method,x=e.children,S=t.replace(/-/g,"_"),P=a({},{window:{type:tV.OBJECT,sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var t=e.value;if(!G(t)&&!tx.isProxyWindow(t))throw Error("Expected Window or ProxyWindow");if(G(t)){if(M(t))throw Error("Window is closed");if(!k(t))throw Error("Window is not same domain")}},decorate:function(e){return tj(e.value)}},timeout:{type:tV.NUMBER,required:!1,sendToChild:!1},cspNonce:{type:tV.STRING,required:!1},onDisplay:{type:tV.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:t6,decorate:t8},onRendered:{type:tV.FUNCTION,required:!1,sendToChild:!1,default:t6,decorate:t8},onRender:{type:tV.FUNCTION,required:!1,sendToChild:!1,default:t6,decorate:t8},onClose:{type:tV.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:t6,decorate:t8},onDestroy:{type:tV.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:t6,decorate:t8},onResize:{type:tV.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:t6},onFocus:{type:tV.FUNCTION,required:!1,sendToChild:!1,allowDelegate:!0,default:t6},close:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:tV.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:tV.STRING,required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:tV.FUNCTION,required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},void 0===i?{}:i);if(!p)throw Error("Container template required");return{name:S,tag:t,url:r,domain:n,bridgeUrl:o,method:_,propsDef:P,dimensions:void 0===u?{}:u,autoResize:void 0===s?{}:s,allowedParentDomains:void 0===c?"*":c,attributes:void 0===f?{}:f,defaultContext:l,containerTemplate:p,prerenderTemplate:void 0===w?t7:w,validate:g,logger:v,eligible:void 0===m?function(){return{eligible:!0}}:m,children:void 0===x?function(){return{}}:x,exports:"function"==typeof E?E:function(e){for(var t=e.getExports,r={},n=0,o=Object.keys(E);n<o.length;n++)!function(e,n){var o=n[e],i=E[o].type,a=t().then(function(e){return e[o]});r[o]=i===tV.FUNCTION?function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a.then(function(e){return e.apply(void 0,t)})}:a}(n,o);return r}}}(e),o=n.name,i=n.tag,u=n.defaultContext,s=n.eligible,c=n.children,f=tM(window),d=[],l=function(){if(function(e){try{return tX(window.name).name===e}catch(e){}return!1}(o)){var e=tQ().payload;if(e.tag===i&&J(e.childDomainMatch,T()))return!0}return!1},h=eh(function(){if(l()){if(window.xprops)throw delete f.components[i],Error("Can not register "+o+" as child - child already registered");var e=function(e){var t,r=e.tag,n=e.propsDef,o=e.autoResize,i=e.allowedParentDomains,a=[],u=tQ(),s=u.parent,c=u.payload,f=s.win,d=s.domain,l=new v,h=c.version,p=c.uid,w=c.exports,g=c.context,m=c.props;if("9_0_86"!==h)throw Error("Parent window has zoid version "+h+", child window has version 9_0_86");var y=w.show,b=w.hide,E=w.close,_=w.onError,x=w.checkClose,S=w.export,P=w.resize,A=w.init,I=function(){return f},R=function(){return d},D=function(e){return a.push(e),{cancel:function(){a.splice(a.indexOf(e),1)}}},W=function(e){return P.fireAndForget({width:e.width,height:e.height})},j=function(e){return l.resolve(e),S(e)},U=function(e){var n=(void 0===e?{}:e).anyParent,o=[],i=t.parent;if(void 0===n&&(n=!i),!n&&!i)throw Error("No parent found for "+r+" child");for(var a=0,u=L(window);a<u.length;a++){var s=u[a];if(k(s)){var c=N(s).xprops;if(c&&I()===c.getParent()){var f=c.parent;if(n||!i||f&&f.uid===i.uid){var d=tz(s,function(e){return e.exports});o.push({props:c,exports:d})}}}}return o},M=function(e,o,i){void 0===i&&(i=!1);var u=function(e,t,r,n,o,i){void 0===i&&(i=!1);for(var a={},u=0,s=Object.keys(r);u<s.length;u++){var c=s[u],f=t[c];if(!f||!f.sameDomain||n===T(window)&&k(e)){var d=t0(t,0,c,r[c],o);a[c]=d,f&&f.alias&&!a[f.alias]&&(a[f.alias]=d)}}if(!i)for(var l=0,h=Object.keys(t);l<h.length;l++){var p=h[l];r.hasOwnProperty(p)||(a[p]=t0(t,0,p,void 0,o))}return a}(f,n,e,o,{tag:r,show:y,hide:b,close:E,focus:t1,onError:_,resize:W,getSiblings:U,onProps:D,getParent:I,getParentDomain:R,uid:p,export:j},i);t?ey(t,u):t=u;for(var s=0;s<a.length;s++)(0,a[s])(t)},z=function(e){return v.try(function(){return M(e,d,!0)})};return{init:function(){return v.try(function(){return k(f)&&function(e){var t=e.componentName,r=e.parentComponentWindow,n=t$({data:tX(window.name).seri
1alizedInitialPayload,sender:{win:r},basic:!0}),o=n.sender;if("uid"===n.reference.type||"global"===n.metaData.windowRef.type){var i=tH({data:n.data,metaData:{windowRef:function(e,t){if(void 0===t&&(t=window),e===O(t))return{type:"parent",distance:$(e)};if(e===C(t))return{type:"opener"};if(k(e)&&e!==B(e)){var r=N(e).name;if(r)return{type:"name",name:r}}}(r)},sender:{domain:o.domain},receiver:{win:window,domain:T()},basic:!0});window.name=tG({name:t,serializedPayload:i.serializedData})}}({componentName:e.name,parentComponentWindow:f}),tM(window).exports=e.exports({getExports:function(){return l}}),function(e,t){if(!J(e,t))throw Error("Can not be rendered by domain: "+t)}(i,d),te(f),window.addEventListener("beforeunload",function(){x.fireAndForget()}),window.addEventListener("unload",function(){x.fireAndForget()}),Z(f,function(){t2()}),A({updateProps:z,close:t2})}).then(function(){var e,t,r,n,i;return(t=void 0!==(e=o.width)&&e,n=void 0!==(r=o.height)&&r,eD(void 0===(i=o.element)?"body":i).catch(ep).then(function(e){return{width:t,height:n,element:e}})).then(function(e){var t=e.width,r=e.height,n=e.element;n&&(t||r)&&g!==tY.POPUP&&eH(n,function(e){W({width:t?e.width:void 0,height:r?e.height:void 0})},{width:t,height:r})})}).catch(function(e){_(e)})},getProps:function(){return t||M(m,d),t}}}(n);return e.init(),e}});if(h(),t=tB("zoid_allow_delegate_"+o,function(){return!0}),r=tB("zoid_delegate_"+o,function(e){var t=e.data;return{parent:t4({uid:t.uid,options:n,overrides:t.overrides,parentWin:e.source})}}),rt.register(t.cancel),rt.register(r.cancel),f.components=f.components||{},f.components[i])throw Error("Can not register multiple components with the same tag: "+i);return f.components[i]=!0,{init:function e(t){var r,f="zoid-"+i+"-"+es(),l=t||{},h=s({props:l}),p=h.eligible,w=h.reason,g=l.onDestroy;l.onDestroy=function(){if(r&&p&&d.splice(d.indexOf(r),1),g)return g.apply(void 0,arguments)};var m=t4({uid:f,options:n});m.init(),p?m.setProps(l):l.onDestroy&&l.onDestroy(),re.register(function(e){return m.destroy(e||Error("zoid destroyed all components"))});var y=function(t){var r=(void 0===t?{}:t).decorate;return e((void 0===r?function(e){return e}:r)(l))},b=function(e,t,n){return v.try(function(){if(!p){var t=Error(w||o+" component is not eligible");return m.destroy(t).then(function(){throw t})}if(!G(e))throw Error("Must pass window to renderTo");return v.try(function(){if(l.window)return tj(l.window).getType();if(n){if(n!==tY.IFRAME&&n!==tY.POPUP)throw Error("Unrecognized context: "+n);return n}return u})}).then(function(o){if(t=function(e,t){if(t){if("string"!=typeof t&&!eN(t))throw TypeError("Expected string or element selector to be passed");return t}if(e===tY.POPUP)return"body";throw Error("Expected element to be passed to render iframe")}(o,t),e!==window&&"string"!=typeof t)throw Error("Must pass string element when rendering to another window");return m.render({target:e,container:t,context:o,rerender:function(){var o=y();return ey(r,o),o.renderTo(e,t,n)}})}).catch(function(e){return m.destroy(e).then(function(){throw e})})};return r=a({},m.getExports(),m.getHelpers(),function(){for(var e=c(),t={},r=0,n=Object.keys(e);r<n.length;r++)!function(r,n){var o=n[r],i=e[o];t[o]=function(e){var t=m.getProps();return i(a({},e,{parent:{uid:f,props:t,export:m.export}}))}}(r,n);return t}(),{isEligible:function(){return p},clone:y,render:function(e,t){return b(window,e,t)},renderTo:function(e,t,r){return b(e,t,r)}}),p&&d.push(r),r},instances:d,driver:function(e,t){throw Error("Driver support not enabled")},isChild:l,canRenderTo:function(e){return tL(e,"zoid_allow_delegate_"+o).then(function(e){return e.data}).catch(function(){return!1})},registerChild:h}}(e),h=function(e){return l.init(e)};h.driver=function(e,t){return l.driver(e,t)},h.isChild=function(){return l.isChild()},h.canRenderTo=function(e){return l.canRenderTo(e)},h.instances=l.instances;var p=l.registerChild();return p&&(window.xprops=h.xprops=p.getProps()),h};function rn(e){h&&h.destroyBridges();var t=re.all(e);return re=eS(),t}var ro=rn;function ri(e){var t;return ro(),delete window.__zoid_9_0_86__,function(){for(var e=e1("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],o=e.get(n);o&&(o.cancelled=!0),e.del(n)}}(),(t=e1().get("postMessageListener"))&&t.cancel(),delete window.__post_robot_10_0_44__,rt.all(e)}}])},e.exports=r()}),c("72MPx",function(t,r){e(t.exports,"Buffer",()=>n,e=>n=e),e(t.exports,"INSPECT_MAX_BYTES",()=>o,e=>o=e);var n,o,i=s("cJDA1"),a=s("4RYxB"),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function c(e){if(e>
12147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return d(e,t,r)}function d(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!f.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|m(e,t),n=c(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(N(e,Uint8Array)){var t=new Uint8Array(e);return w(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return w(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return f.from(n,t,r);var o=function(e){if(f.isBuffer(e)){var t,r=0|g(e.length),n=c(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?c(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return l(e),c(e<0?0:0|g(e))}function p(e){for(var t=e.length<0?0:0|g(e.length),r=c(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function w(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),n}function g(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(o)return n?-1:I(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,r){var n,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=R[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return n=t,o=r,0===n&&o===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(n,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}
vendor: 14,457 bytes, line 1
1else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function E(e,t,r,n,o){var i,a=1,u=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,u/=2,s/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var f=-1;for(i=r;i<u;i++)if(c(e,i)===c(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===s)return f*a}else -1!==f&&(i-=i-f),f=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){for(var d=!0,l=0;l<s;l++)if(c(e,i+l)!==c(t,l)){d=!1;break}if(d)return i}return -1}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,u,s,c=e[o],f=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(f=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],(192&i)==128&&(192&a)==128&&(192&u)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,d=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function x(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,o,i){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function P(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}n=f,o=50,f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return d(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return(l(e),e<=0)?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)},f.allocUnsafe=function(e){return h(e)},f.allocUnsafeSlow=function(e){return h(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=f.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(N(i,Uint8Array))o+i.length>n.length?f.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(f.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},f.byteLength=m,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):y.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=o;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(f.prototype[u]=f.prototype.inspect),f.prototype.compare=function(e,t,r,n,o){if(N(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,u=Math.min(i,a),s=this.slice(n,o),c=e.slice(t,r),d=0;d<u;++d)if(s[d]!==c[d]){i=s[d],a=c[d];break}return i<a?-1:a<i?1:0},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,u,s,c,f,d,l=this.length-t;if((void 0===r||r>l)&&(r=l),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(t.substr(2*a,2),16);if(u!=u)break;e[r+a]=u}return a}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,k(I(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,u=r,k(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,u);case"base64":return s=t,c=r,k(T(e),this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,d=r,k(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-f),this,f,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUint8=f.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),a.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),a.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),a.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),a.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;S(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;S(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);S(this,e,t,r,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);S(this,e,t,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=f.isBuffer(e)?e:f.from(e,n),u=a.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function I(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()}),c("cJDA1",function(t,r){e(t.exports,"toByteArray",()=>n,e=>n=e),e(t.exports,"fromByteArray",()=>o,e=>o=e),n=function(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}(e),o=n[0],i=n[1],s=new u((o+i)*3/4-i),c=0,f=i>0?o-4:o;for(r=0;r<f;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===i&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,s[c++]=255&t),1===i&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s},o=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,u=r-n;a<u;a+=16383)o.push(function(e,t,r){for(var n,o=[],a=t;a<r;a+=3)o.push(i[(n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return o.join("")}(e,a,a+16383>u?u:a+16383));return 1===n?o.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&o.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),o.join("")};for(var n,o,i=[],a=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=s.length;c<f;++c)i[c]=s[c],a[s.charCodeAt(c)]=c;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}),c("4RYxB",function(t,r){var n,o;e(t.exports,"read",()=>n,e=>n=e),e(t.exports,"write",()=>o,e=>o=e),n=function(e,t,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,d=r?o-1:0,l=r?-1:1,h=e[t+d];for(d+=l,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+e[t+d],d+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+e[t+d],d+=l,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},o=function(e,t,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,d=f>>1,l=23===o?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,w=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+d>=1?t+=l/s:t+=l*Math.pow(2,1-d),t*s>=2&&(a++,s/=2),a+d>=f?(u=0,a=f):a+d>=1?(u=(t*s-1)*Math.pow(2,o),a+=d):(u=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&u,h+=p,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*w}});var f={},d={},l=d={};function h(){throw Error("setTimeout has not been defined")}function p(){throw Error("clearTimeout has not been defined")}function w(e){if(r===setTimeout)return setTimeout(e,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:h}catch(e){r=h}try{n="function"==typeof clearTimeout?clearTimeout:p}catch(e){n=p}}();var g=[],m=!1,y=-1;function v(){m&&o&&(m=!1,o.length?g=o.concat(g):y=-1,g.length&&b())}function b(){if(!m){var e=w(v);m=!0;for(var t=g.length;t;){for(o=g,g=[];++y<t;)o&&o[y].run();y=-1,t=g.length}o=null,m=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===p||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function E(e,t){this.fun=e,this.array=t}function _(){}l.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];g.push(new E(e,t)),1!==g.length||m||w(b)},E.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=_,l.addListener=_,l.once=_,l.off=_,l.removeListener=_,l.removeAllListeners=_,l.emit=_,l.prepe
1ndListener=_,l.prependOnceListener=_,l.listeners=function(e){return[]},l.binding=function(e){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw Error("process.chdir is not supported")},l.umask=function(){return 0},d&&d.env,(f=s("jkAiw")).default=f;let x={BUBBLE:"bubble",CONVERSATION_BAR:"conversation_bar"},S={VISIBLE:"zoid-visible",INVISIBLE:"zoid-invisible"},P=t(f).EVENT;function O(e){return`${function(e){if("number"==typeof e)return e;let t=e.match(/^([0-9]+)(px|%)$/);if(!t)throw Error(`Could not match css value from ${e}`);return parseInt(t[1],10)}(e)}px`}function C(e){return"number"==typeof e?O(e):"string"==typeof e&&/^[0-9]+%$/.test(e)?e:O(e)}if(window.chatSparkLoaded=!1,!window.__csPushStatePatched){window.__csPushStatePatched=!0;let e=history.pushState.bind(history),t=history.replaceState.bind(history);history.pushState=function(...t){e(...t),window.dispatchEvent(new Event("cs_navigate"))},history.replaceState=function(...e){t(...e),window.dispatchEvent(new Event("cs_navigate"))}}let A=window.__chatSparkComponent||t(f).create({tag:"chatspark-button",url:()=>"https://chat.chatspark.io",dimensions:{width:"200px",height:"500px"},autoResize:{height:!1,width:!1},props:{chatbotId:{type:"string",required:!0},isOpen:{type:"boolean",required:!1,default:()=>!1},gaID:{type:"string",required:!1,default:()=>""},fullScreen:{type:"boolean",required:!1,default:()=>!1},helpCenter:{type:"boolean",required:!1,default:()=>!1},data:{type:"object",required:!1,default:()=>{}},parentWindow:{type:"object",required:!1},currentUrl:{type:"string",required:!1,default:()=>window.location.href},abToken:{type:"string",required:!1,default:()=>""},proactiveOverlay:{type:"object",required:!1,default:()=>null},pagePrompts:{type:"object",required:!1,default:()=>null},launcherStyle:{type:"string",required:!1,default:()=>x.BUBBLE},barPosition:{type:"string",required:!1,default:()=>"bottom_center"}},prerenderTemplate:function(){return null},containerTemplate:function({uid:e,frame:t,prerenderFrame:r,doc:n,props:o,event:i,dimensions:a}){let u,{width:s,height:c}=a;if(!t||!r)return;let f=n.createElement("div");f.setAttribute("id",e);let d=n.createElement("style");o.cspNonce&&d.setAttribute("nonce",o.cspNonce);let l=o.launcherStyle===x.CONVERSATION_BAR,h="inline-block",p="absolute",w="100%",g="100%",m=s,y=c;return o.fullScreen?(h="flex",m="100%",y="100%",p="relative",w="100%",g="100%"):l&&(m="372px",y="80px"),u=o.fullScreen?`
2                position: relative;
3                width: 100%;
4                height: 100%;
5                bottom: auto;
6                right: auto;
7                left: auto;
8                transform: none;
9                z-index: 1;
10            `:l?`
11                position: fixed;
12                width: ${m};
13                height: ${y};
14                bottom: calc(${o.marginBottom||"20px"} + env(safe-area-inset-bottom, 0px));
15                left: 50%;
16                right: auto;
17                transform: translateX(-50%);
18                z-index: 2100000000;
19                transition: bottom 300ms ease;
20            `:`
21                position: fixed;
22                width: ${m};
23                height: ${y};
24                bottom: ${o.marginBottom||"20px"};
25                right: 20px;
26                left: auto;
27                transform: none;
28                z-index: 2100000000;
29                transition: bottom 300ms ease;
30            `,d.appendChild(n.createTextNode(`
31                html, body {
32                    height: 100%;
33                }
34
35                #${e} {
36                    display: ${h};
37                    ${u}
38                }
39
40                ${l?`
41                @media only screen and (max-width: 640px) {
42                    #${e} {
43                        width: calc(100% - 30px);
44                        left: 15px;
45                        right: auto;
46                        transform: none;
47                    }
48                    #${e}.chatspark-open {
49                        width: calc(100% - 30px);
50                        left: 15px;
51                        right: auto;
52                        transform: none;
53                    }
54                }
55                `:`
56                @media only screen and (max-width : 640px) {
57                    #${e}.chatspark-open {
58                        position: fixed;
59                        bottom: 0;
60                        right: 0;
61                    }
62                }
63                `}
64
65                #${e} > iframe {
66                    display: inline-block;
67                    position: ${p};
68                    width: ${w};
69                    height: ${g};
70                    min-height: auto;
71                    min-width: auto;
72                    top: 0;
73                    left: 0;
74                    transition: opacity .2s ease-in-out;
75                }
76
77                #${e} > iframe html, #${e} > iframe html body {
78                    width: 100%;
79                    height: 100%;
80                }
81
82                #${e} > iframe.${S.INVISIBLE} {
83                    opacity: 0;
84                }
85
86                #${e} > iframe.${S.VISIBLE} {
87                    opacity: 1;
88                }
89            `)),f.appendChild(t),f.appendChild(r),f.appendChild(d),r.classList.add(S.VISIBLE),t.classList.add(S.INVISIBLE),i.on(P.RENDERED,()=>{r.classList.remove(S.VISIBLE),r.classList.add(S.INVISIBLE),t.classList.remove(S.INVISIBLE),t.classList.add(S.VISIBLE),setTimeout(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)},1)}),i.on(P.RESIZE,({width:e,height:t})=>{let r=window.matchMedia("(max-width: 640px)").matches;if(f.classList.remove("chatspark-open"),!o.fullScreen){if(l){let e=parseInt(f.style.height,10)||80,r=("number"==typeof t?t:e)<=372&&e<=372&&!window.chatSparkOpen;f.style.transition=r?"width 200ms ease-in-out, height 200ms ease-in-out, bottom 300ms ease":"bottom 300ms ease"}if(l&&r&&!window.chatSparkOpen){f.style.width="calc(100% - 30px)",f.style.left="15px",f.style.transform="none","number"==typeof t?f.style.height=C(t):"string"==typeof t&&(f.style.height=t);return}if("number"==typeof e?f.style.width=C(e):"string"==typeof e&&(f.
89style.width=e),"number"==typeof t?f.style.height=C(t):"string"==typeof t&&(f.style.height=t),window.chatSparkOpen){if(l){if(r){let e=(window.visualViewport?.height??window.innerHeight)*.01;if(document.documentElement.style.setProperty("--vh",`${e}px`),f.style.width="calc(100% - 30px)",f.style.height="calc(var(--vh, 1vh) * 100 - 30px - env(safe-area-inset-bottom, 0px))",!window.__csVhListenerInstalled){window.__csVhListenerInstalled=!0;let e=()=>{let e=(window.visualViewport?.height??window.innerHeight)*.01;document.documentElement.style.setProperty("--vh",`${e}px`)};window.addEventListener("resize",e),window.visualViewport?.addEventListener("resize",e)}}else f.style.width="640px",f.style.height="600px"}else if(f.style.height="calc(80vh)",r){let e=(window.visualViewport?.height??window.innerHeight)*.01;if(document.documentElement.style.setProperty("--vh",`${e}px`),f.style.width="100vw",f.style.height="calc(var(--vh, 1vh) * 95)",!window.__csVhListenerInstalled){window.__csVhListenerInstalled=!0;let e=()=>{let e=(window.visualViewport?.height??window.innerHeight)*.01;document.documentElement.style.setProperty("--vh",`${e}px`)};window.addEventListener("resize",e),window.visualViewport?.addEventListener("resize",e)}}f.classList.add("chatspark-open")}}}),i.on(P.RENDERED,()=>{(function(e,t,r=!1){let n=parseInt(t,10)||20;function o(){let t=function(){let t=document.querySelectorAll("body > *"),r=0;for(let n of t){if(n===e)continue;let t=getComputedStyle(n),o=n.getBoundingClientRect(),i="fixed"===t.position||"sticky"===t.position,a=o.bottom>=window.innerHeight-80,u="none"!==t.display&&"hidden"!==t.visibility&&o.height>0;i&&a&&u&&(r=Math.max(r,window.innerHeight-o.top))}return r}(),o=t>0?t+12:n;e.style.bottom=r?`calc(${o}px + env(safe-area-inset-bottom, 0px))`:o+"px"}o();let i=new MutationObserver(o);i.observe(document.body,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["style","class"]});let a=null;"undefined"!=typeof ResizeObserver&&(a=new ResizeObserver(o)).observe(document.body),window.addEventListener("beforeunload",()=>{i.disconnect(),a&&a.disconnect()},{once:!0})})(f,o.marginBottom||"20px",l)}),f}});window.__chatSparkComponent=A,window.chatSparkInstance=window.chatSparkInstance||null,window.chatSparkInstances=window.chatSparkInstances||{};class I{constructor(e,t){this.chatbotId=e,this.triggers=t,this.firedThisNav=!1,this.timers=[],this.scrollHandler=null,this.mouseleaveHandler=null,this._boundNavChange=this._onNavChange.bind(this)}start(){this._setup(),window.addEventListener("popstate",this._boundNavChange),window.addEventListener("hashchange",this._boundNavChange),window.addEventListener("cs_navigate",this._boundNavChange)}destroy(){this._cleanup(),window.removeEventListener("popstate",this._boundNavChange),window.removeEventListener("hashchange",this._boundNavChange),window.removeEventListener("cs_navigate",this._boundNavChange)}_onNavChange(){this._cleanup(),this.firedThisNav=!1;let e=window.chatSparkInstance;if(e){let t=window.location.href,r=N(t);e.updateProps({currentUrl:t,proactiveOverlay:null,pagePrompts:r})}this._setup()}_matchesUrl(e){return!e.urlPattern||window.location.href.includes(e.urlPattern)}_hasFrequencyFired(e){let t=`cs_trigger_${this.chatbotId}_${e.id}`;if("always"===e.frequency)return!1;if("once_per_session"===e.frequency)return"1"===sessionStorage.getItem(t);if("once_per_day"===e.frequency)try{let e=localStorage.getItem(t);if(!e)return!1;return new Date(e).toDateString()===new Date().toDateString()}catch{}return!1}_markFired(e){let t=`cs_trigger_${this.chatbotId}_${e.id}`;try{"once_per_session"===e.frequency?sessionStorage.setItem(t,"1"):"once_per_day"===e.frequency&&localStorage.setItem(t,new Date().toISOString())}catch{}}_fire(e){if(this.firedThisNav||window.chatSparkOpen)return;this.firedThisNav=!0,this._markFired(e);let t=window.chatSparkInstance;t&&t.updateProps({proactiveOverlay:{message:e.message||"",conversationMessage:e.conversationMessage||null,triggerId:e.id}});try{window.gtag&&window.gtag("event","cs_proactive_trigger_fired",{trigger_type:e.triggerType,trigger_id:e.id,chatbot_id:this.chatbotId})}catch{}}_setup(){let e=this.triggers.filter(e=>this._matchesUrl(e)&&!this._hasFrequencyFired(e));for(let t of e)if("page_visit"===t.triggerType){this.timers.push(setTimeout(()=>this._fire(t),300));return}for(let t of e){if("time_on_page"===t.triggerType&&t.triggerValue){let e=1e3*parseFloat(t.triggerValue);!isNaN(e)&&e>0&&this.timers.push(setTimeout(()=>this._fire(t),e))}if("scroll_depth"===t.triggerType&&t.triggerValue){let e=parseFloat(t.triggerValue);if(!isNaN(e)&&e>0&&!this.scrollHandler){let r=t;this.scrollHandler=()=>{let t=document.documentElement.scrollHeight-window.innerHeight;!(t<=0)&&window.scrollY/t*100>=e&&(this._fire(r),window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null)},window.addEventListener("scroll",this.scrollHandler,{passive:!0})}}if("exit_intent"===t.triggerType&&!this.mouseleaveHandler){let e=t;this.mouseleaveHandler=t=>
89{t.clientY<=0&&(this._fire(e),document.removeEventListener("mouseleave",this.mouseleaveHandler),this.mouseleaveHandler=null)},document.addEventListener("mouseleave",this.mouseleaveHandler)}}}_cleanup(){this.timers.forEach(clearTimeout),this.timers=[],this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null),this.mouseleaveHandler&&(document.removeEventListener("mouseleave",this.mouseleaveHandler),this.mouseleaveHandler=null)}}window._chatSparkTriggerEngine=null;let T=null,k=[];function N(e){if(null===T||!T.length)return null;let t=T.find(t=>!1!==t.isEnabled&&e.includes(t.urlPattern));return t&&Array.isArray(t.prompts)&&t.prompts.length>0?t.prompts.map((e,r)=>({id:`pp_${t.id}_${r}`,title:e,type:"SUGGESTED_MESSAGE"})):k}window.openChatSparkBot=(e,t=!1,r="",n=!1,o="body",i="",a={marginBottom:"20px",marginRight:"20px"},u=null,s=null)=>{let c=u||("body"===o?"default":o.replace("#",""));window.chatSparkInstances?.[c]&&window.destroyChatSparkBot(c);let f=function(){try{let e="cs_ab_token",t=localStorage.getItem(e);return t||(t=Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2),localStorage.setItem(e,t)),t}catch{return""}}(),d="#helpcenterBot"===o,l="previewOnly"===e;function h(u,s){let l=A({chatbotId:e,isOpen:!!d||t,gaID:String(r),fullScreen:!!d||n,helpCenter:!!d,marginBottom:a.marginBottom,marginRight:a.marginRight,launcherStyle:u,barPosition:"bottom_center",currentUrl:window.location.href,abToken:f,openChatSpark:function(){window.chatSparkOpen=!0},closeChatSpark:function(){window.chatSparkOpen=!1},parentWindow:{location:window.location,document:{title:document.title}}});if(window.chatSparkInstance=l,window.chatSparkInstances[c]=l,d&&i&&setTimeout(()=>{l.updateProps({postMessage:i}),setTimeout(()=>l.updateProps({postMessage:null}),0)},2e3),l.render(o),u===x.CONVERSATION_BAR){let e=()=>document.querySelector('[id^="zoid-chatspark-button-"]'),t=t=>{if(t.target.closest(".cs-trigger-agent, .cs-trigger-chatbot"))return;let r=e();r&&r.contains(t.target)||l.updateProps({barCollapseSignal:Date.now()})};document.addEventListener("click",t,!0),l._csOutsideClickHandler=t}if(!window.__csUrlSyncInstalled){window.__csUrlSyncInstalled=!0;let e=window.location.href;function h(){let t=window.chatSparkInstance;if(!t)return;let r=window.location.href;e=r;let n=N(r);t.updateProps({currentUrl:r,proactiveOverlay:null,pagePrompts:n})}window.addEventListener("popstate",h),window.addEventListener("hashchange",h),window.addEventListener("cs_navigate",h),setInterval(()=>{window.location.href!==e&&h()},300)}s&&p(s,l)}function p(t,r){if(Array.isArray(t.pagePromptRules)&&t.pagePromptRules.length>0){T=t.pagePromptRules,k=Array.isArray(t.SuggestedMessage)?t.SuggestedMessage:[];let e=N(window.location.href);r.updateProps({pagePrompts:e})}if(Array.isArray(t.proactiveTriggers)&&t.proactiveTriggers.length>0){window._chatSparkTriggerEngine&&window._chatSparkTriggerEngine.destroy();let r=new I(e,t.proactiveTriggers);window._chatSparkTriggerEngine=r,r.start()}}null!==s||d||l?(h(s||x.BUBBLE,null),d||l||fetch(`https://chatspark.io/api/public/chatbot/${e}?abToken=${f}`).then(e=>e.ok?e.json():null).then(e=>{if(!e)return;let t=window.chatSparkInstances[c];t&&p(e,t)}).catch(()=>{})):fetch(`https://chatspark.io/api/public/chatbot/${e}?abToken=${f}`).then(e=>e.ok?e.json():null).then(e=>{h(e?.launcherStyle||x.BUBBLE,e)}).catch(()=>{h(x.BUBBLE,null)})},window.destroyChatSparkBot=(e="default")=>{let t=window.chatSparkInstances[e];t&&(t._csOutsideClickHandler&&document.removeEventListener("click",t._csOutsideClickHandler,!0),t.close(),delete window.chatSparkInstances[e],window.chatSparkInstance===t&&(window.chatSparkInstance=null))},function(){let e=document.currentScript||document.querySelector("script[data-chatbot-id]");if(!e)return;let t=e.dataset?.chatbotId,r=e.dataset?.launcherStyle||x.BUBBLE,n=e.dataset?.isOpen==="true",o=e.dataset?.gaId||"",i=e.dataset?.fullScreen==="true",a=e.dataset?.render||"body";t&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{window.openChatSparkBot(t,n,o,i,a,"",{marginBottom:"20px",marginRight:"20px"},null,r)}):window.openChatSparkBot(t,n,o,i,a,"",{marginBottom:"20px",marginRight:"20px"},null,r))}();let R=document.body;R?.addEventListener("click",function(e){if(e.target.matches(".cs-trigger-agent, .cs-trigger-chatbot")){window.chatSparkOpen=!0;let t=e.target.getAttribute("data-trigger"),r=e.target.getAttribute("data-instance"),n=r?window.chatSparkInstances[r]:window.chatSparkInstance;n&&(n.updateProps({toggle:!0,postMessage:t}),setTimeout(()=>n.updateProps({postMessage:null}),0))}});let D={};window.ChatSpark={open(e="default"){let t=window.chatSparkInstances[e]||window.chatSparkInstance;t&&(window.chatSparkOpen=!0,t.updateProps({toggle:!0}))},close(e="default"){let t=window.chatSparkInstances[e]||window.chatSparkInstance;t&&(window.chatSparkOpen=!1,t.updateProps({toggle:!1}))},toggle(e="default"){window.chatSparkOpen?this.close(e):this.open(e)},reset(e="default"){window.destroyChatSparkBot(e)},on(e,t){D[e]||(D[e]=[]),D[e].push(t)},off(e,t){D[e]&&(t?D[e]=D[e].filter(e=>e!==t):delete D[e])}
89,_emit(e,t){D[e]&&D[e].forEach(e=>{try{e(t)}catch(e){console.error("ChatSpark event handler error:",e)}})},trigger(e="",t="default"){if(window.chatSparkOpen)return;let r=window.chatSparkInstances[t]||window.chatSparkInstance;r&&r.updateProps({proactiveOverlay:{message:e||"",triggerId:null}})}}})();
90//# sourceMappingURL=loader.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.