Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

belter

Package Overview
Dependencies
Maintainers
3
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

belter - npm Package Compare versions

Comparing version 1.0.171 to 1.0.172

2

dist/belter.min.js

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("belter",[],n):"object"==typeof exports?exports.belter=n():t.belter=n()}("undefined"!=typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return{}.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"getUserAgent",(function(){return o})),e.d(n,"isDevice",(function(){return i})),e.d(n,"isWebView",(function(){return u})),e.d(n,"isStandAlone",(function(){return c})),e.d(n,"isFacebookWebView",(function(){return a})),e.d(n,"isFirefox",(function(){return f})),e.d(n,"isFirefoxIOS",(function(){return s})),e.d(n,"isEdgeIOS",(function(){return d})),e.d(n,"isOperaMini",(function(){return l})),e.d(n,"isAndroid",(function(){return h})),e.d(n,"isIos",(function(){return p})),e.d(n,"isGoogleSearchApp",(function(){return v})),e.d(n,"isQQBrowser",(function(){return w})),e.d(n,"isIosWebview",(function(){return m})),e.d(n,"isSFVC",(function(){return y})),e.d(n,"isSFVCorSafari",(function(){return g})),e.d(n,"isAndroidWebview",(function(){return b})),e.d(n,"isIE",(function(){return E})),e.d(n,"isIECompHeader",(function(){return S})),e.d(n,"isElectron",(function(){return _})),e.d(n,"isIEIntranet",(function(){return O})),e.d(n,"isMacOsCna",(function(){return P})),e.d(n,"supportsPopups",(function(){return j})),e.d(n,"isChrome",(function(){return x})),e.d(n,"isSafari",(function(){return C})),e.d(n,"isApplePaySupported",(function(){return k})),e.d(n,"isDocumentReady",(function(){return Tn})),e.d(n,"isDocumentInteractive",(function(){return In})),e.d(n,"urlEncode",(function(){return Wn})),e.d(n,"waitForWindowReady",(function(){return zn})),e.d(n,"waitForDocumentReady",(function(){return Rn})),e.d(n,"waitForDocumentBody",(function(){return Ln})),e.d(n,"parseQuery",(function(){return Dn})),e.d(n,"getQueryParam",(function(){return Nn})),e.d(n,"urlWillRedirectPage",(function(){return Hn})),e.d(n,"formatQuery",(function(){return Bn})),e.d(n,"extendQuery",(function(){return Fn})),e.d(n,"extendUrl",(function(){return Un})),e.d(n,"redirect",(function(){return qn})),e.d(n,"hasMetaViewPort",(function(){return Vn})),e.d(n,"isElementVisible",(function(){return Jn})),e.d(n,"getPerformance",(function(){return $n})),e.d(n,"enablePerformance",(function(){return Qn})),e.d(n,"getPageRenderTime",(function(){return Kn})),e.d(n,"htmlEncode",(function(){return Xn})),e.d(n,"isBrowser",(function(){return Gn})),e.d(n,"querySelectorAll",(function(){return Yn})),e.d(n,"onClick",(function(){return Zn})),e.d(n,"getScript",(function(){return te})),e.d(n,"isLocalStorageEnabled",(function(){return ne})),e.d(n,"getBrowserLocales",(function(){return ee})),e.d(n,"appendChild",(function(){return re})),e.d(n,"isElement",(function(){return oe})),e.d(n,"getElementSafe",(function(){return ie})),e.d(n,"getElement",(function(){return ue})),e.d(n,"elementReady",(function(){return ce})),e.d(n,"PopupOpenError",(function(){return fe})),e.d(n,"popup",(function(){return se})),e.d(n,"writeToWindow",(function(){return de})),e.d(n,"writeElementToWindow",(function(){return le})),e.d(n,"setStyle",(function(){return he})),e.d(n,"awaitFrameLoad",(function(){return pe})),e.d(n,"awaitFrameWindow",(function(){return ve})),e.d(n,"createElement",(function(){return we})),e.d(n,"iframe",(function(){return me})),e.d(n,"addEventListener",(function(){return ye})),e.d(n,"bindEvents",(function(){return ge})),e.d(n,"setVendorCSS",(function(){return Ee})),e.d(n,"animate",(function(){return Oe})),e.d(n,"makeElementVisible",(function(){return Pe})),e.d(n,"makeElementInvisible",(function(){return je})),e.d(n,"showElement",(function(){return xe})),e.d(n,"hideElement",(function(){return Ce})),e.d(n,"destroyElement",(function(){return ke})),e.d(n,"showAndAnimate",(function(){return Ae})),e.d(n,"animateAndHide",(function(){return Me})),e.d(n,"addClass",(function(){return Te})),e.d(n,"removeClass",(function(){return Ie})),e.d(n,"isElementClosed",(function(){return We})),e.d(n,"watchElementForClose",(function(){return ze})),e.d(n,"fixScripts",(function(){return Re})),e.d(n,"onResize",(function(){return Le})),e.d(n,"getResourceLoadTime",(function(){return De})),e.d(n,"isShadowElement",(function(){return Ne})),e.d(n,"getShadowRoot",(function(){return He})),e.d(n,"getShadowHost",(function(){return Be})),e.d(n,"insertShadowSlot",(function(){return Fe})),e.d(n,"preventClickFocus",(function(){return Ue})),e.d(n,"getStackTrace",(function(){return qe})),e.d(n,"getCurrentScript",(function(){return Je})),e.d(n,"getCurrentScriptUID",(function(){return Qe})),e.d(n,"experiment",(function(){return Ze})),e.d(n,"getGlobalNameSpace",(function(){return tr})),e.d(n,"getStorage",(function(){return Ke})),e.d(n,"getFunctionName",(function(){return it})),e.d(n,"setFunctionName",(function(){return ut})),e.d(n,"base64encode",(function(){return ct})),e.d(n,"base64decode",(function(){return at})),e.d(n,"uniqueID",(function(){return ft})),e.d(n,"getGlobal",(function(){return st})),e.d(n,"getObjectID",(function(){return dt})),e.d(n,"getEmptyObject",(function(){return ht})),e.d(n,"memoize",(function(){return wt})),e.d(n,"promiseIdentity",(function(){return mt})),e.d(n,"memoizePromise",(function(){return yt})),e.d(n,"promisify",(function(){return gt})),e.d(n,"inlineMemoize",(function(){return bt})),e.d(n,"noop",(function(){return Et})),e.d(n,"once",(function(){return St})),e.d(n,"hashStr",(function(){return _t})),e.d(n,"strHashStr",(function(){return Ot})),e.d(n,"match",(function(){return Pt})),e.d(n,"awaitKey",(function(){return jt})),e.d(n,"stringifyError",(function(){return xt})),e.d(n,"stringifyErrorMessage",(function(){return Ct})),e.d(n,"stringify",(function(){return kt})),e.d(n,"domainMatches",(function(){return At})),e.d(n,"patchMethod",(function(){return Mt})),e.d(n,"extend",(function(){return Tt})),e.d(n,"values",(function(){return It})),e.d(n,"memoizedValues",(function(){return Wt})),e.d(n,"perc",(function(){return zt})),e.d(n,"min",(function(){return Rt})),e.d(n,"max",(function(){return Lt})),e.d(n,"roundUp",(function(){return Dt})),e.d(n,"regexMap",(function(){return Nt})),e.d(n,"svgToBase64",(function(){return Ht})),e.d(n,"objFilter",(function(){return Bt})),e.d(n,"identity",(function(){return Ft})),e.d(n,"regexTokenize",(function(){return Ut})),e.d(n,"promiseDebounce",(function(){return qt})),e.d(n,"safeInterval",(function(){return Vt})),e.d(n,"isInteger",(function(){return Jt})),e.d(n,"isFloat",(function(){return $t})),e.d(n,"serializePrimitive",(function(){return Qt})),e.d(n,"deserializePrimitive",(function(){return Kt})),e.d(n,"dotify",(function(){return Xt})),e.d(n,"undotify",(function(){return Gt})),e.d(n,"eventEmitter",(function(){return Yt})),e.d(n,"camelToDasherize",(function(){return Zt})),e.d(n,"dasherizeToCamel",(function(){return tn})),e.d(n,"capitalizeFirstLetter",(function(){return nn})),e.d(n,"get",(function(){return en})),e.d(n,"safeTimeout",(function(){return rn})),e.d(n,"defineLazyProp",(function(){return on})),e.d(n,"arrayFrom",(function(){return un})),e.d(n,"isObject",(function(){return cn})),e.d(n,"isObjectObject",(function(){return an})),e.d(n,"isPlainObject",(function(){return fn})),e.d(n,"replaceObject",(function(){return sn})),e.d(n,"copyProp",(function(){return dn})),e.d(n,"regex",(function(){return ln})),e.d(n,"regexAll",(function(){return hn})),e.d(n,"isDefined",(function(){return pn})),e.d(n,"cycle",(function(){return vn})),e.d(n,"debounce",(function(){return wn})),e.d(n,"isRegex",(function(){return mn})),e.d(n,"weakMapMemoize",(function(){return yn})),e.d(n,"weakMapMemoizePromise",(function(){return gn})),e.d(n,"getOrSet",(function(){return bn})),e.d(n,"cleanup",(function(){return En})),e.d(n,"tryCatch",(function(){return Sn})),e.d(n,"removeFromArray",(function(){return _n})),e.d(n,"assertExists",(function(){return On})),e.d(n,"unique",(function(){return Pn})),e.d(n,"constHas",(function(){return jn})),e.d(n,"dedupeErrors",(function(){return xn})),e.d(n,"ExtendableError",(function(){return Cn})),e.d(n,"request",(function(){return er})),e.d(n,"addHeaderBuilder",(function(){return rr})),e.d(n,"TYPES",(function(){return or})),e.d(n,"memoized",(function(){return ir})),e.d(n,"promise",(function(){return ur})),e.d(n,"isPerc",(function(){return cr})),e.d(n,"isPx",(function(){return ar})),e.d(n,"toNum",(function(){return fr})),e.d(n,"toPx",(function(){return sr})),e.d(n,"toCSS",(function(){return dr})),e.d(n,"percOf",(function(){return lr})),e.d(n,"normalizeDimension",(function(){return hr})),e.d(n,"wrapPromise",(function(){return pr})),e.d(n,"KEY_CODES",(function(){return kn})),e.d(n,"ATTRIBUTES",(function(){return An})),e.d(n,"UID_HASH_LENGTH",(function(){return Mn})),e.d(n,"iPhoneScreenHeightMatrix",(function(){return r}));var r={926:{device:"iPhone 12 Pro Max",textSizeHeights:[752,748,744,738],zoomHeight:{1.15:[752,747,744,738],1.25:[753,748,744,738],1.5:[752,749,744,738],1.75:[753,747,744,739],2:[752,748,744],2.5:[753,748],3:[753,744]},maybeSafari:{2:[738],2.5:[745,738],3:[747,738]}},896:{device:"iPhone XS Max, iPhone 11 Pro Max, iPhone XR, iPhone 11",textSizeHeights:[721,717,713,707],zoomHeight:{1.15:[721,716,713,707],1.25:[721,718,713,708],1.5:[722,717,713],1.75:[721,718,712,707],2:[722,718,714,708],2.5:[720,718,713,708],3:[720,717,708]},maybeSafari:{1.5:[707],3:[714]}},844:{device:"iPhone 12, iPhone 12 Pro",textSizeHeights:[670,666,662,656],zoomHeight:{1.15:[670,666,662],1.25:[670,666,663,656],1.5:[671,666,662],1.75:[670,667,662,656],2:[670,666,662],2.5:[670,663],3:[669,666,663,657]},maybeSafari:{1.15:[656],1.5:[656],2:[656],2.5:[665,655],3:[663]}},812:{device:"iPhone X, iPhone XS, iPhone 11 Pro, iPhone 12 Mini",textSizeHeights:[641,637,633,627],zoomHeight:{1.15:[641,637,633,627],1.25:[641,638,633,628],1.5:[641,638,633,627],1.75:[641,637,634],2:[642,638,634,628],2.5:[640,638,633,628],3:[642,633]},maybeSafari:{1.75:[627],3:[636,627]}},736:{device:"iPhone 6 Plus, iPhone 6S Plus, iPhone 7 Plus, iPhone 8 Plus",textSizeHeights:[628,624,620,614],zoomHeight:{1.15:[628,624,620,614],1.25:[628,624,620,614],1.5:[629,624,620],1.75:[628,625,620,614],2:[628,624,620],2.5:[628,625,620,615],3:[627,624,615]},maybeSafari:{1.5:[614],2:[614],3:[621]}},667:{device:"iPhone 6, iPhone 6S, iPhone 7, iPhone 8, iPhone SE2",textSizeHeights:[559,555,551,545],zoomHeight:{1.15:[559,555,551,545],1.25:[559,555,551,545],1.5:[560,555,551],1.75:[558,555,551],2:[560,556,552,546],2.5:[560,555,550],3:[558,555,546]},maybeSafari:{1.5:[545],1.75:[544],2.5:[545],3:[552]}}};function o(){return window.navigator.mockUserAgent||window.navigator.userAgent}function i(t){return void 0===t&&(t=o()),!!t.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function u(){var t=o();return/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(t)||/\bwv\b/.test(t)||/Android.*Version\/(\d)\.(\d)/i.test(t)}function c(){return!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches}function a(t){return void 0===t&&(t=o()),/FBAN/.test(t)||/FBAV/.test(t)}function f(t){return void 0===t&&(t=o()),/Firefox/i.test(t)}function s(t){return void 0===t&&(t=o()),/FxiOS/i.test(t)}function d(t){return void 0===t&&(t=o()),/EdgiOS/i.test(t)}function l(t){return void 0===t&&(t=o()),/Opera Mini/i.test(t)}function h(t){return void 0===t&&(t=o()),/Android/.test(t)}function p(t){return void 0===t&&(t=o()),/iPhone|iPod|iPad/.test(t)}function v(t){return void 0===t&&(t=o()),/\bGSA\b/.test(t)}function w(t){return void 0===t&&(t=o()),/QQBrowser/.test(t)}function m(t){return void 0===t&&(t=o()),!!p(t)&&(!!v(t)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(t))}function y(t){if(void 0===t&&(t=o()),p(t)){var n=r[window.outerHeight];if(!n)return!1;var e=window.innerHeight,i=Math.round(window.screen.width/window.innerWidth*100)/100,u=Math.round(e*i);return i>1&&n.zoomHeight[i]?-1!==n.zoomHeight[i].indexOf(u):-1!==n.textSizeHeights.indexOf(u)}return!1}function g(t){if(void 0===t&&(t=o()),p(t)){var n=y(t),e=r[window.outerHeight];if(!e)return!1;var i=window.innerHeight,u=Math.round(window.screen.width/window.innerWidth*100)/100,c=Math.round(i*u),a=e.maybeSafari,f=!1;return u>1&&a[u]&&-1!==a[u].indexOf(c)&&(f=!0),n||f}return!1}function b(t){return void 0===t&&(t=o()),!!h(t)&&/Version\/[\d.]+/.test(t)&&!l(t)}function E(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function S(){var t=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),n=window.document.querySelector('meta[content="IE=edge"]');return!(!t||!n)}function _(){return!("undefined"==typeof process||!process.versions||!process.versions.electron)}function O(){if(window.document.documentMode)try{var t=window.status;return window.status="testIntranetMode","testIntranetMode"===window.status&&(window.status=t,!0)}catch(t){return!1}return!1}function P(){var t=o();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(t)}function j(t){return void 0===t&&(t=o()),!(m(t)||b(t)||l(t)||s(t)||d(t)||a(t)||w(t)||_()||P()||c())}function x(t){return void 0===t&&(t=o()),/Chrome|Chromium|CriOS/.test(t)}function C(t){return void 0===t&&(t=o()),/Safari/.test(t)&&!x(t)}function k(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(t){return!1}return!1}function A(t,n){return(A=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function M(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,A(t,n)}function T(){return(T=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function I(t){try{if(!t)return!1;if("undefined"!=typeof Promise&&t instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&t instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&t instanceof window.constructor)return!1;var n={}.toString;if(n){var e=n.call(t);if("[object Window]"===e||"[object global]"===e||"[object DOMWindow]"===e)return!1}if("function"==typeof t.then)return!0}catch(t){return!1}return!1}var W,z=[],R=[],L=0;function D(){if(!L&&W){var t=W;W=null,t.resolve()}}function N(){L+=1}function H(){L-=1,D()}var B=function(){function t(t){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],t){var e,r,o=!1,i=!1,u=!1;N();try{t((function(t){u?n.resolve(t):(o=!0,e=t)}),(function(t){u?n.reject(t):(i=!0,r=t)}))}catch(t){return H(),void this.reject(t)}H(),u=!0,o?this.resolve(e):i&&this.reject(r)}}var n=t.prototype;return n.resolve=function(t){if(this.resolved||this.rejected)return this;if(I(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},n.reject=function(t){var n=this;if(this.resolved||this.rejected)return this;if(I(t))throw new Error("Can not reject promise with another promise");if(!t){var e=t&&"function"==typeof t.toString?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+e)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){n.errorHandled||function(t,n){if(-1===z.indexOf(t)){z.push(t),setTimeout((function(){throw t}),1);for(var e=0;e<R.length;e++)R[e](t,n)}}(t,n)}),1),this.dispatch(),this},n.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},n.dispatch=function(){var n=this.resolved,e=this.rejected,r=this.handlers;if(!this.dispatching&&(n||e)){this.dispatching=!0,N();for(var o=function(t,n){return t.then((function(t){n.resolve(t)}),(function(t){n.reject(t)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,a=u.onError,f=u.promise,s=void 0;if(n)try{s=c?c(this.value):this.value}catch(t){f.reject(t);continue}else if(e){if(!a){f.reject(this.error);continue}try{s=a(this.error)}catch(t){f.reject(t);continue}}if(s instanceof t&&(s.resolved||s.rejected)){var d=s;d.resolved?f.resolve(d.value):f.reject(d.error),d.errorHandled=!0}else I(s)?s instanceof t&&(s.resolved||s.rejected)?s.resolved?f.resolve(s.value):f.reject(s.error):o(s,f):f.resolve(s)}r.length=0,this.dispatching=!1,H()}},n.then=function(n,e){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for error handler");var r=new t;return this.handlers.push({promise:r,onSuccess:n,onError:e}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(t){return this.then(void 0,t)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(e){return t.try(n).then((function(){return e}))}),(function(e){return t.try(n).then((function(){throw e}))}))},n.timeout=function(t,n){var e=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){e.resolved||e.rejected||e.reject(n||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(t){return clearTimeout(r),t}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.resolve=function(n){return n instanceof t?n:I(n)?new t((function(t,e){return n.then(t,e)})):(new t).resolve(n)},t.reject=function(n){return(new t).reject(n)},t.asyncReject=function(n){return(new t).asyncReject(n)},t.all=function(n){var e=new t,r=n.length,o=[].slice();if(!r)return e.resolve(o),e;for(var i=function(t,n,i){return n.then((function(n){o[t]=n,0==(r-=1)&&e.resolve(o)}),(function(t){i.reject(t)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof t){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!I(c)){o[u]=c,r-=1;continue}i(u,t.resolve(c),e)}return 0===r&&e.resolve(o),e},t.hash=function(n){var e={},r=[],o=function(t){if(n.hasOwnProperty(t)){var o=n[t];I(o)?r.push(o.then((function(n){e[t]=n}))):e[t]=o}};for(var i in n)o(i);return t.all(r).then((function(){return e}))},t.map=function(n,e){return t.all(n.map(e))},t.onPossiblyUnhandledException=function(t){return function(t){return R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}}}(t)},t.try=function(n,e,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;N();try{o=n.apply(e,r||[])}catch(n){return H(),t.reject(n)}return H(),t.resolve(o)},t.delay=function(n){return new t((function(t){setTimeout(t,n)}))},t.isPromise=function(n){return!!(n&&n instanceof t)||I(n)},t.flush=function(){return n=W=W||new t,D(),n;var n},t}(),F="Call was rejected by callee.\r\n";function U(t){return void 0===t&&(t=window),"about:"===t.location.protocol}function q(t){try{return!0}catch(t){}return!1}function V(t){void 0===t&&(t=window);var n=t.location;if(!n)throw new Error("Can not read window location");var e=n.protocol;if(!e)throw new Error("Can not read window protocol");if("file:"===e)return"file://";if("about:"===e){var r=function(t){if(void 0===t&&(t=window),t)try{if(t.parent&&t.parent!==t)return t.parent}catch(t){}}(t);return r&&q()?V(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return e+"//"+o}function J(t){void 0===t&&(t=window);var n=V(t);return n&&t.mockDomain&&0===t.mockDomain.indexOf("mock:")?t.mockDomain:n}function $(t){if(!function(t){try{if(t===window)return!0}catch(t){}try{var n=Object.getOwnPropertyDescriptor(t,"location");if(n&&!1===n.enumerable)return!1}catch(t){}try{if(U(t)&&q())return!0}catch(t){}try{if(V(t)===V(window))return!0}catch(t){}return!1}(t))return!1;try{if(t===window)return!0;if(U(t)&&q())return!0;if(J(window)===J(t))return!0}catch(t){}return!1}var Q=[],K=[];function X(t,n){void 0===n&&(n=!0);try{if(t===window)return!1}catch(t){return!0}try{if(!t)return!0}catch(t){return!0}try{if(t.closed)return!0}catch(t){return!t||t.message!==F}if(n&&$(t))try{if(t.mockclosed)return!0}catch(t){}try{if(!t.parent||!t.top)return!0}catch(t){}var e=function(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}(Q,t);if(-1!==e){var r=K[e];if(r&&function(t){if(!t.contentWindow)return!0;if(!t.parentNode)return!0;var n=t.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(t)){for(var e=t;e.parentNode&&e.parentNode!==e;)e=e.parentNode;if(!e.host||!n.documentElement.contains(e.host))return!0}return!1}(r))return!0}return!1}function G(t){try{if(t===window)return!0}catch(t){if(t&&t.message===F)return!0}try{if("[object Window]"==={}.toString.call(t))return!0}catch(t){if(t&&t.message===F)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.self===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.parent===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.top===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&"__unlikely_value__"===t.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in t&&"self"in t&&"location"in t)return!0}catch(t){}return!1}function Y(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}var Z,tt=function(){function t(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var t=new WeakMap,n={};return Object.freeze(n),t.set(n,"__testvalue__"),"__testvalue__"===t.get(n)}catch(t){return!1}}())try{this.weakmap=new WeakMap}catch(t){}this.keys=[],this.values=[]}var n=t.prototype;return n._cleanupClosedWindows=function(){for(var t=this.weakmap,n=this.keys,e=0;e<n.length;e++){var r=n[e];if(G(r)&&X(r)){if(t)try{t.delete(r)}catch(t){}n.splice(e,1),this.values.splice(e,1),e-=1}}},n.isSafeToReadWrite=function(t){return!G(t)},n.set=function(t,n){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.set(t,n)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var r=this.name,o=t[r];return void(o&&o[0]===t?o[1]=n:Object.defineProperty(t,r,{value:[t,n],writable:!0}))}catch(t){}this._cleanupClosedWindows();var i=this.keys,u=this.values,c=Y(i,t);-1===c?(i.push(t),u.push(n)):u[c]=n},n.get=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return n.get(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return e&&e[0]===t?e[1]:void 0}catch(t){}this._cleanupClosedWindows();var r=Y(this.keys,t);if(-1!==r)return this.values[r]},n.delete=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];e&&e[0]===t&&(e[0]=e[1]=void 0)}catch(t){}this._cleanupClosedWindows();var r=this.keys,o=Y(r,t);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return!0}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return!(!e||e[0]!==t)}catch(t){}return this._cleanupClosedWindows(),-1!==Y(this.keys,t)},n.getOrSet=function(t,n){if(this.has(t))return this.get(t);var e=n();return this.set(t,e),e},t}();function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function et(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function rt(t,n,e){return(rt=et()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&A(o,e.prototype),o}).apply(null,arguments)}function ot(t){var n="function"==typeof Map?new Map:void 0;return(ot=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return rt(t,arguments,nt(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),A(e,t)})(t)}function it(t){return t.name||t.__name__||t.displayName||"anonymous"}function ut(t,n){try{delete t.name,t.name=n}catch(t){}return t.__name__=t.displayName=n,t}function ct(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function at(t){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function ft(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return t.charAt(Math.floor(Math.random()*t.length))}))+"_"+ct((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function st(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function dt(t){if(Z=Z||new tt,null==t||"object"!=typeof t&&"function"!=typeof t)throw new Error("Invalid object");var n=Z.get(t);return n||(n=typeof t+":"+ft(),Z.set(t,n)),n}function lt(t){try{return JSON.stringify([].slice.call(t),(function(t,n){return"function"==typeof n?"memoize["+dt(n)+"]":n}))}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ht(){return{}}var pt=0,vt=0;function wt(t,n){void 0===n&&(n={});var e,r,o=n.thisNamespace,i=void 0!==o&&o,u=n.time,c=pt;pt+=1;var a=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var f;c<vt&&(e=null,r=null,c=pt,pt+=1),f=i?(r=r||new tt).getOrSet(this,ht):e=e||{};var s=lt(o),d=f[s];if(d&&u&&Date.now()-d.time<u&&(delete f[s],d=null),d)return d.value;var l=Date.now(),h=t.apply(this,arguments);return f[s]={time:l,value:h},h};return a.reset=function(){e=null,r=null},ut(a,(n.name||it(t))+"::memoized")}function mt(t){return B.resolve(t)}function yt(t){var n={};function e(){for(var e=arguments,r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var c=lt(i);return n.hasOwnProperty(c)||(n[c]=B.try((function(){return t.apply(r,e)})).finally((function(){delete n[c]}))),n[c]}return e.reset=function(){n={}},ut(e,it(t)+"::promiseMemoized")}function gt(t,n){function e(){return B.try(t,this,arguments)}return void 0===n&&(n={}),n.name&&(e.displayName=n.name+":promisified"),ut(e,it(t)+"::promisified")}function bt(t,n,e){void 0===e&&(e=[]);var r=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},o=lt(e);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,e)}function Et(){}function St(t){var n=!1;return ut((function(){if(!n)return n=!0,t.apply(this,arguments)}),it(t)+"::once")}function _t(t){for(var n=0,e=0;e<t.length;e++)n+=t[e].charCodeAt(0)*Math.pow(e%10+1,5);return Math.floor(Math.pow(Math.sqrt(n),5))}function Ot(t){for(var n="",e=0;e<t.length;e++){var r=t[e].charCodeAt(0)*e;t[e+1]&&(r+=t[e+1].charCodeAt(0)*(e-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}function Pt(t,n){var e=t.match(n);if(e)return e[1]}function jt(t,n){return new B((function(e){var r=t[n];if(r)return e(r);delete t[n],Object.defineProperty(t,n,{configurable:!0,set:function(t){(r=t)&&e(r)},get:function(){return r}})}))}function xt(t,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!t)return"<unknown error: "+{}.toString.call(t)+">";if("string"==typeof t)return t;if(t instanceof Error){var e=t&&t.stack,r=t&&t.message;if(e&&r)return-1!==e.indexOf(r)?e:r+"\n"+e;if(e)return e;if(r)return r}return t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}catch(t){return"Error while stringifying error: "+xt(t,n+1)}}function Ct(t){var n="<unknown error: "+{}.toString.call(t)+">";return t?t instanceof Error?t.message||n:"string"==typeof t.message&&t.message||n:n}function kt(t){return"string"==typeof t?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}function At(t,n){var e=(t=t.split("://")[1]).indexOf(n);return-1!==e&&t.slice(e)===n}function Mt(t,n,e){var r=t[n];t[n]=function(){var t=arguments,n=this;return e({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(n,t)}})}}function Tt(t,n){if(!n)return t;if(Object.assign)return Object.assign(t,n);for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function It(t){if(Object.values)return Object.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n}wt.clear=function(){vt=pt};var Wt=wt(It);function zt(t,n){return Math.round(t*n/100)}function Rt(){return Math.min.apply(Math,arguments)}function Lt(){return Math.max.apply(Math,arguments)}function Dt(t,n){var e=t%n;return e?t-e+n:t}function Nt(t,n,e){var r=[];return t.replace(n,(function(t){r.push(e?e.apply(null,arguments):t)})),r}function Ht(t){return"data:image/svg+xml;base64,"+ct(t)}function Bt(t,n){void 0===n&&(n=Boolean);var e={};for(var r in t)t.hasOwnProperty(r)&&n(t[r],r)&&(e[r]=t[r]);return e}function Ft(t){return t}function Ut(t,n){var e=[];return t.replace(n,(function(t){return e.push(t),""})),e}function qt(t,n){var e,r;return void 0===n&&(n=50),ut((function(){r&&clearTimeout(r);var o=e=e||new B;return r=setTimeout((function(){e=null,r=null,B.try(t).then((function(t){o.resolve(t)}),(function(t){o.reject(t)}))}),n),o}),it(t)+"::promiseDebounced")}function Vt(t,n){var e;return function r(){e=setTimeout((function(){t(),r()}),n)}(),{cancel:function(){clearTimeout(e)}}}function Jt(t){return Boolean(t.match(/^[0-9]+$/))}function $t(t){return Boolean(t.match(/^[0-9]+\.[0-9]+$/))}function Qt(t){return t.toString()}function Kt(t){return"true"===t||"false"!==t&&(Jt(t)?parseInt(t,10):$t(t)?parseFloat(t):t)}function Xt(t,n,e){for(var r in void 0===n&&(n=""),void 0===e&&(e={}),n=n?n+".":n,t)t.hasOwnProperty(r)&&null!=t[r]&&"function"!=typeof t[r]&&(t[r]&&Array.isArray(t[r])&&t[r].length&&t[r].every((function(t){return"object"!=typeof t}))?e[""+n+r+"[]"]=t[r].join(","):t[r]&&"object"==typeof t[r]?e=Xt(t[r],""+n+r,e):e[""+n+r]=Qt(t[r]));return e}function Gt(t){var n={};for(var e in t)if(t.hasOwnProperty(e)&&"string"==typeof t[e]){var r=t[e];e.match(/^.+\[\]$/)?(e=e.slice(0,-2),r=r.split(",").map(Kt)):r=Kt(r);for(var o=n,i=e.split("."),u=0;u<i.length;u++){var c=i[u],a=u+1===i.length,f=!a&&Jt(i[u+1]);if("constructor"===c||"prototype"===c||"__proto__"===c)throw new Error("Disallowed key: "+c);a?o[c]=r:o=o[c]=o[c]||(f?[]:{})}}return n}function Yt(){var t={},n={},e={on:function(t,e){var r=n[t]=n[t]||[];r.push(e);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(e),1))}}},once:function(t,n){var r=e.on(t,(function(){r.cancel(),n()}));return r},trigger:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i=n[t],u=[];if(i)for(var c=function(t){var n=i[t];u.push(B.try((function(){return n.apply(void 0,r)})))},a=0;a<i.length;a++)c(a);return B.all(u).then(Et)},triggerOnce:function(n){if(t[n])return B.resolve();t[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.trigger.apply(e,[n].concat(o))},reset:function(){n={}}};return e}function Zt(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function tn(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function nn(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function en(t,n,e){if(!n)return e;for(var r=n.split("."),o=0;o<r.length;o++){if("object"!=typeof t||null===t)return e;t=t[r[o]]}return void 0===t?e:t}function rn(t,n){var e=Vt((function(){(n-=100)<=0&&(e.cancel(),t())}),100)}function on(t,n,e){if(Array.isArray(t)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof t&&null!==t&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){delete t[n];var r=e();return t[n]=r,r},set:function(e){delete t[n],t[n]=e}})}function un(t){return[].slice.call(t)}function cn(t){return"object"==typeof t&&null!==t}function an(t){return cn(t)&&"[object Object]"==={}.toString.call(t)}function fn(t){if(!an(t))return!1;var n=t.constructor;if("function"!=typeof n)return!1;var e=n.prototype;return!!an(e)&&!!e.hasOwnProperty("isPrototypeOf")}function sn(t,n,e){if(void 0===e&&(e=""),Array.isArray(t)){for(var r=t.length,o=[],i=function(r){on(o,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(fn(i)||Array.isArray(i))&&(i=sn(i,n,o)),i}))},u=0;u<r;u++)i(u);return o}if(fn(t)){var c={},a=function(r){if(!t.hasOwnProperty(r))return"continue";on(c,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(fn(i)||Array.isArray(i))&&(i=sn(i,n,o)),i}))};for(var f in t)a(f);return c}throw new Error("Pass an object or array")}function dn(t,n,e,r){if(t.hasOwnProperty(e)){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o)}else n[e]=r}function ln(t,n,e){void 0===e&&(e=0),"string"==typeof t&&(t=new RegExp(t));var r=n.slice(e).match(t);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:e+o,end:e+o+i.length,length:i.length,replace:function(t){return i?""+i.slice(0,e+o)+t+i.slice(o+i.length):""}}}}function hn(t,n){for(var e=[],r=0;;){var o=ln(t,n,r);if(!o)break;e.push(o),r=Pt.end}return e}function pn(t){return null!=t}function vn(t){return B.try(t).then((function(){return vn(t)}))}function wn(t,n){var e;return void 0===n&&(n=100),ut((function(){var r=arguments,o=this;clearTimeout(e),e=setTimeout((function(){return t.apply(o,r)}),n)}),it(t)+"::debounced")}function mn(t){return"[object RegExp]"==={}.toString.call(t)}var yn=function(t){var n=new tt;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e)}))}},gn=function(t){var n=new tt;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e).finally((function(){n.delete(e)}))}))}};function bn(t,n,e){if(t.hasOwnProperty(n))return t[n];var r=e();return t[n]=r,r}function En(t){var n,e=[],r=!1,o={set:function(n,e){return r||(t[n]=e,o.register((function(){delete t[n]}))),e},register:function(t){r?t(n):e.push(St((function(){return t(n)})))},all:function(t){n=t;var o=[];for(r=!0;e.length;){var i=e.shift();o.push(i())}return B.all(o).then(Et)}};return o}function Sn(t){var n,e;try{n=t()}catch(t){e=t}return{result:n,error:e}}function _n(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}function On(t,n){if(null==n)throw new Error("Expected "+t+" to be present");return n}function Pn(t){for(var n={},e=0;e<t.length;e++)n[t[e]]=!0;return Object.keys(n)}var jn=function(t,n){return-1!==Wt(t).indexOf(n)};function xn(t){var n=[],e={};return function(r){if(-1===n.indexOf(r)){n.push(r);var o=xt(r);if(!e[o])return e[o]=!0,t(r)}}}var Cn=function(t){function n(n){var e;return(e=t.call(this,n)||this).name=e.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),e.constructor):e.stack=new Error(n).stack,e}return M(n,t),n}(ot(Error)),kn={ENTER:13,SPACE:32},An={UID:"data-uid"},Mn=30;function Tn(){return Boolean(document.body)&&"complete"===document.readyState}function In(){return Boolean(document.body)&&"interactive"===document.readyState}function Wn(t){return encodeURIComponent(t)}function zn(){return bt(zn,(function(){return new B((function(t){Tn()&&t(),window.addEventListener("load",(function(){return t()}))}))}))}var Rn=wt((function(){return new B((function(t){if(Tn()||In())return t();var n=setInterval((function(){if(Tn()||In())return clearInterval(n),t()}),10)}))}));function Ln(){return B.try((function(){return document.body?document.body:Rn().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function Dn(t){return bt(Dn,(function(){var n={};if(!t)return n;if(-1===t.indexOf("="))return n;for(var e=0,r=t.split("&");e<r.length;e++){var o=r[e];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[t])}function Nn(t){return Dn(window.location.search.slice(1))[t]}function Hn(t){return-1===t.indexOf("#")||0!==t.indexOf("#")&&t.split("#")[0]!==window.location.href.split("#")[0]}function Bn(t){return void 0===t&&(t={}),Object.keys(t).filter((function(n){return"string"==typeof t[n]||"boolean"==typeof t[n]})).map((function(n){var e=t[n];if("string"!=typeof e&&"boolean"!=typeof e)throw new TypeError("Invalid type for query");return Wn(n)+"="+Wn(e.toString())})).join("&")}function Fn(t,n){return void 0===n&&(n={}),n&&Object.keys(n).length?Bn(T({},Dn(t),n)):t}function Un(t,n){var e,r,o=n.query||{},i=n.hash||{},u=t.split("#");r=u[1];var c=(e=u[0]).split("?");e=c[0];var a=Fn(c[1],o),f=Fn(r,i);return a&&(e=e+"?"+a),f&&(e=e+"#"+f),e}function qn(t,n){return void 0===n&&(n=window),new B((function(e){n.location=t,Hn(t)||e()}))}function Vn(){var t=document.querySelector("meta[name=viewport]");return!(i()&&window.screen.width<660&&!t)}function Jn(t){return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function $n(){return bt($n,(function(){var t=window.performance;if(t&&t.now&&t.timing&&t.timing.connectEnd&&t.timing.navigationStart&&Math.abs(t.now()-Date.now())>1e3&&t.now()-(t.timing.connectEnd-t.timing.navigationStart)>0)return t}))}function Qn(){return Boolean($n())}function Kn(){return Rn().then((function(){var t=$n();if(t){var n=t.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}function Xn(t){return void 0===t&&(t=""),t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function Gn(){return"undefined"!=typeof window&&void 0!==window.location}function Yn(t,n){return void 0===n&&(n=window.document),[].slice.call(n.querySelectorAll(t))}function Zn(t,n){t.addEventListener("touchstart",Et),t.addEventListener("click",n),t.addEventListener("keypress",(function(t){if(t.keyCode===kn.ENTER||t.keyCode===kn.SPACE)return n(t)}))}function te(t){var n=t.host,e=void 0===n?window.location.host:n,r=t.path,o=t.reverse,i=void 0!==o&&o;return bt(te,(function(){var t=""+e+r,n=[].slice.call(document.getElementsByTagName("script"));i&&n.reverse();for(var o=0;o<n.length;o++){var u=n[o];if(u.src&&u.src.replace(/^https?:\/\//,"").split("?")[0]===t)return u}}),[r])}function ne(){return bt(ne,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var t=Math.random().toString();window.localStorage.setItem("__test__localStorage__",t);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),t===n)return!0}}catch(t){}return!1}))}function ee(){var t=window.navigator,n=t.languages?[].concat(t.languages):[];return t.language&&n.push(t.language),t.userLanguage&&n.push(t.userLanguage),n.map((function(t){if(t&&t.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=t.split(/[-_]/);return{country:n[1],lang:n[0]}}return t&&t.match(/^[a-z]{2}$/)?{lang:t}:null})).filter(Boolean)}function re(t,n){t.appendChild(n)}function oe(t){return t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}function ie(t,n){return void 0===n&&(n=document),oe(t)?t:"string"==typeof t?n.querySelector(t):void 0}function ue(t,n){void 0===n&&(n=document);var e=ie(t,n);if(e)return e;throw new Error("Can not find element: "+kt(t))}function ce(t){return new B((function(n,e){var r=kt(t),o=ie(t);if(o)return n(o);if(Tn())return e(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=ie(t))?(n(o),void clearInterval(i)):Tn()?(clearInterval(i),e(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}var ae,fe=function(t){function n(){return t.apply(this,arguments)||this}return M(n,t),n}(Cn);function se(t,n){var e=(n=n||{}).width,r=n.height,o=0,i=0;e&&(window.outerWidth?i=Math.round((window.outerWidth-e)/2)+window.screenX:window.screen.width&&(i=Math.round((window.screen.width-e)/2))),r&&(window.outerHeight?o=Math.round((window.outerHeight-r)/2)+window.screenY:window.screen.height&&(o=Math.round((window.screen.height-r)/2))),e&&r&&(n=T({top:o,left:i,width:e,height:r,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var u=n.name||"";delete n.name;var c,a,f=Object.keys(n).map((function(t){if(null!=n[t])return t+"="+kt(n[t])})).filter(Boolean).join(",");try{c=window.open(t,u,f)}catch(a){throw new fe("Can not open popup window - "+(a.stack||a.message))}if(X(c))throw new fe("Can not open popup window - blocked");return window.addEventListener("unload",(function(){return c.close()})),c}function de(t,n){try{t.document.open(),t.document.write(n),t.document.close()}catch(e){try{t.location="javascript: document.open(); document.write("+JSON.stringify(n)+"); document.close();"}catch(t){}}}function le(t,n){var e=n.tagName.toLowerCase();if("html"!==e)throw new Error("Expected element to be html, got "+e);for(var r=t.document.documentElement,o=0,i=un(r.children);o<i.length;o++)r.removeChild(i[o]);for(var u=0,c=un(n.children);u<c.length;u++)r.appendChild(c[u])}function he(t,n,e){void 0===e&&(e=window.document),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(e.createTextNode(n))}function pe(t){if((ae=ae||new tt).has(t)){var n=ae.get(t);if(n)return n}var e=new B((function(n,e){t.addEventListener("load",(function(){(function(t){if(function(){for(var t=0;t<Q.length;t++){var n=!1;try{n=Q[t].closed}catch(t){}n&&(K.splice(t,1),Q.splice(t,1))}}(),t&&t.contentWindow)try{Q.push(t.contentWindow),K.push(t)}catch(t){}})(t),n(t)})),t.addEventListener("error",(function(r){t.contentWindow?n(t):e(r)}))}));return ae.set(t,e),e}function ve(t){return pe(t).then((function(t){if(!t.contentWindow)throw new Error("Could not find window in iframe");return t.contentWindow}))}function we(t,n,e){void 0===t&&(t="div"),void 0===n&&(n={}),t=t.toLowerCase();var r=document.createElement(t);if(n.style&&Tt(r.style,n.style),n.class&&(r.className=n.class.join(" ")),n.id&&r.setAttribute("id",n.id),n.attributes)for(var o=0,i=Object.keys(n.attributes);o<i.length;o++){var u=i[o];r.setAttribute(u,n.attributes[u])}if(n.styleSheet&&he(r,n.styleSheet),e&&re(e,r),n.html)if("iframe"===t){if(!e||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");de(r.contentWindow,n.html)}else r.innerHTML=n.html;return r}function me(t,n){void 0===t&&(t={});var e=t.style||{},r=we("iframe",{attributes:T({allowTransparency:"true"},t.attributes||{}),style:T({backgroundColor:"transparent",border:"none"},e),html:t.html,class:t.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",ft()),pe(r),n&&ue(n).appendChild(r),(t.url||o)&&r.setAttribute("src",t.url||"about:blank"),r}function ye(t,n,e){return t.addEventListener(n,e),{cancel:function(){t.removeEventListener(n,e)}}}function ge(t,n,e){e=St(e);for(var r=0;r<n.length;r++)t.addEventListener(n[r],e);return{cancel:St((function(){for(var r=0;r<n.length;r++)t.removeEventListener(n[r],e)}))}}var be=["webkit","moz","ms","o"];function Ee(t,n,e){t.style[n]=e;for(var r=nn(n),o=0;o<be.length;o++)t.style[""+be[o]+r]=e}var Se=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],_e=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function Oe(t,n,e,r){return void 0===r&&(r=1e3),new B((function(o,i){var u=ue(t);if(!u)return o();var c,a,f,s,d=!1;function l(){clearTimeout(c),clearTimeout(a),f.cancel(),s.cancel()}f=ge(u,Se,(function(t){t.target===u&&t.animationName===n&&(clearTimeout(c),t.stopPropagation(),f.cancel(),d=!0,a=setTimeout((function(){l(),o()}),r))})),s=ge(u,_e,(function(t){if(t.target===u&&t.animationName===n)return l(),"string"==typeof t.animationName&&t.animationName!==n?i("Expected animation name to be "+n+", found "+t.animationName):o()})),Ee(u,"animationName",n),c=setTimeout((function(){if(!d)return l(),o()}),200),e&&e(l)}))}function Pe(t){t.style.setProperty("visibility","")}function je(t){t.style.setProperty("visibility","hidden","important")}function xe(t){t.style.setProperty("display","")}function Ce(t){t.style.setProperty("display","none","important")}function ke(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Ae(t,n,e){var r=Oe(t,n,e);return xe(t),r}function Me(t,n,e){return Oe(t,n,e).then((function(){Ce(t)}))}function Te(t,n){t.classList.add(n)}function Ie(t,n){t.classList.remove(n)}function We(t){return!(t&&t.parentNode&&t.ownerDocument&&t.ownerDocument.documentElement&&t.ownerDocument.documentElement.contains(t))}function ze(t,n){n=St(n);var e,r,o,i=!1,u=[],c=function(){i=!0;for(var t=0;t<u.length;t++)u[t].disconnect();e&&e.cancel(),o&&o.removeEventListener("unload",a),r&&ke(r)},a=function(){i||(n(),c())};if(We(t))return a(),{cancel:c};if(window.MutationObserver)for(var f=t.parentElement;f;){var s=new window.MutationObserver((function(){We(t)&&a()}));s.observe(f,{childList:!0}),u.push(s),f=f.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+ft()+"__"),r.style.display="none",ve(r).then((function(t){(o=function(t){if(!$(t))throw new Error("Expected window to be same domain");return t}(t)).addEventListener("unload",a)})),t.appendChild(r),e=Vt((function(){We(t)&&a()}),1e3),{cancel:c}}function Re(t,n){void 0===n&&(n=window.document);for(var e=0,r=Yn("script",t);e<r.length;e++){var o=r[e],i=o.parentNode;if(i){var u=n.createElement("script");u.text=o.textContent,i.replaceChild(u,o)}}}function Le(t,n,e){var r=void 0===e?{}:e,o=r.width,i=void 0===o||o,u=r.height,c=void 0===u||u,a=r.interval,f=void 0===a?100:a,s=r.win,d=void 0===s?window:s,l=t.offsetWidth,h=t.offsetHeight,p=!1;n({width:l,height:h});var v,w,m=function(){if(!p&&Jn(t)){var e=t.offsetWidth,r=t.offsetHeight;(i&&e!==l||c&&r!==h)&&n({width:e,height:r}),l=e,h=r}};return d.addEventListener("resize",m),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(m)).observe(t),w=Vt(m,10*f)):void 0!==d.MutationObserver?((v=new d.MutationObserver(m)).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),w=Vt(m,10*f)):w=Vt(m,f),{cancel:function(){p=!0,v.disconnect(),window.removeEventListener("resize",m),w.cancel()}}}function De(t){var n=$n();if(n&&"function"==typeof n.getEntries)for(var e=n.getEntries(),r=0;r<e.length;r++){var o=e[r];if(o&&o.name&&0===o.name.indexOf(t)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function Ne(t){for(;t.parentNode;)t=t.parentNode;return"[object ShadowRoot]"===t.toString()}function He(t){for(;t.parentNode;)t=t.parentNode;if(Ne(t))return t}function Be(t){var n=He(t);if(n&&n.host)return n.host}function Fe(t){var n=Be(t);if(!n)throw new Error("Element is not in shadow dom");var e="shadow-slot-"+ft(),r=document.createElement("slot");r.setAttribute("name",e),t.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",e),n.appendChild(o),Ne(n)?Fe(o):o}function Ue(t){var n=function n(e){return t.removeEventListener("focus",n),e.preventDefault(),t.blur(),!1};t.addEventListener("mousedown",(function(){t.addEventListener("focus",n),setTimeout((function(){t.removeEventListener("focus",n)}),1)}))}function qe(){try{throw new Error("_")}catch(t){return t.stack||""}}var Ve="undefined"!=typeof document?document.currentScript:null,Je=wt((function(){if(Ve)return Ve;if(Ve=function(){try{var t=qe(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),e=n&&n[1];if(!e)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===e)return i}}catch(t){}}())return Ve;throw new Error("Can not determine current script")})),$e=ft(),Qe=wt((function(){var t;try{t=Je()}catch(t){return $e}var n=t.getAttribute(An.UID);if(n&&"string"==typeof n)return n;if((n=t.getAttribute(An.UID+"-auto"))&&"string"==typeof n)return n;if(t.src){var e=Ot(JSON.stringify({src:t.src,dataset:t.dataset}));n="uid_"+e.slice(e.length-Mn)}else n=ft();return t.setAttribute(An.UID+"-auto",n),n}));function Ke(t){var n=t.name,e=t.lifetime,r=void 0===e?12e5:e;return bt(Ke,(function(){var t,e="__"+n+"_storage__",o=ft();function i(n){var r,i=ne();if(t&&(r=t),!r&&i){var u=window.localStorage.getItem(e);u&&(r=JSON.parse(u))}r||(r=st()[e]),r||(r={id:o}),r.id||(r.id=o),t=r;var c=n(r);return i?window.localStorage.setItem(e,JSON.stringify(r)):st()[e]=r,t=null,c}function u(){return i((function(t){return t.id}))}function c(t){return i((function(n){var e=n.__session__,o=Date.now();return e&&o-e.created>r&&(e=null),e||(e={guid:ft(),created:o}),n.__session__=e,t(e)}))}return{getState:i,getID:u,isStateFresh:function(){return u()===o},getSessionState:function(t){return c((function(n){return n.state=n.state||{},t(n.state)}))},getSessionID:function(){return c((function(t){return t.guid}))}}}),[{name:n,lifetime:r}])}function Xe(){return Ke({name:"belter_experiment"})}function Ge(t){return Xe().getSessionState((function(n){return n.loggedBeacons=n.loggedBeacons||[],-1===n.loggedBeacons.indexOf(t)&&(n.loggedBeacons.push(t),!0)}))}function Ye(t){return Math.floor(Math.random()*t)}function Ze(t){var n,e=t.name,r=t.sample,o=void 0===r?50:r,i=t.logTreatment,u=void 0===i?Et:i,c=t.logCheckpoint,a=void 0===c?Et:c,f=t.sticky,s=void 0===f||f?function(t){return Xe().getState((function(n){return n.throttlePercentiles=n.throttlePercentiles||{},n.throttlePercentiles[t]=n.throttlePercentiles[t]||Ye(100),n.throttlePercentiles[t]}))}(e):Ye(100),d=e+"_"+(n=s<o?"test":o>=50||o<=s&&s<2*o?"control":"throttle"),l=!1,h=!1;try{window.localStorage&&window.localStorage.getItem(e)&&(h=!0)}catch(t){}var p={isEnabled:function(){return"test"===n||h},isDisabled:function(){return"test"!==n&&!h},getTreatment:function(){return d},log:function(t,n){return void 0===n&&(n={}),l?(Ge(d+"_"+JSON.stringify(n))&&u({name:e,treatment:d,payload:n,throttle:s}),Ge(d+"_"+t+"_"+JSON.stringify(n))&&a({name:e,treatment:d,checkpoint:t,payload:n,throttle:s}),p):p},logStart:function(t){return void 0===t&&(t={}),l=!0,p.log("start",t)},logComplete:function(t){return void 0===t&&(t={}),p.log("complete",t)}};return p}function tr(t){var n=t.name,e=t.version,r=void 0===e?"latest":e,o=st(),i="__"+n+"__"+r+"_global__",u=o[i]=o[i]||{};return{get:function(t,n){return n=n||{},u[t]=u[t]||n}}}var nr=[];function er(t){var n=t.url,e=t.method,r=void 0===e?"get":e,o=t.headers,i=void 0===o?{}:o,u=t.json,c=t.data,a=t.body,f=t.win,s=void 0===f?window:f,d=t.timeout,l=void 0===d?0:d;return new B((function(t,e){if(u&&c||u&&a||c&&u)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},f=0,d=Object.keys(i);f<d.length;f++){var h=d[f];o[h.toLowerCase()]=i[h]}u?o["content-type"]=o["content-type"]||"application/json":(c||a)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var p=0;p<nr.length;p++)for(var v=(0,nr[p])(),w=0,m=Object.keys(v);w<m.length;w++){var y=m[w];o[y.toLowerCase()]=v[y]}var g=new s.XMLHttpRequest;for(var b in g.addEventListener("load",(function(){var o=function(t){void 0===t&&(t="");for(var n={},e=0,r=t.trim().split("\n");e<r.length;e++){var o=r[e].split(":"),i=o[0],u=o.slice(1);n[i.toLowerCase()]=u.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],u=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),c=this.responseText;try{c=JSON.parse(c)}catch(t){if(u)return e(new Error("Invalid json: "+this.responseText+"."))}return t({status:this.status,headers:o,body:c})}),!1),g.addEventListener("error",(function(t){e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+t.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(b)&&g.setRequestHeader(b,o[b]);u?a=JSON.stringify(u):c&&(a=Object.keys(c).map((function(t){return encodeURIComponent(t)+"="+(c?encodeURIComponent(c[t]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){e(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(a)}))}function rr(t){nr.push(t)}var or=!0;function ir(t,n,e){e.value=wt(e.value,{name:n,thisNamespace:!0})}function ur(t,n,e){e.value=gt(e.value,{name:n})}function cr(t){return"string"==typeof t&&/^[0-9]+%$/.test(t)}function ar(t){return"string"==typeof t&&/^[0-9]+px$/.test(t)}function fr(t){if("number"==typeof t)return t;var n=t.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+t);return parseInt(n[1],10)}function sr(t){return fr(t)+"px"}function dr(t){return"number"==typeof t?sr(t):cr(t)?t:sr(t)}function lr(t,n){return parseInt(t*fr(n)/100,10)}function hr(t,n){if("number"==typeof t)return t;if(cr(t))return lr(n,t);if(ar(t))return fr(t);throw new Error("Can not normalize dimension: "+t)}function pr(t,n){var e=(void 0===n?{}:n).timeout,r=void 0===e?5e3:e,o=[],i=[];return new B((function(n,e){var u=setTimeout((function(){o.length&&e(new Error("Expected "+o[0].name+" to be called in "+r+"ms")),i.length&&e(new Error("Expected "+i[0].name+" promise to complete in "+r+"ms"))}),r),c=function(t,n){void 0===n&&(n=Et);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];_n(o,e);var f=Sn((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw i.push({name:t,promise:B.asyncReject(d)}),d;return i.push({name:t,promise:B.resolve(s)}),s}},a=function(t,n){return void 0===n&&(n=Et),function(){var e;i.push({name:t,promise:B.asyncReject(new Error("Expected "+t+" to not be called"))});for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return(e=n).call.apply(e,[this].concat(o))}},f=function(t,n){void 0===n&&(n=Et);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];_n(o,e);var f=Sn((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw d;return i.push({name:t,promise:B.resolve(s).then((function(){throw new Error("Expected "+t+" to throw an error")}),Et)}),s}};i.push({name:"wrapPromise handler",promise:B.try((function(){return t({expect:c,avoid:a,expectError:f,error:a,wait:function(){return B.resolve()}})}))}),function t(){return B.try((function(){if(i.length){var n=i[0];return n.promise.finally((function(){_n(i,n)})).then(t)}})).then((function(){if(o.length)return B.delay(10).then(t)}))}().finally((function(){clearTimeout(u)})).then(n,e)}))}}])}));
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("belter",[],n):"object"==typeof exports?exports.belter=n():t.belter=n()}("undefined"!=typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return{}.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"getUserAgent",(function(){return o})),e.d(n,"isDevice",(function(){return i})),e.d(n,"isWebView",(function(){return u})),e.d(n,"isStandAlone",(function(){return c})),e.d(n,"isFacebookWebView",(function(){return a})),e.d(n,"isFirefox",(function(){return f})),e.d(n,"isFirefoxIOS",(function(){return s})),e.d(n,"isEdgeIOS",(function(){return d})),e.d(n,"isOperaMini",(function(){return l})),e.d(n,"isAndroid",(function(){return h})),e.d(n,"isIos",(function(){return p})),e.d(n,"isGoogleSearchApp",(function(){return v})),e.d(n,"isQQBrowser",(function(){return m})),e.d(n,"isIosWebview",(function(){return w})),e.d(n,"isSFVC",(function(){return y})),e.d(n,"isSFVCorSafari",(function(){return g})),e.d(n,"isAndroidWebview",(function(){return b})),e.d(n,"isIE",(function(){return E})),e.d(n,"isIECompHeader",(function(){return S})),e.d(n,"isElectron",(function(){return _})),e.d(n,"isIEIntranet",(function(){return O})),e.d(n,"isMacOsCna",(function(){return P})),e.d(n,"supportsPopups",(function(){return j})),e.d(n,"isChrome",(function(){return x})),e.d(n,"isSafari",(function(){return C})),e.d(n,"isApplePaySupported",(function(){return A})),e.d(n,"getBody",(function(){return Tn})),e.d(n,"isDocumentReady",(function(){return In})),e.d(n,"isDocumentInteractive",(function(){return Wn})),e.d(n,"urlEncode",(function(){return zn})),e.d(n,"waitForWindowReady",(function(){return Rn})),e.d(n,"waitForDocumentReady",(function(){return Ln})),e.d(n,"waitForDocumentBody",(function(){return Dn})),e.d(n,"parseQuery",(function(){return Nn})),e.d(n,"getQueryParam",(function(){return Hn})),e.d(n,"urlWillRedirectPage",(function(){return Bn})),e.d(n,"formatQuery",(function(){return Fn})),e.d(n,"extendQuery",(function(){return Un})),e.d(n,"extendUrl",(function(){return qn})),e.d(n,"redirect",(function(){return Vn})),e.d(n,"hasMetaViewPort",(function(){return Jn})),e.d(n,"isElementVisible",(function(){return $n})),e.d(n,"getPerformance",(function(){return Qn})),e.d(n,"enablePerformance",(function(){return Kn})),e.d(n,"getPageRenderTime",(function(){return Xn})),e.d(n,"htmlEncode",(function(){return Gn})),e.d(n,"isBrowser",(function(){return Yn})),e.d(n,"querySelectorAll",(function(){return Zn})),e.d(n,"onClick",(function(){return te})),e.d(n,"getScript",(function(){return ne})),e.d(n,"isLocalStorageEnabled",(function(){return ee})),e.d(n,"getBrowserLocales",(function(){return re})),e.d(n,"appendChild",(function(){return oe})),e.d(n,"isElement",(function(){return ie})),e.d(n,"getElementSafe",(function(){return ue})),e.d(n,"getElement",(function(){return ce})),e.d(n,"elementReady",(function(){return ae})),e.d(n,"PopupOpenError",(function(){return se})),e.d(n,"popup",(function(){return de})),e.d(n,"writeToWindow",(function(){return le})),e.d(n,"writeElementToWindow",(function(){return he})),e.d(n,"setStyle",(function(){return pe})),e.d(n,"awaitFrameLoad",(function(){return ve})),e.d(n,"awaitFrameWindow",(function(){return me})),e.d(n,"createElement",(function(){return we})),e.d(n,"iframe",(function(){return ye})),e.d(n,"addEventListener",(function(){return ge})),e.d(n,"bindEvents",(function(){return be})),e.d(n,"setVendorCSS",(function(){return Se})),e.d(n,"animate",(function(){return Pe})),e.d(n,"makeElementVisible",(function(){return je})),e.d(n,"makeElementInvisible",(function(){return xe})),e.d(n,"showElement",(function(){return Ce})),e.d(n,"hideElement",(function(){return Ae})),e.d(n,"destroyElement",(function(){return ke})),e.d(n,"showAndAnimate",(function(){return Me})),e.d(n,"animateAndHide",(function(){return Te})),e.d(n,"addClass",(function(){return Ie})),e.d(n,"removeClass",(function(){return We})),e.d(n,"isElementClosed",(function(){return ze})),e.d(n,"watchElementForClose",(function(){return Re})),e.d(n,"fixScripts",(function(){return Le})),e.d(n,"onResize",(function(){return De})),e.d(n,"getResourceLoadTime",(function(){return Ne})),e.d(n,"isShadowElement",(function(){return He})),e.d(n,"getShadowRoot",(function(){return Be})),e.d(n,"getShadowHost",(function(){return Fe})),e.d(n,"insertShadowSlot",(function(){return Ue})),e.d(n,"preventClickFocus",(function(){return qe})),e.d(n,"getStackTrace",(function(){return Ve})),e.d(n,"getCurrentScript",(function(){return $e})),e.d(n,"getCurrentScriptUID",(function(){return Ke})),e.d(n,"submitForm",(function(){return Xe})),e.d(n,"experiment",(function(){return nr})),e.d(n,"getGlobalNameSpace",(function(){return er})),e.d(n,"getStorage",(function(){return Ge})),e.d(n,"getFunctionName",(function(){return it})),e.d(n,"setFunctionName",(function(){return ut})),e.d(n,"base64encode",(function(){return ct})),e.d(n,"base64decode",(function(){return at})),e.d(n,"uniqueID",(function(){return ft})),e.d(n,"getGlobal",(function(){return st})),e.d(n,"getObjectID",(function(){return dt})),e.d(n,"getEmptyObject",(function(){return ht})),e.d(n,"memoize",(function(){return mt})),e.d(n,"promiseIdentity",(function(){return wt})),e.d(n,"memoizePromise",(function(){return yt})),e.d(n,"promisify",(function(){return gt})),e.d(n,"inlineMemoize",(function(){return bt})),e.d(n,"noop",(function(){return Et})),e.d(n,"once",(function(){return St})),e.d(n,"hashStr",(function(){return _t})),e.d(n,"strHashStr",(function(){return Ot})),e.d(n,"match",(function(){return Pt})),e.d(n,"awaitKey",(function(){return jt})),e.d(n,"stringifyError",(function(){return xt})),e.d(n,"stringifyErrorMessage",(function(){return Ct})),e.d(n,"stringify",(function(){return At})),e.d(n,"domainMatches",(function(){return kt})),e.d(n,"patchMethod",(function(){return Mt})),e.d(n,"extend",(function(){return Tt})),e.d(n,"values",(function(){return It})),e.d(n,"memoizedValues",(function(){return Wt})),e.d(n,"perc",(function(){return zt})),e.d(n,"min",(function(){return Rt})),e.d(n,"max",(function(){return Lt})),e.d(n,"roundUp",(function(){return Dt})),e.d(n,"regexMap",(function(){return Nt})),e.d(n,"svgToBase64",(function(){return Ht})),e.d(n,"objFilter",(function(){return Bt})),e.d(n,"identity",(function(){return Ft})),e.d(n,"regexTokenize",(function(){return Ut})),e.d(n,"promiseDebounce",(function(){return qt})),e.d(n,"safeInterval",(function(){return Vt})),e.d(n,"isInteger",(function(){return Jt})),e.d(n,"isFloat",(function(){return $t})),e.d(n,"serializePrimitive",(function(){return Qt})),e.d(n,"deserializePrimitive",(function(){return Kt})),e.d(n,"dotify",(function(){return Xt})),e.d(n,"undotify",(function(){return Gt})),e.d(n,"eventEmitter",(function(){return Yt})),e.d(n,"camelToDasherize",(function(){return Zt})),e.d(n,"dasherizeToCamel",(function(){return tn})),e.d(n,"capitalizeFirstLetter",(function(){return nn})),e.d(n,"get",(function(){return en})),e.d(n,"safeTimeout",(function(){return rn})),e.d(n,"defineLazyProp",(function(){return on})),e.d(n,"arrayFrom",(function(){return un})),e.d(n,"isObject",(function(){return cn})),e.d(n,"isObjectObject",(function(){return an})),e.d(n,"isPlainObject",(function(){return fn})),e.d(n,"replaceObject",(function(){return sn})),e.d(n,"copyProp",(function(){return dn})),e.d(n,"regex",(function(){return ln})),e.d(n,"regexAll",(function(){return hn})),e.d(n,"isDefined",(function(){return pn})),e.d(n,"cycle",(function(){return vn})),e.d(n,"debounce",(function(){return mn})),e.d(n,"isRegex",(function(){return wn})),e.d(n,"weakMapMemoize",(function(){return yn})),e.d(n,"weakMapMemoizePromise",(function(){return gn})),e.d(n,"getOrSet",(function(){return bn})),e.d(n,"cleanup",(function(){return En})),e.d(n,"tryCatch",(function(){return Sn})),e.d(n,"removeFromArray",(function(){return _n})),e.d(n,"assertExists",(function(){return On})),e.d(n,"unique",(function(){return Pn})),e.d(n,"constHas",(function(){return jn})),e.d(n,"dedupeErrors",(function(){return xn})),e.d(n,"ExtendableError",(function(){return Cn})),e.d(n,"request",(function(){return or})),e.d(n,"addHeaderBuilder",(function(){return ir})),e.d(n,"TYPES",(function(){return ur})),e.d(n,"memoized",(function(){return cr})),e.d(n,"promise",(function(){return ar})),e.d(n,"isPerc",(function(){return fr})),e.d(n,"isPx",(function(){return sr})),e.d(n,"toNum",(function(){return dr})),e.d(n,"toPx",(function(){return lr})),e.d(n,"toCSS",(function(){return hr})),e.d(n,"percOf",(function(){return pr})),e.d(n,"normalizeDimension",(function(){return vr})),e.d(n,"wrapPromise",(function(){return mr})),e.d(n,"KEY_CODES",(function(){return An})),e.d(n,"ATTRIBUTES",(function(){return kn})),e.d(n,"UID_HASH_LENGTH",(function(){return Mn})),e.d(n,"iPhoneScreenHeightMatrix",(function(){return r}));var r={926:{device:"iPhone 12 Pro Max",textSizeHeights:[752,748,744,738],zoomHeight:{1.15:[752,747,744,738],1.25:[753,748,744,738],1.5:[752,749,744,738],1.75:[753,747,744,739],2:[752,748,744],2.5:[753,748],3:[753,744]},maybeSafari:{2:[738],2.5:[745,738],3:[747,738]}},896:{device:"iPhone XS Max, iPhone 11 Pro Max, iPhone XR, iPhone 11",textSizeHeights:[721,717,713,707],zoomHeight:{1.15:[721,716,713,707],1.25:[721,718,713,708],1.5:[722,717,713],1.75:[721,718,712,707],2:[722,718,714,708],2.5:[720,718,713,708],3:[720,717,708]},maybeSafari:{1.5:[707],3:[714]}},844:{device:"iPhone 12, iPhone 12 Pro",textSizeHeights:[670,666,662,656],zoomHeight:{1.15:[670,666,662],1.25:[670,666,663,656],1.5:[671,666,662],1.75:[670,667,662,656],2:[670,666,662],2.5:[670,663],3:[669,666,663,657]},maybeSafari:{1.15:[656],1.5:[656],2:[656],2.5:[665,655],3:[663]}},812:{device:"iPhone X, iPhone XS, iPhone 11 Pro, iPhone 12 Mini",textSizeHeights:[641,637,633,627],zoomHeight:{1.15:[641,637,633,627],1.25:[641,638,633,628],1.5:[641,638,633,627],1.75:[641,637,634],2:[642,638,634,628],2.5:[640,638,633,628],3:[642,633]},maybeSafari:{1.75:[627],3:[636,627]}},736:{device:"iPhone 6 Plus, iPhone 6S Plus, iPhone 7 Plus, iPhone 8 Plus",textSizeHeights:[628,624,620,614],zoomHeight:{1.15:[628,624,620,614],1.25:[628,624,620,614],1.5:[629,624,620],1.75:[628,625,620,614],2:[628,624,620],2.5:[628,625,620,615],3:[627,624,615]},maybeSafari:{1.5:[614],2:[614],3:[621]}},667:{device:"iPhone 6, iPhone 6S, iPhone 7, iPhone 8, iPhone SE2",textSizeHeights:[559,555,551,545],zoomHeight:{1.15:[559,555,551,545],1.25:[559,555,551,545],1.5:[560,555,551],1.75:[558,555,551],2:[560,556,552,546],2.5:[560,555,550],3:[558,555,546]},maybeSafari:{1.5:[545],1.75:[544],2.5:[545],3:[552]}}};function o(){return window.navigator.mockUserAgent||window.navigator.userAgent}function i(t){return void 0===t&&(t=o()),!!t.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function u(){var t=o();return/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(t)||/\bwv\b/.test(t)||/Android.*Version\/(\d)\.(\d)/i.test(t)}function c(){return!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches}function a(t){return void 0===t&&(t=o()),/FBAN/.test(t)||/FBAV/.test(t)}function f(t){return void 0===t&&(t=o()),/Firefox/i.test(t)}function s(t){return void 0===t&&(t=o()),/FxiOS/i.test(t)}function d(t){return void 0===t&&(t=o()),/EdgiOS/i.test(t)}function l(t){return void 0===t&&(t=o()),/Opera Mini/i.test(t)}function h(t){return void 0===t&&(t=o()),/Android/.test(t)}function p(t){return void 0===t&&(t=o()),/iPhone|iPod|iPad/.test(t)}function v(t){return void 0===t&&(t=o()),/\bGSA\b/.test(t)}function m(t){return void 0===t&&(t=o()),/QQBrowser/.test(t)}function w(t){return void 0===t&&(t=o()),!!p(t)&&(!!v(t)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(t))}function y(t){if(void 0===t&&(t=o()),p(t)){var n=r[window.outerHeight];if(!n)return!1;var e=window.innerHeight,i=Math.round(window.screen.width/window.innerWidth*100)/100,u=Math.round(e*i);return i>1&&n.zoomHeight[i]?-1!==n.zoomHeight[i].indexOf(u):-1!==n.textSizeHeights.indexOf(u)}return!1}function g(t){if(void 0===t&&(t=o()),p(t)){var n=y(t),e=r[window.outerHeight];if(!e)return!1;var i=window.innerHeight,u=Math.round(window.screen.width/window.innerWidth*100)/100,c=Math.round(i*u),a=e.maybeSafari,f=!1;return u>1&&a[u]&&-1!==a[u].indexOf(c)&&(f=!0),n||f}return!1}function b(t){return void 0===t&&(t=o()),!!h(t)&&/Version\/[\d.]+/.test(t)&&!l(t)}function E(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function S(){var t=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),n=window.document.querySelector('meta[content="IE=edge"]');return!(!t||!n)}function _(){return!("undefined"==typeof process||!process.versions||!process.versions.electron)}function O(){if(window.document.documentMode)try{var t=window.status;return window.status="testIntranetMode","testIntranetMode"===window.status&&(window.status=t,!0)}catch(t){return!1}return!1}function P(){var t=o();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(t)}function j(t){return void 0===t&&(t=o()),!(w(t)||b(t)||l(t)||s(t)||d(t)||a(t)||m(t)||_()||P()||c())}function x(t){return void 0===t&&(t=o()),/Chrome|Chromium|CriOS/.test(t)}function C(t){return void 0===t&&(t=o()),/Safari/.test(t)&&!x(t)}function A(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(t){return!1}return!1}function k(t,n){return(k=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function M(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,k(t,n)}function T(){return(T=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function I(t){try{if(!t)return!1;if("undefined"!=typeof Promise&&t instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&t instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&t instanceof window.constructor)return!1;var n={}.toString;if(n){var e=n.call(t);if("[object Window]"===e||"[object global]"===e||"[object DOMWindow]"===e)return!1}if("function"==typeof t.then)return!0}catch(t){return!1}return!1}var W,z=[],R=[],L=0;function D(){if(!L&&W){var t=W;W=null,t.resolve()}}function N(){L+=1}function H(){L-=1,D()}var B=function(){function t(t){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],t){var e,r,o=!1,i=!1,u=!1;N();try{t((function(t){u?n.resolve(t):(o=!0,e=t)}),(function(t){u?n.reject(t):(i=!0,r=t)}))}catch(t){return H(),void this.reject(t)}H(),u=!0,o?this.resolve(e):i&&this.reject(r)}}var n=t.prototype;return n.resolve=function(t){if(this.resolved||this.rejected)return this;if(I(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},n.reject=function(t){var n=this;if(this.resolved||this.rejected)return this;if(I(t))throw new Error("Can not reject promise with another promise");if(!t){var e=t&&"function"==typeof t.toString?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+e)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){n.errorHandled||function(t,n){if(-1===z.indexOf(t)){z.push(t),setTimeout((function(){throw t}),1);for(var e=0;e<R.length;e++)R[e](t,n)}}(t,n)}),1),this.dispatch(),this},n.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},n.dispatch=function(){var n=this.resolved,e=this.rejected,r=this.handlers;if(!this.dispatching&&(n||e)){this.dispatching=!0,N();for(var o=function(t,n){return t.then((function(t){n.resolve(t)}),(function(t){n.reject(t)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,a=u.onError,f=u.promise,s=void 0;if(n)try{s=c?c(this.value):this.value}catch(t){f.reject(t);continue}else if(e){if(!a){f.reject(this.error);continue}try{s=a(this.error)}catch(t){f.reject(t);continue}}if(s instanceof t&&(s.resolved||s.rejected)){var d=s;d.resolved?f.resolve(d.value):f.reject(d.error),d.errorHandled=!0}else I(s)?s instanceof t&&(s.resolved||s.rejected)?s.resolved?f.resolve(s.value):f.reject(s.error):o(s,f):f.resolve(s)}r.length=0,this.dispatching=!1,H()}},n.then=function(n,e){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for error handler");var r=new t;return this.handlers.push({promise:r,onSuccess:n,onError:e}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(t){return this.then(void 0,t)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(e){return t.try(n).then((function(){return e}))}),(function(e){return t.try(n).then((function(){throw e}))}))},n.timeout=function(t,n){var e=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){e.resolved||e.rejected||e.reject(n||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(t){return clearTimeout(r),t}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.resolve=function(n){return n instanceof t?n:I(n)?new t((function(t,e){return n.then(t,e)})):(new t).resolve(n)},t.reject=function(n){return(new t).reject(n)},t.asyncReject=function(n){return(new t).asyncReject(n)},t.all=function(n){var e=new t,r=n.length,o=[].slice();if(!r)return e.resolve(o),e;for(var i=function(t,n,i){return n.then((function(n){o[t]=n,0==(r-=1)&&e.resolve(o)}),(function(t){i.reject(t)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof t){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!I(c)){o[u]=c,r-=1;continue}i(u,t.resolve(c),e)}return 0===r&&e.resolve(o),e},t.hash=function(n){var e={},r=[],o=function(t){if(n.hasOwnProperty(t)){var o=n[t];I(o)?r.push(o.then((function(n){e[t]=n}))):e[t]=o}};for(var i in n)o(i);return t.all(r).then((function(){return e}))},t.map=function(n,e){return t.all(n.map(e))},t.onPossiblyUnhandledException=function(t){return function(t){return R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}}}(t)},t.try=function(n,e,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;N();try{o=n.apply(e,r||[])}catch(n){return H(),t.reject(n)}return H(),t.resolve(o)},t.delay=function(n){return new t((function(t){setTimeout(t,n)}))},t.isPromise=function(n){return!!(n&&n instanceof t)||I(n)},t.flush=function(){return n=W=W||new t,D(),n;var n},t}(),F="Call was rejected by callee.\r\n";function U(t){return void 0===t&&(t=window),"about:"===t.location.protocol}function q(t){try{return!0}catch(t){}return!1}function V(t){void 0===t&&(t=window);var n=t.location;if(!n)throw new Error("Can not read window location");var e=n.protocol;if(!e)throw new Error("Can not read window protocol");if("file:"===e)return"file://";if("about:"===e){var r=function(t){if(void 0===t&&(t=window),t)try{if(t.parent&&t.parent!==t)return t.parent}catch(t){}}(t);return r&&q()?V(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return e+"//"+o}function J(t){void 0===t&&(t=window);var n=V(t);return n&&t.mockDomain&&0===t.mockDomain.indexOf("mock:")?t.mockDomain:n}function $(t){if(!function(t){try{if(t===window)return!0}catch(t){}try{var n=Object.getOwnPropertyDescriptor(t,"location");if(n&&!1===n.enumerable)return!1}catch(t){}try{if(U(t)&&q())return!0}catch(t){}try{if(V(t)===V(window))return!0}catch(t){}return!1}(t))return!1;try{if(t===window)return!0;if(U(t)&&q())return!0;if(J(window)===J(t))return!0}catch(t){}return!1}var Q=[],K=[];function X(t,n){void 0===n&&(n=!0);try{if(t===window)return!1}catch(t){return!0}try{if(!t)return!0}catch(t){return!0}try{if(t.closed)return!0}catch(t){return!t||t.message!==F}if(n&&$(t))try{if(t.mockclosed)return!0}catch(t){}try{if(!t.parent||!t.top)return!0}catch(t){}var e=function(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}(Q,t);if(-1!==e){var r=K[e];if(r&&function(t){if(!t.contentWindow)return!0;if(!t.parentNode)return!0;var n=t.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(t)){for(var e=t;e.parentNode&&e.parentNode!==e;)e=e.parentNode;if(!e.host||!n.documentElement.contains(e.host))return!0}return!1}(r))return!0}return!1}function G(t){try{if(t===window)return!0}catch(t){if(t&&t.message===F)return!0}try{if("[object Window]"==={}.toString.call(t))return!0}catch(t){if(t&&t.message===F)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.self===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.parent===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&t.top===t)return!0}catch(t){if(t&&t.message===F)return!0}try{if(t&&"__unlikely_value__"===t.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in t&&"self"in t&&"location"in t)return!0}catch(t){}return!1}function Y(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}var Z,tt=function(){function t(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var t=new WeakMap,n={};return Object.freeze(n),t.set(n,"__testvalue__"),"__testvalue__"===t.get(n)}catch(t){return!1}}())try{this.weakmap=new WeakMap}catch(t){}this.keys=[],this.values=[]}var n=t.prototype;return n._cleanupClosedWindows=function(){for(var t=this.weakmap,n=this.keys,e=0;e<n.length;e++){var r=n[e];if(G(r)&&X(r)){if(t)try{t.delete(r)}catch(t){}n.splice(e,1),this.values.splice(e,1),e-=1}}},n.isSafeToReadWrite=function(t){return!G(t)},n.set=function(t,n){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.set(t,n)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var r=this.name,o=t[r];return void(o&&o[0]===t?o[1]=n:Object.defineProperty(t,r,{value:[t,n],writable:!0}))}catch(t){}this._cleanupClosedWindows();var i=this.keys,u=this.values,c=Y(i,t);-1===c?(i.push(t),u.push(n)):u[c]=n},n.get=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return n.get(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return e&&e[0]===t?e[1]:void 0}catch(t){}this._cleanupClosedWindows();var r=Y(this.keys,t);if(-1!==r)return this.values[r]},n.delete=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];e&&e[0]===t&&(e[0]=e[1]=void 0)}catch(t){}this._cleanupClosedWindows();var r=this.keys,o=Y(r,t);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return!0}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return!(!e||e[0]!==t)}catch(t){}return this._cleanupClosedWindows(),-1!==Y(this.keys,t)},n.getOrSet=function(t,n){if(this.has(t))return this.get(t);var e=n();return this.set(t,e),e},t}();function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function et(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function rt(t,n,e){return(rt=et()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&k(o,e.prototype),o}).apply(null,arguments)}function ot(t){var n="function"==typeof Map?new Map:void 0;return(ot=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return rt(t,arguments,nt(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),k(e,t)})(t)}function it(t){return t.name||t.__name__||t.displayName||"anonymous"}function ut(t,n){try{delete t.name,t.name=n}catch(t){}return t.__name__=t.displayName=n,t}function ct(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function at(t){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function ft(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return t.charAt(Math.floor(Math.random()*t.length))}))+"_"+ct((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function st(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function dt(t){if(Z=Z||new tt,null==t||"object"!=typeof t&&"function"!=typeof t)throw new Error("Invalid object");var n=Z.get(t);return n||(n=typeof t+":"+ft(),Z.set(t,n)),n}function lt(t){try{return JSON.stringify([].slice.call(t),(function(t,n){return"function"==typeof n?"memoize["+dt(n)+"]":n}))}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function ht(){return{}}var pt=0,vt=0;function mt(t,n){void 0===n&&(n={});var e,r,o=n.thisNamespace,i=void 0!==o&&o,u=n.time,c=pt;pt+=1;var a=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var f;c<vt&&(e=null,r=null,c=pt,pt+=1),f=i?(r=r||new tt).getOrSet(this,ht):e=e||{};var s=lt(o),d=f[s];if(d&&u&&Date.now()-d.time<u&&(delete f[s],d=null),d)return d.value;var l=Date.now(),h=t.apply(this,arguments);return f[s]={time:l,value:h},h};return a.reset=function(){e=null,r=null},ut(a,(n.name||it(t))+"::memoized")}function wt(t){return B.resolve(t)}function yt(t){var n={};function e(){for(var e=arguments,r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var c=lt(i);return n.hasOwnProperty(c)||(n[c]=B.try((function(){return t.apply(r,e)})).finally((function(){delete n[c]}))),n[c]}return e.reset=function(){n={}},ut(e,it(t)+"::promiseMemoized")}function gt(t,n){function e(){return B.try(t,this,arguments)}return void 0===n&&(n={}),n.name&&(e.displayName=n.name+":promisified"),ut(e,it(t)+"::promisified")}function bt(t,n,e){void 0===e&&(e=[]);var r=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},o=lt(e);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,e)}function Et(){}function St(t){var n=!1;return ut((function(){if(!n)return n=!0,t.apply(this,arguments)}),it(t)+"::once")}function _t(t){for(var n=0,e=0;e<t.length;e++)n+=t[e].charCodeAt(0)*Math.pow(e%10+1,5);return Math.floor(Math.pow(Math.sqrt(n),5))}function Ot(t){for(var n="",e=0;e<t.length;e++){var r=t[e].charCodeAt(0)*e;t[e+1]&&(r+=t[e+1].charCodeAt(0)*(e-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}function Pt(t,n){var e=t.match(n);if(e)return e[1]}function jt(t,n){return new B((function(e){var r=t[n];if(r)return e(r);delete t[n],Object.defineProperty(t,n,{configurable:!0,set:function(t){(r=t)&&e(r)},get:function(){return r}})}))}function xt(t,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!t)return"<unknown error: "+{}.toString.call(t)+">";if("string"==typeof t)return t;if(t instanceof Error){var e=t&&t.stack,r=t&&t.message;if(e&&r)return-1!==e.indexOf(r)?e:r+"\n"+e;if(e)return e;if(r)return r}return t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}catch(t){return"Error while stringifying error: "+xt(t,n+1)}}function Ct(t){var n="<unknown error: "+{}.toString.call(t)+">";return t?t instanceof Error?t.message||n:"string"==typeof t.message&&t.message||n:n}function At(t){return"string"==typeof t?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}function kt(t,n){var e=(t=t.split("://")[1]).indexOf(n);return-1!==e&&t.slice(e)===n}function Mt(t,n,e){var r=t[n];t[n]=function(){var t=arguments,n=this;return e({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(n,t)}})}}function Tt(t,n){if(!n)return t;if(Object.assign)return Object.assign(t,n);for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function It(t){if(Object.values)return Object.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n}mt.clear=function(){vt=pt};var Wt=mt(It);function zt(t,n){return Math.round(t*n/100)}function Rt(){return Math.min.apply(Math,arguments)}function Lt(){return Math.max.apply(Math,arguments)}function Dt(t,n){var e=t%n;return e?t-e+n:t}function Nt(t,n,e){var r=[];return t.replace(n,(function(t){r.push(e?e.apply(null,arguments):t)})),r}function Ht(t){return"data:image/svg+xml;base64,"+ct(t)}function Bt(t,n){void 0===n&&(n=Boolean);var e={};for(var r in t)t.hasOwnProperty(r)&&n(t[r],r)&&(e[r]=t[r]);return e}function Ft(t){return t}function Ut(t,n){var e=[];return t.replace(n,(function(t){return e.push(t),""})),e}function qt(t,n){var e,r;return void 0===n&&(n=50),ut((function(){r&&clearTimeout(r);var o=e=e||new B;return r=setTimeout((function(){e=null,r=null,B.try(t).then((function(t){o.resolve(t)}),(function(t){o.reject(t)}))}),n),o}),it(t)+"::promiseDebounced")}function Vt(t,n){var e;return function r(){e=setTimeout((function(){t(),r()}),n)}(),{cancel:function(){clearTimeout(e)}}}function Jt(t){return Boolean(t.match(/^[0-9]+$/))}function $t(t){return Boolean(t.match(/^[0-9]+\.[0-9]+$/))}function Qt(t){return t.toString()}function Kt(t){return"true"===t||"false"!==t&&(Jt(t)?parseInt(t,10):$t(t)?parseFloat(t):t)}function Xt(t,n,e){for(var r in void 0===n&&(n=""),void 0===e&&(e={}),n=n?n+".":n,t)t.hasOwnProperty(r)&&null!=t[r]&&"function"!=typeof t[r]&&(t[r]&&Array.isArray(t[r])&&t[r].length&&t[r].every((function(t){return"object"!=typeof t}))?e[""+n+r+"[]"]=t[r].join(","):t[r]&&"object"==typeof t[r]?e=Xt(t[r],""+n+r,e):e[""+n+r]=Qt(t[r]));return e}function Gt(t){var n={};for(var e in t)if(t.hasOwnProperty(e)&&"string"==typeof t[e]){var r=t[e];e.match(/^.+\[\]$/)?(e=e.slice(0,-2),r=r.split(",").map(Kt)):r=Kt(r);for(var o=n,i=e.split("."),u=0;u<i.length;u++){var c=i[u],a=u+1===i.length,f=!a&&Jt(i[u+1]);if("constructor"===c||"prototype"===c||"__proto__"===c)throw new Error("Disallowed key: "+c);a?o[c]=r:o=o[c]=o[c]||(f?[]:{})}}return n}function Yt(){var t={},n={},e={on:function(t,e){var r=n[t]=n[t]||[];r.push(e);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(e),1))}}},once:function(t,n){var r=e.on(t,(function(){r.cancel(),n()}));return r},trigger:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i=n[t],u=[];if(i)for(var c=function(t){var n=i[t];u.push(B.try((function(){return n.apply(void 0,r)})))},a=0;a<i.length;a++)c(a);return B.all(u).then(Et)},triggerOnce:function(n){if(t[n])return B.resolve();t[n]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.trigger.apply(e,[n].concat(o))},reset:function(){n={}}};return e}function Zt(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function tn(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function nn(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function en(t,n,e){if(!n)return e;for(var r=n.split("."),o=0;o<r.length;o++){if("object"!=typeof t||null===t)return e;t=t[r[o]]}return void 0===t?e:t}function rn(t,n){var e=Vt((function(){(n-=100)<=0&&(e.cancel(),t())}),100)}function on(t,n,e){if(Array.isArray(t)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof t&&null!==t&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){delete t[n];var r=e();return t[n]=r,r},set:function(e){delete t[n],t[n]=e}})}function un(t){return[].slice.call(t)}function cn(t){return"object"==typeof t&&null!==t}function an(t){return cn(t)&&"[object Object]"==={}.toString.call(t)}function fn(t){if(!an(t))return!1;var n=t.constructor;if("function"!=typeof n)return!1;var e=n.prototype;return!!an(e)&&!!e.hasOwnProperty("isPrototypeOf")}function sn(t,n,e){if(void 0===e&&(e=""),Array.isArray(t)){for(var r=t.length,o=[],i=function(r){on(o,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(fn(i)||Array.isArray(i))&&(i=sn(i,n,o)),i}))},u=0;u<r;u++)i(u);return o}if(fn(t)){var c={},a=function(r){if(!t.hasOwnProperty(r))return"continue";on(c,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(fn(i)||Array.isArray(i))&&(i=sn(i,n,o)),i}))};for(var f in t)a(f);return c}throw new Error("Pass an object or array")}function dn(t,n,e,r){if(t.hasOwnProperty(e)){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o)}else n[e]=r}function ln(t,n,e){void 0===e&&(e=0),"string"==typeof t&&(t=new RegExp(t));var r=n.slice(e).match(t);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:e+o,end:e+o+i.length,length:i.length,replace:function(t){return i?""+i.slice(0,e+o)+t+i.slice(o+i.length):""}}}}function hn(t,n){for(var e=[],r=0;;){var o=ln(t,n,r);if(!o)break;e.push(o),r=Pt.end}return e}function pn(t){return null!=t}function vn(t){return B.try(t).then((function(){return vn(t)}))}function mn(t,n){var e;return void 0===n&&(n=100),ut((function(){var r=arguments,o=this;clearTimeout(e),e=setTimeout((function(){return t.apply(o,r)}),n)}),it(t)+"::debounced")}function wn(t){return"[object RegExp]"==={}.toString.call(t)}var yn=function(t){var n=new tt;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e)}))}},gn=function(t){var n=new tt;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e).finally((function(){n.delete(e)}))}))}};function bn(t,n,e){if(t.hasOwnProperty(n))return t[n];var r=e();return t[n]=r,r}function En(t){var n,e=[],r=!1,o={set:function(n,e){return r||(t[n]=e,o.register((function(){delete t[n]}))),e},register:function(t){r?t(n):e.push(St((function(){return t(n)})))},all:function(t){n=t;var o=[];for(r=!0;e.length;){var i=e.shift();o.push(i())}return B.all(o).then(Et)}};return o}function Sn(t){var n,e;try{n=t()}catch(t){e=t}return{result:n,error:e}}function _n(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}function On(t,n){if(null==n)throw new Error("Expected "+t+" to be present");return n}function Pn(t){for(var n={},e=0;e<t.length;e++)n[t[e]]=!0;return Object.keys(n)}var jn=function(t,n){return-1!==Wt(t).indexOf(n)};function xn(t){var n=[],e={};return function(r){if(-1===n.indexOf(r)){n.push(r);var o=xt(r);if(!e[o])return e[o]=!0,t(r)}}}var Cn=function(t){function n(n){var e;return(e=t.call(this,n)||this).name=e.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e),e.constructor):e.stack=new Error(n).stack,e}return M(n,t),n}(ot(Error)),An={ENTER:13,SPACE:32},kn={UID:"data-uid"},Mn=30;function Tn(){var t=document.body;if(!t)throw new Error("Body element not found");return t}function In(){return Boolean(document.body)&&"complete"===document.readyState}function Wn(){return Boolean(document.body)&&"interactive"===document.readyState}function zn(t){return encodeURIComponent(t)}function Rn(){return bt(Rn,(function(){return new B((function(t){In()&&t(),window.addEventListener("load",(function(){return t()}))}))}))}var Ln=mt((function(){return new B((function(t){if(In()||Wn())return t();var n=setInterval((function(){if(In()||Wn())return clearInterval(n),t()}),10)}))}));function Dn(){return B.try((function(){return document.body?document.body:Ln().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function Nn(t){return bt(Nn,(function(){var n={};if(!t)return n;if(-1===t.indexOf("="))return n;for(var e=0,r=t.split("&");e<r.length;e++){var o=r[e];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[t])}function Hn(t){return Nn(window.location.search.slice(1))[t]}function Bn(t){return-1===t.indexOf("#")||0!==t.indexOf("#")&&t.split("#")[0]!==window.location.href.split("#")[0]}function Fn(t){return void 0===t&&(t={}),Object.keys(t).filter((function(n){return"string"==typeof t[n]||"boolean"==typeof t[n]})).map((function(n){var e=t[n];if("string"!=typeof e&&"boolean"!=typeof e)throw new TypeError("Invalid type for query");return zn(n)+"="+zn(e.toString())})).join("&")}function Un(t,n){return void 0===n&&(n={}),n&&Object.keys(n).length?Fn(T({},Nn(t),n)):t}function qn(t,n){var e,r,o=n.query||{},i=n.hash||{},u=t.split("#");r=u[1];var c=(e=u[0]).split("?");e=c[0];var a=Un(c[1],o),f=Un(r,i);return a&&(e=e+"?"+a),f&&(e=e+"#"+f),e}function Vn(t,n){return void 0===n&&(n=window),new B((function(e){n.location=t,Bn(t)||e()}))}function Jn(){var t=document.querySelector("meta[name=viewport]");return!(i()&&window.screen.width<660&&!t)}function $n(t){return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Qn(){return bt(Qn,(function(){var t=window.performance;if(t&&t.now&&t.timing&&t.timing.connectEnd&&t.timing.navigationStart&&Math.abs(t.now()-Date.now())>1e3&&t.now()-(t.timing.connectEnd-t.timing.navigationStart)>0)return t}))}function Kn(){return Boolean(Qn())}function Xn(){return Ln().then((function(){var t=Qn();if(t){var n=t.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}function Gn(t){return void 0===t&&(t=""),t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function Yn(){return"undefined"!=typeof window&&void 0!==window.location}function Zn(t,n){return void 0===n&&(n=window.document),[].slice.call(n.querySelectorAll(t))}function te(t,n){t.addEventListener("touchstart",Et),t.addEventListener("click",n),t.addEventListener("keypress",(function(t){if(t.keyCode===An.ENTER||t.keyCode===An.SPACE)return n(t)}))}function ne(t){var n=t.host,e=void 0===n?window.location.host:n,r=t.path,o=t.reverse,i=void 0!==o&&o;return bt(ne,(function(){var t=""+e+r,n=[].slice.call(document.getElementsByTagName("script"));i&&n.reverse();for(var o=0;o<n.length;o++){var u=n[o];if(u.src&&u.src.replace(/^https?:\/\//,"").split("?")[0]===t)return u}}),[r])}function ee(){return bt(ee,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var t=Math.random().toString();window.localStorage.setItem("__test__localStorage__",t);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),t===n)return!0}}catch(t){}return!1}))}function re(){var t=window.navigator,n=t.languages?[].concat(t.languages):[];return t.language&&n.push(t.language),t.userLanguage&&n.push(t.userLanguage),n.map((function(t){if(t&&t.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=t.split(/[-_]/);return{country:n[1],lang:n[0]}}return t&&t.match(/^[a-z]{2}$/)?{lang:t}:null})).filter(Boolean)}function oe(t,n){t.appendChild(n)}function ie(t){return t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}function ue(t,n){return void 0===n&&(n=document),ie(t)?t:"string"==typeof t?n.querySelector(t):void 0}function ce(t,n){void 0===n&&(n=document);var e=ue(t,n);if(e)return e;throw new Error("Can not find element: "+At(t))}function ae(t){return new B((function(n,e){var r=At(t),o=ue(t);if(o)return n(o);if(In())return e(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=ue(t))?(n(o),void clearInterval(i)):In()?(clearInterval(i),e(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}var fe,se=function(t){function n(){return t.apply(this,arguments)||this}return M(n,t),n}(Cn);function de(t,n){var e=(n=n||{}).width,r=n.height,o=0,i=0;e&&(window.outerWidth?i=Math.round((window.outerWidth-e)/2)+window.screenX:window.screen.width&&(i=Math.round((window.screen.width-e)/2))),r&&(window.outerHeight?o=Math.round((window.outerHeight-r)/2)+window.screenY:window.screen.height&&(o=Math.round((window.screen.height-r)/2))),e&&r&&(n=T({top:o,left:i,width:e,height:r,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var u=n.name||"";delete n.name;var c,a,f=Object.keys(n).map((function(t){if(null!=n[t])return t+"="+At(n[t])})).filter(Boolean).join(",");try{c=window.open(t,u,f)}catch(a){throw new se("Can not open popup window - "+(a.stack||a.message))}if(X(c))throw new se("Can not open popup window - blocked");return window.addEventListener("unload",(function(){return c.close()})),c}function le(t,n){try{t.document.open(),t.document.write(n),t.document.close()}catch(e){try{t.location="javascript: document.open(); document.write("+JSON.stringify(n)+"); document.close();"}catch(t){}}}function he(t,n){var e=n.tagName.toLowerCase();if("html"!==e)throw new Error("Expected element to be html, got "+e);for(var r=t.document.documentElement,o=0,i=un(r.children);o<i.length;o++)r.removeChild(i[o]);for(var u=0,c=un(n.children);u<c.length;u++)r.appendChild(c[u])}function pe(t,n,e){void 0===e&&(e=window.document),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(e.createTextNode(n))}function ve(t){if((fe=fe||new tt).has(t)){var n=fe.get(t);if(n)return n}var e=new B((function(n,e){t.addEventListener("load",(function(){(function(t){if(function(){for(var t=0;t<Q.length;t++){var n=!1;try{n=Q[t].closed}catch(t){}n&&(K.splice(t,1),Q.splice(t,1))}}(),t&&t.contentWindow)try{Q.push(t.contentWindow),K.push(t)}catch(t){}})(t),n(t)})),t.addEventListener("error",(function(r){t.contentWindow?n(t):e(r)}))}));return fe.set(t,e),e}function me(t){return ve(t).then((function(t){if(!t.contentWindow)throw new Error("Could not find window in iframe");return t.contentWindow}))}function we(t,n,e){void 0===t&&(t="div"),void 0===n&&(n={}),t=t.toLowerCase();var r=document.createElement(t);if(n.style&&Tt(r.style,n.style),n.class&&(r.className=n.class.join(" ")),n.id&&r.setAttribute("id",n.id),n.attributes)for(var o=0,i=Object.keys(n.attributes);o<i.length;o++){var u=i[o];r.setAttribute(u,n.attributes[u])}if(n.styleSheet&&pe(r,n.styleSheet),e&&oe(e,r),n.html)if("iframe"===t){if(!e||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");le(r.contentWindow,n.html)}else r.innerHTML=n.html;return r}function ye(t,n){void 0===t&&(t={});var e=t.style||{},r=we("iframe",{attributes:T({allowTransparency:"true"},t.attributes||{}),style:T({backgroundColor:"transparent",border:"none"},e),html:t.html,class:t.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",ft()),ve(r),n&&ce(n).appendChild(r),(t.url||o)&&r.setAttribute("src",t.url||"about:blank"),r}function ge(t,n,e){return t.addEventListener(n,e),{cancel:function(){t.removeEventListener(n,e)}}}function be(t,n,e){e=St(e);for(var r=0;r<n.length;r++)t.addEventListener(n[r],e);return{cancel:St((function(){for(var r=0;r<n.length;r++)t.removeEventListener(n[r],e)}))}}var Ee=["webkit","moz","ms","o"];function Se(t,n,e){t.style[n]=e;for(var r=nn(n),o=0;o<Ee.length;o++)t.style[""+Ee[o]+r]=e}var _e=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],Oe=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function Pe(t,n,e,r){return void 0===r&&(r=1e3),new B((function(o,i){var u=ce(t);if(!u)return o();var c,a,f,s,d=!1;function l(){clearTimeout(c),clearTimeout(a),f.cancel(),s.cancel()}f=be(u,_e,(function(t){t.target===u&&t.animationName===n&&(clearTimeout(c),t.stopPropagation(),f.cancel(),d=!0,a=setTimeout((function(){l(),o()}),r))})),s=be(u,Oe,(function(t){if(t.target===u&&t.animationName===n)return l(),"string"==typeof t.animationName&&t.animationName!==n?i("Expected animation name to be "+n+", found "+t.animationName):o()})),Se(u,"animationName",n),c=setTimeout((function(){if(!d)return l(),o()}),200),e&&e(l)}))}function je(t){t.style.setProperty("visibility","")}function xe(t){t.style.setProperty("visibility","hidden","important")}function Ce(t){t.style.setProperty("display","")}function Ae(t){t.style.setProperty("display","none","important")}function ke(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Me(t,n,e){var r=Pe(t,n,e);return Ce(t),r}function Te(t,n,e){return Pe(t,n,e).then((function(){Ae(t)}))}function Ie(t,n){t.classList.add(n)}function We(t,n){t.classList.remove(n)}function ze(t){return!(t&&t.parentNode&&t.ownerDocument&&t.ownerDocument.documentElement&&t.ownerDocument.documentElement.contains(t))}function Re(t,n){n=St(n);var e,r,o,i=!1,u=[],c=function(){i=!0;for(var t=0;t<u.length;t++)u[t].disconnect();e&&e.cancel(),o&&o.removeEventListener("unload",a),r&&ke(r)},a=function(){i||(n(),c())};if(ze(t))return a(),{cancel:c};if(window.MutationObserver)for(var f=t.parentElement;f;){var s=new window.MutationObserver((function(){ze(t)&&a()}));s.observe(f,{childList:!0}),u.push(s),f=f.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+ft()+"__"),r.style.display="none",me(r).then((function(t){(o=function(t){if(!$(t))throw new Error("Expected window to be same domain");return t}(t)).addEventListener("unload",a)})),t.appendChild(r),e=Vt((function(){ze(t)&&a()}),1e3),{cancel:c}}function Le(t,n){void 0===n&&(n=window.document);for(var e=0,r=Zn("script",t);e<r.length;e++){var o=r[e],i=o.parentNode;if(i){var u=n.createElement("script");u.text=o.textContent,i.replaceChild(u,o)}}}function De(t,n,e){var r=void 0===e?{}:e,o=r.width,i=void 0===o||o,u=r.height,c=void 0===u||u,a=r.interval,f=void 0===a?100:a,s=r.win,d=void 0===s?window:s,l=t.offsetWidth,h=t.offsetHeight,p=!1;n({width:l,height:h});var v,m,w=function(){if(!p&&$n(t)){var e=t.offsetWidth,r=t.offsetHeight;(i&&e!==l||c&&r!==h)&&n({width:e,height:r}),l=e,h=r}};return d.addEventListener("resize",w),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(w)).observe(t),m=Vt(w,10*f)):void 0!==d.MutationObserver?((v=new d.MutationObserver(w)).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=Vt(w,10*f)):m=Vt(w,f),{cancel:function(){p=!0,v.disconnect(),window.removeEventListener("resize",w),m.cancel()}}}function Ne(t){var n=Qn();if(n&&"function"==typeof n.getEntries)for(var e=n.getEntries(),r=0;r<e.length;r++){var o=e[r];if(o&&o.name&&0===o.name.indexOf(t)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function He(t){for(;t.parentNode;)t=t.parentNode;return"[object ShadowRoot]"===t.toString()}function Be(t){for(;t.parentNode;)t=t.parentNode;if(He(t))return t}function Fe(t){var n=Be(t);if(n&&n.host)return n.host}function Ue(t){var n=Fe(t);if(!n)throw new Error("Element is not in shadow dom");var e="shadow-slot-"+ft(),r=document.createElement("slot");r.setAttribute("name",e),t.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",e),n.appendChild(o),He(n)?Ue(o):o}function qe(t){var n=function n(e){return t.removeEventListener("focus",n),e.preventDefault(),t.blur(),!1};t.addEventListener("mousedown",(function(){t.addEventListener("focus",n),setTimeout((function(){t.removeEventListener("focus",n)}),1)}))}function Ve(){try{throw new Error("_")}catch(t){return t.stack||""}}var Je="undefined"!=typeof document?document.currentScript:null,$e=mt((function(){if(Je)return Je;if(Je=function(){try{var t=Ve(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),e=n&&n[1];if(!e)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===e)return i}}catch(t){}}())return Je;throw new Error("Can not determine current script")})),Qe=ft(),Ke=mt((function(){var t;try{t=$e()}catch(t){return Qe}var n=t.getAttribute(kn.UID);if(n&&"string"==typeof n)return n;if((n=t.getAttribute(kn.UID+"-auto"))&&"string"==typeof n)return n;if(t.src){var e=Ot(JSON.stringify({src:t.src,dataset:t.dataset}));n="uid_"+e.slice(e.length-Mn)}else n=ft();return t.setAttribute(kn.UID+"-auto",n),n}));function Xe(t){var n=t.url,e=t.target,r=t.body,o=t.method,i=void 0===o?"post":o,u=document.createElement("form");if(u.setAttribute("target",e),u.setAttribute("method",i),u.setAttribute("action",n),u.style.display="none",r)for(var c=0,a=Object.keys(r);c<a.length;c++){var f=a[c],s=document.createElement("input");s.setAttribute("name",f),s.setAttribute("value",r[f]),u.appendChild(s)}Tn().appendChild(u),u.submit(),Tn().removeChild(u)}function Ge(t){var n=t.name,e=t.lifetime,r=void 0===e?12e5:e;return bt(Ge,(function(){var t,e="__"+n+"_storage__",o=ft();function i(n){var r,i=ee();if(t&&(r=t),!r&&i){var u=window.localStorage.getItem(e);u&&(r=JSON.parse(u))}r||(r=st()[e]),r||(r={id:o}),r.id||(r.id=o),t=r;var c=n(r);return i?window.localStorage.setItem(e,JSON.stringify(r)):st()[e]=r,t=null,c}function u(){return i((function(t){return t.id}))}function c(t){return i((function(n){var e=n.__session__,o=Date.now();return e&&o-e.created>r&&(e=null),e||(e={guid:ft(),created:o}),n.__session__=e,t(e)}))}return{getState:i,getID:u,isStateFresh:function(){return u()===o},getSessionState:function(t){return c((function(n){return n.state=n.state||{},t(n.state)}))},getSessionID:function(){return c((function(t){return t.guid}))}}}),[{name:n,lifetime:r}])}function Ye(){return Ge({name:"belter_experiment"})}function Ze(t){return Ye().getSessionState((function(n){return n.loggedBeacons=n.loggedBeacons||[],-1===n.loggedBeacons.indexOf(t)&&(n.loggedBeacons.push(t),!0)}))}function tr(t){return Math.floor(Math.random()*t)}function nr(t){var n,e=t.name,r=t.sample,o=void 0===r?50:r,i=t.logTreatment,u=void 0===i?Et:i,c=t.logCheckpoint,a=void 0===c?Et:c,f=t.sticky,s=void 0===f||f?function(t){return Ye().getState((function(n){return n.throttlePercentiles=n.throttlePercentiles||{},n.throttlePercentiles[t]=n.throttlePercentiles[t]||tr(100),n.throttlePercentiles[t]}))}(e):tr(100),d=e+"_"+(n=s<o?"test":o>=50||o<=s&&s<2*o?"control":"throttle"),l=!1,h=!1;try{window.localStorage&&window.localStorage.getItem(e)&&(h=!0)}catch(t){}var p={isEnabled:function(){return"test"===n||h},isDisabled:function(){return"test"!==n&&!h},getTreatment:function(){return d},log:function(t,n){return void 0===n&&(n={}),l?(Ze(d+"_"+JSON.stringify(n))&&u({name:e,treatment:d,payload:n,throttle:s}),Ze(d+"_"+t+"_"+JSON.stringify(n))&&a({name:e,treatment:d,checkpoint:t,payload:n,throttle:s}),p):p},logStart:function(t){return void 0===t&&(t={}),l=!0,p.log("start",t)},logComplete:function(t){return void 0===t&&(t={}),p.log("complete",t)}};return p}function er(t){var n=t.name,e=t.version,r=void 0===e?"latest":e,o=st(),i="__"+n+"__"+r+"_global__",u=o[i]=o[i]||{};return{get:function(t,n){return n=n||{},u[t]=u[t]||n}}}var rr=[];function or(t){var n=t.url,e=t.method,r=void 0===e?"get":e,o=t.headers,i=void 0===o?{}:o,u=t.json,c=t.data,a=t.body,f=t.win,s=void 0===f?window:f,d=t.timeout,l=void 0===d?0:d;return new B((function(t,e){if(u&&c||u&&a||c&&u)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},f=0,d=Object.keys(i);f<d.length;f++){var h=d[f];o[h.toLowerCase()]=i[h]}u?o["content-type"]=o["content-type"]||"application/json":(c||a)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var p=0;p<rr.length;p++)for(var v=(0,rr[p])(),m=0,w=Object.keys(v);m<w.length;m++){var y=w[m];o[y.toLowerCase()]=v[y]}var g=new s.XMLHttpRequest;for(var b in g.addEventListener("load",(function(){var o=function(t){void 0===t&&(t="");for(var n={},e=0,r=t.trim().split("\n");e<r.length;e++){var o=r[e].split(":"),i=o[0],u=o.slice(1);n[i.toLowerCase()]=u.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],u=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),c=this.responseText;try{c=JSON.parse(c)}catch(t){if(u)return e(new Error("Invalid json: "+this.responseText+"."))}return t({status:this.status,headers:o,body:c})}),!1),g.addEventListener("error",(function(t){e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+t.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(b)&&g.setRequestHeader(b,o[b]);u?a=JSON.stringify(u):c&&(a=Object.keys(c).map((function(t){return encodeURIComponent(t)+"="+(c?encodeURIComponent(c[t]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){e(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(a)}))}function ir(t){rr.push(t)}var ur=!0;function cr(t,n,e){e.value=mt(e.value,{name:n,thisNamespace:!0})}function ar(t,n,e){e.value=gt(e.value,{name:n})}function fr(t){return"string"==typeof t&&/^[0-9]+%$/.test(t)}function sr(t){return"string"==typeof t&&/^[0-9]+px$/.test(t)}function dr(t){if("number"==typeof t)return t;var n=t.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+t);return parseInt(n[1],10)}function lr(t){return dr(t)+"px"}function hr(t){return"number"==typeof t?lr(t):fr(t)?t:lr(t)}function pr(t,n){return parseInt(t*dr(n)/100,10)}function vr(t,n){if("number"==typeof t)return t;if(fr(t))return pr(n,t);if(sr(t))return dr(t);throw new Error("Can not normalize dimension: "+t)}function mr(t,n){var e=(void 0===n?{}:n).timeout,r=void 0===e?5e3:e,o=[],i=[];return new B((function(n,e){var u=setTimeout((function(){o.length&&e(new Error("Expected "+o[0].name+" to be called in "+r+"ms")),i.length&&e(new Error("Expected "+i[0].name+" promise to complete in "+r+"ms"))}),r),c=function(t,n){void 0===n&&(n=Et);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];_n(o,e);var f=Sn((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw i.push({name:t,promise:B.asyncReject(d)}),d;return i.push({name:t,promise:B.resolve(s)}),s}},a=function(t,n){return void 0===n&&(n=Et),function(){var e;i.push({name:t,promise:B.asyncReject(new Error("Expected "+t+" to not be called"))});for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return(e=n).call.apply(e,[this].concat(o))}},f=function(t,n){void 0===n&&(n=Et);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];_n(o,e);var f=Sn((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw d;return i.push({name:t,promise:B.resolve(s).then((function(){throw new Error("Expected "+t+" to throw an error")}),Et)}),s}};i.push({name:"wrapPromise handler",promise:B.try((function(){return t({expect:c,avoid:a,expectError:f,error:a,wait:function(){return B.resolve()}})}))}),function t(){return B.try((function(){if(i.length){var n=i[0];return n.promise.finally((function(){_n(i,n)})).then(t)}})).then((function(){if(o.length)return B.delay(10).then(t)}))}().finally((function(){clearTimeout(u)})).then(n,e)}))}}])}));
//# sourceMappingURL=belter.min.js.map
import { iPhoneScreenHeightMatrix } from './screenHeights';
export function getUserAgent() {
return window.navigator.mockUserAgent || window.navigator.userAgent; // eslint-disable-line compat/compat
return window.navigator.mockUserAgent || window.navigator.userAgent;
}

@@ -21,3 +21,3 @@ export function isDevice(userAgent) {

export function isStandAlone() {
return window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches; // eslint-disable-line compat/compat
return window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches;
}

@@ -171,6 +171,3 @@ export function isFacebookWebView(ua) {

return Boolean(window.navigator && // eslint-disable-line compat/compat
window.navigator.userAgent && // eslint-disable-line compat/compat
/Edge|MSIE|rv:11/i.test(window.navigator.userAgent) // eslint-disable-line compat/compat
);
return Boolean(window.navigator && window.navigator.userAgent && /Edge|MSIE|rv:11/i.test(window.navigator.userAgent));
}

@@ -177,0 +174,0 @@ export function isIECompHeader() {

@@ -11,6 +11,18 @@ import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";

import { KEY_CODES, ATTRIBUTES, UID_HASH_LENGTH } from './constants';
export function getBody() {
// eslint-disable-next-line compat/compat
var body = document.body;
if (!body) {
throw new Error("Body element not found");
}
return body;
}
export function isDocumentReady() {
// eslint-disable-next-line compat/compat
return Boolean(document.body) && document.readyState === 'complete';
}
export function isDocumentInteractive() {
// eslint-disable-next-line compat/compat
return Boolean(document.body) && document.readyState === 'interactive';

@@ -297,4 +309,3 @@ }

export function getBrowserLocales() {
var nav = window.navigator; // eslint-disable-line compat/compat
var nav = window.navigator;
var locales = nav.languages ? [].concat(nav.languages) : [];

@@ -655,3 +666,3 @@

});
var isIE = window.navigator.userAgent.match(/MSIE|Edge/i); // eslint-disable-line compat/compat
var isIE = window.navigator.userAgent.match(/MSIE|Edge/i);

@@ -1163,2 +1174,28 @@ if (!frame.hasAttribute('id')) {

return uid;
});
});
export function submitForm(_ref3) {
var url = _ref3.url,
target = _ref3.target,
body = _ref3.body,
_ref3$method = _ref3.method,
method = _ref3$method === void 0 ? 'post' : _ref3$method;
var form = document.createElement('form');
form.setAttribute('target', target);
form.setAttribute('method', method);
form.setAttribute('action', url);
form.style.display = 'none';
if (body) {
for (var _i24 = 0, _Object$keys4 = Object.keys(body); _i24 < _Object$keys4.length; _i24++) {
var key = _Object$keys4[_i24];
var input = document.createElement('input');
input.setAttribute('name', key);
input.setAttribute('value', body[key]);
form.appendChild(input);
}
}
getBody().appendChild(form);
form.submit();
getBody().removeChild(form);
}
{
"name": "belter",
"version": "1.0.171",
"version": "1.0.172",
"description": "Utilities.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ /* @flow */

export function getUserAgent() : string {
return window.navigator.mockUserAgent || window.navigator.userAgent; // eslint-disable-line compat/compat
return window.navigator.mockUserAgent || window.navigator.userAgent;
}

@@ -25,3 +25,3 @@

export function isStandAlone() : boolean {
return (window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches); // eslint-disable-line compat/compat
return (window.navigator.standalone === true || window.matchMedia('(display-mode: standalone)').matches);
}

@@ -137,5 +137,5 @@

return Boolean(
window.navigator && // eslint-disable-line compat/compat
window.navigator.userAgent && // eslint-disable-line compat/compat
(/Edge|MSIE|rv:11/i).test(window.navigator.userAgent) // eslint-disable-line compat/compat
window.navigator &&
window.navigator.userAgent &&
(/Edge|MSIE|rv:11/i).test(window.navigator.userAgent)
);

@@ -142,0 +142,0 @@ }

@@ -16,3 +16,15 @@ /* @flow */

export function getBody() : HTMLBodyElement {
// eslint-disable-next-line compat/compat
const body = document.body;
if (!body) {
throw new Error(`Body element not found`);
}
return body;
}
export function isDocumentReady() : boolean {
// eslint-disable-next-line compat/compat
return Boolean(document.body) && (document.readyState === 'complete');

@@ -22,2 +34,3 @@ }

export function isDocumentInteractive() : boolean {
// eslint-disable-next-line compat/compat
return Boolean(document.body) && (document.readyState === 'interactive');

@@ -319,3 +332,3 @@ }

export function getBrowserLocales() : $ReadOnlyArray<{| country? : string, lang : string |}> {
const nav = window.navigator; // eslint-disable-line compat/compat
const nav = window.navigator;

@@ -708,3 +721,3 @@ const locales = nav.languages

const isIE = window.navigator.userAgent.match(/MSIE|Edge/i); // eslint-disable-line compat/compat
const isIE = window.navigator.userAgent.match(/MSIE|Edge/i);

@@ -1242,1 +1255,29 @@ if (!frame.hasAttribute('id')) {

});
type SubmitFormOptions = {|
url : string,
target : string,
body? : {| [string] : string |},
method? : string
|};
export function submitForm({ url, target, body, method = 'post' } : SubmitFormOptions) {
const form = document.createElement('form');
form.setAttribute('target', target);
form.setAttribute('method', method);
form.setAttribute('action', url);
form.style.display = 'none';
if (body) {
for (const key of Object.keys(body)) {
const input = document.createElement('input');
input.setAttribute('name', key);
input.setAttribute('value', body[key]);
form.appendChild(input);
}
}
getBody().appendChild(form);
form.submit();
getBody().removeChild(form);
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc