@paypal/messaging-components 1.68.1 → 1.68.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/bizcomponents/js/messaging.js +2 -2
  2. package/dist/bizcomponents/js/modal.js +2 -2
  3. package/dist/bizcomponents/js/renderMessage.js +2 -2
  4. package/dist/bizcomponents/js/smart-credit-message.js +2 -2
  5. package/dist/bizcomponents/js/smart-credit-modal-v2-lander.js +2 -2
  6. package/dist/bizcomponents/js/smart-credit-modal-v2.js +2 -2
  7. package/dist/bizcomponents/js/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
  8. package/dist/bizcomponents/js/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
  9. package/dist/bizcomponents/{sandbox/versioned/renderMessage@1.68.1.js → js/versioned/renderMessage@1.68.2.js} +3 -3
  10. package/dist/bizcomponents/js/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
  11. package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
  12. package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
  13. package/dist/bizcomponents/sandbox/messaging.js +2 -2
  14. package/dist/bizcomponents/sandbox/modal.js +2 -2
  15. package/dist/bizcomponents/sandbox/renderMessage.js +2 -2
  16. package/dist/bizcomponents/sandbox/smart-credit-message.js +2 -2
  17. package/dist/bizcomponents/sandbox/smart-credit-modal-v2-lander.js +2 -2
  18. package/dist/bizcomponents/sandbox/smart-credit-modal-v2.js +2 -2
  19. package/dist/bizcomponents/sandbox/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
  20. package/dist/bizcomponents/sandbox/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
  21. package/dist/bizcomponents/{js/versioned/renderMessage@1.68.1.js → sandbox/versioned/renderMessage@1.68.2.js} +3 -3
  22. package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
  23. package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
  24. package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
  25. package/dist/bizcomponents/stage/messaging.js +2 -2
  26. package/dist/bizcomponents/stage/modal.js +2 -2
  27. package/dist/bizcomponents/stage/renderMessage.js +2 -2
  28. package/dist/bizcomponents/stage/smart-credit-message.js +2 -2
  29. package/dist/bizcomponents/stage/smart-credit-modal-v2-lander.js +2 -2
  30. package/dist/bizcomponents/stage/smart-credit-modal-v2.js +2 -2
  31. package/dist/bizcomponents/stage/versioned/{messaging@1.68.1.js → messaging@1.68.2.js} +3 -3
  32. package/dist/bizcomponents/stage/versioned/{modal@1.68.1.js → modal@1.68.2.js} +3 -3
  33. package/dist/bizcomponents/stage/versioned/{renderMessage@1.68.1.js → renderMessage@1.68.2.js} +3 -3
  34. package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.68.1.js → smart-credit-message@1.68.2.js} +3 -3
  35. package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.68.1.js → smart-credit-modal-v2-lander@1.68.2.js} +3 -3
  36. package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.68.1.js → smart-credit-modal-v2@1.68.2.js} +3 -3
  37. package/package.json +2 -2
  38. /package/dist/bizcomponents/js/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
  39. /package/dist/bizcomponents/js/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
  40. /package/dist/bizcomponents/js/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
  41. /package/dist/bizcomponents/js/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
  42. /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
  43. /package/dist/bizcomponents/js/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
  44. /package/dist/bizcomponents/sandbox/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
  45. /package/dist/bizcomponents/sandbox/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
  46. /package/dist/bizcomponents/sandbox/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
  47. /package/dist/bizcomponents/sandbox/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
  48. /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
  49. /package/dist/bizcomponents/sandbox/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
  50. /package/dist/bizcomponents/stage/versioned/{messaging@1.68.1.js.map → messaging@1.68.2.js.map} +0 -0
  51. /package/dist/bizcomponents/stage/versioned/{modal@1.68.1.js.map → modal@1.68.2.js.map} +0 -0
  52. /package/dist/bizcomponents/stage/versioned/{renderMessage@1.68.1.js.map → renderMessage@1.68.2.js.map} +0 -0
  53. /package/dist/bizcomponents/stage/versioned/{smart-credit-message@1.68.1.js.map → smart-credit-message@1.68.2.js.map} +0 -0
  54. /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2-lander@1.68.1.js.map → smart-credit-modal-v2-lander@1.68.2.js.map} +0 -0
  55. /package/dist/bizcomponents/stage/versioned/{smart-credit-modal-v2@1.68.1.js.map → smart-credit-modal-v2@1.68.2.js.map} +0 -0
@@ -1,3 +1,3 @@
1
- /* version: 1.68.1 */
2
- !function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=167)}([function(n,e){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,e,t){var r=t(32),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);n.exports=r?a:function(n){return function(){return i.apply(n,arguments)}}},function(n,e,t){var r=t(64),o=r.all;n.exports=r.IS_HTMLDDA?function(n){return"function"==typeof n||n===o}:function(n){return"function"==typeof n}},function(n,e,t){var r=t(6),o=t(71),i=t(10),a=t(49),u=t(70),c=t(69),s=r.Symbol,f=o("wks"),d=c?s.for||s:s&&s.withoutSetter||a;n.exports=function(n){return i(f,n)||(f[n]=u&&i(s,n)?s[n]:d("Symbol."+n)),f[n]}},function(n,e,t){var r=t(0);n.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(n,e,t){"use strict";var r=t(6),o=t(108),i=t(52),a=t(2),u=t(72).f,c=t(109),s=t(14),f=t(23),d=t(18),l=t(10),p=function(n){var e=function(t,r,i){if(this instanceof e){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,r)}return new n(t,r,i)}return o(n,this,arguments)};return e.prototype=n.prototype,e};n.exports=function(n,e){var t,o,h,v,m,y,w,g,E,_=n.target,S=n.global,b=n.stat,N=n.proto,T=S?r:b?r[_]:(r[_]||{}).prototype,A=S?s:s[_]||d(s,_,{})[_],R=A.prototype;for(v in e)o=!(t=c(S?v:_+(b?".":"#")+v,n.forced))&&T&&l(T,v),y=A[v],o&&(w=n.dontCallGetSet?(E=u(T,v))&&E.value:T[v]),m=o&&w?w:e[v],o&&typeof y==typeof m||(g=n.bind&&o?f(m,r):n.wrap&&o?p(m):N&&a(m)?i(m):m,(n.sham||m&&m.sham||y&&y.sham)&&d(g,"sham",!0),d(A,v,g),N&&(l(s,h=_+"Prototype")||d(s,h,{}),d(s[h],v,m),n.real&&R&&(t||!R[v])&&d(R,v,m)))}},function(n,e){var t=function(n){return n&&n.Math==Math&&n};n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||function(){return this}()||this||Function("return this")()},function(n,e,t){var r=t(143);n.exports=r},function(n,e,t){var r=t(2),o=t(64),i=o.all;n.exports=o.IS_HTMLDDA?function(n){return"object"==typeof n?null!==n:r(n)||n===i}:function(n){return"object"==typeof n?null!==n:r(n)}},function(n,e,t){var r=t(32),o=function(){}.call;n.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(n,e,t){var r=t(1),o=t(19),i=r({}.hasOwnProperty);n.exports=Object.hasOwn||function(n,e){return i(o(n),e)}},function(n,e,t){var r=t(153);n.exports=r},function(n,e,t){var r=t(4),o=t(65),i=t(67),a=t(13),u=t(44),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor;e.f=r?i?function(n,e,t){if(a(n),e=u(e),a(t),"function"==typeof n&&"prototype"===e&&"value"in t&&"writable"in t&&!t.writable){var r=f(n,e);r&&r.writable&&(n[e]=t.value,t={configurable:"configurable"in t?t.configurable:r.configurable,enumerable:"enumerable"in t?t.enumerable:r.enumerable,writable:!1})}return s(n,e,t)}:s:function(n,e,t){if(a(n),e=u(e),a(t),o)try{return s(n,e,t)}catch(n){}if("get"in t||"set"in t)throw c("Accessors not supported");return"value"in t&&(n[e]=t.value),n}},function(n,e,t){var r=t(8),o=String,i=TypeError;n.exports=function(n){if(r(n))return n;throw i(o(n)+" is not an object")}},function(n,e){n.exports={}},function(n,e,t){var r=t(141);n.exports=r},function(n,e,t){var r=t(43),o=t(25);n.exports=function(n){return r(o(n))}},function(n,e,t){var r=t(1),o=r({}.toString),i=r("".slice);n.exports=function(n){return i(o(n),8,-1)}},function(n,e,t){var r=t(4),o=t(12),i=t(36);n.exports=r?function(n,e,t){return o.f(n,e,i(1,t))}:function(n,e,t){return n[e]=t,n}},function(n,e,t){var r=t(25),o=Object;n.exports=function(n){return o(r(n))}},function(n,e,t){var r=t(77);n.exports=function(n){return r(n.length)}},function(n,e,t){var r=t(148);n.exports=r},function(n,e){n.exports={}},function(n,e,t){var r=t(52),o=t(27),i=t(32),a=r(r.bind);n.exports=function(n,e){return o(n),void 0===e?n:i?a(n,e):function(){return n.apply(e,arguments)}}},,function(n,e,t){var r=t(33),o=TypeError;n.exports=function(n){if(r(n))throw o("Can't call method on "+n);return n}},function(n,e,t){var r=t(14),o=t(6),i=t(2),a=function(n){return i(n)?n:void 0};n.exports=function(n,e){return arguments.length<2?a(r[n])||a(o[n]):r[n]&&r[n][e]||o[n]&&o[n][e]}},function(n,e,t){var r=t(2),o=t(47),i=TypeError;n.exports=function(n){if(r(n))return n;throw i(o(n)+" is not a function")}},function(n,e){n.exports=!0},function(n,e,t){var r=t(60),o=t(2),i=t(17),a=t(3)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());n.exports=r?i:function(n){var e,t,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(t=function(n,e){try{return n[e]}catch(n){}}(e=u(n),a))?t:c?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},function(n,e,t){var r=t(26);n.exports=r},function(n,e,t){var r=t(145);n.exports=r},function(n,e,t){var r=t(0);n.exports=!r((function(){var n=function(){}.bind();return"function"!=typeof n||n.hasOwnProperty("prototype")}))},function(n,e){n.exports=function(n){return null==n}},function(n,e){n.exports=function(){}},function(n,e,t){var r,o,i,a=t(102),u=t(6),c=t(8),s=t(18),f=t(10),d=t(48),l=t(50),p=t(37),h=u.TypeError;if(a||d.state){var v=d.state||(d.state=new(0,u.WeakMap));v.get=v.get,v.has=v.has,v.set=v.set,r=function(n,e){if(v.has(n))throw h("Object already initialized");return e.facade=n,v.set(n,e),e},o=function(n){return v.get(n)||{}},i=function(n){return v.has(n)}}else{var m=l("state");p[m]=!0,r=function(n,e){if(f(n,m))throw h("Object already initialized");return e.facade=n,s(n,m,e),e},o=function(n){return f(n,m)?n[m]:{}},i=function(n){return f(n,m)}}n.exports={set:r,get:o,has:i,enforce:function(n){return i(n)?o(n):r(n,{})},getterFor:function(n){return function(e){var t;if(!c(e)||(t=o(e)).type!==n)throw h("Incompatible receiver, "+n+" required");return t}}}},function(n,e){n.exports=function(n,e){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:e}}},function(n,e){n.exports={}},function(n,e,t){var r=t(74),o=t(56);n.exports=Object.keys||function(n){return r(n,o)}},function(n,e,t){var r=t(29),o=String;n.exports=function(n){if("Symbol"===r(n))throw TypeError("Cannot convert a Symbol value to a string");return o(n)}},function(n,e,t){var r=t(137);n.exports=r},function(n,e,t){var r=t(151);n.exports=r},function(n,e,t){var r=t(155);n.exports=r},function(n,e,t){var r=t(1),o=t(0),i=t(17),a=Object,u=r("".split);n.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(n){return"String"==i(n)?u(n,""):a(n)}:a},function(n,e,t){var r=t(103),o=t(68);n.exports=function(n){var e=r(n,"string");return o(e)?e:e+""}},function(n,e,t){var r=t(1);n.exports=r({}.isPrototypeOf)},function(n,e,t){var r=t(27),o=t(33);n.exports=function(n,e){var t=n[e];return o(t)?void 0:r(t)}},function(n,e){var t=String;n.exports=function(n){try{return t(n)}catch(n){return"Object"}}},function(n,e,t){var r=t(6),o=t(107),i=r["__core-js_shared__"]||o("__core-js_shared__",{});n.exports=i},function(n,e,t){var r=t(1),o=0,i=Math.random(),a=r(1..toString);n.exports=function(n){return"Symbol("+(void 0===n?"":n)+")_"+a(++o+i,36)}},function(n,e,t){var r=t(71),o=t(49),i=r("keys");n.exports=function(n){return i[n]||(i[n]=o(n))}},function(n,e,t){"use strict";var r=t(5),o=t(9),i=t(28),a=t(110),u=t(2),c=t(111),s=t(57),f=t(117),d=t(59),l=t(18),p=t(58),h=t(3),v=t(22),m=t(73),y=a.PROPER,w=a.CONFIGURABLE,g=m.IteratorPrototype,E=m.BUGGY_SAFARI_ITERATORS,_=h("iterator"),S=function(){return this};n.exports=function(n,e,t,a,h,m,b){c(t,e,a);var N,T,A,R=function(n){if(n===h&&C)return C;if(!E&&n in O)return O[n];switch(n){case"keys":case"values":case"entries":return function(){return new t(this,n)}}return function(){return new t(this)}},x=e+" Iterator",P=!1,O=n.prototype,I=O[_]||O["@@iterator"]||h&&O[h],C=!E&&I||R(h),D="Array"==e&&O.entries||I;if(D&&(N=s(D.call(new n)))!==Object.prototype&&N.next&&(i||s(N)===g||(f?f(N,g):u(N[_])||p(N,_,S)),d(N,x,!0,!0),i&&(v[x]=S)),y&&"values"==h&&I&&"values"!==I.name&&(!i&&w?l(O,"name","values"):(P=!0,C=function(){return o(I,this)})),h)if(T={values:R("values"),keys:m?C:R("keys"),entries:R("entries")},b)for(A in T)(E||P||!(A in O))&&p(O,A,T[A]);else r({target:e,proto:!0,forced:E||P},T);return i&&!b||O[_]===C||p(O,_,C,{name:h}),v[e]=C,T}},function(n,e,t){var r=t(17),o=t(1);n.exports=function(n){if("Function"===r(n))return o(n)}},function(n,e,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(n){var e=o(this,n);return!!e&&e.enumerable}:r},function(n,e,t){var r,o=t(13),i=t(112),a=t(56),u=t(37),c=t(114),s=t(66),f=t(50)("IE_PROTO"),d=function(){},l=function(n){return"<script>"+n+"<\/script>"},p=function(n){n.write(l("")),n.close();var e=n.parentWindow.Object;return n=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(n){}var n,e;h="undefined"!=typeof document?document.domain&&r?p(r):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(n=e.contentWindow.document).open(),n.write(l("document.F=Object")),n.close(),n.F):p(r);for(var t=a.length;t--;)delete h.prototype[a[t]];return h()};u[f]=!0,n.exports=Object.create||function(n,e){var t;return null!==n?(d.prototype=o(n),t=new d,d.prototype=null,t[f]=n):t=h(),void 0===e?t:i.f(t,e)}},function(n,e,t){var r=t(113);n.exports=function(n){var e=+n;return e!=e||0===e?0:r(e)}},function(n,e){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(n,e,t){var r=t(10),o=t(2),i=t(19),a=t(50),u=t(115),c=a("IE_PROTO"),s=Object,f=s.prototype;n.exports=u?s.getPrototypeOf:function(n){var e=i(n);if(r(e,c))return e[c];var t=e.constructor;return o(t)&&e instanceof t?t.prototype:e instanceof s?f:null}},function(n,e,t){var r=t(18);n.exports=function(n,e,t,o){return o&&o.enumerable?n[e]=t:r(n,e,t),n}},function(n,e,t){var r=t(60),o=t(12).f,i=t(18),a=t(10),u=t(116),c=t(3)("toStringTag");n.exports=function(n,e,t,s){if(n){var f=t?n:n.prototype;a(f,c)||o(f,c,{configurable:!0,value:e}),s&&!r&&i(f,"toString",u)}}},function(n,e,t){var r={};r[t(3)("toStringTag")]="z",n.exports="[object z]"===String(r)},function(n,e){n.exports=function(n,e){return{value:n,done:e}}},function(n,e,t){var r=t(29),o=t(46),i=t(33),a=t(22),u=t(3)("iterator");n.exports=function(n){if(!i(n))return o(n,u)||o(n,"@@iterator")||a[r(n)]}},function(n,e,t){"use strict";var r=t(16),o=t(34),i=t(22),a=t(35),u=t(12).f,c=t(51),s=t(61),f=t(28),d=t(4),l=a.set,p=a.getterFor("Array Iterator");n.exports=c(Array,"Array",(function(n,e){l(this,{type:"Array Iterator",target:r(n),index:0,kind:e})}),(function(){var n=p(this),e=n.target,t=n.kind,r=n.index++;return!e||r>=e.length?(n.target=void 0,s(void 0,!0)):s("keys"==t?r:"values"==t?e[r]:[r,e[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&d&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(n){}},function(n,e){var t="object"==typeof document&&document.all;n.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},function(n,e,t){var r=t(4),o=t(0),i=t(66);n.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(n,e,t){var r=t(6),o=t(8),i=r.document,a=o(i)&&o(i.createElement);n.exports=function(n){return a?i.createElement(n):{}}},function(n,e,t){var r=t(4),o=t(0);n.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(n,e,t){var r=t(26),o=t(2),i=t(45),a=t(69),u=Object;n.exports=a?function(n){return"symbol"==typeof n}:function(n){var e=r("Symbol");return o(e)&&i(e.prototype,u(n))}},function(n,e,t){var r=t(70);n.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(n,e,t){var r=t(104),o=t(0),i=t(6).String;n.exports=!!Object.getOwnPropertySymbols&&!o((function(){var n=Symbol();return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(n,e,t){var r=t(28),o=t(48);(n.exports=function(n,e){return o[n]||(o[n]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(n,e,t){var r=t(4),o=t(9),i=t(53),a=t(36),u=t(16),c=t(44),s=t(10),f=t(65),d=Object.getOwnPropertyDescriptor;e.f=r?d:function(n,e){if(n=u(n),e=c(e),f)try{return d(n,e)}catch(n){}if(s(n,e))return a(!o(i.f,n,e),n[e])}},function(n,e,t){"use strict";var r,o,i,a=t(0),u=t(2),c=t(8),s=t(54),f=t(57),d=t(58),l=t(3),p=t(28),h=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var n={};return r[h].call(n)!==n}))?r={}:p&&(r=s(r)),u(r[h])||d(r,h,(function(){return this})),n.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(n,e,t){var r=t(1),o=t(10),i=t(16),a=t(75).indexOf,u=t(37),c=r([].push);n.exports=function(n,e){var t,r=i(n),s=0,f=[];for(t in r)!o(u,t)&&o(r,t)&&c(f,t);for(;e.length>s;)o(r,t=e[s++])&&(~a(f,t)||c(f,t));return f}},function(n,e,t){var r=t(16),o=t(76),i=t(20),a=function(n){return function(e,t,a){var u,c=r(e),s=i(c),f=o(a,s);if(n&&t!=t){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((n||f in c)&&c[f]===t)return n||f||0;return!n&&-1}};n.exports={includes:a(!0),indexOf:a(!1)}},function(n,e,t){var r=t(55),o=Math.max,i=Math.min;n.exports=function(n,e){var t=r(n);return t<0?o(t+e,0):i(t,e)}},function(n,e,t){var r=t(55),o=Math.min;n.exports=function(n){return n>0?o(r(n),9007199254740991):0}},function(n,e,t){var r=t(5),o=t(1),i=t(37),a=t(8),u=t(10),c=t(12).f,s=t(79),f=t(123),d=t(125),l=t(49),p=t(127),h=!1,v=l("meta"),m=0,y=function(n){c(n,v,{value:{objectID:"O"+m++,weakData:{}}})},w=n.exports={enable:function(){w.enable=function(){},h=!0;var n=s.f,e=o([].splice),t={};t[v]=1,n(t).length&&(s.f=function(t){for(var r=n(t),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(n,e){if(!a(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!u(n,v)){if(!d(n))return"F";if(!e)return"E";y(n)}return n[v].objectID},getWeakData:function(n,e){if(!u(n,v)){if(!d(n))return!0;if(!e)return!1;y(n)}return n[v].weakData},onFreeze:function(n){return p&&h&&d(n)&&!u(n,v)&&y(n),n}};i[v]=!0},function(n,e,t){var r=t(74),o=t(56).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(n){return r(n,o)}},function(n,e,t){"use strict";var r=t(44),o=t(12),i=t(36);n.exports=function(n,e,t){var a=r(e);a in n?o.f(n,a,i(0,t)):n[a]=t}},function(n,e,t){var r=t(23),o=t(9),i=t(13),a=t(47),u=t(82),c=t(20),s=t(45),f=t(83),d=t(62),l=t(84),p=TypeError,h=function(n,e){this.stopped=n,this.result=e},v=h.prototype;n.exports=function(n,e,t){var m,y,w,g,E,_,S,b=!(!t||!t.AS_ENTRIES),N=!(!t||!t.IS_RECORD),T=!(!t||!t.IS_ITERATOR),A=!(!t||!t.INTERRUPTED),R=r(e,t&&t.that),x=function(n){return m&&l(m,"normal",n),new h(!0,n)},P=function(n){return b?(i(n),A?R(n[0],n[1],x):R(n[0],n[1])):A?R(n,x):R(n)};if(N)m=n.iterator;else if(T)m=n;else{if(!(y=d(n)))throw p(a(n)+" is not iterable");if(u(y)){for(w=0,g=c(n);g>w;w++)if((E=P(n[w]))&&s(v,E))return E;return new h(!1)}m=f(n,y)}for(_=N?n.next:m.next;!(S=o(_,m)).done;){try{E=P(S.value)}catch(n){l(m,"throw",n)}if("object"==typeof E&&E&&s(v,E))return E}return new h(!1)}},function(n,e,t){var r=t(3),o=t(22),i=r("iterator"),a=Array.prototype;n.exports=function(n){return void 0!==n&&(o.Array===n||a[i]===n)}},function(n,e,t){var r=t(9),o=t(27),i=t(13),a=t(47),u=t(62),c=TypeError;n.exports=function(n,e){var t=arguments.length<2?u(n):e;if(o(t))return i(r(t,n));throw c(a(n)+" is not iterable")}},function(n,e,t){var r=t(9),o=t(13),i=t(46);n.exports=function(n,e,t){var a,u;o(n);try{if(!(a=i(n,"return"))){if("throw"===e)throw t;return t}a=r(a,n)}catch(n){u=!0,a=n}if("throw"===e)throw t;if(u)throw a;return o(a),t}},function(n,e,t){var r=t(45),o=TypeError;n.exports=function(n,e){if(r(e,n))return n;throw o("Incorrect invocation")}},function(n,e,t){var r=t(23),o=t(1),i=t(43),a=t(19),u=t(20),c=t(87),s=o([].push),f=function(n){var e=1==n,t=2==n,o=3==n,f=4==n,d=6==n,l=7==n,p=5==n||d;return function(h,v,m,y){for(var w,g,E=a(h),_=i(E),S=r(v,m),b=u(_),N=0,T=y||c,A=e?T(h,b):t||l?T(h,0):void 0;b>N;N++)if((p||N in _)&&(g=S(w=_[N],N,E),n))if(e)A[N]=g;else if(g)switch(n){case 3:return!0;case 5:return w;case 6:return N;case 2:s(A,w)}else switch(n){case 4:return!1;case 7:s(A,w)}return d?-1:o||f?f:A}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(n,e,t){var r=t(128);n.exports=function(n,e){return new(r(n))(0===e?0:e)}},function(n,e,t){var r=t(17);n.exports=Array.isArray||function(n){return"Array"==r(n)}},function(n,e,t){var r=t(1),o=t(0),i=t(2),a=t(29),u=t(26),c=t(129),s=function(){},f=[],d=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=r(l.exec),h=!l.exec(s),v=function(n){if(!i(n))return!1;try{return d(s,f,n),!0}catch(n){return!1}},m=function(n){if(!i(n))return!1;switch(a(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(n))}catch(n){return!0}};m.sham=!0,n.exports=!d||o((function(){var n;return v(v.call)||!v(Object)||!v((function(){n=!0}))||n}))?m:v},function(n,e,t){var r=t(12);n.exports=function(n,e,t){return r.f(n,e,t)}},function(n,e,t){"use strict";var r=t(134).charAt,o=t(39),i=t(35),a=t(51),u=t(61),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(n){c(this,{type:"String Iterator",string:o(n),index:0})}),(function(){var n,e=s(this),t=e.string,o=e.index;return o>=t.length?u(void 0,!0):(n=r(t,o),e.index+=n.length,u(n,!1))}))},function(n,e,t){var r=t(147),o=TypeError;n.exports=function(n){if(r(n))throw o("The method doesn't accept regular expressions");return n}},function(n,e,t){var r=t(3)("match");n.exports=function(n){var e=/./;try{"/./"[n](e)}catch(t){try{return e[r]=!1,"/./"[n](e)}catch(n){}}return!1}},function(n,e,t){n.exports=t(100)},function(n,e,t){var r=t(101);t(135),n.exports=r},function(n,e,t){var r=t(160);n.exports=r},function(n,e){n.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";function r(n,e){for(var t=[],r=0;r<n.length;r++){var o=n[r].render(e);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(e),t.d(e,"Spinner",(function(){return E})),t.d(e,"SpinnerPage",(function(){return _})),t.d(e,"VenmoSpinner",(function(){return S})),t.d(e,"VenmoSpinnerPage",(function(){return b}));var o=function(){function n(n,e,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=n,this.props=e||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete e.onRender)}var e=n.prototype;return e.render=function(n){var e=n(this);return this.onRender&&this.onRender(e),e},e.renderChildren=function(n){return r(this.children,n)},n}(),i=function(){function n(n){this.type="fragment",this.children=void 0,this.children=n}return n.prototype.render=function(n){return r(this.children,n)},n}(),a=function(){function n(n){this.type="text",this.text=void 0,this.text=n}return n.prototype.render=function(n){return n(this)},n}(),u=function(){function n(n,e,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=n,this.props=e||{},this.children=t,this.props.children=t}var e=n.prototype;return e.renderComponent=function(n){var e=function(n){var e=c(Array.isArray(n)?n:[n]);return 1===e.length?e[0]:e.length>1?new i(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return r(this.children,n)},n}();function c(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(r)if("string"==typeof r||"number"==typeof r)e.push(new a(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=c(r);o<i.length;o++)e.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);e.push(r)}}}return e}var s,f,d,l=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];if(r=c(r),"string"==typeof n)return new o(n,e,r);if("function"==typeof n)return new u(n,e,r);throw new TypeError("Expected jsx element to be a string or a function")},p=function(n,e){return e},h=((s={}).svg="http://www.w3.org/2000/svg",s),v=((f={})["xlink:href"]="http://www.w3.org/1999/xlink",f);function m(n,e){return n.createTextNode(e.text)}function y(n,e){for(var t=e.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)n.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=v[i];u?n.setAttributeNS(u,i,a.toString()):n.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&n.setAttribute(i,"")}"iframe"!==n.tagName.toLowerCase()||t.id||n.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var w=((d={}).iframe=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");n.addEventListener("load",(function(){var e=n.contentWindow;if(!e)throw new Error("Expected frame to have contentWindow");for(var r=e.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(function(n){void 0===n&&(n={});var e=n.doc,t=void 0===e?document:e,r=function(n,e){if("component"===n.type)return n.renderComponent((function(n){return r(n,e)}));if("text"===n.type)return m(t,n);if("element"===n.type){var o=function(n,e,t){return n.createElementNS(t,e.name)}(t,n,e);return y(o,n),g(o,n,t,(function(n){return r(n,e)})),o}throw new TypeError("Unhandleable node")},o=function(n){if("component"===n.type)return n.renderComponent(o);if("text"===n.type)return m(t,n);if("element"===n.type){var e=h[n.name.toLowerCase()];if(e)return r(n,e);var i=function(n,e){return e.props.el?e.props.el:n.createElement(e.name)}(t,n);return y(i,n),g(i,n,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},d.script=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");n.text=t.text},d.default=function(n,e,t){for(var r=0,o=e.renderChildren(t);r<o.length;r++)n.appendChild(o[r])},d);function g(n,e,t,r){if(e.props.hasOwnProperty("innerHTML")){if(e.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=e.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===e.name?n.text=o:(n.innerHTML=o,function(n,e){void 0===e&&(e=window.document);for(var t=0,r=n.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=e.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(n,t))}else(w[e.name]||w.default)(n,e,r)}function E(n){return l("div",{class:"preloader spinner"},l("style",{nonce:n.nonce,innerHTML:"\n\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n\n .spinner {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 10\n }\n\n .spinner .spinWrap {\n width: 200px;\n height: 100px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: -100px;\n margin-top: -50px\n }\n\n .spinner .loader,\n .spinner .spinnerImage {\n height: 100px;\n width: 100px;\n position: absolute;\n top: 0;\n left: 50%;\n opacity: 1;\n filter: alpha(opacity=100)\n }\n\n .spinner .spinnerImage {\n margin: 28px 0 0 -25px;\n background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat\n }\n\n .spinner .loader {\n margin: 0 0 0 -55px;\n background-color: transparent;\n animation: rotation .7s infinite linear;\n border-left: 5px solid #cbcbca;\n border-right: 5px solid #cbcbca;\n border-bottom: 5px solid #cbcbca;\n border-top: 5px solid #2380be;\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"}),l("div",{class:"spinWrap"},l("p",{class:"spinnerImage"}),l("p",{class:"loader"})))}function _(n,e){var t=n.nonce;return l("html",null,l("head",null,l("title",null,"PayPal"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(E,{nonce:t}),e))}function S(n){return l(p,null,l("style",{nonce:n.nonce,innerHTML:'\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n .spinner {\n color: official;\n display: inline-block;\n width: 80px;\n height: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n }\n .spinner div {\n transform-origin: 40px 40px;\n animation: spinner 1.2s linear infinite;\n }\n .spinner div:after {\n content: " ";\n display: block;\n position: absolute;\n top: 20px;\n left: 37px;\n width: 3px;\n height: 10px;\n border-radius: 30%;\n background: #808080;\n }\n .spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n }\n .spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n }\n .spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n }\n .spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n }\n .spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n }\n .spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n }\n .spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n }\n .spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n }\n .spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n }\n .spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n }\n .spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n }\n .spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n }\n @keyframes spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n'}),l("div",{class:"spinner"},l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null)))}function b(n,e){var t=n.nonce;return l("html",null,l("head",null,l("title",null,"Venmo"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(S,{nonce:t}),e))}}])},function(n,e,t){var r=t(165);n.exports=r},,function(n,e,t){"undefined"!=typeof self&&self,n.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";t.r(e),t.d(e,"APM_LIST",(function(){return c})),t.d(e,"DEFAULT_COUNTRY",(function(){return P})),t.d(e,"DEFAULT_CURRENCY",(function(){return O})),t.d(e,"DEFAULT_INTENT",(function(){return I})),t.d(e,"DEFAULT_COMMIT",(function(){return C})),t.d(e,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(e,"DEFAULT_NONSALE_COMMIT",(function(){return M})),t.d(e,"DEFAULT_VAULT",(function(){return L})),t.d(e,"DEFAULT_COMPONENTS",(function(){return F})),t.d(e,"DEFAULT_DEBUG",(function(){return k})),t.d(e,"ENV",(function(){return H})),t.d(e,"MOBILE_ENV",(function(){return j})),t.d(e,"ERROR_CODE",(function(){return U})),t.d(e,"FPTI_KEY",(function(){return B})),t.d(e,"FPTI_USER_ACTION",(function(){return W})),t.d(e,"FPTI_DATA_SOURCE",(function(){return G})),t.d(e,"FPTI_FEED",(function(){return Z})),t.d(e,"FPTI_SDK_NAME",(function(){return z})),t.d(e,"FUNDING",(function(){return r})),t.d(e,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(e,"CARD",(function(){return i})),t.d(e,"WALLET_INSTRUMENT",(function(){return a})),t.d(e,"FUNDING_PRODUCTS",(function(){return u})),t.d(e,"COUNTRY",(function(){return s})),t.d(e,"LANG",(function(){return f})),t.d(e,"COUNTRY_LANGS",(function(){return d})),t.d(e,"BASE_SDK_METRIC_NAMESPACE",(function(){return K})),t.d(e,"payPalWebV5Dimensions",(function(){return q})),t.d(e,"INTENT",(function(){return l})),t.d(e,"COMMIT",(function(){return p})),t.d(e,"VAULT",(function(){return h})),t.d(e,"CURRENCY",(function(){return v})),t.d(e,"SDK_PATH",(function(){return m})),t.d(e,"WEB_SDK_BRIDGE_PATH",(function(){return y})),t.d(e,"SDK_SETTINGS",(function(){return w})),t.d(e,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(e,"SDK_QUERY_KEYS",(function(){return E})),t.d(e,"COMPONENTS",(function(){return _})),t.d(e,"DEBUG",(function(){return S})),t.d(e,"QUERY_BOOL",(function(){return b})),t.d(e,"UNKNOWN",(function(){return N})),t.d(e,"PROTOCOL",(function(){return T})),t.d(e,"PAGE_TYPES",(function(){return A})),t.d(e,"MERCHANT_ID_MAX",(function(){return R})),t.d(e,"DISPLAY_ONLY_VALUES",(function(){return x})),t.d(e,"PLATFORM",(function(){return Y})),t.d(e,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},f={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},d={AD:[f.EN,f.FR,f.ES,f.ZH],AE:[f.EN,f.FR,f.ES,f.ZH,f.AR],AG:[f.EN,f.FR,f.ES,f.ZH],AI:[f.EN,f.FR,f.ES,f.ZH],AL:[f.SQ,f.EN],AM:[f.EN,f.FR,f.ES,f.ZH],AN:[f.EN,f.FR,f.ES,f.ZH],AO:[f.EN,f.FR,f.ES,f.ZH],AR:[f.ES,f.EN],AT:[f.DE,f.EN],AU:[f.EN],AW:[f.EN,f.FR,f.ES,f.ZH],AZ:[f.EN,f.FR,f.ES,f.ZH],BA:[f.EN],BB:[f.EN,f.FR,f.ES,f.ZH],BE:[f.EN,f.NL,f.FR],BF:[f.FR,f.EN,f.ES,f.ZH],BG:[f.BG,f.EN],BH:[f.AR,f.EN,f.FR,f.ES,f.ZH],BI:[f.FR,f.EN,f.ES,f.ZH],BJ:[f.FR,f.EN,f.ES,f.ZH],BM:[f.EN,f.FR,f.ES,f.ZH],BN:[f.MS,f.EN],BO:[f.ES,f.EN,f.FR,f.ZH],BR:[f.PT,f.EN],BS:[f.EN,f.FR,f.ES,f.ZH],BT:[f.EN],BW:[f.EN,f.FR,f.ES,f.ZH],BY:[f.EN],BZ:[f.EN,f.ES,f.FR,f.ZH],CA:[f.EN,f.FR],CD:[f.FR,f.EN,f.ES,f.ZH],CG:[f.EN,f.FR,f.ES,f.ZH],CH:[f.DE,f.FR,f.EN],CI:[f.FR,f.EN],CK:[f.EN,f.FR,f.ES,f.ZH],CL:[f.ES,f.EN,f.FR,f.ZH],CM:[f.FR,f.EN],CN:[f.ZH],CO:[f.ES,f.EN,f.FR,f.ZH],CR:[f.ES,f.EN,f.FR,f.ZH],CV:[f.EN,f.FR,f.ES,f.ZH],CY:[f.EN],CZ:[f.CS,f.EN],DE:[f.DE,f.EN],DJ:[f.FR,f.EN,f.ES,f.ZH],DK:[f.DA,f.EN],DM:[f.EN,f.FR,f.ES,f.ZH],DO:[f.ES,f.EN,f.FR,f.ZH],DZ:[f.AR,f.EN,f.FR,f.ES,f.ZH],EC:[f.ES,f.EN,f.FR,f.ZH],EE:[f.ET,f.EN,f.RU],EG:[f.AR,f.EN,f.FR,f.ES,f.ZH],ER:[f.EN,f.FR,f.ES,f.ZH],ES:[f.ES,f.EN],ET:[f.EN,f.FR,f.ES,f.ZH],FI:[f.FI,f.EN],FJ:[f.EN,f.FR,f.ES,f.ZH],FK:[f.EN,f.FR,f.ES,f.ZH],FM:[f.EN],FO:[f.DA,f.EN,f.FR,f.ES,f.ZH],FR:[f.FR,f.EN],GA:[f.FR,f.EN,f.ES,f.ZH],GB:[f.EN],GD:[f.EN,f.FR,f.ES,f.ZH],GE:[f.EN,f.FR,f.ES,f.ZH],GF:[f.EN,f.FR,f.ES,f.ZH],GI:[f.EN,f.FR,f.ES,f.ZH],GL:[f.DA,f.EN,f.FR,f.ES,f.ZH],GM:[f.EN,f.FR,f.ES,f.ZH],GN:[f.FR,f.EN,f.ES,f.ZH],GP:[f.EN,f.FR,f.ES,f.ZH],GR:[f.EL,f.EN],GT:[f.ES,f.EN,f.FR,f.ZH],GW:[f.EN,f.FR,f.ES,f.ZH],GY:[f.EN,f.FR,f.ES,f.ZH],HK:[f.EN,f.ZH_HANT,f.ZH],HN:[f.ES,f.EN,f.FR,f.ZH],HR:[f.EN],HU:[f.HU,f.EN],ID:[f.ID,f.EN],IE:[f.EN,f.FR,f.ES,f.ZH],IL:[f.HE,f.EN],IN:[f.EN],IS:[f.EN],IT:[f.IT,f.EN],JM:[f.EN,f.ES,f.FR,f.ZH],JO:[f.AR,f.EN,f.FR,f.ES,f.ZH],JP:[f.JA,f.EN],KE:[f.EN,f.FR,f.ES,f.ZH],KG:[f.EN,f.FR,f.ES,f.ZH],KH:[f.EN],KI:[f.EN,f.FR,f.ES,f.ZH],KM:[f.FR,f.EN,f.ES,f.ZH],KN:[f.EN,f.FR,f.ES,f.ZH],KR:[f.KO,f.EN],KW:[f.AR,f.EN,f.FR,f.ES,f.ZH],KY:[f.EN,f.FR,f.ES,f.ZH],KZ:[f.EN,f.FR,f.ES,f.ZH],LA:[f.EN],LC:[f.EN,f.FR,f.ES,f.ZH],LI:[f.EN,f.FR,f.ES,f.ZH],LK:[f.SI,f.EN],LS:[f.EN,f.FR,f.ES,f.ZH],LT:[f.LT,f.EN,f.RU,f.ZH],LU:[f.EN,f.DE,f.FR,f.ES,f.ZH],LV:[f.LV,f.EN,f.RU],MA:[f.AR,f.EN,f.FR,f.ES,f.ZH],MC:[f.FR,f.EN],MD:[f.EN],ME:[f.EN],MG:[f.EN,f.FR,f.ES,f.ZH],MH:[f.EN,f.FR,f.ES,f.ZH],MK:[f.EN],ML:[f.FR,f.EN,f.ES,f.ZH],MN:[f.EN],MQ:[f.EN,f.FR,f.ES,f.ZH],MR:[f.EN,f.FR,f.ES,f.ZH],MS:[f.EN,f.FR,f.ES,f.ZH],MT:[f.EN],MU:[f.EN,f.FR,f.ES,f.ZH],MV:[f.EN],MW:[f.EN,f.FR,f.ES,f.ZH],MX:[f.ES,f.EN],MY:[f.MS,f.EN],MZ:[f.EN,f.FR,f.ES,f.ZH],NA:[f.EN,f.FR,f.ES,f.ZH],NC:[f.EN,f.FR,f.ES,f.ZH],NE:[f.FR,f.EN,f.ES,f.ZH],NF:[f.EN,f.FR,f.ES,f.ZH],NG:[f.EN],NI:[f.ES,f.EN,f.FR,f.ZH],NL:[f.NL,f.EN],NO:[f.NO,f.EN],NP:[f.EN],NR:[f.EN,f.FR,f.ES,f.ZH],NU:[f.EN,f.FR,f.ES,f.ZH],NZ:[f.EN,f.FR,f.ES,f.ZH],OM:[f.AR,f.EN,f.FR,f.ES,f.ZH],PA:[f.ES,f.EN,f.FR,f.ZH],PE:[f.ES,f.EN,f.FR,f.ZH],PF:[f.EN,f.FR,f.ES,f.ZH],PG:[f.EN,f.FR,f.ES,f.ZH],PH:[f.TL,f.EN],PL:[f.PL,f.EN],PM:[f.EN,f.FR,f.ES,f.ZH],PN:[f.EN,f.FR,f.ES,f.ZH],PT:[f.PT,f.EN],PW:[f.EN,f.FR,f.ES,f.ZH],PY:[f.ES,f.EN],QA:[f.EN,f.FR,f.ES,f.ZH,f.AR],RE:[f.EN,f.FR,f.ES,f.ZH],RO:[f.RO,f.EN],RS:[f.EN,f.FR,f.ES,f.ZH],RU:[f.RU,f.EN],RW:[f.FR,f.EN,f.ES,f.ZH],SA:[f.AR,f.EN,f.FR,f.ES,f.ZH],SB:[f.EN,f.FR,f.ES,f.ZH],SC:[f.FR,f.EN,f.ES,f.ZH],SE:[f.SV,f.EN],SG:[f.EN],SH:[f.EN,f.FR,f.ES,f.ZH],SI:[f.SL,f.EN],SJ:[f.EN,f.FR,f.ES,f.ZH],SK:[f.SK,f.EN],SL:[f.EN,f.FR,f.ES,f.ZH],SM:[f.EN,f.FR,f.ES,f.ZH],SN:[f.FR,f.EN,f.ES,f.ZH],SO:[f.EN,f.FR,f.ES,f.ZH],SR:[f.EN,f.FR,f.ES,f.ZH],ST:[f.EN,f.FR,f.ES,f.ZH],SV:[f.ES,f.EN,f.FR,f.ZH],SZ:[f.EN,f.FR,f.ES,f.ZH],TC:[f.EN,f.FR,f.ES,f.ZH],TD:[f.FR,f.EN,f.ES,f.ZH],TG:[f.FR,f.EN,f.ES,f.ZH],TH:[f.TH,f.EN],TJ:[f.EN,f.FR,f.ES,f.ZH],TM:[f.EN,f.FR,f.ES,f.ZH],TN:[f.AR,f.EN,f.FR,f.ES,f.ZH],TO:[f.EN],TR:[f.TR,f.EN],TT:[f.EN,f.FR,f.ES,f.ZH],TV:[f.EN,f.FR,f.ES,f.ZH],TW:[f.ZH_HANT,f.ZH,f.EN],TZ:[f.EN,f.FR,f.ES,f.ZH],UA:[f.EN,f.RU,f.FR,f.ES,f.ZH],UG:[f.EN,f.FR,f.ES,f.ZH],US:[f.EN,f.FR,f.ES,f.ZH],UY:[f.ES,f.EN,f.FR,f.ZH],VA:[f.EN,f.FR,f.ES,f.ZH],VC:[f.EN,f.FR,f.ES,f.ZH],VE:[f.ES,f.EN,f.FR,f.ZH],VG:[f.EN,f.FR,f.ES,f.ZH],VN:[f.VI,f.EN],VU:[f.EN,f.FR,f.ES,f.ZH],WF:[f.EN,f.FR,f.ES,f.ZH],WS:[f.EN],YE:[f.AR,f.EN,f.FR,f.ES,f.ZH],YT:[f.EN,f.FR,f.ES,f.ZH],ZA:[f.EN,f.FR,f.ES,f.ZH],ZM:[f.EN,f.FR,f.ES,f.ZH],ZW:[f.EN]},l={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},p={TRUE:!0,FALSE:!1},h={TRUE:!0,FALSE:!1},v={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},m="/sdk/js",y="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},S={TRUE:!0,FALSE:!1},b={TRUE:"true",FALSE:"false"},N="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,x={VAULTABLE:"vaultable"},P=s.US,O=v.USD,I=l.CAPTURE,C=p.TRUE,D=p.TRUE,M=p.TRUE,L=h.FALSE,F=_.BUTTONS,k=S.FALSE,H={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},j={ANDROID:"android",IOS:"iOS"},U={VALIDATION_ERROR:"validation_error"},B={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount"},W={COMMIT:"commit",CONTINUE:"continue"},G={PAYMENTS_SDK:"checkout"},Z={PAYMENTS_SDK:"payments_sdk"},z={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",q={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(n,e,t){t(63),t(120),t(133),t(91);var r=t(14);n.exports=r.Map},function(n,e,t){var r=t(6),o=t(2),i=r.WeakMap;n.exports=o(i)&&/native code/.test(String(i))},function(n,e,t){var r=t(9),o=t(8),i=t(68),a=t(46),u=t(106),c=t(3),s=TypeError,f=c("toPrimitive");n.exports=function(n,e){if(!o(n)||i(n))return n;var t,c=a(n,f);if(c){if(void 0===e&&(e="default"),t=r(c,n,e),!o(t)||i(t))return t;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(n,e)}},function(n,e,t){var r,o,i=t(6),a=t(105),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),n.exports=o},function(n,e){n.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(n,e,t){var r=t(9),o=t(2),i=t(8),a=TypeError;n.exports=function(n,e){var t,u;if("string"===e&&o(t=n.toString)&&!i(u=r(t,n)))return u;if(o(t=n.valueOf)&&!i(u=r(t,n)))return u;if("string"!==e&&o(t=n.toString)&&!i(u=r(t,n)))return u;throw a("Can't convert object to primitive value")}},function(n,e,t){var r=t(6),o=Object.defineProperty;n.exports=function(n,e){try{o(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}},function(n,e,t){var r=t(32),o=Function.prototype,i=o.apply,a=o.call;n.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(n,e,t){var r=t(0),o=t(2),i=/#|\.prototype\./,a=function(n,e){var t=c[u(n)];return t==f||t!=s&&(o(e)?r(e):!!e)},u=a.normalize=function(n){return String(n).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";n.exports=a},function(n,e,t){var r=t(4),o=t(10),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);n.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},function(n,e,t){"use strict";var r=t(73).IteratorPrototype,o=t(54),i=t(36),a=t(59),u=t(22),c=function(){return this};n.exports=function(n,e,t,s){var f=e+" Iterator";return n.prototype=o(r,{next:i(+!s,t)}),a(n,f,!1,!0),u[f]=c,n}},function(n,e,t){var r=t(4),o=t(67),i=t(12),a=t(13),u=t(16),c=t(38);e.f=r&&!o?Object.defineProperties:function(n,e){a(n);for(var t,r=u(e),o=c(e),s=o.length,f=0;s>f;)i.f(n,t=o[f++],r[t]);return n}},function(n,e){var t=Math.ceil,r=Math.floor;n.exports=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}},function(n,e,t){var r=t(26);n.exports=r("document","documentElement")},function(n,e,t){var r=t(0);n.exports=!r((function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}))},function(n,e,t){"use strict";var r=t(60),o=t(29);n.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(n,e,t){var r=t(118),o=t(13),i=t(119);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,e=!1,t={};try{(n=r(Object.prototype,"__proto__","set"))(t,[]),e=t instanceof Array}catch(n){}return function(t,r){return o(t),i(r),e?n(t,r):t.__proto__=r,t}}():void 0)},function(n,e,t){var r=t(1),o=t(27);n.exports=function(n,e,t){try{return r(o(Object.getOwnPropertyDescriptor(n,e)[t]))}catch(n){}}},function(n,e,t){var r=t(2),o=String,i=TypeError;n.exports=function(n){if("object"==typeof n||r(n))return n;throw i("Can't set "+o(n)+" as a prototype")}},function(n,e,t){t(121)},function(n,e,t){"use strict";t(122)("Map",(function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}}),t(130))},function(n,e,t){"use strict";var r=t(5),o=t(6),i=t(78),a=t(0),u=t(18),c=t(81),s=t(85),f=t(2),d=t(8),l=t(59),p=t(12).f,h=t(86).forEach,v=t(4),m=t(35),y=m.set,w=m.getterFor;n.exports=function(n,e,t){var m,g=-1!==n.indexOf("Map"),E=-1!==n.indexOf("Weak"),_=g?"set":"add",S=o[n],b=S&&S.prototype,N={};if(v&&f(S)&&(E||b.forEach&&!a((function(){(new S).entries().next()})))){var T=(m=e((function(e,t){y(s(e,T),{type:n,collection:new S}),null!=t&&c(t,e[_],{that:e,AS_ENTRIES:g})}))).prototype,A=w(n);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(n){var e="add"==n||"set"==n;!(n in b)||E&&"clear"==n||u(T,n,(function(t,r){var o=A(this).collection;if(!e&&E&&!d(t))return"get"==n&&void 0;var i=o[n](0===t?0:t,r);return e?this:i}))})),E||p(T,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else m=t.getConstructor(e,n,g,_),i.enable();return l(m,n,!1,!0),N[n]=m,r({global:!0,forced:!0},N),E||t.setStrong(m,n,g),m}},function(n,e,t){var r=t(17),o=t(16),i=t(79).f,a=t(124),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(n){return u&&"Window"==r(n)?function(n){try{return i(n)}catch(n){return a(u)}}(n):i(o(n))}},function(n,e,t){var r=t(76),o=t(20),i=t(80),a=Array,u=Math.max;n.exports=function(n,e,t){for(var c=o(n),s=r(e,c),f=r(void 0===t?c:t,c),d=a(u(f-s,0)),l=0;s<f;s++,l++)i(d,l,n[s]);return d.length=l,d}},function(n,e,t){var r=t(0),o=t(8),i=t(17),a=t(126),u=Object.isExtensible,c=r((function(){u(1)}));n.exports=c||a?function(n){return!!o(n)&&(!a||"ArrayBuffer"!=i(n))&&(!u||u(n))}:u},function(n,e,t){var r=t(0);n.exports=r((function(){if("function"==typeof ArrayBuffer){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}}))},function(n,e,t){var r=t(0);n.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(n,e,t){var r=t(88),o=t(89),i=t(8),a=t(3)("species"),u=Array;n.exports=function(n){var e;return r(n)&&(o(e=n.constructor)&&(e===u||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0),void 0===e?u:e}},function(n,e,t){var r=t(1),o=t(2),i=t(48),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(n){return a(n)}),n.exports=i.inspectSource},function(n,e,t){"use strict";var r=t(54),o=t(90),i=t(131),a=t(23),u=t(85),c=t(33),s=t(81),f=t(51),d=t(61),l=t(132),p=t(4),h=t(78).fastKey,v=t(35),m=v.set,y=v.getterFor;n.exports={getConstructor:function(n,e,t,f){var d=n((function(n,o){u(n,l),m(n,{type:e,index:r(null),first:void 0,last:void 0,size:0}),p||(n.size=0),c(o)||s(o,n[f],{that:n,AS_ENTRIES:t})})),l=d.prototype,v=y(e),w=function(n,e,t){var r,o,i=v(n),a=g(n,e);return a?a.value=t:(i.last=a={index:o=h(e,!0),key:e,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:n.size++,"F"!==o&&(i.index[o]=a)),n},g=function(n,e){var t,r=v(n),o=h(e);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==e)return t};return i(l,{clear:function(){for(var n=v(this),e=n.index,t=n.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete e[t.index],t=t.next;n.first=n.last=void 0,p?n.size=0:this.size=0},delete:function(n){var e=v(this),t=g(this,n);if(t){var r=t.next,o=t.previous;delete e.index[t.index],t.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==t&&(e.first=r),e.last==t&&(e.last=o),p?e.size--:this.size--}return!!t},forEach:function(n){for(var e,t=v(this),r=a(n,arguments.length>1?arguments[1]:void 0);e=e?e.next:t.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(n){return!!g(this,n)}}),i(l,t?{get:function(n){var e=g(this,n);return e&&e.value},set:function(n,e){return w(this,0===n?0:n,e)}}:{add:function(n){return w(this,n=0===n?0:n,n)}}),p&&o(l,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(n,e,t){var r=e+" Iterator",o=y(e),i=y(r);f(n,e,(function(n,e){m(this,{type:r,target:n,state:o(n),kind:e,last:void 0})}),(function(){for(var n=i(this),e=n.kind,t=n.last;t&&t.removed;)t=t.previous;return n.target&&(n.last=t=t?t.next:n.state.first)?d("keys"==e?t.key:"values"==e?t.value:[t.key,t.value],!1):(n.target=void 0,d(void 0,!0))}),t?"entries":"values",!t,!0),l(e)}}},function(n,e,t){var r=t(58);n.exports=function(n,e,t){for(var o in e)t&&t.unsafe&&n[o]?n[o]=e[o]:r(n,o,e[o],t);return n}},function(n,e,t){"use strict";var r=t(26),o=t(90),i=t(3),a=t(4),u=i("species");n.exports=function(n){var e=r(n);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},function(n,e){},function(n,e,t){var r=t(1),o=t(55),i=t(39),a=t(25),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),f=function(n){return function(e,t){var r,f,d=i(a(e)),l=o(t),p=d.length;return l<0||l>=p?n?"":void 0:(r=c(d,l))<55296||r>56319||l+1===p||(f=c(d,l+1))<56320||f>57343?n?u(d,l):r:n?s(d,l,l+2):f-56320+(r-55296<<10)+65536}};n.exports={codeAt:f(!1),charAt:f(!0)}},function(n,e,t){t(63);var r=t(136),o=t(6),i=t(29),a=t(18),u=t(22),c=t(3)("toStringTag");for(var s in r){var f=o[s],d=f&&f.prototype;d&&i(d)!==c&&a(d,c,s),u[s]=u.Array}},function(n,e){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(n,e,t){t(138);var r=t(14);n.exports=r.Object.assign},function(n,e,t){var r=t(5),o=t(139);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(n,e,t){"use strict";var r=t(4),o=t(1),i=t(9),a=t(0),u=t(38),c=t(140),s=t(53),f=t(19),d=t(43),l=Object.assign,p=Object.defineProperty,h=o([].concat);n.exports=!l||a((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var n={},e={},t=Symbol();return n[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(n){e[n]=n})),7!=l({},n)[t]||"abcdefghijklmnopqrst"!=u(l({},e)).join("")}))?function(n,e){for(var t=f(n),o=arguments.length,a=1,l=c.f,p=s.f;o>a;)for(var v,m=d(arguments[a++]),y=l?h(u(m),l(m)):u(m),w=y.length,g=0;w>g;)v=y[g++],r&&!i(p,m,v)||(t[v]=m[v]);return t}:l},function(n,e){e.f=Object.getOwnPropertySymbols},function(n,e,t){t(142);var r=t(30);n.exports=r("Array","find")},function(n,e,t){"use strict";var r=t(5),o=t(86).find,i=t(34),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(n,e,t){t(144);var r=t(30);n.exports=r("Array","includes")},function(n,e,t){"use strict";var r=t(5),o=t(75).includes,i=t(0),a=t(34);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(n,e,t){t(146);var r=t(30);n.exports=r("String","includes")},function(n,e,t){"use strict";var r=t(5),o=t(1),i=t(92),a=t(25),u=t(39),c=t(93),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(n){return!!~s(u(a(this)),u(i(n)),arguments.length>1?arguments[1]:void 0)}})},function(n,e,t){var r=t(8),o=t(17),i=t(3)("match");n.exports=function(n){var e;return r(n)&&(void 0!==(e=n[i])?!!e:"RegExp"==o(n))}},function(n,e,t){t(149);var r=t(14);n.exports=r.Object.entries},function(n,e,t){var r=t(5),o=t(150).entries;r({target:"Object",stat:!0},{entries:function(n){return o(n)}})},function(n,e,t){var r=t(4),o=t(0),i=t(1),a=t(57),u=t(38),c=t(16),s=i(t(53).f),f=i([].push),d=r&&o((function(){var n=Object.create(null);return n[2]=2,!s(n,2)})),l=function(n){return function(e){for(var t,o=c(e),i=u(o),l=d&&null===a(o),p=i.length,h=0,v=[];p>h;)t=i[h++],r&&!(l?t in o:s(o,t))||f(v,n?[t,o[t]]:o[t]);return v}};n.exports={entries:l(!0),values:l(!1)}},function(n,e,t){t(152);var r=t(14);n.exports=r.Object.keys},function(n,e,t){var r=t(5),o=t(19),i=t(38);r({target:"Object",stat:!0,forced:t(0)((function(){i(1)}))},{keys:function(n){return i(o(n))}})},function(n,e,t){t(154);var r=t(30);n.exports=r("String","startsWith")},function(n,e,t){"use strict";var r,o=t(5),i=t(52),a=t(72).f,u=t(77),c=t(39),s=t(92),f=t(25),d=t(93),l=t(28),p=i("".startsWith),h=i("".slice),v=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!(!l&&!m&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(n){var e=c(f(this));s(n);var t=u(v(arguments.length>1?arguments[1]:void 0,e.length)),r=c(n);return p?p(e,r,t):h(e,t,t+r.length)===r}})},function(n,e,t){t(91),t(156);var r=t(14);n.exports=r.Array.from},function(n,e,t){var r=t(5),o=t(157);r({target:"Array",stat:!0,forced:!t(159)((function(n){Array.from(n)}))},{from:o})},function(n,e,t){"use strict";var r=t(23),o=t(9),i=t(19),a=t(158),u=t(82),c=t(89),s=t(20),f=t(80),d=t(83),l=t(62),p=Array;n.exports=function(n){var e=i(n),t=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,h>2?arguments[2]:void 0));var y,w,g,E,_,S,b=l(e),N=0;if(!b||this===p&&u(b))for(y=s(e),w=t?new this(y):p(y);y>N;N++)S=m?v(e[N],N):e[N],f(w,N,S);else for(_=(E=d(e,b)).next,w=t?new this:[];!(g=o(_,E)).done;N++)S=m?a(E,v,[g.value,N],!0):g.value,f(w,N,S);return w.length=N,w}},function(n,e,t){var r=t(13),o=t(84);n.exports=function(n,e,t,i){try{return i?e(r(t)[0],t[1]):e(t)}catch(e){o(n,"throw",e)}}},function(n,e,t){var r=t(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(n){}n.exports=function(n,e){if(!e&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},n(i)}catch(n){}return t}},function(n,e,t){t(161),t(164);var r=t(30);n.exports=r("Array","flatMap")},function(n,e,t){"use strict";var r=t(5),o=t(162),i=t(27),a=t(19),u=t(20),c=t(87);r({target:"Array",proto:!0},{flatMap:function(n){var e,t=a(this),r=u(t);return i(n),(e=c(t,0)).length=o(e,t,t,r,0,1,n,arguments.length>1?arguments[1]:void 0),e}})},function(n,e,t){"use strict";var r=t(88),o=t(20),i=t(163),a=t(23),u=function(n,e,t,c,s,f,d,l){for(var p,h,v=s,m=0,y=!!d&&a(d,l);m<c;)m in t&&(p=y?y(t[m],m,e):t[m],f>0&&r(p)?(h=o(p),v=u(n,e,p,h,v,f-1)-1):(i(v+1),n[v]=p),v++),m++;return v};n.exports=u},function(n,e){var t=TypeError;n.exports=function(n){if(n>9007199254740991)throw t("Maximum allowed index exceeded");return n}},function(n,e,t){t(34)("flatMap")},function(n,e,t){t(166);var r=t(14);n.exports=r.Number.isNaN},function(n,e,t){t(5)({target:"Number",stat:!0},{isNaN:function(n){return n!=n}})},function(n,e,t){"use strict";function r(){return(r=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}t.r(e);var o=t(41),i=t.n(o),a=t(40),u=t.n(a),c=t(95),s=t.n(c);function f(n,e){return(f=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function d(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,f(n,e)}function l(n){try{if(!n)return!1;if("undefined"!=typeof Promise&&n instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&n instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&n instanceof window.constructor)return!1;var e={}.toString;if(e){var t=e.call(n);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof n.then)return!0}catch(n){return!1}return!1}var p,h=[],v=[],m=0;function y(){if(!m&&p){var n=p;p=null,n.resolve()}}function w(){m+=1}function g(){m-=1,y()}var E=function(){function n(n){var e=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=[],n){var t,r,o=!1,i=!1,a=!1;w();try{n((function(n){a?e.resolve(n):(o=!0,t=n)}),(function(n){a?e.reject(n):(i=!0,r=n)}))}catch(n){return g(),void this.reject(n)}g(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var e=n.prototype;return e.resolve=function(n){if(this.resolved||this.rejected)return this;if(l(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},e.reject=function(n){var e=this;if(this.resolved||this.rejected)return this;if(l(n))throw new Error("Can not reject promise with another promise");if(!n){var t=n&&"function"==typeof n.toString?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout((function(){e.errorHandled||function(n,e){if(-1===h.indexOf(n)){h.push(n),setTimeout((function(){throw n}),1);for(var t=0;t<v.length;t++)v[t](n,e)}}(n,e)}),1),this.dispatch(),this},e.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},e.dispatch=function(){var e=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(e||t)){this.dispatching=!0,w();for(var o=function(n,e){return n.then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))},i=0;i<r.length;i++){var a=r[i],u=a.onSuccess,c=a.onError,s=a.promise,f=void 0;if(e)try{f=u?u(this.value):this.value}catch(n){s.reject(n);continue}else if(t){if(!c){s.reject(this.error);continue}try{f=c(this.error)}catch(n){s.reject(n);continue}}if(f instanceof n&&(f.resolved||f.rejected)){var d=f;d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0}else l(f)?f instanceof n&&(f.resolved||f.rejected)?f.resolved?s.resolve(f.value):s.reject(f.error):o(f,s):s.resolve(f)}r.length=0,this.dispatching=!1,g()}},e.then=function(e,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new n;return this.handlers.push({promise:r,onSuccess:e,onError:t}),this.errorHandled=!0,this.dispatch(),r},e.catch=function(n){return this.then(void 0,n)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return n.try(e).then((function(){return t}))}),(function(t){return n.try(e).then((function(){throw t}))}))},e.timeout=function(n,e){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(e||new Error("Promise timed out after "+n+"ms"))}),n);return this.then((function(n){return clearTimeout(r),n}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.lazy=function(){return this.errorHandled=!0,this},n.resolve=function(e){return e instanceof n?e:l(e)?new n((function(n,t){return e.then(n,t)})):(new n).resolve(e)},n.reject=function(e){return(new n).reject(e)},n.asyncReject=function(e){return(new n).asyncReject(e)},n.all=function(e){var t=new n,r=e.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(n,e,i){return e.then((function(e){o[n]=e,0==(r-=1)&&t.resolve(o)}),(function(n){i.reject(n)}))},a=0;a<e.length;a++){var u=e[a];if(u instanceof n){if(u.resolved){o[a]=u.value,r-=1;continue}}else if(!l(u)){o[a]=u,r-=1;continue}i(a,n.resolve(u),t)}return 0===r&&t.resolve(o),t},n.hash=function(e){var t={},r=[],o=function(n){if(e.hasOwnProperty(n)){var o=e[n];l(o)?r.push(o.then((function(e){t[n]=e}))):t[n]=o}};for(var i in e)o(i);return n.all(r).then((function(){return t}))},n.map=function(e,t){return n.all(e.map(t))},n.onPossiblyUnhandledException=function(n){return function(n){return v.push(n),{cancel:function(){v.splice(v.indexOf(n),1)}}}(n)},n.try=function(e,t,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;w();try{o=e.apply(t,r||[])}catch(e){return g(),n.reject(e)}return g(),n.resolve(o)},n.delay=function(e){return new n((function(n){setTimeout(n,e)}))},n.isPromise=function(e){return!!(e&&e instanceof n)||l(e)},n.flush=function(){return e=p=p||new n,y(),e;var e},n}();function _(n){return"[object RegExp]"==={}.toString.call(n)}var S={IFRAME:"iframe",POPUP:"popup"},b="Call was rejected by callee.\r\n";function N(n){return void 0===n&&(n=window),n.location.protocol}function T(n){if(void 0===n&&(n=window),n.mockDomain){var e=n.mockDomain.split("//")[0];if(e)return e}return N(n)}function A(n){return void 0===n&&(n=window),"about:"===T(n)}function R(n){if(void 0===n&&(n=window),n)try{if(n.parent&&n.parent!==n)return n.parent}catch(n){}}function x(n){if(void 0===n&&(n=window),n&&!R(n))try{return n.opener}catch(n){}}function P(n){try{return!0}catch(n){}return!1}function O(n){void 0===n&&(n=window);var e=n.location;if(!e)throw new Error("Can not read window location");var t=N(n);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=R(n);return r&&P()?O(r):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function I(n){void 0===n&&(n=window);var e=O(n);return e&&n.mockDomain&&0===n.mockDomain.indexOf("mock:")?n.mockDomain:e}function C(n){if(!function(n){try{if(n===window)return!0}catch(n){}try{var e=Object.getOwnPropertyDescriptor(n,"location");if(e&&!1===e.enumerable)return!1}catch(n){}try{if(A(n)&&P())return!0}catch(n){}try{if(function(n){return void 0===n&&(n=window),"mock:"===T(n)}(n)&&P())return!0}catch(n){}try{if(O(n)===O(window))return!0}catch(n){}return!1}(n))return!1;try{if(n===window)return!0;if(A(n)&&P())return!0;if(I(window)===I(n))return!0}catch(n){}return!1}function D(n){if(!C(n))throw new Error("Expected window to be same domain");return n}function M(n,e){if(!n||!e)return!1;var t=R(e);return t?t===n:-1!==function(n){var e=[];try{for(;n.parent!==n;)e.push(n.parent),n=n.parent}catch(n){}return e}(e).indexOf(n)}function L(n){var e,t,r=[];try{e=n.frames}catch(t){e=n}try{t=e.length}catch(n){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=e[o]}catch(n){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=e[a]}catch(n){return r}if(!u)return r;r.push(u)}return r}function F(n){for(var e=[],t=0,r=L(n);t<r.length;t++){var o=r[t];e.push(o);for(var i=0,a=F(o);i<a.length;i++)e.push(a[i])}return e}function k(n){void 0===n&&(n=window);try{if(n.top)return n.top}catch(n){}if(R(n)===n)return n;try{if(M(window,n)&&window.top)return window.top}catch(n){}try{if(M(n,window)&&window.top)return window.top}catch(n){}for(var e=0,t=F(n);e<t.length;e++){var r=t[e];try{if(r.top)return r.top}catch(n){}if(R(r)===r)return r}}function H(n){var e=k(n);if(!e)throw new Error("Can not determine top window");var t=[].concat(F(e),[e]);return-1===t.indexOf(n)&&(t=[].concat(t,[n],F(n))),t}var j=[],U=[];function B(n,e){void 0===e&&(e=!0);try{if(n===window)return!1}catch(n){return!0}try{if(!n)return!0}catch(n){return!0}try{if(n.closed)return!0}catch(n){return!n||n.message!==b}if(e&&C(n))try{if(n.mockclosed)return!0}catch(n){}try{if(!n.parent||!n.top)return!0}catch(n){}var t=function(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}(j,n);if(-1!==t){var r=U[t];if(r&&function(n){if(!n.contentWindow)return!0;if(!n.parentNode)return!0;var e=n.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(n)){for(var t=n;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!e.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function W(n,e){for(var t=L(n),r=0;r<t.length;r++){var o=t[r];try{if(C(o)&&o.name===e&&-1!==t.indexOf(o))return o}catch(n){}}try{if(-1!==t.indexOf(n.frames[e]))return n.frames[e]}catch(n){}try{if(-1!==t.indexOf(n[e]))return n[e]}catch(n){}}function G(n){return void 0===n&&(n=window),x(n=n||window)||R(n)||void 0}function Z(n,e){for(var t=0;t<n.length;t++)for(var r=n[t],o=0;o<e.length;o++)if(r===e[o])return!0;return!1}function z(n){void 0===n&&(n=window);for(var e=0,t=n;t;)(t=R(t))&&(e+=1);return e}function K(n,e){var t=k(n)||n,r=k(e)||e;try{if(t&&r)return t===r}catch(n){}var o=H(n),i=H(e);if(Z(o,i))return!0;var a=x(t),u=x(r);return a&&Z(H(a),i)||u&&Z(H(u),o),!1}function q(n,e){if("string"==typeof n){if("string"==typeof e)return"*"===n||e===n;if(_(e))return!1;if(Array.isArray(e))return!1}return _(n)?_(e)?n.toString()===e.toString():!Array.isArray(e)&&Boolean(e.match(n)):!!Array.isArray(n)&&(Array.isArray(e)?JSON.stringify(n)===JSON.stringify(e):!_(e)&&n.some((function(n){return q(n,e)})))}function Y(n){return n.match(/^(https?|mock|file):\/\//)?n.split("/").slice(0,3).join("/"):I()}function V(n,e,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(B(n))return o&&clearTimeout(o),e();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function J(n){try{if(n===window)return!0}catch(n){if(n&&n.message===b)return!0}try{if("[object Window]"==={}.toString.call(n))return!0}catch(n){if(n&&n.message===b)return!0}try{if(window.Window&&n instanceof window.Window)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.self===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.parent===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.top===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&"__unlikely_value__"===n.__cross_domain_utils_window_check__)return!1}catch(n){return!0}try{if("postMessage"in n&&"self"in n&&"location"in n)return!0}catch(n){}return!1}function Q(n){if(C(n))return D(n).frameElement;for(var e=0,t=document.querySelectorAll("iframe");e<t.length;e++){var r=t[e];if(r&&r.contentWindow&&r.contentWindow===n)return r}}function X(n){if(function(n){return void 0===n&&(n=window),Boolean(R(n))}(n)){var e=Q(n);if(e&&e.parentElement)return void e.parentElement.removeChild(e)}try{n.close()}catch(n){}}function $(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}var nn,en=function(){function n(){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 n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,t=0;t<e.length;t++){var r=e[t];if(J(r)&&B(r)){if(n)try{n.delete(r)}catch(n){}e.splice(t,1),this.values.splice(t,1),t-=1}}},e.isSafeToReadWrite=function(n){return!J(n)},e.set=function(n,e){if(!n)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(n,e)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=this.name,o=n[r];return void(o&&o[0]===n?o[1]=e:Object.defineProperty(n,r,{value:[n,e],writable:!0}))}catch(n){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=$(i,n);-1===u?(i.push(n),a.push(e)):a[u]=e},e.get=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return e.get(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return t&&t[0]===n?t[1]:void 0}catch(n){}this._cleanupClosedWindows();var r=$(this.keys,n);if(-1!==r)return this.values[r]},e.delete=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];t&&t[0]===n&&(t[0]=t[1]=void 0)}catch(n){}this._cleanupClosedWindows();var r=this.keys,o=$(r,n);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},e.has=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return!(!t||t[0]!==n)}catch(n){}return this._cleanupClosedWindows(),-1!==$(this.keys,n)},e.getOrSet=function(n,e){if(this.has(n))return this.get(n);var t=e();return this.set(n,t),t},n}();function tn(n){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function rn(){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(n){return!1}}function on(n,e,t){return(on=rn()?Reflect.construct:function(n,e,t){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(n,r));return t&&f(o,t.prototype),o}).apply(null,arguments)}function an(n){var e="function"==typeof Map?new Map:void 0;return(an=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,t)}function t(){return on(n,arguments,tn(this).constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,n)})(n)}function un(n){var e=!1;try{(n instanceof window.Element||null!==n&&"object"==typeof n&&1===n.nodeType&&"object"==typeof n.style&&"object"==typeof n.ownerDocument)&&(e=!0)}catch(n){}return e}function cn(n){return n.name||n.__name__||n.displayName||"anonymous"}function sn(n,e){try{delete n.name,n.name=e}catch(n){}return n.__name__=n.displayName=e,n}function fn(n){if("function"==typeof btoa)return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(n,e){return String.fromCharCode(parseInt(e,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(n,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function dn(){var n="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return n.charAt(Math.floor(Math.random()*n.length))}))+"_"+fn((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ln(){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 pn(n){try{return JSON.stringify([].slice.call(n),(function(n,e){return"function"==typeof e?"memoize["+function(n){if(nn=nn||new en,null==n||"object"!=typeof n&&"function"!=typeof n)throw new Error("Invalid object");var e=nn.get(n);return e||(e=typeof n+":"+dn(),nn.set(n,e)),e}(e)+"]":un(e)?{}:e}))}catch(n){throw new Error("Arguments not serializable -- can not be used to memoize")}}function hn(){return{}}var vn=0,mn=0;function yn(n,e){void 0===e&&(e={});var t,r,o=e.thisNamespace,i=void 0!==o&&o,a=e.time,u=vn;vn+=1;var c=function(){for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];var s,f;u<mn&&(t=null,r=null,u=vn,vn+=1),s=i?(r=r||new en).getOrSet(this,hn):t=t||{};try{f=pn(o)}catch(e){return n.apply(this,arguments)}var d=s[f];if(d&&a&&Date.now()-d.time<a&&(delete s[f],d=null),d)return d.value;var l=Date.now(),p=n.apply(this,arguments);return s[f]={time:l,value:p},p};return c.reset=function(){t=null,r=null},sn(c,(e.name||cn(n))+"::memoized")}function wn(n){var e={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=pn(i);return e.hasOwnProperty(u)||(e[u]=E.try((function(){return n.apply(r,t)})).finally((function(){delete e[u]}))),e[u]}return t.reset=function(){e={}},sn(t,cn(n)+"::promiseMemoized")}function gn(n,e,t){void 0===t&&(t=[]);var r=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},o=pn(t);return r.hasOwnProperty(o)?r[o]:r[o]=e.apply(void 0,t)}function En(){}function _n(n){var e=!1;return sn((function(){if(!e)return e=!0,n.apply(this,arguments)}),cn(n)+"::once")}function Sn(n,e){if(void 0===e&&(e=1),e>=3)return"stringifyError stack overflow";try{if(!n)return"<unknown error: "+{}.toString.call(n)+">";if("string"==typeof n)return n;if(n instanceof Error){var t=n&&n.stack,r=n&&n.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+Sn(n,e+1)}}function bn(n){return"string"==typeof n?n:n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}function Nn(n,e){if(!e)return n;if(Object.assign)return Object.assign(n,e);for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Tn(n,e){void 0===e&&(e=Boolean);var t={};for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)&&(t[r]=n[r]);return t}function An(n){return n}function Rn(n,e){var t;return function r(){t=setTimeout((function(){n(),r()}),e)}(),{cancel:function(){clearTimeout(t)}}}function xn(){var n={},e={},t={on:function(n,t){var r=e[n]=e[n]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(n,e){var r=t.on(n,(function(){r.cancel(),e()}));return r},trigger:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=e[n],a=[];if(i)for(var u=function(){var n=i[c];a.push(E.try((function(){return n.apply(void 0,r)})))},c=0;c<i.length;c++)u();return E.all(a).then(En)},triggerOnce:function(e){if(n[e])return E.resolve();n[e]=!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 t.trigger.apply(t,[e].concat(o))},reset:function(){e={}}};return t}function Pn(n){return n.replace(/-([a-z])/g,(function(n){return n[1].toUpperCase()}))}function On(n,e,t){if(Array.isArray(n)){if("number"!=typeof e)throw new TypeError("Array key must be number")}else if("object"==typeof n&&null!==n&&"string"!=typeof e)throw new TypeError("Object key must be string");Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){delete n[e];var r=t();return n[e]=r,r},set:function(t){delete n[e],n[e]=t}})}function In(n){return[].slice.call(n)}function Cn(n){return"object"==typeof(e=n)&&null!==e&&"[object Object]"==={}.toString.call(n);var e}function Dn(n){if(!Cn(n))return!1;var e=n.constructor;if("function"!=typeof e)return!1;var t=e.prototype;return!!Cn(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Mn(n,e,t){if(void 0===t&&(t=""),Array.isArray(n)){for(var r=n.length,o=[],i=function(r){On(o,r,(function(){var o=t?t+"."+r:""+r,i=e(n[r],r,o);return(Dn(i)||Array.isArray(i))&&(i=Mn(i,e,o)),i}))},a=0;a<r;a++)i(a);return o}if(Dn(n)){var u={},c=function(r){if(!n.hasOwnProperty(r))return 1;On(u,r,(function(){var o=t?t+"."+r:""+r,i=e(n[r],r,o);return(Dn(i)||Array.isArray(i))&&(i=Mn(i,e,o)),i}))};for(var s in n)c(s);return u}throw new Error("Pass an object or array")}function Ln(n){return null!=n}function Fn(n){return"[object RegExp]"==={}.toString.call(n)}function kn(n,e,t){if(n.hasOwnProperty(e))return n[e];var r=t();return n[e]=r,r}function Hn(n){var e,t=[],r=!1,o={set:function(e,t){return r||(n[e]=t,o.register((function(){delete n[e]}))),t},register:function(n){var o=_n((function(){return n(e)}));return r?n(e):t.push(o),{cancel:function(){var n=t.indexOf(o);-1!==n&&t.splice(n,1)}}},all:function(n){e=n;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return E.all(o).then(En)}};return o}function jn(n,e){if(null==e)throw new Error("Expected "+n+" to be present");return e}yn.clear=function(){mn=vn},yn((function(n){if(Object.values)return Object.values(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(n[t]);return e}));var Un=function(n){function e(e){var t;return(t=n.call(this,e)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(t,t.constructor):t.stack=new Error(e).stack,t}return d(e,n),e}(an(Error));function Bn(){var n=document.body;if(!n)throw new Error("Body element not found");return n}function Wn(){return Boolean(document.body)&&"complete"===document.readyState}function Gn(){return Boolean(document.body)&&"interactive"===document.readyState}function Zn(n){return encodeURIComponent(n)}function zn(n){return gn(zn,(function(){var e={};if(!n)return e;if(-1===n.indexOf("="))return e;for(var t=0,r=n.split("&");t<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return e}),[n])}function Kn(n,e){return void 0===e&&(e={}),e&&Object.keys(e).length?(void 0===(t=r({},zn(n),e))&&(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("&")):n;var t}function qn(){return"undefined"!=typeof window&&void 0!==window.location}function Yn(){return gn(Yn,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var n=Math.random().toString();window.localStorage.setItem("__test__localStorage__",n);var e=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),n===e)return!0}}catch(n){}return!1}))}function Vn(n,e){n.appendChild(e)}function Jn(n,e){return void 0===e&&(e=document),un(n)?n:"string"==typeof n?e.querySelector(n):void 0}function Qn(n){return new E((function(e,t){var r=bn(n),o=Jn(n);if(o)return e(o);if(Wn())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Jn(n))?(e(o),void clearInterval(i)):Wn()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}yn((function(){return new E((function(n){if(Wn()||Gn())return n();var e=setInterval((function(){if(Wn()||Gn())return clearInterval(e),n()}),10)}))}));var Xn,$n=function(n){function e(){return n.apply(this,arguments)||this}return d(e,n),e}(Un);function ne(n){if((Xn=Xn||new en).has(n)){var e=Xn.get(n);if(e)return e}var t=new E((function(e,t){n.addEventListener("load",(function(){(function(n){if(function(){for(var n=0;n<j.length;n++){var e=!1;try{e=j[n].closed}catch(n){}e&&(U.splice(n,1),j.splice(n,1))}}(),n&&n.contentWindow)try{j.push(n.contentWindow),U.push(n)}catch(n){}})(n),e(n)})),n.addEventListener("error",(function(r){n.contentWindow?e(n):t(r)}))}));return Xn.set(n,t),t}function ee(n){return ne(n).then((function(n){if(!n.contentWindow)throw new Error("Could not find window in iframe");return n.contentWindow}))}function te(n,e){void 0===n&&(n={});var t=n.style||{},o=function(n,e,t){void 0===n&&(n="div"),void 0===e&&(e={}),n=n.toLowerCase();var r,o,i,a=document.createElement(n);if(e.style&&Nn(a.style,e.style),e.class&&(a.className=e.class.join(" ")),e.id&&a.setAttribute("id",e.id),e.attributes)for(var u=0,c=Object.keys(e.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,e.attributes[s])}if(e.styleSheet&&(r=a,o=e.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),e.html){if("iframe"===n)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=e.html}return a}("iframe",{attributes:r({allowTransparency:"true"},n.attributes||{}),style:r({backgroundColor:"transparent",border:"none"},t),html:n.html,class:n.class}),i=window.navigator.userAgent.match(/MSIE|Edge/i);return o.hasAttribute("id")||o.setAttribute("id",dn()),ne(o),e&&function(n,e){void 0===e&&(e=document);var t=Jn(n,e);if(t)return t;throw new Error("Can not find element: "+bn(n))}(e).appendChild(o),(n.url||i)&&o.setAttribute("src",n.url||"about:blank"),o}function re(n,e,t){return n.addEventListener(e,t),{cancel:function(){n.removeEventListener(e,t)}}}function oe(n){n.style.setProperty("display","")}function ie(n){n.style.setProperty("display","none","important")}function ae(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ue(n){return!(n&&n.parentNode&&n.ownerDocument&&n.ownerDocument.documentElement&&n.ownerDocument.documentElement.contains(n))}function ce(n,e,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,f=r.win,d=void 0===f?window:f,l=n.offsetWidth,p=n.offsetHeight,h=!1;e({width:l,height:p});var v,m,y=function(){if(!h&&function(n){return Boolean(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}(n)){var t=n.offsetWidth,r=n.offsetHeight;(i&&t!==l||u&&r!==p)&&e({width:t,height:r}),l=t,p=r}};return d.addEventListener("resize",y),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(y)).observe(n),m=Rn(y,10*s)):void 0!==d.MutationObserver?((v=new d.MutationObserver(y)).observe(n,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=Rn(y,10*s)):m=Rn(y,s),{cancel:function(){h=!0,v.disconnect(),window.removeEventListener("resize",y),m.cancel()}}}function se(n){for(;n.parentNode;)n=n.parentNode;return"[object ShadowRoot]"===n.toString()}var fe="undefined"!=typeof document?document.currentScript:null,de=yn((function(){if(fe)return fe;if(fe=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),t=e&&e[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(n){}}())return fe;throw new Error("Can not determine current script")})),le=dn(),pe=yn((function(){var n;try{n=de()}catch(n){return le}var e=n.getAttribute("data-uid");if(e&&"string"==typeof e)return e;if((e=n.getAttribute("data-uid-auto"))&&"string"==typeof e)return e;if(n.src){var t=function(n){for(var e="",t=0;t<n.length;t++){var r=n[t].charCodeAt(0)*t;n[t+1]&&(r+=n[t+1].charCodeAt(0)*(t-1)),e+=String.fromCharCode(97+Math.abs(r)%26)}return e}(JSON.stringify({src:n.src,dataset:n.dataset}));e="uid_"+t.slice(t.length-30)}else e=dn();return n.setAttribute("data-uid-auto",e),e}));function he(n){var e=n.name,t=n.lifetime,r=void 0===t?12e5:t,o=n.stickySessionId;return gn(he,(function(){var n,t="__"+e+"_storage__",i=dn();function a(e){var r,o=Yn();if(n&&(r=n),!r&&o){var a=window.localStorage.getItem(t);a&&(r=JSON.parse(a))}r||(r=ln()[t]),r||(r={id:i}),r.id||(r.id=i),n=r;var u=e(r);return o?window.localStorage.setItem(t,JSON.stringify(r)):ln()[t]=r,n=null,u}function u(){return a((function(n){return n.id}))}function c(n){return a((function(e){var t=e.__session__,i=Date.now();return t&&i-t.created>r&&(t=null),t||(t={guid:o||dn(),created:i}),e.__session__=t,n(t)}))}return{getState:a,getID:u,isStateFresh:function(){return u()===i},getSessionState:function(n){return c((function(e){return e.state=e.state||{},n(e.state)}))},getSessionID:function(){return c((function(n){return n.guid}))}}}),[{name:e,lifetime:r}])}var ve=[];function me(n){var e=n.url,t=n.method,r=void 0===t?"get":t,o=n.headers,i=void 0===o?{}:o,a=n.json,u=n.data,c=n.body,s=n.win,f=void 0===s?window:s,d=n.timeout,l=void 0===d?0:d;return new E((function(n,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,d=Object.keys(i);s<d.length;s++){var p=d[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(u||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<ve.length;h++)for(var v=(0,ve[h])(),m=0,y=Object.keys(v);m<y.length;m++){var w=y[m];o[w.toLowerCase()]=v[w]}var g=new f.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(n){void 0===n&&(n="");for(var e={},t=0,r=n.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);e[i.toLowerCase()]=a.join(":").trim()}return e}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+e+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),u=this.responseText;try{u=JSON.parse(u)}catch(n){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return n({status:this.status,headers:o,body:u})}),!1),g.addEventListener("error",(function(n){t(new Error("Request to "+r.toLowerCase()+" "+e+" failed: "+n.toString()+"."))}),!1),g.open(r,e,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(n){return encodeURIComponent(n)+"="+(u?encodeURIComponent(u[n]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+e+" has timed out"))},g.send(c)}))}function ye(n){return"string"==typeof n&&/^[0-9]+%$/.test(n)}function we(n){if("number"==typeof n)return n;var e=n.match(/^([0-9]+)(px|%)$/);if(!e)throw new Error("Could not match css value from "+n);return parseInt(e[1],10)}function ge(n){return we(n)+"px"}function Ee(n){return"number"==typeof n?ge(n):ye(n)?n:ge(n)}function _e(n,e){if("number"==typeof n)return n;if(ye(n))return parseInt(e*we(n)/100,10);var t;if("string"==typeof(t=n)&&/^[0-9]+px$/.test(t))return we(n);throw new Error("Can not normalize dimension: "+n)}var Se=yn((function(){try{return de()}catch(n){throw function(n,e,t){var r=t?Sn(t):"";return new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+n+e+'">\n\n'+r)}(__SDK_HOST__,__PATH__,n)}}));yn((function(){for(var n={},e=0,t=Se().attributes;e<t.length;e++){var r=t[e];0===r.name.indexOf("data-")&&(n[r.name]=r.value)}return n["data-uid"]=pe(),n})),yn((function(n){try{if(n&&"function"==typeof atob){var e=JSON.parse(window.atob(n.split(".")[1])).options;return(void 0===e?{}:e).customer_id||""}return""}catch(n){throw new Error("Error decoding SDK token")}}));var be=["warn","error"],Ne=["error","warn","info","debug"],Te=function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])};function Ae(n){var e=n.url,t=n.prefix,o=n.metricNamespacePrefix,i=n.logLevel,a=void 0===i?"warn":i,u=n.transport,c=void 0===u?function(n){var e=n.url,t=n.method,r=n.headers,o=n.json,i=n.enableSendBeacon,a=void 0!==i&&i;return E.try((function(){var n=window,i=C(n)?D(n):window,u=!1;return function(n){var e=n.headers,t=n.enableSendBeacon,r=e&&Object.keys(e).length;return!!(window&&window.navigator.sendBeacon&&!r&&t&&window.Blob)}({headers:r,enableSendBeacon:a})&&(u=function(n){var e=n.win,t=void 0===e?window:e,r=n.url,o=n.data,i=n.useBlob,a=void 0===i||i;try{var u=JSON.stringify(o);if(!t.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([u],{type:"application/json"});return t.navigator.sendBeacon(r,c)}return t.navigator.sendBeacon(r,u)}catch(n){return!1}}({win:i,url:e,data:o,useBlob:!0})),u||me({win:i,url:e,method:t,headers:r,json:o})})).then(En)}:u,s=n.flushInterval,f=void 0===s?6e4:s,d=n.enableSendBeacon,l=void 0!==d&&d,p=[],h=[],v=[],m=[],y=[],w=[],g=[],_=[];function S(n,e,t){if(qn()&&window.console&&window.console.log&&!(Ne.indexOf(n)>Ne.indexOf(a))){var r=[e];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[n]&&window.console[n].apply?window.console[n].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(n){}}}function b(){return E.try((function(){if(qn()&&"file:"!==window.location.protocol&&(p.length||h.length||v.length)){for(var n={},t=0;t<y.length;t++)Te(n,(0,y[t])(n));for(var r,o={},i=0;i<_.length;i++)Te(o,(0,_[i])(o));return e&&(r=c({method:"POST",url:e,headers:o,json:{events:p,meta:n,tracking:h,metrics:v},enableSendBeacon:l}).catch(En)),p=[],h=[],v=[],E.resolve(r).then(En)}}))}var N,T,A,R,x=(void 0===T&&(T=50),sn((function(){R&&clearTimeout(R);var n=A=A||new E;return R=setTimeout((function(){A=null,R=null,E.try(N).then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))}),T),n}),cn(N=b)+"::promiseDebounced"));function P(n,e,o){if(void 0===o&&(o={}),!qn())return M;t&&(e=t+"_"+e);for(var i=r({},Tn(o),{timestamp:Date.now().toString()}),a=0;a<m.length;a++)Te(i,(0,m[a])(i));return function(n,e,t){p.push({level:n,event:e,payload:t}),-1!==be.indexOf(n)&&x()}(n,e,i),S(n,e,i),M}function O(n,e){return n.push(e),M}function I(n){if(!qn())return M;o&&(n.metricNamespace=o+"."+n.metricNamespace),g.length>0&&!n.dimensions&&(n.dimensions={});for(var e=0;e<g.length;e++)Te(n.dimensions||{},(0,g[e])(n.dimensions||{}));return S("debug","metric."+n.metricNamespace,n.dimensions||{}),v.push(n),M}qn()&&Rn(x,f),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){b()})),window.addEventListener("unload",(function(){b()})),window.addEventListener("pagehide",(function(){b()})));var M={debug:function(n,e){return P("debug",n,e)},info:function(n,e){return P("info",n,e)},warn:function(n,e){return P("warn",n,e)},error:function(n,e){return P("error",n,e)},track:function(n){if(void 0===n&&(n={}),!qn())return M;for(var e=Tn(n),t=0;t<w.length;t++)Te(e,(0,w[t])(e));return S("debug","track",e),h.push(e),M},metric:I,metricCounter:function(n){var e;return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:null!=(e=n.value)?e:1,metricType:"counter",dimensions:n.dimensions})},metricGauge:function(n){return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:n.value,metricType:"gauge",dimensions:n.dimensions})},metricHistogram:function(n){return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:n.value,metricType:"histogram",dimensions:n.dimensions})},flush:x,immediateFlush:b,addPayloadBuilder:function(n){return O(m,n)},addMetaBuilder:function(n){return O(y,n)},addMetricDimensionBuilder:function(n){return O(g,n)},addTrackingBuilder:function(n){return O(w,n)},addHeaderBuilder:function(n){return O(_,n)},setTransport:function(n){return c=n,M},configure:function(n){return n.url&&(e=n.url),n.prefix&&(t=n.prefix),n.logLevel&&(a=n.logLevel),n.transport&&(c=n.transport),n.flushInterval&&(f=n.flushInterval),n.enableSendBeacon&&(l=n.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return h},get metrics(){return v}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Re,xe=yn((function(){return Ae({url:(void 0===(n="/xoplatform/logger/api/logger")&&(n=""),"https://www.paypal.com"+n),metricNamespacePrefix:"pp.sdks.ppcp"});var n}));function Pe(n,e,t,r,o,i,a){try{var u=n[i](a),c=u.value}catch(n){return void t(n)}u.done?e(c):Promise.resolve(c).then(r,o)}function Oe(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){Pe(i,r,o,a,u,"next",n)}function u(n){Pe(i,r,o,a,u,"throw",n)}a(void 0)}))}}var Ie=((Re={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Re.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Re.sandbox="https://c.paypal.com/da/r/fb.js",Re.production="https://c.paypal.com/da/r/fb.js",Re.test="https://c.paypal.com/da/r/fb.js",Re);yn((function(n){var e=n.env,t=n.cspNonce,r=n.queryStringParams,o=void 0===r?{}:r;!function(n){var e=n.env,t=n.cspNonce,r=void 0===t?"":t,o=n.clientMetadataID,i=n.appName;new E((function(n){var t,a={f:o,s:i,io:!0,cb1:"fnCallback"};"sandbox"===e&&(a.sandbox=!0);var u=document.createElement("script");u.setAttribute("nonce",r),u.setAttribute("type","application/json"),u.setAttribute("id","fconfig"),u.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99"),u.text=JSON.stringify(a),null==(t=document.body)||t.appendChild(u),n()}))}({env:e,cspNonce:t,clientMetadataID:n.clientMetadataID,appName:n.appName});var i,a=function(n){var e=n.cspNonce,t=n.env,r=n.queryStringParams,o=void 0===r?{}:r;return new E((function(n,r){var i,a=document.createElement("script"),u=Object.keys(o).map((function(n){return n+"="+encodeURIComponent(String(o[n]))})).join("&"),c=u.length?Ie[t]+"?"+u:Ie[t];a.setAttribute("nonce",e||""),a.setAttribute("src",c),window.fnCallback=n,null==(i=document.body)||i.appendChild(a),a.addEventListener("load",(function(){n()})),a.addEventListener("error",(function(){r(new Error("Fraudnet failed to load."))})),a.addEventListener("abort",(function(){r(new Error("Fraudnet load was aborted."))}))}))}({cspNonce:t,env:e,queryStringParams:o}).catch((function(){xe().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=Oe((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(n){xe().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),yn((function(n){xe().info("rest_api_create_access_token");var e,t=fn(n+":");return me({method:"post",url:(e="/v1/oauth2/token",void 0===e&&(e=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===I()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+e),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(e){var t=e.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+n+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),yn(xn);var Ce,De,Me,Le,Fe,ke={alg:"RS256",create:{hash:"SHA-256",modulusLength:4096,name:"RSASSA-PKCS1-v1_5",publicExponent:new Uint8Array([1,0,1])},extractable:!1,sign:{hash:"SHA-256",name:"RSASSA-PKCS1-v1_5"},usages:["sign","verify"]},He=(De=Oe((function*(){if(!Ce){var n=ke.create,e=ke.extractable,t=ke.usages,r=yield window.crypto.subtle.generateKey(n,e,t);Ce=Ce||{publicKey:r.publicKey,privateKey:r.privateKey}}return Ce})),function(){return De.apply(this,arguments)}),je=function(n){return new Uint8Array(n.split("").map((function(n){return n.charCodeAt(0)})))},Ue=function(n){return String.fromCharCode.apply(String,n)},Be=function(n){return btoa(n).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},We=(Me=Oe((function*(n){var e=je(n),t=yield window.crypto.subtle.digest("sha-256",e),r=Ue(new Uint8Array(t));return Be(r)})),function(n){return Me.apply(this,arguments)}),Ge=(Le=Oe((function*(n){var e=n.crv,t=n.e,r=n.kty,o=n.n,i=n.x,a=n.y;return yield We(JSON.stringify({crv:e,e:t,kty:r,n:o,x:i,y:a}))})),function(n){return Le.apply(this,arguments)}),Ze=(Fe=Oe((function*(n){var e=n.accessToken,t=n.method,r=n.nonce,o=n.publicKey,i=n.privateKey,a=n.uri,u=yield window.crypto.subtle.exportKey("jwk",o),c=Be(JSON.stringify({alg:ke.alg,typ:"dpop+jwt",jwk:u})),s={ath:e?yield We(e):void 0,cnf:{jkt:yield Ge(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},f=Be(JSON.stringify(s)),d=yield window.crypto.subtle.sign(ke.sign,i,je(c+"."+f));return c+"."+f+"."+Be(Ue(new Uint8Array(d)))})),function(n){return Fe.apply(this,arguments)}),ze=(Oe((function*(n){var e=n.accessToken,t=n.method,o=n.uri,i=n.nonce,a=yield He(),u=a.privateKey,c=a.publicKey;return r({},e&&{Authorization:"DPoP "+e},{DPoP:yield Ze({accessToken:e,method:t,uri:o,nonce:i,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),Ke={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments"};function qe(){return!1}function Ye(){return"stage"}function Ve(){}var Je=("undefined"!=typeof document?document:{}).currentScript;function Qe(){return Je||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Xe(){}function $e(){var n;return(null==(n=Qe())?void 0:n.getAttribute("data-pp-namespace"))||"paypal"}function nt(){return"1.68.1"}function et(){return Object.values(Ke).some((function(n){return window.name.startsWith("__zoid__"+n.replace(/-/g,"_"))}))}function tt(){return he({name:$e()})}function rt(){return tt().getSessionID()}function ot(){return tt().getID()}function it(){}function at(){var n;return!!(null!=(n=window.__DEV_TOUCHPOINT__)?n:void 0)||void 0}var ut=t(15),ct=t.n(ut),st=t(7),ft=t.n(st),dt=t(31),lt=t.n(dt),pt=t(21),ht=t.n(pt);function vt(n,e){for(var t=[],r=0;r<n.length;r++){var o=n[r].render(e);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var mt=function(){function n(n,e,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=n,this.props=e||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete e.onRender)}var e=n.prototype;return e.render=function(n){var e=n(this);return this.onRender&&this.onRender(e),e},e.renderChildren=function(n){return vt(this.children,n)},n}(),yt=function(){function n(n){this.type="fragment",this.children=void 0,this.children=n}return n.prototype.render=function(n){return vt(this.children,n)},n}(),wt=function(){function n(n){this.type="text",this.text=void 0,this.text=n}return n.prototype.render=function(n){return n(this)},n}(),gt=function(){function n(n,e,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=n,this.props=e||{},this.children=t,this.props.children=t}var e=n.prototype;return e.renderComponent=function(n){var e=function(n){var e=Et(Array.isArray(n)?n:[n]);return 1===e.length?e[0]:e.length>1?new yt(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return vt(this.children,n)},n}();function Et(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(r)if("string"==typeof r||"number"==typeof r)e.push(new wt(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Et(r);o<i.length;o++)e.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);e.push(r)}}}return e}var _t,St,bt,Nt=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=Et(r),"string"==typeof n)return new mt(n,e,r);if("function"==typeof n)return new gt(n,e,r);throw new TypeError("Expected jsx element to be a string or a function")},Tt=((_t={}).svg="http://www.w3.org/2000/svg",_t),At=((St={})["xlink:href"]="http://www.w3.org/1999/xlink",St);function Rt(n,e){return n.createTextNode(e.text)}function xt(n,e){for(var t=e.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)n.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=At[i];u?n.setAttributeNS(u,i,a.toString()):n.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&n.setAttribute(i,"")}"iframe"!==n.tagName.toLowerCase()||t.id||n.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var Pt=((bt={}).iframe=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");n.addEventListener("load",(function(){var e=n.contentWindow;if(!e)throw new Error("Expected frame to have contentWindow");for(var r=e.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(It({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},bt.script=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");n.text=t.text},bt.default=function(n,e,t){for(var r=0,o=e.renderChildren(t);r<o.length;r++)n.appendChild(o[r])},bt);function Ot(n,e,t,r){if(e.props.hasOwnProperty("innerHTML")){if(e.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=e.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===e.name?n.text=o:(n.innerHTML=o,function(n,e){void 0===e&&(e=window.document);for(var t=0,r=n.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=e.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(n,t))}else(Pt[e.name]||Pt.default)(n,e,r)}function It(n){void 0===n&&(n={});var e=n.doc,t=void 0===e?document:e,r=function(n,e){if("component"===n.type)return n.renderComponent((function(n){return r(n,e)}));if("text"===n.type)return Rt(t,n);if("element"===n.type){var o=function(n,e,t){return n.createElementNS(t,e.name)}(t,n,e);return xt(o,n),Ot(o,n,t,(function(n){return r(n,e)})),o}throw new TypeError("Unhandleable node")},o=function(n){if("component"===n.type)return n.renderComponent(o);if("text"===n.type)return Rt(t,n);if("element"===n.type){var e=Tt[n.name.toLowerCase()];if(e)return r(n,e);var i=function(n,e){return e.props.el?e.props.el:n.createElement(e.name)}(t,n);return xt(i,n),Ot(i,n,t,o),i}throw new TypeError("Unhandleable node")};return o}function Ct(n){var e=new Map;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=JSON.stringify(r);return e.has(i)||e.set(i,n.apply(void 0,r)),e.get(i)}}function Dt(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.apply(void 0,t.concat(r))}}function Mt(n,e){return void 0===e&&(e=n.length),function t(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length<e?function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return t.apply(void 0,o.concat(e))}:n.apply(void 0,o)}}Mt((function(n,e){return e[n]})),Mt((function(n,e){var t;return(t={})[n]=e,t})),Ct((function(n){return new E((function(e){var t=document.createElement("script");t.src=n,t.addEventListener("load",(function(){document.body.removeChild(t),e()})),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return document.body.appendChild(t)})):document.body.appendChild(t)}))}));var Lt=function(){return(new Date).getTime()},Ft=Ct((function(){var n=document.querySelector('meta[name="viewport"]')||Nt("meta",{name:"viewport",content:""}).render(It({doc:document}));return n.parentNode||document.head.appendChild(n),[function(){var e,t,r;n.__pp_prev_content__||(n.__pp_prev_content__=null!=(e=n.getAttribute("content"))?e:"",n.setAttribute("content","width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, shrink-to-fit=no"),document.body.__pp_prev_overflow__=null!=(t=document.body.style.overflow)?t:"",document.body.__pp_prev_msOverflowStyle__=null!=(r=document.body.style.msOverflowStyle)?r:"",document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("-ms-overflow-style","scrollbar"))},function(){n.__pp_prev_content__&&n.setAttribute("content",n.__pp_prev_content__),delete n.__pp_prev_content__,document.body.style.setProperty("overflow",document.body.__pp_prev_overflow__),document.body.style.setProperty("-ms-overflow-style",document.body.__pp_prev_msOverflowStyle__),delete document.body.__pp_prev_overflow__,delete document.body.__pp_prev_msOverflowStyle__}]}));function kt(n){if(void 0===n)return"NONE";switch(n.toUpperCase()){case"LT_NQEZ":case"LT_NQGZ":case"LT_MQEZ":case"LT_MQEZ_RB":case"LT_MQGZ":case"LT_SQEZ":case"LT_SQEZ_RB":case"LT_SQGZ":case"GPL:EQZ":case"GPL:GTZ":case"GPLQ:EQZ":case"GPLQ:GTZ":case"GPL:EQZ:NON-DE":case"GPL:GTZ:NON-DE":case"GPLQ:EQZ:NON-DE":case"GPLQ:GTZ:NON-DE":case"PLLT_NQ_EZ_XB":case"PLLT_NQ_GZ_XB":case"PLLT_MQ_EZ_XB":case"PLLT_MQ_GZ_XB":case"PLLT_NQ_EZ":case"PLLT_NQ_GZ":case"PLLT_MQ_EZ":case"PLLT_MQ_GZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case ze.PAY_LATER_LONG_TERM:return ze.PAY_LATER_LONG_TERM;case"GPL":case"GPLQ":case"GPLNQ":case"GPLNQ_RANGE":case"PL":case"PLQ":case"ST_SQ":case"ST_NQ":case"SHORT_TERM:Q":case"SHORT_TERM:NQ":case"SHORT_TERM:NO_AMOUNT":case"PLST_NQ":case"PLST_SQ":case ze.PAY_LATER_SHORT_TERM:return ze.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case ze.PAY_LATER_PAY_IN_1:return ze.PAY_LATER_PAY_IN_1;case"NI":case"NI:NON-US":case"NIQ":case"NIQ:NON-US":case"PPCNI_NQ":case"PPCNI_NQ_XB":case"PPCNI_SQ":case"PPCNI_SQ_XB":case ze.PAYPAL_CREDIT_NO_INTEREST:return ze.PAYPAL_CREDIT_NO_INTEREST;case ze.PAY_LATER:return ze.PAY_LATER;case ze.REWARDS:return ze.REWARDS;default:return}}function Ht(n,e){var t=void 0===e?{}:e,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===et()&&console.warn("PayPal Messages Debug:",n,null!=o?o:"")}var jt=t(42),Ut=t.n(jt),Bt=t(96),Wt=t.n(Bt),Gt=t(11),Zt=t.n(Gt);function zt(n){return ht()(n).reduce((function(n,e){var t,o,i,a=e[0],u=e[1];return Array.isArray(u)?r({},n,((o={})[a]=[].concat(u),o)):r({},n,"object"==typeof u?((i={})[a]=zt(u),i):((t={})[a]=u,t))}),{})}function Kt(n,e){return function n(e,t){return ht()(t).reduce((function(t,o){var i,a,u,c,s=o[0],f=o[1];return Array.isArray(f)?r({},t,((a={})[s]=[].concat(f),a)):"object"!=typeof f||null===f||e[s]&&"object"==typeof e[s]&&!Array.isArray(e[s])?r({},t,"object"==typeof f&&null!==f?((c={})[s]=n(e[s],f),c):((i={})[s]=f,i)):r({},t,((u={})[s]=zt(f),u))}),e)}(zt(n),e)}function qt(n,e,t){var r;void 0===t&&(t="-");var o,i=n.indexOf(t);if(-1===i)return(o={})[n]=e,o;var a=n.slice(0,i),u=n.slice(i+1);return(r={})[a]=qt(u,e,t),r}function Yt(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName}function Vt(n){var e={buyercountry:"buyerCountry",merchantid:"merchantId",cspnonce:"cspNonce",ectoken:"ecToken",contextualcomponents:"contextualComponents",customerid:"customerId",fontfamily:"fontFamily",fontsource:"fontSource",onclick:"onClick",onapply:"onApply",onrender:"onRender",pagetype:"pageType","style-text-fontfamily":"style-text-fontFamily","style-text-fontsource":"style-text-fontSource"},t=["onclick","onapply","onrender"],r=Ut()(n.attributes).filter((function(n){var e=n.nodeName;return Zt()(e,"data-pp-")})).reduce((function(n,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=ft()(t,a)?new Function(o):o;return Kt(n,function(n,e){if(Zt()(e,"["))try{return qt(n,JSON.parse(e.replace(/'/g,'"')))}catch(n){}return qt(n,e)}(null!=(i=e[a])?i:a,u))}return n}),{});if(!n.firstElementChild||"SCRIPT"!==n.firstElementChild.tagName||"text/template"!==n.firstElementChild.getAttribute("type"))return r;var o=n.firstElementChild.textContent.trim();return n.removeChild(n.firstElementChild),Kt(r,{style:{markup:o}})}Mt((function(n,e,t){return e.getElementsByClassName(n+"__"+t)[0]})),Mt((function(n,e){var t=document.createElement("style");t.textContent=e,n.insertBefore(t,n.firstChild)})),Mt((function(n,e){if(Array.isArray(e))e.forEach((function(e){return n.appendChild(e)}));else if(e instanceof HTMLElement)n.appendChild(e);else if("string"==typeof e){var t=document.createElement("span");t.innerHTML=e,n.appendChild(t)}else!1===e&&n.parentNode.removeChild(n)})),Mt((function(n,e){if(Array.isArray(e))[].concat(e).reverse().forEach((function(e){return n.insertBefore(e,n.firstChild)}));else if(e instanceof HTMLElement)n.insertBefore(e,n.firstChild);else if("string"==typeof e){var t=document.createElement("span");t.innerHTML=e,n.insertBefore(t,n.firstChild)}else!1===e&&n.parentNode.removeChild(n)}));var Jt=Mt((function(n,e,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(e))e.forEach((function(e){return Jt(n,e,t)}));else if("string"==typeof e){var o=new Image;o.alt=t,o.className="message__logo",o.src=e,r&&(o.srcset=r),n.appendChild(o)}else if("object"==typeof e){var i=e.src,a=e.dimensions,u=a[0],c=a[1],s=new Image;s.src=i,s.alt=t;var f=document.createElement("div");f.className="message__logo message__logo--svg";var d=document.createElement("canvas");d.height=c,d.width=u,f.appendChild(s),f.appendChild(d),n.appendChild(f)}else n.parentNode.removeChild(n)}),2);function Qt(n){return"string"==typeof n?Ut()(document.querySelectorAll(n)):Yt(n)?[n]:Array.isArray(n)&&n.every(Yt)?Wt()(n,Qt):[]}var Xt="__paypal_messages_"+"1.68.1".replace(/[.-]/g,"_")+"__",$t=function(){var n,e,t;return null!=(n=window[Xt])?n:(e=function(n){void 0===n&&(n={});var e=r({},n);return[e,Dt(u.a,e)]}(window[Xt]||{index:1,config:{},messagesMap:new s.a}),(t=e[0]).setGlobalState=e[1],Object.defineProperty(window,Xt,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Xt])},nr=function(n){return $t().setGlobalState(n)};function er(n){return""+function(){var n,e=null!=(n=window.__TEST_ENV__)?n:void 0;if(e)return e;if(window.location.origin.match(/\.paypal\.com(:\d+)?$/))return window.location.origin;var t=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"stage".toUpperCase()+"__"];if(t)return t;throw new Error("Missing PayPal Domain")}()+Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/ppcreditapply/da/us"})["__"+n.toUpperCase()+"__"]}var tr=xn(),rr=(new E((function(n){return tr.once("treatments",n)})),new E((function(n){return tr.once("render",n)})),new E((function(n){return tr.once("modal-render",n)})),new E((function(n){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",n):n()}))),or=new E((function(n){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",n):n()})),ir=function(n){return"__paypal_messaging_performance__"+n},ar=function n(){return gn(n,(function(){var n=window.performance;if(n&&n.now&&n.timing&&n.timing.connectEnd&&n.timing.navigationStart&&Math.abs(n.now()-Date.now())>1e3&&n.now()-(n.timing.connectEnd-n.timing.navigationStart)>0)return n}))}();function ur(n){var e,t;return null!=(e=null==ar||null==(t=ar.getEntriesByName(ir(n))[0])?void 0:t.duration)?e:-1}function cr(n,e){var t=void 0===e?{}:e,r=t.startMark,o=t.endMark,i=t.repeat;if(ar){if(-1!==ur(n)){if(!i)return;ar.clearMeasures(ir(n)),ar.clearMarks(ir(n))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?ar.measure(ir(n)):ar.measure(ir(n),r?ir(r):void 0,o?ir(o):void 0),ar.mark(ir(n))}}function sr(n,e){var t,o,i,a,u,c,s,f,d=e.meta,l=e.events,p=e.tracking,h=null!=(t=d.global)?t:{},v=h.deviceID,m=h.sessionID,y=h.integration_type,w=h.messaging_version;n.startsWith("client-id:")&&(o=n.slice(10));var g=Object.entries(d).filter((function(e){return e[1].account===n})).map((function(n){var e,t=n[0],o=n[1],d=o.type,h=o.partnerClientId,v=o.buttonSessionId,m=o.messageRequestId,y=o.stats,w=void 0===y?{}:y,g=o.trackingDetails,E=g.clickUrl;delete g.clickUrl,f=null!=f?f:h,i=null!=i?i:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.bn_code;var _=p.filter((function(n){return n.index===t}));s=null!=s?s:null==(e=_.find((function(n){return void 0!==n.bn_code})))?void 0:e.bn_code;var S=w.render_duration,b=w.request_duration;return delete w.render_duration,delete w.request_duration,r({component_type:d,instance_id:m,button_session_id:v,fdata:new URLSearchParams(E).get("fdata"),merchant_events:l.filter((function(n){var e;return(null==(e=n.payload)?void 0:e.index)===t}))},g,w,{component_events:_.filter((function(n){return"MORS"!==n.event_type})).map((function(n){return r({render_duration:S,request_duration:b},n)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:o,merchant_id:n,partner_client_id:f,partner_attribution_id:s,merchant_profile_hash:i,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:v,session_id:m,integration_type:y,integration_version:w,components:g}}}var fr=Ae({url:er("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(n){var e=n.url,t=n.method,o=n.json,a=n.headers,u=o.events.reduce((function(n,e){var t=e.payload;return[].concat(n,[t.index,t.refIndex])}),[]),c=o.tracking.reduce((function(n,e){return[].concat(n,[e.index,e.refIndex])}),[]),s=u.concat(c),f=i()(o.meta).filter((function(n){return ft()(s,n)||"global"===n})).reduce((function(n,e){var t;return r({},n,((t={})[e]=o.meta[e],t))}),{}),d=o;d.meta=f;var l,p,h,v,m=e;return E.all((l=d,p=l.meta,h=l.events,v=l.tracking,Array.from(new Set(Object.values(p).map((function(n){return n.account})).filter(Boolean))).reduce((function(n,e){return[].concat(n,[sr(e,{meta:p,events:h,tracking:v})])}),[])).map((function(n){return function(n,e,t){var o=void 0===t?{}:t,i=o.data,a=o.headers,u=o.withCredentials;return new E((function(t,o){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var n=c.getAllResponseHeaders().trim().split("\n").reduce((function(n,e){var t,o=e.trim().split(": "),i=o[1];return r({},n,((t={})[o[0].toLowerCase()]=i,t))}),{});switch(c.status){case 200:t({headers:n,data:n["content-type"]&&lt()(n["content-type"],"application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:n});break;default:o(new Error("Request failed"))}}},c.open(n,e,!0),a&&ht()(a).forEach((function(n){c.setRequestHeader(n[0],n[1])})),c.send("object"==typeof i?JSON.stringify(i):i)}))}(t,m,{headers:r({"content-type":"application/json"},a),data:n,withCredentials:!0})})))}});fr.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE_MODAL",messaging_version:"1.68.1"}}})),fr.addPayloadBuilder((function(n){return delete n.container,delete n.selector,{}})),fr.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var dr=t(94);function lr(){return"__post_robot_11_0_0___"+pe()}function pr(n){void 0===n&&(n=window);var e=lr();return n!==window?n[e]:n[e]=n[e]||{}}var hr=function(){return{}};function vr(n,e){return void 0===n&&(n="store"),void 0===e&&(e=hr),kn(pr(),n,(function(){var n=e();return{has:function(e){return n.hasOwnProperty(e)},get:function(e,t){return n.hasOwnProperty(e)?n[e]:t},set:function(e,t){return n[e]=t,t},del:function(e){delete n[e]},getOrSet:function(e,t){return kn(n,e,t)},reset:function(){n=e()},keys:function(){return Object.keys(n)}}}))}var mr,yr=function(){};function wr(){var n=pr();return n.WINDOW_WILDCARD=n.WINDOW_WILDCARD||new yr,n.WINDOW_WILDCARD}function gr(n,e){return void 0===n&&(n="store"),void 0===e&&(e=hr),vr("windowStore").getOrSet(n,(function(){var t=new en,r=function(n){return t.getOrSet(n,e)};return{has:function(e){return r(e).hasOwnProperty(n)},get:function(e,t){var o=r(e);return o.hasOwnProperty(n)?o[n]:t},set:function(e,t){return r(e)[n]=t,t},del:function(e){delete r(e)[n]},getOrSet:function(e,t){return kn(r(e),n,t)}}}))}function Er(){return vr("instance").getOrSet("instanceID",dn)}function _r(n,e){var t=e.domain,r=gr("helloPromises"),o=r.get(n);o&&o.resolve({domain:t});var i=E.resolve({domain:t});return r.set(n,i),i}function Sr(n,e){return(0,e.send)(n,"postrobot_hello",{instanceID:Er()},{domain:"*",timeout:-1}).then((function(e){var t=e.origin,r=e.data.instanceID;return _r(n,{domain:t}),{win:n,domain:t,instanceID:r}}))}function br(n,e){var t=e.send;return gr("windowInstanceIDPromises").getOrSet(n,(function(){return Sr(n,{send:t}).then((function(n){return n.instanceID}))}))}function Nr(n){gr("knownWindows").set(n,!0)}function Tr(n){return"object"==typeof n&&null!==n&&"string"==typeof n.__type__}function Ar(n){return void 0===n?"undefined":null===n?"null":Array.isArray(n)?"array":"function"==typeof n?"function":"object"==typeof n?n instanceof Error?"error":"function"==typeof n.then?"promise":"[object RegExp]"==={}.toString.call(n)?"regex":"[object Date]"==={}.toString.call(n)?"date":"object":"string"==typeof n?"string":"number"==typeof n?"number":"boolean"==typeof n?"boolean":void 0}function Rr(n,e){return{__type__:n,__val__:e}}var xr,Pr=((mr={}).function=function(){},mr.error=function(n){return Rr("error",{message:n.message,stack:n.stack,code:n.code,data:n.data})},mr.promise=function(){},mr.regex=function(n){return Rr("regex",n.source)},mr.date=function(n){return Rr("date",n.toJSON())},mr.array=function(n){return n},mr.object=function(n){return n},mr.string=function(n){return n},mr.number=function(n){return n},mr.boolean=function(n){return n},mr.null=function(n){return n},mr[void 0]=function(n){return Rr("undefined",n)},mr),Or={},Ir=((xr={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},xr.error=function(n){var e=n.stack,t=n.code,r=n.data,o=new Error(n.message);return o.code=t,r&&(o.data=r),o.stack=e+"\n\n"+o.stack,o},xr.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},xr.regex=function(n){return new RegExp(n)},xr.date=function(n){return new Date(n)},xr.array=function(n){return n},xr.object=function(n){return n},xr.string=function(n){return n},xr.number=function(n){return n},xr.boolean=function(n){return n},xr.null=function(n){return n},xr[void 0]=function(){},xr),Cr={};function Dr(){for(var n=vr("idToProxyWindow"),e=0,t=n.keys();e<t.length;e++){var r=t[e];n.get(r).shouldClean()&&n.del(r)}}function Mr(n,e){var t=e.send,r=e.id,o=void 0===r?dn():r,i=n.then((function(n){if(C(n))return D(n).name})),a=n.then((function(n){if(B(n))throw new Error("Window is closed, can not determine type");return x(n)?S.POPUP:S.IFRAME}));i.catch(En),a.catch(En);var u=function(){return n.then((function(n){if(!B(n))return C(n)?D(n).name:i}))};return{id:o,getType:function(){return a},getInstanceID:wn((function(){return n.then((function(n){return br(n,{send:t})}))})),close:function(){return n.then(X)},getName:u,focus:function(){return n.then((function(n){n.focus()}))},isClosed:function(){return n.then((function(n){return B(n)}))},setLocation:function(e,t){return void 0===t&&(t={}),n.then((function(n){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===e.indexOf("/"))e=""+r+e;else if(!e.match(/^https?:\/\//)&&0!==e.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(e));if("post"===i)return u().then((function(n){if(!n)throw new Error("Can not post to window without target name");!function(n){var e=n.url,t=n.target,r=n.body,o=n.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",e),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,f=c[u],d=document.createElement("input");d.setAttribute("name",f),d.setAttribute("value",null==(s=r[f])?void 0:s.toString()),a.appendChild(d)}Bn().appendChild(a),a.submit(),Bn().removeChild(a)}({url:e,target:n,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(C(n))try{if(n.location&&"function"==typeof n.location.replace)return void n.location.replace(e)}catch(n){}n.location=e}))},setName:function(e){return n.then((function(n){var t=C(n),r=Q(n);if(!t)throw new Error("Can not set name for cross-domain window: "+e);D(n).name=e,r&&r.setAttribute("name",e),i=E.resolve(e)}))}}}new E((function(n){if(window.document&&window.document.body)return n(window.document.body);var e=setInterval((function(){if(window.document&&window.document.body)return clearInterval(e),n(window.document.body)}),10)}));var Lr=function(){function n(n){var e=n.send,t=n.win,r=n.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new E,this.serializedWindow=r||Mr(this.actualWindowPromise,{send:e}),vr("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:e})}var e=n.prototype;return e.getID=function(){return this.serializedWindow.id},e.getType=function(){return this.serializedWindow.getType()},e.isPopup=function(){return this.getType().then((function(n){return n===S.POPUP}))},e.setLocation=function(n,e){var t=this;return this.serializedWindow.setLocation(n,e).then((function(){return t}))},e.getName=function(){return this.serializedWindow.getName()},e.setName=function(n){var e=this;return this.serializedWindow.setName(n).then((function(){return e}))},e.close=function(){var n=this;return this.serializedWindow.close().then((function(){return n}))},e.focus=function(){var n=this,e=this.isPopup(),t=this.getName(),r=E.hash({isPopup:e,name:t}).then((function(n){var e=n.name;n.isPopup&&e&&window.open("",e,"noopener")})),o=this.serializedWindow.focus();return E.all([r,o]).then((function(){return n}))},e.isClosed=function(){return this.serializedWindow.isClosed()},e.getWindow=function(){return this.actualWindow},e.setWindow=function(n,e){var t=e.send;this.actualWindow=n,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Mr(this.actualWindowPromise,{send:t,id:this.getID()}),gr("winToProxyWindow").set(n,this)},e.awaitWindow=function(){return this.actualWindowPromise},e.matchWindow=function(n,e){var t=this,r=e.send;return E.try((function(){return t.actualWindow?n===t.actualWindow:E.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:br(n,{send:r})}).then((function(e){var o=e.proxyInstanceID===e.knownWindowInstanceID;return o&&t.setWindow(n,{send:r}),o}))}))},e.unwrap=function(){return this.actualWindow||this},e.getInstanceID=function(){return this.serializedWindow.getInstanceID()},e.shouldClean=function(){return Boolean(this.actualWindow&&B(this.actualWindow))},e.serialize=function(){return this.serializedWindow},n.unwrap=function(e){return n.isProxyWindow(e)?e.unwrap():e},n.serialize=function(e,t){var r=t.send;return Dr(),n.toProxyWindow(e,{send:r}).serialize()},n.deserialize=function(e,t){var r=t.send;return Dr(),vr("idToProxyWindow").get(e.id)||new n({serializedWindow:e,send:r})},n.isProxyWindow=function(n){return Boolean(n&&!J(n)&&n.isProxyWindow)},n.toProxyWindow=function(e,t){var r=t.send;if(Dr(),n.isProxyWindow(e))return e;var o=e;return gr("winToProxyWindow").get(o)||new n({win:o,send:r})},n}();function Fr(n,e,t,r,o){var i=gr("methodStore"),a=vr("proxyWindowMethods");Lr.isProxyWindow(r)?a.set(n,{val:e,name:t,domain:o,source:r}):(a.del(n),i.getOrSet(r,(function(){return{}}))[n]={domain:o,name:t,val:e,source:r})}function kr(n,e){var t=gr("methodStore"),r=vr("proxyWindowMethods");return t.getOrSet(n,(function(){return{}}))[e]||r.get(e)}function Hr(n,e,t,r,o){!function(n){var e=n.on,t=n.send;vr("builtinListeners").getOrSet("functionCalls",(function(){return e("postrobot_method",{domain:"*"},(function(n){var e=n.source,r=n.origin,o=n.data,i=o.id,a=o.name,u=kr(e,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+I(window));var c=u.source,s=u.domain,f=u.val;return E.try((function(){if(!q(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Fn(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+I(window));if(Lr.isProxyWindow(c))return c.matchWindow(e,{send:t}).then((function(n){if(!n)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+I(window))}))})).then((function(){return f.apply({source:e,origin:r},o.args)}),(function(n){return E.try((function(){if(f.onError)return f.onError(n)})).then((function(){var e;throw n.stack&&(n.stack="Remote call to "+a+"("+(void 0===(e=o.args)&&(e=[]),In(e).map((function(n){return"string"==typeof n?"'"+n+"'":void 0===n?"undefined":null===n?"null":"boolean"==typeof n?n.toString():Array.isArray(n)?"[ ... ]":"object"==typeof n?"{ ... }":"function"==typeof n?"() => { ... }":"<"+typeof n+">"})).join(", ")+") failed\n\n")+n.stack),n}))})).then((function(n){return{result:n,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||dn();n=Lr.unwrap(n);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),Lr.isProxyWindow(n)?(Fr(i,t,a,n,e),n.awaitWindow().then((function(n){Fr(i,t,a,n,e)}))):Fr(i,t,a,n,e),Rr("cross_domain_function",{id:i,name:a})}function jr(n,e,t,r){var o,i=r.on,a=r.send;return function(n,e){void 0===e&&(e=Or);var t=JSON.stringify(n,(function(n){var t=this[n];if(Tr(this))return t;var r=Ar(t);if(!r)return t;var o=e[r]||Pr[r];return o?o(t,n):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(n,e,t,r,o){return Rr("cross_domain_zalgo_promise",{then:Hr(n,e,(function(n,e){return t.then(n,e)}),r,{on:o.on,send:o.send})})}(n,e,t,r,{on:i,send:a})},o.function=function(t,r){return Hr(n,e,t,r,{on:i,send:a})},o.object=function(n){return J(n)||Lr.isProxyWindow(n)?Rr("cross_domain_window",Lr.serialize(n,{send:a})):n},o))}function Ur(n,e,t,r){var o,i=r.send;return function(n,e){if(void 0===e&&(e=Cr),"undefined"!==n)return JSON.parse(n,(function(n,t){if(Tr(this))return t;var r,o;if(Tr(t)?(r=t.__type__,o=t.__val__):(r=Ar(t),o=t),!r)return o;var i=e[r]||Ir[r];return i?i(o,n):o}))}(t,((o={}).cross_domain_zalgo_promise=function(n){return function(n,e,t){return new E(t.then)}(0,0,n)},o.cross_domain_function=function(t){return function(n,e,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return Lr.toProxyWindow(n,{send:a}).awaitWindow().then((function(n){var c=kr(n,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:I()},u);var s=[].slice.call(u);return t.fireAndForget?a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!0}):a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!1}).then((function(n){return n.data.result}))})).catch((function(n){throw n}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=e,r.__source__=n,r.__id__=o,r.origin=e,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(n,e,t,{send:i})},o.cross_domain_window=function(n){return Lr.deserialize(n,{send:i})},o))}var Br={};function Wr(n,e,t,r){var o=r.on,i=r.send;return E.try((function(){var r=gr().getOrSet(n,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||E.flush().then((function(){if(B(n))throw new Error("Window is closed");var t=jr(n,e,function(n){var e;return(e={})[lr()]=n,e}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(Br),u=[],c=0;c<a.length;c++){var s=a[c];try{Br[s](n,t,e)}catch(n){u.push(n)}}if(u.length===a.length)throw new Error("All post-robot messaging strategies failed:\n\n"+u.map((function(n,e){return e+". "+Sn(n)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(En)}function Gr(n){return vr("responseListeners").get(n)}function Zr(n){vr("responseListeners").del(n)}function zr(n){return vr("erroredResponseListeners").has(n)}function Kr(n){var e=n.name,t=n.win,r=n.domain,o=gr("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!e)throw new Error("Name required to get request listener");for(var i=0,a=[t,wr()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[e];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var f=0,d=s.__domain_regex__;f<d.length;f++){var l=d[f],p=l.listener;if(q(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function qr(n,e){var t=e.on,r=e.send,o=vr("receivedMessages");try{if(!window||window.closed||!n.source)return}catch(n){return}var i=n.source,a=n.origin,u=function(n,e,t,r){var o,i=r.on,a=r.send;try{o=Ur(e,t,n,{on:i,send:a})}catch(n){return}if(o&&"object"==typeof o&&null!==o){var u=o[lr()];if(Array.isArray(u))return u}}(n.data,i,a,{on:t,send:r});if(u){Nr(i);for(var c,s=function(){var n=u[f];if(o.has(n.id))return{v:void 0};if(o.set(n.id,!0),B(i)&&!n.fireAndForget)return{v:void 0};0===n.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===n.type?function(n,e,t,r){var o=r.on,i=r.send,a=Kr({name:t.name,win:n,domain:e}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return E.flush().then((function(){if(!t.fireAndForget&&!B(n))try{return Wr(n,e,{id:dn(),origin:I(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(n){throw new Error("Send response message failed for "+u+" in "+I()+"\n\n"+Sn(n))}}))}E.all([E.flush().then((function(){if(!t.fireAndForget&&!B(n))try{return Wr(n,e,{id:dn(),origin:I(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(n){throw new Error("Send ack message failed for "+u+" in "+I()+"\n\n"+Sn(n))}})),E.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return a.handler({source:n,origin:e,data:t.data})})).then((function(n){return c("success",n)}),(function(n){return c("error",null,n)}))]).then(En).catch((function(n){if(a&&a.handleError)return a.handleError(n);throw n}))}(i,a,n,{on:t,send:r}):"postrobot_message_response"===n.type?function(n,e,t){if(!zr(t.hash)){var r,o=Gr(t.hash);if(!o)throw new Error("No handler found for post message response for message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!q(o.domain,e))throw new Error("Response origin "+e+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":_(r)?"RegExp("+r.toString()+")":r.toString()));if(n!==o.win)throw new Error("Response source does not match registered window");Zr(t.hash),"error"===t.ack?o.promise.reject(t.error):"success"===t.ack&&o.promise.resolve({source:n,origin:e,data:t.data})}}(i,a,n):"postrobot_message_ack"===n.type&&function(n,e,t){if(!zr(t.hash)){var r=Gr(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!q(r.domain,e))throw new Error("Ack origin "+e+" does not match domain "+r.domain.toString());if(n!==r.win)throw new Error("Ack source does not match registered window")}catch(n){r.promise.reject(n)}r.ack=!0}}(i,a,n)}catch(n){setTimeout((function(){throw n}),0)}},f=0;f<u.length;f++)if(c=s())return c.v}}function Yr(n,e,t){if(!n)throw new Error("Expected name");if("function"==typeof(e=e||{})&&(t=e,e={}),!t)throw new Error("Expected handler");var r=function n(e,t){var r=e.name,o=e.win,i=e.domain,a=gr("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&Lr.isProxyWindow(o)){var u=o.awaitWindow().then((function(e){return n({name:r,win:e,domain:i},t)}));return{cancel:function(){u.then((function(n){return n.cancel()}),En)}}}var c=o;if(Array.isArray(c)){for(var s=[],f=0,d=c;f<d.length;f++)s.push(n({name:r,domain:i,win:d[f]},t));return{cancel:function(){for(var n=0;n<s.length;n++)s[n].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,h=i;p<h.length;p++)l.push(n({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var n=0;n<l.length;n++)l[n].cancel()}}}var v=Kr({name:r,win:c,domain:i});c&&"*"!==c||(c=wr());var m=(i=i||"*").toString();if(v)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===wr()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===wr()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var y,w,g=a.getOrSet(c,(function(){return{}})),E=kn(g,r,(function(){return{}}));return Fn(i)?(y=kn(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[m]=t,{cancel:function(){delete E[m],w&&(y.splice(y.indexOf(w,1)),y.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:n,win:e.window,domain:e.domain||"*"},{handler:t||e.handler,handleError:e.errorHandler||function(n){throw n}});return{cancel:function(){r.cancel()}}}Br.postrobot_post_message=function(n,e,t){0===t.indexOf("file:")&&(t="*"),n.postMessage(e,t)},Br.postrobot_global=function(n,e){if(!function(n){return(n=n||window).navigator.mockUserAgent||n.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!C(n))throw new Error("Post message through global disabled between different domain windows");if(!1!==K(window,n))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=pr(n);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:I(),data:e})};var Vr=function(n,e,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return Lr.toProxyWindow(n,{send:Vr}).awaitWindow().then((function(n){return E.try((function(){if(function(n,e,t){if(!n)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!Fn(t))throw new TypeError("Can not send "+n+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(B(e))throw new Error("Can not send "+n+". Target window is closed")}(e,n,o),function(n,e){var t=G(e);if(t)return t===n;if(e===n)return!1;if(k(e)===e)return!1;for(var r=0,o=L(n);r<o.length;r++)if(o[r]===e)return!0;return!1}(window,n))return function(n,e,t){void 0===e&&(e=5e3),void 0===t&&(t="Window");var r=function(n){return gr("helloPromises").getOrSet(n,(function(){return new E}))}(n);return-1!==e&&(r=r.timeout(e,new Error(t+" did not load after "+e+"ms"))),r}(n,a)})).then((function(e){return function(n,e,t,r){var o=r.send;return E.try((function(){return"string"==typeof e?e:E.try((function(){return t||Sr(n,{send:o}).then((function(n){return n.domain}))})).then((function(n){if(!q(e,e))throw new Error("Domain "+bn(e)+" does not match "+bn(e));return n}))}))}(n,o,(void 0===e?{}:e).domain,{send:Vr})})).then((function(r){var o=r,a="postrobot_method"===e&&t&&"string"==typeof t.name?t.name+"()":e,c=new E,s=e+"_"+dn();if(!u){var f={name:e,win:n,domain:o,promise:c};!function(n,e){vr("responseListeners").set(n,e)}(s,f);var d=gr("requestPromises").getOrSet(n,(function(){return[]}));d.push(c),c.catch((function(){!function(n){vr("erroredResponseListeners").set(n,!0)}(s),Zr(s)}));var l=function(n){return gr("knownWindows").get(n,!1)}(n)?1e4:2e3,p=i,h=l,v=p,m=Rn((function(){return B(n)?c.reject(new Error("Window closed for "+e+" before "+(f.ack?"response":"ack"))):f.cancelled?c.reject(new Error("Response listener was cancelled for "+e)):(h=Math.max(h-500,0),-1!==v&&(v=Math.max(v-500,0)),f.ack||0!==h?0===v?c.reject(new Error("No response for postMessage "+a+" in "+I()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+I()+" in "+l+"ms")))}),500);c.finally((function(){m.cancel(),d.splice(d.indexOf(c,1))})).catch(En)}return Wr(n,o,{id:dn(),origin:I(window),type:"postrobot_message_request",hash:s,name:e,data:t,fireAndForget:u},{on:Yr,send:Vr}).then((function(){return u?c.resolve():c}),(function(n){throw new Error("Send request message failed for "+a+" in "+I()+"\n\n"+Sn(n))}))}))}))};function Jr(n){return Lr.toProxyWindow(n,{send:Vr})}function Qr(){var n,e,t;pr().initialized||(pr().initialized=!0,function(n){var e=n.on,t=n.send,r=pr();r.receiveMessage=r.receiveMessage||function(n){return qr(n,{on:e,send:t})}}({on:Yr,send:Vr}),function(n){var e=n.on,t=n.send;vr().getOrSet("postMessageListener",(function(){return re(window,"message",(function(n){!function(n,e){var t=e.on,r=e.send;E.try((function(){var e=n.source||n.sourceElement,o=n.origin||n.originalEvent&&n.originalEvent.origin,i=n.data;if("null"===o&&(o="file://"),e){if(!o)throw new Error("Post message did not have origin domain");qr({source:e,origin:o,data:i},{on:t,send:r})}}))}(n,{on:e,send:t})}))}))}({on:Yr,send:Vr}),e=(n={on:Yr,send:Vr}).on,t=n.send,vr("builtinListeners").getOrSet("helloListener",(function(){var n=function(n){return(0,n.on)("postrobot_hello",{domain:"*"},(function(n){return _r(n.source,{domain:n.origin}),{instanceID:Er()}}))}({on:e}),r=G();return r&&Sr(r,{send:t}).catch((function(n){})),n})))}function Xr(n){for(var e=0,t=gr("requestPromises").get(n,[]);e<t.length;e++)t[e].reject(new Error("Window "+(B(n)?"closed":"cleaned up")+" before response")).catch(En)}function $r(n){var e="__zoid_10_4_0___"+pe();if(!C(n))throw new Error("Can not get global for window on different domain");return n[e]||(n[e]={}),n[e]}function no(n,e){try{return e($r(n))}catch(n){}}function eo(n){return{get:function(){var e=this;return E.try((function(){if(e.source&&e.source!==window)throw new Error("Can not call get on proxy object from a remote window");return n}))}}}function to(n){return fn(JSON.stringify(n))}function ro(n){var e=$r(n);return e.references=e.references||{},e.references}function oo(n){var e,t,r=n.data,o=n.metaData,i=n.sender,a=n.receiver,u=n.passByReference,c=void 0!==u&&u,s=n.basic,f=void 0!==s&&s,d=Jr(a.win),l=f?JSON.stringify(r):jr(d,a.domain,r,{on:Yr,send:Vr}),p=c?(e=l,t=dn(),ro(window)[t]=e,{type:"uid",uid:t}):function(n){return{type:"raw",val:n}}(l);return{serializedData:to({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var n,e;n=window,"uid"===(e=p).type&&delete ro(n)[e.uid]}}}function io(n){var e,t,r=n.sender,o=n.basic,i=void 0!==o&&o,a=function(n){return JSON.parse(function(n){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(n),(function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(n,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(n))}(n.data),u=a.reference,c=a.metaData;e="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(n,e){if("raw"===e.type)return e.val;if("uid"===e.type)return ro(n)[e.uid];throw new Error("Unsupported ref type: "+e.type)}(e,u);return{data:i?JSON.parse(s):function(n,e,t){return Ur(n,e,t,{on:Yr,send:Vr})}(e,t,s),metaData:c,sender:{win:e,domain:t},reference:u}}Qr();var ao={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},uo=S;function co(n){return"__zoid__"+n.name+"__"+n.serializedPayload+"__"}function so(n){if(!n)throw new Error("No window name");var e=n.split("__"),t=e[1],r=e[2],o=e[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 fo=yn((function(n){var e=io({data:so(n).serializedInitialPayload,sender:{win:function(n){return function(n){if("opener"===n.type)return jn("opener",x(window));if("parent"===n.type&&"number"==typeof n.distance)return jn("parent",function(n,e){return void 0===e&&(e=1),function(n,e){void 0===e&&(e=1);for(var t=n,r=0;r<e;r++){if(!t)return;t=R(t)}return t}(n,z(n)-e)}(window,n.distance));if("global"===n.type&&n.uid&&"string"==typeof n.uid){var e=n.uid,t=G(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=H(t);r<o.length;r++){var i=o[r];if(C(i)){var a=no(i,(function(n){return n.windows&&n.windows[e]}));if(a)return a}}}else if("name"===n.type){var u=n.name;return jn("namedWindow",function(n,e){return W(n,e)||function n(e,t){var r=W(e,t);if(r)return r;for(var o=0,i=L(e);o<i.length;o++){var a=n(i[o],t);if(a)return a}}(k(n)||n,e)}(jn("ancestor",G(window)),u))}throw new Error("Unable to find "+n.type+" parent component window")}(n.metaData.windowRef)}}});return{parent:e.sender,payload:e.data,reference:e.reference}}));function lo(){return fo(window.name)}function po(n,e){if(void 0===e&&(e=window),n===R(e))return{type:"parent",distance:z(n)};if(n===x(e))return{type:"opener"};if(C(n)&&(r=n)!==k(r)){var t=D(n).name;if(t)return{type:"name",name:t}}var r}function ho(n,e,t,r,o){if(!n.hasOwnProperty(t))return r;var i=n[t];return"function"==typeof i.childDecorate?i.childDecorate({value:r,uid:o.uid,tag:o.tag,close:o.close,focus:o.focus,onError:o.onError,onProps:o.onProps,resize:o.resize,getParent:o.getParent,getParentDomain:o.getParentDomain,show:o.show,hide:o.hide,export:o.export,getSiblings:o.getSiblings}):r}function vo(){return E.try((function(){window.focus()}))}function mo(){return E.try((function(){window.close()}))}var yo=function(){return En},wo=function(n){return _n(n.value)};function go(n,e,t){for(var o=0,i=Object.keys(r({},n,e));o<i.length;o++){var a=i[o];t(a,e[a],n[a])}}function Eo(n,e,t){var r={};return E.all(function(n,e,o){var i=[];return go(n,e,(function(n,e,o){var a=function(n,e,o){return E.resolve().then((function(){var i,a;if(null!=o&&e){var u=(i={},i.get=e.queryParam,i.post=e.bodyParam,i)[t],c=(a={},a.get=e.queryValue,a.post=e.bodyValue,a)[t];if(u)return E.hash({finalParam:E.try((function(){return"function"==typeof u?u({value:o}):"string"==typeof u?u:n})),finalValue:E.try((function(){return"function"==typeof c&&Ln(o)?c({value:o}):o}))}).then((function(t){var o,i=t.finalParam,a=t.finalValue;if("boolean"==typeof a)o=a.toString();else if("string"==typeof a)o=a.toString();else if("object"==typeof a&&null!==a){if("json"===e.serialization)o=JSON.stringify(a);else if("base64"===e.serialization)o=fn(JSON.stringify(a));else if("dotify"===e.serialization||!e.serialization){o=function n(e,t,r){for(var o in void 0===t&&(t=""),void 0===r&&(r={}),t=t?t+".":t,e)e.hasOwnProperty(o)&&null!=e[o]&&"function"!=typeof e[o]&&(e[o]&&Array.isArray(e[o])&&e[o].length&&e[o].every((function(n){return"object"!=typeof n}))?r[""+t+o+"[]"]=e[o].join(","):e[o]&&"object"==typeof e[o]?r=n(e[o],""+t+o,r):r[""+t+o]=e[o].toString());return r}(a,n);for(var u=0,c=Object.keys(o);u<c.length;u++){var s=c[u];r[s]=o[s]}return}}else"number"==typeof a&&(o=a.toString());r[i]=o}))}}))}(n,e,o);i.push(a)})),i}(e,n)).then((function(){return r}))}function _o(n){var e,t,o,i,a,u=n.uid,c=n.options,s=n.overrides,f=void 0===s?{}:s,d=n.parentWin,l=void 0===d?window:d,p=c.propsDef,h=c.containerTemplate,v=c.prerenderTemplate,m=c.tag,y=c.name,w=c.attributes,g=c.dimensions,_=c.autoResize,S=c.url,b=c.domain,N=c.exports,T=new E,A=[],R=Hn(),x={},P={},O={visible:!0},M=f.event?f.event:xn(),L=f.props?f.props:{},F=!1,k=f.onError,H=f.getProxyContainer,j=f.show,U=f.hide,W=f.close,Z=f.renderContainer,J=f.getProxyWindow,Q=f.setProxyWin,$=f.openFrame,nn=f.openPrerenderFrame,en=f.prerender,tn=f.open,rn=f.openPrerender,on=f.watchForUnload,an=f.getInternalState,un=f.setInternalState,cn=function(){return"function"==typeof g?g({props:L}):g},sn=function(){return E.try((function(){return f.resolveInitPromise?f.resolveInitPromise():T.resolve()}))},fn=function(n){return E.try((function(){return f.rejectInitPromise?f.rejectInitPromise(n):T.reject(n)}))},ln=function(n){for(var e={},t=0,r=Object.keys(L);t<r.length;t++){var o=r[t],i=p[o];if(!i||!1!==i.sendToChild){var a=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(e,t){return e||q(t,n)}),!1):q(n,I(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(e[o]=L[o])}}return E.hash(e)},pn=function(){return E.try((function(){return an?an():O}))},hn=function(n){return E.try((function(){return un?un(n):O=r({},O,n)}))},vn=function(){return J?J():E.try((function(){var n=L.window;if(n){var e=Jr(n);return R.register((function(){return n.close()})),e}return new Lr({send:Vr})}))},mn=function(n){return Q?Q(n):E.try((function(){e=n}))},wn=function(){return j?j():E.hash({setState:hn({visible:!0}),showElement:t?t.get().then(oe):null}).then(En)},gn=function(){return U?U():E.hash({setState:hn({visible:!1}),showElement:t?t.get().then(ie):null}).then(En)},Tn=function(){return"function"==typeof S?S({props:L}):S},An=function(){return"function"==typeof w?w({props:L}):w},Pn=function(){return Y(Tn())},On=function(n,e){var t=e.windowName;return $?$(n,{windowName:t}):E.try((function(){if(n===uo.IFRAME)return eo(te({attributes:r({name:t,title:y},An().iframe)}))}))},Cn=function(n){return nn?nn(n):E.try((function(){if(n===uo.IFRAME)return eo(te({attributes:r({name:"__zoid_prerender_frame__"+y+"_"+dn()+"__",title:"prerender__"+y},An().iframe)}))}))},Dn=function(n,e,t){return rn?rn(n,e,t):E.try((function(){if(n===uo.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(n){return R.register((function(){return ae(n)})),ee(n).then((function(n){return D(n)})).then((function(n){return Jr(n)}))}))}if(n===uo.POPUP)return e;throw new Error("No render context available for "+n)}))},Mn=function(){return E.try((function(){if(e)return E.all([M.trigger("zoid-focus"),e.focus()]).then(En)}))},Fn=function(){var n=$r(window);return n.windows=n.windows||{},n.windows[u]=window,R.register((function(){delete n.windows[u]})),u},kn=function(n,e,t,r){if(e===I(window))return{type:"global",uid:Fn()};if(n!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(L.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===uo.POPUP)return{type:"opener"};if(t===uo.IFRAME)return{type:"parent",distance:z(window)};throw new Error("Can not construct window reference for child")},jn=function(n,t){return E.try((function(){var r;i=n,o=t,null==(r=e)||r.isPopup().then((function(n){var r;""!==(null==t?void 0:t.name)&&n&&(null==(r=e)||r.setName(null==t?void 0:t.name))})).finally((function(){sn(),R.register((function(){return t.close.fireAndForget().catch(En)}))}))}))},Un=function(n){var e=n.width,t=n.height;return E.try((function(){M.trigger("zoid-resize",{width:e,height:t})}))},Bn=function(n){return E.try((function(){return M.trigger("zoid-destroy")})).catch(En).then((function(){return R.all(n)})).then((function(){var e=n||new Error(ao.COMPONENT_DESTROYED);a&&ue(a)||Object.values(ao).includes(e.message)?T.resolve():T.asyncReject(e)}))},Wn=yn((function(n){return E.try((function(){if(W){if(B(W.__source__))return;return W()}return E.try((function(){return M.trigger("zoid-close")})).then((function(){return Bn(n||new Error(ao.COMPONENT_CLOSED))}))}))})),Gn=function(n,e){var t=e.proxyWin,o=e.proxyFrame,i=e.windowName;return tn?tn(n,{proxyWin:t,proxyFrame:o,windowName:i}):E.try((function(){if(n===uo.IFRAME){if(!o)throw new Error("Expected proxy frame to be passed");return o.get().then((function(n){return ee(n).then((function(e){return R.register((function(){return ae(n)})),R.register((function(){return Xr(e)})),e}))}))}if(n===uo.POPUP){var e=cn(),t=e.width,a=void 0===t?"300px":t,u=e.height,c=void 0===u?"150px":u;a=_e(a,window.outerWidth),c=_e(c,window.outerWidth);var s=function(n,e){var t=(e=e||{}).closeOnUnload,o=void 0===t?1:t,i=e.name,a=void 0===i?"":i,u=e.width,c=e.height,s=0,f=0;u&&(window.outerWidth?f=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(f=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete e.closeOnUnload,delete e.name,u&&c&&(e=r({top:s,left:f,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},e));var d,l,p=Object.keys(e).map((function(n){if(null!=e[n])return n+"="+bn(e[n])})).filter(Boolean).join(",");try{d=window.open("",a,p)}catch(l){throw new $n("Can not open popup window - "+(l.stack||l.message))}if(B(d))throw new $n("Can not open popup window - blocked");return o&&window.addEventListener("unload",(function(){return d.close()})),d}(0,r({name:i,width:a,height:c},An().popup));return R.register((function(){return X(s)})),R.register((function(){return Xr(s)})),s}throw new Error("No render context available for "+n)})).then((function(n){return t.setWindow(n,{send:Vr}),t.setName(i).then((function(){return t}))}))},Zn=function(){return E.try((function(){var n=re(window,"unload",_n((function(){Bn(new Error(ao.NAVIGATED_AWAY))}))),e=V(l,Bn,3e3);if(R.register(e.cancel),R.register(n.cancel),on)return on()}))},zn=function(n,e){var t=!1;return R.register((function(){t=!0})),E.delay(2e3).then((function(){return n.isClosed()})).then((function(r){if(!t){if(e===uo.POPUP&&r)return Wn(new Error("Detected popup close"));var o=Boolean(a&&ue(a));return e===uo.IFRAME&&r&&(o||F)?Wn(new Error(ao.IFRAME_CLOSE)):zn(n,e)}}))},qn=function(n){var e=!1;return n.isClosed().then((function(t){return t?(e=!0,Wn(new Error(ao.WINDOW_CLOSED))):E.delay(200).then((function(){return n.isClosed()})).then((function(n){if(n)return e=!0,Wn(new Error(ao.WINDOW_CLOSED))}))})).then((function(){return e}))},Yn=function(n){return k?k(n):E.try((function(){if(-1===A.indexOf(n))return A.push(n),T.asyncReject(n),M.trigger("zoid-error",n)}))},Xn=new E,ne=function(n){return E.try((function(){Xn.resolve(n)}))};jn.onError=Yn;var fe=function(n,e){return n({uid:u,container:e.container,context:e.context,doc:e.doc,frame:e.frame,prerenderFrame:e.prerenderFrame,focus:Mn,close:Wn,state:x,props:L,tag:m,dimensions:cn(),event:M})},de=function(n,e){var t=e.context;return en?en(n,{context:t}):E.try((function(){if(v){M.trigger("zoid-prerender");var e=n.getWindow();if(e&&C(e)&&function(n){try{if(!n.location.href)return!0;if("about:blank"===n.location.href)return!0}catch(n){}return!1}(e)){var r=(e=D(e)).document,o=fe(v,{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(n,e){var t=e.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=n.document.documentElement,o=0,i=In(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=In(e.children);a<u.length;a++)r.appendChild(u[a])}(e,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,f=void 0===s?"body":s;if((f=Jn(f,r))&&(a||c)){var d=ce(f,(function(n){Un({width:a?n.width:void 0,height:c?n.height:void 0})}),{width:a,height:c,win:e});M.on("zoid-rendered",d.cancel)}M.trigger("zoid-prerendered")}}}}))},le=function(n,e){var r=e.proxyFrame,o=e.proxyPrerenderFrame,i=e.context,a=e.rerender;return Z?Z(n,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):E.hash({container:n.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:pn()}).then((function(n){var e=n.container,r=n.internalState.visible,o=fe(h,{context:i,container:e,frame:n.frame,prerenderFrame:n.prerenderFrame,doc:document});if(o){r||ie(o),Vn(e,o);var u=function(n,e){e=_n(e);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var n=0;n<a.length;n++)a[n].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&ae(r)},c=function(){i||(e(),u())};if(ue(n))return c(),{cancel:u};if(window.MutationObserver)for(var s=n.parentElement;s;){var f=new window.MutationObserver((function(){ue(n)&&c()}));f.observe(s,{childList:!0}),a.push(f),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+dn()+"__"),r.style.display="none",ee(r).then((function(n){(o=D(n)).addEventListener("unload",c)})),n.appendChild(r),t=Rn((function(){ue(n)&&c()}),1e3),{cancel:u}}(o,(function(){var n=new Error("Detected container element removed from DOM");return E.delay(1).then((function(){if(!ue(o))return R.all(n),a().then(sn,fn);Wn(n)}))}));return R.register((function(){return u.cancel()})),R.register((function(){return ae(o)})),t=eo(o)}}))},pe=function(){return{state:x,event:M,close:Wn,focus:Mn,resize:Un,onError:Yn,updateProps:ve,show:wn,hide:gn}},he=function(n){void 0===n&&(n={});var e=a,t=pe();Nn(P,n),function(n,e,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;go(t,n,(function(n,r,f){var d=!1,l=f;Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){return d?l:(d=!0,function(){if(!r)return l;var d=r.alias;if(d&&!Ln(f)&&Ln(t[d])&&(l=t[d]),r.value&&(l=r.value({props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||Ln(l)||Ln(t[n])||(l=r.default({props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),Ln(l)){if("array"===r.type?!Array.isArray(l):typeof l!==r.type)throw new TypeError("Prop is not of type "+r.type+": "+n)}else if(!1!==r.required&&!Ln(t[n]))throw new Error('Expected prop "'+n+'" to be defined');return Ln(l)&&r.decorate&&(l=r.decorate({value:l,props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),go(e,n,En)}(p,L,P,t,e)},ve=function(n){return he(n),T.then((function(){var n=o,t=e;if(n&&t&&i)return ln(i).then((function(e){return n.updateProps(e).catch((function(n){return qn(t).then((function(e){if(!e)throw n}))}))}))}))},me=function(n){return H?H(n):E.try((function(){return Qn(n)})).then((function(n){return se(n)&&(n=function n(e){var t=function(n){var e=function(n){for(;n.parentNode;)n=n.parentNode;if(se(n))return n}(n);if(e&&e.host)return e.host}(e);if(!t)throw new Error("Element is not in shadow dom");var r="shadow-slot-"+dn(),o=document.createElement("slot");o.setAttribute("name",r),e.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",r),t.appendChild(i),se(t)?n(i):i}(n)),a=n,eo(n)}))};return{init:function(){M.on("zoid-render",(function(){return L.onRender()})),M.on("zoid-prerender",(function(){return L.onPrerender()})),M.on("zoid-display",(function(){return L.onDisplay()})),M.on("zoid-rendered",(function(){return L.onRendered()})),M.on("zoid-prerendered",(function(){return L.onPrerendered()})),M.on("zoid-close",(function(){return L.onClose()})),M.on("zoid-destroy",(function(){return L.onDestroy()})),M.on("zoid-resize",(function(){return L.onResize()})),M.on("zoid-focus",(function(){return L.onFocus()})),M.on("zoid-props",(function(n){return L.onProps(n)})),M.on("zoid-error",(function(n){return L&&L.onError?L.onError(n):fn(n).then((function(){setTimeout((function(){throw n}),1)}))})),R.register(M.reset)},render:function(n){var t=n.target,r=n.container,o=n.context,i=n.rerender;return E.try((function(){var n=Pn(),a=b||Pn();!function(n,e,t){if(n!==window){if(!K(window,n))throw new Error("Can only renderTo an adjacent frame");var r=I();if(!q(e,r)&&!C(n))throw new Error("Can not render remotely to "+e.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=E.try((function(){if(t!==window)return function(n,e){for(var t={},r=0,o=Object.keys(L);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=L[i])}var c=Vr(e,"zoid_delegate_"+y,{uid:u,overrides:{props:t,event:M,close:Wn,onError:Yn,getInternalState:pn,setInternalState:hn,resolveInitPromise:sn,rejectInitPromise:fn}}).then((function(n){var t=n.data.parent;return R.register((function(n){if(!B(e))return t.destroy(n)})),t.getDelegateOverrides()})).catch((function(n){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+Sn(n))}));return H=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.getProxyContainer.apply(n,e)}))},Z=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.renderContainer.apply(n,e)}))},j=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.show.apply(n,e)}))},U=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.hide.apply(n,e)}))},on=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.watchForUnload.apply(n,e)}))},n===uo.IFRAME?(J=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.getProxyWindow.apply(n,e)}))},$=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openFrame.apply(n,e)}))},nn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openPrerenderFrame.apply(n,e)}))},en=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.prerender.apply(n,e)}))},tn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.open.apply(n,e)}))},rn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openPrerender.apply(n,e)}))}):n===uo.POPUP&&(Q=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.setProxyWin.apply(n,e)}))}),c}(o,t)})),f=L.window,d=Zn(),l=Eo(p,L,"post"),h=M.trigger("zoid-render"),v=me(r),w=vn(),g=v.then((function(){return he()})),_=g.then((function(){return Eo(p,L,"get").then((function(n){return function(n,e){var t,r,o=e.query||{},i=e.hash||{},a=n.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=Kn(u[1],o),s=Kn(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}(function(n){if(0!==Y(n).indexOf("mock:"))return n;throw new Error("Mock urls not supported out of test mode")}(Tn()),{query:n})}))})),S=w.then((function(e){return function(n){return function(n){var e=void 0===n?{}:n,t=e.proxyWin,r=e.initialChildDomain,o=e.childDomainMatch,i=e.target,a=void 0===i?window:i,c=e.context;return function(n){var e=void 0===n?{}:n,t=e.proxyWin,r=e.childDomainMatch,o=e.context;return ln(e.initialChildDomain).then((function(n){return{uid:u,context:o,tag:m,childDomainMatch:r,version:"10_4_0",props:n,exports:(e=t,{init:function(n){return jn(this.origin,n)},close:Wn,checkClose:function(){return qn(e)},resize:Un,onError:Yn,show:wn,hide:gn,export:ne})};var e}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(n){var e=oo({data:n,metaData:{windowRef:kn(a,r,c,t)},sender:{domain:I(window)},receiver:{win:t,domain:o},passByReference:r===I()}),i=e.serializedData;return R.register(e.cleanReference),i}))}({proxyWin:n.proxyWin,initialChildDomain:n.initialChildDomain,childDomainMatch:n.childDomainMatch,target:n.target,context:n.context}).then((function(n){return co({name:y,serializedPayload:n})}))}({proxyWin:e,initialChildDomain:n,childDomainMatch:a,target:t,context:o})})),N=S.then((function(n){return On(o,{windowName:n})})),A=Cn(o),x=E.hash({proxyContainer:v,proxyFrame:N,proxyPrerenderFrame:A}).then((function(n){return le(n.proxyContainer,{context:o,proxyFrame:n.proxyFrame,proxyPrerenderFrame:n.proxyPrerenderFrame,rerender:i})})).then((function(n){return n})),P=E.hash({windowName:S,proxyFrame:N,proxyWin:w}).then((function(n){var e=n.proxyWin;return f?e:Gn(o,{windowName:n.windowName,proxyWin:e,proxyFrame:n.proxyFrame})})),O=E.hash({proxyWin:P,proxyPrerenderFrame:A}).then((function(n){return Dn(o,n.proxyWin,n.proxyPrerenderFrame)})),D=P.then((function(n){return e=n,mn(n)})),k=E.hash({proxyPrerenderWin:O,state:D}).then((function(n){return de(n.proxyPrerenderWin,{context:o})})),W=E.hash({proxyWin:P,windowName:S}).then((function(n){if(f)return n.proxyWin.setName(n.windowName)})),G=E.hash({body:l}).then((function(n){return c.method?c.method:Object.keys(n.body).length?"post":"get"})),z=E.hash({proxyWin:P,windowUrl:_,body:l,method:G,windowName:W,prerender:k}).then((function(n){return n.proxyWin.setLocation(n.windowUrl,{method:n.method,body:n.body})})),V=P.then((function(n){zn(n,o)})),X=E.hash({container:x,prerender:k}).then((function(){return M.trigger("zoid-display")})),an=P.then((function(n){})),un=z.then((function(){return E.try((function(){var n=L.timeout;if(n)return T.timeout(n,new Error("Loading component timed out after "+n+" milliseconds"))}))})),cn=T.then((function(){return F=!0,M.trigger("zoid-rendered")}));return E.hash({initPromise:T,buildUrlPromise:_,onRenderPromise:h,getProxyContainerPromise:v,openFramePromise:N,openPrerenderFramePromise:A,renderContainerPromise:x,openPromise:P,openPrerenderPromise:O,setStatePromise:D,prerenderPromise:k,loadUrlPromise:z,buildWindowNamePromise:S,setWindowNamePromise:W,watchForClosePromise:V,onDisplayPromise:X,openBridgePromise:an,runTimeoutPromise:un,onRenderedPromise:cn,delegatePromise:s,watchForUnloadPromise:d,finalSetPropsPromise:g})})).catch((function(n){return E.all([Yn(n),Bn(n)]).then((function(){throw n}),(function(){throw n}))})).then(En)},destroy:Bn,getProps:function(){return L},setProps:he,export:ne,getHelpers:pe,getDelegateOverrides:function(){return E.try((function(){return{getProxyContainer:me,show:wn,hide:gn,renderContainer:le,getProxyWindow:vn,watchForUnload:Zn,openFrame:On,openPrerenderFrame:Cn,prerender:de,open:Gn,openPrerender:Dn,setProxyWin:mn}}))},getExports:function(){return N({getExports:function(){return Xn}})}}}var So={register:function(n,e,t,r){var o=r.React,i=r.ReactDOM;return function(n){function e(){return n.apply(this,arguments)||this}d(e,n);var r=e.prototype;return r.render=function(){return o.createElement("div",null)},r.componentDidMount=function(){var n=i.findDOMNode(this),e=t(Nn({},this.props));e.render(n,uo.IFRAME),this.setState({parent:e})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(Nn({},this.props)).catch(En)},e}(o.Component)}},bo={register:function(n,e,t,o){return o.component(n,{render:function(n){return n("div")},inheritAttrs:!1,mounted:function(){var n,e=this.$el;this.parent=t(r({},(n=this.$attrs,Object.keys(n).reduce((function(e,t){var r=n[t];return"style-object"===t||"styleObject"===t?(e.style=r,e.styleObject=r):t.includes("-")?e[Pn(t)]=r:e[t]=r,e}),{})))),this.parent.render(e,uo.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(En)},deep:!0}}})}},No={register:function(n,e,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var n,e=this.$el;this.parent=t(r({},(n=this.$attrs,Object.keys(n).reduce((function(e,t){var r=n[t];return"style-object"===t||"styleObject"===t?(e.style=r,e.styleObject=r):t.includes("-")?e[Pn(t)]=r:e[t]=r,e}),{})))),this.parent.render(e,uo.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(En)},deep:!0}}}}},To={register:function(n,e,t,r){return r.module(n,[]).directive(Pn(n),(function(){for(var n={},r=0,o=Object.keys(e);r<o.length;r++)n[o[r]]="=";return n.props="=",{scope:n,restrict:"E",controller:["$scope","$element",function(n,e){function r(){if("$apply"!==n.$root.$$phase&&"$digest"!==n.$root.$$phase)try{n.$apply()}catch(n){}}var o=function(){return Mn(n.props,(function(n){return"function"==typeof n?function(){var e=n.apply(this,arguments);return r(),e}:n}))},i=t(o());i.render(e[0],uo.IFRAME),n.$watch((function(){i.updateProps(o()).catch(En)}))}]}}))}},Ao={register:function(n,e,t,o){var i=o.Component,a=o.NgModule,u=o.ElementRef,c=o.NgZone,s=o.Inject,f=function(){function n(n,e){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=n,this.zone=e}var e=n.prototype;return e.getProps=function(){var n=this;return Mn(r({},this.internalProps,this.props),(function(e){if("function"==typeof e){var t=n.zone;return function(){var n=arguments,r=this;return t.run((function(){return e.apply(r,n)}))}}return e}))},e.ngOnInit=function(){var n=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(n,uo.IFRAME)},e.ngDoCheck=function(){this.parent&&!function(n,e){var t={};for(var r in n)if(n.hasOwnProperty(r)&&(t[r]=!0,n[r]!==e[r]))return!1;for(var o in e)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=r({},this.props),this.parent.updateProps(this.getProps()))},n}();f.annotations=void 0,f.parameters=void 0,f.parameters=[[new s(u)],[new s(c)]],f.annotations=[new i({selector:n,template:"<div></div>",inputs:["props"]})];var d=function(){};return d.annotations=void 0,d.annotations=[new a({declarations:[f],exports:[f]})],d}};function Ro(n){var e=n.uid,t=n.frame,r=n.prerenderFrame,o=n.doc,i=n.props,a=n.event,u=n.dimensions,c=u.width,s=u.height;if(t&&r){var f=o.createElement("div");f.setAttribute("id",e);var d=o.createElement("style");return i.cspNonce&&d.setAttribute("nonce",i.cspNonce),d.appendChild(o.createTextNode("\n #"+e+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+e+" > 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 #"+e+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+e+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(t),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("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(){ae(r)}),1)})),a.on("zoid-resize",(function(n){var e=n.width,t=n.height;"number"==typeof e&&(f.style.width=Ee(e)),"number"==typeof t&&(f.style.height=Ee(t))})),f}}function xo(n){var e=n.doc,t=n.props,r=e.createElement("html"),o=e.createElement("body"),i=e.createElement("style"),a=e.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(e.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 Po=Hn(),Oo=Hn();function Io(n){var e,t,o=function(n){var e=n.tag,t=n.url,o=n.domain,i=n.bridgeUrl,a=n.props,u=void 0===a?{}:a,c=n.getExtensions,s=void 0===c?function(){return{}}:c,f=n.dimensions,d=void 0===f?{}:f,l=n.autoResize,p=void 0===l?{}:l,h=n.allowedParentDomains,v=void 0===h?"*":h,m=n.attributes,y=void 0===m?{}:m,w=n.defaultContext,g=void 0===w?uo.IFRAME:w,E=n.containerTemplate,_=void 0===E?Ro:E,S=n.prerenderTemplate,b=void 0===S?xo:S,N=n.validate,T=n.eligible,A=void 0===T?function(){return{eligible:!0}}:T,R=n.logger,x=void 0===R?{info:En}:R,P=n.exports,O=void 0===P?En:P,I=n.method,D=n.children,M=void 0===D?function(){return{}}:D,L=e.replace(/-/g,"_"),F=r({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(n){var e=n.value;if(!J(e)&&!Lr.isProxyWindow(e))throw new Error("Expected Window or ProxyWindow");if(J(e)){if(B(e))throw new Error("Window is closed");if(!C(e))throw new Error("Window is not same domain")}},decorate:function(n){return Jr(n.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onRendered:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onRender:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onPrerender:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(n){return n.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(n){return n.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:L,tag:e,url:t,domain:o,bridgeUrl:i,method:I,propsDef:F,dimensions:d,autoResize:p,allowedParentDomains:v,attributes:y,defaultContext:g,containerTemplate:_,prerenderTemplate:b,validate:N,logger:x,eligible:A,children:M,exports:"function"==typeof O?O:function(n){for(var e=n.getExports,t={},r=function(){var n=i[o],r=O[n].type,a=e().then((function(e){return e[n]}));t[n]="function"===r?function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return a.then((function(n){return n.apply(void 0,e)}))}:a},o=0,i=Object.keys(O);o<i.length;o++)r();return t},getExtensions:s}}(n),i=o.name,a=o.tag,u=o.defaultContext,c=o.propsDef,s=o.eligible,f=o.children,d=o.getExtensions,l=$r(window),p={},h=[],v=function(){if(function(n){try{return so(window.name).name===n}catch(n){}return!1}(i)){var n=lo().payload;if(n.tag===a&&q(n.childDomainMatch,I()))return!0}return!1},m=yn((function(){if(v()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+i+" as child - child already registered");var n=function(n){var e,t=n.tag,r=n.propsDef,o=n.autoResize,i=n.allowedParentDomains,a=[],u=lo(),c=u.parent,s=u.payload,f=c.win,d=c.domain,l=new E,p=s.version,h=s.uid,v=s.exports,m=s.context,y=s.props;if(!function(n,e){if(!/_/.test(n)||!/_/.test("10_4_0"))throw new Error("Versions are in an invalid format ("+n+", 10_4_0)");return n.split("_")[0]==="10_4_0".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_4_0");var w=v.show,g=v.hide,_=v.close,S=v.onError,b=v.checkClose,N=v.export,T=v.resize,A=v.init,R=function(){return f},x=function(){return d},P=function(n){return a.push(n),{cancel:function(){a.splice(a.indexOf(n),1)}}},O=function(n){return T.fireAndForget({width:n.width,height:n.height})},M=function(n){return l.resolve(n),N(n)},L=function(n){var r=(void 0===n?{}:n).anyParent,o=[],i=e.parent;if(void 0===r&&(r=!i),!r&&!i)throw new Error("No parent found for "+t+" child");for(var a=0,u=H(window);a<u.length;a++){var c=u[a];if(C(c)){var s=D(c).xprops;if(s&&R()===s.getParent()){var f=s.parent;if(r||!i||f&&f.uid===i.uid){var d=no(c,(function(n){return n.exports}));o.push({props:s,exports:d})}}}}return o},F=function(n,o,i){void 0===i&&(i=!1);var u=function(n,e,t,r,o,i){void 0===i&&(i=!1);for(var a={},u=0,c=Object.keys(t);u<c.length;u++){var s=c[u],f=e[s],d=f&&f.trustedDomains&&f.trustedDomains.length>0?f.trustedDomains.reduce((function(n,e){return n||q(e,I(window))}),!1):r===I(window)||C(n);if((!f||!f.sameDomain||d)&&(!f||!f.trustedDomains||d)){var l=ho(e,0,s,t[s],o);a[s]=l,f&&f.alias&&!a[f.alias]&&(a[f.alias]=l)}}if(!i)for(var p=0,h=Object.keys(e);p<h.length;p++){var v=h[p];t.hasOwnProperty(v)||(a[v]=ho(e,0,v,void 0,o))}return a}(f,r,n,o,{tag:t,show:w,hide:g,close:_,focus:vo,onError:S,resize:O,getSiblings:L,onProps:P,getParent:R,getParentDomain:x,uid:h,export:M},i);e?Nn(e,u):e=u;for(var c=0;c<a.length;c++)(0,a[c])(e)},k=function(n){return E.try((function(){return F(n,d,!0)}))};return{init:function(){return E.try((function(){var e="";return C(f)&&(e=function(n){var e=n.componentName,t=n.parentComponentWindow,r=io({data:so(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=co({name:e,serializedPayload:oo({data:r.data,metaData:{windowRef:po(t)},sender:{domain:o.domain},receiver:{win:window,domain:I()},basic:!0}).serializedData});return window.name=i,i}}({componentName:n.name,parentComponentWindow:f})||""),$r(window).exports=n.exports({getExports:function(){return l}}),function(n,e){if(!q(n,e))throw new Error("Can not be rendered by domain: "+e)}(i,d),Nr(f),window.addEventListener("beforeunload",(function(){b.fireAndForget()})),window.addEventListener("unload",(function(){b.fireAndForget()})),V(f,(function(){mo()})),A({name:e,updateProps:k,close:mo})})).then((function(){return(n=o.width,e=void 0!==n&&n,t=o.height,r=void 0!==t&&t,i=o.element,Qn(void 0===i?"body":i).catch(En).then((function(n){return{width:e,height:r,element:n}}))).then((function(n){var e=n.width,t=n.height,r=n.element;r&&(e||t)&&m!==uo.POPUP&&ce(r,(function(n){O({width:e?n.width:void 0,height:t?n.height:void 0})}),{width:e,height:t})}));var n,e,t,r,i})).catch((function(n){S(n)}))},getProps:function(){return e||(F(y,d),e)}}}(o);return n.init(),n}})),y=function(n){var e,t="zoid-"+a+"-"+dn(),c=n||{},l=s({props:c}),p=l.eligible,v=l.reason,m=c.onDestroy;c.onDestroy=function(){if(e&&p&&h.splice(h.indexOf(e),1),m)return m.apply(void 0,arguments)};var w=_o({uid:t,options:o});w.init(),p?w.setProps(c):c.onDestroy&&c.onDestroy(),Po.register((function(n){return w.destroy(n||new Error("zoid destroyed all components"))}));var g=function(n){var e=(void 0===n?{}:n).decorate;return y((void 0===e?An:e)(c))},_=function(n,t,r){return E.try((function(){if(!p){var e=new Error(v||i+" component is not eligible");return w.destroy(e).then((function(){throw e}))}if(!J(n))throw new Error("Must pass window to renderTo");return function(n,e){return E.try((function(){if(n.window)return Jr(n.window).getType();if(e){if(e!==uo.IFRAME&&e!==uo.POPUP)throw new Error("Unrecognized context: "+e);return e}return u}))}(c,r)})).then((function(o){if(t=function(n,e){if(e){if("string"!=typeof e&&!un(e))throw new TypeError("Expected string or element selector to be passed");return e}if(n===uo.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),n!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return w.render({target:n,container:t,context:o,rerender:function(){var o=g();return Nn(e,o),o.renderTo(n,t,r)}})})).catch((function(n){return w.destroy(n).then((function(){throw n}))}))};return e=r({},d(w),w.getExports(),w.getHelpers(),function(){for(var n=f(),e={},o=function(){var o=a[i],u=n[o];e[o]=function(n){var e=w.getProps(),o=r({},n,{parent:{uid:t,props:e,export:w.export}});return u(o)}},i=0,a=Object.keys(n);i<a.length;i++)o();return e}(),{isEligible:function(){return p},clone:g,render:function(n,e){return _(window,n,e)},renderTo:function(n,e,t){return _(n,e,t)}}),p&&h.push(e),e};if(m(),e=Yr("zoid_allow_delegate_"+i,(function(){return!0})),t=Yr("zoid_delegate_"+i,(function(n){var e=n.data;return{parent:_o({uid:e.uid,options:o,overrides:e.overrides,parentWin:n.source})}})),Oo.register(e.cancel),Oo.register(t.cancel),l.components=l.components||{},l.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return l.components[a]=!0,{init:y,instances:h,driver:function(n,e){var t={react:So,angular:To,vue:bo,vue3:No,angular2:Ao};if(!t[n])throw new Error("Could not find driver for framework: "+n);return p[n]||(p[n]=t[n].register(a,c,y,e)),p[n]},isChild:v,canRenderTo:function(n){return Vr(n,"zoid_allow_delegate_"+i).then((function(n){return n.data})).catch((function(){return!1}))},registerChild:m}}var Co=t(98),Do=t.n(Co);function Mo(n,e){switch(n){case"STRING":return"string"==typeof e;case"BOOLEAN":return"boolean"==typeof e;case"NUMBER":return"number"==typeof e&&!Do()(e);case"FUNCTION":return"function"==typeof e;case"ARRAY":return Array.isArray(e);case"OBJECT":return!Array.isArray(e)&&"object"==typeof e&&null!==e;case"ANY":return!0;default:return!1}}var Lo=Ct((function(n,e){return fr.warn("invalid_option_value",{description:e,location:n})})),Fo=function(n,e,t){var r=Array.isArray(t)?"array":typeof t;Lo(n,'Expected type "'+e.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function ko(n,e){if(!Mo("STRING",n))throw Fo("offer","STRING",n),new Error("offer_validation_error");if(!e.includes(n))throw Lo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Ho,jo,Uo,Bo,Wo,Go={account:function(n){var e=n.props.account;if(Mo("STRING",e)){if(13===e.length||10===e.length||Zt()(e,"client-id:"))return e;Lo("account","Ensure the correct Merchant Account ID has been entered.")}else Fo("account","STRING",e)},merchantId:function(n){var e=n.props.merchantId;if(void 0!==e){if(Mo("STRING",e))return e.split(",").some((function(n){return 13!==n.length&&10!==n.length}))&&Lo("merchantId","Ensure the correct Merchant ID has been entered."),e;Fo("merchantId","STRING",e)}},customerId:function(n){var e=n.props.customerId;if(void 0!==e)if(Mo("STRING",e)){if(13===e.length||10===e.length)return e;Lo("customerId","Ensure the correct Merchant ID has been entered.")}else Fo("customerId","STRING",e)},amount:function(n){var e=n.props.amount;if(void 0!==e){var t=Number(e);if(Mo("NUMBER",t)){if(!(t<0))return t;Lo("amount","Ensure value is a positive number.")}else Fo("amount","NUMBER",e)}},offer:function(n){var e=n.props.offer,t=[].concat(Object.values(ze),["NI"]);if(void 0!==e){var r=e;if("string"==typeof e&&e.includes(",")&&(r=e.split(",").map((function(n){return n.trim()}))),Array.isArray(r)){if(r.length>2)throw Lo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(n){return ko(n,t),n}));return o[0]===o[1]?o[0]:o.sort().join()}return ko(e,t),e}return e},style:function(n){var e=n.props.style;if(Mo("OBJECT",e)){var t=null!=e&&e.layout?e:r({},e,{layout:"text"});if(Mo("STRING",t.layout))return t;if(Fo("style.layout","STRING",t.layout),Mo("STRING",t.preset))return r({layout:"text"},t)}else void 0!==e&&Fo("style","OBJECT",e);return{layout:"text"}},currency:function(n){var e=n.props.currency;if(void 0!==e){if(Mo("STRING",e))return e;Fo("currency","STRING",e)}},pageType:function(n){var e=n.props.pageType;if(void 0!==e){var t=["home","category","product","payment","product-list","product-listing","search-results","product-details","mini-cart","cart","checkout"];if(Mo("STRING",e)){if(ft()(t,e))return e;!function(n,e,t){Lo("pageType",'Expected one of ["'+e.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,e)}else Fo("pageType","STRING",e)}},buyerCountry:function(n){var e=n.props.buyerCountry;if(void 0!==e){if(Mo("STRING",e))return e;Fo("buyerCountry","STRING",e)}},language:function(n){var e=n.props.language;if(void 0!==e){if(Mo("STRING",e))return e;Fo("language","STRING",e)}},ignoreCache:function(n){var e=n.props.ignoreCache;if(void 0!==e){if(Mo("BOOLEAN",e))return e;Fo("ignoreCache","BOOLEAN",e)}},channel:function(n){var e=n.props.channel;if(void 0!==e){if(Mo("STRING",e))return/^[A-Z0-9_]+$/.test(e)?e:void 0;Fo("channel","STRING",e)}},ecToken:function(n){var e=n.props.ecToken;if(void 0!==e){if(Mo("STRING",e))return e;Fo("ecToken","STRING",e)}},buttonSessionId:function(n){var e=n.props.buttonSessionId;if(void 0!==e){if(Mo("STRING",e))return e;Fo("buttonSessionId","STRING",e)}},contextualComponents:function(n){var e=n.props.contextualComponents;if(void 0!==e){var t;if(Array.isArray(e))t=e.map((function(n){return n.toUpperCase()}));else{if("string"!=typeof e)return void Fo("contextualComponents","STRING or ARRAY",e);t=e.toUpperCase().split(",")}var r=t.every((function(n){return n.endsWith("_BUTTON")})),o=t.every((function(n){return n.endsWith("_MARK")}));if(r||o){if(!(t.filter((function(n){return n.endsWith("_MARK")})).length>1))return t.sort().join(",");Lo("contextualComponents","Ensure only one type of mark value is provided.")}else Lo("contextualComponents","Invalid contextualComponents combination. Expected all contextualComponents values to be either of type 'button' or 'mark' but received \""+e+'"')}},cspNonce:function(n){var e=n.props.cspNonce;if(void 0!==e){if(Mo("STRING",e))return e;Fo("cspNonce","STRING",e)}},merchantConfig:function(n){var e=n.props.merchantConfig;if(void 0!==e){if(!Mo("STRING",e))return;return e}},features:function(n){var e=n.props.features;if(void 0!==e){if(Mo("STRING",e))return e;Fo("features","STRING",e)}}},Zo=(Ho=0,function(n){return n+" "+(Ho+=1)}),zo=function(n){var e=n.uid,t=n.frame,r=n.prerenderFrame,o=n.doc,i=n.event,a=n.state,u=n.props,c=u.cspNonce,s=u.features;if("popup"!==n.context){var f=null!=s&&s.includes("new-checkout-design")?100:300,d=null!=s&&s.includes("new-checkout-design")?0:5,l=Ft(),p=l[0],h=l[1],v={HIDDEN:e+"-hide",MODAL_SHOW:e+"-show",TRANSITION:e+"-transition"},m=Zo(t.title);return Nt("div",{id:e,class:v.HIDDEN,onRender:function(n){var e=n.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,n.classList.remove(v.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){e.classList.add(v.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,e.classList.remove(v.MODAL_SHOW),h(),setTimeout((function(){n.classList.add(v.HIDDEN),a.previousFocus.focus()}),f)};a.open&&o(),i.on("modal-show",o),i.on("modal-hide",u),i.on("zoid-rendered",(function(){a.renderedModal=!0,E.delay(f).then((function(){return e.classList.add(v.TRANSITION)})).then((function(){return E.delay(f)})).then((function(){return ae(r)})).then((function(){a.open&&document.activeElement!==t&&t.focus()}))})),window.addEventListener("keyup",(function(n){!a.open||"Escape"!==n.key&&"Esc"!==n.key&&27!==n.charCode||u()}))}},Nt("style",{nonce:c},"\n #"+e+"."+v.HIDDEN+" {\n visibility: hidden;\n }\n\n #"+e+" > div > iframe {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n border: none !important;\n }\n\n @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n #"+e+"."+v.HIDDEN+" > div > iframe {\n opacity: 0;\n }\n }\n\n #"+e+" > div {\n background: rgba(108, 115, 120, 0);\n transition: background "+f+"ms linear;\n position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 2147483647 !important; border: none !important;\n }\n\n "+("new-checkout-design"!==s?"#"+e+" > div."+v.MODAL_SHOW+" {\n background: rgba(108, 115, 120, 0.85);\n }":"")+"\n\n #"+e+" > div > iframe {\n transition: all "+f+"ms;\n transform: translateY("+d+"%);\n opacity: 0;\n }\n\n #"+e+" > div."+v.MODAL_SHOW+" > iframe {\n transform: translateY(0);\n opacity: 1;\n }\n\n #"+e+" > div > iframe:first-of-type {\n opacity: 0;\n }\n\n #"+e+" > div."+v.MODAL_SHOW+"."+v.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+e+" > div."+v.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),Nt("div",null,Nt("node",{el:t,title:m}),Nt("node",{el:r,title:"Prerender "+m}))).render(It({doc:o}))}},Ko=t(97),qo=function(n){var e,t=n.doc,r=n.props,o=r.cspNonce,i=r.features,a=r.onError,u=r.onClose,c=n.event,s=n.state,f=null!=i&&i.includes("new-checkout-design")?"true":"false",d="\n @font-face {\n font-family: 'PayPalOpen';\n src: url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n html {\n color: #2d2d2d;\n font-family: PayPalOpen, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n }\n .modal{\n overflow-y: scroll;\n }\n "+("true"===f?" @media screen and (min-width: 640px) {\n .overlay {\n background-color: #f1f2f3; \n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 424px;\n height: 90vh;\n border-radius: 32px;\n border: 1px solid #cdd0d4;\n }\n }\n @media screen and (max-width: 639px) {\n .overlay {\n background-color: #f1f2f3;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }\n }\n ":".overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }")+"\n .modal-content {\n position: relative;\n margin: auto;\n height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n }\n "+("true"===f&&"\n @media screen and (min-width: 640px) {\n #prerender-close-btn {\n position: relative;\n }\n .close-button {\n position: absolute;\n width: 424px;\n transform: translate(-50%, -50%);\n top: 85px;\n left: 50%;\n padding-left: 25px;\n z-index: 50;\n }\n }\n @media screen and (max-width: 639px) {\n #prerender-close-btn {\n left: 0;\n }\n }\n\n .spinnerImage{\n display: none;\n }\n .loader {\n width: 44px !important;\n height: 44px !important;\n margin: 0 0 0 -22px !important;\n background-color: transparent !important;\n animation: rotation 1.3s infinite linear !important;\n border-left: 3px solid #0544b5 !important;\n border-right: 3px solid #0544b5 !important;\n border-bottom: 3px solid transparent !important;\n border-top: 3px solid #0544b5 !important;\n border-radius: 100% !important;\n top: 20;\n }\n ")+"\n .spinner{\n position: relative !important;\n }\n\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n display: block;\n padding: 0;\n border: none;\n cursor: pointer;\n position: absolute;\n z-index: 50;\n right: 0;\n margin-right: 2px;\n margin-top: 2px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n }\n\n #modal-status {\n color: white;\n position: absolute;\n top: 67%;\n left: calc( 50% - 10px );\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n \n "+("true"===f&&"\n .close-button > button {\n background-color: transparent;\n width: 44px;\n height: 44px;\n }\n\n .close-button > button > svg {\n margin-top: -20px;\n margin-left: -20px;\n width: 24px;\n height: 24px;\n }\n\n @media screen and (max-width: 639px) {\n .close-button > button > svg {\n margin-top: auto;\n margin-left: auto;\n }\n }\n\n #modal-status {\n color: #545D68;\n position: absolute;\n top: 52%;\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n ")+"\n\n @media screen and (max-width: 639px), (max-height: 539px){\n .modal{\n overflow-y: hidden;\n }\n .modal-content {\n height: calc(100% - 84px);\n \n }\n }\n \n ",l=function(){u({linkName:"Pre-render Close"}),c.trigger("modal-hide")};return c.on("modal-show",(function(){s.renderedModal||window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var n;null==(n=e)||n.focus()}))}))})),Nt("html",{lang:"en"},Nt("head",null,Nt("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Nt("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Nt("style",{nonce:o},d),Nt("body",{onRender:function(n){e=n.querySelector("#prerender-close-btn"),window.requestAnimationFrame((function(){var n;null==(n=e)||n.focus()})),E.delay(15e3).then((function(){return function(n){E.delay(15e3).then((function(){var e=n.querySelector("#modal-status");e&&!s.renderedModal&&(e.style.display="block",e.textContent="Error loading Modal",a&&a({message:e.textContent}))}))}(n)}))},onKeyUp:function(n){s.renderedModal||!s.open||"Escape"!==n.key&&"Esc"!==n.key&&27!==n.charCode||l()}},Nt("div",{class:"modal","aria-errormessage":"modal-status"},Nt("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),Nt("div",{class:"top-overlay"}),Nt("div",{class:"modal-content"},Nt("div",{class:"close-button"},Nt("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===f?Nt("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.203 4.793a1 1 0 0 1 0 1.414L9.91 12.5l6.293 6.293a1 1 0 0 1-1.414 1.414l-6.993-6.993a1.01 1.01 0 0 1 0-1.428l6.993-6.993a1 1 0 0 1 1.414 0Z",fill:"#545D68"})):Nt("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nt("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Nt("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Nt("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Nt(Ko.Spinner,{nonce:o}))))).render(It({doc:t}))},Yo=(jo="__paypal_credit_modal__",Uo=function(){return function(n){Qr();var e=Io(n),t=function(n){return e.init(n)};t.driver=function(n,t){return e.driver(n,t)},t.isChild=function(){return e.isChild()},t.canRenderTo=function(n){return e.canRenderTo(n)},t.instances=e.instances;var r=e.registerChild();return r&&(window.xprops=t.xprops=r.getProps()),t}({tag:Ke.MODAL,url:er("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:zo,prerenderTemplate:qo,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:Go.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:Go.merchantId},integrationIdentifier:{type:"string",queryParam:!0,value:function(n){return n.props.refIndex?void 0:"messagesModal"},required:!1},customerId:{type:"string",queryParam:"customer_id",required:!1,value:Go.customerId},currency:{type:"string",queryParam:!0,required:!1,value:Go.currency},amount:{type:"number",queryParam:!0,required:!1,value:Go.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:Go.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:Go.language},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(n){return kt(n.value)}},refId:{type:"string",queryParam:!1,required:!1},refIndex:{type:"string",queryParam:!1,required:!1},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:Go.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:Go.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:Go.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:Go.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:Go.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:Go.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onClick,r=e.onApply;return function(n){var o=n.linkName,i=n.src;fr.track({index:e.index,refIndex:e.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:o,page_view_link_source:null!=i?i:o}),"function"==typeof t&&t({linkName:o}),"function"==typeof r&&lt()(o,"Apply Now")&&r()}}},onCalculate:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onCalculate;return function(n){var r=n.value;fr.track({index:e.index,refIndex:e.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:"Calculator",page_view_link_source:"Calculator",calculator_input:r}),"function"==typeof t&&t({value:r})}}},onError:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onError;return function(n){var r=n.message;fr.track({index:e.index,refIndex:e.refIndex,et:"ERROR",event_type:"error",message:r}),"function"==typeof t&&t({message:r})}}},onShow:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onShow;return function(){var n=e.src;fr.track({index:e.index,refIndex:e.refIndex,et:"CLIENT_IMPRESSION",event_type:"modal_viewed",src:void 0===n?"show":n}),"function"==typeof t&&t()}}},onClose:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=n.event,r=e.onClose;return function(n){var o=(void 0===n?{}:n).linkName;if(void 0!==o){var i=e.index,a=e.refIndex;t.trigger("modal-hide"),fr.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=n.state,o=n.event,i=e.onReady,a=e.buttonSessionId;return function(n){var u=n.products,c=n.meta,s=n.ts,f=e.index,d=e.offer,l=e.merchantId,p=e.account,h=e.refIndex,v=e.messageRequestId,m=t.renderStart,y=t.show,w=t.hide,g=c.trackingDetails,E=c.ppDebugId,_=l&&p.slice(10);Ht("Modal Correlation ID: "+E),fr.addMetaBuilder((function(n){var e;delete n[f];var t,o,i,u,c=n.global,d=void 0===c?{}:c;return delete n.global,(e={global:r({},d,{ts:void 0!==s?s:null!=(t=tt().getState((function(n){return null==n?void 0:n.ts})))?t:(u=decodeURIComponent(null!=(o=null==(i=document.cookie.split("; ").find((function(n){return n.startsWith("ts_c=")})))?void 0:i.slice(5))?o:""),0===Object.keys(u).length?null:Object.fromEntries(new URLSearchParams(u).entries())),deviceID:ot(),sessionID:rt()})})[f]={type:"modal",messageRequestId:v,buttonSessionId:a,account:l||p,partnerClientId:_,trackingDetails:g},e}));var S=ur("firstModalRenderDelay");fr.info("modal_render",{index:f,refIndex:h,duration:Lt()-m}),fr.track({index:f,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(d?d.toLowerCase():u[0]),bn_code:{}[dr.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(S).toString(),render_duration:Math.round(Lt()-m).toString()}),"function"!=typeof i||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||i({products:u,show:y,hide:w}),t.products=Array.isArray(u)&&u.map(kt),o.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(n){var e,t=n.state;return t.index||(t.index=(e=$t().index,nr({index:e+1}),e).toString()),t.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(n){var e=n.props;return Zt()(e.account,"client-id:")?null:e.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(n){var e=n.props;return Zt()(e.account,"client-id:")?e.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Xe},env:{type:"string",queryParam:!0,value:Ye},version:{type:"string",queryParam:!0,value:nt},deviceID:{type:"string",queryParam:!0,value:ot},sessionID:{type:"string",queryParam:!0,value:rt},scriptUID:{type:"string",queryParam:!0,value:pe},messageRequestId:{type:"string",queryParam:"message_request_id",value:dn,decorate:function(n){var e=n.props;return Ht("Modal Message Request ID: "+e.messageRequestId),e.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},stageTag:{type:"string",queryParam:!0,required:!1,value:it},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:at},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE_MODAL"}},cspNonce:{type:"string",required:!1,default:Ve,value:Go.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:qe},features:{type:"string",queryParam:"features",required:!1,value:function(n){return function(n){var e=[];e.push("native-modal");var t=n||"";return e.length>0&&(t+=t?","+e.join(","):e.join(",")),void 0===n&&""===t?void 0:t}(Go.features({props:n.props}))}}}})},function(){var n;return $t()[jo]||nr(((n={})[jo]=Uo(),n)),$t()[jo]}),Vo=(Bo=["account","merchantId","buyerCountry"],Wo=new Map,function(n,e){void 0===e&&(e=!1);var t=JSON.stringify(Bo.map((function(e){return n[e]})));return Wo.has(t)&&!e||Wo.set(t,function(n){var e=n.account,t=n.merchantId,r=n.customerId,o=n.currency,i=n.amount,a=n.buyerCountry,u=n.language,c=n.ignoreCache,s=n.offer,f=n.onReady,d=n.onCalculate,l=n.onError,p=n.onApply,h=n.onShow,v=n.onClose,m=n.channel,y=n.ecToken,w=n.contextualComponents,g=n.cspNonce,_=n.integrationIdentifier,S=n.features,b=n.buttonSessionId;cr("firstModalRenderDelay");var N,T=Yo()({account:e,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,ignoreCache:c,offer:s,onReady:f,onCalculate:d,onError:l,onApply:p,onShow:h,onClose:v,channel:m,ecToken:y,contextualComponents:w,cspNonce:g,integrationIdentifier:_,features:S,buttonSessionId:b}),A=function(n,e,t){void 0===n&&(n="body"),void 0===t&&(t={intent:"render"});var r=function(){try{return window.top.document.body&&window.top}catch(n){return}}()===window||null!=S&&S.includes("new-checkout-design")?"iframe":"popup";if(N&&"popup"!==r)return N.then((function(){return e&&T.updateProps(e)}));N&&"popup"===r&&Object.assign(T,T.clone());var o=new E((function(n){return T.event.once("ready",n)}));T.state.renderStart=Lt();var i="show"===t.intent?E.resolve():rr.then((function(){return E.delay(0)}));return N=i.then((function(){return E.all([e&&T.updateProps(e),T.render(n,r),o])})).then((function(){return tr.trigger("modal-render")}))},R=function(n){var e;void 0===n&&(n={});var t,r,o,i,a=Yt(n)?Vt(n):n;Yt(n)&&(a.src=null!=(t=null!=(r=null!=(o=n.id)?o:[].concat(n.classList).filter(Boolean).reduce((function(n,e){return(null!=n?n:"")+"."+e}),null))?r:null==(i=n.constructor)?void 0:i.name)?t:"element"),N=A("body",a,{intent:"show"});var u=kt(n.offer),c="DE"===(null==(e=n)?void 0:e.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:T.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(T.state.products)&&!ct()(c,(function(n){return n===u}))?(fr.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+T.state.products.join('", "')+'"] but received "'+n.offer+'".'}),E.resolve()):(T.state.open=!0,T.event.trigger("modal-show"),N)},x=function(){return N=A("body"),T.event.trigger("modal-hide"),N};return T.state.show=R,T.state.hide=x,{render:A,show:R,hide:x,updateProps:function(n){T.updateProps(n)}}}(n)),Wo.get(t)}),Jo=function(n){return Vo(Kt($t().config,n))};cr("scriptLoadDelay"),function(){Yo(),function(){var n=Qe();if(n&&!n[Xt]){Ht("Script:",{debugObj:n});var e=Vt(n);nr({config:r({},$t().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},e)}),n[Xt]=!0}}();var n,e=$e();window[e]=null!=(n=window[e])?n:{},window[e].MessagesModal=Jo,et()||or.then((function(){if($t().config.account){var n=Qt("[data-pp-messagesmodal]");if(n.length>0){var e=Kt($t().config,Vt(n[0])),t=Jo(e);n.forEach((function(n){n.setAttribute("tabindex",0),n.addEventListener("click",(function(){return t.show(n)}))}))}}}))}()}]);
3
- //# sourceMappingURL=modal@1.68.1.js.map
1
+ /* version: 1.68.2 */
2
+ !function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=167)}([function(n,e){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,e,t){var r=t(32),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);n.exports=r?a:function(n){return function(){return i.apply(n,arguments)}}},function(n,e,t){var r=t(64),o=r.all;n.exports=r.IS_HTMLDDA?function(n){return"function"==typeof n||n===o}:function(n){return"function"==typeof n}},function(n,e,t){var r=t(6),o=t(71),i=t(10),a=t(49),u=t(70),c=t(69),s=r.Symbol,f=o("wks"),d=c?s.for||s:s&&s.withoutSetter||a;n.exports=function(n){return i(f,n)||(f[n]=u&&i(s,n)?s[n]:d("Symbol."+n)),f[n]}},function(n,e,t){var r=t(0);n.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(n,e,t){"use strict";var r=t(6),o=t(108),i=t(52),a=t(2),u=t(72).f,c=t(109),s=t(14),f=t(23),d=t(18),l=t(10),p=function(n){var e=function(t,r,i){if(this instanceof e){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,r)}return new n(t,r,i)}return o(n,this,arguments)};return e.prototype=n.prototype,e};n.exports=function(n,e){var t,o,h,v,m,y,w,g,E,_=n.target,S=n.global,b=n.stat,N=n.proto,T=S?r:b?r[_]:(r[_]||{}).prototype,A=S?s:s[_]||d(s,_,{})[_],R=A.prototype;for(v in e)o=!(t=c(S?v:_+(b?".":"#")+v,n.forced))&&T&&l(T,v),y=A[v],o&&(w=n.dontCallGetSet?(E=u(T,v))&&E.value:T[v]),m=o&&w?w:e[v],o&&typeof y==typeof m||(g=n.bind&&o?f(m,r):n.wrap&&o?p(m):N&&a(m)?i(m):m,(n.sham||m&&m.sham||y&&y.sham)&&d(g,"sham",!0),d(A,v,g),N&&(l(s,h=_+"Prototype")||d(s,h,{}),d(s[h],v,m),n.real&&R&&(t||!R[v])&&d(R,v,m)))}},function(n,e){var t=function(n){return n&&n.Math==Math&&n};n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||function(){return this}()||this||Function("return this")()},function(n,e,t){var r=t(143);n.exports=r},function(n,e,t){var r=t(2),o=t(64),i=o.all;n.exports=o.IS_HTMLDDA?function(n){return"object"==typeof n?null!==n:r(n)||n===i}:function(n){return"object"==typeof n?null!==n:r(n)}},function(n,e,t){var r=t(32),o=function(){}.call;n.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(n,e,t){var r=t(1),o=t(19),i=r({}.hasOwnProperty);n.exports=Object.hasOwn||function(n,e){return i(o(n),e)}},function(n,e,t){var r=t(153);n.exports=r},function(n,e,t){var r=t(4),o=t(65),i=t(67),a=t(13),u=t(44),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor;e.f=r?i?function(n,e,t){if(a(n),e=u(e),a(t),"function"==typeof n&&"prototype"===e&&"value"in t&&"writable"in t&&!t.writable){var r=f(n,e);r&&r.writable&&(n[e]=t.value,t={configurable:"configurable"in t?t.configurable:r.configurable,enumerable:"enumerable"in t?t.enumerable:r.enumerable,writable:!1})}return s(n,e,t)}:s:function(n,e,t){if(a(n),e=u(e),a(t),o)try{return s(n,e,t)}catch(n){}if("get"in t||"set"in t)throw c("Accessors not supported");return"value"in t&&(n[e]=t.value),n}},function(n,e,t){var r=t(8),o=String,i=TypeError;n.exports=function(n){if(r(n))return n;throw i(o(n)+" is not an object")}},function(n,e){n.exports={}},function(n,e,t){var r=t(141);n.exports=r},function(n,e,t){var r=t(43),o=t(25);n.exports=function(n){return r(o(n))}},function(n,e,t){var r=t(1),o=r({}.toString),i=r("".slice);n.exports=function(n){return i(o(n),8,-1)}},function(n,e,t){var r=t(4),o=t(12),i=t(36);n.exports=r?function(n,e,t){return o.f(n,e,i(1,t))}:function(n,e,t){return n[e]=t,n}},function(n,e,t){var r=t(25),o=Object;n.exports=function(n){return o(r(n))}},function(n,e,t){var r=t(77);n.exports=function(n){return r(n.length)}},function(n,e,t){var r=t(148);n.exports=r},function(n,e){n.exports={}},function(n,e,t){var r=t(52),o=t(27),i=t(32),a=r(r.bind);n.exports=function(n,e){return o(n),void 0===e?n:i?a(n,e):function(){return n.apply(e,arguments)}}},,function(n,e,t){var r=t(33),o=TypeError;n.exports=function(n){if(r(n))throw o("Can't call method on "+n);return n}},function(n,e,t){var r=t(14),o=t(6),i=t(2),a=function(n){return i(n)?n:void 0};n.exports=function(n,e){return arguments.length<2?a(r[n])||a(o[n]):r[n]&&r[n][e]||o[n]&&o[n][e]}},function(n,e,t){var r=t(2),o=t(47),i=TypeError;n.exports=function(n){if(r(n))return n;throw i(o(n)+" is not a function")}},function(n,e){n.exports=!0},function(n,e,t){var r=t(60),o=t(2),i=t(17),a=t(3)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());n.exports=r?i:function(n){var e,t,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(t=function(n,e){try{return n[e]}catch(n){}}(e=u(n),a))?t:c?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},function(n,e,t){var r=t(26);n.exports=r},function(n,e,t){var r=t(145);n.exports=r},function(n,e,t){var r=t(0);n.exports=!r((function(){var n=function(){}.bind();return"function"!=typeof n||n.hasOwnProperty("prototype")}))},function(n,e){n.exports=function(n){return null==n}},function(n,e){n.exports=function(){}},function(n,e,t){var r,o,i,a=t(102),u=t(6),c=t(8),s=t(18),f=t(10),d=t(48),l=t(50),p=t(37),h=u.TypeError;if(a||d.state){var v=d.state||(d.state=new(0,u.WeakMap));v.get=v.get,v.has=v.has,v.set=v.set,r=function(n,e){if(v.has(n))throw h("Object already initialized");return e.facade=n,v.set(n,e),e},o=function(n){return v.get(n)||{}},i=function(n){return v.has(n)}}else{var m=l("state");p[m]=!0,r=function(n,e){if(f(n,m))throw h("Object already initialized");return e.facade=n,s(n,m,e),e},o=function(n){return f(n,m)?n[m]:{}},i=function(n){return f(n,m)}}n.exports={set:r,get:o,has:i,enforce:function(n){return i(n)?o(n):r(n,{})},getterFor:function(n){return function(e){var t;if(!c(e)||(t=o(e)).type!==n)throw h("Incompatible receiver, "+n+" required");return t}}}},function(n,e){n.exports=function(n,e){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:e}}},function(n,e){n.exports={}},function(n,e,t){var r=t(74),o=t(56);n.exports=Object.keys||function(n){return r(n,o)}},function(n,e,t){var r=t(29),o=String;n.exports=function(n){if("Symbol"===r(n))throw TypeError("Cannot convert a Symbol value to a string");return o(n)}},function(n,e,t){var r=t(137);n.exports=r},function(n,e,t){var r=t(151);n.exports=r},function(n,e,t){var r=t(155);n.exports=r},function(n,e,t){var r=t(1),o=t(0),i=t(17),a=Object,u=r("".split);n.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(n){return"String"==i(n)?u(n,""):a(n)}:a},function(n,e,t){var r=t(103),o=t(68);n.exports=function(n){var e=r(n,"string");return o(e)?e:e+""}},function(n,e,t){var r=t(1);n.exports=r({}.isPrototypeOf)},function(n,e,t){var r=t(27),o=t(33);n.exports=function(n,e){var t=n[e];return o(t)?void 0:r(t)}},function(n,e){var t=String;n.exports=function(n){try{return t(n)}catch(n){return"Object"}}},function(n,e,t){var r=t(6),o=t(107),i=r["__core-js_shared__"]||o("__core-js_shared__",{});n.exports=i},function(n,e,t){var r=t(1),o=0,i=Math.random(),a=r(1..toString);n.exports=function(n){return"Symbol("+(void 0===n?"":n)+")_"+a(++o+i,36)}},function(n,e,t){var r=t(71),o=t(49),i=r("keys");n.exports=function(n){return i[n]||(i[n]=o(n))}},function(n,e,t){"use strict";var r=t(5),o=t(9),i=t(28),a=t(110),u=t(2),c=t(111),s=t(57),f=t(117),d=t(59),l=t(18),p=t(58),h=t(3),v=t(22),m=t(73),y=a.PROPER,w=a.CONFIGURABLE,g=m.IteratorPrototype,E=m.BUGGY_SAFARI_ITERATORS,_=h("iterator"),S=function(){return this};n.exports=function(n,e,t,a,h,m,b){c(t,e,a);var N,T,A,R=function(n){if(n===h&&C)return C;if(!E&&n in O)return O[n];switch(n){case"keys":case"values":case"entries":return function(){return new t(this,n)}}return function(){return new t(this)}},x=e+" Iterator",P=!1,O=n.prototype,I=O[_]||O["@@iterator"]||h&&O[h],C=!E&&I||R(h),D="Array"==e&&O.entries||I;if(D&&(N=s(D.call(new n)))!==Object.prototype&&N.next&&(i||s(N)===g||(f?f(N,g):u(N[_])||p(N,_,S)),d(N,x,!0,!0),i&&(v[x]=S)),y&&"values"==h&&I&&"values"!==I.name&&(!i&&w?l(O,"name","values"):(P=!0,C=function(){return o(I,this)})),h)if(T={values:R("values"),keys:m?C:R("keys"),entries:R("entries")},b)for(A in T)(E||P||!(A in O))&&p(O,A,T[A]);else r({target:e,proto:!0,forced:E||P},T);return i&&!b||O[_]===C||p(O,_,C,{name:h}),v[e]=C,T}},function(n,e,t){var r=t(17),o=t(1);n.exports=function(n){if("Function"===r(n))return o(n)}},function(n,e,t){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(n){var e=o(this,n);return!!e&&e.enumerable}:r},function(n,e,t){var r,o=t(13),i=t(112),a=t(56),u=t(37),c=t(114),s=t(66),f=t(50)("IE_PROTO"),d=function(){},l=function(n){return"<script>"+n+"<\/script>"},p=function(n){n.write(l("")),n.close();var e=n.parentWindow.Object;return n=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(n){}var n,e;h="undefined"!=typeof document?document.domain&&r?p(r):((e=s("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(n=e.contentWindow.document).open(),n.write(l("document.F=Object")),n.close(),n.F):p(r);for(var t=a.length;t--;)delete h.prototype[a[t]];return h()};u[f]=!0,n.exports=Object.create||function(n,e){var t;return null!==n?(d.prototype=o(n),t=new d,d.prototype=null,t[f]=n):t=h(),void 0===e?t:i.f(t,e)}},function(n,e,t){var r=t(113);n.exports=function(n){var e=+n;return e!=e||0===e?0:r(e)}},function(n,e){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(n,e,t){var r=t(10),o=t(2),i=t(19),a=t(50),u=t(115),c=a("IE_PROTO"),s=Object,f=s.prototype;n.exports=u?s.getPrototypeOf:function(n){var e=i(n);if(r(e,c))return e[c];var t=e.constructor;return o(t)&&e instanceof t?t.prototype:e instanceof s?f:null}},function(n,e,t){var r=t(18);n.exports=function(n,e,t,o){return o&&o.enumerable?n[e]=t:r(n,e,t),n}},function(n,e,t){var r=t(60),o=t(12).f,i=t(18),a=t(10),u=t(116),c=t(3)("toStringTag");n.exports=function(n,e,t,s){if(n){var f=t?n:n.prototype;a(f,c)||o(f,c,{configurable:!0,value:e}),s&&!r&&i(f,"toString",u)}}},function(n,e,t){var r={};r[t(3)("toStringTag")]="z",n.exports="[object z]"===String(r)},function(n,e){n.exports=function(n,e){return{value:n,done:e}}},function(n,e,t){var r=t(29),o=t(46),i=t(33),a=t(22),u=t(3)("iterator");n.exports=function(n){if(!i(n))return o(n,u)||o(n,"@@iterator")||a[r(n)]}},function(n,e,t){"use strict";var r=t(16),o=t(34),i=t(22),a=t(35),u=t(12).f,c=t(51),s=t(61),f=t(28),d=t(4),l=a.set,p=a.getterFor("Array Iterator");n.exports=c(Array,"Array",(function(n,e){l(this,{type:"Array Iterator",target:r(n),index:0,kind:e})}),(function(){var n=p(this),e=n.target,t=n.kind,r=n.index++;return!e||r>=e.length?(n.target=void 0,s(void 0,!0)):s("keys"==t?r:"values"==t?e[r]:[r,e[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&d&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(n){}},function(n,e){var t="object"==typeof document&&document.all;n.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},function(n,e,t){var r=t(4),o=t(0),i=t(66);n.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(n,e,t){var r=t(6),o=t(8),i=r.document,a=o(i)&&o(i.createElement);n.exports=function(n){return a?i.createElement(n):{}}},function(n,e,t){var r=t(4),o=t(0);n.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(n,e,t){var r=t(26),o=t(2),i=t(45),a=t(69),u=Object;n.exports=a?function(n){return"symbol"==typeof n}:function(n){var e=r("Symbol");return o(e)&&i(e.prototype,u(n))}},function(n,e,t){var r=t(70);n.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(n,e,t){var r=t(104),o=t(0),i=t(6).String;n.exports=!!Object.getOwnPropertySymbols&&!o((function(){var n=Symbol();return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(n,e,t){var r=t(28),o=t(48);(n.exports=function(n,e){return o[n]||(o[n]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(n,e,t){var r=t(4),o=t(9),i=t(53),a=t(36),u=t(16),c=t(44),s=t(10),f=t(65),d=Object.getOwnPropertyDescriptor;e.f=r?d:function(n,e){if(n=u(n),e=c(e),f)try{return d(n,e)}catch(n){}if(s(n,e))return a(!o(i.f,n,e),n[e])}},function(n,e,t){"use strict";var r,o,i,a=t(0),u=t(2),c=t(8),s=t(54),f=t(57),d=t(58),l=t(3),p=t(28),h=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var n={};return r[h].call(n)!==n}))?r={}:p&&(r=s(r)),u(r[h])||d(r,h,(function(){return this})),n.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(n,e,t){var r=t(1),o=t(10),i=t(16),a=t(75).indexOf,u=t(37),c=r([].push);n.exports=function(n,e){var t,r=i(n),s=0,f=[];for(t in r)!o(u,t)&&o(r,t)&&c(f,t);for(;e.length>s;)o(r,t=e[s++])&&(~a(f,t)||c(f,t));return f}},function(n,e,t){var r=t(16),o=t(76),i=t(20),a=function(n){return function(e,t,a){var u,c=r(e),s=i(c),f=o(a,s);if(n&&t!=t){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((n||f in c)&&c[f]===t)return n||f||0;return!n&&-1}};n.exports={includes:a(!0),indexOf:a(!1)}},function(n,e,t){var r=t(55),o=Math.max,i=Math.min;n.exports=function(n,e){var t=r(n);return t<0?o(t+e,0):i(t,e)}},function(n,e,t){var r=t(55),o=Math.min;n.exports=function(n){return n>0?o(r(n),9007199254740991):0}},function(n,e,t){var r=t(5),o=t(1),i=t(37),a=t(8),u=t(10),c=t(12).f,s=t(79),f=t(123),d=t(125),l=t(49),p=t(127),h=!1,v=l("meta"),m=0,y=function(n){c(n,v,{value:{objectID:"O"+m++,weakData:{}}})},w=n.exports={enable:function(){w.enable=function(){},h=!0;var n=s.f,e=o([].splice),t={};t[v]=1,n(t).length&&(s.f=function(t){for(var r=n(t),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(n,e){if(!a(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!u(n,v)){if(!d(n))return"F";if(!e)return"E";y(n)}return n[v].objectID},getWeakData:function(n,e){if(!u(n,v)){if(!d(n))return!0;if(!e)return!1;y(n)}return n[v].weakData},onFreeze:function(n){return p&&h&&d(n)&&!u(n,v)&&y(n),n}};i[v]=!0},function(n,e,t){var r=t(74),o=t(56).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(n){return r(n,o)}},function(n,e,t){"use strict";var r=t(44),o=t(12),i=t(36);n.exports=function(n,e,t){var a=r(e);a in n?o.f(n,a,i(0,t)):n[a]=t}},function(n,e,t){var r=t(23),o=t(9),i=t(13),a=t(47),u=t(82),c=t(20),s=t(45),f=t(83),d=t(62),l=t(84),p=TypeError,h=function(n,e){this.stopped=n,this.result=e},v=h.prototype;n.exports=function(n,e,t){var m,y,w,g,E,_,S,b=!(!t||!t.AS_ENTRIES),N=!(!t||!t.IS_RECORD),T=!(!t||!t.IS_ITERATOR),A=!(!t||!t.INTERRUPTED),R=r(e,t&&t.that),x=function(n){return m&&l(m,"normal",n),new h(!0,n)},P=function(n){return b?(i(n),A?R(n[0],n[1],x):R(n[0],n[1])):A?R(n,x):R(n)};if(N)m=n.iterator;else if(T)m=n;else{if(!(y=d(n)))throw p(a(n)+" is not iterable");if(u(y)){for(w=0,g=c(n);g>w;w++)if((E=P(n[w]))&&s(v,E))return E;return new h(!1)}m=f(n,y)}for(_=N?n.next:m.next;!(S=o(_,m)).done;){try{E=P(S.value)}catch(n){l(m,"throw",n)}if("object"==typeof E&&E&&s(v,E))return E}return new h(!1)}},function(n,e,t){var r=t(3),o=t(22),i=r("iterator"),a=Array.prototype;n.exports=function(n){return void 0!==n&&(o.Array===n||a[i]===n)}},function(n,e,t){var r=t(9),o=t(27),i=t(13),a=t(47),u=t(62),c=TypeError;n.exports=function(n,e){var t=arguments.length<2?u(n):e;if(o(t))return i(r(t,n));throw c(a(n)+" is not iterable")}},function(n,e,t){var r=t(9),o=t(13),i=t(46);n.exports=function(n,e,t){var a,u;o(n);try{if(!(a=i(n,"return"))){if("throw"===e)throw t;return t}a=r(a,n)}catch(n){u=!0,a=n}if("throw"===e)throw t;if(u)throw a;return o(a),t}},function(n,e,t){var r=t(45),o=TypeError;n.exports=function(n,e){if(r(e,n))return n;throw o("Incorrect invocation")}},function(n,e,t){var r=t(23),o=t(1),i=t(43),a=t(19),u=t(20),c=t(87),s=o([].push),f=function(n){var e=1==n,t=2==n,o=3==n,f=4==n,d=6==n,l=7==n,p=5==n||d;return function(h,v,m,y){for(var w,g,E=a(h),_=i(E),S=r(v,m),b=u(_),N=0,T=y||c,A=e?T(h,b):t||l?T(h,0):void 0;b>N;N++)if((p||N in _)&&(g=S(w=_[N],N,E),n))if(e)A[N]=g;else if(g)switch(n){case 3:return!0;case 5:return w;case 6:return N;case 2:s(A,w)}else switch(n){case 4:return!1;case 7:s(A,w)}return d?-1:o||f?f:A}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(n,e,t){var r=t(128);n.exports=function(n,e){return new(r(n))(0===e?0:e)}},function(n,e,t){var r=t(17);n.exports=Array.isArray||function(n){return"Array"==r(n)}},function(n,e,t){var r=t(1),o=t(0),i=t(2),a=t(29),u=t(26),c=t(129),s=function(){},f=[],d=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=r(l.exec),h=!l.exec(s),v=function(n){if(!i(n))return!1;try{return d(s,f,n),!0}catch(n){return!1}},m=function(n){if(!i(n))return!1;switch(a(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(n))}catch(n){return!0}};m.sham=!0,n.exports=!d||o((function(){var n;return v(v.call)||!v(Object)||!v((function(){n=!0}))||n}))?m:v},function(n,e,t){var r=t(12);n.exports=function(n,e,t){return r.f(n,e,t)}},function(n,e,t){"use strict";var r=t(134).charAt,o=t(39),i=t(35),a=t(51),u=t(61),c=i.set,s=i.getterFor("String Iterator");a(String,"String",(function(n){c(this,{type:"String Iterator",string:o(n),index:0})}),(function(){var n,e=s(this),t=e.string,o=e.index;return o>=t.length?u(void 0,!0):(n=r(t,o),e.index+=n.length,u(n,!1))}))},function(n,e,t){var r=t(147),o=TypeError;n.exports=function(n){if(r(n))throw o("The method doesn't accept regular expressions");return n}},function(n,e,t){var r=t(3)("match");n.exports=function(n){var e=/./;try{"/./"[n](e)}catch(t){try{return e[r]=!1,"/./"[n](e)}catch(n){}}return!1}},function(n,e,t){n.exports=t(100)},function(n,e,t){var r=t(101);t(135),n.exports=r},function(n,e,t){var r=t(160);n.exports=r},function(n,e){n.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";function r(n,e){for(var t=[],r=0;r<n.length;r++){var o=n[r].render(e);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(e),t.d(e,"Spinner",(function(){return E})),t.d(e,"SpinnerPage",(function(){return _})),t.d(e,"VenmoSpinner",(function(){return S})),t.d(e,"VenmoSpinnerPage",(function(){return b}));var o=function(){function n(n,e,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=n,this.props=e||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete e.onRender)}var e=n.prototype;return e.render=function(n){var e=n(this);return this.onRender&&this.onRender(e),e},e.renderChildren=function(n){return r(this.children,n)},n}(),i=function(){function n(n){this.type="fragment",this.children=void 0,this.children=n}return n.prototype.render=function(n){return r(this.children,n)},n}(),a=function(){function n(n){this.type="text",this.text=void 0,this.text=n}return n.prototype.render=function(n){return n(this)},n}(),u=function(){function n(n,e,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=n,this.props=e||{},this.children=t,this.props.children=t}var e=n.prototype;return e.renderComponent=function(n){var e=function(n){var e=c(Array.isArray(n)?n:[n]);return 1===e.length?e[0]:e.length>1?new i(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return r(this.children,n)},n}();function c(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(r)if("string"==typeof r||"number"==typeof r)e.push(new a(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=c(r);o<i.length;o++)e.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);e.push(r)}}}return e}var s,f,d,l=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];if(r=c(r),"string"==typeof n)return new o(n,e,r);if("function"==typeof n)return new u(n,e,r);throw new TypeError("Expected jsx element to be a string or a function")},p=function(n,e){return e},h=((s={}).svg="http://www.w3.org/2000/svg",s),v=((f={})["xlink:href"]="http://www.w3.org/1999/xlink",f);function m(n,e){return n.createTextNode(e.text)}function y(n,e){for(var t=e.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)n.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=v[i];u?n.setAttributeNS(u,i,a.toString()):n.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&n.setAttribute(i,"")}"iframe"!==n.tagName.toLowerCase()||t.id||n.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var w=((d={}).iframe=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");n.addEventListener("load",(function(){var e=n.contentWindow;if(!e)throw new Error("Expected frame to have contentWindow");for(var r=e.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(function(n){void 0===n&&(n={});var e=n.doc,t=void 0===e?document:e,r=function(n,e){if("component"===n.type)return n.renderComponent((function(n){return r(n,e)}));if("text"===n.type)return m(t,n);if("element"===n.type){var o=function(n,e,t){return n.createElementNS(t,e.name)}(t,n,e);return y(o,n),g(o,n,t,(function(n){return r(n,e)})),o}throw new TypeError("Unhandleable node")},o=function(n){if("component"===n.type)return n.renderComponent(o);if("text"===n.type)return m(t,n);if("element"===n.type){var e=h[n.name.toLowerCase()];if(e)return r(n,e);var i=function(n,e){return e.props.el?e.props.el:n.createElement(e.name)}(t,n);return y(i,n),g(i,n,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},d.script=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");n.text=t.text},d.default=function(n,e,t){for(var r=0,o=e.renderChildren(t);r<o.length;r++)n.appendChild(o[r])},d);function g(n,e,t,r){if(e.props.hasOwnProperty("innerHTML")){if(e.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=e.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===e.name?n.text=o:(n.innerHTML=o,function(n,e){void 0===e&&(e=window.document);for(var t=0,r=n.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=e.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(n,t))}else(w[e.name]||w.default)(n,e,r)}function E(n){return l("div",{class:"preloader spinner"},l("style",{nonce:n.nonce,innerHTML:"\n\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n\n .spinner {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 10\n }\n\n .spinner .spinWrap {\n width: 200px;\n height: 100px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: -100px;\n margin-top: -50px\n }\n\n .spinner .loader,\n .spinner .spinnerImage {\n height: 100px;\n width: 100px;\n position: absolute;\n top: 0;\n left: 50%;\n opacity: 1;\n filter: alpha(opacity=100)\n }\n\n .spinner .spinnerImage {\n margin: 28px 0 0 -25px;\n background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat\n }\n\n .spinner .loader {\n margin: 0 0 0 -55px;\n background-color: transparent;\n animation: rotation .7s infinite linear;\n border-left: 5px solid #cbcbca;\n border-right: 5px solid #cbcbca;\n border-bottom: 5px solid #cbcbca;\n border-top: 5px solid #2380be;\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"}),l("div",{class:"spinWrap"},l("p",{class:"spinnerImage"}),l("p",{class:"loader"})))}function _(n,e){var t=n.nonce;return l("html",null,l("head",null,l("title",null,"PayPal"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(E,{nonce:t}),e))}function S(n){return l(p,null,l("style",{nonce:n.nonce,innerHTML:'\n body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n }\n .spinner {\n color: official;\n display: inline-block;\n width: 80px;\n height: 80px;\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n }\n .spinner div {\n transform-origin: 40px 40px;\n animation: spinner 1.2s linear infinite;\n }\n .spinner div:after {\n content: " ";\n display: block;\n position: absolute;\n top: 20px;\n left: 37px;\n width: 3px;\n height: 10px;\n border-radius: 30%;\n background: #808080;\n }\n .spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n }\n .spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n }\n .spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n }\n .spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n }\n .spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n }\n .spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n }\n .spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n }\n .spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n }\n .spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n }\n .spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n }\n .spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n }\n .spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n }\n @keyframes spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n'}),l("div",{class:"spinner"},l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null),l("div",null)))}function b(n,e){var t=n.nonce;return l("html",null,l("head",null,l("title",null,"Venmo"),l("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),l("body",null,l(S,{nonce:t}),e))}}])},function(n,e,t){var r=t(165);n.exports=r},,function(n,e,t){"undefined"!=typeof self&&self,n.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";t.r(e),t.d(e,"APM_LIST",(function(){return c})),t.d(e,"DEFAULT_COUNTRY",(function(){return P})),t.d(e,"DEFAULT_CURRENCY",(function(){return O})),t.d(e,"DEFAULT_INTENT",(function(){return I})),t.d(e,"DEFAULT_COMMIT",(function(){return C})),t.d(e,"DEFAULT_SALE_COMMIT",(function(){return D})),t.d(e,"DEFAULT_NONSALE_COMMIT",(function(){return M})),t.d(e,"DEFAULT_VAULT",(function(){return L})),t.d(e,"DEFAULT_COMPONENTS",(function(){return F})),t.d(e,"DEFAULT_DEBUG",(function(){return k})),t.d(e,"ENV",(function(){return H})),t.d(e,"MOBILE_ENV",(function(){return j})),t.d(e,"ERROR_CODE",(function(){return U})),t.d(e,"FPTI_KEY",(function(){return B})),t.d(e,"FPTI_USER_ACTION",(function(){return W})),t.d(e,"FPTI_DATA_SOURCE",(function(){return G})),t.d(e,"FPTI_FEED",(function(){return Z})),t.d(e,"FPTI_SDK_NAME",(function(){return z})),t.d(e,"FUNDING",(function(){return r})),t.d(e,"FUNDING_BRAND_LABEL",(function(){return o})),t.d(e,"CARD",(function(){return i})),t.d(e,"WALLET_INSTRUMENT",(function(){return a})),t.d(e,"FUNDING_PRODUCTS",(function(){return u})),t.d(e,"COUNTRY",(function(){return s})),t.d(e,"LANG",(function(){return f})),t.d(e,"COUNTRY_LANGS",(function(){return d})),t.d(e,"BASE_SDK_METRIC_NAMESPACE",(function(){return K})),t.d(e,"payPalWebV5Dimensions",(function(){return q})),t.d(e,"INTENT",(function(){return l})),t.d(e,"COMMIT",(function(){return p})),t.d(e,"VAULT",(function(){return h})),t.d(e,"CURRENCY",(function(){return v})),t.d(e,"SDK_PATH",(function(){return m})),t.d(e,"WEB_SDK_BRIDGE_PATH",(function(){return y})),t.d(e,"SDK_SETTINGS",(function(){return w})),t.d(e,"SDK_DATA_ATTRIBUTES",(function(){return g})),t.d(e,"SDK_QUERY_KEYS",(function(){return E})),t.d(e,"COMPONENTS",(function(){return _})),t.d(e,"DEBUG",(function(){return S})),t.d(e,"QUERY_BOOL",(function(){return b})),t.d(e,"UNKNOWN",(function(){return N})),t.d(e,"PROTOCOL",(function(){return T})),t.d(e,"PAGE_TYPES",(function(){return A})),t.d(e,"MERCHANT_ID_MAX",(function(){return R})),t.d(e,"DISPLAY_ONLY_VALUES",(function(){return x})),t.d(e,"PLATFORM",(function(){return Y})),t.d(e,"TYPES",(function(){return V}));var r={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},o={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},i={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},a={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},u={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},c=[r.IDEAL,r.BANCONTACT,r.GIROPAY,r.SOFORT,r.EPS,r.MYBANK,r.P24,r.PAYU,r.BLIK,r.TRUSTLY,r.OXXO,r.BOLETO,r.BOLETOBANCARIO,r.WECHATPAY,r.MERCADOPAGO,r.MULTIBANCO,r.SATISPAY,r.PAIDY,r.MAXIMA,r.ZIMPLER],s={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},f={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},d={AD:[f.EN,f.FR,f.ES,f.ZH],AE:[f.EN,f.FR,f.ES,f.ZH,f.AR],AG:[f.EN,f.FR,f.ES,f.ZH],AI:[f.EN,f.FR,f.ES,f.ZH],AL:[f.SQ,f.EN],AM:[f.EN,f.FR,f.ES,f.ZH],AN:[f.EN,f.FR,f.ES,f.ZH],AO:[f.EN,f.FR,f.ES,f.ZH],AR:[f.ES,f.EN],AT:[f.DE,f.EN],AU:[f.EN],AW:[f.EN,f.FR,f.ES,f.ZH],AZ:[f.EN,f.FR,f.ES,f.ZH],BA:[f.EN],BB:[f.EN,f.FR,f.ES,f.ZH],BE:[f.EN,f.NL,f.FR],BF:[f.FR,f.EN,f.ES,f.ZH],BG:[f.BG,f.EN],BH:[f.AR,f.EN,f.FR,f.ES,f.ZH],BI:[f.FR,f.EN,f.ES,f.ZH],BJ:[f.FR,f.EN,f.ES,f.ZH],BM:[f.EN,f.FR,f.ES,f.ZH],BN:[f.MS,f.EN],BO:[f.ES,f.EN,f.FR,f.ZH],BR:[f.PT,f.EN],BS:[f.EN,f.FR,f.ES,f.ZH],BT:[f.EN],BW:[f.EN,f.FR,f.ES,f.ZH],BY:[f.EN],BZ:[f.EN,f.ES,f.FR,f.ZH],CA:[f.EN,f.FR],CD:[f.FR,f.EN,f.ES,f.ZH],CG:[f.EN,f.FR,f.ES,f.ZH],CH:[f.DE,f.FR,f.EN],CI:[f.FR,f.EN],CK:[f.EN,f.FR,f.ES,f.ZH],CL:[f.ES,f.EN,f.FR,f.ZH],CM:[f.FR,f.EN],CN:[f.ZH],CO:[f.ES,f.EN,f.FR,f.ZH],CR:[f.ES,f.EN,f.FR,f.ZH],CV:[f.EN,f.FR,f.ES,f.ZH],CY:[f.EN],CZ:[f.CS,f.EN],DE:[f.DE,f.EN],DJ:[f.FR,f.EN,f.ES,f.ZH],DK:[f.DA,f.EN],DM:[f.EN,f.FR,f.ES,f.ZH],DO:[f.ES,f.EN,f.FR,f.ZH],DZ:[f.AR,f.EN,f.FR,f.ES,f.ZH],EC:[f.ES,f.EN,f.FR,f.ZH],EE:[f.ET,f.EN,f.RU],EG:[f.AR,f.EN,f.FR,f.ES,f.ZH],ER:[f.EN,f.FR,f.ES,f.ZH],ES:[f.ES,f.EN],ET:[f.EN,f.FR,f.ES,f.ZH],FI:[f.FI,f.EN],FJ:[f.EN,f.FR,f.ES,f.ZH],FK:[f.EN,f.FR,f.ES,f.ZH],FM:[f.EN],FO:[f.DA,f.EN,f.FR,f.ES,f.ZH],FR:[f.FR,f.EN],GA:[f.FR,f.EN,f.ES,f.ZH],GB:[f.EN],GD:[f.EN,f.FR,f.ES,f.ZH],GE:[f.EN,f.FR,f.ES,f.ZH],GF:[f.EN,f.FR,f.ES,f.ZH],GI:[f.EN,f.FR,f.ES,f.ZH],GL:[f.DA,f.EN,f.FR,f.ES,f.ZH],GM:[f.EN,f.FR,f.ES,f.ZH],GN:[f.FR,f.EN,f.ES,f.ZH],GP:[f.EN,f.FR,f.ES,f.ZH],GR:[f.EL,f.EN],GT:[f.ES,f.EN,f.FR,f.ZH],GW:[f.EN,f.FR,f.ES,f.ZH],GY:[f.EN,f.FR,f.ES,f.ZH],HK:[f.EN,f.ZH_HANT,f.ZH],HN:[f.ES,f.EN,f.FR,f.ZH],HR:[f.EN],HU:[f.HU,f.EN],ID:[f.ID,f.EN],IE:[f.EN,f.FR,f.ES,f.ZH],IL:[f.HE,f.EN],IN:[f.EN],IS:[f.EN],IT:[f.IT,f.EN],JM:[f.EN,f.ES,f.FR,f.ZH],JO:[f.AR,f.EN,f.FR,f.ES,f.ZH],JP:[f.JA,f.EN],KE:[f.EN,f.FR,f.ES,f.ZH],KG:[f.EN,f.FR,f.ES,f.ZH],KH:[f.EN],KI:[f.EN,f.FR,f.ES,f.ZH],KM:[f.FR,f.EN,f.ES,f.ZH],KN:[f.EN,f.FR,f.ES,f.ZH],KR:[f.KO,f.EN],KW:[f.AR,f.EN,f.FR,f.ES,f.ZH],KY:[f.EN,f.FR,f.ES,f.ZH],KZ:[f.EN,f.FR,f.ES,f.ZH],LA:[f.EN],LC:[f.EN,f.FR,f.ES,f.ZH],LI:[f.EN,f.FR,f.ES,f.ZH],LK:[f.SI,f.EN],LS:[f.EN,f.FR,f.ES,f.ZH],LT:[f.LT,f.EN,f.RU,f.ZH],LU:[f.EN,f.DE,f.FR,f.ES,f.ZH],LV:[f.LV,f.EN,f.RU],MA:[f.AR,f.EN,f.FR,f.ES,f.ZH],MC:[f.FR,f.EN],MD:[f.EN],ME:[f.EN],MG:[f.EN,f.FR,f.ES,f.ZH],MH:[f.EN,f.FR,f.ES,f.ZH],MK:[f.EN],ML:[f.FR,f.EN,f.ES,f.ZH],MN:[f.EN],MQ:[f.EN,f.FR,f.ES,f.ZH],MR:[f.EN,f.FR,f.ES,f.ZH],MS:[f.EN,f.FR,f.ES,f.ZH],MT:[f.EN],MU:[f.EN,f.FR,f.ES,f.ZH],MV:[f.EN],MW:[f.EN,f.FR,f.ES,f.ZH],MX:[f.ES,f.EN],MY:[f.MS,f.EN],MZ:[f.EN,f.FR,f.ES,f.ZH],NA:[f.EN,f.FR,f.ES,f.ZH],NC:[f.EN,f.FR,f.ES,f.ZH],NE:[f.FR,f.EN,f.ES,f.ZH],NF:[f.EN,f.FR,f.ES,f.ZH],NG:[f.EN],NI:[f.ES,f.EN,f.FR,f.ZH],NL:[f.NL,f.EN],NO:[f.NO,f.EN],NP:[f.EN],NR:[f.EN,f.FR,f.ES,f.ZH],NU:[f.EN,f.FR,f.ES,f.ZH],NZ:[f.EN,f.FR,f.ES,f.ZH],OM:[f.AR,f.EN,f.FR,f.ES,f.ZH],PA:[f.ES,f.EN,f.FR,f.ZH],PE:[f.ES,f.EN,f.FR,f.ZH],PF:[f.EN,f.FR,f.ES,f.ZH],PG:[f.EN,f.FR,f.ES,f.ZH],PH:[f.TL,f.EN],PL:[f.PL,f.EN],PM:[f.EN,f.FR,f.ES,f.ZH],PN:[f.EN,f.FR,f.ES,f.ZH],PT:[f.PT,f.EN],PW:[f.EN,f.FR,f.ES,f.ZH],PY:[f.ES,f.EN],QA:[f.EN,f.FR,f.ES,f.ZH,f.AR],RE:[f.EN,f.FR,f.ES,f.ZH],RO:[f.RO,f.EN],RS:[f.EN,f.FR,f.ES,f.ZH],RU:[f.RU,f.EN],RW:[f.FR,f.EN,f.ES,f.ZH],SA:[f.AR,f.EN,f.FR,f.ES,f.ZH],SB:[f.EN,f.FR,f.ES,f.ZH],SC:[f.FR,f.EN,f.ES,f.ZH],SE:[f.SV,f.EN],SG:[f.EN],SH:[f.EN,f.FR,f.ES,f.ZH],SI:[f.SL,f.EN],SJ:[f.EN,f.FR,f.ES,f.ZH],SK:[f.SK,f.EN],SL:[f.EN,f.FR,f.ES,f.ZH],SM:[f.EN,f.FR,f.ES,f.ZH],SN:[f.FR,f.EN,f.ES,f.ZH],SO:[f.EN,f.FR,f.ES,f.ZH],SR:[f.EN,f.FR,f.ES,f.ZH],ST:[f.EN,f.FR,f.ES,f.ZH],SV:[f.ES,f.EN,f.FR,f.ZH],SZ:[f.EN,f.FR,f.ES,f.ZH],TC:[f.EN,f.FR,f.ES,f.ZH],TD:[f.FR,f.EN,f.ES,f.ZH],TG:[f.FR,f.EN,f.ES,f.ZH],TH:[f.TH,f.EN],TJ:[f.EN,f.FR,f.ES,f.ZH],TM:[f.EN,f.FR,f.ES,f.ZH],TN:[f.AR,f.EN,f.FR,f.ES,f.ZH],TO:[f.EN],TR:[f.TR,f.EN],TT:[f.EN,f.FR,f.ES,f.ZH],TV:[f.EN,f.FR,f.ES,f.ZH],TW:[f.ZH_HANT,f.ZH,f.EN],TZ:[f.EN,f.FR,f.ES,f.ZH],UA:[f.EN,f.RU,f.FR,f.ES,f.ZH],UG:[f.EN,f.FR,f.ES,f.ZH],US:[f.EN,f.FR,f.ES,f.ZH],UY:[f.ES,f.EN,f.FR,f.ZH],VA:[f.EN,f.FR,f.ES,f.ZH],VC:[f.EN,f.FR,f.ES,f.ZH],VE:[f.ES,f.EN,f.FR,f.ZH],VG:[f.EN,f.FR,f.ES,f.ZH],VN:[f.VI,f.EN],VU:[f.EN,f.FR,f.ES,f.ZH],WF:[f.EN,f.FR,f.ES,f.ZH],WS:[f.EN],YE:[f.AR,f.EN,f.FR,f.ES,f.ZH],YT:[f.EN,f.FR,f.ES,f.ZH],ZA:[f.EN,f.FR,f.ES,f.ZH],ZM:[f.EN,f.FR,f.ES,f.ZH],ZW:[f.EN]},l={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},p={TRUE:!0,FALSE:!1},h={TRUE:!0,FALSE:!1},v={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},m="/sdk/js",y="/web-sdk/v6/bridge",w={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},g=w,E={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},_={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},S={TRUE:!0,FALSE:!1},b={TRUE:"true",FALSE:"false"},N="unknown",T={HTTP:"http",HTTPS:"https"},A={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},R=10,x={VAULTABLE:"vaultable"},P=s.US,O=v.USD,I=l.CAPTURE,C=p.TRUE,D=p.TRUE,M=p.TRUE,L=h.FALSE,F=_.BUTTONS,k=S.FALSE,H={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},j={ANDROID:"android",IOS:"iOS"},U={VALIDATION_ERROR:"validation_error"},B={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount"},W={COMMIT:"commit",CONTINUE:"continue"},G={PAYMENTS_SDK:"checkout"},Z={PAYMENTS_SDK:"payments_sdk"},z={PAYMENTS_SDK:"payments_sdk"},K="pp.sdks.ppcp",q={sdk_platform:"web",major_version:"5"},Y={DESKTOP:"desktop",MOBILE:"mobile"},V=!0}])},function(n,e,t){t(63),t(120),t(133),t(91);var r=t(14);n.exports=r.Map},function(n,e,t){var r=t(6),o=t(2),i=r.WeakMap;n.exports=o(i)&&/native code/.test(String(i))},function(n,e,t){var r=t(9),o=t(8),i=t(68),a=t(46),u=t(106),c=t(3),s=TypeError,f=c("toPrimitive");n.exports=function(n,e){if(!o(n)||i(n))return n;var t,c=a(n,f);if(c){if(void 0===e&&(e="default"),t=r(c,n,e),!o(t)||i(t))return t;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(n,e)}},function(n,e,t){var r,o,i=t(6),a=t(105),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),n.exports=o},function(n,e){n.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(n,e,t){var r=t(9),o=t(2),i=t(8),a=TypeError;n.exports=function(n,e){var t,u;if("string"===e&&o(t=n.toString)&&!i(u=r(t,n)))return u;if(o(t=n.valueOf)&&!i(u=r(t,n)))return u;if("string"!==e&&o(t=n.toString)&&!i(u=r(t,n)))return u;throw a("Can't convert object to primitive value")}},function(n,e,t){var r=t(6),o=Object.defineProperty;n.exports=function(n,e){try{o(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}},function(n,e,t){var r=t(32),o=Function.prototype,i=o.apply,a=o.call;n.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(n,e,t){var r=t(0),o=t(2),i=/#|\.prototype\./,a=function(n,e){var t=c[u(n)];return t==f||t!=s&&(o(e)?r(e):!!e)},u=a.normalize=function(n){return String(n).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";n.exports=a},function(n,e,t){var r=t(4),o=t(10),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);n.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},function(n,e,t){"use strict";var r=t(73).IteratorPrototype,o=t(54),i=t(36),a=t(59),u=t(22),c=function(){return this};n.exports=function(n,e,t,s){var f=e+" Iterator";return n.prototype=o(r,{next:i(+!s,t)}),a(n,f,!1,!0),u[f]=c,n}},function(n,e,t){var r=t(4),o=t(67),i=t(12),a=t(13),u=t(16),c=t(38);e.f=r&&!o?Object.defineProperties:function(n,e){a(n);for(var t,r=u(e),o=c(e),s=o.length,f=0;s>f;)i.f(n,t=o[f++],r[t]);return n}},function(n,e){var t=Math.ceil,r=Math.floor;n.exports=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}},function(n,e,t){var r=t(26);n.exports=r("document","documentElement")},function(n,e,t){var r=t(0);n.exports=!r((function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}))},function(n,e,t){"use strict";var r=t(60),o=t(29);n.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(n,e,t){var r=t(118),o=t(13),i=t(119);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,e=!1,t={};try{(n=r(Object.prototype,"__proto__","set"))(t,[]),e=t instanceof Array}catch(n){}return function(t,r){return o(t),i(r),e?n(t,r):t.__proto__=r,t}}():void 0)},function(n,e,t){var r=t(1),o=t(27);n.exports=function(n,e,t){try{return r(o(Object.getOwnPropertyDescriptor(n,e)[t]))}catch(n){}}},function(n,e,t){var r=t(2),o=String,i=TypeError;n.exports=function(n){if("object"==typeof n||r(n))return n;throw i("Can't set "+o(n)+" as a prototype")}},function(n,e,t){t(121)},function(n,e,t){"use strict";t(122)("Map",(function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}}),t(130))},function(n,e,t){"use strict";var r=t(5),o=t(6),i=t(78),a=t(0),u=t(18),c=t(81),s=t(85),f=t(2),d=t(8),l=t(59),p=t(12).f,h=t(86).forEach,v=t(4),m=t(35),y=m.set,w=m.getterFor;n.exports=function(n,e,t){var m,g=-1!==n.indexOf("Map"),E=-1!==n.indexOf("Weak"),_=g?"set":"add",S=o[n],b=S&&S.prototype,N={};if(v&&f(S)&&(E||b.forEach&&!a((function(){(new S).entries().next()})))){var T=(m=e((function(e,t){y(s(e,T),{type:n,collection:new S}),null!=t&&c(t,e[_],{that:e,AS_ENTRIES:g})}))).prototype,A=w(n);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(n){var e="add"==n||"set"==n;!(n in b)||E&&"clear"==n||u(T,n,(function(t,r){var o=A(this).collection;if(!e&&E&&!d(t))return"get"==n&&void 0;var i=o[n](0===t?0:t,r);return e?this:i}))})),E||p(T,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else m=t.getConstructor(e,n,g,_),i.enable();return l(m,n,!1,!0),N[n]=m,r({global:!0,forced:!0},N),E||t.setStrong(m,n,g),m}},function(n,e,t){var r=t(17),o=t(16),i=t(79).f,a=t(124),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(n){return u&&"Window"==r(n)?function(n){try{return i(n)}catch(n){return a(u)}}(n):i(o(n))}},function(n,e,t){var r=t(76),o=t(20),i=t(80),a=Array,u=Math.max;n.exports=function(n,e,t){for(var c=o(n),s=r(e,c),f=r(void 0===t?c:t,c),d=a(u(f-s,0)),l=0;s<f;s++,l++)i(d,l,n[s]);return d.length=l,d}},function(n,e,t){var r=t(0),o=t(8),i=t(17),a=t(126),u=Object.isExtensible,c=r((function(){u(1)}));n.exports=c||a?function(n){return!!o(n)&&(!a||"ArrayBuffer"!=i(n))&&(!u||u(n))}:u},function(n,e,t){var r=t(0);n.exports=r((function(){if("function"==typeof ArrayBuffer){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}}))},function(n,e,t){var r=t(0);n.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(n,e,t){var r=t(88),o=t(89),i=t(8),a=t(3)("species"),u=Array;n.exports=function(n){var e;return r(n)&&(o(e=n.constructor)&&(e===u||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0),void 0===e?u:e}},function(n,e,t){var r=t(1),o=t(2),i=t(48),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(n){return a(n)}),n.exports=i.inspectSource},function(n,e,t){"use strict";var r=t(54),o=t(90),i=t(131),a=t(23),u=t(85),c=t(33),s=t(81),f=t(51),d=t(61),l=t(132),p=t(4),h=t(78).fastKey,v=t(35),m=v.set,y=v.getterFor;n.exports={getConstructor:function(n,e,t,f){var d=n((function(n,o){u(n,l),m(n,{type:e,index:r(null),first:void 0,last:void 0,size:0}),p||(n.size=0),c(o)||s(o,n[f],{that:n,AS_ENTRIES:t})})),l=d.prototype,v=y(e),w=function(n,e,t){var r,o,i=v(n),a=g(n,e);return a?a.value=t:(i.last=a={index:o=h(e,!0),key:e,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:n.size++,"F"!==o&&(i.index[o]=a)),n},g=function(n,e){var t,r=v(n),o=h(e);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==e)return t};return i(l,{clear:function(){for(var n=v(this),e=n.index,t=n.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete e[t.index],t=t.next;n.first=n.last=void 0,p?n.size=0:this.size=0},delete:function(n){var e=v(this),t=g(this,n);if(t){var r=t.next,o=t.previous;delete e.index[t.index],t.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==t&&(e.first=r),e.last==t&&(e.last=o),p?e.size--:this.size--}return!!t},forEach:function(n){for(var e,t=v(this),r=a(n,arguments.length>1?arguments[1]:void 0);e=e?e.next:t.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(n){return!!g(this,n)}}),i(l,t?{get:function(n){var e=g(this,n);return e&&e.value},set:function(n,e){return w(this,0===n?0:n,e)}}:{add:function(n){return w(this,n=0===n?0:n,n)}}),p&&o(l,"size",{configurable:!0,get:function(){return v(this).size}}),d},setStrong:function(n,e,t){var r=e+" Iterator",o=y(e),i=y(r);f(n,e,(function(n,e){m(this,{type:r,target:n,state:o(n),kind:e,last:void 0})}),(function(){for(var n=i(this),e=n.kind,t=n.last;t&&t.removed;)t=t.previous;return n.target&&(n.last=t=t?t.next:n.state.first)?d("keys"==e?t.key:"values"==e?t.value:[t.key,t.value],!1):(n.target=void 0,d(void 0,!0))}),t?"entries":"values",!t,!0),l(e)}}},function(n,e,t){var r=t(58);n.exports=function(n,e,t){for(var o in e)t&&t.unsafe&&n[o]?n[o]=e[o]:r(n,o,e[o],t);return n}},function(n,e,t){"use strict";var r=t(26),o=t(90),i=t(3),a=t(4),u=i("species");n.exports=function(n){var e=r(n);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},function(n,e){},function(n,e,t){var r=t(1),o=t(55),i=t(39),a=t(25),u=r("".charAt),c=r("".charCodeAt),s=r("".slice),f=function(n){return function(e,t){var r,f,d=i(a(e)),l=o(t),p=d.length;return l<0||l>=p?n?"":void 0:(r=c(d,l))<55296||r>56319||l+1===p||(f=c(d,l+1))<56320||f>57343?n?u(d,l):r:n?s(d,l,l+2):f-56320+(r-55296<<10)+65536}};n.exports={codeAt:f(!1),charAt:f(!0)}},function(n,e,t){t(63);var r=t(136),o=t(6),i=t(29),a=t(18),u=t(22),c=t(3)("toStringTag");for(var s in r){var f=o[s],d=f&&f.prototype;d&&i(d)!==c&&a(d,c,s),u[s]=u.Array}},function(n,e){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(n,e,t){t(138);var r=t(14);n.exports=r.Object.assign},function(n,e,t){var r=t(5),o=t(139);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(n,e,t){"use strict";var r=t(4),o=t(1),i=t(9),a=t(0),u=t(38),c=t(140),s=t(53),f=t(19),d=t(43),l=Object.assign,p=Object.defineProperty,h=o([].concat);n.exports=!l||a((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var n={},e={},t=Symbol();return n[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(n){e[n]=n})),7!=l({},n)[t]||"abcdefghijklmnopqrst"!=u(l({},e)).join("")}))?function(n,e){for(var t=f(n),o=arguments.length,a=1,l=c.f,p=s.f;o>a;)for(var v,m=d(arguments[a++]),y=l?h(u(m),l(m)):u(m),w=y.length,g=0;w>g;)v=y[g++],r&&!i(p,m,v)||(t[v]=m[v]);return t}:l},function(n,e){e.f=Object.getOwnPropertySymbols},function(n,e,t){t(142);var r=t(30);n.exports=r("Array","find")},function(n,e,t){"use strict";var r=t(5),o=t(86).find,i=t(34),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(n,e,t){t(144);var r=t(30);n.exports=r("Array","includes")},function(n,e,t){"use strict";var r=t(5),o=t(75).includes,i=t(0),a=t(34);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(n,e,t){t(146);var r=t(30);n.exports=r("String","includes")},function(n,e,t){"use strict";var r=t(5),o=t(1),i=t(92),a=t(25),u=t(39),c=t(93),s=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(n){return!!~s(u(a(this)),u(i(n)),arguments.length>1?arguments[1]:void 0)}})},function(n,e,t){var r=t(8),o=t(17),i=t(3)("match");n.exports=function(n){var e;return r(n)&&(void 0!==(e=n[i])?!!e:"RegExp"==o(n))}},function(n,e,t){t(149);var r=t(14);n.exports=r.Object.entries},function(n,e,t){var r=t(5),o=t(150).entries;r({target:"Object",stat:!0},{entries:function(n){return o(n)}})},function(n,e,t){var r=t(4),o=t(0),i=t(1),a=t(57),u=t(38),c=t(16),s=i(t(53).f),f=i([].push),d=r&&o((function(){var n=Object.create(null);return n[2]=2,!s(n,2)})),l=function(n){return function(e){for(var t,o=c(e),i=u(o),l=d&&null===a(o),p=i.length,h=0,v=[];p>h;)t=i[h++],r&&!(l?t in o:s(o,t))||f(v,n?[t,o[t]]:o[t]);return v}};n.exports={entries:l(!0),values:l(!1)}},function(n,e,t){t(152);var r=t(14);n.exports=r.Object.keys},function(n,e,t){var r=t(5),o=t(19),i=t(38);r({target:"Object",stat:!0,forced:t(0)((function(){i(1)}))},{keys:function(n){return i(o(n))}})},function(n,e,t){t(154);var r=t(30);n.exports=r("String","startsWith")},function(n,e,t){"use strict";var r,o=t(5),i=t(52),a=t(72).f,u=t(77),c=t(39),s=t(92),f=t(25),d=t(93),l=t(28),p=i("".startsWith),h=i("".slice),v=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!(!l&&!m&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(n){var e=c(f(this));s(n);var t=u(v(arguments.length>1?arguments[1]:void 0,e.length)),r=c(n);return p?p(e,r,t):h(e,t,t+r.length)===r}})},function(n,e,t){t(91),t(156);var r=t(14);n.exports=r.Array.from},function(n,e,t){var r=t(5),o=t(157);r({target:"Array",stat:!0,forced:!t(159)((function(n){Array.from(n)}))},{from:o})},function(n,e,t){"use strict";var r=t(23),o=t(9),i=t(19),a=t(158),u=t(82),c=t(89),s=t(20),f=t(80),d=t(83),l=t(62),p=Array;n.exports=function(n){var e=i(n),t=c(this),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,h>2?arguments[2]:void 0));var y,w,g,E,_,S,b=l(e),N=0;if(!b||this===p&&u(b))for(y=s(e),w=t?new this(y):p(y);y>N;N++)S=m?v(e[N],N):e[N],f(w,N,S);else for(_=(E=d(e,b)).next,w=t?new this:[];!(g=o(_,E)).done;N++)S=m?a(E,v,[g.value,N],!0):g.value,f(w,N,S);return w.length=N,w}},function(n,e,t){var r=t(13),o=t(84);n.exports=function(n,e,t,i){try{return i?e(r(t)[0],t[1]):e(t)}catch(e){o(n,"throw",e)}}},function(n,e,t){var r=t(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(n){}n.exports=function(n,e){if(!e&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},n(i)}catch(n){}return t}},function(n,e,t){t(161),t(164);var r=t(30);n.exports=r("Array","flatMap")},function(n,e,t){"use strict";var r=t(5),o=t(162),i=t(27),a=t(19),u=t(20),c=t(87);r({target:"Array",proto:!0},{flatMap:function(n){var e,t=a(this),r=u(t);return i(n),(e=c(t,0)).length=o(e,t,t,r,0,1,n,arguments.length>1?arguments[1]:void 0),e}})},function(n,e,t){"use strict";var r=t(88),o=t(20),i=t(163),a=t(23),u=function(n,e,t,c,s,f,d,l){for(var p,h,v=s,m=0,y=!!d&&a(d,l);m<c;)m in t&&(p=y?y(t[m],m,e):t[m],f>0&&r(p)?(h=o(p),v=u(n,e,p,h,v,f-1)-1):(i(v+1),n[v]=p),v++),m++;return v};n.exports=u},function(n,e){var t=TypeError;n.exports=function(n){if(n>9007199254740991)throw t("Maximum allowed index exceeded");return n}},function(n,e,t){t(34)("flatMap")},function(n,e,t){t(166);var r=t(14);n.exports=r.Number.isNaN},function(n,e,t){t(5)({target:"Number",stat:!0},{isNaN:function(n){return n!=n}})},function(n,e,t){"use strict";function r(){return(r=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}t.r(e);var o=t(41),i=t.n(o),a=t(40),u=t.n(a),c=t(95),s=t.n(c);function f(n,e){return(f=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function d(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,f(n,e)}function l(n){try{if(!n)return!1;if("undefined"!=typeof Promise&&n instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&n instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&n instanceof window.constructor)return!1;var e={}.toString;if(e){var t=e.call(n);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof n.then)return!0}catch(n){return!1}return!1}var p,h=[],v=[],m=0;function y(){if(!m&&p){var n=p;p=null,n.resolve()}}function w(){m+=1}function g(){m-=1,y()}var E=function(){function n(n){var e=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=[],n){var t,r,o=!1,i=!1,a=!1;w();try{n((function(n){a?e.resolve(n):(o=!0,t=n)}),(function(n){a?e.reject(n):(i=!0,r=n)}))}catch(n){return g(),void this.reject(n)}g(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var e=n.prototype;return e.resolve=function(n){if(this.resolved||this.rejected)return this;if(l(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},e.reject=function(n){var e=this;if(this.resolved||this.rejected)return this;if(l(n))throw new Error("Can not reject promise with another promise");if(!n){var t=n&&"function"==typeof n.toString?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout((function(){e.errorHandled||function(n,e){if(-1===h.indexOf(n)){h.push(n),setTimeout((function(){throw n}),1);for(var t=0;t<v.length;t++)v[t](n,e)}}(n,e)}),1),this.dispatch(),this},e.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},e.dispatch=function(){var e=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(e||t)){this.dispatching=!0,w();for(var o=function(n,e){return n.then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))},i=0;i<r.length;i++){var a=r[i],u=a.onSuccess,c=a.onError,s=a.promise,f=void 0;if(e)try{f=u?u(this.value):this.value}catch(n){s.reject(n);continue}else if(t){if(!c){s.reject(this.error);continue}try{f=c(this.error)}catch(n){s.reject(n);continue}}if(f instanceof n&&(f.resolved||f.rejected)){var d=f;d.resolved?s.resolve(d.value):s.reject(d.error),d.errorHandled=!0}else l(f)?f instanceof n&&(f.resolved||f.rejected)?f.resolved?s.resolve(f.value):s.reject(f.error):o(f,s):s.resolve(f)}r.length=0,this.dispatching=!1,g()}},e.then=function(e,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new n;return this.handlers.push({promise:r,onSuccess:e,onError:t}),this.errorHandled=!0,this.dispatch(),r},e.catch=function(n){return this.then(void 0,n)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return n.try(e).then((function(){return t}))}),(function(t){return n.try(e).then((function(){throw t}))}))},e.timeout=function(n,e){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(e||new Error("Promise timed out after "+n+"ms"))}),n);return this.then((function(n){return clearTimeout(r),n}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.lazy=function(){return this.errorHandled=!0,this},n.resolve=function(e){return e instanceof n?e:l(e)?new n((function(n,t){return e.then(n,t)})):(new n).resolve(e)},n.reject=function(e){return(new n).reject(e)},n.asyncReject=function(e){return(new n).asyncReject(e)},n.all=function(e){var t=new n,r=e.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(n,e,i){return e.then((function(e){o[n]=e,0==(r-=1)&&t.resolve(o)}),(function(n){i.reject(n)}))},a=0;a<e.length;a++){var u=e[a];if(u instanceof n){if(u.resolved){o[a]=u.value,r-=1;continue}}else if(!l(u)){o[a]=u,r-=1;continue}i(a,n.resolve(u),t)}return 0===r&&t.resolve(o),t},n.hash=function(e){var t={},r=[],o=function(n){if(e.hasOwnProperty(n)){var o=e[n];l(o)?r.push(o.then((function(e){t[n]=e}))):t[n]=o}};for(var i in e)o(i);return n.all(r).then((function(){return t}))},n.map=function(e,t){return n.all(e.map(t))},n.onPossiblyUnhandledException=function(n){return function(n){return v.push(n),{cancel:function(){v.splice(v.indexOf(n),1)}}}(n)},n.try=function(e,t,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;w();try{o=e.apply(t,r||[])}catch(e){return g(),n.reject(e)}return g(),n.resolve(o)},n.delay=function(e){return new n((function(n){setTimeout(n,e)}))},n.isPromise=function(e){return!!(e&&e instanceof n)||l(e)},n.flush=function(){return e=p=p||new n,y(),e;var e},n}();function _(n){return"[object RegExp]"==={}.toString.call(n)}var S={IFRAME:"iframe",POPUP:"popup"},b="Call was rejected by callee.\r\n";function N(n){return void 0===n&&(n=window),n.location.protocol}function T(n){if(void 0===n&&(n=window),n.mockDomain){var e=n.mockDomain.split("//")[0];if(e)return e}return N(n)}function A(n){return void 0===n&&(n=window),"about:"===T(n)}function R(n){if(void 0===n&&(n=window),n)try{if(n.parent&&n.parent!==n)return n.parent}catch(n){}}function x(n){if(void 0===n&&(n=window),n&&!R(n))try{return n.opener}catch(n){}}function P(n){try{return!0}catch(n){}return!1}function O(n){void 0===n&&(n=window);var e=n.location;if(!e)throw new Error("Can not read window location");var t=N(n);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=R(n);return r&&P()?O(r):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function I(n){void 0===n&&(n=window);var e=O(n);return e&&n.mockDomain&&0===n.mockDomain.indexOf("mock:")?n.mockDomain:e}function C(n){if(!function(n){try{if(n===window)return!0}catch(n){}try{var e=Object.getOwnPropertyDescriptor(n,"location");if(e&&!1===e.enumerable)return!1}catch(n){}try{if(A(n)&&P())return!0}catch(n){}try{if(function(n){return void 0===n&&(n=window),"mock:"===T(n)}(n)&&P())return!0}catch(n){}try{if(O(n)===O(window))return!0}catch(n){}return!1}(n))return!1;try{if(n===window)return!0;if(A(n)&&P())return!0;if(I(window)===I(n))return!0}catch(n){}return!1}function D(n){if(!C(n))throw new Error("Expected window to be same domain");return n}function M(n,e){if(!n||!e)return!1;var t=R(e);return t?t===n:-1!==function(n){var e=[];try{for(;n.parent!==n;)e.push(n.parent),n=n.parent}catch(n){}return e}(e).indexOf(n)}function L(n){var e,t,r=[];try{e=n.frames}catch(t){e=n}try{t=e.length}catch(n){}if(0===t)return r;if(t){for(var o=0;o<t;o++){var i=void 0;try{i=e[o]}catch(n){continue}r.push(i)}return r}for(var a=0;a<100;a++){var u=void 0;try{u=e[a]}catch(n){return r}if(!u)return r;r.push(u)}return r}function F(n){for(var e=[],t=0,r=L(n);t<r.length;t++){var o=r[t];e.push(o);for(var i=0,a=F(o);i<a.length;i++)e.push(a[i])}return e}function k(n){void 0===n&&(n=window);try{if(n.top)return n.top}catch(n){}if(R(n)===n)return n;try{if(M(window,n)&&window.top)return window.top}catch(n){}try{if(M(n,window)&&window.top)return window.top}catch(n){}for(var e=0,t=F(n);e<t.length;e++){var r=t[e];try{if(r.top)return r.top}catch(n){}if(R(r)===r)return r}}function H(n){var e=k(n);if(!e)throw new Error("Can not determine top window");var t=[].concat(F(e),[e]);return-1===t.indexOf(n)&&(t=[].concat(t,[n],F(n))),t}var j=[],U=[];function B(n,e){void 0===e&&(e=!0);try{if(n===window)return!1}catch(n){return!0}try{if(!n)return!0}catch(n){return!0}try{if(n.closed)return!0}catch(n){return!n||n.message!==b}if(e&&C(n))try{if(n.mockclosed)return!0}catch(n){}try{if(!n.parent||!n.top)return!0}catch(n){}var t=function(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}(j,n);if(-1!==t){var r=U[t];if(r&&function(n){if(!n.contentWindow)return!0;if(!n.parentNode)return!0;var e=n.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(n)){for(var t=n;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!e.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function W(n,e){for(var t=L(n),r=0;r<t.length;r++){var o=t[r];try{if(C(o)&&o.name===e&&-1!==t.indexOf(o))return o}catch(n){}}try{if(-1!==t.indexOf(n.frames[e]))return n.frames[e]}catch(n){}try{if(-1!==t.indexOf(n[e]))return n[e]}catch(n){}}function G(n){return void 0===n&&(n=window),x(n=n||window)||R(n)||void 0}function Z(n,e){for(var t=0;t<n.length;t++)for(var r=n[t],o=0;o<e.length;o++)if(r===e[o])return!0;return!1}function z(n){void 0===n&&(n=window);for(var e=0,t=n;t;)(t=R(t))&&(e+=1);return e}function K(n,e){var t=k(n)||n,r=k(e)||e;try{if(t&&r)return t===r}catch(n){}var o=H(n),i=H(e);if(Z(o,i))return!0;var a=x(t),u=x(r);return a&&Z(H(a),i)||u&&Z(H(u),o),!1}function q(n,e){if("string"==typeof n){if("string"==typeof e)return"*"===n||e===n;if(_(e))return!1;if(Array.isArray(e))return!1}return _(n)?_(e)?n.toString()===e.toString():!Array.isArray(e)&&Boolean(e.match(n)):!!Array.isArray(n)&&(Array.isArray(e)?JSON.stringify(n)===JSON.stringify(e):!_(e)&&n.some((function(n){return q(n,e)})))}function Y(n){return n.match(/^(https?|mock|file):\/\//)?n.split("/").slice(0,3).join("/"):I()}function V(n,e,t,r){var o;void 0===t&&(t=1e3),void 0===r&&(r=1/0);var i=function(){if(B(n))return o&&clearTimeout(o),e();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))};return i(),{cancel:function(){o&&clearTimeout(o)}}}function J(n){try{if(n===window)return!0}catch(n){if(n&&n.message===b)return!0}try{if("[object Window]"==={}.toString.call(n))return!0}catch(n){if(n&&n.message===b)return!0}try{if(window.Window&&n instanceof window.Window)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.self===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.parent===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&n.top===n)return!0}catch(n){if(n&&n.message===b)return!0}try{if(n&&"__unlikely_value__"===n.__cross_domain_utils_window_check__)return!1}catch(n){return!0}try{if("postMessage"in n&&"self"in n&&"location"in n)return!0}catch(n){}return!1}function Q(n){if(C(n))return D(n).frameElement;for(var e=0,t=document.querySelectorAll("iframe");e<t.length;e++){var r=t[e];if(r&&r.contentWindow&&r.contentWindow===n)return r}}function X(n){if(function(n){return void 0===n&&(n=window),Boolean(R(n))}(n)){var e=Q(n);if(e&&e.parentElement)return void e.parentElement.removeChild(e)}try{n.close()}catch(n){}}function $(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}var nn,en=function(){function n(){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 n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,t=0;t<e.length;t++){var r=e[t];if(J(r)&&B(r)){if(n)try{n.delete(r)}catch(n){}e.splice(t,1),this.values.splice(t,1),t-=1}}},e.isSafeToReadWrite=function(n){return!J(n)},e.set=function(n,e){if(!n)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(n,e)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=this.name,o=n[r];return void(o&&o[0]===n?o[1]=e:Object.defineProperty(n,r,{value:[n,e],writable:!0}))}catch(n){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=$(i,n);-1===u?(i.push(n),a.push(e)):a[u]=e},e.get=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return e.get(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return t&&t[0]===n?t[1]:void 0}catch(n){}this._cleanupClosedWindows();var r=$(this.keys,n);if(-1!==r)return this.values[r]},e.delete=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];t&&t[0]===n&&(t[0]=t[1]=void 0)}catch(n){}this._cleanupClosedWindows();var r=this.keys,o=$(r,n);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},e.has=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return!(!t||t[0]!==n)}catch(n){}return this._cleanupClosedWindows(),-1!==$(this.keys,n)},e.getOrSet=function(n,e){if(this.has(n))return this.get(n);var t=e();return this.set(n,t),t},n}();function tn(n){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function rn(){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(n){return!1}}function on(n,e,t){return(on=rn()?Reflect.construct:function(n,e,t){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(n,r));return t&&f(o,t.prototype),o}).apply(null,arguments)}function an(n){var e="function"==typeof Map?new Map:void 0;return(an=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,t)}function t(){return on(n,arguments,tn(this).constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,n)})(n)}function un(n){var e=!1;try{(n instanceof window.Element||null!==n&&"object"==typeof n&&1===n.nodeType&&"object"==typeof n.style&&"object"==typeof n.ownerDocument)&&(e=!0)}catch(n){}return e}function cn(n){return n.name||n.__name__||n.displayName||"anonymous"}function sn(n,e){try{delete n.name,n.name=e}catch(n){}return n.__name__=n.displayName=e,n}function fn(n){if("function"==typeof btoa)return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(n,e){return String.fromCharCode(parseInt(e,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(n,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function dn(){var n="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return n.charAt(Math.floor(Math.random()*n.length))}))+"_"+fn((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function ln(){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 pn(n){try{return JSON.stringify([].slice.call(n),(function(n,e){return"function"==typeof e?"memoize["+function(n){if(nn=nn||new en,null==n||"object"!=typeof n&&"function"!=typeof n)throw new Error("Invalid object");var e=nn.get(n);return e||(e=typeof n+":"+dn(),nn.set(n,e)),e}(e)+"]":un(e)?{}:e}))}catch(n){throw new Error("Arguments not serializable -- can not be used to memoize")}}function hn(){return{}}var vn=0,mn=0;function yn(n,e){void 0===e&&(e={});var t,r,o=e.thisNamespace,i=void 0!==o&&o,a=e.time,u=vn;vn+=1;var c=function(){for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];var s,f;u<mn&&(t=null,r=null,u=vn,vn+=1),s=i?(r=r||new en).getOrSet(this,hn):t=t||{};try{f=pn(o)}catch(e){return n.apply(this,arguments)}var d=s[f];if(d&&a&&Date.now()-d.time<a&&(delete s[f],d=null),d)return d.value;var l=Date.now(),p=n.apply(this,arguments);return s[f]={time:l,value:p},p};return c.reset=function(){t=null,r=null},sn(c,(e.name||cn(n))+"::memoized")}function wn(n){var e={};function t(){for(var t=arguments,r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var u=pn(i);return e.hasOwnProperty(u)||(e[u]=E.try((function(){return n.apply(r,t)})).finally((function(){delete e[u]}))),e[u]}return t.reset=function(){e={}},sn(t,cn(n)+"::promiseMemoized")}function gn(n,e,t){void 0===t&&(t=[]);var r=n.__inline_memoize_cache__=n.__inline_memoize_cache__||{},o=pn(t);return r.hasOwnProperty(o)?r[o]:r[o]=e.apply(void 0,t)}function En(){}function _n(n){var e=!1;return sn((function(){if(!e)return e=!0,n.apply(this,arguments)}),cn(n)+"::once")}function Sn(n,e){if(void 0===e&&(e=1),e>=3)return"stringifyError stack overflow";try{if(!n)return"<unknown error: "+{}.toString.call(n)+">";if("string"==typeof n)return n;if(n instanceof Error){var t=n&&n.stack,r=n&&n.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+Sn(n,e+1)}}function bn(n){return"string"==typeof n?n:n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}function Nn(n,e){if(!e)return n;if(Object.assign)return Object.assign(n,e);for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Tn(n,e){void 0===e&&(e=Boolean);var t={};for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)&&(t[r]=n[r]);return t}function An(n){return n}function Rn(n,e){var t;return function r(){t=setTimeout((function(){n(),r()}),e)}(),{cancel:function(){clearTimeout(t)}}}function xn(){var n={},e={},t={on:function(n,t){var r=e[n]=e[n]||[];r.push(t);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(t),1))}}},once:function(n,e){var r=t.on(n,(function(){r.cancel(),e()}));return r},trigger:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=e[n],a=[];if(i)for(var u=function(){var n=i[c];a.push(E.try((function(){return n.apply(void 0,r)})))},c=0;c<i.length;c++)u();return E.all(a).then(En)},triggerOnce:function(e){if(n[e])return E.resolve();n[e]=!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 t.trigger.apply(t,[e].concat(o))},reset:function(){e={}}};return t}function Pn(n){return n.replace(/-([a-z])/g,(function(n){return n[1].toUpperCase()}))}function On(n,e,t){if(Array.isArray(n)){if("number"!=typeof e)throw new TypeError("Array key must be number")}else if("object"==typeof n&&null!==n&&"string"!=typeof e)throw new TypeError("Object key must be string");Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){delete n[e];var r=t();return n[e]=r,r},set:function(t){delete n[e],n[e]=t}})}function In(n){return[].slice.call(n)}function Cn(n){return"object"==typeof(e=n)&&null!==e&&"[object Object]"==={}.toString.call(n);var e}function Dn(n){if(!Cn(n))return!1;var e=n.constructor;if("function"!=typeof e)return!1;var t=e.prototype;return!!Cn(t)&&!!t.hasOwnProperty("isPrototypeOf")}function Mn(n,e,t){if(void 0===t&&(t=""),Array.isArray(n)){for(var r=n.length,o=[],i=function(r){On(o,r,(function(){var o=t?t+"."+r:""+r,i=e(n[r],r,o);return(Dn(i)||Array.isArray(i))&&(i=Mn(i,e,o)),i}))},a=0;a<r;a++)i(a);return o}if(Dn(n)){var u={},c=function(r){if(!n.hasOwnProperty(r))return 1;On(u,r,(function(){var o=t?t+"."+r:""+r,i=e(n[r],r,o);return(Dn(i)||Array.isArray(i))&&(i=Mn(i,e,o)),i}))};for(var s in n)c(s);return u}throw new Error("Pass an object or array")}function Ln(n){return null!=n}function Fn(n){return"[object RegExp]"==={}.toString.call(n)}function kn(n,e,t){if(n.hasOwnProperty(e))return n[e];var r=t();return n[e]=r,r}function Hn(n){var e,t=[],r=!1,o={set:function(e,t){return r||(n[e]=t,o.register((function(){delete n[e]}))),t},register:function(n){var o=_n((function(){return n(e)}));return r?n(e):t.push(o),{cancel:function(){var n=t.indexOf(o);-1!==n&&t.splice(n,1)}}},all:function(n){e=n;var o=[];for(r=!0;t.length;){var i=t.shift();o.push(i())}return E.all(o).then(En)}};return o}function jn(n,e){if(null==e)throw new Error("Expected "+n+" to be present");return e}yn.clear=function(){mn=vn},yn((function(n){if(Object.values)return Object.values(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(n[t]);return e}));var Un=function(n){function e(e){var t;return(t=n.call(this,e)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(t,t.constructor):t.stack=new Error(e).stack,t}return d(e,n),e}(an(Error));function Bn(){var n=document.body;if(!n)throw new Error("Body element not found");return n}function Wn(){return Boolean(document.body)&&"complete"===document.readyState}function Gn(){return Boolean(document.body)&&"interactive"===document.readyState}function Zn(n){return encodeURIComponent(n)}function zn(n){return gn(zn,(function(){var e={};if(!n)return e;if(-1===n.indexOf("="))return e;for(var t=0,r=n.split("&");t<r.length;t++){var o=r[t];(o=o.split("="))[0]&&o[1]&&(e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return e}),[n])}function Kn(n,e){return void 0===e&&(e={}),e&&Object.keys(e).length?(void 0===(t=r({},zn(n),e))&&(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("&")):n;var t}function qn(){return"undefined"!=typeof window&&void 0!==window.location}function Yn(){return gn(Yn,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var n=Math.random().toString();window.localStorage.setItem("__test__localStorage__",n);var e=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),n===e)return!0}}catch(n){}return!1}))}function Vn(n,e){n.appendChild(e)}function Jn(n,e){return void 0===e&&(e=document),un(n)?n:"string"==typeof n?e.querySelector(n):void 0}function Qn(n){return new E((function(e,t){var r=bn(n),o=Jn(n);if(o)return e(o);if(Wn())return t(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Jn(n))?(e(o),void clearInterval(i)):Wn()?(clearInterval(i),t(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}yn((function(){return new E((function(n){if(Wn()||Gn())return n();var e=setInterval((function(){if(Wn()||Gn())return clearInterval(e),n()}),10)}))}));var Xn,$n=function(n){function e(){return n.apply(this,arguments)||this}return d(e,n),e}(Un);function ne(n){if((Xn=Xn||new en).has(n)){var e=Xn.get(n);if(e)return e}var t=new E((function(e,t){n.addEventListener("load",(function(){(function(n){if(function(){for(var n=0;n<j.length;n++){var e=!1;try{e=j[n].closed}catch(n){}e&&(U.splice(n,1),j.splice(n,1))}}(),n&&n.contentWindow)try{j.push(n.contentWindow),U.push(n)}catch(n){}})(n),e(n)})),n.addEventListener("error",(function(r){n.contentWindow?e(n):t(r)}))}));return Xn.set(n,t),t}function ee(n){return ne(n).then((function(n){if(!n.contentWindow)throw new Error("Could not find window in iframe");return n.contentWindow}))}function te(n,e){void 0===n&&(n={});var t=n.style||{},o=function(n,e,t){void 0===n&&(n="div"),void 0===e&&(e={}),n=n.toLowerCase();var r,o,i,a=document.createElement(n);if(e.style&&Nn(a.style,e.style),e.class&&(a.className=e.class.join(" ")),e.id&&a.setAttribute("id",e.id),e.attributes)for(var u=0,c=Object.keys(e.attributes);u<c.length;u++){var s=c[u];a.setAttribute(s,e.attributes[s])}if(e.styleSheet&&(r=a,o=e.styleSheet,void 0===i&&(i=window.document),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(i.createTextNode(o))),e.html){if("iframe"===n)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");a.innerHTML=e.html}return a}("iframe",{attributes:r({allowTransparency:"true"},n.attributes||{}),style:r({backgroundColor:"transparent",border:"none"},t),html:n.html,class:n.class}),i=window.navigator.userAgent.match(/MSIE|Edge/i);return o.hasAttribute("id")||o.setAttribute("id",dn()),ne(o),e&&function(n,e){void 0===e&&(e=document);var t=Jn(n,e);if(t)return t;throw new Error("Can not find element: "+bn(n))}(e).appendChild(o),(n.url||i)&&o.setAttribute("src",n.url||"about:blank"),o}function re(n,e,t){return n.addEventListener(e,t),{cancel:function(){n.removeEventListener(e,t)}}}function oe(n){n.style.setProperty("display","")}function ie(n){n.style.setProperty("display","none","important")}function ae(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function ue(n){return!(n&&n.parentNode&&n.ownerDocument&&n.ownerDocument.documentElement&&n.ownerDocument.documentElement.contains(n))}function ce(n,e,t){var r=void 0===t?{}:t,o=r.width,i=void 0===o||o,a=r.height,u=void 0===a||a,c=r.interval,s=void 0===c?100:c,f=r.win,d=void 0===f?window:f,l=n.offsetWidth,p=n.offsetHeight,h=!1;e({width:l,height:p});var v,m,y=function(){if(!h&&function(n){return Boolean(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}(n)){var t=n.offsetWidth,r=n.offsetHeight;(i&&t!==l||u&&r!==p)&&e({width:t,height:r}),l=t,p=r}};return d.addEventListener("resize",y),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(y)).observe(n),m=Rn(y,10*s)):void 0!==d.MutationObserver?((v=new d.MutationObserver(y)).observe(n,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=Rn(y,10*s)):m=Rn(y,s),{cancel:function(){h=!0,v.disconnect(),window.removeEventListener("resize",y),m.cancel()}}}function se(n){for(;n.parentNode;)n=n.parentNode;return"[object ShadowRoot]"===n.toString()}var fe="undefined"!=typeof document?document.currentScript:null,de=yn((function(){if(fe)return fe;if(fe=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),t=e&&e[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(n){}}())return fe;throw new Error("Can not determine current script")})),le=dn(),pe=yn((function(){var n;try{n=de()}catch(n){return le}var e=n.getAttribute("data-uid");if(e&&"string"==typeof e)return e;if((e=n.getAttribute("data-uid-auto"))&&"string"==typeof e)return e;if(n.src){var t=function(n){for(var e="",t=0;t<n.length;t++){var r=n[t].charCodeAt(0)*t;n[t+1]&&(r+=n[t+1].charCodeAt(0)*(t-1)),e+=String.fromCharCode(97+Math.abs(r)%26)}return e}(JSON.stringify({src:n.src,dataset:n.dataset}));e="uid_"+t.slice(t.length-30)}else e=dn();return n.setAttribute("data-uid-auto",e),e}));function he(n){var e=n.name,t=n.lifetime,r=void 0===t?12e5:t,o=n.stickySessionId;return gn(he,(function(){var n,t="__"+e+"_storage__",i=dn();function a(e){var r,o=Yn();if(n&&(r=n),!r&&o){var a=window.localStorage.getItem(t);a&&(r=JSON.parse(a))}r||(r=ln()[t]),r||(r={id:i}),r.id||(r.id=i),n=r;var u=e(r);return o?window.localStorage.setItem(t,JSON.stringify(r)):ln()[t]=r,n=null,u}function u(){return a((function(n){return n.id}))}function c(n){return a((function(e){var t=e.__session__,i=Date.now();return t&&i-t.created>r&&(t=null),t||(t={guid:o||dn(),created:i}),e.__session__=t,n(t)}))}return{getState:a,getID:u,isStateFresh:function(){return u()===i},getSessionState:function(n){return c((function(e){return e.state=e.state||{},n(e.state)}))},getSessionID:function(){return c((function(n){return n.guid}))}}}),[{name:e,lifetime:r}])}var ve=[];function me(n){var e=n.url,t=n.method,r=void 0===t?"get":t,o=n.headers,i=void 0===o?{}:o,a=n.json,u=n.data,c=n.body,s=n.win,f=void 0===s?window:s,d=n.timeout,l=void 0===d?0:d;return new E((function(n,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,d=Object.keys(i);s<d.length;s++){var p=d[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(u||c)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<ve.length;h++)for(var v=(0,ve[h])(),m=0,y=Object.keys(v);m<y.length;m++){var w=y[m];o[w.toLowerCase()]=v[w]}var g=new f.XMLHttpRequest;for(var E in g.addEventListener("load",(function(){var o=function(n){void 0===n&&(n="");for(var e={},t=0,r=n.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);e[i.toLowerCase()]=a.join(":").trim()}return e}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+e+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),u=this.responseText;try{u=JSON.parse(u)}catch(n){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return n({status:this.status,headers:o,body:u})}),!1),g.addEventListener("error",(function(n){t(new Error("Request to "+r.toLowerCase()+" "+e+" failed: "+n.toString()+"."))}),!1),g.open(r,e,!0),o)o.hasOwnProperty(E)&&g.setRequestHeader(E,o[E]);a?c=JSON.stringify(a):u&&(c=Object.keys(u).map((function(n){return encodeURIComponent(n)+"="+(u?encodeURIComponent(u[n]):"")})).join("&")),g.timeout=l,g.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+e+" has timed out"))},g.send(c)}))}function ye(n){return"string"==typeof n&&/^[0-9]+%$/.test(n)}function we(n){if("number"==typeof n)return n;var e=n.match(/^([0-9]+)(px|%)$/);if(!e)throw new Error("Could not match css value from "+n);return parseInt(e[1],10)}function ge(n){return we(n)+"px"}function Ee(n){return"number"==typeof n?ge(n):ye(n)?n:ge(n)}function _e(n,e){if("number"==typeof n)return n;if(ye(n))return parseInt(e*we(n)/100,10);var t;if("string"==typeof(t=n)&&/^[0-9]+px$/.test(t))return we(n);throw new Error("Can not normalize dimension: "+n)}var Se=yn((function(){try{return de()}catch(n){throw function(n,e,t){var r=t?Sn(t):"";return new Error('PayPal Payments SDK script not found on page! Expected to find <script src="https://'+n+e+'">\n\n'+r)}(__SDK_HOST__,__PATH__,n)}}));yn((function(){for(var n={},e=0,t=Se().attributes;e<t.length;e++){var r=t[e];0===r.name.indexOf("data-")&&(n[r.name]=r.value)}return n["data-uid"]=pe(),n})),yn((function(n){try{if(n&&"function"==typeof atob){var e=JSON.parse(window.atob(n.split(".")[1])).options;return(void 0===e?{}:e).customer_id||""}return""}catch(n){throw new Error("Error decoding SDK token")}}));var be=["warn","error"],Ne=["error","warn","info","debug"],Te=function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])};function Ae(n){var e=n.url,t=n.prefix,o=n.metricNamespacePrefix,i=n.logLevel,a=void 0===i?"warn":i,u=n.transport,c=void 0===u?function(n){var e=n.url,t=n.method,r=n.headers,o=n.json,i=n.enableSendBeacon,a=void 0!==i&&i;return E.try((function(){var n=window,i=C(n)?D(n):window,u=!1;return function(n){var e=n.headers,t=n.enableSendBeacon,r=e&&Object.keys(e).length;return!!(window&&window.navigator.sendBeacon&&!r&&t&&window.Blob)}({headers:r,enableSendBeacon:a})&&(u=function(n){var e=n.win,t=void 0===e?window:e,r=n.url,o=n.data,i=n.useBlob,a=void 0===i||i;try{var u=JSON.stringify(o);if(!t.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var c=new Blob([u],{type:"application/json"});return t.navigator.sendBeacon(r,c)}return t.navigator.sendBeacon(r,u)}catch(n){return!1}}({win:i,url:e,data:o,useBlob:!0})),u||me({win:i,url:e,method:t,headers:r,json:o})})).then(En)}:u,s=n.flushInterval,f=void 0===s?6e4:s,d=n.enableSendBeacon,l=void 0!==d&&d,p=[],h=[],v=[],m=[],y=[],w=[],g=[],_=[];function S(n,e,t){if(qn()&&window.console&&window.console.log&&!(Ne.indexOf(n)>Ne.indexOf(a))){var r=[e];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[n]&&window.console[n].apply?window.console[n].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(n){}}}function b(){return E.try((function(){if(qn()&&"file:"!==window.location.protocol&&(p.length||h.length||v.length)){for(var n={},t=0;t<y.length;t++)Te(n,(0,y[t])(n));for(var r,o={},i=0;i<_.length;i++)Te(o,(0,_[i])(o));return e&&(r=c({method:"POST",url:e,headers:o,json:{events:p,meta:n,tracking:h,metrics:v},enableSendBeacon:l}).catch(En)),p=[],h=[],v=[],E.resolve(r).then(En)}}))}var N,T,A,R,x=(void 0===T&&(T=50),sn((function(){R&&clearTimeout(R);var n=A=A||new E;return R=setTimeout((function(){A=null,R=null,E.try(N).then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))}),T),n}),cn(N=b)+"::promiseDebounced"));function P(n,e,o){if(void 0===o&&(o={}),!qn())return M;t&&(e=t+"_"+e);for(var i=r({},Tn(o),{timestamp:Date.now().toString()}),a=0;a<m.length;a++)Te(i,(0,m[a])(i));return function(n,e,t){p.push({level:n,event:e,payload:t}),-1!==be.indexOf(n)&&x()}(n,e,i),S(n,e,i),M}function O(n,e){return n.push(e),M}function I(n){if(!qn())return M;o&&(n.metricNamespace=o+"."+n.metricNamespace),g.length>0&&!n.dimensions&&(n.dimensions={});for(var e=0;e<g.length;e++)Te(n.dimensions||{},(0,g[e])(n.dimensions||{}));return S("debug","metric."+n.metricNamespace,n.dimensions||{}),v.push(n),M}qn()&&Rn(x,f),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){b()})),window.addEventListener("unload",(function(){b()})),window.addEventListener("pagehide",(function(){b()})));var M={debug:function(n,e){return P("debug",n,e)},info:function(n,e){return P("info",n,e)},warn:function(n,e){return P("warn",n,e)},error:function(n,e){return P("error",n,e)},track:function(n){if(void 0===n&&(n={}),!qn())return M;for(var e=Tn(n),t=0;t<w.length;t++)Te(e,(0,w[t])(e));return S("debug","track",e),h.push(e),M},metric:I,metricCounter:function(n){var e;return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:null!=(e=n.value)?e:1,metricType:"counter",dimensions:n.dimensions})},metricGauge:function(n){return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:n.value,metricType:"gauge",dimensions:n.dimensions})},metricHistogram:function(n){return I({metricNamespace:n.namespace,metricEventName:n.event,metricValue:n.value,metricType:"histogram",dimensions:n.dimensions})},flush:x,immediateFlush:b,addPayloadBuilder:function(n){return O(m,n)},addMetaBuilder:function(n){return O(y,n)},addMetricDimensionBuilder:function(n){return O(g,n)},addTrackingBuilder:function(n){return O(w,n)},addHeaderBuilder:function(n){return O(_,n)},setTransport:function(n){return c=n,M},configure:function(n){return n.url&&(e=n.url),n.prefix&&(t=n.prefix),n.logLevel&&(a=n.logLevel),n.transport&&(c=n.transport),n.flushInterval&&(f=n.flushInterval),n.enableSendBeacon&&(l=n.enableSendBeacon),M},__buffer__:{get events(){return p},get tracking(){return h},get metrics(){return v}}};return Object.defineProperty(M,"__buffer__",{writable:!1}),M}var Re,xe=yn((function(){return Ae({url:(void 0===(n="/xoplatform/logger/api/logger")&&(n=""),"https://www.paypal.com"+n),metricNamespacePrefix:"pp.sdks.ppcp"});var n}));function Pe(n,e,t,r,o,i,a){try{var u=n[i](a),c=u.value}catch(n){return void t(n)}u.done?e(c):Promise.resolve(c).then(r,o)}function Oe(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){Pe(i,r,o,a,u,"next",n)}function u(n){Pe(i,r,o,a,u,"throw",n)}a(void 0)}))}}var Ie=((Re={}).local="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Re.stage="https://cdn-latest.static.engineering.dev.paypalinc.com/qaRdaAssets/fraudnet/async/fb-raw.js",Re.sandbox="https://c.paypal.com/da/r/fb.js",Re.production="https://c.paypal.com/da/r/fb.js",Re.test="https://c.paypal.com/da/r/fb.js",Re);yn((function(n){var e=n.env,t=n.cspNonce,r=n.queryStringParams,o=void 0===r?{}:r;!function(n){var e=n.env,t=n.cspNonce,r=void 0===t?"":t,o=n.clientMetadataID,i=n.appName;new E((function(n){var t,a={f:o,s:i,io:!0,cb1:"fnCallback"};"sandbox"===e&&(a.sandbox=!0);var u=document.createElement("script");u.setAttribute("nonce",r),u.setAttribute("type","application/json"),u.setAttribute("id","fconfig"),u.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99"),u.text=JSON.stringify(a),null==(t=document.body)||t.appendChild(u),n()}))}({env:e,cspNonce:t,clientMetadataID:n.clientMetadataID,appName:n.appName});var i,a=function(n){var e=n.cspNonce,t=n.env,r=n.queryStringParams,o=void 0===r?{}:r;return new E((function(n,r){var i,a=document.createElement("script"),u=Object.keys(o).map((function(n){return n+"="+encodeURIComponent(String(o[n]))})).join("&"),c=u.length?Ie[t]+"?"+u:Ie[t];a.setAttribute("nonce",e||""),a.setAttribute("src",c),window.fnCallback=n,null==(i=document.body)||i.appendChild(a),a.addEventListener("load",(function(){n()})),a.addEventListener("error",(function(){r(new Error("Fraudnet failed to load."))})),a.addEventListener("abort",(function(){r(new Error("Fraudnet load was aborted."))}))}))}({cspNonce:t,env:e,queryStringParams:o}).catch((function(){xe().warn("ppcp_axo_init_fraudnet_failed")}));return{collect:(i=Oe((function*(){try{yield a,yield window.PAYPAL.asyncData.collect()}catch(n){xe().warn("ppcp_axo_collect_fraudnet_failed")}})),function(){return i.apply(this,arguments)})}})),yn((function(n){xe().info("rest_api_create_access_token");var e,t=fn(n+":");return me({method:"post",url:(e="/v1/oauth2/token",void 0===e&&(e=""),""+("undefined"!=typeof window&&void 0!==window.location&&"https://www.paypal.com"===I()?"https://www.paypal.com":__PAYPAL_API_DOMAIN__)+e),headers:{Authorization:"Basic "+t},data:{grant_type:"client_credentials"}}).then((function(e){var t=e.body;if(t&&"invalid_client"===t.error)throw new Error("Auth Api invalid client id: "+n+":\n\n"+JSON.stringify(t,null,4));if(!t||!t.access_token)throw new Error("Auth Api response error:\n\n"+JSON.stringify(t,null,4));return t.access_token}))})),yn(xn);var Ce,De,Me,Le,Fe,ke={alg:"RS256",create:{hash:"SHA-256",modulusLength:4096,name:"RSASSA-PKCS1-v1_5",publicExponent:new Uint8Array([1,0,1])},extractable:!1,sign:{hash:"SHA-256",name:"RSASSA-PKCS1-v1_5"},usages:["sign","verify"]},He=(De=Oe((function*(){if(!Ce){var n=ke.create,e=ke.extractable,t=ke.usages,r=yield window.crypto.subtle.generateKey(n,e,t);Ce=Ce||{publicKey:r.publicKey,privateKey:r.privateKey}}return Ce})),function(){return De.apply(this,arguments)}),je=function(n){return new Uint8Array(n.split("").map((function(n){return n.charCodeAt(0)})))},Ue=function(n){return String.fromCharCode.apply(String,n)},Be=function(n){return btoa(n).replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")},We=(Me=Oe((function*(n){var e=je(n),t=yield window.crypto.subtle.digest("sha-256",e),r=Ue(new Uint8Array(t));return Be(r)})),function(n){return Me.apply(this,arguments)}),Ge=(Le=Oe((function*(n){var e=n.crv,t=n.e,r=n.kty,o=n.n,i=n.x,a=n.y;return yield We(JSON.stringify({crv:e,e:t,kty:r,n:o,x:i,y:a}))})),function(n){return Le.apply(this,arguments)}),Ze=(Fe=Oe((function*(n){var e=n.accessToken,t=n.method,r=n.nonce,o=n.publicKey,i=n.privateKey,a=n.uri,u=yield window.crypto.subtle.exportKey("jwk",o),c=Be(JSON.stringify({alg:ke.alg,typ:"dpop+jwt",jwk:u})),s={ath:e?yield We(e):void 0,cnf:{jkt:yield Ge(u)},htm:t,htu:a,iat:Math.floor(new Date/1e3),jti:window.crypto.randomUUID(),nonce:r},f=Be(JSON.stringify(s)),d=yield window.crypto.subtle.sign(ke.sign,i,je(c+"."+f));return c+"."+f+"."+Be(Ue(new Uint8Array(d)))})),function(n){return Fe.apply(this,arguments)}),ze=(Oe((function*(n){var e=n.accessToken,t=n.method,o=n.uri,i=n.nonce,a=yield He(),u=a.privateKey,c=a.publicKey;return r({},e&&{Authorization:"DPoP "+e},{DPoP:yield Ze({accessToken:e,method:t,uri:o,nonce:i,publicKey:c,privateKey:u})})})),{PAY_LATER_LONG_TERM:"PAY_LATER_LONG_TERM",PAY_LATER_SHORT_TERM:"PAY_LATER_SHORT_TERM",PAY_LATER_PAY_IN_1:"PAY_LATER_PAY_IN_1",PAYPAL_CREDIT_NO_INTEREST:"PAYPAL_CREDIT_NO_INTEREST",PAY_LATER:"PAY_LATER",REWARDS:"REWARDS"}),Ke={MESSAGE:"paypal-message",MODAL:"paypal-credit-modal",TREATEMENTS:"paypal-credit-treatments"};function qe(){return!1}function Ye(){return"stage"}function Ve(){}var Je=("undefined"!=typeof document?document:{}).currentScript;function Qe(){return Je||document.querySelector('script[src$="messaging.js"]')||document.querySelector('script[src$="merchant.js"]')}function Xe(){}function $e(){var n;return(null==(n=Qe())?void 0:n.getAttribute("data-pp-namespace"))||"paypal"}function nt(){return"1.68.2"}function et(){return Object.values(Ke).some((function(n){return window.name.startsWith("__zoid__"+n.replace(/-/g,"_"))}))}function tt(){return he({name:$e()})}function rt(){return tt().getSessionID()}function ot(){return tt().getID()}function it(){}function at(){var n;return!!(null!=(n=window.__DEV_TOUCHPOINT__)?n:void 0)||void 0}var ut=t(15),ct=t.n(ut),st=t(7),ft=t.n(st),dt=t(31),lt=t.n(dt),pt=t(21),ht=t.n(pt);function vt(n,e){for(var t=[],r=0;r<n.length;r++){var o=n[r].render(e);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var mt=function(){function n(n,e,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=n,this.props=e||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete e.onRender)}var e=n.prototype;return e.render=function(n){var e=n(this);return this.onRender&&this.onRender(e),e},e.renderChildren=function(n){return vt(this.children,n)},n}(),yt=function(){function n(n){this.type="fragment",this.children=void 0,this.children=n}return n.prototype.render=function(n){return vt(this.children,n)},n}(),wt=function(){function n(n){this.type="text",this.text=void 0,this.text=n}return n.prototype.render=function(n){return n(this)},n}(),gt=function(){function n(n,e,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=n,this.props=e||{},this.children=t,this.props.children=t}var e=n.prototype;return e.renderComponent=function(n){var e=function(n){var e=Et(Array.isArray(n)?n:[n]);return 1===e.length?e[0]:e.length>1?new yt(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return vt(this.children,n)},n}();function Et(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(r)if("string"==typeof r||"number"==typeof r)e.push(new wt(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=Et(r);o<i.length;o++)e.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);e.push(r)}}}return e}var _t,St,bt,Nt=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=Et(r),"string"==typeof n)return new mt(n,e,r);if("function"==typeof n)return new gt(n,e,r);throw new TypeError("Expected jsx element to be a string or a function")},Tt=((_t={}).svg="http://www.w3.org/2000/svg",_t),At=((St={})["xlink:href"]="http://www.w3.org/1999/xlink",St);function Rt(n,e){return n.createTextNode(e.text)}function xt(n,e){for(var t=e.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)n.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var u=At[i];u?n.setAttributeNS(u,i,a.toString()):n.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&n.setAttribute(i,"")}"iframe"!==n.tagName.toLowerCase()||t.id||n.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var Pt=((bt={}).iframe=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");n.addEventListener("load",(function(){var e=n.contentWindow;if(!e)throw new Error("Expected frame to have contentWindow");for(var r=e.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(It({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},bt.script=function(n,e){var t=e.children[0];if(1!==e.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");n.text=t.text},bt.default=function(n,e,t){for(var r=0,o=e.renderChildren(t);r<o.length;r++)n.appendChild(o[r])},bt);function Ot(n,e,t,r){if(e.props.hasOwnProperty("innerHTML")){if(e.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=e.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===e.name?n.text=o:(n.innerHTML=o,function(n,e){void 0===e&&(e=window.document);for(var t=0,r=n.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=e.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(n,t))}else(Pt[e.name]||Pt.default)(n,e,r)}function It(n){void 0===n&&(n={});var e=n.doc,t=void 0===e?document:e,r=function(n,e){if("component"===n.type)return n.renderComponent((function(n){return r(n,e)}));if("text"===n.type)return Rt(t,n);if("element"===n.type){var o=function(n,e,t){return n.createElementNS(t,e.name)}(t,n,e);return xt(o,n),Ot(o,n,t,(function(n){return r(n,e)})),o}throw new TypeError("Unhandleable node")},o=function(n){if("component"===n.type)return n.renderComponent(o);if("text"===n.type)return Rt(t,n);if("element"===n.type){var e=Tt[n.name.toLowerCase()];if(e)return r(n,e);var i=function(n,e){return e.props.el?e.props.el:n.createElement(e.name)}(t,n);return xt(i,n),Ot(i,n,t,o),i}throw new TypeError("Unhandleable node")};return o}function Ct(n){var e=new Map;return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=JSON.stringify(r);return e.has(i)||e.set(i,n.apply(void 0,r)),e.get(i)}}function Dt(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.apply(void 0,t.concat(r))}}function Mt(n,e){return void 0===e&&(e=n.length),function t(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length<e?function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return t.apply(void 0,o.concat(e))}:n.apply(void 0,o)}}Mt((function(n,e){return e[n]})),Mt((function(n,e){var t;return(t={})[n]=e,t})),Ct((function(n){return new E((function(e){var t=document.createElement("script");t.src=n,t.addEventListener("load",(function(){document.body.removeChild(t),e()})),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){return document.body.appendChild(t)})):document.body.appendChild(t)}))}));var Lt=function(){return(new Date).getTime()},Ft=Ct((function(){var n=document.querySelector('meta[name="viewport"]')||Nt("meta",{name:"viewport",content:""}).render(It({doc:document}));return n.parentNode||document.head.appendChild(n),[function(){var e,t,r;n.__pp_prev_content__||(n.__pp_prev_content__=null!=(e=n.getAttribute("content"))?e:"",n.setAttribute("content","width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, shrink-to-fit=no"),document.body.__pp_prev_overflow__=null!=(t=document.body.style.overflow)?t:"",document.body.__pp_prev_msOverflowStyle__=null!=(r=document.body.style.msOverflowStyle)?r:"",document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("-ms-overflow-style","scrollbar"))},function(){n.__pp_prev_content__&&n.setAttribute("content",n.__pp_prev_content__),delete n.__pp_prev_content__,document.body.style.setProperty("overflow",document.body.__pp_prev_overflow__),document.body.style.setProperty("-ms-overflow-style",document.body.__pp_prev_msOverflowStyle__),delete document.body.__pp_prev_overflow__,delete document.body.__pp_prev_msOverflowStyle__}]}));function kt(n){if(void 0===n)return"NONE";switch(n.toUpperCase()){case"LT_NQEZ":case"LT_NQGZ":case"LT_MQEZ":case"LT_MQEZ_RB":case"LT_MQGZ":case"LT_SQEZ":case"LT_SQEZ_RB":case"LT_SQGZ":case"GPL:EQZ":case"GPL:GTZ":case"GPLQ:EQZ":case"GPLQ:GTZ":case"GPL:EQZ:NON-DE":case"GPL:GTZ:NON-DE":case"GPLQ:EQZ:NON-DE":case"GPLQ:GTZ:NON-DE":case"PLLT_NQ_EZ_XB":case"PLLT_NQ_GZ_XB":case"PLLT_MQ_EZ_XB":case"PLLT_MQ_GZ_XB":case"PLLT_NQ_EZ":case"PLLT_NQ_GZ":case"PLLT_MQ_EZ":case"PLLT_MQ_GZ":case"PLLT_SQ_EZ":case"PLLT_SQ_GZ":case ze.PAY_LATER_LONG_TERM:return ze.PAY_LATER_LONG_TERM;case"GPL":case"GPLQ":case"GPLNQ":case"GPLNQ_RANGE":case"PL":case"PLQ":case"ST_SQ":case"ST_NQ":case"SHORT_TERM:Q":case"SHORT_TERM:NQ":case"SHORT_TERM:NO_AMOUNT":case"PLST_NQ":case"PLST_SQ":case ze.PAY_LATER_SHORT_TERM:return ze.PAY_LATER_SHORT_TERM;case"PI30":case"PI30Q":case"PI30NQ":case"PI30:NON-DE":case"PI30Q:NON-DE":case"PI30NQ:NON-DE":case"PLP1_NA_XB":case"PLP1_NA":case"PLP1_NQ_XB":case"PLP1_NQ":case"PLP1_SQ_XB":case"PLP1_SQ":case ze.PAY_LATER_PAY_IN_1:return ze.PAY_LATER_PAY_IN_1;case"NI":case"NI:NON-US":case"NIQ":case"NIQ:NON-US":case"PPCNI_NQ":case"PPCNI_NQ_XB":case"PPCNI_SQ":case"PPCNI_SQ_XB":case ze.PAYPAL_CREDIT_NO_INTEREST:return ze.PAYPAL_CREDIT_NO_INTEREST;case ze.PAY_LATER:return ze.PAY_LATER;case ze.REWARDS:return ze.REWARDS;default:return}}function Ht(n,e){var t=void 0===e?{}:e,r=t.inZoid,o=t.debugObj;/(\?|&)pp_debug=true(&|$)/.test(window.location.search)&&!!r===et()&&console.warn("PayPal Messages Debug:",n,null!=o?o:"")}var jt=t(42),Ut=t.n(jt),Bt=t(96),Wt=t.n(Bt),Gt=t(11),Zt=t.n(Gt);function zt(n){return ht()(n).reduce((function(n,e){var t,o,i,a=e[0],u=e[1];return Array.isArray(u)?r({},n,((o={})[a]=[].concat(u),o)):r({},n,"object"==typeof u?((i={})[a]=zt(u),i):((t={})[a]=u,t))}),{})}function Kt(n,e){return function n(e,t){return ht()(t).reduce((function(t,o){var i,a,u,c,s=o[0],f=o[1];return Array.isArray(f)?r({},t,((a={})[s]=[].concat(f),a)):"object"!=typeof f||null===f||e[s]&&"object"==typeof e[s]&&!Array.isArray(e[s])?r({},t,"object"==typeof f&&null!==f?((c={})[s]=n(e[s],f),c):((i={})[s]=f,i)):r({},t,((u={})[s]=zt(f),u))}),e)}(zt(n),e)}function qt(n,e,t){var r;void 0===t&&(t="-");var o,i=n.indexOf(t);if(-1===i)return(o={})[n]=e,o;var a=n.slice(0,i),u=n.slice(i+1);return(r={})[a]=qt(u,e,t),r}function Yt(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName}function Vt(n){var e={buyercountry:"buyerCountry",merchantid:"merchantId",cspnonce:"cspNonce",ectoken:"ecToken",contextualcomponents:"contextualComponents",customerid:"customerId",fontfamily:"fontFamily",fontsource:"fontSource",onclick:"onClick",onapply:"onApply",onrender:"onRender",pagetype:"pageType","style-text-fontfamily":"style-text-fontFamily","style-text-fontsource":"style-text-fontSource"},t=["onclick","onapply","onrender"],r=Ut()(n.attributes).filter((function(n){var e=n.nodeName;return Zt()(e,"data-pp-")})).reduce((function(n,r){var o=r.nodeValue;if(o){var i,a=r.nodeName.replace("data-pp-",""),u=ft()(t,a)?new Function(o):o;return Kt(n,function(n,e){if(Zt()(e,"["))try{return qt(n,JSON.parse(e.replace(/'/g,'"')))}catch(n){}return qt(n,e)}(null!=(i=e[a])?i:a,u))}return n}),{});if(!n.firstElementChild||"SCRIPT"!==n.firstElementChild.tagName||"text/template"!==n.firstElementChild.getAttribute("type"))return r;var o=n.firstElementChild.textContent.trim();return n.removeChild(n.firstElementChild),Kt(r,{style:{markup:o}})}Mt((function(n,e,t){return e.getElementsByClassName(n+"__"+t)[0]})),Mt((function(n,e){var t=document.createElement("style");t.textContent=e,n.insertBefore(t,n.firstChild)})),Mt((function(n,e){if(Array.isArray(e))e.forEach((function(e){return n.appendChild(e)}));else if(e instanceof HTMLElement)n.appendChild(e);else if("string"==typeof e){var t=document.createElement("span");t.innerHTML=e,n.appendChild(t)}else!1===e&&n.parentNode.removeChild(n)})),Mt((function(n,e){if(Array.isArray(e))[].concat(e).reverse().forEach((function(e){return n.insertBefore(e,n.firstChild)}));else if(e instanceof HTMLElement)n.insertBefore(e,n.firstChild);else if("string"==typeof e){var t=document.createElement("span");t.innerHTML=e,n.insertBefore(t,n.firstChild)}else!1===e&&n.parentNode.removeChild(n)}));var Jt=Mt((function(n,e,t,r){if(void 0===t&&(t="PayPal Credit"),void 0===r&&(r=""),Array.isArray(e))e.forEach((function(e){return Jt(n,e,t)}));else if("string"==typeof e){var o=new Image;o.alt=t,o.className="message__logo",o.src=e,r&&(o.srcset=r),n.appendChild(o)}else if("object"==typeof e){var i=e.src,a=e.dimensions,u=a[0],c=a[1],s=new Image;s.src=i,s.alt=t;var f=document.createElement("div");f.className="message__logo message__logo--svg";var d=document.createElement("canvas");d.height=c,d.width=u,f.appendChild(s),f.appendChild(d),n.appendChild(f)}else n.parentNode.removeChild(n)}),2);function Qt(n){return"string"==typeof n?Ut()(document.querySelectorAll(n)):Yt(n)?[n]:Array.isArray(n)&&n.every(Yt)?Wt()(n,Qt):[]}var Xt="__paypal_messages_"+"1.68.2".replace(/[.-]/g,"_")+"__",$t=function(){var n,e,t;return null!=(n=window[Xt])?n:(e=function(n){void 0===n&&(n={});var e=r({},n);return[e,Dt(u.a,e)]}(window[Xt]||{index:1,config:{},messagesMap:new s.a}),(t=e[0]).setGlobalState=e[1],Object.defineProperty(window,Xt,{value:t,enumerable:!1,configurable:!0,writable:!1}),window[Xt])},nr=function(n){return $t().setGlobalState(n)};function er(n){return""+function(){var n,e=null!=(n=window.__TEST_ENV__)?n:void 0;if(e)return e;if(window.location.origin.match(/\.paypal\.com(:\d+)?$/))return window.location.origin;var t=Object({__LOCAL__:"https://localhost.paypal.com:8080",__SANDBOX__:"https://www.sandbox.paypal.com",__PRODUCTION__:"https://www.paypal.com"})["__"+"stage".toUpperCase()+"__"];if(t)return t;throw new Error("Missing PayPal Domain")}()+Object({__MESSAGE__:"/credit-presentment/smart/message",__TREATMENTS__:"/credit-presentment/experiments/local",__MODAL__:"/credit-presentment/smart/modal",__LOGGER__:"/credit-presentment/glog",__CREDIT_APPLY__:"/ppcreditapply/da/us"})["__"+n.toUpperCase()+"__"]}var tr=xn(),rr=(new E((function(n){return tr.once("treatments",n)})),new E((function(n){return tr.once("render",n)})),new E((function(n){return tr.once("modal-render",n)})),new E((function(n){return"undefined"!=typeof document&&"complete"!==document.readyState?window.addEventListener("load",n):n()}))),or=new E((function(n){return"undefined"!=typeof document&&"loading"===document.readyState?window.addEventListener("DOMContentLoaded",n):n()})),ir=function(n){return"__paypal_messaging_performance__"+n},ar=function n(){return gn(n,(function(){var n=window.performance;if(n&&n.now&&n.timing&&n.timing.connectEnd&&n.timing.navigationStart&&Math.abs(n.now()-Date.now())>1e3&&n.now()-(n.timing.connectEnd-n.timing.navigationStart)>0)return n}))}();function ur(n){var e,t;return null!=(e=null==ar||null==(t=ar.getEntriesByName(ir(n))[0])?void 0:t.duration)?e:-1}function cr(n,e){var t=void 0===e?{}:e,r=t.startMark,o=t.endMark,i=t.repeat;if(ar){if(-1!==ur(n)){if(!i)return;ar.clearMeasures(ir(n)),ar.clearMarks(ir(n))}window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))?ar.measure(ir(n)):ar.measure(ir(n),r?ir(r):void 0,o?ir(o):void 0),ar.mark(ir(n))}}function sr(n,e){var t,o,i,a,u,c,s,f,d=e.meta,l=e.events,p=e.tracking,h=null!=(t=d.global)?t:{},v=h.deviceID,m=h.sessionID,y=h.integration_type,w=h.messaging_version;n.startsWith("client-id:")&&(o=n.slice(10));var g=Object.entries(d).filter((function(e){return e[1].account===n})).map((function(n){var e,t=n[0],o=n[1],d=o.type,h=o.partnerClientId,v=o.buttonSessionId,m=o.messageRequestId,y=o.stats,w=void 0===y?{}:y,g=o.trackingDetails,E=g.clickUrl;delete g.clickUrl,f=null!=f?f:h,i=null!=i?i:g.MERCHANT_PROFILE_HASH,a=null!=a?a:g.MERCHANT_PROFILE_VALID,u=null!=u?u:g.BUYER_PROFILE_HASH,c=null!=c?c:g.BUYER_PROFILE_VALID,s=null!=s?s:w.bn_code;var _=p.filter((function(n){return n.index===t}));s=null!=s?s:null==(e=_.find((function(n){return void 0!==n.bn_code})))?void 0:e.bn_code;var S=w.render_duration,b=w.request_duration;return delete w.render_duration,delete w.request_duration,r({component_type:d,instance_id:m,button_session_id:v,fdata:new URLSearchParams(E).get("fdata"),merchant_events:l.filter((function(n){var e;return(null==(e=n.payload)?void 0:e.index)===t}))},g,w,{component_events:_.filter((function(n){return"MORS"!==n.event_type})).map((function(n){return r({render_duration:S,request_duration:b},n)}))})}));return{specversion:"1.0",type:"com.paypal.credit.upstream-presentment.v1",source:"urn:paypal:event-src:js-sdk:messages",datacontenttype:"application/json",dataschema:"ppaas:events.credit.FinancingPresentmentAsyncAPISpecification/v1/schema/json/credit_upstream_presentment_event.json",data:{client_id:o,merchant_id:n,partner_client_id:f,partner_attribution_id:s,merchant_profile_hash:i,merchant_profile_valid:a,buyer_profile_hash:u,buyer_profile_valid:c,device_id:v,session_id:m,integration_type:y,integration_version:w,components:g}}}var fr=Ae({url:er("LOGGER"),prefix:"paypal_messages",logLevel:"warn",flushInterval:1e4,transport:function(n){var e=n.url,t=n.method,o=n.json,a=n.headers,u=o.events.reduce((function(n,e){var t=e.payload;return[].concat(n,[t.index,t.refIndex])}),[]),c=o.tracking.reduce((function(n,e){return[].concat(n,[e.index,e.refIndex])}),[]),s=u.concat(c),f=i()(o.meta).filter((function(n){return ft()(s,n)||"global"===n})).reduce((function(n,e){var t;return r({},n,((t={})[e]=o.meta[e],t))}),{}),d=o;d.meta=f;var l,p,h,v,m=e;return E.all((l=d,p=l.meta,h=l.events,v=l.tracking,Array.from(new Set(Object.values(p).map((function(n){return n.account})).filter(Boolean))).reduce((function(n,e){return[].concat(n,[sr(e,{meta:p,events:h,tracking:v})])}),[])).map((function(n){return function(n,e,t){var o=void 0===t?{}:t,i=o.data,a=o.headers,u=o.withCredentials;return new E((function(t,o){var c=new XMLHttpRequest;u&&(c.withCredentials=!0),c.onreadystatechange=function(){if(4===c.readyState){var n=c.getAllResponseHeaders().trim().split("\n").reduce((function(n,e){var t,o=e.trim().split(": "),i=o[1];return r({},n,((t={})[o[0].toLowerCase()]=i,t))}),{});switch(c.status){case 200:t({headers:n,data:n["content-type"]&&lt()(n["content-type"],"application/json")?JSON.parse(c.responseText):c.responseText});break;case 204:t({headers:n});break;default:o(new Error("Request failed"))}}},c.open(n,e,!0),a&&ht()(a).forEach((function(n){c.setRequestHeader(n[0],n[1])})),c.send("object"==typeof i?JSON.stringify(i):i)}))}(t,m,{headers:r({"content-type":"application/json"},a),data:n,withCredentials:!0})})))}});fr.addMetaBuilder((function(){return{global:{integration_type:"STANDALONE_MODAL",messaging_version:"1.68.2"}}})),fr.addPayloadBuilder((function(n){return delete n.container,delete n.selector,{}})),fr.addTrackingBuilder((function(){return{timestamp:(new Date).getTime()}}));var dr=t(94);function lr(){return"__post_robot_11_0_0___"+pe()}function pr(n){void 0===n&&(n=window);var e=lr();return n!==window?n[e]:n[e]=n[e]||{}}var hr=function(){return{}};function vr(n,e){return void 0===n&&(n="store"),void 0===e&&(e=hr),kn(pr(),n,(function(){var n=e();return{has:function(e){return n.hasOwnProperty(e)},get:function(e,t){return n.hasOwnProperty(e)?n[e]:t},set:function(e,t){return n[e]=t,t},del:function(e){delete n[e]},getOrSet:function(e,t){return kn(n,e,t)},reset:function(){n=e()},keys:function(){return Object.keys(n)}}}))}var mr,yr=function(){};function wr(){var n=pr();return n.WINDOW_WILDCARD=n.WINDOW_WILDCARD||new yr,n.WINDOW_WILDCARD}function gr(n,e){return void 0===n&&(n="store"),void 0===e&&(e=hr),vr("windowStore").getOrSet(n,(function(){var t=new en,r=function(n){return t.getOrSet(n,e)};return{has:function(e){return r(e).hasOwnProperty(n)},get:function(e,t){var o=r(e);return o.hasOwnProperty(n)?o[n]:t},set:function(e,t){return r(e)[n]=t,t},del:function(e){delete r(e)[n]},getOrSet:function(e,t){return kn(r(e),n,t)}}}))}function Er(){return vr("instance").getOrSet("instanceID",dn)}function _r(n,e){var t=e.domain,r=gr("helloPromises"),o=r.get(n);o&&o.resolve({domain:t});var i=E.resolve({domain:t});return r.set(n,i),i}function Sr(n,e){return(0,e.send)(n,"postrobot_hello",{instanceID:Er()},{domain:"*",timeout:-1}).then((function(e){var t=e.origin,r=e.data.instanceID;return _r(n,{domain:t}),{win:n,domain:t,instanceID:r}}))}function br(n,e){var t=e.send;return gr("windowInstanceIDPromises").getOrSet(n,(function(){return Sr(n,{send:t}).then((function(n){return n.instanceID}))}))}function Nr(n){gr("knownWindows").set(n,!0)}function Tr(n){return"object"==typeof n&&null!==n&&"string"==typeof n.__type__}function Ar(n){return void 0===n?"undefined":null===n?"null":Array.isArray(n)?"array":"function"==typeof n?"function":"object"==typeof n?n instanceof Error?"error":"function"==typeof n.then?"promise":"[object RegExp]"==={}.toString.call(n)?"regex":"[object Date]"==={}.toString.call(n)?"date":"object":"string"==typeof n?"string":"number"==typeof n?"number":"boolean"==typeof n?"boolean":void 0}function Rr(n,e){return{__type__:n,__val__:e}}var xr,Pr=((mr={}).function=function(){},mr.error=function(n){return Rr("error",{message:n.message,stack:n.stack,code:n.code,data:n.data})},mr.promise=function(){},mr.regex=function(n){return Rr("regex",n.source)},mr.date=function(n){return Rr("date",n.toJSON())},mr.array=function(n){return n},mr.object=function(n){return n},mr.string=function(n){return n},mr.number=function(n){return n},mr.boolean=function(n){return n},mr.null=function(n){return n},mr[void 0]=function(n){return Rr("undefined",n)},mr),Or={},Ir=((xr={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},xr.error=function(n){var e=n.stack,t=n.code,r=n.data,o=new Error(n.message);return o.code=t,r&&(o.data=r),o.stack=e+"\n\n"+o.stack,o},xr.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},xr.regex=function(n){return new RegExp(n)},xr.date=function(n){return new Date(n)},xr.array=function(n){return n},xr.object=function(n){return n},xr.string=function(n){return n},xr.number=function(n){return n},xr.boolean=function(n){return n},xr.null=function(n){return n},xr[void 0]=function(){},xr),Cr={};function Dr(){for(var n=vr("idToProxyWindow"),e=0,t=n.keys();e<t.length;e++){var r=t[e];n.get(r).shouldClean()&&n.del(r)}}function Mr(n,e){var t=e.send,r=e.id,o=void 0===r?dn():r,i=n.then((function(n){if(C(n))return D(n).name})),a=n.then((function(n){if(B(n))throw new Error("Window is closed, can not determine type");return x(n)?S.POPUP:S.IFRAME}));i.catch(En),a.catch(En);var u=function(){return n.then((function(n){if(!B(n))return C(n)?D(n).name:i}))};return{id:o,getType:function(){return a},getInstanceID:wn((function(){return n.then((function(n){return br(n,{send:t})}))})),close:function(){return n.then(X)},getName:u,focus:function(){return n.then((function(n){n.focus()}))},isClosed:function(){return n.then((function(n){return B(n)}))},setLocation:function(e,t){return void 0===t&&(t={}),n.then((function(n){var r=window.location.protocol+"//"+window.location.host,o=t.method,i=void 0===o?"get":o,a=t.body;if(0===e.indexOf("/"))e=""+r+e;else if(!e.match(/^https?:\/\//)&&0!==e.indexOf(r))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(e));if("post"===i)return u().then((function(n){if(!n)throw new Error("Can not post to window without target name");!function(n){var e=n.url,t=n.target,r=n.body,o=n.method,i=void 0===o?"post":o,a=document.createElement("form");if(a.setAttribute("target",t),a.setAttribute("method",i),a.setAttribute("action",e),a.style.display="none",r)for(var u=0,c=Object.keys(r);u<c.length;u++){var s,f=c[u],d=document.createElement("input");d.setAttribute("name",f),d.setAttribute("value",null==(s=r[f])?void 0:s.toString()),a.appendChild(d)}Bn().appendChild(a),a.submit(),Bn().removeChild(a)}({url:e,target:n,method:i,body:a})}));if("get"!==i)throw new Error("Unsupported method: "+i);if(C(n))try{if(n.location&&"function"==typeof n.location.replace)return void n.location.replace(e)}catch(n){}n.location=e}))},setName:function(e){return n.then((function(n){var t=C(n),r=Q(n);if(!t)throw new Error("Can not set name for cross-domain window: "+e);D(n).name=e,r&&r.setAttribute("name",e),i=E.resolve(e)}))}}}new E((function(n){if(window.document&&window.document.body)return n(window.document.body);var e=setInterval((function(){if(window.document&&window.document.body)return clearInterval(e),n(window.document.body)}),10)}));var Lr=function(){function n(n){var e=n.send,t=n.win,r=n.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new E,this.serializedWindow=r||Mr(this.actualWindowPromise,{send:e}),vr("idToProxyWindow").set(this.getID(),this),t&&this.setWindow(t,{send:e})}var e=n.prototype;return e.getID=function(){return this.serializedWindow.id},e.getType=function(){return this.serializedWindow.getType()},e.isPopup=function(){return this.getType().then((function(n){return n===S.POPUP}))},e.setLocation=function(n,e){var t=this;return this.serializedWindow.setLocation(n,e).then((function(){return t}))},e.getName=function(){return this.serializedWindow.getName()},e.setName=function(n){var e=this;return this.serializedWindow.setName(n).then((function(){return e}))},e.close=function(){var n=this;return this.serializedWindow.close().then((function(){return n}))},e.focus=function(){var n=this,e=this.isPopup(),t=this.getName(),r=E.hash({isPopup:e,name:t}).then((function(n){var e=n.name;n.isPopup&&e&&window.open("",e,"noopener")})),o=this.serializedWindow.focus();return E.all([r,o]).then((function(){return n}))},e.isClosed=function(){return this.serializedWindow.isClosed()},e.getWindow=function(){return this.actualWindow},e.setWindow=function(n,e){var t=e.send;this.actualWindow=n,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Mr(this.actualWindowPromise,{send:t,id:this.getID()}),gr("winToProxyWindow").set(n,this)},e.awaitWindow=function(){return this.actualWindowPromise},e.matchWindow=function(n,e){var t=this,r=e.send;return E.try((function(){return t.actualWindow?n===t.actualWindow:E.hash({proxyInstanceID:t.getInstanceID(),knownWindowInstanceID:br(n,{send:r})}).then((function(e){var o=e.proxyInstanceID===e.knownWindowInstanceID;return o&&t.setWindow(n,{send:r}),o}))}))},e.unwrap=function(){return this.actualWindow||this},e.getInstanceID=function(){return this.serializedWindow.getInstanceID()},e.shouldClean=function(){return Boolean(this.actualWindow&&B(this.actualWindow))},e.serialize=function(){return this.serializedWindow},n.unwrap=function(e){return n.isProxyWindow(e)?e.unwrap():e},n.serialize=function(e,t){var r=t.send;return Dr(),n.toProxyWindow(e,{send:r}).serialize()},n.deserialize=function(e,t){var r=t.send;return Dr(),vr("idToProxyWindow").get(e.id)||new n({serializedWindow:e,send:r})},n.isProxyWindow=function(n){return Boolean(n&&!J(n)&&n.isProxyWindow)},n.toProxyWindow=function(e,t){var r=t.send;if(Dr(),n.isProxyWindow(e))return e;var o=e;return gr("winToProxyWindow").get(o)||new n({win:o,send:r})},n}();function Fr(n,e,t,r,o){var i=gr("methodStore"),a=vr("proxyWindowMethods");Lr.isProxyWindow(r)?a.set(n,{val:e,name:t,domain:o,source:r}):(a.del(n),i.getOrSet(r,(function(){return{}}))[n]={domain:o,name:t,val:e,source:r})}function kr(n,e){var t=gr("methodStore"),r=vr("proxyWindowMethods");return t.getOrSet(n,(function(){return{}}))[e]||r.get(e)}function Hr(n,e,t,r,o){!function(n){var e=n.on,t=n.send;vr("builtinListeners").getOrSet("functionCalls",(function(){return e("postrobot_method",{domain:"*"},(function(n){var e=n.source,r=n.origin,o=n.data,i=o.id,a=o.name,u=kr(e,i);if(!u)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+I(window));var c=u.source,s=u.domain,f=u.val;return E.try((function(){if(!q(s,r))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(Fn(u.domain)?u.domain.source:u.domain)+" does not match origin "+r+" in "+I(window));if(Lr.isProxyWindow(c))return c.matchWindow(e,{send:t}).then((function(n){if(!n)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+I(window))}))})).then((function(){return f.apply({source:e,origin:r},o.args)}),(function(n){return E.try((function(){if(f.onError)return f.onError(n)})).then((function(){var e;throw n.stack&&(n.stack="Remote call to "+a+"("+(void 0===(e=o.args)&&(e=[]),In(e).map((function(n){return"string"==typeof n?"'"+n+"'":void 0===n?"undefined":null===n?"null":"boolean"==typeof n?n.toString():Array.isArray(n)?"[ ... ]":"object"==typeof n?"{ ... }":"function"==typeof n?"() => { ... }":"<"+typeof n+">"})).join(", ")+") failed\n\n")+n.stack),n}))})).then((function(n){return{result:n,id:i,name:a}}))}))}))}({on:o.on,send:o.send});var i=t.__id__||dn();n=Lr.unwrap(n);var a=t.__name__||t.name||r;return"string"==typeof a&&"function"==typeof a.indexOf&&0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",r+"::")),Lr.isProxyWindow(n)?(Fr(i,t,a,n,e),n.awaitWindow().then((function(n){Fr(i,t,a,n,e)}))):Fr(i,t,a,n,e),Rr("cross_domain_function",{id:i,name:a})}function jr(n,e,t,r){var o,i=r.on,a=r.send;return function(n,e){void 0===e&&(e=Or);var t=JSON.stringify(n,(function(n){var t=this[n];if(Tr(this))return t;var r=Ar(t);if(!r)return t;var o=e[r]||Pr[r];return o?o(t,n):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(n,e,t,r,o){return Rr("cross_domain_zalgo_promise",{then:Hr(n,e,(function(n,e){return t.then(n,e)}),r,{on:o.on,send:o.send})})}(n,e,t,r,{on:i,send:a})},o.function=function(t,r){return Hr(n,e,t,r,{on:i,send:a})},o.object=function(n){return J(n)||Lr.isProxyWindow(n)?Rr("cross_domain_window",Lr.serialize(n,{send:a})):n},o))}function Ur(n,e,t,r){var o,i=r.send;return function(n,e){if(void 0===e&&(e=Cr),"undefined"!==n)return JSON.parse(n,(function(n,t){if(Tr(this))return t;var r,o;if(Tr(t)?(r=t.__type__,o=t.__val__):(r=Ar(t),o=t),!r)return o;var i=e[r]||Ir[r];return i?i(o,n):o}))}(t,((o={}).cross_domain_zalgo_promise=function(n){return function(n,e,t){return new E(t.then)}(0,0,n)},o.cross_domain_function=function(t){return function(n,e,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return Lr.toProxyWindow(n,{send:a}).awaitWindow().then((function(n){var c=kr(n,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:I()},u);var s=[].slice.call(u);return t.fireAndForget?a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!0}):a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!1}).then((function(n){return n.data.result}))})).catch((function(n){throw n}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=e,r.__source__=n,r.__id__=o,r.origin=e,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(n,e,t,{send:i})},o.cross_domain_window=function(n){return Lr.deserialize(n,{send:i})},o))}var Br={};function Wr(n,e,t,r){var o=r.on,i=r.send;return E.try((function(){var r=gr().getOrSet(n,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||E.flush().then((function(){if(B(n))throw new Error("Window is closed");var t=jr(n,e,function(n){var e;return(e={})[lr()]=n,e}(r.buffer||[]),{on:o,send:i});delete r.buffer;for(var a=Object.keys(Br),u=[],c=0;c<a.length;c++){var s=a[c];try{Br[s](n,t,e)}catch(n){u.push(n)}}if(u.length===a.length)throw new Error("All post-robot messaging strategies failed:\n\n"+u.map((function(n,e){return e+". "+Sn(n)})).join("\n\n"))})),r.flush.then((function(){delete r.flush}))})).then(En)}function Gr(n){return vr("responseListeners").get(n)}function Zr(n){vr("responseListeners").del(n)}function zr(n){return vr("erroredResponseListeners").has(n)}function Kr(n){var e=n.name,t=n.win,r=n.domain,o=gr("requestListeners");if("*"===t&&(t=null),"*"===r&&(r=null),!e)throw new Error("Name required to get request listener");for(var i=0,a=[t,wr()];i<a.length;i++){var u=a[i];if(u){var c=o.get(u);if(c){var s=c[e];if(s){if(r&&"string"==typeof r){if(s[r])return s[r];if(s.__domain_regex__)for(var f=0,d=s.__domain_regex__;f<d.length;f++){var l=d[f],p=l.listener;if(q(l.regex,r))return p}}if(s["*"])return s["*"]}}}}}function qr(n,e){var t=e.on,r=e.send,o=vr("receivedMessages");try{if(!window||window.closed||!n.source)return}catch(n){return}var i=n.source,a=n.origin,u=function(n,e,t,r){var o,i=r.on,a=r.send;try{o=Ur(e,t,n,{on:i,send:a})}catch(n){return}if(o&&"object"==typeof o&&null!==o){var u=o[lr()];if(Array.isArray(u))return u}}(n.data,i,a,{on:t,send:r});if(u){Nr(i);for(var c,s=function(){var n=u[f];if(o.has(n.id))return{v:void 0};if(o.set(n.id,!0),B(i)&&!n.fireAndForget)return{v:void 0};0===n.origin.indexOf("file:")&&(a="file://");try{"postrobot_message_request"===n.type?function(n,e,t,r){var o=r.on,i=r.send,a=Kr({name:t.name,win:n,domain:e}),u="postrobot_method"===t.name&&t.data&&"string"==typeof t.data.name?t.data.name+"()":t.name;function c(r,a,c){return E.flush().then((function(){if(!t.fireAndForget&&!B(n))try{return Wr(n,e,{id:dn(),origin:I(window),type:"postrobot_message_response",hash:t.hash,name:t.name,ack:r,data:a,error:c},{on:o,send:i})}catch(n){throw new Error("Send response message failed for "+u+" in "+I()+"\n\n"+Sn(n))}}))}E.all([E.flush().then((function(){if(!t.fireAndForget&&!B(n))try{return Wr(n,e,{id:dn(),origin:I(window),type:"postrobot_message_ack",hash:t.hash,name:t.name},{on:o,send:i})}catch(n){throw new Error("Send ack message failed for "+u+" in "+I()+"\n\n"+Sn(n))}})),E.try((function(){if(!a)throw new Error("No handler found for post message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return a.handler({source:n,origin:e,data:t.data})})).then((function(n){return c("success",n)}),(function(n){return c("error",null,n)}))]).then(En).catch((function(n){if(a&&a.handleError)return a.handleError(n);throw n}))}(i,a,n,{on:t,send:r}):"postrobot_message_response"===n.type?function(n,e,t){if(!zr(t.hash)){var r,o=Gr(t.hash);if(!o)throw new Error("No handler found for post message response for message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!q(o.domain,e))throw new Error("Response origin "+e+" does not match domain "+(r=o.domain,Array.isArray(r)?"("+r.join(" | ")+")":_(r)?"RegExp("+r.toString()+")":r.toString()));if(n!==o.win)throw new Error("Response source does not match registered window");Zr(t.hash),"error"===t.ack?o.promise.reject(t.error):"success"===t.ack&&o.promise.resolve({source:n,origin:e,data:t.data})}}(i,a,n):"postrobot_message_ack"===n.type&&function(n,e,t){if(!zr(t.hash)){var r=Gr(t.hash);if(!r)throw new Error("No handler found for post message ack for message: "+t.name+" from "+e+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!q(r.domain,e))throw new Error("Ack origin "+e+" does not match domain "+r.domain.toString());if(n!==r.win)throw new Error("Ack source does not match registered window")}catch(n){r.promise.reject(n)}r.ack=!0}}(i,a,n)}catch(n){setTimeout((function(){throw n}),0)}},f=0;f<u.length;f++)if(c=s())return c.v}}function Yr(n,e,t){if(!n)throw new Error("Expected name");if("function"==typeof(e=e||{})&&(t=e,e={}),!t)throw new Error("Expected handler");var r=function n(e,t){var r=e.name,o=e.win,i=e.domain,a=gr("requestListeners");if(!r||"string"!=typeof r)throw new Error("Name required to add request listener");if(o&&"*"!==o&&Lr.isProxyWindow(o)){var u=o.awaitWindow().then((function(e){return n({name:r,win:e,domain:i},t)}));return{cancel:function(){u.then((function(n){return n.cancel()}),En)}}}var c=o;if(Array.isArray(c)){for(var s=[],f=0,d=c;f<d.length;f++)s.push(n({name:r,domain:i,win:d[f]},t));return{cancel:function(){for(var n=0;n<s.length;n++)s[n].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,h=i;p<h.length;p++)l.push(n({name:r,win:c,domain:h[p]},t));return{cancel:function(){for(var n=0;n<l.length;n++)l[n].cancel()}}}var v=Kr({name:r,win:c,domain:i});c&&"*"!==c||(c=wr());var m=(i=i||"*").toString();if(v)throw c&&i?new Error("Request listener already exists for "+r+" on domain "+i.toString()+" for "+(c===wr()?"wildcard":"specified")+" window"):c?new Error("Request listener already exists for "+r+" for "+(c===wr()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+r+" on domain "+i.toString()):new Error("Request listener already exists for "+r);var y,w,g=a.getOrSet(c,(function(){return{}})),E=kn(g,r,(function(){return{}}));return Fn(i)?(y=kn(E,"__domain_regex__",(function(){return[]}))).push(w={regex:i,listener:t}):E[m]=t,{cancel:function(){delete E[m],w&&(y.splice(y.indexOf(w,1)),y.length||delete E.__domain_regex__),Object.keys(E).length||delete g[r],c&&!Object.keys(g).length&&a.del(c)}}}({name:n,win:e.window,domain:e.domain||"*"},{handler:t||e.handler,handleError:e.errorHandler||function(n){throw n}});return{cancel:function(){r.cancel()}}}Br.postrobot_post_message=function(n,e,t){0===t.indexOf("file:")&&(t="*"),n.postMessage(e,t)},Br.postrobot_global=function(n,e){if(!function(n){return(n=n||window).navigator.mockUserAgent||n.navigator.userAgent}(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i))throw new Error("Global messaging not needed for browser");if(!C(n))throw new Error("Post message through global disabled between different domain windows");if(!1!==K(window,n))throw new Error("Can only use global to communicate between two different windows, not between frames");var t=pr(n);if(!t)throw new Error("Can not find postRobot global on foreign window");t.receiveMessage({source:window,origin:I(),data:e})};var Vr=function(n,e,t,r){var o=(r=r||{}).domain||"*",i=r.timeout||-1,a=r.timeout||5e3,u=r.fireAndForget||!1;return Lr.toProxyWindow(n,{send:Vr}).awaitWindow().then((function(n){return E.try((function(){if(function(n,e,t){if(!n)throw new Error("Expected name");if(t&&"string"!=typeof t&&!Array.isArray(t)&&!Fn(t))throw new TypeError("Can not send "+n+". Expected domain "+JSON.stringify(t)+" to be a string, array, or regex");if(B(e))throw new Error("Can not send "+n+". Target window is closed")}(e,n,o),function(n,e){var t=G(e);if(t)return t===n;if(e===n)return!1;if(k(e)===e)return!1;for(var r=0,o=L(n);r<o.length;r++)if(o[r]===e)return!0;return!1}(window,n))return function(n,e,t){void 0===e&&(e=5e3),void 0===t&&(t="Window");var r=function(n){return gr("helloPromises").getOrSet(n,(function(){return new E}))}(n);return-1!==e&&(r=r.timeout(e,new Error(t+" did not load after "+e+"ms"))),r}(n,a)})).then((function(e){return function(n,e,t,r){var o=r.send;return E.try((function(){return"string"==typeof e?e:E.try((function(){return t||Sr(n,{send:o}).then((function(n){return n.domain}))})).then((function(n){if(!q(e,e))throw new Error("Domain "+bn(e)+" does not match "+bn(e));return n}))}))}(n,o,(void 0===e?{}:e).domain,{send:Vr})})).then((function(r){var o=r,a="postrobot_method"===e&&t&&"string"==typeof t.name?t.name+"()":e,c=new E,s=e+"_"+dn();if(!u){var f={name:e,win:n,domain:o,promise:c};!function(n,e){vr("responseListeners").set(n,e)}(s,f);var d=gr("requestPromises").getOrSet(n,(function(){return[]}));d.push(c),c.catch((function(){!function(n){vr("erroredResponseListeners").set(n,!0)}(s),Zr(s)}));var l=function(n){return gr("knownWindows").get(n,!1)}(n)?1e4:2e3,p=i,h=l,v=p,m=Rn((function(){return B(n)?c.reject(new Error("Window closed for "+e+" before "+(f.ack?"response":"ack"))):f.cancelled?c.reject(new Error("Response listener was cancelled for "+e)):(h=Math.max(h-500,0),-1!==v&&(v=Math.max(v-500,0)),f.ack||0!==h?0===v?c.reject(new Error("No response for postMessage "+a+" in "+I()+" in "+p+"ms")):void 0:c.reject(new Error("No ack for postMessage "+a+" in "+I()+" in "+l+"ms")))}),500);c.finally((function(){m.cancel(),d.splice(d.indexOf(c,1))})).catch(En)}return Wr(n,o,{id:dn(),origin:I(window),type:"postrobot_message_request",hash:s,name:e,data:t,fireAndForget:u},{on:Yr,send:Vr}).then((function(){return u?c.resolve():c}),(function(n){throw new Error("Send request message failed for "+a+" in "+I()+"\n\n"+Sn(n))}))}))}))};function Jr(n){return Lr.toProxyWindow(n,{send:Vr})}function Qr(){var n,e,t;pr().initialized||(pr().initialized=!0,function(n){var e=n.on,t=n.send,r=pr();r.receiveMessage=r.receiveMessage||function(n){return qr(n,{on:e,send:t})}}({on:Yr,send:Vr}),function(n){var e=n.on,t=n.send;vr().getOrSet("postMessageListener",(function(){return re(window,"message",(function(n){!function(n,e){var t=e.on,r=e.send;E.try((function(){var e=n.source||n.sourceElement,o=n.origin||n.originalEvent&&n.originalEvent.origin,i=n.data;if("null"===o&&(o="file://"),e){if(!o)throw new Error("Post message did not have origin domain");qr({source:e,origin:o,data:i},{on:t,send:r})}}))}(n,{on:e,send:t})}))}))}({on:Yr,send:Vr}),e=(n={on:Yr,send:Vr}).on,t=n.send,vr("builtinListeners").getOrSet("helloListener",(function(){var n=function(n){return(0,n.on)("postrobot_hello",{domain:"*"},(function(n){return _r(n.source,{domain:n.origin}),{instanceID:Er()}}))}({on:e}),r=G();return r&&Sr(r,{send:t}).catch((function(n){})),n})))}function Xr(n){for(var e=0,t=gr("requestPromises").get(n,[]);e<t.length;e++)t[e].reject(new Error("Window "+(B(n)?"closed":"cleaned up")+" before response")).catch(En)}function $r(n){var e="__zoid_10_4_0___"+pe();if(!C(n))throw new Error("Can not get global for window on different domain");return n[e]||(n[e]={}),n[e]}function no(n,e){try{return e($r(n))}catch(n){}}function eo(n){return{get:function(){var e=this;return E.try((function(){if(e.source&&e.source!==window)throw new Error("Can not call get on proxy object from a remote window");return n}))}}}function to(n){return fn(JSON.stringify(n))}function ro(n){var e=$r(n);return e.references=e.references||{},e.references}function oo(n){var e,t,r=n.data,o=n.metaData,i=n.sender,a=n.receiver,u=n.passByReference,c=void 0!==u&&u,s=n.basic,f=void 0!==s&&s,d=Jr(a.win),l=f?JSON.stringify(r):jr(d,a.domain,r,{on:Yr,send:Vr}),p=c?(e=l,t=dn(),ro(window)[t]=e,{type:"uid",uid:t}):function(n){return{type:"raw",val:n}}(l);return{serializedData:to({sender:{domain:i.domain},metaData:o,reference:p}),cleanReference:function(){var n,e;n=window,"uid"===(e=p).type&&delete ro(n)[e.uid]}}}function io(n){var e,t,r=n.sender,o=n.basic,i=void 0!==o&&o,a=function(n){return JSON.parse(function(n){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(n),(function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(n,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}(n))}(n.data),u=a.reference,c=a.metaData;e="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(n,e){if("raw"===e.type)return e.val;if("uid"===e.type)return ro(n)[e.uid];throw new Error("Unsupported ref type: "+e.type)}(e,u);return{data:i?JSON.parse(s):function(n,e,t){return Ur(n,e,t,{on:Yr,send:Vr})}(e,t,s),metaData:c,sender:{win:e,domain:t},reference:u}}Qr();var ao={NAVIGATED_AWAY:"Window navigated away",COMPONENT_DESTROYED:"Component destroyed",COMPONENT_CLOSED:"Component closed",WINDOW_CLOSED:"Detected component window close",IFRAME_CLOSE:"Detected iframe close"},uo=S;function co(n){return"__zoid__"+n.name+"__"+n.serializedPayload+"__"}function so(n){if(!n)throw new Error("No window name");var e=n.split("__"),t=e[1],r=e[2],o=e[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 fo=yn((function(n){var e=io({data:so(n).serializedInitialPayload,sender:{win:function(n){return function(n){if("opener"===n.type)return jn("opener",x(window));if("parent"===n.type&&"number"==typeof n.distance)return jn("parent",function(n,e){return void 0===e&&(e=1),function(n,e){void 0===e&&(e=1);for(var t=n,r=0;r<e;r++){if(!t)return;t=R(t)}return t}(n,z(n)-e)}(window,n.distance));if("global"===n.type&&n.uid&&"string"==typeof n.uid){var e=n.uid,t=G(window);if(!t)throw new Error("Can not find ancestor window");for(var r=0,o=H(t);r<o.length;r++){var i=o[r];if(C(i)){var a=no(i,(function(n){return n.windows&&n.windows[e]}));if(a)return a}}}else if("name"===n.type){var u=n.name;return jn("namedWindow",function(n,e){return W(n,e)||function n(e,t){var r=W(e,t);if(r)return r;for(var o=0,i=L(e);o<i.length;o++){var a=n(i[o],t);if(a)return a}}(k(n)||n,e)}(jn("ancestor",G(window)),u))}throw new Error("Unable to find "+n.type+" parent component window")}(n.metaData.windowRef)}}});return{parent:e.sender,payload:e.data,reference:e.reference}}));function lo(){return fo(window.name)}function po(n,e){if(void 0===e&&(e=window),n===R(e))return{type:"parent",distance:z(n)};if(n===x(e))return{type:"opener"};if(C(n)&&(r=n)!==k(r)){var t=D(n).name;if(t)return{type:"name",name:t}}var r}function ho(n,e,t,r,o){if(!n.hasOwnProperty(t))return r;var i=n[t];return"function"==typeof i.childDecorate?i.childDecorate({value:r,uid:o.uid,tag:o.tag,close:o.close,focus:o.focus,onError:o.onError,onProps:o.onProps,resize:o.resize,getParent:o.getParent,getParentDomain:o.getParentDomain,show:o.show,hide:o.hide,export:o.export,getSiblings:o.getSiblings}):r}function vo(){return E.try((function(){window.focus()}))}function mo(){return E.try((function(){window.close()}))}var yo=function(){return En},wo=function(n){return _n(n.value)};function go(n,e,t){for(var o=0,i=Object.keys(r({},n,e));o<i.length;o++){var a=i[o];t(a,e[a],n[a])}}function Eo(n,e,t){var r={};return E.all(function(n,e,o){var i=[];return go(n,e,(function(n,e,o){var a=function(n,e,o){return E.resolve().then((function(){var i,a;if(null!=o&&e){var u=(i={},i.get=e.queryParam,i.post=e.bodyParam,i)[t],c=(a={},a.get=e.queryValue,a.post=e.bodyValue,a)[t];if(u)return E.hash({finalParam:E.try((function(){return"function"==typeof u?u({value:o}):"string"==typeof u?u:n})),finalValue:E.try((function(){return"function"==typeof c&&Ln(o)?c({value:o}):o}))}).then((function(t){var o,i=t.finalParam,a=t.finalValue;if("boolean"==typeof a)o=a.toString();else if("string"==typeof a)o=a.toString();else if("object"==typeof a&&null!==a){if("json"===e.serialization)o=JSON.stringify(a);else if("base64"===e.serialization)o=fn(JSON.stringify(a));else if("dotify"===e.serialization||!e.serialization){o=function n(e,t,r){for(var o in void 0===t&&(t=""),void 0===r&&(r={}),t=t?t+".":t,e)e.hasOwnProperty(o)&&null!=e[o]&&"function"!=typeof e[o]&&(e[o]&&Array.isArray(e[o])&&e[o].length&&e[o].every((function(n){return"object"!=typeof n}))?r[""+t+o+"[]"]=e[o].join(","):e[o]&&"object"==typeof e[o]?r=n(e[o],""+t+o,r):r[""+t+o]=e[o].toString());return r}(a,n);for(var u=0,c=Object.keys(o);u<c.length;u++){var s=c[u];r[s]=o[s]}return}}else"number"==typeof a&&(o=a.toString());r[i]=o}))}}))}(n,e,o);i.push(a)})),i}(e,n)).then((function(){return r}))}function _o(n){var e,t,o,i,a,u=n.uid,c=n.options,s=n.overrides,f=void 0===s?{}:s,d=n.parentWin,l=void 0===d?window:d,p=c.propsDef,h=c.containerTemplate,v=c.prerenderTemplate,m=c.tag,y=c.name,w=c.attributes,g=c.dimensions,_=c.autoResize,S=c.url,b=c.domain,N=c.exports,T=new E,A=[],R=Hn(),x={},P={},O={visible:!0},M=f.event?f.event:xn(),L=f.props?f.props:{},F=!1,k=f.onError,H=f.getProxyContainer,j=f.show,U=f.hide,W=f.close,Z=f.renderContainer,J=f.getProxyWindow,Q=f.setProxyWin,$=f.openFrame,nn=f.openPrerenderFrame,en=f.prerender,tn=f.open,rn=f.openPrerender,on=f.watchForUnload,an=f.getInternalState,un=f.setInternalState,cn=function(){return"function"==typeof g?g({props:L}):g},sn=function(){return E.try((function(){return f.resolveInitPromise?f.resolveInitPromise():T.resolve()}))},fn=function(n){return E.try((function(){return f.rejectInitPromise?f.rejectInitPromise(n):T.reject(n)}))},ln=function(n){for(var e={},t=0,r=Object.keys(L);t<r.length;t++){var o=r[t],i=p[o];if(!i||!1!==i.sendToChild){var a=i&&i.trustedDomains&&i.trustedDomains.length>0?i.trustedDomains.reduce((function(e,t){return e||q(t,n)}),!1):q(n,I(window));i&&i.sameDomain&&!a||i&&i.trustedDomains&&!a||(e[o]=L[o])}}return E.hash(e)},pn=function(){return E.try((function(){return an?an():O}))},hn=function(n){return E.try((function(){return un?un(n):O=r({},O,n)}))},vn=function(){return J?J():E.try((function(){var n=L.window;if(n){var e=Jr(n);return R.register((function(){return n.close()})),e}return new Lr({send:Vr})}))},mn=function(n){return Q?Q(n):E.try((function(){e=n}))},wn=function(){return j?j():E.hash({setState:hn({visible:!0}),showElement:t?t.get().then(oe):null}).then(En)},gn=function(){return U?U():E.hash({setState:hn({visible:!1}),showElement:t?t.get().then(ie):null}).then(En)},Tn=function(){return"function"==typeof S?S({props:L}):S},An=function(){return"function"==typeof w?w({props:L}):w},Pn=function(){return Y(Tn())},On=function(n,e){var t=e.windowName;return $?$(n,{windowName:t}):E.try((function(){if(n===uo.IFRAME)return eo(te({attributes:r({name:t,title:y},An().iframe)}))}))},Cn=function(n){return nn?nn(n):E.try((function(){if(n===uo.IFRAME)return eo(te({attributes:r({name:"__zoid_prerender_frame__"+y+"_"+dn()+"__",title:"prerender__"+y},An().iframe)}))}))},Dn=function(n,e,t){return rn?rn(n,e,t):E.try((function(){if(n===uo.IFRAME){if(!t)throw new Error("Expected proxy frame to be passed");return t.get().then((function(n){return R.register((function(){return ae(n)})),ee(n).then((function(n){return D(n)})).then((function(n){return Jr(n)}))}))}if(n===uo.POPUP)return e;throw new Error("No render context available for "+n)}))},Mn=function(){return E.try((function(){if(e)return E.all([M.trigger("zoid-focus"),e.focus()]).then(En)}))},Fn=function(){var n=$r(window);return n.windows=n.windows||{},n.windows[u]=window,R.register((function(){delete n.windows[u]})),u},kn=function(n,e,t,r){if(e===I(window))return{type:"global",uid:Fn()};if(n!==window)throw new Error("Can not construct cross-domain window reference for different target window");if(L.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===uo.POPUP)return{type:"opener"};if(t===uo.IFRAME)return{type:"parent",distance:z(window)};throw new Error("Can not construct window reference for child")},jn=function(n,t){return E.try((function(){var r;i=n,o=t,null==(r=e)||r.isPopup().then((function(n){var r;""!==(null==t?void 0:t.name)&&n&&(null==(r=e)||r.setName(null==t?void 0:t.name))})).finally((function(){sn(),R.register((function(){return t.close.fireAndForget().catch(En)}))}))}))},Un=function(n){var e=n.width,t=n.height;return E.try((function(){M.trigger("zoid-resize",{width:e,height:t})}))},Bn=function(n){return E.try((function(){return M.trigger("zoid-destroy")})).catch(En).then((function(){return R.all(n)})).then((function(){var e=n||new Error(ao.COMPONENT_DESTROYED);a&&ue(a)||Object.values(ao).includes(e.message)?T.resolve():T.asyncReject(e)}))},Wn=yn((function(n){return E.try((function(){if(W){if(B(W.__source__))return;return W()}return E.try((function(){return M.trigger("zoid-close")})).then((function(){return Bn(n||new Error(ao.COMPONENT_CLOSED))}))}))})),Gn=function(n,e){var t=e.proxyWin,o=e.proxyFrame,i=e.windowName;return tn?tn(n,{proxyWin:t,proxyFrame:o,windowName:i}):E.try((function(){if(n===uo.IFRAME){if(!o)throw new Error("Expected proxy frame to be passed");return o.get().then((function(n){return ee(n).then((function(e){return R.register((function(){return ae(n)})),R.register((function(){return Xr(e)})),e}))}))}if(n===uo.POPUP){var e=cn(),t=e.width,a=void 0===t?"300px":t,u=e.height,c=void 0===u?"150px":u;a=_e(a,window.outerWidth),c=_e(c,window.outerWidth);var s=function(n,e){var t=(e=e||{}).closeOnUnload,o=void 0===t?1:t,i=e.name,a=void 0===i?"":i,u=e.width,c=e.height,s=0,f=0;u&&(window.outerWidth?f=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(f=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?s=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-c)/2))),delete e.closeOnUnload,delete e.name,u&&c&&(e=r({top:s,left:f,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},e));var d,l,p=Object.keys(e).map((function(n){if(null!=e[n])return n+"="+bn(e[n])})).filter(Boolean).join(",");try{d=window.open("",a,p)}catch(l){throw new $n("Can not open popup window - "+(l.stack||l.message))}if(B(d))throw new $n("Can not open popup window - blocked");return o&&window.addEventListener("unload",(function(){return d.close()})),d}(0,r({name:i,width:a,height:c},An().popup));return R.register((function(){return X(s)})),R.register((function(){return Xr(s)})),s}throw new Error("No render context available for "+n)})).then((function(n){return t.setWindow(n,{send:Vr}),t.setName(i).then((function(){return t}))}))},Zn=function(){return E.try((function(){var n=re(window,"unload",_n((function(){Bn(new Error(ao.NAVIGATED_AWAY))}))),e=V(l,Bn,3e3);if(R.register(e.cancel),R.register(n.cancel),on)return on()}))},zn=function(n,e){var t=!1;return R.register((function(){t=!0})),E.delay(2e3).then((function(){return n.isClosed()})).then((function(r){if(!t){if(e===uo.POPUP&&r)return Wn(new Error("Detected popup close"));var o=Boolean(a&&ue(a));return e===uo.IFRAME&&r&&(o||F)?Wn(new Error(ao.IFRAME_CLOSE)):zn(n,e)}}))},qn=function(n){var e=!1;return n.isClosed().then((function(t){return t?(e=!0,Wn(new Error(ao.WINDOW_CLOSED))):E.delay(200).then((function(){return n.isClosed()})).then((function(n){if(n)return e=!0,Wn(new Error(ao.WINDOW_CLOSED))}))})).then((function(){return e}))},Yn=function(n){return k?k(n):E.try((function(){if(-1===A.indexOf(n))return A.push(n),T.asyncReject(n),M.trigger("zoid-error",n)}))},Xn=new E,ne=function(n){return E.try((function(){Xn.resolve(n)}))};jn.onError=Yn;var fe=function(n,e){return n({uid:u,container:e.container,context:e.context,doc:e.doc,frame:e.frame,prerenderFrame:e.prerenderFrame,focus:Mn,close:Wn,state:x,props:L,tag:m,dimensions:cn(),event:M})},de=function(n,e){var t=e.context;return en?en(n,{context:t}):E.try((function(){if(v){M.trigger("zoid-prerender");var e=n.getWindow();if(e&&C(e)&&function(n){try{if(!n.location.href)return!0;if("about:blank"===n.location.href)return!0}catch(n){}return!1}(e)){var r=(e=D(e)).document,o=fe(v,{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(n,e){var t=e.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=n.document.documentElement,o=0,i=In(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,u=In(e.children);a<u.length;a++)r.appendChild(u[a])}(e,o);var i=_.width,a=void 0!==i&&i,u=_.height,c=void 0!==u&&u,s=_.element,f=void 0===s?"body":s;if((f=Jn(f,r))&&(a||c)){var d=ce(f,(function(n){Un({width:a?n.width:void 0,height:c?n.height:void 0})}),{width:a,height:c,win:e});M.on("zoid-rendered",d.cancel)}M.trigger("zoid-prerendered")}}}}))},le=function(n,e){var r=e.proxyFrame,o=e.proxyPrerenderFrame,i=e.context,a=e.rerender;return Z?Z(n,{proxyFrame:r,proxyPrerenderFrame:o,context:i,rerender:a}):E.hash({container:n.get(),frame:r?r.get():null,prerenderFrame:o?o.get():null,internalState:pn()}).then((function(n){var e=n.container,r=n.internalState.visible,o=fe(h,{context:i,container:e,frame:n.frame,prerenderFrame:n.prerenderFrame,doc:document});if(o){r||ie(o),Vn(e,o);var u=function(n,e){e=_n(e);var t,r,o,i=!1,a=[],u=function(){i=!0;for(var n=0;n<a.length;n++)a[n].disconnect();t&&t.cancel(),o&&o.removeEventListener("unload",c),r&&ae(r)},c=function(){i||(e(),u())};if(ue(n))return c(),{cancel:u};if(window.MutationObserver)for(var s=n.parentElement;s;){var f=new window.MutationObserver((function(){ue(n)&&c()}));f.observe(s,{childList:!0}),a.push(f),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+dn()+"__"),r.style.display="none",ee(r).then((function(n){(o=D(n)).addEventListener("unload",c)})),n.appendChild(r),t=Rn((function(){ue(n)&&c()}),1e3),{cancel:u}}(o,(function(){var n=new Error("Detected container element removed from DOM");return E.delay(1).then((function(){if(!ue(o))return R.all(n),a().then(sn,fn);Wn(n)}))}));return R.register((function(){return u.cancel()})),R.register((function(){return ae(o)})),t=eo(o)}}))},pe=function(){return{state:x,event:M,close:Wn,focus:Mn,resize:Un,onError:Yn,updateProps:ve,show:wn,hide:gn}},he=function(n){void 0===n&&(n={});var e=a,t=pe();Nn(P,n),function(n,e,t,r,o){var i=r.state,a=r.close,u=r.focus,c=r.event,s=r.onError;go(t,n,(function(n,r,f){var d=!1,l=f;Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){return d?l:(d=!0,function(){if(!r)return l;var d=r.alias;if(d&&!Ln(f)&&Ln(t[d])&&(l=t[d]),r.value&&(l=r.value({props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),!r.default||Ln(l)||Ln(t[n])||(l=r.default({props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),Ln(l)){if("array"===r.type?!Array.isArray(l):typeof l!==r.type)throw new TypeError("Prop is not of type "+r.type+": "+n)}else if(!1!==r.required&&!Ln(t[n]))throw new Error('Expected prop "'+n+'" to be defined');return Ln(l)&&r.decorate&&(l=r.decorate({value:l,props:e,state:i,close:a,focus:u,event:c,onError:s,container:o})),l}())}})})),go(e,n,En)}(p,L,P,t,e)},ve=function(n){return he(n),T.then((function(){var n=o,t=e;if(n&&t&&i)return ln(i).then((function(e){return n.updateProps(e).catch((function(n){return qn(t).then((function(e){if(!e)throw n}))}))}))}))},me=function(n){return H?H(n):E.try((function(){return Qn(n)})).then((function(n){return se(n)&&(n=function n(e){var t=function(n){var e=function(n){for(;n.parentNode;)n=n.parentNode;if(se(n))return n}(n);if(e&&e.host)return e.host}(e);if(!t)throw new Error("Element is not in shadow dom");var r="shadow-slot-"+dn(),o=document.createElement("slot");o.setAttribute("name",r),e.appendChild(o);var i=document.createElement("div");return i.setAttribute("slot",r),t.appendChild(i),se(t)?n(i):i}(n)),a=n,eo(n)}))};return{init:function(){M.on("zoid-render",(function(){return L.onRender()})),M.on("zoid-prerender",(function(){return L.onPrerender()})),M.on("zoid-display",(function(){return L.onDisplay()})),M.on("zoid-rendered",(function(){return L.onRendered()})),M.on("zoid-prerendered",(function(){return L.onPrerendered()})),M.on("zoid-close",(function(){return L.onClose()})),M.on("zoid-destroy",(function(){return L.onDestroy()})),M.on("zoid-resize",(function(){return L.onResize()})),M.on("zoid-focus",(function(){return L.onFocus()})),M.on("zoid-props",(function(n){return L.onProps(n)})),M.on("zoid-error",(function(n){return L&&L.onError?L.onError(n):fn(n).then((function(){setTimeout((function(){throw n}),1)}))})),R.register(M.reset)},render:function(n){var t=n.target,r=n.container,o=n.context,i=n.rerender;return E.try((function(){var n=Pn(),a=b||Pn();!function(n,e,t){if(n!==window){if(!K(window,n))throw new Error("Can only renderTo an adjacent frame");var r=I();if(!q(e,r)&&!C(n))throw new Error("Can not render remotely to "+e.toString()+" - can only render to "+r);if(t&&"string"!=typeof t)throw new Error("Container passed to renderTo must be a string selector, got "+typeof t+" }")}}(t,a,r);var s=E.try((function(){if(t!==window)return function(n,e){for(var t={},r=0,o=Object.keys(L);r<o.length;r++){var i=o[r],a=p[i];a&&a.allowDelegate&&(t[i]=L[i])}var c=Vr(e,"zoid_delegate_"+y,{uid:u,overrides:{props:t,event:M,close:Wn,onError:Yn,getInternalState:pn,setInternalState:hn,resolveInitPromise:sn,rejectInitPromise:fn}}).then((function(n){var t=n.data.parent;return R.register((function(n){if(!B(e))return t.destroy(n)})),t.getDelegateOverrides()})).catch((function(n){throw new Error("Unable to delegate rendering. Possibly the component is not loaded in the target window.\n\n"+Sn(n))}));return H=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.getProxyContainer.apply(n,e)}))},Z=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.renderContainer.apply(n,e)}))},j=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.show.apply(n,e)}))},U=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.hide.apply(n,e)}))},on=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.watchForUnload.apply(n,e)}))},n===uo.IFRAME?(J=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.getProxyWindow.apply(n,e)}))},$=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openFrame.apply(n,e)}))},nn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openPrerenderFrame.apply(n,e)}))},en=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.prerender.apply(n,e)}))},tn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.open.apply(n,e)}))},rn=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.openPrerender.apply(n,e)}))}):n===uo.POPUP&&(Q=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return c.then((function(n){return n.setProxyWin.apply(n,e)}))}),c}(o,t)})),f=L.window,d=Zn(),l=Eo(p,L,"post"),h=M.trigger("zoid-render"),v=me(r),w=vn(),g=v.then((function(){return he()})),_=g.then((function(){return Eo(p,L,"get").then((function(n){return function(n,e){var t,r,o=e.query||{},i=e.hash||{},a=n.split("#");r=a[1];var u=(t=a[0]).split("?");t=u[0];var c=Kn(u[1],o),s=Kn(r,i);return c&&(t=t+"?"+c),s&&(t=t+"#"+s),t}(function(n){if(0!==Y(n).indexOf("mock:"))return n;throw new Error("Mock urls not supported out of test mode")}(Tn()),{query:n})}))})),S=w.then((function(e){return function(n){return function(n){var e=void 0===n?{}:n,t=e.proxyWin,r=e.initialChildDomain,o=e.childDomainMatch,i=e.target,a=void 0===i?window:i,c=e.context;return function(n){var e=void 0===n?{}:n,t=e.proxyWin,r=e.childDomainMatch,o=e.context;return ln(e.initialChildDomain).then((function(n){return{uid:u,context:o,tag:m,childDomainMatch:r,version:"10_4_0",props:n,exports:(e=t,{init:function(n){return jn(this.origin,n)},close:Wn,checkClose:function(){return qn(e)},resize:Un,onError:Yn,show:wn,hide:gn,export:ne})};var e}))}({proxyWin:t,initialChildDomain:r,childDomainMatch:o,context:c}).then((function(n){var e=oo({data:n,metaData:{windowRef:kn(a,r,c,t)},sender:{domain:I(window)},receiver:{win:t,domain:o},passByReference:r===I()}),i=e.serializedData;return R.register(e.cleanReference),i}))}({proxyWin:n.proxyWin,initialChildDomain:n.initialChildDomain,childDomainMatch:n.childDomainMatch,target:n.target,context:n.context}).then((function(n){return co({name:y,serializedPayload:n})}))}({proxyWin:e,initialChildDomain:n,childDomainMatch:a,target:t,context:o})})),N=S.then((function(n){return On(o,{windowName:n})})),A=Cn(o),x=E.hash({proxyContainer:v,proxyFrame:N,proxyPrerenderFrame:A}).then((function(n){return le(n.proxyContainer,{context:o,proxyFrame:n.proxyFrame,proxyPrerenderFrame:n.proxyPrerenderFrame,rerender:i})})).then((function(n){return n})),P=E.hash({windowName:S,proxyFrame:N,proxyWin:w}).then((function(n){var e=n.proxyWin;return f?e:Gn(o,{windowName:n.windowName,proxyWin:e,proxyFrame:n.proxyFrame})})),O=E.hash({proxyWin:P,proxyPrerenderFrame:A}).then((function(n){return Dn(o,n.proxyWin,n.proxyPrerenderFrame)})),D=P.then((function(n){return e=n,mn(n)})),k=E.hash({proxyPrerenderWin:O,state:D}).then((function(n){return de(n.proxyPrerenderWin,{context:o})})),W=E.hash({proxyWin:P,windowName:S}).then((function(n){if(f)return n.proxyWin.setName(n.windowName)})),G=E.hash({body:l}).then((function(n){return c.method?c.method:Object.keys(n.body).length?"post":"get"})),z=E.hash({proxyWin:P,windowUrl:_,body:l,method:G,windowName:W,prerender:k}).then((function(n){return n.proxyWin.setLocation(n.windowUrl,{method:n.method,body:n.body})})),V=P.then((function(n){zn(n,o)})),X=E.hash({container:x,prerender:k}).then((function(){return M.trigger("zoid-display")})),an=P.then((function(n){})),un=z.then((function(){return E.try((function(){var n=L.timeout;if(n)return T.timeout(n,new Error("Loading component timed out after "+n+" milliseconds"))}))})),cn=T.then((function(){return F=!0,M.trigger("zoid-rendered")}));return E.hash({initPromise:T,buildUrlPromise:_,onRenderPromise:h,getProxyContainerPromise:v,openFramePromise:N,openPrerenderFramePromise:A,renderContainerPromise:x,openPromise:P,openPrerenderPromise:O,setStatePromise:D,prerenderPromise:k,loadUrlPromise:z,buildWindowNamePromise:S,setWindowNamePromise:W,watchForClosePromise:V,onDisplayPromise:X,openBridgePromise:an,runTimeoutPromise:un,onRenderedPromise:cn,delegatePromise:s,watchForUnloadPromise:d,finalSetPropsPromise:g})})).catch((function(n){return E.all([Yn(n),Bn(n)]).then((function(){throw n}),(function(){throw n}))})).then(En)},destroy:Bn,getProps:function(){return L},setProps:he,export:ne,getHelpers:pe,getDelegateOverrides:function(){return E.try((function(){return{getProxyContainer:me,show:wn,hide:gn,renderContainer:le,getProxyWindow:vn,watchForUnload:Zn,openFrame:On,openPrerenderFrame:Cn,prerender:de,open:Gn,openPrerender:Dn,setProxyWin:mn}}))},getExports:function(){return N({getExports:function(){return Xn}})}}}var So={register:function(n,e,t,r){var o=r.React,i=r.ReactDOM;return function(n){function e(){return n.apply(this,arguments)||this}d(e,n);var r=e.prototype;return r.render=function(){return o.createElement("div",null)},r.componentDidMount=function(){var n=i.findDOMNode(this),e=t(Nn({},this.props));e.render(n,uo.IFRAME),this.setState({parent:e})},r.componentDidUpdate=function(){this.state&&this.state.parent&&this.state.parent.updateProps(Nn({},this.props)).catch(En)},e}(o.Component)}},bo={register:function(n,e,t,o){return o.component(n,{render:function(n){return n("div")},inheritAttrs:!1,mounted:function(){var n,e=this.$el;this.parent=t(r({},(n=this.$attrs,Object.keys(n).reduce((function(e,t){var r=n[t];return"style-object"===t||"styleObject"===t?(e.style=r,e.styleObject=r):t.includes("-")?e[Pn(t)]=r:e[t]=r,e}),{})))),this.parent.render(e,uo.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(En)},deep:!0}}})}},No={register:function(n,e,t){return{template:"<div></div>",inheritAttrs:!1,mounted:function(){var n,e=this.$el;this.parent=t(r({},(n=this.$attrs,Object.keys(n).reduce((function(e,t){var r=n[t];return"style-object"===t||"styleObject"===t?(e.style=r,e.styleObject=r):t.includes("-")?e[Pn(t)]=r:e[t]=r,e}),{})))),this.parent.render(e,uo.IFRAME)},watch:{$attrs:{handler:function(){this.parent&&this.$attrs&&this.parent.updateProps(r({},this.$attrs)).catch(En)},deep:!0}}}}},To={register:function(n,e,t,r){return r.module(n,[]).directive(Pn(n),(function(){for(var n={},r=0,o=Object.keys(e);r<o.length;r++)n[o[r]]="=";return n.props="=",{scope:n,restrict:"E",controller:["$scope","$element",function(n,e){function r(){if("$apply"!==n.$root.$$phase&&"$digest"!==n.$root.$$phase)try{n.$apply()}catch(n){}}var o=function(){return Mn(n.props,(function(n){return"function"==typeof n?function(){var e=n.apply(this,arguments);return r(),e}:n}))},i=t(o());i.render(e[0],uo.IFRAME),n.$watch((function(){i.updateProps(o()).catch(En)}))}]}}))}},Ao={register:function(n,e,t,o){var i=o.Component,a=o.NgModule,u=o.ElementRef,c=o.NgZone,s=o.Inject,f=function(){function n(n,e){this.elementRef=void 0,this.internalProps=void 0,this.parent=void 0,this.props=void 0,this.zone=void 0,this._props=void 0,this._props={},this.elementRef=n,this.zone=e}var e=n.prototype;return e.getProps=function(){var n=this;return Mn(r({},this.internalProps,this.props),(function(e){if("function"==typeof e){var t=n.zone;return function(){var n=arguments,r=this;return t.run((function(){return e.apply(r,n)}))}}return e}))},e.ngOnInit=function(){var n=this.elementRef.nativeElement;this.parent=t(this.getProps()),this.parent.render(n,uo.IFRAME)},e.ngDoCheck=function(){this.parent&&!function(n,e){var t={};for(var r in n)if(n.hasOwnProperty(r)&&(t[r]=!0,n[r]!==e[r]))return!1;for(var o in e)if(!t[o])return!1;return!0}(this._props,this.props)&&(this._props=r({},this.props),this.parent.updateProps(this.getProps()))},n}();f.annotations=void 0,f.parameters=void 0,f.parameters=[[new s(u)],[new s(c)]],f.annotations=[new i({selector:n,template:"<div></div>",inputs:["props"]})];var d=function(){};return d.annotations=void 0,d.annotations=[new a({declarations:[f],exports:[f]})],d}};function Ro(n){var e=n.uid,t=n.frame,r=n.prerenderFrame,o=n.doc,i=n.props,a=n.event,u=n.dimensions,c=u.width,s=u.height;if(t&&r){var f=o.createElement("div");f.setAttribute("id",e);var d=o.createElement("style");return i.cspNonce&&d.setAttribute("nonce",i.cspNonce),d.appendChild(o.createTextNode("\n #"+e+" {\n display: inline-block;\n position: relative;\n width: "+c+";\n height: "+s+";\n }\n\n #"+e+" > 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 #"+e+" > iframe.zoid-invisible {\n opacity: 0;\n }\n\n #"+e+" > iframe.zoid-visible {\n opacity: 1;\n }\n ")),f.appendChild(t),f.appendChild(r),f.appendChild(d),r.classList.add("zoid-visible"),t.classList.add("zoid-invisible"),a.on("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(){ae(r)}),1)})),a.on("zoid-resize",(function(n){var e=n.width,t=n.height;"number"==typeof e&&(f.style.width=Ee(e)),"number"==typeof t&&(f.style.height=Ee(t))})),f}}function xo(n){var e=n.doc,t=n.props,r=e.createElement("html"),o=e.createElement("body"),i=e.createElement("style"),a=e.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(e.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 Po=Hn(),Oo=Hn();function Io(n){var e,t,o=function(n){var e=n.tag,t=n.url,o=n.domain,i=n.bridgeUrl,a=n.props,u=void 0===a?{}:a,c=n.getExtensions,s=void 0===c?function(){return{}}:c,f=n.dimensions,d=void 0===f?{}:f,l=n.autoResize,p=void 0===l?{}:l,h=n.allowedParentDomains,v=void 0===h?"*":h,m=n.attributes,y=void 0===m?{}:m,w=n.defaultContext,g=void 0===w?uo.IFRAME:w,E=n.containerTemplate,_=void 0===E?Ro:E,S=n.prerenderTemplate,b=void 0===S?xo:S,N=n.validate,T=n.eligible,A=void 0===T?function(){return{eligible:!0}}:T,R=n.logger,x=void 0===R?{info:En}:R,P=n.exports,O=void 0===P?En:P,I=n.method,D=n.children,M=void 0===D?function(){return{}}:D,L=e.replace(/-/g,"_"),F=r({},{window:{type:"object",sendToChild:!1,required:!1,allowDelegate:!0,validate:function(n){var e=n.value;if(!J(e)&&!Lr.isProxyWindow(e))throw new Error("Expected Window or ProxyWindow");if(J(e)){if(B(e))throw new Error("Window is closed");if(!C(e))throw new Error("Window is not same domain")}},decorate:function(n){return Jr(n.value)}},timeout:{type:"number",required:!1,sendToChild:!1},cspNonce:{type:"string",required:!1},onDisplay:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onRendered:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onRender:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onPrerendered:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onPrerender:{type:"function",required:!1,sendToChild:!1,default:yo,decorate:wo},onClose:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onDestroy:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo,decorate:wo},onResize:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo},onFocus:{type:"function",required:!1,sendToChild:!1,allowDelegate:!0,default:yo},close:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.close}},focus:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.focus}},resize:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.resize}},uid:{type:"string",required:!1,sendToChild:!1,childDecorate:function(n){return n.uid}},tag:{type:"string",required:!1,sendToChild:!1,childDecorate:function(n){return n.tag}},getParent:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getParent}},getParentDomain:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getParentDomain}},show:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.show}},hide:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.hide}},export:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.export}},onError:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.onError}},onProps:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.onProps}},getSiblings:{type:"function",required:!1,sendToChild:!1,childDecorate:function(n){return n.getSiblings}}},u);if(!_)throw new Error("Container template required");return{name:L,tag:e,url:t,domain:o,bridgeUrl:i,method:I,propsDef:F,dimensions:d,autoResize:p,allowedParentDomains:v,attributes:y,defaultContext:g,containerTemplate:_,prerenderTemplate:b,validate:N,logger:x,eligible:A,children:M,exports:"function"==typeof O?O:function(n){for(var e=n.getExports,t={},r=function(){var n=i[o],r=O[n].type,a=e().then((function(e){return e[n]}));t[n]="function"===r?function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return a.then((function(n){return n.apply(void 0,e)}))}:a},o=0,i=Object.keys(O);o<i.length;o++)r();return t},getExtensions:s}}(n),i=o.name,a=o.tag,u=o.defaultContext,c=o.propsDef,s=o.eligible,f=o.children,d=o.getExtensions,l=$r(window),p={},h=[],v=function(){if(function(n){try{return so(window.name).name===n}catch(n){}return!1}(i)){var n=lo().payload;if(n.tag===a&&q(n.childDomainMatch,I()))return!0}return!1},m=yn((function(){if(v()){if(window.xprops)throw delete l.components[a],new Error("Can not register "+i+" as child - child already registered");var n=function(n){var e,t=n.tag,r=n.propsDef,o=n.autoResize,i=n.allowedParentDomains,a=[],u=lo(),c=u.parent,s=u.payload,f=c.win,d=c.domain,l=new E,p=s.version,h=s.uid,v=s.exports,m=s.context,y=s.props;if(!function(n,e){if(!/_/.test(n)||!/_/.test("10_4_0"))throw new Error("Versions are in an invalid format ("+n+", 10_4_0)");return n.split("_")[0]==="10_4_0".split("_")[0]}(p))throw new Error("Parent window has zoid version "+p+", child window has version 10_4_0");var w=v.show,g=v.hide,_=v.close,S=v.onError,b=v.checkClose,N=v.export,T=v.resize,A=v.init,R=function(){return f},x=function(){return d},P=function(n){return a.push(n),{cancel:function(){a.splice(a.indexOf(n),1)}}},O=function(n){return T.fireAndForget({width:n.width,height:n.height})},M=function(n){return l.resolve(n),N(n)},L=function(n){var r=(void 0===n?{}:n).anyParent,o=[],i=e.parent;if(void 0===r&&(r=!i),!r&&!i)throw new Error("No parent found for "+t+" child");for(var a=0,u=H(window);a<u.length;a++){var c=u[a];if(C(c)){var s=D(c).xprops;if(s&&R()===s.getParent()){var f=s.parent;if(r||!i||f&&f.uid===i.uid){var d=no(c,(function(n){return n.exports}));o.push({props:s,exports:d})}}}}return o},F=function(n,o,i){void 0===i&&(i=!1);var u=function(n,e,t,r,o,i){void 0===i&&(i=!1);for(var a={},u=0,c=Object.keys(t);u<c.length;u++){var s=c[u],f=e[s],d=f&&f.trustedDomains&&f.trustedDomains.length>0?f.trustedDomains.reduce((function(n,e){return n||q(e,I(window))}),!1):r===I(window)||C(n);if((!f||!f.sameDomain||d)&&(!f||!f.trustedDomains||d)){var l=ho(e,0,s,t[s],o);a[s]=l,f&&f.alias&&!a[f.alias]&&(a[f.alias]=l)}}if(!i)for(var p=0,h=Object.keys(e);p<h.length;p++){var v=h[p];t.hasOwnProperty(v)||(a[v]=ho(e,0,v,void 0,o))}return a}(f,r,n,o,{tag:t,show:w,hide:g,close:_,focus:vo,onError:S,resize:O,getSiblings:L,onProps:P,getParent:R,getParentDomain:x,uid:h,export:M},i);e?Nn(e,u):e=u;for(var c=0;c<a.length;c++)(0,a[c])(e)},k=function(n){return E.try((function(){return F(n,d,!0)}))};return{init:function(){return E.try((function(){var e="";return C(f)&&(e=function(n){var e=n.componentName,t=n.parentComponentWindow,r=io({data:so(window.name).serializedInitialPayload,sender:{win:t},basic:!0}),o=r.sender;if("uid"===r.reference.type||"global"===r.metaData.windowRef.type){var i=co({name:e,serializedPayload:oo({data:r.data,metaData:{windowRef:po(t)},sender:{domain:o.domain},receiver:{win:window,domain:I()},basic:!0}).serializedData});return window.name=i,i}}({componentName:n.name,parentComponentWindow:f})||""),$r(window).exports=n.exports({getExports:function(){return l}}),function(n,e){if(!q(n,e))throw new Error("Can not be rendered by domain: "+e)}(i,d),Nr(f),window.addEventListener("beforeunload",(function(){b.fireAndForget()})),window.addEventListener("unload",(function(){b.fireAndForget()})),V(f,(function(){mo()})),A({name:e,updateProps:k,close:mo})})).then((function(){return(n=o.width,e=void 0!==n&&n,t=o.height,r=void 0!==t&&t,i=o.element,Qn(void 0===i?"body":i).catch(En).then((function(n){return{width:e,height:r,element:n}}))).then((function(n){var e=n.width,t=n.height,r=n.element;r&&(e||t)&&m!==uo.POPUP&&ce(r,(function(n){O({width:e?n.width:void 0,height:t?n.height:void 0})}),{width:e,height:t})}));var n,e,t,r,i})).catch((function(n){S(n)}))},getProps:function(){return e||(F(y,d),e)}}}(o);return n.init(),n}})),y=function(n){var e,t="zoid-"+a+"-"+dn(),c=n||{},l=s({props:c}),p=l.eligible,v=l.reason,m=c.onDestroy;c.onDestroy=function(){if(e&&p&&h.splice(h.indexOf(e),1),m)return m.apply(void 0,arguments)};var w=_o({uid:t,options:o});w.init(),p?w.setProps(c):c.onDestroy&&c.onDestroy(),Po.register((function(n){return w.destroy(n||new Error("zoid destroyed all components"))}));var g=function(n){var e=(void 0===n?{}:n).decorate;return y((void 0===e?An:e)(c))},_=function(n,t,r){return E.try((function(){if(!p){var e=new Error(v||i+" component is not eligible");return w.destroy(e).then((function(){throw e}))}if(!J(n))throw new Error("Must pass window to renderTo");return function(n,e){return E.try((function(){if(n.window)return Jr(n.window).getType();if(e){if(e!==uo.IFRAME&&e!==uo.POPUP)throw new Error("Unrecognized context: "+e);return e}return u}))}(c,r)})).then((function(o){if(t=function(n,e){if(e){if("string"!=typeof e&&!un(e))throw new TypeError("Expected string or element selector to be passed");return e}if(n===uo.POPUP)return"body";throw new Error("Expected element to be passed to render iframe")}(o,t),n!==window&&"string"!=typeof t)throw new Error("Must pass string element when rendering to another window");return w.render({target:n,container:t,context:o,rerender:function(){var o=g();return Nn(e,o),o.renderTo(n,t,r)}})})).catch((function(n){return w.destroy(n).then((function(){throw n}))}))};return e=r({},d(w),w.getExports(),w.getHelpers(),function(){for(var n=f(),e={},o=function(){var o=a[i],u=n[o];e[o]=function(n){var e=w.getProps(),o=r({},n,{parent:{uid:t,props:e,export:w.export}});return u(o)}},i=0,a=Object.keys(n);i<a.length;i++)o();return e}(),{isEligible:function(){return p},clone:g,render:function(n,e){return _(window,n,e)},renderTo:function(n,e,t){return _(n,e,t)}}),p&&h.push(e),e};if(m(),e=Yr("zoid_allow_delegate_"+i,(function(){return!0})),t=Yr("zoid_delegate_"+i,(function(n){var e=n.data;return{parent:_o({uid:e.uid,options:o,overrides:e.overrides,parentWin:n.source})}})),Oo.register(e.cancel),Oo.register(t.cancel),l.components=l.components||{},l.components[a])throw new Error("Can not register multiple components with the same tag: "+a);return l.components[a]=!0,{init:y,instances:h,driver:function(n,e){var t={react:So,angular:To,vue:bo,vue3:No,angular2:Ao};if(!t[n])throw new Error("Could not find driver for framework: "+n);return p[n]||(p[n]=t[n].register(a,c,y,e)),p[n]},isChild:v,canRenderTo:function(n){return Vr(n,"zoid_allow_delegate_"+i).then((function(n){return n.data})).catch((function(){return!1}))},registerChild:m}}var Co=t(98),Do=t.n(Co);function Mo(n,e){switch(n){case"STRING":return"string"==typeof e;case"BOOLEAN":return"boolean"==typeof e;case"NUMBER":return"number"==typeof e&&!Do()(e);case"FUNCTION":return"function"==typeof e;case"ARRAY":return Array.isArray(e);case"OBJECT":return!Array.isArray(e)&&"object"==typeof e&&null!==e;case"ANY":return!0;default:return!1}}var Lo=Ct((function(n,e){return fr.warn("invalid_option_value",{description:e,location:n})})),Fo=function(n,e,t){var r=Array.isArray(t)?"array":typeof t;Lo(n,'Expected type "'+e.toLowerCase()+'" but instead received "'+r+'" ('+JSON.stringify(t)+").")};function ko(n,e){if(!Mo("STRING",n))throw Fo("offer","STRING",n),new Error("offer_validation_error");if(!e.includes(n))throw Lo("offer","Ensure valid offer type."),new Error("offer_validation_error")}var Ho,jo,Uo,Bo,Wo,Go={account:function(n){var e=n.props.account;if(Mo("STRING",e)){if(13===e.length||10===e.length||Zt()(e,"client-id:"))return e;Lo("account","Ensure the correct Merchant Account ID has been entered.")}else Fo("account","STRING",e)},merchantId:function(n){var e=n.props.merchantId;if(void 0!==e){if(Mo("STRING",e))return e.split(",").some((function(n){return 13!==n.length&&10!==n.length}))&&Lo("merchantId","Ensure the correct Merchant ID has been entered."),e;Fo("merchantId","STRING",e)}},customerId:function(n){var e=n.props.customerId;if(void 0!==e)if(Mo("STRING",e)){if(13===e.length||10===e.length)return e;Lo("customerId","Ensure the correct Merchant ID has been entered.")}else Fo("customerId","STRING",e)},amount:function(n){var e=n.props.amount;if(void 0!==e){var t=Number(e);if(Mo("NUMBER",t)){if(!(t<0))return t;Lo("amount","Ensure value is a positive number.")}else Fo("amount","NUMBER",e)}},offer:function(n){var e=n.props.offer,t=[].concat(Object.values(ze),["NI"]);if(void 0!==e){var r=e;if("string"==typeof e&&e.includes(",")&&(r=e.split(",").map((function(n){return n.trim()}))),Array.isArray(r)){if(r.length>2)throw Lo("offer","Ensure valid offer length"),new Error("offer_validation_error: offers cannot exceed 2");var o=r.map((function(n){return ko(n,t),n}));return o[0]===o[1]?o[0]:o.sort().join()}return ko(e,t),e}return e},style:function(n){var e=n.props.style;if(Mo("OBJECT",e)){var t=null!=e&&e.layout?e:r({},e,{layout:"text"});if(Mo("STRING",t.layout))return t;if(Fo("style.layout","STRING",t.layout),Mo("STRING",t.preset))return r({layout:"text"},t)}else void 0!==e&&Fo("style","OBJECT",e);return{layout:"text"}},currency:function(n){var e=n.props.currency;if(void 0!==e){if(Mo("STRING",e))return e;Fo("currency","STRING",e)}},pageType:function(n){var e=n.props.pageType;if(void 0!==e){var t=["home","category","product","payment","product-list","product-listing","search-results","product-details","mini-cart","cart","checkout"];if(Mo("STRING",e)){if(ft()(t,e))return e;!function(n,e,t){Lo("pageType",'Expected one of ["'+e.join('", "').replace(/\|[\w|]+/g,"")+'"] but received "'+t+'".')}(0,t,e)}else Fo("pageType","STRING",e)}},buyerCountry:function(n){var e=n.props.buyerCountry;if(void 0!==e){if(Mo("STRING",e))return e;Fo("buyerCountry","STRING",e)}},language:function(n){var e=n.props.language;if(void 0!==e){if(Mo("STRING",e))return e;Fo("language","STRING",e)}},ignoreCache:function(n){var e=n.props.ignoreCache;if(void 0!==e){if(Mo("BOOLEAN",e))return e;Fo("ignoreCache","BOOLEAN",e)}},channel:function(n){var e=n.props.channel;if(void 0!==e){if(Mo("STRING",e))return/^[A-Z0-9_]+$/.test(e)?e:void 0;Fo("channel","STRING",e)}},ecToken:function(n){var e=n.props.ecToken;if(void 0!==e){if(Mo("STRING",e))return e;Fo("ecToken","STRING",e)}},buttonSessionId:function(n){var e=n.props.buttonSessionId;if(void 0!==e){if(Mo("STRING",e))return e;Fo("buttonSessionId","STRING",e)}},contextualComponents:function(n){var e=n.props.contextualComponents;if(void 0!==e){var t;if(Array.isArray(e))t=e.map((function(n){return n.toUpperCase()}));else{if("string"!=typeof e)return void Fo("contextualComponents","STRING or ARRAY",e);t=e.toUpperCase().split(",")}var r=t.every((function(n){return n.endsWith("_BUTTON")})),o=t.every((function(n){return n.endsWith("_MARK")}));if(r||o){if(!(t.filter((function(n){return n.endsWith("_MARK")})).length>1))return t.sort().join(",");Lo("contextualComponents","Ensure only one type of mark value is provided.")}else Lo("contextualComponents","Invalid contextualComponents combination. Expected all contextualComponents values to be either of type 'button' or 'mark' but received \""+e+'"')}},cspNonce:function(n){var e=n.props.cspNonce;if(void 0!==e){if(Mo("STRING",e))return e;Fo("cspNonce","STRING",e)}},merchantConfig:function(n){var e=n.props.merchantConfig;if(void 0!==e){if(!Mo("STRING",e))return;return e}},features:function(n){var e=n.props.features;if(void 0!==e){if(Mo("STRING",e))return e;Fo("features","STRING",e)}}},Zo=(Ho=0,function(n){return n+" "+(Ho+=1)}),zo=function(n){var e=n.uid,t=n.frame,r=n.prerenderFrame,o=n.doc,i=n.event,a=n.state,u=n.props,c=u.cspNonce,s=u.features;if("popup"!==n.context){var f=null!=s&&s.includes("new-checkout-design")?100:300,d=null!=s&&s.includes("new-checkout-design")?0:5,l=Ft(),p=l[0],h=l[1],v={HIDDEN:e+"-hide",MODAL_SHOW:e+"-show",TRANSITION:e+"-transition"},m=Zo(t.title);return Nt("div",{id:e,class:v.HIDDEN,onRender:function(n){var e=n.querySelector("div"),o=function(){a.open=!0,a.previousFocus=document.activeElement,n.classList.remove(v.HIDDEN),p(),requestAnimationFrame((function(){requestAnimationFrame((function(){e.classList.add(v.MODAL_SHOW),a.renderedModal&&window.document.activeElement!==t?t.focus():window.document.activeElement!==r&&r.focus()}))}))},u=function(){a.open=!1,e.classList.remove(v.MODAL_SHOW),h(),setTimeout((function(){n.classList.add(v.HIDDEN),a.previousFocus.focus()}),f)};a.open&&o(),i.on("modal-show",o),i.on("modal-hide",u),i.on("zoid-rendered",(function(){a.renderedModal=!0,E.delay(f).then((function(){return e.classList.add(v.TRANSITION)})).then((function(){return E.delay(f)})).then((function(){return ae(r)})).then((function(){a.open&&document.activeElement!==t&&t.focus()}))})),window.addEventListener("keyup",(function(n){!a.open||"Escape"!==n.key&&"Esc"!==n.key&&27!==n.charCode||u()}))}},Nt("style",{nonce:c},"\n #"+e+"."+v.HIDDEN+" {\n visibility: hidden;\n }\n\n #"+e+" > div > iframe {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n border: none !important;\n }\n\n @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n #"+e+"."+v.HIDDEN+" > div > iframe {\n opacity: 0;\n }\n }\n\n #"+e+" > div {\n background: rgba(108, 115, 120, 0);\n transition: background "+f+"ms linear;\n position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 2147483647 !important; border: none !important;\n }\n\n "+("new-checkout-design"!==s?"#"+e+" > div."+v.MODAL_SHOW+" {\n background: rgba(108, 115, 120, 0.85);\n }":"")+"\n\n #"+e+" > div > iframe {\n transition: all "+f+"ms;\n transform: translateY("+d+"%);\n opacity: 0;\n }\n\n #"+e+" > div."+v.MODAL_SHOW+" > iframe {\n transform: translateY(0);\n opacity: 1;\n }\n\n #"+e+" > div > iframe:first-of-type {\n opacity: 0;\n }\n\n #"+e+" > div."+v.MODAL_SHOW+"."+v.TRANSITION+" > iframe:first-of-type {\n opacity: 1;\n z-index: 2;\n }\n\n #"+e+" > div."+v.TRANSITION+" > iframe:last-of-type {\n opacity: 0;\n }\n "),Nt("div",null,Nt("node",{el:t,title:m}),Nt("node",{el:r,title:"Prerender "+m}))).render(It({doc:o}))}},Ko=t(97),qo=function(n){var e,t=n.doc,r=n.props,o=r.cspNonce,i=r.features,a=r.onError,u=r.onClose,c=n.event,s=n.state,f=null!=i&&i.includes("new-checkout-design")?"true":"false",d="\n @font-face {\n font-family: 'PayPalOpen';\n src: url(https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n html {\n color: #2d2d2d;\n font-family: PayPalOpen, Helvetica, Arial, sans-serif;\n font-size: 14px;\n font-weight: 400;\n }\n .modal{\n overflow-y: scroll;\n }\n "+("true"===f?" @media screen and (min-width: 640px) {\n .overlay {\n background-color: #f1f2f3; \n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 424px;\n height: 90vh;\n border-radius: 32px;\n border: 1px solid #cdd0d4;\n }\n }\n @media screen and (max-width: 639px) {\n .overlay {\n background-color: #f1f2f3;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }\n }\n ":".overlay {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%; \n height: 100%;\n }")+"\n .modal-content {\n position: relative;\n margin: auto;\n height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n }\n "+("true"===f&&"\n @media screen and (min-width: 640px) {\n #prerender-close-btn {\n position: relative;\n }\n .close-button {\n position: absolute;\n width: 424px;\n transform: translate(-50%, -50%);\n top: 85px;\n left: 50%;\n padding-left: 25px;\n z-index: 50;\n }\n }\n @media screen and (max-width: 639px) {\n #prerender-close-btn {\n left: 0;\n }\n }\n\n .spinnerImage{\n display: none;\n }\n .loader {\n width: 44px !important;\n height: 44px !important;\n margin: 0 0 0 -22px !important;\n background-color: transparent !important;\n animation: rotation 1.3s infinite linear !important;\n border-left: 3px solid #0544b5 !important;\n border-right: 3px solid #0544b5 !important;\n border-bottom: 3px solid transparent !important;\n border-top: 3px solid #0544b5 !important;\n border-radius: 100% !important;\n top: 20;\n }\n ")+"\n .spinner{\n position: relative !important;\n }\n\n .close-button > button {\n background-color: transparent;\n width: 48px;\n height: 48px;\n display: block;\n padding: 0;\n border: none;\n cursor: pointer;\n position: absolute;\n z-index: 50;\n right: 0;\n margin-right: 2px;\n margin-top: 2px;\n }\n\n .close-button > button > svg {\n width: 48px;\n height: 48px;\n }\n\n #modal-status {\n color: white;\n position: absolute;\n top: 67%;\n left: calc( 50% - 10px );\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n \n "+("true"===f&&"\n .close-button > button {\n background-color: transparent;\n width: 44px;\n height: 44px;\n }\n\n .close-button > button > svg {\n margin-top: -20px;\n margin-left: -20px;\n width: 24px;\n height: 24px;\n }\n\n @media screen and (max-width: 639px) {\n .close-button > button > svg {\n margin-top: auto;\n margin-left: auto;\n }\n }\n\n #modal-status {\n color: #545D68;\n position: absolute;\n top: 52%;\n margin-left: -60px;\n display: none;\n padding: 10px;\n }\n ")+"\n\n @media screen and (max-width: 639px), (max-height: 539px){\n .modal{\n overflow-y: hidden;\n }\n .modal-content {\n height: calc(100% - 84px);\n \n }\n }\n \n ",l=function(){u({linkName:"Pre-render Close"}),c.trigger("modal-hide")};return c.on("modal-show",(function(){s.renderedModal||window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var n;null==(n=e)||n.focus()}))}))})),Nt("html",{lang:"en"},Nt("head",null,Nt("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),Nt("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),Nt("style",{nonce:o},d),Nt("body",{onRender:function(n){e=n.querySelector("#prerender-close-btn"),window.requestAnimationFrame((function(){var n;null==(n=e)||n.focus()})),E.delay(15e3).then((function(){return function(n){E.delay(15e3).then((function(){var e=n.querySelector("#modal-status");e&&!s.renderedModal&&(e.style.display="block",e.textContent="Error loading Modal",a&&a({message:e.textContent}))}))}(n)}))},onKeyUp:function(n){s.renderedModal||!s.open||"Escape"!==n.key&&"Esc"!==n.key&&27!==n.charCode||l()}},Nt("div",{class:"modal","aria-errormessage":"modal-status"},Nt("div",{class:"overlay",onClick:l,"aria-keyshortcuts":"escape"}),Nt("div",{class:"top-overlay"}),Nt("div",{class:"modal-content"},Nt("div",{class:"close-button"},Nt("button",{id:"prerender-close-btn",onClick:l,type:"button","aria-label":"Close",tabindex:"0"},"true"===f?Nt("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.203 4.793a1 1 0 0 1 0 1.414L9.91 12.5l6.293 6.293a1 1 0 0 1-1.414 1.414l-6.993-6.993a1.01 1.01 0 0 1 0-1.428l6.993-6.993a1 1 0 0 1 1.414 0Z",fill:"#545D68"})):Nt("svg",{"aria-hidden":"true",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nt("path",{d:"M12 0L0 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),Nt("path",{d:"M0 0L12 12",transform:"translate(12 12)",stroke:"white","stroke-width":"2","stroke-linecap":"round"})))),Nt("span",{id:"modal-status","aria-label":"modal-status","aria-live":"polite"},"Loading Modal"),Nt(Ko.Spinner,{nonce:o}))))).render(It({doc:t}))},Yo=(jo="__paypal_credit_modal__",Uo=function(){return function(n){Qr();var e=Io(n),t=function(n){return e.init(n)};t.driver=function(n,t){return e.driver(n,t)},t.isChild=function(){return e.isChild()},t.canRenderTo=function(n){return e.canRenderTo(n)},t.instances=e.instances;var r=e.registerChild();return r&&(window.xprops=t.xprops=r.getProps()),t}({tag:Ke.MODAL,url:er("MODAL"),domain:/\.paypal\.com(:\d+)?$/,containerTemplate:zo,prerenderTemplate:qo,dimensions:{width:"460px",height:"900px"},attributes:{iframe:{title:"PayPal Modal",scrolling:"no"}},props:{account:{type:"string",queryParam:!1,required:!0,value:Go.account},merchantId:{type:"string",queryParam:"merchant_id",required:!1,value:Go.merchantId},integrationIdentifier:{type:"string",queryParam:!0,value:function(n){return n.props.refIndex?void 0:"messagesModal"},required:!1},customerId:{type:"string",queryParam:"customer_id",required:!1,value:Go.customerId},currency:{type:"string",queryParam:!0,required:!1,value:Go.currency},amount:{type:"number",queryParam:!0,required:!1,value:Go.amount},buyerCountry:{type:"string",queryParam:"buyer_country",required:!1,value:Go.buyerCountry},language:{type:"string",queryParam:!0,required:!1,value:Go.language},offer:{type:"string",queryParam:"credit_type",required:!1,decorate:function(n){return kt(n.value)}},refId:{type:"string",queryParam:!1,required:!1},refIndex:{type:"string",queryParam:!1,required:!1},ignoreCache:{type:"boolean",queryParam:"ignore_cache",required:!1,value:Go.ignoreCache},channel:{type:"string",queryParam:"channel",required:!1,default:function(){return"UPSTREAM"},value:Go.channel},ecToken:{type:"string",queryParam:"ec_token",required:!1,value:Go.ecToken},buttonSessionId:{type:"string",queryParam:"button_session_id",required:!1,value:Go.buttonSessionId},pageType:{type:"string",queryParam:"page_type",required:!1,value:Go.pageType},contextualComponents:{type:"string",queryParam:"contextual_components",required:!1,value:Go.contextualComponents},onClick:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onClick,r=e.onApply;return function(n){var o=n.linkName,i=n.src;fr.track({index:e.index,refIndex:e.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:o,page_view_link_source:null!=i?i:o}),"function"==typeof t&&t({linkName:o}),"function"==typeof r&&lt()(o,"Apply Now")&&r()}}},onCalculate:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onCalculate;return function(n){var r=n.value;fr.track({index:e.index,refIndex:e.refIndex,et:"CLICK",event_type:"modal_rendered",page_view_link_name:"Calculator",page_view_link_source:"Calculator",calculator_input:r}),"function"==typeof t&&t({value:r})}}},onError:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onError;return function(n){var r=n.message;fr.track({index:e.index,refIndex:e.refIndex,et:"ERROR",event_type:"error",message:r}),"function"==typeof t&&t({message:r})}}},onShow:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=e.onShow;return function(){var n=e.src;fr.track({index:e.index,refIndex:e.refIndex,et:"CLIENT_IMPRESSION",event_type:"modal_viewed",src:void 0===n?"show":n}),"function"==typeof t&&t()}}},onClose:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=n.event,r=e.onClose;return function(n){var o=(void 0===n?{}:n).linkName;if(void 0!==o){var i=e.index,a=e.refIndex;t.trigger("modal-hide"),fr.track({index:i,refIndex:a,et:"CLICK",event_type:"modal_close",page_view_link_name:o}),"function"==typeof r&&r({linkName:o})}}}},onReady:{type:"function",queryParam:!1,value:function(n){var e=n.props,t=n.state,o=n.event,i=e.onReady,a=e.buttonSessionId;return function(n){var u=n.products,c=n.meta,s=n.ts,f=e.index,d=e.offer,l=e.merchantId,p=e.account,h=e.refIndex,v=e.messageRequestId,m=t.renderStart,y=t.show,w=t.hide,g=c.trackingDetails,E=c.ppDebugId,_=l&&p.slice(10);Ht("Modal Correlation ID: "+E),fr.addMetaBuilder((function(n){var e;delete n[f];var t,o,i,u,c=n.global,d=void 0===c?{}:c;return delete n.global,(e={global:r({},d,{ts:void 0!==s?s:null!=(t=tt().getState((function(n){return null==n?void 0:n.ts})))?t:(u=decodeURIComponent(null!=(o=null==(i=document.cookie.split("; ").find((function(n){return n.startsWith("ts_c=")})))?void 0:i.slice(5))?o:""),0===Object.keys(u).length?null:Object.fromEntries(new URLSearchParams(u).entries())),deviceID:ot(),sessionID:rt()})})[f]={type:"modal",messageRequestId:v,buttonSessionId:a,account:l||p,partnerClientId:_,trackingDetails:g},e}));var S=ur("firstModalRenderDelay");fr.info("modal_render",{index:f,refIndex:h,duration:Lt()-m}),fr.track({index:f,refIndex:h,et:"CLIENT_IMPRESSION",event_type:"modal_rendered",modal:u.join("_").toLowerCase()+":"+(d?d.toLowerCase():u[0]),bn_code:{}[dr.SDK_SETTINGS.PARTNER_ATTRIBUTION_ID],first_modal_render_delay:Math.round(S).toString(),render_duration:Math.round(Lt()-m).toString()}),"function"!=typeof i||t.products&&JSON.stringify(u)===JSON.stringify(t.products)||i({products:u,show:y,hide:w}),t.products=Array.isArray(u)&&u.map(kt),o.trigger("ready")}}},index:{type:"string",queryParam:!1,value:function(n){var e,t=n.state;return t.index||(t.index=(e=$t().index,nr({index:e+1}),e).toString()),t.index}},payerId:{type:"string",queryParam:"payer_id",decorate:function(n){var e=n.props;return Zt()(e.account,"client-id:")?null:e.account},default:function(){return""},required:!1},clientId:{type:"string",queryParam:"client_id",decorate:function(n){var e=n.props;return Zt()(e.account,"client-id:")?e.account.slice(10):null},default:function(){return""},required:!1},sdkMeta:{type:"string",queryParam:!0,sendToChild:!1,required:!1,value:Xe},env:{type:"string",queryParam:!0,value:Ye},version:{type:"string",queryParam:!0,value:nt},deviceID:{type:"string",queryParam:!0,value:ot},sessionID:{type:"string",queryParam:!0,value:rt},scriptUID:{type:"string",queryParam:!0,value:pe},messageRequestId:{type:"string",queryParam:"message_request_id",value:dn,decorate:function(n){var e=n.props;return Ht("Modal Message Request ID: "+e.messageRequestId),e.messageRequestId}},debug:{type:"boolean",queryParam:"pp_debug",required:!1,value:function(){return!!/(\?|&)pp_debug=true(&|$)/.test(window.location.search)||void 0}},stageTag:{type:"string",queryParam:!0,required:!1,value:it},devTouchpoint:{type:"boolean",queryParam:!0,required:!1,value:at},integrationType:{type:"string",queryParam:!0,required:!1,value:function(){return"STANDALONE_MODAL"}},cspNonce:{type:"string",required:!1,default:Ve,value:Go.cspNonce},disableSetCookie:{type:"boolean",queryParam:!0,required:!1,value:qe},features:{type:"string",queryParam:"features",required:!1,value:function(n){return function(n){var e=[];e.push("native-modal");var t=n||"";return e.length>0&&(t+=t?","+e.join(","):e.join(",")),void 0===n&&""===t?void 0:t}(Go.features({props:n.props}))}}}})},function(){var n;return $t()[jo]||nr(((n={})[jo]=Uo(),n)),$t()[jo]}),Vo=(Bo=["account","merchantId","buyerCountry"],Wo=new Map,function(n,e){void 0===e&&(e=!1);var t=JSON.stringify(Bo.map((function(e){return n[e]})));return Wo.has(t)&&!e||Wo.set(t,function(n){var e=n.account,t=n.merchantId,r=n.customerId,o=n.currency,i=n.amount,a=n.buyerCountry,u=n.language,c=n.ignoreCache,s=n.offer,f=n.onReady,d=n.onCalculate,l=n.onError,p=n.onApply,h=n.onShow,v=n.onClose,m=n.channel,y=n.ecToken,w=n.contextualComponents,g=n.cspNonce,_=n.integrationIdentifier,S=n.features,b=n.buttonSessionId;cr("firstModalRenderDelay");var N,T=Yo()({account:e,merchantId:t,customerId:r,currency:o,amount:i,buyerCountry:a,language:u,ignoreCache:c,offer:s,onReady:f,onCalculate:d,onError:l,onApply:p,onShow:h,onClose:v,channel:m,ecToken:y,contextualComponents:w,cspNonce:g,integrationIdentifier:_,features:S,buttonSessionId:b}),A=function(n,e,t){void 0===n&&(n="body"),void 0===t&&(t={intent:"render"});var r=function(){try{return window.top.document.body&&window.top}catch(n){return}}()===window||null!=S&&S.includes("new-checkout-design")?"iframe":"popup";if(N&&"popup"!==r)return N.then((function(){return e&&T.updateProps(e)}));N&&"popup"===r&&Object.assign(T,T.clone());var o=new E((function(n){return T.event.once("ready",n)}));T.state.renderStart=Lt();var i="show"===t.intent?E.resolve():rr.then((function(){return E.delay(0)}));return N=i.then((function(){return E.all([e&&T.updateProps(e),T.render(n,r),o])})).then((function(){return tr.trigger("modal-render")}))},R=function(n){var e;void 0===n&&(n={});var t,r,o,i,a=Yt(n)?Vt(n):n;Yt(n)&&(a.src=null!=(t=null!=(r=null!=(o=n.id)?o:[].concat(n.classList).filter(Boolean).reduce((function(n,e){return(null!=n?n:"")+"."+e}),null))?r:null==(i=n.constructor)?void 0:i.name)?t:"element"),N=A("body",a,{intent:"show"});var u=kt(n.offer),c="DE"===(null==(e=n)?void 0:e.offerCountry)?["PAY_LATER_LONG_TERM","PAY_LATER_PAY_IN_1","PAY_LATER_SHORT_TERM"]:T.state.products;return void 0!==u&&"NONE"!==u&&Array.isArray(T.state.products)&&!ct()(c,(function(n){return n===u}))?(fr.warn("invalid_option_value",{location:"offer",description:'Expected one of ["'+T.state.products.join('", "')+'"] but received "'+n.offer+'".'}),E.resolve()):(T.state.open=!0,T.event.trigger("modal-show"),N)},x=function(){return N=A("body"),T.event.trigger("modal-hide"),N};return T.state.show=R,T.state.hide=x,{render:A,show:R,hide:x,updateProps:function(n){T.updateProps(n)}}}(n)),Wo.get(t)}),Jo=function(n){return Vo(Kt($t().config,n))};cr("scriptLoadDelay"),function(){Yo(),function(){var n=Qe();if(n&&!n[Xt]){Ht("Script:",{debugObj:n});var e=Vt(n);nr({config:r({},$t().config,{account:void 0,merchantId:void 0,currency:void 0,pageType:void 0},e)}),n[Xt]=!0}}();var n,e=$e();window[e]=null!=(n=window[e])?n:{},window[e].MessagesModal=Jo,et()||or.then((function(){if($t().config.account){var n=Qt("[data-pp-messagesmodal]");if(n.length>0){var e=Kt($t().config,Vt(n[0])),t=Jo(e);n.forEach((function(n){n.setAttribute("tabindex",0),n.addEventListener("click",(function(){return t.show(n)}))}))}}}))}()}]);
3
+ //# sourceMappingURL=modal@1.68.2.js.map