(function({__FIRST_RENDER_EXPERIMENTS__,__FUNDING_ELIGIBILITY__,__MESSAGING_GLOBALS__}){ !function(e,n){for(var t in n)e[t]=n[t]}(window,function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n);var r={};t.r(r),t.d(r,"FUNDING",(function(){return Ln})),t.d(r,"getCorrelationID",(function(){return Kn})),t.d(r,"setup",(function(){return Dt}));var o={};t.r(o),t.d(o,"Promise",(function(){return S})),t.d(o,"TYPES",(function(){return Nr})),t.d(o,"ProxyWindow",(function(){return tr})),t.d(o,"setup",(function(){return Ar})),t.d(o,"destroy",(function(){return xr})),t.d(o,"serializeMessage",(function(){return br})),t.d(o,"deserializeMessage",(function(){return Fr})),t.d(o,"createProxyWindow",(function(){return _r})),t.d(o,"toProxyWindow",(function(){return Sr})),t.d(o,"on",(function(){return vr})),t.d(o,"once",(function(){return gr})),t.d(o,"send",(function(){return Er})),t.d(o,"markWindowKnown",(function(){return qt})),t.d(o,"cleanUpWindow",(function(){return Cr})),t.d(o,"bridge",(function(){}));var i={};t.r(i),t.d(i,"ThreeDomainSecure",(function(){return wi})),t.d(i,"Captcha",(function(){return mi})),t.d(i,"postRobot",(function(){return vi}));var a={};function u(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}function c(){return window.navigator.mockUserAgent||window.navigator.userAgent}function s(e){return void 0===e&&(e=c()),/Firefox/i.test(e)}function d(e){return void 0===e&&(e=c()),/Opera Mini/i.test(e)}function f(e){return void 0===e&&(e=c()),/Android/.test(e)}function l(e){return void 0===e&&(e=c()),/iPhone|iPod|iPad/.test(e)}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function h(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,p(e,n)}function y(){return(y=Object.assign||function(e){for(var n=1;n>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+Ae(e,n+1)}}function xe(e){var n="";return e?e instanceof Error?e.message||n:"string"==typeof e.message&&e.message||n:n}function Ne(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function Ce(e,n){if(!n)return e;if(Object.assign)return Object.assign(e,n);for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function Pe(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}function Re(e){return"data:image/svg+xml;base64,"+pe(e)}function Te(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function De(e){return e}function Oe(e,n){var t;return function r(){t=setTimeout((function(){e(),r()}),n)}(),{cancel:function(){clearTimeout(t)}}}function ke(){var e={},n={},t={on:function(e,t){var r=n[e]=n[e]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(e,n){var r=t.on(e,(function(){r.cancel(),n()}));return r},trigger:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?r-1:0),i=1;i1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}function nn(){return"undefined"!=typeof window&&void 0!==window.location}function tn(){return Fe(tn,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var e=Math.random().toString();window.localStorage.setItem("__test__localStorage__",e);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),e===n)return!0}}catch(e){}return!1}))}function rn(){var e=window.navigator,n=e.languages?[].concat(e.languages):[];return e.language&&n.push(e.language),e.userLanguage&&n.push(e.userLanguage),n.map((function(e){if(e&&e.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=e.split(/[-_]/);return{country:n[1],lang:n[0]}}return e&&e.match(/^[a-z]{2}$/)?{lang:e}:null})).filter(Boolean)}function on(e,n){e.appendChild(n)}function an(e,n){return void 0===n&&(n=document),de(e)?e:"string"==typeof e?n.querySelector(e):void 0}function un(e,n){void 0===n&&(n=document);var t=an(e,n);if(t)return t;throw new Error("Can not find element: "+Ne(e))}function cn(e){return new S((function(n,t){var r=Ne(e),o=an(e);if(o)return n(o);if(Ve())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=an(e))?(n(o),void clearInterval(i)):Ve()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}Ee((function(){return new S((function(e){if(Ve()||Je())return e();var n=setInterval((function(){if(Ve()||Je())return clearInterval(n),e()}),10)}))}));var sn,dn=function(e){function n(){return e.apply(this,arguments)||this}return h(n,e),n}(Ke);function fn(e){if((sn=sn||new ie).has(e)){var n=sn.get(e);if(n)return n}var t=new S((function(n,t){e.addEventListener("load",(function(){(function(e){if(function(){for(var e=0;er&&(t=null),t||(t={guid:o||he(),created:i}),n.__session__=t,e(t)}))}return{getState:a,getID:u,isStateFresh:function(){return u()===i},getSessionState:function(e){return c((function(n){return n.state=n.state||{},e(n.state)}))},getSessionID:function(){return c((function(e){return e.guid}))}}}),[{name:n,lifetime:r}])}var Tn=[];function Dn(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,u=e.data,c=e.body,s=e.win,d=void 0===s?window:s,f=e.timeout,l=void 0===f?0:f;return new S((function(e,t){if(a&&u||a&&c||u&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,f=Object.keys(i);s\n\n'+r)}(0,0,e)}})),Yn=Ee((function(){for(var e={},n=0,t=Jn().attributes;nat.indexOf(i))){var r=[n];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(e){}}}function F(){return S.try((function(){if(nn()&&"file:"!==window.location.protocol&&(l.length||p.length||h.length)){for(var e={},t=0;t0&&!e.dimensions&&(e.dimensions={});for(var n=0;n { ... }":"<"+typeof e+">"})).join(", ")+") failed\n\n")+e.stack),e}))})).then((function(e){return{result:e,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||he();e=tr.unwrap(e);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),tr.isProxyWindow(e)?(rr(i,t,a,e,n),e.awaitWindow().then((function(e){rr(i,t,a,e,n)}))):rr(i,t,a,e,n),Vt("cross_domain_function",{id:i,name:a})}function ar(e,n,t,r){var o,i=r.on,a=r.send;return function(e,n){void 0===n&&(n=$t);var t=JSON.stringify(e,(function(e){var t=this[e];if(Kt(this))return t;var r=Gt(t);if(!r)return t;var o=n[r]||Yt[r];return o?o(t,e):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(e,n,t,r,o){return Vt("cross_domain_zalgo_promise",{then:ir(e,n,(function(e,n){return t.then(e,n)}),r,{on:o.on,send:o.send})})}(e,n,t,r,{on:i,send:a})},o.function=function(t,r){return ir(e,n,t,r,{on:i,send:a})},o.object=function(e){return ee(e)||tr.isProxyWindow(e)?Vt("cross_domain_window",tr.serialize(e,{send:a})):e},o))}function ur(e,n,t,r){var o,i=r.send;return function(e,n){if(void 0===n&&(n=Qt),"undefined"!==e)return JSON.parse(e,(function(e,t){if(Kt(this))return t;var r,o;if(Kt(t)?(r=t.__type__,o=t.__val__):(r=Gt(t),o=t),!r)return o;var i=n[r]||Xt[r];return i?i(o,e):o}))}(t,((o={}).cross_domain_zalgo_promise=function(e){return function(e,n,t){return new S(t.then)}(0,0,e)},o.cross_domain_function=function(t){return function(e,n,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return tr.toProxyWindow(e,{send:a}).awaitWindow().then((function(e){var c=or(e,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:I()},u);var s=[].slice.call(u);return t.fireAndForget?a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!0}):a(e,"postrobot_method",{id:o,name:i,args:s},{domain:n,fireAndForget:!1}).then((function(e){return e.data.result}))})).catch((function(e){throw e}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=n,r.__source__=e,r.__id__=o,r.origin=n,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(e,n,t,{send:i})},o.cross_domain_window=function(e){return tr.deserialize(e,{send:i})},o))}var cr={};function sr(e,n,t,r){var o=r.on,i=r.send;return S.try((function(){var r=Wt().getOrSet(e,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||S.flush().then((function(){if(q(e))throw new Error("Window is closed");var t=ar(e,n,function(e){var n;return(n={})[Ot()]=e,n}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(cr),u=[],c=0;c1?new Tr(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return Pr(this.children,e)},e}();function kr(e){for(var n=[],t=0;t2?t-2:0),o=2;o/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Vr(e){var n="__zoid_10_4_0___"+Pn();if(!M(e))throw new Error("Can not get global for window on different domain");return e[n]||(e[n]={}),e[n]}function Jr(e,n){try{return n(Vr(e))}catch(e){}}function Yr(e){return{get:function(){var n=this;return S.try((function(){if(n.source&&n.source!==window)throw new Error("Can not call get on proxy object from a remote window");return e}))}}}function $r(e){return pe(JSON.stringify(e))}function Xr(e){var n=Vr(e);return n.references=n.references||{},n.references}function Qr(e){var n,t,r=e.data,o=e.metaData,i=e.sender,a=e.receiver,u=e.passByReference,c=void 0!==u&&u,s=e.basic,d=void 0!==s&&s,f=Sr(a.win),l=d?JSON.stringify(r):br(f,a.domain,r),p=c?(n=l,t=he(),Xr(window)[t]=n,{type:"uid",uid:t}):function(e){return{type:"raw",val:e}}(l);return{serializedData:$r({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var e,n;e=window,"uid"===(n=p).type&&delete Xr(e)[n.uid]}}}function eo(e){var n,t,r=e.sender,o=e.basic,i=void 0!==o&&o,a=function(e){return JSON.parse(function(e){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(e))}(e.data),u=a.reference,c=a.metaData;n="function"==typeof r.win?r.win({metaData:c}):r.win,t="function"==typeof r.domain?r.domain({metaData:c}):"string"==typeof r.domain?r.domain:a.sender.domain;var s=function(e,n){if("raw"===n.type)return n.val;if("uid"===n.type)return Xr(e)[n.uid];throw new Error("Unsupported ref type: "+n.type)}(n,u);return{data:i?JSON.parse(s):Fr(n,t,s),metaData:c,sender:{win:n,domain:t},reference:u}}var no={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},to=x;function ro(e){return"__zoid__"+e.name+"__"+e.serializedPayload+"__"}function oo(e){if(!e)throw new Error("No window name");var n=e.split("__"),t=n[1],r=n[2],o=n[3];if("zoid"!==t)throw new Error("Window not rendered by zoid - got "+t);if(!r)throw new Error("Expected component name");if(!o)throw new Error("Expected serialized payload ref");return{name:r,serializedInitialPayload:o}}var io=Ee((function(e){var n=eo({data:oo(e).serializedInitialPayload,sender:{win:function(e){return function(e){if("opener"===e.type)return qe("opener",D(window));if("parent"===e.type&&"number"==typeof e.distance)return qe("parent",(n=window,void 0===(t=e.distance)&&(t=1),function(e,n){void 0===n&&(n=1);for(var t=e,r=0;r0?i.trustedDomains.reduce((function(n,t){return n||$(t,e)}),!1):$(e,I(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(n[o]=D[o])}}return S.hash(n)},fe=function(){return S.try((function(){return ie?ie():R}))},le=function(e){return S.try((function(){return ae?ae(e):R=y({},R,e)}))},pe=function(){return Z?Z():S.try((function(){var e=D.window;if(e){var n=Sr(e);return N.register((function(){return e.close()})),n}return new tr({send:Er})}))},ye=function(e){return z?z(e):S.try((function(){n=e}))},we=function(){return j?j():S.hash({setState:le({visible:!0}),showElement:t?t.get().then(En):null}).then(_e)},me=function(){return W?W():S.hash({setState:le({visible:!1}),showElement:t?t.get().then(bn):null}).then(_e)},ve=function(){return"function"==typeof b?b({props:D}):b},ge=function(){return"function"==typeof v?v({props:D}):v},be=function(){return X(ve())},Fe=function(e,n){var t=n.windowName;return K?K(e,{windowName:t}):S.try((function(){if(e===to.IFRAME)return Yr(pn({attributes:y({name:t,title:m},ge().iframe)}))}))},xe=function(e){return V?V(e):S.try((function(){if(e===to.IFRAME)return Yr(pn({attributes:y({name:"__zoid_prerender_frame__"+m+"_"+he()+"__",title:"prerender__"+m},ge().iframe)}))}))},Pe=function(e,n,t){return re?re(e,n,t):S.try((function(){if(e===to.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(e){return N.register((function(){return Fn(e)})),ln(e).then((function(e){return H(e)})).then((function(e){return Sr(e)}))}))}if(e===to.POPUP)return n;throw new Error("No render context available for "+e)}))},Re=function(){return S.try((function(){if(n)return S.all([T.trigger("zoid-focus"),n.focus()]).then(_e)}))},Te=function(){var e=Vr(window);return e.windows=e.windows||{},e.windows[a]=window,N.register((function(){delete e.windows[a]})),a},De=function(e,n,t,r){if(n===I(window))return{type:"global",uid:Te()};if(e!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(D.window){var o=r.getWindow();if(!o)throw new Error("Can not construct cross-domain window reference for lazy window prop");if(G(o)!==window)throw new Error("Can not construct cross-domain window reference for window prop with different ancestor")}if(t===to.POPUP)return{type:"opener"};if(t===to.IFRAME)return{type:"parent",distance:J(window)};throw new Error("Can not construct window reference for child")},Ie=function(e,t){return S.try((function(){var i;o=e,r=t,null==(i=n)||i.isPopup().then((function(e){var r;""!==(null==t?void 0:t.name)&&e&&(null==(r=n)||r.setName(null==t?void 0:t.name))})).finally((function(){ce(),N.register((function(){return t.close.fireAndForget().catch(_e)}))}))}))},Me=function(e){var n=e.width,t=e.height;return S.try((function(){T.trigger("zoid-resize",{width:n,height:t})}))},Le=function(e){return S.try((function(){return T.trigger("zoid-destroy")})).catch(_e).then((function(){return N.all(e)})).then((function(){var n=e||new Error(no.COMPONENT_DESTROYED);i&&_n(i)||Object.values(no).includes(n.message)?A.resolve():A.asyncReject(n)}))},je=Ee((function(e){return S.try((function(){if(B){if(q(B.__source__))return;return B()}return S.try((function(){return T.trigger("zoid-close")})).then((function(){return Le(e||new Error(no.COMPONENT_CLOSED))}))}))})),We=function(e,n){var t=n.proxyWin,r=n.proxyFrame,o=n.windowName;return ne?ne(e,{proxyWin:t,proxyFrame:r,windowName:o}):S.try((function(){if(e===to.IFRAME){if(!r)throw new Error("Expected proxy frame to be passed");return r.get().then((function(e){return ln(e).then((function(n){return N.register((function(){return Fn(e)})),N.register((function(){return Cr(n)})),n}))}))}if(e===to.POPUP){var n=ue(),t=n.width,i=void 0===t?"300px":t,a=n.height,u=void 0===a?"150px":a;i=Hn(i,window.outerWidth),u=Hn(u,window.outerWidth);var c=function(e,n){var t=(n=n||{}).closeOnUnload,r=void 0===t?1:t,o=n.name,i=void 0===o?"":o,a=n.width,u=n.height,c=0,s=0;a&&(window.outerWidth?s=Math.round((window.outerWidth-a)/2)+window.screenX:window.screen.width&&(s=Math.round((window.screen.width-a)/2))),u&&(window.outerHeight?c=Math.round((window.outerHeight-u)/2)+window.screenY:window.screen.height&&(c=Math.round((window.screen.height-u)/2))),delete n.closeOnUnload,delete n.name,a&&u&&(n=y({top:c,left:s,width:a,height:u,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var d,f,l=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+Ne(n[e])})).filter(Boolean).join(",");try{d=window.open("",i,l)}catch(f){throw new dn("Can not open popup window - "+(f.stack||f.message))}if(q(d))throw new dn("Can not open popup window - blocked");return r&&(window.addEventListener("pagehide",(function(){return d.close()})),window.addEventListener("unload",(function(){return d.close()})),window.addEventListener("beforeunload",(function(){return d.close()}))),d}(0,y({name:o,width:i,height:u},ge().popup));return N.register((function(){return te(c)})),N.register((function(){return Cr(c)})),c}throw new Error("No render context available for "+e)})).then((function(e){return t.setWindow(e,{send:Er}),t.setName(o).then((function(){return t}))}))},Ue=function(){return S.try((function(){var e=hn(window,"unload",Se((function(){Le(new Error(no.NAVIGATED_AWAY))}))),n=Q(f,Le,3e3);if(N.register(n.cancel),N.register(e.cancel),oe)return oe()}))},Ze=function(e){var n=!1;return e.isClosed().then((function(t){return t?(n=!0,je(new Error(no.WINDOW_CLOSED))):S.delay(200).then((function(){return e.isClosed()})).then((function(e){if(e)return n=!0,je(new Error(no.WINDOW_CLOSED))}))})).then((function(){return n}))},qe=function(e){return k?k(e):S.try((function(){if(-1===x.indexOf(e))return x.push(e),A.asyncReject(e),T.trigger("zoid-error",e)}))},Ke=new S,Ge=function(e){return S.try((function(){Ke.resolve(e)}))};Ie.onError=qe;var Ve=function(e,n){return e({uid:a,container:n.container,context:n.context,doc:n.doc,frame:n.frame,prerenderFrame:n.prerenderFrame,focus:Re,close:je,state:C,props:D,tag:w,dimensions:ue(),event:T})},Je=function(e,n){var t=n.context;return ee?ee(e,{context:t}):S.try((function(){if(h){T.trigger("zoid-prerender");var n=e.getWindow();if(n&&M(n)&&function(e){try{if(!e.location.href)return!0;if("about:blank"===e.location.href)return!0}catch(e){}return!1}(n)){var r=(n=H(n)).document,o=Ve(h,{context:t,doc:r});if(o){if(o.ownerDocument!==r)throw new Error("Expected prerender template to have been created with document from child window");!function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=He(r.children);o",inheritAttrs:!1,mounted:function(){var e,n=this.$el;this.parent=t(y({},(e=this.$attrs,Object.keys(e).reduce((function(n,t){var r=e[t];return"style-object"===t||"styleObject"===t?(n.style=r,n.styleObject=r):t.includes("-")?n[Ie(t)]=r:n[t]=r,n}),{})))),this.parent.render(n,to.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(y({},this.$attrs)).catch(_e)},deep:!0}}}}},Eo={register:function(e,n,t,r){return r.module(e,[]).directive(Ie(e),(function(){for(var e={},r=0,o=Object.keys(n);r",inputs:["props"]})];var d=function(){};return d.annotations=void 0,d.annotations=[new i({declarations:[s],exports:[s]})],d}};function Fo(e){var n=e.uid,t=e.frame,r=e.prerenderFrame,o=e.doc,i=e.props,a=e.event,u=e.dimensions,c=u.width,s=u.height;if(t&&r){var d=o.createElement("div");d.setAttribute("id",n);var f=o.createElement("style");return i.cspNonce&&f.setAttribute("nonce",i.cspNonce),f.appendChild(o.createTextNode("\n #"+n+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+n+" > iframe {\n display: inline-block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+n+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),d.appendChild(t),d.appendChild(r),d.appendChild(f),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("zoid-rendered",(function(){r.classList.remove("zoid-visible"),r.classList.add("zoid-invisible"),t.classList.remove("zoid-invisible"),t.classList.add("zoid-visible"),setTimeout((function(){Fn(r)}),1)})),a.on("zoid-resize",(function(e){var n=e.width,t=e.height;"number"==typeof n&&(d.style.width=Mn(n)),"number"==typeof t&&(d.style.height=Mn(t))})),d}}function _o(e){var n=e.doc,t=e.props,r=n.createElement("html"),o=n.createElement("body"),i=n.createElement("style"),a=n.createElement("div");return a.classList.add("spinner"),t.cspNonce&&i.setAttribute("nonce",t.cspNonce),r.appendChild(o),o.appendChild(a),o.appendChild(i),i.appendChild(n.createTextNode("\n html, body {\n width: 100%;\n height: 100%;\n }\n\n .spinner {\n position: fixed;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n }\n\n @keyframes rotation {\n from {\n transform: translateX(-50%) translateY(-50%) rotate(0deg);\n }\n to {\n transform: translateX(-50%) translateY(-50%) rotate(359deg);\n }\n }\n ")),r}var So=ze(),Ao=ze();function xo(e){var n,t,r=function(e){var n=e.tag,t=e.url,r=e.domain,o=e.bridgeUrl,i=e.props,a=void 0===i?{}:i,u=e.getExtensions,c=void 0===u?function(){return{}}:u,s=e.dimensions,d=void 0===s?{}:s,f=e.autoResize,l=void 0===f?{}:f,p=e.allowedParentDomains,h=void 0===p?"*":p,w=e.attributes,m=void 0===w?{}:w,v=e.defaultContext,g=void 0===v?to.IFRAME:v,E=e.containerTemplate,b=void 0===E?Fo:E,F=e.prerenderTemplate,_=void 0===F?_o:F,S=e.validate,A=e.eligible,x=void 0===A?function(){return{eligible:!0}}:A,N=e.logger,C=void 0===N?{info:_e}:N,P=e.exports,R=void 0===P?_e:P,T=e.method,D=e.children,O=void 0===D?function(){return{}}:D,k=n.replace(/-/g,"_"),I=y({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(e){var n=e.value;if(!ee(n)&&!tr.isProxyWindow(n))throw new Error("Expected Window or ProxyWindow");if(ee(n)){if(q(n))throw new Error("Window is closed");if(!M(n))throw new Error("Window is not same domain")}},decorate:function(e){return Sr(e.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:lo,decorate:po},onRendered:{type:"function",required:!1,sendToChild:!1,default:lo,decorate:po},onRender:{type:"function",required:!1,sendToChild:!1,default:lo,decorate:po},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:lo,decorate:po},onPrerender:{type:"function",required:!1,sendToChild:!1,default:lo,decorate:po},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:lo,decorate:po},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:lo,decorate:po},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:lo},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:lo},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(e){return e.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(e){return e.getSiblings}}},a);if(!b)throw new Error("Container template required");return{name:k,tag:n,url:t,domain:r,bridgeUrl:o,method:T,propsDef:I,dimensions:d,autoResize:l,allowedParentDomains:h,attributes:m,defaultContext:g,containerTemplate:b,prerenderTemplate:_,validate:S,logger:C,eligible:x,children:O,exports:"function"==typeof R?R:function(e){for(var n=e.getExports,t={},r=function(e,r){var o=r[e],i=R[o].type,a=n().then((function(e){return e[o]}));t[o]="function"===i?function(){for(var e=arguments.length,n=new Array(e),t=0;t0?d.trustedDomains.reduce((function(e,n){return e||$(n,I(window))}),!1):r===I(window)||M(e);if((!d||!d.sameDomain||f)&&(!d||!d.trustedDomains||f)){var l=co(n,0,s,t[s],o);a[s]=l,d&&d.alias&&!a[d.alias]&&(a[d.alias]=l)}}if(!i)for(var p=0,h=Object.keys(n);p";var r="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+t+">"+r+""}var o,i;if("text"===n.type)return Gr(n.text);throw new TypeError("Unhandleable node: "+n.type)}))))throw new TypeError("Expected svg prop to be a string or jsx node");var i=y({src:Re(n)},r);return Lr("img",i)}function ri(e){var n=e.render,t=e.name,r=e.logoColor,o=u(e,ni);return Lr(ti,y({},o,{svg:n?n():null,alt:"",class:"paypal-logo paypal-logo-"+t+" "+(r?"paypal-logo-color-"+r:"")}))}(No={}).default={primary:"#ffffff",secondary:"#ffffff"},No.white={primary:"#ffffff",secondary:"#ffffff"},No.black={primary:"#000000",secondary:"#000000"},(Co={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Co.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Co.black={primary:"#1E3764",secondary:"#005AB9",tertiary:"#FBA900",quaternary:"#FFD800"},(Po={}).default={primary:"#333030"},Po.white={primary:"#ffffff"},Po.black={primary:"#333030"},(Ro={}).default={primary:"#000000"},Ro.white={primary:"#FFFFFF"},Ro.black={primary:"#000000"},(To={}).default={primary:"#003087"},To.blue={primary:"#003087"},To.white={primary:"#ffffff"},To.black={primary:"#333030"},(Do={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Do.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Do.black={primary:"#C8036F",secondary:"#71706F"},(Oo={}).default={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#FFFFFF"},Oo.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#000000",quinary:"#FFFFFF"},Oo.black={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#003A7D"},(ko={}).default={primary:"#FFFFFF",secondary:"#CC0066"},ko.white={primary:"#FFFFFF",secondary:"#CC0066"},ko.black={primary:"#FFFFFF",secondary:"#CC0066"},(Io={}).default={primary:"#00C0EE",secondary:"#FFFFFF"},Io.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Io.black={primary:"#00C0EE",secondary:"#1A4B67"},(Mo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Mo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Mo.black={primary:"#B3B1B1",secondary:"#D03238"},(Ho={}).default={primary:"#003087",secondary:"#009cde"},Ho.blue={primary:"#003087",secondary:"#009cde"},Ho.white={primary:"#ffffff",secondary:"#ffffff"},Ho.black={primary:"#333030",secondary:"#636363"},Ho.monochrome={primary:"#000000",secondary:"#000000"},(Lo={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Lo.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Lo.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},Lo.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},(jo={}).default={main:"#005DA0",card:"#AEB1BC"},jo.white={main:"#FFFFFF",card:"#FFFFFF"},jo.black={main:"#333030",card:"#333030"},(Wo={}).default={primary:"#EDEDED",secondary:"#393A41"},Wo.white={primary:"#FFFFFF",secondary:"#000000"},Wo.black={primary:"#393A41",secondary:"#EDEDED"},(Bo={}).default={primary:"#3D93CE"},Bo.blue={primary:"#3D93CE"},Bo.white={primary:"#ffffff"},Bo.black={primary:"#333030"},(Uo={}).default={primary:"#ffffff"},Uo.blue={primary:"#003087"},Uo.white={primary:"#ffffff"},Uo.black={primary:"#333030"},(Zo={}).default={primary:"#1AAD19",secondary:"#FFFFFF"},Zo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Zo.black={primary:"#1AAD19",secondary:"#4D4D4D"},(zo={}).default={primary:"#A6C307"},zo.white={primary:"#FFFFFF"},zo.black={primary:"#2C2E2F"},(qo={}).default={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#000000",senary:"#FFFFFF"},qo.white={primary:"#000000",secondary:"#000000",tertiary:"#000000",quaternary:"#000000",senary:"#FFFFFF"},qo.black={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#4D4D4F",senary:"#FFFFFF"},(Ko={}).default={primary:"#0EE06E"},Ko.white={primary:"#FFFFFF"},Ko.black={primary:"#000000"},(Go={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Go.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Go.black={primary:"#E39E39",secondary:"#D8232A"},(Vo={}).default={primary:"#FFFFFF"},Vo.white={primary:"#FFFFFF"},Vo.black={primary:"#000000"},(Jo={}).default={primary:"#009EE3",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#FFFFFF"},Jo.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},Jo.black={primary:"#FFFFFF",secondary:"#2D3277",tertiary:"#009EE3",quaternary:"#009EE3"},(Yo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Yo.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Yo.black={primary:"#1866AB",secondary:"#373535"},($o={}).default={primary:"#FFFFFF"},$o.white={primary:"#FFFFFF"},$o.black={primary:"#2C2E2F"},(Xo={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},Xo.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},Xo.black={primary:"#A6009C",secondary:"#FF009C",tertiary:"#1C1C1C"};var oi,ii,ai,ui=["logoColor"],ci=((oi={}).default={primary:"#000000"},oi.black={primary:"#000000"},oi.white={primary:"#FFFFFF"},oi.blue={primary:"#60CDFF"},oi),si=function(e){var n=e.logoColor,t=void 0===n?"default":n,r=u(e,ui),o=function(e){var n=e.primary;return Lr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"108",height:"45",viewBox:"0 0 108 45",fill:"none"},Lr("path",{d:"M104.656 7.89856V33.5476H98.8477V7.89856H104.656Z",fill:n}),Lr("path",{d:"M96.7049 16.5479V33.5835H91.5403V32.1174C90.8889 32.7549 90.1426 33.2409 89.3134 33.5835C88.4803 33.9461 87.5801 34.1293 86.6127 34.1293C85.3966 34.1293 84.2713 33.9022 83.2368 33.4481C82.2023 32.97 81.3021 32.3246 80.5361 31.5079C79.7701 30.6911 79.162 29.735 78.7119 28.6473C78.2855 27.5358 78.0723 26.3406 78.0723 25.0697C78.0723 23.7988 78.2855 22.6156 78.7119 21.5279C79.162 20.4164 79.7701 19.4483 80.5361 18.6316C81.3021 17.8148 82.2023 17.1774 83.2368 16.7232C84.2713 16.2451 85.3966 16.0061 86.6127 16.0061C87.5801 16.0061 88.4803 16.1894 89.3134 16.5519C90.1465 16.8945 90.8889 17.3806 91.5403 18.018V16.5519H96.7049V16.5479ZM87.5524 28.9501C88.6106 28.9501 89.4753 28.5876 90.1505 27.8585C90.8494 27.1334 91.1968 26.2012 91.1968 25.0657C91.1968 23.9303 90.8494 22.998 90.1505 22.2729C89.4753 21.5479 88.6067 21.1813 87.5524 21.1813C86.4982 21.1813 85.6177 21.5439 84.9188 22.2729C84.2437 22.998 83.9041 23.9303 83.9041 25.0657C83.9041 26.2012 84.2437 27.1334 84.9188 27.8585C85.6177 28.5836 86.4943 28.9501 87.5524 28.9501Z",fill:n}),Lr("path",{d:"M69.7903 7.89478C71.3223 7.89478 72.6253 8.10991 73.7072 8.54018C74.789 8.97046 75.7011 9.57204 76.4434 10.3449C77.2094 11.1417 77.8056 12.0501 78.2321 13.07C78.6585 14.0939 78.8717 15.1935 78.8717 16.3767C78.8717 17.56 78.6585 18.6596 78.2321 19.6834C77.8056 20.7073 77.2094 21.6157 76.4434 22.4085C75.7011 23.1814 74.789 23.783 73.7072 24.2133C72.6253 24.6435 71.3223 24.8587 69.7903 24.8587H66.987V33.5796H61.0762V7.89478H69.7864H69.7903ZM68.9454 19.5799C69.7351 19.5799 70.3392 19.5002 70.7696 19.3408C71.2197 19.1576 71.5908 18.9305 71.883 18.6596C72.4911 18.0898 72.7951 17.3289 72.7951 16.3767C72.7951 15.4245 72.4911 14.6636 71.883 14.0939C71.5908 13.823 71.2197 13.6039 70.7696 13.4485C70.3431 13.2652 69.7351 13.1776 68.9454 13.1776H66.987V19.5838H68.9454V19.5799Z",fill:n}),Lr("path",{d:"M39.3086 16.5476H45.7248L50.0799 24.7228H50.1471L54.0284 16.5476H59.9707L47.241 42.2365H41.3302L47.1384 30.4837L39.3047 16.5476H39.3086Z",fill:n}),Lr("path",{d:"M38.158 16.5479V33.5835H32.9935V32.1174C32.342 32.7549 31.5957 33.2409 30.7666 33.5835C29.9334 33.9461 29.0332 34.1293 28.0658 34.1293C26.8497 34.1293 25.7244 33.9022 24.6899 33.4481C23.6554 32.97 22.7552 32.3246 21.9892 31.5079C21.2232 30.6911 20.6152 29.735 20.165 28.6473C19.7386 27.5358 19.5254 26.3406 19.5254 25.0697C19.5254 23.7988 19.7386 22.6156 20.165 21.5279C20.6152 20.4164 21.2232 19.4483 21.9892 18.6316C22.7552 17.8148 23.6554 17.1774 24.6899 16.7232C25.7244 16.2451 26.8497 16.0061 28.0658 16.0061C29.0332 16.0061 29.9334 16.1894 30.7666 16.5519C31.5997 16.8945 32.342 17.3806 32.9935 18.018V16.5519H38.158V16.5479ZM29.0056 28.9501C30.0637 28.9501 30.9284 28.5876 31.6076 27.8585C32.3064 27.1334 32.6539 26.2012 32.6539 25.0657C32.6539 23.9303 32.3064 22.998 31.6076 22.2729C30.9324 21.5479 30.0637 21.1813 29.0056 21.1813C27.9474 21.1813 27.0708 21.5439 26.372 22.2729C25.6968 22.998 25.3572 23.9303 25.3572 25.0657C25.3572 26.2012 25.6968 27.1334 26.372 27.8585C27.0708 28.5836 27.9474 28.9501 29.0056 28.9501Z",fill:n}),Lr("path",{d:"M11.4846 7.89478C13.0166 7.89478 14.3196 8.10991 15.4015 8.54018C16.4833 8.97046 17.3954 9.57204 18.1377 10.3449C18.9037 11.1417 19.4999 12.0501 19.9264 13.07C20.3528 14.0939 20.566 15.1935 20.566 16.3767C20.566 17.56 20.3528 18.6596 19.9264 19.6834C19.4999 20.7073 18.9037 21.6157 18.1377 22.4085C17.3954 23.1814 16.4833 23.783 15.4015 24.2133C14.3196 24.6435 13.0166 24.8587 11.4846 24.8587H8.68126V33.5796H2.77441V7.89478H11.4846ZM10.6436 19.5799C11.4333 19.5799 12.0374 19.5002 12.4678 19.3408C12.9179 19.1576 13.2891 18.9305 13.5812 18.6596C14.1893 18.0898 14.4933 17.3289 14.4933 16.3767C14.4933 15.4245 14.1893 14.6636 13.5812 14.0939C13.2891 13.823 12.9179 13.6039 12.4678 13.4485C12.0414 13.2652 11.4333 13.1776 10.6436 13.1776H8.6852V19.5838H10.6436V19.5799Z",fill:n}))}(function(e,n,t){var r;if(t&&(r=n[t]),r||(r=n.default),!r)throw new Error("No "+(t||"default")+" logo available for paypal-rebrand");return r}(0,ci,t));return Lr(ri,y({},r,{name:"paypal-rebrand",alt:"PayPal",role:"presentation",logoColor:t,render:function(){return o}}))};function di(e){var n=e.context,t=e.close,r=e.focus,o=e.event,i=e.frame,a=e.prerenderFrame,u=e.content,p=void 0===u?{}:u,h=e.autoResize,y=e.hideCloseButton,w=e.nonce,m=e.fullScreen,v=void 0!==m&&m,g=e.isUnbrandedFlow,E=void 0!==g&&g,b="paypal-overlay-"+he(),F="__paypal_checkout_sandbox_"+b+"__";function _(e){var n,t,o,i,a,u;e.preventDefault(),e.stopPropagation(),function(e){return void 0===e&&(e=c()),!(function(e){return void 0===e&&(e=c()),/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(e)||/\bwv\b/.test(e)||/Android.*Version\/(\d)\.(\d)/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),!!l(e)&&(!!function(e){return void 0===e&&(e=c()),/\bGSA\b/.test(e)}(e)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(e))}(e)||function(e){return void 0===e&&(e=c()),!!f(e)&&/Version\/[\d.]+/.test(e)&&!d(e)}(e)||d(e)||function(e){return void 0===e&&(e=c()),/FxiOS/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),f(e)&&s(e)}(e)||function(e){return void 0===e&&(e=c()),/EdgiOS/i.test(e)}(e)||function(e){return void 0===e&&(e=c()),/FBAN/.test(e)||/FBAV/.test(e)}(e)||function(e){return void 0===e&&(e=c()),/QQBrowser/.test(e)}(e)||"undefined"!=typeof process&&process.versions&&process.versions.electron||(n=c(),/Macintosh.*AppleWebKit(?!.*Safari)/i.test(n))||!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches);var n}()&&(l()||(void 0===u&&(u=c()),!/iPhone|iPod/.test(u)&&(/iPad/.test(u)||function(e){return void 0===e&&(e=c()),/Safari/.test(e)&&!function(e){return void 0===e&&(e=c()),/Chrome|Chromium|CriOS/.test(e)&&!/SamsungBrowser|Silk|EdgA/.test(e)}(e)&&!/Silk|FxiOS|EdgiOS/.test(e)}(u)&&navigator.maxTouchPoints>=1))?window.alert("Please switch tabs to reactivate the PayPal window"):s()&&(a=null==(i=null==(o=null==(n=document.getElementsByName(F))?void 0:n[0])?void 0:o.contentWindow.document)||null==(t=i.getElementsByClassName("paypal-checkout-focus-warning-hidden"))?void 0:t[0])&&(a.innerText='Still can\'t see it? Select "Window" in your toolbar to find "Log in to your PayPal account"',a.classList.remove("paypal-checkout-focus-warning-hidden")),r())}var S,A=function(e){return function(n){o.on("zoid-display",(function(){return gn(n,"show-"+e,_e)})),o.on("zoid-close",(function(){return gn(n,"hide-"+e,_e)}))}};return i&&a&&(i.classList.add("component-frame"),a.classList.add("prerender-frame"),a.classList.add("visible"),i.classList.add("invisible"),o.on("zoid-rendered",(function(){a.classList.remove("visible"),a.classList.add("invisible"),i.classList.remove("invisible"),i.classList.add("visible"),setTimeout((function(){Fn(a)}),1)})),S=Lr("div",{class:"outlet",onRender:function(e){A("component")(e),h&&function(e){o.on("zoid-resize",(function(n){var t=n.width,r=n.height;"number"==typeof t&&(e.style.width=Mn(t)),"number"==typeof r&&(e.style.height=Mn(r))}))}(e)}},Lr("node",{el:i}),Lr("node",{el:a}))),Lr("div",{id:b,onRender:A("container"),class:"paypal-checkout-sandbox"},Lr("style",{nonce:w},function(e){var n=e.uid;return"\n #"+n+".paypal-checkout-sandbox {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n width: 100vw;\n height: 100vh;\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n\n z-index: 2147483647;\n\n animation-duration: 0.3s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards !important;\n opacity: 0;\n }\n\n #"+n+".paypal-checkout-sandbox .paypal-checkout-sandbox-iframe {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n #"+n+".paypal-checkout-sandbox .paypal-checkout-sandbox-iframe-full {\n border: 0;\n height: 100%;\n width: 100vw;\n }\n\n @keyframes show-container {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes hide-container {\n from {\n opacity: 1;\n }\n\n 50% {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n }\n "}({uid:b})),Lr("iframe",{title:"PayPal Checkout Overlay",name:F,scrolling:"no",class:"paypal-checkout-sandbox-iframe"+(v?"-full":"")},Lr("html",null,Lr("body",null,Lr("div",{dir:"auto",id:b,onClick:_,class:"paypal-overlay-context-"+n+" paypal-checkout-overlay"},!y&&Lr("a",{href:"#",class:"paypal-checkout-close",onClick:function(e){e.preventDefault(),e.stopPropagation(),t()},"aria-label":"close",role:"button"}),!v&&Lr("div",{class:"paypal-checkout-modal"},E?null:Lr("div",{class:"paypal-checkout-logo",dir:"ltr"},Lr(si,{logoColor:"white"})),p.windowMessage&&Lr("div",{class:"paypal-checkout-message"},p.windowMessage),Lr("div",{class:"paypal-checkout-focus-warning paypal-checkout-focus-warning-hidden"}),p.continueMessage&&Lr("div",{class:"paypal-checkout-continue"},Lr("a",{onClick:_,href:"#"},p.continueMessage)),Lr("div",{class:"paypal-checkout-loader"},Lr("div",{class:"paypal-spinner"}))),Lr("div",{class:v?"paypal-checkout-iframe-container-full":"paypal-checkout-iframe-container"},S),Lr("style",{nonce:w},function(e){var n=e.uid;return"\n #"+n+" {\n position: absolute;\n z-index: 2147483647;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n transform: translate3d(0, 0, 0);\n\n background-color: black;\n background-color: rgba(0, 0, 0, 0.8);\n background: radial-gradient(84.48% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.75) 100%);\n\n color: #fff;\n }\n\n #"+n+" a {\n color: #fff;\n }\n\n #"+n+" .paypal-checkout-close:before,\n #"+n+" .paypal-checkout-close:after {\n background-color: #fff;\n }\n\n #"+n+".paypal-overlay-context-"+to.POPUP+" {\n cursor: pointer;\n }\n\n #"+n+" a {\n text-decoration: none;\n }\n\n #"+n+' .paypal-checkout-modal {\n font-family: PayPal Plain, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;\n font-size: 14px;\n text-align: center;\n\n box-sizing: border-box;\n max-width: 350px;\n width: 100%;\n top: 50%;\n left: 50%;\n position: absolute;\n transform: translateX(-50%) translateY(-50%);\n cursor: pointer;\n padding: 0 48px\n }\n\n #'+n+".paypal-overlay-loading .paypal-checkout-message, #"+n+".paypal-overlay-loading .paypal-checkout-continue {\n display: none;\n }\n\n .paypal-checkout-loader {\n display: none;\n }\n\n #"+n+".paypal-overlay-loading .paypal-checkout-loader {\n display: block;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo {\n cursor: pointer;\n margin-bottom: 8px;\n padding: 4px;\n display: inline-block;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo img {\n height: 38px;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-logo img.paypal-checkout-logo-pp {\n margin-right: 10px;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-message {\n font-size: 14px;\n line-height: 18px;\n padding: 8px 0;\n font-weight: 400;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-message, #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-continue {\n display: none;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-continue {\n font-size: 14px;\n line-height: 18px;\n padding: 8px 0;\n font-weight: 500;\n }\n\n #"+n+" .paypal-checkout-modal .paypal-checkout-continue a {\n border-bottom: 1px solid white;\n }\n\n #"+n+" .paypal-checkout-close {\n cursor: pointer;\n position: absolute;\n right: 16px;\n top: 16px;\n width: 24px;\n height: 24px;\n }\n\n #"+n+".paypal-overlay-loading .paypal-checkout-close {\n display: none;\n }\n\n #"+n+" .paypal-checkout-close:hover {\n opacity: 1;\n }\n\n #"+n+" .paypal-checkout-close:before, .paypal-checkout-close:after {\n position: absolute;\n left: 11px;\n top: 2px;\n content: ' ';\n height: 20px;\n width: 2px;\n }\n\n #"+n+" .paypal-checkout-close:before {\n transform: rotate(45deg);\n }\n\n #"+n+" .paypal-checkout-close:after {\n transform: rotate(-45deg);\n }\n\n #"+n+' .paypal-checkout-focus-warning {\n font-family: PayPal Plain, system-ui, -apple-system, Roboto, "Segoe UI", Helvetica-Neue, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 18px;\n padding: 8px 0;\n display: block;\n }\n \n #'+n+" .paypal-checkout-focus-warning-hidden {\n display: none;\n }\n\n #"+n+" .paypal-checkout-iframe-container {\n display: none;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container > .outlet,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container > .outlet > iframe {\n max-height: 95vh;\n max-width: 95vw;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full > .outlet,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full > .outlet > iframe {\n height: 100vh;\n max-width: 100vw;\n width: 100vw;\n }\n\n @media screen and (max-width: 470px) {\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container > .outlet,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container > .outlet > iframe {\n max-height: 85vh;\n }\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full > .outlet,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container-full > .outlet > iframe {\n height: 100vh;\n }\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container {\n\n display: block;\n\n position: absolute;\n\n top: 50%;\n left: 50%;\n\n min-width: 450px;\n\n transform: translate(-50%, -50%);\n transform: translate3d(-50%, -50%, 0);\n\n border-radius: 10px;\n overflow: hidden;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet {\n\n position: relative;\n\n transition: all 0.3s ease;\n animation-duration: 0.3s;\n animation-fill-mode: forwards !important;\n\n min-width: 450px;\n max-width: 450px;\n width: 450px;\n height: 535px;\n\n background-color: white;\n\n overflow: auto;\n\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n\n -webkit-overflow-scrolling: touch;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet > iframe {\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .4s ease-in-out;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet > iframe.component-frame {\n z-index: 100;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet > iframe.prerender-frame {\n z-index: 200;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet > iframe.visible {\n opacity: 1;\n z-index: 200;\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet > iframe.invisible {\n opacity: 0;\n z-index: 100;\n }\n\n @media screen and (max-width: 470px) {\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .paypal-checkout-iframe-container,\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet {\n min-width: 100%;\n min-width: calc(100% - 20px);\n\n max-width: 100%;\n max-width: calc(100% - 20px);\n }\n }\n\n #"+n+".paypal-overlay-context-"+to.IFRAME+" .outlet iframe {\n width: 1px;\n min-width: 100%;\n height: 100%;\n }\n\n @keyframes show-component {\n from {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n to {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n }\n\n @keyframes hide-component {\n from {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n\n to {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n }\n\n .paypal-spinner {\n height: 30px;\n width: 30px;\n display: inline-block;\n box-sizing: content-box;\n opacity: 1;\n filter: alpha(opacity=100);\n animation: rotation .7s infinite linear;\n border-left: 8px solid rgba(0, 0, 0, .2);\n border-right: 8px solid rgba(0, 0, 0, .2);\n border-bottom: 8px solid rgba(0, 0, 0, .2);\n border-top: 8px solid #fff;\n border-radius: 100%\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n "}({uid:b})))))))}(ii={}).default={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},ii.blue={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},ii.white={primary:"#F3F3F3",secondary:"#898989",tertiary:"#B8B8B8"},ii.black={primary:"#0D0D0D",secondary:"#808080",tertiary:"#4D4D4D"},(ai={}).default={primary:"#008CFF"},ai.blue={primary:"#008CFF"},ai.white={primary:"#ffffff"};function fi(){return"https://www.paypal.com/webapps/helios"}function li(){return"https://www.paypal.com/heliosnext"}function pi(){return Fe(pi,(function(){var e=Qo({tag:"three-domain-secure",url:fi,attributes:{iframe:{scrolling:"no"}},containerTemplate:function(e){var n=e.doc,t=e.props;return Lr(di,{context:e.context,close:e.close,focus:e.focus,event:e.event,frame:e.frame,prerenderFrame:e.prerenderFrame,content:t.content,nonce:t.nonce,isUnbrandedFlow:!0}).render(qr({doc:n}))},props:{action:{type:"string",queryParam:!0,value:function(e){return e.props.action?e.props.action:"verify"}},xcomponent:{type:"string",queryParam:!0,value:function(){return"1"}},flow:{type:"string",queryParam:!0,value:function(){return"3ds"}},createOrder:{type:"function",queryParam:"cart_id",queryValue:function(e){return S.try(e.value)},required:!1},vaultToken:{type:"string",queryParam:"token",queryValue:function(e){return e.value},required:!1},clientID:{type:"string",value:Qn,queryParam:!0},onSuccess:{type:"function",alias:"onContingencyResult",decorate:function(e){var n=e.props,t=e.value,r=e.onError;return function(e,o){return("UNBRANDED_GUEST"===(null==n?void 0:n.userType)?Boolean(e):Boolean(e)||!1===(null==o?void 0:o.success))?r(e):t(o)}}},locale:{type:"object",queryParam:"locale.x",allowDelegate:!0,queryValue:function(e){var n=e.value;return n.lang+"_"+n.country},value:rt},onCancel:{type:"function",required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,value:wt},content:{type:"object",required:!1},userType:{type:"string",required:!1},nonce:{type:"string",default:ot},integrationType:{type:"string",required:!1,queryParam:!0},go_to:{type:"string",required:!1,queryParam:!0}}});return e.isChild()&&(window.xchild={props:e.xprops,close:_e}),e}))}function hi(){return Fe(hi,(function(){var e=Qo({tag:"captcha",url:li,attributes:{iframe:{scrolling:"no"}},containerTemplate:function(e){var n=e.doc,t=e.props;return Lr(di,{context:e.context,close:e.close,focus:e.focus,event:e.event,frame:e.frame,prerenderFrame:e.prerenderFrame,content:t.content,nonce:t.nonce,isUnbrandedFlow:!0}).render(qr({doc:n}))},props:{action:{type:"string",queryParam:!0,value:function(e){return e.props.action?e.props.action:"verify"}},xcomponent:{type:"string",queryParam:!0,value:function(){return"1"}},flow:{type:"string",queryParam:!0,value:function(){return"rca"}},createOrder:{type:"function",queryParam:"token",queryValue:function(e){return S.try(e.value)},required:!1},token:{type:"string",queryParam:"token",queryValue:function(e){return e.value},required:!1},clientID:{type:"string",value:Qn,queryParam:!0},onError:{type:"function",required:!1},onSuccess:{type:"function",alias:"onContingencyResult",decorate:function(e){var n=e.props,t=e.value,r=e.onError;return function(e,o){return("UNBRANDED_GUEST"===(null==n?void 0:n.userType)?Boolean(e):Boolean(e)||!1===(null==o?void 0:o.success))?r?r(e||new Error("CAPTCHA verification failed")):void 0:t(o)}}},onCancel:{type:"function",required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,value:wt},content:{type:"object",required:!1},userType:{type:"string",required:!1},nonce:{type:"string",default:ot},integrationType:{type:"string",required:!1,queryParam:!0}}});return e.isChild()&&(window.xchild={props:e.xprops,close:_e}),e}))}function yi(e){if(ct())return e}var wi={__get__:function(){return yi(pi())}},mi={__get__:function(){return yi(hi())}},vi={__get__:function(){return yi(o)}},gi="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||{},Ei="URLSearchParams"in gi,bi="Symbol"in gi&&"iterator"in Symbol,Fi="FileReader"in gi&&"Blob"in gi&&function(){try{return new Blob,!0}catch(e){return!1}}(),_i="FormData"in gi,Si="ArrayBuffer"in gi;if(Si)var Ai=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xi=ArrayBuffer.isView||function(e){return e&&Ai.indexOf({}.toString.call(e))>-1};function Ni(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ci(e){return"string"!=typeof e&&(e=String(e)),e}function Pi(e){var n={next:function(){var n=e.shift();return{done:void 0===n,value:n}}};return bi&&(n[Symbol.iterator]=function(){return n}),n}function Ri(e){this.map={},e instanceof Ri?e.forEach((function(e,n){this.append(n,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(n){this.append(n,e[n])}),this)}function Ti(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Di(e){return new Promise((function(n,t){e.onload=function(){n(e.result)},e.onerror=function(){t(e.error)}}))}function Oi(e){var n=new FileReader,t=Di(n);return n.readAsArrayBuffer(e),t}function ki(e){if(e.slice)return e.slice(0);var n=new Uint8Array(e.byteLength);return n.set(new Uint8Array(e)),n.buffer}function Ii(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Fi&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ei&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Si&&Fi&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=ki(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Si&&(ArrayBuffer.prototype.isPrototypeOf(e)||xi(e))?this._bodyArrayBuffer=ki(e):this._bodyText=e={}.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ei&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Fi&&(this.blob=function(){var e=Ti(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return Ti(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Fi)return this.blob().then(Oi);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,n,t,r,o=Ti(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=Di(n=new FileReader),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n.readAsText(e,r?r[1]:"utf-8"),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var n=new Uint8Array(e),t=new Array(n.length),r=0;r-1?r:t),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in gi)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function Li(e){var n=new FormData;return e.trim().split("&").forEach((function(e){if(e){var t=e.split("="),r=t.shift().replace(/\+/g," "),o=t.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(o))}})),n}function ji(e,n){if(!(this instanceof ji))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new Ri(n.headers),this.url=n.url||"",this._initBody(e)}Hi.prototype.clone=function(){return new Hi(this,{body:this._bodyInit})},Ii.call(Hi.prototype),Ii.call(ji.prototype),ji.prototype.clone=function(){return new ji(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ri(this.headers),url:this.url})},ji.error=function(){var e=new ji(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var Wi=[301,302,303,307,308];ji.redirect=function(e,n){if(-1===Wi.indexOf(n))throw new RangeError("Invalid status code");return new ji(null,{status:n,headers:{location:e}})};var Bi=gi.DOMException;try{new Bi}catch(e){(Bi=function(e,n){this.message=e,this.name=n;var t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Bi.prototype.constructor=Bi}function Ui(e,n){return new Promise((function(t,r){var o=new Hi(e,n);if(o.signal&&o.signal.aborted)return r(new Bi("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,n,r={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",n=new Ri,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var t=e.split(":"),r=t.shift().trim();if(r){var o=t.join(":").trim();try{n.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),n)};r.status=0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?200:i.status,r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){t(new ji(a,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){r(new Bi("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&gi.location.href?gi.location.href:e}catch(n){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Fi?i.responseType="blob":Si&&(i.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof Ri||gi.Headers&&n.headers instanceof gi.Headers)){var u=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){u.push(Ni(e)),i.setRequestHeader(e,Ci(n.headers[e]))})),o.headers.forEach((function(e,n){-1===u.indexOf(n)&&i.setRequestHeader(n,e)}))}else o.headers.forEach((function(e,n){i.setRequestHeader(n,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Ui.polyfill=!0,gi.fetch||(gi.fetch=Ui,gi.Headers=Ri,gi.Request=Hi,gi.Response=ji);var Zi={paypalCrUser:"paypal-cr-user",paypalCrCart:"paypal-cr-cart",paypalCrPropertyId:"paypal-cr-propid",paypalCrContainer:"paypal-cr-container",paypalSDKIdentity:"paypal-sdk-identity",paypalSDKConsoleDebug:"paypal-sdk-console-debug"},zi=function(e){var n=window.localStorage.getItem(e);try{return JSON.parse(n)}catch(e){return null}},qi=Zi,Ki={hour12:!1};function Gi(){var e=new Date,n=e.getTime()%1e3;return e.toLocaleTimeString("en-US",Ki)+"."+n+" - "}!function(){if(void 0===window.debugLogInitilized||!window.debugLogInitilized){var e="true"===new URL(window.location.href).searchParams.get("ppDebug");if(e)console.log(Gi()+"[debug-console-logger:init] PayPal Shopping: debug mode on. Based on URL parameter.");else try{(e=!0===zi(qi.paypalSDKConsoleDebug))&&console.log(Gi()+"[debug-console-logger:init] PayPal Shopping: debug mode on. Based on local storage.")}catch(n){e&&console.log(Gi()+"[debug-console-logger:init] Init Exception. "+n)}window.debugLogEnabled=e,window.debugLogInitilized=!0}}();var Vi=function(e){if(window.debugLogEnabled&&"undefined"!=typeof console){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r0?console.log(Gi()+e,t):console.log(Gi()+e)}},Ji=function(e){e?console.log(Gi()+"[debug-console-logger:setDebugEnabled] PayPal Shopping: debug mode on. Mode ON saved to local storage."):console.log(Gi()+"[debug-console-logger:setDebugEnabled] PayPal Shopping: debug mode off. Mode OFF saved to local storage."),window.debugLogEnabled=e},Yi=function(e,n){try{var t,r=dt();r.track(((t={}).ext_error_code="paypal-muse-components",t.ext_error_desc=JSON.stringify({name:e,error:xe(n)}),t)),r.error(e,{err:Ae(n)}),r.flush().catch(_e)}catch(n){var o,i=dt();i.track(((o={}).ext_error_code="paypal-muse-components",o.ext_error_desc="Error logging error event for "+(e||""),o)),i.error("logger_error",{err:Ae(n)}),i.flush().catch(_e)}},$i=function(e){var n=-1;return void 0!==e&&(n=e===parseInt(e,10)?e:e>0&&e<1?parseFloat(e.toFixed(1)):parseFloat(e.toFixed(0))),n},Xi=function(){try{return window.screen.height}catch(e){return null}},Qi=function(){try{return window.screen.width}catch(e){return null}},ea=function(){var e=window.screen||{},n=window.devicePixelRatio||1,t=$i(e.width*n),r=$i(e.height*n);if(90===Math.abs(window.orientation)){var o=t;t=r,r=o}return r},na=function(){var e=window.screen||{},n=window.devicePixelRatio||1,t=$i(e.width*n),r=$i(e.height*n);if(90===Math.abs(window.orientation)){var o=t;t=r,r=o}return t},ta=function(){try{var e,n=window.innerWidth,t=window.innerHeight;return e=navigator.userAgent.match(/mobile/i)?"Mobile":navigator.userAgent.match(/iPad|Android|Touch/i)?"Tablet":"Desktop",{deviceWidth:na(),deviceHeight:ea(),screenWidth:Qi(),screenHeight:Xi(),colorDepth:screen&&screen.colorDepth,rosettaLanguage:window.navigator.languages?window.navigator.languages.join(","):window.navigator.userLanguage?window.navigator.userLanguage:window.navigator.language?window.navigator.language:window.navigator.browserLanguage?window.navigator.browserLanguage:window.navigator.systemLanguage?window.navigator.systemLanguage:void 0,location:""+window.location.origin+window.location.pathname,deviceType:e,browserHeight:t,browserWidth:n}}catch(e){return Yi("getDeviceInfo",e),{}}},ra={generateId:he},oa=Zi,ia=function(){return zi(oa.paypalCrUser)||{}},aa=function(){var e=ia();return e.userId=ra.generateId(),e},ua=function(){return zi(oa.paypalCrUser)},ca=Zi,sa=function(){try{var e=zi(ca.paypalCrContainer),n=Date.now();return!e||n-e.createdAt>36e5?(window.localStorage.removeItem(ca.paypalCrContainer),null):e.containerSummary}catch(e){return null}},da=Zi,fa=function(){window.localStorage.removeItem(da.paypalSDKIdentity)},la=function(){var e=zi(da.paypalSDKIdentity),n=Date.now();return e?e&&n-e.createdAt>36e5?(fa(),null):e?e.identity:null:(fa(),null)},pa=function(e){return{identity:e,createdAt:Date.now()}},ha=function(e){return function(n){try{return e(n)}catch(e){}}},ya=ha((function(){var e=[];return document.querySelectorAll('meta[property^="og:"]').forEach((function(n){e.push({property:n.getAttribute("property"),value:n.content})})),e})),wa=ha((function(){var e=[];return document.querySelectorAll('script[type="application/ld+json"]').forEach((function(n){e.push(function(e){var n=JSON.parse(e);return delete n.review,n}(n.text))})),e})),ma=function(e,n,t){if(t[e])return Array.isArray(t[e])||(t[e]=[t[e]]),Array.isArray(t[e])?t[e].push(n):void 0;t[e]=n},va=ha((function(e){var n=e.schemaType,t={"@context":"https://schema.org","@type":n},r=document.querySelectorAll('[itemtype$="schema.org/'+n+'"]');if(r&&0!==r.length)return function e(n,t){for(var r=0,o=n.children;r0?{type:"open_graph",version:1,data:e}:null);t&&n.push(t);var r,o,i,a,u=(r=[],o=wa(),i=va({schemaType:"Product"}),a=va({schemaType:"BreadcrumbList"}),Array.isArray(o)&&o.length>0&&(r=r.concat(o)),i&&r.push(i),a&&r.push(a),Array.isArray(r)&&r.length>0?{type:"schema.org/ld+json",version:1,data:r}:null);return u&&n.push(u),Vi("[capture-page-data:capturePageData]. Captured page data: ",n),n};function Ea(e,n,t){return void 0===n&&(n={}),(e.shoppingAttributes||{})[t]||n[t]}var ba=["page_type","page_name","page_id","page_path","page_category_name","page_category_id","deal_id","deal_name","deal_value","search_results_count","cart_products","product_id","product_name","product_url","product_price","product_brand","product_category_name","product_category_id","product_discount","amount","currency"];var Fa=function(e){return{send:function(e){var n=function(e){var n=function(e){var n=function(e){var n={page_view:function(n){var t=Ea(e,n,"disable_storecash")||"false",r=(e.containerSummary||{}).programId;return"false"===t&&r?{fltp:"analytics",offer_id:r,sub_flow:"store-cash",sub_component:"analytics"}:{}},purchase:function(){return{fltp:"analytics",es:"txnSuccess"}},store_cash_exclusion:function(){return{fltp:"analytics",mru:"true",es:"merchantRecognizedUser"}}};return{getEventSpecificFptiAttributes:function(e){var t=e.toString();return n[t]?n[t]():{}}}}(e),t=function(e){return{constructSinfoPayload:function(n){var t,r,o,i,a=e.shoppingAttributes||{},u=(t=y({},n,a),r=Object.keys(t).filter((function(e){return ba.includes(e)})).reduce((function(e,n){return e[n]=t[n],e}),{}),o=Object.keys(t).filter((function(e){return!ba.includes(e)})).reduce((function(e,n){return e[n]=t[n],e}),{}),Object.keys(o).length&&Vi("[event-handler:filterAttributesForSinfoPayload] Following attributes will be excluded from event sinfo payload:",o),r),c=!(void 0===(i=a.parse_page)||"false"===i||!1===i),s=c?ga():{};c&&(u.capturedData=s);var d=JSON.stringify(u);return"{}"===d?null:d}}}(e);return{eventToFptiAttributes:function(r,o){void 0===o&&(o={});var i=Ea(e,o,"user_id"),a=n.getEventSpecificFptiAttributes(r,o);return y({eventName:r,eventData:t.constructSinfoPayload(o),merchantProvidedUserId:i,page:"ppshopping:"+r},a)}}}(e);function t(t,r,o){var i=e.containerSummary||{},a=i.applicationContext||{},u=ta()||{},c=o||la()||{},s=function(){var e=ua();return e?{shopperId:e.userId,merchantProvidedUserId:e.merchantProvidedUserId}:{}}(),d=n.eventToFptiAttributes(t,r),f=u.location;return a.limitUrlCapture&&(f=document.location.host),y({},d,{e:"im",flag_consume:"yes",mrid:i.mrid,item:i.id,shopperId:s.shopperId,t:(new Date).getTime(),g:(new Date).getTimezoneOffset(),deviceWidth:u.deviceWidth,deviceHeight:u.deviceHeight,screenWidth:u.screenWidth,screenHeight:u.screenHeight,colorDepth:u.colorDepth,rosettaLanguage:u.rosettaLanguage,location:f,deviceType:u.deviceType,browserHeight:u.browserHeight,browserWidth:u.browserWidth,confidenceScore:c.confidenceScore,encryptedAccountNumber:c.encryptedAccountNumber,identificationType:c.identificationType})}return{viewPageToFpti:function(e){return t("page_view",e)},eventToFpti:t}}(e).eventToFpti;return{publishEvent:function(e,t,r){var o,i,a=n(e,t,r);Vi("[shopping-tracker:publishEvent] Publishing FPTI event:",a),i=function(e){return{dh:e.deviceHeight,dw:e.deviceWidth,bh:e.browserHeight,bw:e.browserWidth,cd:e.colorDepth,sh:e.screenHeight,sw:e.screenWidth,dvis:e.deviceType,btyp:e.browserType,rosetta_language:e.rosettaLanguage,completeurl:e.location,unsc:e.confidenceScore,identifier_used:e.identificationType,cust:e.encryptedAccountNumber,item:e.item,mrid:e.mrid||et()[0],client_id:Qn(),bn_code:tt(),event_name:e.eventName,sinfo:JSON.stringify(e.eventData),page:e.page,pgrp:e.page,comp:"tagmanagernodeweb",e:e.e,t:e.t,g:e.g,external_id:e.merchantProvidedUserId,shopper_id:e.shopperId,merchant_cart_id:e.cartId,product:"ppshopping_v2",es:e.es,fltp:e.fltp,offer_id:e.offer_id,sub_component:e.sub_component,sub_flow:e.sub_flow,mru:e.mru,flag_consume:e.flag_consume}}(a),function(e,n){var t=Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])}));t=t.join("&"),document.createElement("img").src="https://t.paypal.com/ts?"+t}(0,(o=i,Object.keys(o).forEach((function(e){var n=o[e];(""===n||null==n||Number.isNaN(n))&&delete o[e]})),o))}}}(e).publishEvent,set:function(e){return{updateShoppingAttributes:function(n){e.shoppingAttributes=y({},e.shoppingAttributes||{},n)}}}(e).updateShoppingAttributes}},_a="fetch_identity_request",Sa="fetch_identity_country";function Aa(){}var xa=function(e){function n(n,t){var r,o;return void 0===t&&(t=Aa),o=n.paramsToIdentityUrl?n.paramsToIdentityUrl():"https://www.paypal.com/muse/identity/v2/index.html",Vi("[identity-manager:constructor] Using iframe url:",o),(r=e.call(this,{src:o})||this).onIframeLoad=function(){Vi("[identity-manager:onIframeLoad] Iframe loaded."),r.fetchIdentity()},r.logIframeError=function(e){"fetch_identity_error"===e.data.type&&(r.completionListener(null,e),Vi("[identity-manager:logIframeError] Identity iframe error:",e.data.payload),Yi("identity iframe error:",e.data.payload))},r.storeIdentity=function(e){if("fetch_identity_response"===e.data.type){var n=e.data.payload;Vi("[identity-manager:storeIdentity] Fetch identity response. Received: ",n),pa(n),r.completionListener(n,null)}},r.fetchCountry=function(){return new Promise((function(e){r.addMessageListener((function(n){var t=n.data;t.type===Sa&&e(t.payload)})),r.iframe.contentWindow.postMessage({type:Sa},r.url.origin)}))},r.fetchIdentity=function(){var e=la();if(e)return Vi("[identity-manager:fetchIdentity] Fetch identity found in cache:",e),void r.completionListener(e,null);var n=!0,t="pp-sdk-shouldReallyCheckCountry";try{n=null===zi(t)?Math.floor(100*Math.random())<50:zi(t)}catch(e){Vi("[identity-manager:fetchIdentity] Error while accessing local storage for key :",t)}Vi("[identity-manager:fetchIdentity] Fetching Identity"),n?r.fetchCountry().then((function(e){Vi("[identity-manager:fetchIdentity] Fetch identity request. Fetched Country:",e),r.fetchUserInfo(e)})):(Vi("[identity-manager:fetchIdentity] Fetch identity request. Country not fetched."),r.fetchUserInfo("ALL"))},r.fetchUserInfo=function(e){r.addMessageListener((function(n){var t=n.data;if(t.type===_a){var o=y({},t.payload,{country:e});pa(o),r.completionListener(o,null)}}));var n=ta();r.iframe.contentWindow.postMessage({type:_a,payload:{deviceInfo:n,country:e}},r.url.origin)},r.addMessageListener(r.storeIdentity),r.addMessageListener(r.logIframeError),r.completionListener=t,r}return h(n,e),n}((function(e){var n,t,r=this;this._onIframeLoad=function(e){r.onIframeLoad&&r.onIframeLoad(e)},this._onMessage=function(e){e&&e.source&&e.source.window===r.iframe.contentWindow&&e.origin===r.url.origin&&r.messageListeners.forEach((function(n){try{n(e)}catch(e){Yi(e,n)}}))},this.addMessageListener=function(e){"function"==typeof e?r.messageListeners.push(e):Yi("iframe listener must be a function")},this.url=new URL(e.src),this.iframe=(n=e.src,(t=document.createElement("iframe")).style.display="none",t.setAttribute("src",n),document.body.appendChild(t),t),this.messageListeners=e.messageListeners||[],this.iframe.addEventListener("load",this._onIframeLoad),window.addEventListener("message",this._onMessage)})),Na=function(e){var n=e.tags.filter((function(e){return"offers"===e.tag_definition_id}))[0],t=!1,r=!1,o=null;if(n&&n.configuration){var i=n.configuration.filter((function(e){return"offer-program-id"===e.id}))[0];o=i?i.value:null}return e.application_context&&(t=e.application_context.limit_url_capture||!1,r=e.application_context.disable_pptm_bundle||!1),{id:e.id,integrationType:e.integration_type,mrid:e.owner_id,programId:o,jlAccessToken:e.jlAccessToken,applicationContext:{limitUrlCapture:t,disablePptmBundle:r}}},Ca={id:"",integration_type:"",owner_id:"",tags:[],jlAccessToken:"",application_context:{limit_url_capture:void 0,disable_pptm_bundle:void 0}};var Pa=function(e){return void 0===e},Ra={event:"snippetRun",t:(new Date).getTime()},Ta={user:{id:null,email:null,name:null}},Da=function(e){void 0===e&&(e={});var n=function(e){void 0===e&&(e={});var n=Fa(e),t=!1,r=!1,o=[],i=null;function a(){return t&&r}function u(){if(a()){for(var e=0,t=o;e100&&o.shift()}return Vi("[shopping-analytics:shoppingAnalyticsSetup] Initialized shopping analytics with the following configuration",e),function(e,n){var t,r;try{e.user=e.user||{},t=(r=ua(),r||aa()).userId,Vi("[user-configuration:setupUserDetails] User Id from local storage:",t),function(e){var n;e.user&&e.user.id&&(e.user.merchantProvidedUserId=e.user.id,delete e.user.id,n=e.user.merchantProvidedUserId,ia().merchantProvidedUserId=n)}(e),function(e,n){var t=la();t?(Vi("[identity:fetchUserIdentity] Loaded user identity from storage:",t),n(t,null)):(Vi("[identity:fetchUserIdentity] Triggering identity discovery."),function(e,n){new xa(e,n)}(e,n))}(e,n)}catch(e){Yi("cart_or_shopper_id",e),ra.generateId(),Date.now(),t=aa().userId}e.user.id||(e.user.id=t)}(e,(function(e){i=e,Vi("[shopping-analytics:onUserIdentityFetch] Received identity fetch notification."),t=!0,u()})),function(e,n){var t=sa();t?n(t):function(e){var n=e.paramsToPropertyIdUrl,t=sa();return t?Promise.resolve(t):function(e){var n=et()[0],t=Xn("client-id");return n||t?fetch(function(e,n,t){var r=window.location.protocol+"//"+window.location.host;return(t?t():"https://www.paypal.com/tagmanager/containers/xo")+"?"+(e?"mrid="+e:"client_id="+n)+"&url="+encodeURIComponent(r)+"&jlAccessToken=true&disableSetCookie=true"}(n,t,e)).then((function(e){if(200!==e.status)throw new Error("Failed to fetch propertyId: status "+e.status);return e.json()})):Promise.resolve(Ca)}(n).then(Na).then((function(e){return function(e){JSON.stringify({containerSummary:e,createdAt:Date.now()})}(e),Date.now(),e})).catch((function(e){return Yi("getContainer",e),""}))}(e).then((function(e){return n(e)}))}(e,(function(n){Vi("[shopping-analytics:onUserIdentityFetch] Received container fetch notification. Container summary: ",n),e.propertyId=e.propertyId||n&&n.id,e.containerSummary=n,r=!0,u()})),{send:function(){a()?n.send.apply(n,arguments):c.apply(void 0,arguments)},set:n.set,getPageSkuData:ga,enableDebugLogging:function(){Ji(!0)},disableDebugLogging:function(){Ji(!1)}}}(e=y({},Ta,e));return window.__pp__trackers__=window.__pp__trackers__||[],window.__pp__trackers__.push(n),n};function Oa(){!function(){if(window.shoppingDDL){var e=new Da;n=window,t=[],r=function(e){var n=function(e){return[{id:"send_event_handler",predicate:function(e){return void 0!==e.event},handle:function(n){"snippetRun"!==n.event&&e.send(n.event,n.payload)}},{id:"set_handler",predicate:function(e){return void 0!==e.set},handle:function(n){e.set(n.set)}}]}(e);return{consume:function(e){!function(e){var t=n.filter((function(n){return n.predicate(e)}));return void 0!==t[0]?t[0].handle:Pa}(e)(e)}}}(e),o=function(){for(;t.length;){var e=t.shift();r.consume(e)}},i=function(e){var n=e.shoppingDDL;return n||(n=[Ra]),n}(n),t.push.apply(t,i),i.push=function(){t.push.apply(t,arguments),o()},i.length=0,o()}var n,t,r,o,i}()}!function(e){var n,t=nt(),r=window[t],o=r&&r.version;if(r)if(o.startsWith("6."))dt().info("setup_sdk_v6_integration_found",{v5Version:"5.0.515",v6Version:o}),delete window[t];else{if(!r.__internal_destroy__)throw new Error("Attempted to load sdk version 5.0.515 on page, but window."+t+" at version "+o+' already loaded.\n\nTo load this sdk alongside the existing version, please specify a different namespace in the script tag, e.g.