File "index.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-axo-block/assets/js/index.js
File size: 163.47 KB
MIME-type: text/plain
Charset: utf-8
/*! For license information please see index.js.LICENSE.txt */
(()=>{"use strict";var t={9457:t=>{var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?c((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function o(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function c(t,r,u){(u=u||{}).arrayMerge=u.arrayMerge||o,u.isMergeableObject=u.isMergeableObject||e,u.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(t)?s?u.arrayMerge(t,r,u):function(t,e,r){var o={};return r.isMergeableObject(t)&&i(t).forEach((function(e){o[e]=n(t[e],r)})),i(e).forEach((function(i){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(a(t,i)&&r.isMergeableObject(e[i])?o[i]=function(t,e){if(!e.customMerge)return c;var r=e.customMerge(t);return"function"==typeof r?r:c}(i,r)(t[i],e[i],r):o[i]=n(e[i],r))})),o}(t,r,u):n(r,u)}c.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return c(t,r,e)}),{})};var u=c;t.exports=u},9306:(t,e,r)=>{var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},5548:(t,e,r)=>{var n=r(3517),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},3506:(t,e,r)=>{var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},6469:(t,e,r)=>{var n=r(8227),o=r(2360),i=r(4913).f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},7829:(t,e,r)=>{var n=r(8183).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},679:(t,e,r)=>{var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},8551:(t,e,r)=>{var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},235:(t,e,r)=>{var n=r(9213).forEach,o=r(4598)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},7916:(t,e,r)=>{var n=r(6080),o=r(9565),i=r(8981),a=r(6319),c=r(4209),u=r(3517),s=r(6198),l=r(2278),f=r(81),p=r(851),h=Array;t.exports=function(t){var e=i(t),r=u(this),d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v;y&&(v=n(v,d>2?arguments[2]:void 0));var m,g,b,w,x,E,S=p(e),O=0;if(!S||this===h&&c(S))for(m=s(e),g=r?new this(m):h(m);m>O;O++)E=y?v(e[O],O):e[O],l(g,O,E);else for(g=r?new this:[],x=(w=f(e,S)).next;!(b=o(x,w)).done;O++)E=y?a(w,v,[b.value,O],!0):b.value,l(g,O,E);return g.length=O,g}},9617:(t,e,r)=>{var n=r(5397),o=r(5610),i=r(6198),a=function(t){return function(e,r,a){var c=n(e),u=i(c);if(0===u)return!t&&-1;var s,l=o(a,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:(t,e,r)=>{var n=r(6080),o=r(9504),i=r(7055),a=r(8981),c=r(6198),u=r(1469),s=o([].push),l=function(t){var e=1===t,r=2===t,o=3===t,l=4===t,f=6===t,p=7===t,h=5===t||f;return function(d,v,y,m){for(var g,b,w=a(d),x=i(w),E=c(x),S=n(v,y),O=0,L=m||u,_=e?L(d,E):r||p?L(d,0):void 0;E>O;O++)if((h||O in x)&&(b=S(g=x[O],O,w),t))if(e)_[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:s(_,g)}else switch(t){case 4:return!1;case 7:s(_,g)}return f?-1:o||l?l:_}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},597:(t,e,r)=>{var n=r(9039),o=r(8227),i=r(9519),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4598:(t,e,r)=>{var n=r(9039);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},4527:(t,e,r)=>{var n=r(3724),o=r(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:(t,e,r)=>{var n=r(9504);t.exports=n([].slice)},7433:(t,e,r)=>{var n=r(4376),o=r(3517),i=r(34),a=r(8227)("species"),c=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===c||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},1469:(t,e,r)=>{var n=r(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6319:(t,e,r)=>{var n=r(8551),o=r(9539);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},4428:(t,e,r)=>{var n=r(8227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},2195:(t,e,r)=>{var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:(t,e,r)=>{var n=r(2140),o=r(4901),i=r(2195),a=r(8227)("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7740:(t,e,r)=>{var n=r(9297),o=r(5031),i=r(7347),a=r(4913);t.exports=function(t,e,r){for(var c=o(e),u=a.f,s=i.f,l=0;l<c.length;l++){var f=c[l];n(t,f)||r&&n(r,f)||u(t,f,s(e,f))}}},2211:(t,e,r)=>{var n=r(9039);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:t=>{t.exports=function(t,e){return{value:t,done:e}}},6699:(t,e,r)=>{var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2278:(t,e,r)=>{var n=r(3724),o=r(4913),i=r(6980);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},3640:(t,e,r)=>{var n=r(8551),o=r(4270),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},2106:(t,e,r)=>{var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},6840:(t,e,r)=>{var n=r(4901),o=r(4913),i=r(283),a=r(9433);t.exports=function(t,e,r,c){c||(c={});var u=c.enumerable,s=void 0!==c.name?c.name:e;if(n(r)&&i(r,s,c),c.global)u?t[e]=r:a(e,r);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},6279:(t,e,r)=>{var n=r(6840);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},9433:(t,e,r)=>{var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724:(t,e,r)=>{var n=r(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,e,r)=>{var n=r(4576),o=r(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6837:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},7400:t=>{t.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}},9296:(t,e,r)=>{var n=r(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:(t,e,r)=>{var n=r(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9544:(t,e,r)=>{var n=r(2839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},8574:(t,e,r)=>{var n=r(4215);t.exports="NODE"===n},7860:(t,e,r)=>{var n=r(2839);t.exports=/web0s(?!.*chrome)/i.test(n)},2839:(t,e,r)=>{var n=r(4576).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},9519:(t,e,r)=>{var n,o,i=r(4576),a=r(2839),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},4215:(t,e,r)=>{var n=r(4576),o=r(2839),i=r(2195),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6193:(t,e,r)=>{var n=r(9504),o=Error,i=n("".replace),a=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,c,"");return t}},747:(t,e,r)=>{var n=r(6699),o=r(6193),i=r(4659),a=Error.captureStackTrace;t.exports=function(t,e,r,c){i&&(a?a(t,e):n(t,"stack",o(r,c)))}},4659:(t,e,r)=>{var n=r(9039),o=r(6980);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},6518:(t,e,r)=>{var n=r(4576),o=r(7347).f,i=r(6699),a=r(6840),c=r(9433),u=r(7740),s=r(2796);t.exports=function(t,e){var r,l,f,p,h,d=t.target,v=t.global,y=t.stat;if(r=v?n:y?n[d]||c(d,{}):n[d]&&n[d].prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!s(v?l:d+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,t)}}},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:(t,e,r)=>{r(7495);var n=r(9565),o=r(6840),i=r(7323),a=r(9039),c=r(8227),u=r(6699),s=c("species"),l=RegExp.prototype;t.exports=function(t,e,r,f){var p=c(t),h=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),d=h&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!d||r){var v=/./[p],y=e(p,""[t],(function(t,e,r,o,a){var c=e.exec;return c===i||c===l.exec?h&&!a?{done:!0,value:n(v,e,r,o)}:{done:!0,value:n(t,r,e,o)}:{done:!1}}));o(String.prototype,t,y[0]),o(l,p,y[1])}f&&u(l[p],"sham",!0)}},8745:(t,e,r)=>{var n=r(616),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6080:(t,e,r)=>{var n=r(7476),o=r(9306),i=r(616),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},616:(t,e,r)=>{var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,e,r)=>{var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(t,e,r)=>{var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},6706:(t,e,r)=>{var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},7476:(t,e,r)=>{var n=r(2195),o=r(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},9504:(t,e,r)=>{var n=r(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},7751:(t,e,r)=>{var n=r(4576),o=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},1767:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:(t,e,r)=>{var n=r(6955),o=r(5966),i=r(4117),a=r(6269),c=r(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||a[n(t)]}},81:(t,e,r)=>{var n=r(9565),o=r(9306),i=r(8551),a=r(6823),c=r(851),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?c(t):e;if(o(r))return i(n(r,t));throw new u(a(t)+" is not iterable")}},6933:(t,e,r)=>{var n=r(9504),o=r(4376),i=r(4901),a=r(2195),c=r(655),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n<e;n++){var s=t[n];"string"==typeof s?u(r,s):"number"!=typeof s&&"Number"!==a(s)&&"String"!==a(s)||u(r,c(s))}var l=r.length,f=!0;return function(t,e){if(f)return f=!1,e;if(o(this))return e;for(var n=0;n<l;n++)if(r[n]===t)return e}}}},5966:(t,e,r)=>{var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},2478:(t,e,r)=>{var n=r(9504),o=r(8981),i=Math.floor,a=n("".charAt),c=n("".replace),u=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var h=r+t.length,d=n.length,v=l;return void 0!==f&&(f=o(f),v=s),c(p,v,(function(o,c){var s;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,h);case"<":s=f[u(c,1,-1)];break;default:var l=+c;if(0===l)return o;if(l>d){var p=i(l/10);return 0===p?o:p<=d?void 0===n[p-1]?a(c,1):n[p-1]+a(c,1):o}s=n[l-1]}return void 0===s?"":s}))}},4576:function(t,e,r){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,e,r)=>{var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:t=>{t.exports={}},3138:t=>{t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:(t,e,r)=>{var n=r(7751);t.exports=n("document","documentElement")},5917:(t,e,r)=>{var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:(t,e,r)=>{var n=r(9504),o=r(9039),i=r(2195),a=Object,c=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):a(t)}:a},3167:(t,e,r)=>{var n=r(4901),o=r(34),i=r(2967);t.exports=function(t,e,r){var a,c;return i&&n(a=e.constructor)&&a!==r&&o(c=a.prototype)&&c!==r.prototype&&i(t,c),t}},3706:(t,e,r)=>{var n=r(9504),o=r(4901),i=r(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},7584:(t,e,r)=>{var n=r(34),o=r(6699);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},1181:(t,e,r)=>{var n,o,i,a=r(8622),c=r(4576),u=r(34),s=r(6699),l=r(9297),f=r(7629),p=r(6119),h=r(421),d="Object already initialized",v=c.TypeError,y=c.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,e){if(m.has(t))throw new v(d);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var g=p("state");h[g]=!0,n=function(t,e){if(l(t,g))throw new v(d);return e.facade=t,s(t,g,e),e},o=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},4209:(t,e,r)=>{var n=r(8227),o=r(6269),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4376:(t,e,r)=>{var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:(t,e,r)=>{var n=r(9504),o=r(9039),i=r(4901),a=r(6955),c=r(7751),u=r(3706),s=function(){},l=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),h=!f.test(s),d=function(t){if(!i(t))return!1;try{return l(s,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},2796:(t,e,r)=>{var n=r(9039),o=r(4901),i=/#|\.prototype\./,a=function(t,e){var r=u[c(t)];return r===l||r!==s&&(o(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4117:t=>{t.exports=function(t){return null==t}},34:(t,e,r)=>{var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:(t,e,r)=>{var n=r(34);t.exports=function(t){return n(t)||null===t}},6395:t=>{t.exports=!1},757:(t,e,r)=>{var n=r(7751),o=r(4901),i=r(1625),a=r(7040),c=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,c(t))}},2652:(t,e,r)=>{var n=r(6080),o=r(9565),i=r(8551),a=r(6823),c=r(4209),u=r(6198),s=r(1625),l=r(81),f=r(851),p=r(9539),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var y,m,g,b,w,x,E,S=r&&r.that,O=!(!r||!r.AS_ENTRIES),L=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),A=n(e,S),j=function(t){return y&&p(y,"normal",t),new d(!0,t)},P=function(t){return O?(i(t),k?A(t[0],t[1],j):A(t[0],t[1])):k?A(t,j):A(t)};if(L)y=t.iterator;else if(_)y=t;else{if(!(m=f(t)))throw new h(a(t)+" is not iterable");if(c(m)){for(g=0,b=u(t);b>g;g++)if((w=P(t[g]))&&s(v,w))return w;return new d(!1)}y=l(t,m)}for(x=L?t.next:y.next;!(E=o(x,y)).done;){try{w=P(E.value)}catch(t){p(y,"throw",t)}if("object"==typeof w&&w&&s(v,w))return w}return new d(!1)}},9539:(t,e,r)=>{var n=r(9565),o=r(8551),i=r(5966);t.exports=function(t,e,r){var a,c;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){c=!0,a=t}if("throw"===e)throw r;if(c)throw a;return o(a),r}},3994:(t,e,r)=>{var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),a=r(687),c=r(6269),u=function(){return this};t.exports=function(t,e,r,s){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!s,r)}),a(t,l,!1,!0),c[l]=u,t}},9462:(t,e,r)=>{var n=r(9565),o=r(2360),i=r(6699),a=r(6279),c=r(8227),u=r(1181),s=r(5966),l=r(7657).IteratorPrototype,f=r(2529),p=r(9539),h=c("toStringTag"),d="IteratorHelper",v="WrapForValidIterator",y=u.set,m=function(t){var e=u.getterFor(t?v:d);return a(o(l),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var n=r.done?void 0:r.nextHandler();return f(n,r.done)}catch(t){throw r.done=!0,t}},return:function(){var r=e(this),o=r.iterator;if(r.done=!0,t){var i=s(o,"return");return i?n(i,o):f(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(t){return p(o,"throw",t)}return o&&p(o,"normal"),f(void 0,!0)}})},g=m(!0),b=m(!1);i(b,h,"Iterator Helper"),t.exports=function(t,e){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=e?v:d,n.nextHandler=t,n.counter=0,n.done=!1,y(this,n)};return r.prototype=e?g:b,r}},1088:(t,e,r)=>{var n=r(6518),o=r(9565),i=r(6395),a=r(350),c=r(4901),u=r(3994),s=r(2787),l=r(2967),f=r(687),p=r(6699),h=r(6840),d=r(8227),v=r(6269),y=r(7657),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",S="values",O="entries",L=function(){return this};t.exports=function(t,e,r,a,d,y,_){u(r,e,a);var k,A,j,P=function(t){if(t===d&&R)return R;if(!w&&t&&t in T)return T[t];switch(t){case E:case S:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",N=!1,T=t.prototype,C=T[x]||T["@@iterator"]||d&&T[d],R=!w&&C||P(d),F="Array"===e&&T.entries||C;if(F&&(k=s(F.call(new t)))!==Object.prototype&&k.next&&(i||s(k)===b||(l?l(k,b):c(k[x])||h(k,x,L)),f(k,I,!0,!0),i&&(v[I]=L)),m&&d===S&&C&&C.name!==S&&(!i&&g?p(T,"name",S):(N=!0,R=function(){return o(C,this)})),d)if(A={values:P(S),keys:y?R:P(E),entries:P(O)},_)for(j in A)(w||N||!(j in T))&&h(T,j,A[j]);else n({target:e,proto:!0,forced:w||N},A);return i&&!_||T[x]===R||h(T,x,R,{name:d}),v[e]=R,A}},713:(t,e,r)=>{var n=r(9565),o=r(9306),i=r(8551),a=r(1767),c=r(9462),u=r(6319),s=c((function(){var t=this.iterator,e=i(n(this.next,t));if(!(this.done=!!e.done))return u(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return i(this),o(t),new s(a(this),{mapper:t})}},7657:(t,e,r)=>{var n,o,i,a=r(9039),c=r(4901),u=r(34),s=r(2360),l=r(2787),f=r(6840),p=r(8227),h=r(6395),d=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!u(n)||a((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=s(n)),c(n[d])||f(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},6269:t=>{t.exports={}},6198:(t,e,r)=>{var n=r(8014);t.exports=function(t){return n(t.length)}},283:(t,e,r)=>{var n=r(9504),o=r(9039),i=r(4901),a=r(9297),c=r(3724),u=r(350).CONFIGURABLE,s=r(3706),l=r(1181),f=l.enforce,p=l.get,h=String,d=Object.defineProperty,v=n("".slice),y=n("".replace),m=n([].join),g=c&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||s(this)}),"toString")},741:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},1955:(t,e,r)=>{var n,o,i,a,c,u=r(4576),s=r(3389),l=r(6080),f=r(9225).set,p=r(8265),h=r(9544),d=r(4265),v=r(7860),y=r(8574),m=u.MutationObserver||u.WebKitMutationObserver,g=u.document,b=u.process,w=u.Promise,x=s("queueMicrotask");if(!x){var E=new p,S=function(){var t,e;for(y&&(t=b.domain)&&t.exit();e=E.get();)try{e()}catch(t){throw E.head&&n(),t}t&&t.enter()};h||y||v||!m||!g?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,c=l(a.then,a),n=function(){c(S)}):y?n=function(){b.nextTick(S)}:(f=l(f,u),n=function(){f(S)}):(o=!0,i=g.createTextNode(""),new m(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(t){E.head||n(),E.add(t)}}t.exports=x},6043:(t,e,r)=>{var n=r(9306),o=TypeError,i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},2603:(t,e,r)=>{var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},4213:(t,e,r)=>{var n=r(3724),o=r(9504),i=r(9565),a=r(9039),c=r(1072),u=r(3717),s=r(8773),l=r(8981),f=r(7055),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!==p({},t)[r]||c(p({},e)).join("")!==o}))?function(t,e){for(var r=l(t),o=arguments.length,a=1,p=u.f,h=s.f;o>a;)for(var v,y=f(arguments[a++]),m=p?d(c(y),p(y)):c(y),g=m.length,b=0;g>b;)v=m[b++],n&&!i(h,y,v)||(r[v]=y[v]);return r}:p},2360:(t,e,r)=>{var n,o=r(8551),i=r(6801),a=r(8727),c=r(421),u=r(397),s=r(4055),l=r(6119),f="prototype",p="script",h=l("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;m="undefined"!=typeof document?document.domain&&n?y(n):(e=s("iframe"),r="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var o=a.length;o--;)delete m[f][a[o]];return m()};c[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[f]=o(t),r=new d,d[f]=null,r[h]=t):r=m(),void 0===e?r:i.f(r,e)}},6801:(t,e,r)=>{var n=r(3724),o=r(8686),i=r(4913),a=r(8551),c=r(5397),u=r(1072);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=c(e),o=u(e),s=o.length,l=0;s>l;)i.f(t,r=o[l++],n[r]);return t}},4913:(t,e,r)=>{var n=r(3724),o=r(5917),i=r(8686),a=r(8551),c=r(6969),u=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(a(t),e=c(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(a(t),e=c(e),a(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:(t,e,r)=>{var n=r(3724),o=r(9565),i=r(8773),a=r(6980),c=r(5397),u=r(6969),s=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=c(t),e=u(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},298:(t,e,r)=>{var n=r(2195),o=r(5397),i=r(8480).f,a=r(7680),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(c)}}(t):i(o(t))}},8480:(t,e,r)=>{var n=r(1828),o=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3717:(t,e)=>{e.f=Object.getOwnPropertySymbols},2787:(t,e,r)=>{var n=r(9297),o=r(4901),i=r(8981),a=r(6119),c=r(2211),u=a("IE_PROTO"),s=Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof s?l:null}},1625:(t,e,r)=>{var n=r(9504);t.exports=n({}.isPrototypeOf)},1828:(t,e,r)=>{var n=r(9504),o=r(9297),i=r(5397),a=r(9617).indexOf,c=r(421),u=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,l=[];for(r in n)!o(c,r)&&o(n,r)&&u(l,r);for(;e.length>s;)o(n,r=e[s++])&&(~a(l,r)||u(l,r));return l}},1072:(t,e,r)=>{var n=r(1828),o=r(8727);t.exports=Object.keys||function(t){return n(t,o)}},8773:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2967:(t,e,r)=>{var n=r(6706),o=r(34),i=r(7750),a=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),a(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},2357:(t,e,r)=>{var n=r(3724),o=r(9039),i=r(9504),a=r(2787),c=r(1072),u=r(5397),s=i(r(8773).f),l=i([].push),f=n&&o((function(){var t=Object.create(null);return t[2]=2,!s(t,2)})),p=function(t){return function(e){for(var r,o=u(e),i=c(o),p=f&&null===a(o),h=i.length,d=0,v=[];h>d;)r=i[d++],n&&!(p?r in o:s(o,r))||l(v,t?[r,o[r]]:o[r]);return v}};t.exports={entries:p(!0),values:p(!1)}},3179:(t,e,r)=>{var n=r(2140),o=r(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270:(t,e,r)=>{var n=r(9565),o=r(4901),i=r(34),a=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw new a("Can't convert object to primitive value")}},5031:(t,e,r)=>{var n=r(7751),o=r(9504),i=r(8480),a=r(3717),c=r(8551),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},9167:(t,e,r)=>{var n=r(4576);t.exports=n},1103:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:(t,e,r)=>{var n=r(4576),o=r(550),i=r(4901),a=r(2796),c=r(3706),u=r(8227),s=r(4215),l=r(6395),f=r(9519),p=o&&o.prototype,h=u("species"),d=!1,v=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var t=c(o),e=t!==String(o);if(!e&&66===f)return!0;if(l&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(d=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==s&&"DENO"!==s||v)}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:d}},550:(t,e,r)=>{var n=r(4576);t.exports=n.Promise},3438:(t,e,r)=>{var n=r(8551),o=r(34),i=r(6043);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},537:(t,e,r)=>{var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},1056:(t,e,r)=>{var n=r(4913).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},8265:t=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},6682:(t,e,r)=>{var n=r(9565),o=r(8551),i=r(4901),a=r(2195),c=r(7323),u=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var s=n(r,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return n(c,t,e);throw new u("RegExp#exec called on incompatible receiver")}},7323:(t,e,r)=>{var n,o,i=r(9565),a=r(9504),c=r(655),u=r(7979),s=r(8429),l=r(5745),f=r(2360),p=r(1181).get,h=r(3635),d=r(8814),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,m=y,g=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),E=(o=/b*/g,i(y,n=/a/,"a"),i(y,o,"a"),0!==n.lastIndex||0!==o.lastIndex),S=s.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(E||O||S||h||d)&&(m=function(t){var e,r,n,o,a,s,l,h=this,d=p(h),L=c(t),_=d.raw;if(_)return _.lastIndex=h.lastIndex,e=i(m,_,L),h.lastIndex=_.lastIndex,e;var k=d.groups,A=S&&h.sticky,j=i(u,h),P=h.source,I=0,N=L;if(A&&(j=w(j,"y",""),-1===b(j,"g")&&(j+="g"),N=x(L,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==g(L,h.lastIndex-1))&&(P="(?: "+P+")",N=" "+N,I++),r=new RegExp("^(?:"+P+")",j)),O&&(r=new RegExp("^"+P+"$(?!\\s)",j)),E&&(n=h.lastIndex),o=i(y,A?r:h,N),A?o?(o.input=x(o.input,I),o[0]=x(o[0],I),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:E&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),O&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&k)for(o.groups=s=f(null),a=0;a<k.length;a++)s[(l=k[a])[0]]=o[l[1]];return o}),t.exports=m},7979:(t,e,r)=>{var n=r(8551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},1034:(t,e,r)=>{var n=r(9565),o=r(9297),i=r(1625),a=r(7979),c=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in c||o(t,"flags")||!i(c,t)?e:n(a,t)}},8429:(t,e,r)=>{var n=r(9039),o=r(4576).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),c=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:i}},3635:(t,e,r)=>{var n=r(9039),o=r(4576).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},8814:(t,e,r)=>{var n=r(9039),o=r(4576).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},7750:(t,e,r)=>{var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},3389:(t,e,r)=>{var n=r(4576),o=r(3724),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},7633:(t,e,r)=>{var n=r(7751),o=r(2106),i=r(8227),a=r(3724),c=i("species");t.exports=function(t){var e=n(t);a&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},687:(t,e,r)=>{var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},6119:(t,e,r)=>{var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:(t,e,r)=>{var n=r(6395),o=r(4576),i=r(9433),a="__core-js_shared__",c=t.exports=o[a]||i(a,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,e,r)=>{var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2293:(t,e,r)=>{var n=r(8551),o=r(5548),i=r(4117),a=r(8227)("species");t.exports=function(t,e){var r,c=n(t).constructor;return void 0===c||i(r=n(c)[a])?e:o(r)}},8183:(t,e,r)=>{var n=r(9504),o=r(1291),i=r(655),a=r(7750),c=n("".charAt),u=n("".charCodeAt),s=n("".slice),l=function(t){return function(e,r){var n,l,f=i(a(e)),p=o(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=u(f,p))<55296||n>56319||p+1===h||(l=u(f,p+1))<56320||l>57343?t?c(f,p):n:t?s(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3802:(t,e,r)=>{var n=r(9504),o=r(7750),i=r(655),a=r(7452),c=n("".replace),u=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,u,"")),2&t&&(r=c(r,s,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},4495:(t,e,r)=>{var n=r(9519),o=r(9039),i=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8242:(t,e,r)=>{var n=r(9565),o=r(7751),i=r(8227),a=r(6840);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&a(e,c,(function(t){return n(r,this)}),{arity:1})}},1296:(t,e,r)=>{var n=r(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9225:(t,e,r)=>{var n,o,i,a,c=r(4576),u=r(8745),s=r(6080),l=r(4901),f=r(9297),p=r(9039),h=r(397),d=r(7680),v=r(4055),y=r(2812),m=r(9544),g=r(8574),b=c.setImmediate,w=c.clearImmediate,x=c.process,E=c.Dispatch,S=c.Function,O=c.MessageChannel,L=c.String,_=0,k={},A="onreadystatechange";p((function(){n=c.location}));var j=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},P=function(t){return function(){j(t)}},I=function(t){j(t.data)},N=function(t){c.postMessage(L(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){y(arguments.length,1);var e=l(t)?t:S(t),r=d(arguments,1);return k[++_]=function(){u(e,void 0,r)},o(_),_},w=function(t){delete k[t]},g?o=function(t){x.nextTick(P(t))}:E&&E.now?o=function(t){E.now(P(t))}:O&&!m?(a=(i=new O).port2,i.port1.onmessage=I,o=s(a.postMessage,a)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!p(N)?(o=N,c.addEventListener("message",I,!1)):o=A in v("script")?function(t){h.appendChild(v("script"))[A]=function(){h.removeChild(this),j(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:w}},1240:(t,e,r)=>{var n=r(9504);t.exports=n(1..valueOf)},5610:(t,e,r)=>{var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5397:(t,e,r)=>{var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},1291:(t,e,r)=>{var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014:(t,e,r)=>{var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8981:(t,e,r)=>{var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:(t,e,r)=>{var n=r(9565),o=r(34),i=r(757),a=r(5966),c=r(4270),u=r(8227),s=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},6969:(t,e,r)=>{var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},2140:(t,e,r)=>{var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655:(t,e,r)=>{var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:(t,e,r)=>{var n=r(9504),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7040:(t,e,r)=>{var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,e,r)=>{var n=r(3724),o=r(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:t=>{var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:(t,e,r)=>{var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},511:(t,e,r)=>{var n=r(9167),o=r(9297),i=r(1951),a=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},1951:(t,e,r)=>{var n=r(8227);e.f=n},8227:(t,e,r)=>{var n=r(4576),o=r(5745),i=r(9297),a=r(3392),c=r(4495),u=r(7040),s=n.Symbol,l=o("wks"),f=u?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=c&&i(s,t)?s[t]:f("Symbol."+t)),l[t]}},7452:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},4601:(t,e,r)=>{var n=r(7751),o=r(9297),i=r(6699),a=r(1625),c=r(2967),u=r(7740),s=r(1056),l=r(3167),f=r(2603),p=r(7584),h=r(747),d=r(3724),v=r(6395);t.exports=function(t,e,r,y){var m="stackTraceLimit",g=y?2:1,b=t.split("."),w=b[b.length-1],x=n.apply(null,b);if(x){var E=x.prototype;if(!v&&o(E,"cause")&&delete E.cause,!r)return x;var S=n("Error"),O=e((function(t,e){var r=f(y?e:t,void 0),n=y?new x(t):new x;return void 0!==r&&i(n,"message",r),h(n,O,n.stack,2),this&&a(E,this)&&l(n,this,O),arguments.length>g&&p(n,arguments[g]),n}));if(O.prototype=E,"Error"!==w?c?c(O,S):u(O,S,{name:!0}):d&&m in x&&(s(O,x,m),s(O,x,"prepareStackTrace")),u(O,x),!v)try{E.name!==w&&i(E,"name",w),E.constructor=O}catch(t){}return O}}},8706:(t,e,r)=>{var n=r(6518),o=r(9039),i=r(4376),a=r(34),c=r(8981),u=r(6198),s=r(6837),l=r(2278),f=r(1469),p=r(597),h=r(8227),d=r(9519),v=h("isConcatSpreadable"),y=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!p("concat")},{concat:function(t){var e,r,n,o,i,a=c(this),p=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(m(i=-1===e?a:arguments[e]))for(o=u(i),s(h+o),r=0;r<o;r++,h++)r in i&&l(p,h,i[r]);else s(h+1),l(p,h++,i);return p.length=h,p}})},2008:(t,e,r)=>{var n=r(6518),o=r(9213).filter;n({target:"Array",proto:!0,forced:!r(597)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},3418:(t,e,r)=>{var n=r(6518),o=r(7916);n({target:"Array",stat:!0,forced:!r(4428)((function(t){Array.from(t)}))},{from:o})},3792:(t,e,r)=>{var n=r(5397),o=r(6469),i=r(6269),a=r(1181),c=r(4913).f,u=r(1088),s=r(2529),l=r(6395),f=r(3724),p="Array Iterator",h=a.set,d=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{c(v,"name",{value:"values"})}catch(t){}},2062:(t,e,r)=>{var n=r(6518),o=r(9213).map;n({target:"Array",proto:!0,forced:!r(597)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4114:(t,e,r)=>{var n=r(6518),o=r(8981),i=r(6198),a=r(4527),c=r(6837);n({target:"Array",proto:!0,arity:1,forced:r(9039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),r=i(e),n=arguments.length;c(r+n);for(var u=0;u<n;u++)e[r]=arguments[u],r++;return a(e,r),r}})},4490:(t,e,r)=>{var n=r(6518),o=r(9504),i=r(4376),a=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},4782:(t,e,r)=>{var n=r(6518),o=r(4376),i=r(3517),a=r(34),c=r(5610),u=r(6198),s=r(5397),l=r(2278),f=r(8227),p=r(597),h=r(7680),d=p("slice"),v=f("species"),y=Array,m=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,f,p=s(this),d=u(p),g=c(t,d),b=c(void 0===e?d:e,d);if(o(p)&&(r=p.constructor,(i(r)&&(r===y||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===y||void 0===r))return h(p,g,b);for(n=new(void 0===r?y:r)(m(b-g,0)),f=0;g<b;g++,f++)g in p&&l(n,f,p[g]);return n.length=f,n}})},739:(t,e,r)=>{var n=r(6518),o=r(9039),i=r(8981),a=r(2777);n({target:"Date",proto:!0,arity:1,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),r=a(e,"number");return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},9572:(t,e,r)=>{var n=r(9297),o=r(6840),i=r(3640),a=r(8227)("toPrimitive"),c=Date.prototype;n(c,a)||o(c,a,i)},6280:(t,e,r)=>{var n=r(6518),o=r(4576),i=r(8745),a=r(4601),c="WebAssembly",u=o[c],s=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=a(t,e,s),n({global:!0,constructor:!0,arity:1,forced:s},r)},f=function(t,e){if(u&&u[t]){var r={};r[t]=a(c+"."+t,e,s),n({target:c,stat:!0,constructor:!0,arity:1,forced:s},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},8111:(t,e,r)=>{var n=r(6518),o=r(4576),i=r(679),a=r(8551),c=r(4901),u=r(2787),s=r(2106),l=r(2278),f=r(9039),p=r(9297),h=r(8227),d=r(7657).IteratorPrototype,v=r(3724),y=r(6395),m="constructor",g="Iterator",b=h("toStringTag"),w=TypeError,x=o[g],E=y||!c(x)||x.prototype!==d||!f((function(){x({})})),S=function(){if(i(this,d),u(this)===d)throw new w("Abstract class Iterator not directly constructable")},O=function(t,e){v?s(d,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===d)throw new w("You can't redefine this property");p(this,t)?this[t]=e:l(this,t,e)}}):d[t]=e};p(d,b)||O(b,g),!E&&p(d,m)&&d[m]!==Object||O(m,S),S.prototype=d,n({global:!0,constructor:!0,forced:E},{Iterator:S})},2489:(t,e,r)=>{var n=r(6518),o=r(9565),i=r(9306),a=r(8551),c=r(1767),u=r(9462),s=r(6319),l=r(6395),f=u((function(){for(var t,e,r=this.iterator,n=this.predicate,i=this.next;;){if(t=a(o(i,r)),this.done=!!t.done)return;if(e=t.value,s(r,n,[e,this.counter++],!0))return e}}));n({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(t){return a(this),i(t),new f(c(this),{predicate:t})}})},7588:(t,e,r)=>{var n=r(6518),o=r(2652),i=r(9306),a=r(8551),c=r(1767);n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){a(this),i(t);var e=c(this),r=0;o(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},1701:(t,e,r)=>{var n=r(6518),o=r(713);n({target:"Iterator",proto:!0,real:!0,forced:r(6395)},{map:o})},3110:(t,e,r)=>{var n=r(6518),o=r(7751),i=r(8745),a=r(9565),c=r(9504),u=r(9039),s=r(4901),l=r(757),f=r(7680),p=r(6933),h=r(4495),d=String,v=o("JSON","stringify"),y=c(/./.exec),m=c("".charAt),g=c("".charCodeAt),b=c("".replace),w=c(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!h||u((function(){var t=o("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),L=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),_=function(t,e){var r=f(arguments),n=p(e);if(s(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(s(n)&&(e=a(n,this,d(t),e)),!l(e))return e},i(v,null,r)},k=function(t,e,r){var n=m(r,e-1),o=m(r,e+1);return y(E,t)&&!y(S,o)||y(S,t)&&!y(E,n)?"\\u"+w(g(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:O||L},{stringify:function(t,e,r){var n=f(arguments),o=i(O?_:v,null,n);return L&&"string"==typeof o?b(o,x,k):o}})},4731:(t,e,r)=>{var n=r(4576);r(687)(n.JSON,"JSON",!0)},479:(t,e,r)=>{r(687)(Math,"Math",!0)},2892:(t,e,r)=>{var n=r(6518),o=r(6395),i=r(3724),a=r(4576),c=r(9167),u=r(9504),s=r(2796),l=r(9297),f=r(3167),p=r(1625),h=r(757),d=r(2777),v=r(9039),y=r(8480).f,m=r(7347).f,g=r(4913).f,b=r(1240),w=r(3802).trim,x="Number",E=a[x],S=c[x],O=E.prototype,L=a.TypeError,_=u("".slice),k=u("".charCodeAt),A=s(x,!E(" 0o1")||!E("0b1")||E("+0x1")),j=function(t){var e,r=arguments.length<1?0:E(function(t){var e=d(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,c,u,s=d(t,"number");if(h(s))throw new L("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=w(s),43===(e=k(s,0))||45===e){if(88===(r=k(s,2))||120===r)return NaN}else if(48===e){switch(k(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=_(s,2)).length,c=0;c<a;c++)if((u=k(i,c))<48||u>o)return NaN;return parseInt(i,n)}return+s}(e)}(t));return p(O,e=this)&&v((function(){b(e)}))?f(Object(r),this,j):r};j.prototype=O,A&&!o&&(O.constructor=j),n({global:!0,constructor:!0,wrap:!0,forced:A},{Number:j});var P=function(t,e){for(var r,n=i?y(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(e,r=n[o])&&!l(t,r)&&g(t,r,m(e,r))};o&&S&&P(c[x],S),(A||o)&&P(c[x],E)},9085:(t,e,r)=>{var n=r(6518),o=r(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5506:(t,e,r)=>{var n=r(6518),o=r(2357).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},3921:(t,e,r)=>{var n=r(6518),o=r(2652),i=r(2278);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return o(t,(function(t,r){i(e,t,r)}),{AS_ENTRIES:!0}),e}})},3851:(t,e,r)=>{var n=r(6518),o=r(9039),i=r(5397),a=r(7347).f,c=r(3724);n({target:"Object",stat:!0,forced:!c||o((function(){a(1)})),sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},1278:(t,e,r)=>{var n=r(6518),o=r(3724),i=r(5031),a=r(5397),c=r(7347),u=r(2278);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=c.f,s=i(n),l={},f=0;s.length>f;)void 0!==(r=o(n,e=s[f++]))&&u(l,e,r);return l}})},9773:(t,e,r)=>{var n=r(6518),o=r(4495),i=r(9039),a=r(3717),c=r(8981);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},875:(t,e,r)=>{var n=r(6518),o=r(9039),i=r(8981),a=r(2787),c=r(2211);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},9432:(t,e,r)=>{var n=r(6518),o=r(8981),i=r(1072);n({target:"Object",stat:!0,forced:r(9039)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},287:(t,e,r)=>{r(6518)({target:"Object",stat:!0},{setPrototypeOf:r(2967)})},6099:(t,e,r)=>{var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6499:(t,e,r)=>{var n=r(6518),o=r(9565),i=r(9306),a=r(6043),c=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var e=this,r=a.f(e),n=r.resolve,s=r.reject,l=c((function(){var r=i(e.resolve),a=[],c=0,l=1;u(t,(function(t){var i=c++,u=!1;l++,o(r,e,t).then((function(t){u||(u=!0,a[i]=t,--l||n(a))}),s)})),--l||n(a)}));return l.error&&s(l.value),r.promise}})},2003:(t,e,r)=>{var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,a=r(550),c=r(7751),u=r(4901),s=r(6840),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(a)){var f=c("Promise").prototype.catch;l.catch!==f&&s(l,"catch",f,{unsafe:!0})}},436:(t,e,r)=>{var n,o,i,a=r(6518),c=r(6395),u=r(8574),s=r(4576),l=r(9565),f=r(6840),p=r(2967),h=r(687),d=r(7633),v=r(9306),y=r(4901),m=r(34),g=r(679),b=r(2293),w=r(9225).set,x=r(1955),E=r(3138),S=r(1103),O=r(8265),L=r(1181),_=r(550),k=r(916),A=r(6043),j="Promise",P=k.CONSTRUCTOR,I=k.REJECTION_EVENT,N=k.SUBCLASSING,T=L.getterFor(j),C=L.set,R=_&&_.prototype,F=_,G=R,D=s.TypeError,M=s.document,B=s.process,U=A.f,$=U,Y=!!(M&&M.createEvent&&s.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},J=function(t,e){var r,n,o,i=e.value,a=1===e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&X(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(new D("Promise-chain cycle")):(n=q(r))?l(n,r,u,s):u(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},V=function(t,e){t.notified||(t.notified=!0,x((function(){for(var r,n=t.reactions;r=n.get();)J(r,t);t.notified=!1,e&&!t.rejection&&H(t)})))},z=function(t,e,r){var n,o;Y?((n=M.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},!I&&(o=s["on"+t])?o(n):t===W&&E("Unhandled promise rejection",r)},H=function(t){l(w,s,(function(){var e,r=t.facade,n=t.value;if(K(t)&&(e=S((function(){u?B.emit("unhandledRejection",n,r):z(W,r,n)})),t.rejection=u||K(t)?2:1,e.error))throw e.value}))},K=function(t){return 1!==t.rejection&&!t.parent},X=function(t){l(w,s,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):z("rejectionhandled",e,t.value)}))},Q=function(t,e,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,V(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new D("Promise can't be resolved itself");var n=q(e);n?x((function(){var r={done:!1};try{l(n,e,Q(tt,r,t),Q(Z,r,t))}catch(e){Z(r,e,t)}})):(t.value=e,t.state=1,V(t,!1))}catch(e){Z({done:!1},e,t)}}};if(P&&(G=(F=function(t){g(this,G),v(t),l(n,this);var e=T(this);try{t(Q(tt,e),Q(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){C(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=f(G,"then",(function(t,e){var r=T(this),n=U(b(this,F));return r.parent=!0,n.ok=!y(t)||t,n.fail=y(e)&&e,n.domain=u?B.domain:void 0,0===r.state?r.reactions.add(n):x((function(){J(n,r)})),n.promise})),o=function(){var t=new n,e=T(t);this.promise=t,this.resolve=Q(tt,e),this.reject=Q(Z,e)},A.f=U=function(t){return t===F||void 0===t?new o(t):$(t)},!c&&y(_)&&R!==Object.prototype)){i=R.then,N||f(R,"then",(function(t,e){var r=this;return new F((function(t,e){l(i,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(t){}p&&p(R,G)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:F}),h(F,j,!1,!0),d(j)},3362:(t,e,r)=>{r(436),r(6499),r(2003),r(7743),r(1481),r(280)},7743:(t,e,r)=>{var n=r(6518),o=r(9565),i=r(9306),a=r(6043),c=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(t){var e=this,r=a.f(e),n=r.reject,s=c((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(r.resolve,n)}))}));return s.error&&n(s.value),r.promise}})},1481:(t,e,r)=>{var n=r(6518),o=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},280:(t,e,r)=>{var n=r(6518),o=r(7751),i=r(6395),a=r(550),c=r(916).CONSTRUCTOR,u=r(3438),s=o("Promise"),l=i&&!c;n({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return u(l&&this===s?a:this,t)}})},7495:(t,e,r)=>{var n=r(6518),o=r(7323);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},906:(t,e,r)=>{r(7495);var n,o,i=r(6518),a=r(9565),c=r(4901),u=r(8551),s=r(655),l=(n=!1,(o=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&n),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),r=s(t),n=e.exec;if(!c(n))return a(f,e,r);var o=a(n,e,r);return null!==o&&(u(o),!0)}})},8781:(t,e,r)=>{var n=r(350).PROPER,o=r(6840),i=r(8551),a=r(655),c=r(9039),u=r(1034),s="toString",l=RegExp.prototype,f=l[s],p=c((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),h=n&&f.name!==s;(p||h)&&o(l,s,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},7764:(t,e,r)=>{var n=r(8183).charAt,o=r(655),i=r(1181),a=r(1088),c=r(2529),u="String Iterator",s=i.set,l=i.getterFor(u);a(String,"String",(function(t){s(this,{type:u,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?c(void 0,!0):(t=n(r,o),e.index+=t.length,c(t,!1))}))},5440:(t,e,r)=>{var n=r(8745),o=r(9565),i=r(9504),a=r(9228),c=r(9039),u=r(8551),s=r(4901),l=r(4117),f=r(1291),p=r(8014),h=r(655),d=r(7750),v=r(7829),y=r(5966),m=r(2478),g=r(6682),b=r(8227)("replace"),w=Math.max,x=Math.min,E=i([].concat),S=i([].push),O=i("".indexOf),L=i("".slice),_="$0"==="a".replace(/./,"$0"),k=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,r){var i=k?"$":"$0";return[function(t,r){var n=d(this),i=l(t)?void 0:y(t,b);return i?o(i,t,n,r):o(e,h(n),t,r)},function(t,o){var a=u(this),c=h(t);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var l=r(e,a,c,o);if(l.done)return l.value}var d=s(o);d||(o=h(o));var y,b=a.global;b&&(y=a.unicode,a.lastIndex=0);for(var _,k=[];null!==(_=g(a,c))&&(S(k,_),b);)""===h(_[0])&&(a.lastIndex=v(c,p(a.lastIndex),y));for(var A,j="",P=0,I=0;I<k.length;I++){for(var N,T=h((_=k[I])[0]),C=w(x(f(_.index),c.length),0),R=[],F=1;F<_.length;F++)S(R,void 0===(A=_[F])?A:String(A));var G=_.groups;if(d){var D=E([T],R,C,c);void 0!==G&&S(D,G),N=h(n(o,void 0,D))}else N=m(T,c,C,R,G,o);C>=P&&(j+=L(c,P,C)+N,P=C+T.length)}return j+L(c,P)}]}),!!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!_||k)},6412:(t,e,r)=>{r(511)("asyncIterator")},6761:(t,e,r)=>{var n=r(6518),o=r(4576),i=r(9565),a=r(9504),c=r(6395),u=r(3724),s=r(4495),l=r(9039),f=r(9297),p=r(1625),h=r(8551),d=r(5397),v=r(6969),y=r(655),m=r(6980),g=r(2360),b=r(1072),w=r(8480),x=r(298),E=r(3717),S=r(7347),O=r(4913),L=r(6801),_=r(8773),k=r(6840),A=r(2106),j=r(5745),P=r(6119),I=r(421),N=r(3392),T=r(8227),C=r(1951),R=r(511),F=r(8242),G=r(687),D=r(1181),M=r(9213).forEach,B=P("hidden"),U="Symbol",$="prototype",Y=D.set,W=D.getterFor(U),q=Object[$],J=o.Symbol,V=J&&J[$],z=o.RangeError,H=o.TypeError,K=o.QObject,X=S.f,Q=O.f,Z=x.f,tt=_.f,et=a([].push),rt=j("symbols"),nt=j("op-symbols"),ot=j("wks"),it=!K||!K[$]||!K[$].findChild,at=function(t,e,r){var n=X(q,e);n&&delete q[e],Q(t,e,r),n&&t!==q&&Q(q,e,n)},ct=u&&l((function(){return 7!==g(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?at:Q,ut=function(t,e){var r=rt[t]=g(V);return Y(r,{type:U,tag:t,description:e}),u||(r.description=e),r},st=function(t,e,r){t===q&&st(nt,e,r),h(t);var n=v(e);return h(r),f(rt,n)?(r.enumerable?(f(t,B)&&t[B][n]&&(t[B][n]=!1),r=g(r,{enumerable:m(0,!1)})):(f(t,B)||Q(t,B,m(1,g(null))),t[B][n]=!0),ct(t,n,r)):Q(t,n,r)},lt=function(t,e){h(t);var r=d(e),n=b(r).concat(dt(r));return M(n,(function(e){u&&!i(ft,r,e)||st(t,e,r[e])})),t},ft=function(t){var e=v(t),r=i(tt,this,e);return!(this===q&&f(rt,e)&&!f(nt,e))&&(!(r||!f(this,e)||!f(rt,e)||f(this,B)&&this[B][e])||r)},pt=function(t,e){var r=d(t),n=v(e);if(r!==q||!f(rt,n)||f(nt,n)){var o=X(r,n);return!o||!f(rt,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},ht=function(t){var e=Z(d(t)),r=[];return M(e,(function(t){f(rt,t)||f(I,t)||et(r,t)})),r},dt=function(t){var e=t===q,r=Z(e?nt:d(t)),n=[];return M(r,(function(t){!f(rt,t)||e&&!f(q,t)||et(n,rt[t])})),n};s||(k(V=(J=function(){if(p(V,this))throw new H("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=N(t),r=function(t){var n=void 0===this?o:this;n===q&&i(r,nt,t),f(n,B)&&f(n[B],e)&&(n[B][e]=!1);var a=m(1,t);try{ct(n,e,a)}catch(t){if(!(t instanceof z))throw t;at(n,e,a)}};return u&&it&&ct(q,e,{configurable:!0,set:r}),ut(e,t)})[$],"toString",(function(){return W(this).tag})),k(J,"withoutSetter",(function(t){return ut(N(t),t)})),_.f=ft,O.f=st,L.f=lt,S.f=pt,w.f=x.f=ht,E.f=dt,C.f=function(t){return ut(T(t),t)},u&&(A(V,"description",{configurable:!0,get:function(){return W(this).description}}),c||k(q,"propertyIsEnumerable",ft,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:J}),M(b(ot),(function(t){R(t)})),n({target:U,stat:!0,forced:!s},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!u},{create:function(t,e){return void 0===e?g(t):lt(g(t),e)},defineProperty:st,defineProperties:lt,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:ht}),F(),G(J,U),I[B]=!0},9463:(t,e,r)=>{var n=r(6518),o=r(3724),i=r(4576),a=r(9504),c=r(9297),u=r(4901),s=r(1625),l=r(655),f=r(2106),p=r(7740),h=i.Symbol,d=h&&h.prototype;if(o&&u(h)&&(!("description"in d)||void 0!==h().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=s(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};p(y,h),y.prototype=d,d.constructor=y;var m="Symbol(description detection)"===String(h("description detection")),g=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),E=a("".slice);f(d,"description",{configurable:!0,get:function(){var t=g(this);if(c(v,t))return"";var e=b(t),r=m?E(e,7,-1):x(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},1510:(t,e,r)=>{var n=r(6518),o=r(7751),i=r(9297),a=r(655),c=r(5745),u=r(1296),s=c("string-to-symbol-registry"),l=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(s,e))return s[e];var r=o("Symbol")(e);return s[e]=r,l[r]=e,r}})},2259:(t,e,r)=>{r(511)("iterator")},2675:(t,e,r)=>{r(6761),r(1510),r(7812),r(3110),r(9773)},7812:(t,e,r)=>{var n=r(6518),o=r(9297),i=r(757),a=r(6823),c=r(5745),u=r(1296),s=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},5700:(t,e,r)=>{var n=r(511),o=r(8242);n("toPrimitive"),o()},8125:(t,e,r)=>{var n=r(7751),o=r(511),i=r(687);o("toStringTag"),i(n("Symbol"),"Symbol")},8992:(t,e,r)=>{r(8111)},4520:(t,e,r)=>{r(2489)},3949:(t,e,r)=>{r(7588)},1454:(t,e,r)=>{r(1701)},3500:(t,e,r)=>{var n=r(4576),o=r(7400),i=r(9296),a=r(235),c=r(6699),u=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in o)o[s]&&u(n[s]&&n[s].prototype);u(i)},2953:(t,e,r)=>{var n=r(4576),o=r(7400),i=r(9296),a=r(3792),c=r(6699),u=r(687),s=r(8227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[s]!==l)try{c(t,s,l)}catch(e){t[s]=l}if(u(t,e,!0),o[e])for(var r in a)if(t[r]!==a[r])try{c(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var p in o)f(n[p]&&n[p].prototype,p);f(i,"DOMTokenList")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r(2675),r(9463),r(2259),r(6280),r(3418),r(3792),r(4114),r(4782),r(6099),r(7495),r(906),r(8781),r(7764),r(2953);const n=window.wp.element,o=window.wp.i18n,i=window.wc.wcBlocksRegistry;r(6412),r(8125),r(4490),r(4731),r(479),r(875),r(287),r(3362),r(8992),r(3949),r(3500);const a=window.wp.data,c=class{constructor(t){this.namespace=t,this.connection=null,this.identity=null,this.profile=null,this.FastlaneCardComponent=null,this.FastlanePaymentComponent=null,this.FastlaneWatermarkComponent=null}connect(t){return new Promise(((e,r)=>{window[this.namespace]?window[this.namespace].Fastlane(t).then((t=>{this.init(t),e()})).catch((t=>{console.error(t),r(t)})):r(new Error(`Namespace ${this.namespace} not found on window object`))}))}init(t){this.connection=t,this.identity=this.connection.identity,this.profile=this.connection.profile,this.FastlaneCardComponent=this.connection.FastlaneCardComponent,this.FastlanePaymentComponent=this.connection.FastlanePaymentComponent,this.FastlaneWatermarkComponent=this.connection.FastlaneWatermarkComponent}setLocale(t){this.connection.setLocale(t)}};function u(t,e="info"){const r=window.wc_ppcp_axo?.wp_debug,n=window.wc_ppcp_axo?.ajax?.frontend_logger?.endpoint,o=window.wc_ppcp_axo?.logging_enabled;if(r)switch(e){case"error":console.error(`[AXO] ${t}`);break;case"warn":console.warn(`[AXO] ${t}`);break;default:console.log(`[AXO] ${t}`)}n&&o&&fetch(n,{method:"POST",credentials:"same-origin",body:JSON.stringify({nonce:window.wc_ppcp_axo.ajax.frontend_logger.nonce,log:{message:t,level:e}})})}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}r(2008),r(2062),r(5506),r(3921),r(9432),r(4520),r(1454);var p=function(t){return"object"===f(t)&&null!==t},h=function(t){return p(t)?Object.fromEntries(Object.entries(t).map((function(t){var e=s(t,2),r=e[0],n=e[1];return[r,p(n)?h(n):n]})).filter((function(t){var e=s(t,2),r=(e[0],e[1]);return p(r)?Object.keys(r).length>0:function(t){return""!==t}(r)}))):t};function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=function(t){var e=function(t){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(5700),r(9572),r(2892),r(3851),r(1278);var g="woocommerce-paypal-payments/axo-block",b={isPayPalLoaded:!1,isGuest:!0,isAxoActive:!1,isAxoScriptLoaded:!1,isEmailSubmitted:!1,isEmailLookupCompleted:!1,shippingAddress:null,cardDetails:null,phoneNumber:""},w=(0,a.createReduxStore)(g,{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_PAYPAL_LOADED":return y(y({},t),{},{isPayPalLoaded:e.payload});case"SET_IS_GUEST":return y(y({},t),{},{isGuest:e.payload});case"SET_IS_AXO_ACTIVE":return y(y({},t),{},{isAxoActive:e.payload});case"SET_IS_AXO_SCRIPT_LOADED":return y(y({},t),{},{isAxoScriptLoaded:e.payload});case"SET_IS_EMAIL_SUBMITTED":return y(y({},t),{},{isEmailSubmitted:e.payload});case"SET_IS_EMAIL_LOOKUP_COMPLETED":return y(y({},t),{},{isEmailLookupCompleted:e.payload});case"SET_SHIPPING_ADDRESS":return y(y({},t),{},{shippingAddress:e.payload});case"SET_CARD_DETAILS":return y(y({},t),{},{cardDetails:e.payload});case"SET_PHONE_NUMBER":return y(y({},t),{},{phoneNumber:e.payload});default:return t}},actions:{setIsPayPalLoaded:function(t){return{type:"SET_IS_PAYPAL_LOADED",payload:t}},setIsGuest:function(t){return{type:"SET_IS_GUEST",payload:t}},setIsAxoActive:function(t){return{type:"SET_IS_AXO_ACTIVE",payload:t}},setIsAxoScriptLoaded:function(t){return{type:"SET_IS_AXO_SCRIPT_LOADED",payload:t}},setIsEmailSubmitted:function(t){return{type:"SET_IS_EMAIL_SUBMITTED",payload:t}},setIsEmailLookupCompleted:function(t){return{type:"SET_IS_EMAIL_LOOKUP_COMPLETED",payload:t}},setShippingAddress:function(t){return{type:"SET_SHIPPING_ADDRESS",payload:t}},setCardDetails:function(t){return{type:"SET_CARD_DETAILS",payload:t}},setPhoneNumber:function(t){return{type:"SET_PHONE_NUMBER",payload:t}}},selectors:{getIsPayPalLoaded:function(t){return t.isPayPalLoaded},getIsGuest:function(t){return t.isGuest},getIsAxoActive:function(t){return t.isAxoActive},getIsAxoScriptLoaded:function(t){return t.isAxoScriptLoaded},getIsEmailSubmitted:function(t){return t.isEmailSubmitted},getIsEmailLookupCompleted:function(t){return t.isEmailLookupCompleted},getShippingAddress:function(t){return t.shippingAddress},getCardDetails:function(t){return t.cardDetails},getPhoneNumber:function(t){return t.phoneNumber}}});(0,a.register)(w);var x=function(t){(0,a.dispatch)(g).setIsEmailLookupCompleted(t)};function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(T([])));O&&O!==r&&n.call(O,a)&&(w=O);var L=b.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==E(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(E(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},_(k.prototype),s(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function O(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const _=function(t,e,r){var o,i,s=(o=(0,n.useState)(null),i=2,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(o,i)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(t,e):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],f=s[1],p=(0,n.useRef)(!1),d=(0,n.useRef)({axoConfig:e,ppcpConfig:r}),v=(0,n.useCallback)(h,[]),y=(0,a.useSelect)((function(t){return{isPayPalLoaded:t(g).getIsPayPalLoaded()}}),[]).isPayPalLoaded,m=(0,n.useMemo)((function(){return v(d.current.axoConfig.style_options)}),[v]),b=function(t){return(0,n.useMemo)((function(){var e=t.enabled_shipping_locations||[];return Array.isArray(e)?e:[]}),[t.enabled_shipping_locations])}(e);return(0,n.useEffect)((function(){var e=function(){var e,r=(e=S().mark((function e(){var r;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p.current&&!l&&y){e.next=2;break}return e.abrupt("return");case 2:return p.current=!0,u("Init Fastlane"),e.prev=4,r=new c(t),d.current.axoConfig.environment.is_sandbox&&window.localStorage.setItem("axoEnv","sandbox"),e.next=9,r.connect({locale:d.current.ppcpConfig.locale,styles:m,shippingAddressOptions:{allowedLocations:b}});case 9:r.setLocale("en_us"),f(r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),u("Failed to initialize Fastlane: ".concat(e.t0),"error");case 16:return e.prev=16,p.current=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){O(i,n,o,a,c,"next",t)}function c(t){O(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();e()}),[l,m,y,t,b]),(0,n.useEffect)((function(){d.current={axoConfig:e,ppcpConfig:r}}),[e,r]),l};r(8706);const k=function(){var t=(0,a.useSelect)((function(t){return t("wc/store/cart").getCustomerData()})),e=(0,a.useDispatch)("wc/store/cart"),r=e.setShippingAddress,o=e.setBillingAddress,i=(0,n.useCallback)((function(t){r(t)}),[r]),c=(0,n.useCallback)((function(t){o(t)}),[o]);return(0,n.useMemo)((function(){return{shippingAddress:t.shippingAddress,billingAddress:t.billingAddress,setShippingAddress:i,setBillingAddress:c}}),[t.shippingAddress,t.billingAddress,i,c])};function A(t,e){void 0===e&&(e={});var r=document.createElement("script");return r.src=t,Object.keys(e).forEach((function(t){r.setAttribute(t,e[t]),"data-csp-nonce"===t&&r.setAttribute("nonce",e["data-csp-nonce"])})),r}function j(t,e){if(void 0===e&&(e=Promise),I(t,e),"undefined"==typeof document)return e.resolve(null);var r=function(t){var e="https://www.paypal.com/sdk/js";t.sdkBaseUrl&&(e=t.sdkBaseUrl,delete t.sdkBaseUrl);var r,n,o=t,i=Object.keys(o).filter((function(t){return void 0!==o[t]&&null!==o[t]&&""!==o[t]})).reduce((function(t,e){var r,n=o[e].toString();return r=function(t,e){return(e?"-":"")+t.toLowerCase()},"data"===(e=e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)).substring(0,4)?t.dataAttributes[e]=n:t.queryParams[e]=n,t}),{queryParams:{},dataAttributes:{}}),a=i.queryParams,c=i.dataAttributes;return a["merchant-id"]&&-1!==a["merchant-id"].indexOf(",")&&(c["data-merchant-id"]=a["merchant-id"],a["merchant-id"]="*"),{url:"".concat(e,"?").concat((r=a,n="",Object.keys(r).forEach((function(t){0!==n.length&&(n+="&"),n+=t+"="+r[t]})),n)),dataAttributes:c}}(t),n=r.url,o=r.dataAttributes,i=o["data-namespace"]||"paypal",a=P(i);return function(t,e){var r=document.querySelector('script[src="'.concat(t,'"]'));if(null===r)return null;var n=A(t,e),o=r.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(n.dataset).length)return null;var i=!0;return Object.keys(o.dataset).forEach((function(t){o.dataset[t]!==n.dataset[t]&&(i=!1)})),i?r:null}(n,o)&&a?e.resolve(a):function(t,e){void 0===e&&(e=Promise),I(t,e);var r=t.url,n=t.attributes;if("string"!=typeof r||0===r.length)throw new Error("Invalid url.");if(void 0!==n&&"object"!=typeof n)throw new Error("Expected attributes to be an object.");return new e((function(t,e){if("undefined"==typeof document)return t();!function(t){var e=t.onSuccess,r=t.onError,n=A(t.url,t.attributes);n.onerror=r,n.onload=e,document.head.insertBefore(n,document.head.firstElementChild)}({url:r,attributes:n,onSuccess:function(){return t()},onError:function(){var t=new Error('The script "'.concat(r,'" failed to load.'));return window.fetch?fetch(r).then((function(r){return 200===r.status&&e(t),r.text()})).then((function(t){var r=function(t){var e=t.split("/* Original Error:")[1];return e?e.replace(/\n/g,"").replace("*/","").trim():t}(t);e(new Error(r))})).catch((function(t){e(t)})):e(t)}})}))}({url:n,attributes:o},e).then((function(){var t=P(i);if(t)return t;throw new Error("The window.".concat(i," global variable is not available."))}))}function P(t){return window[t]}function I(t,e){if("object"!=typeof t||null===t)throw new Error("Expected an options object.");if(void 0!==e&&"function"!=typeof e)throw new Error("Expected PromisePonyfill to be a function.")}const N=(t,e,r,n=null)=>{fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({nonce:e.nonce})}).then((t=>t.json())).then((o=>{var i;((t,e)=>!(!t||t.user!==e||(new Date).getTime()>=1e3*t.expiration))(o,e.user)&&(i=o,sessionStorage.setItem("ppcp-data-client-id",JSON.stringify(i)),t["data-client-token"]=o.token,j(t).then((t=>{"function"==typeof r&&r(t)})).catch((t=>{"function"==typeof n&&n(t)})))}))};window.widgetBuilder=window.widgetBuilder||new class{constructor(){this.paypal=null,this.buttons=new Map,this.messages=new Map,this.renderEventName="ppcp-render",document.ppcpWidgetBuilderStatus=()=>{console.log({buttons:this.buttons,messages:this.messages})},jQuery(document).off(this.renderEventName).on(this.renderEventName,(()=>{this.renderAll()}))}setPaypal(t){this.paypal=t,jQuery(document).trigger("ppcp-paypal-loaded",t)}registerButtons(t,e){t=this.sanitizeWrapper(t),this.buttons.set(this.toKey(t),{wrapper:t,options:e})}renderButtons(t){if(t=this.sanitizeWrapper(t),!this.buttons.has(this.toKey(t)))return;if(this.hasRendered(t))return;const e=this.buttons.get(this.toKey(t)),r=this.paypal.Buttons(e.options);if(!r.isEligible())return void this.buttons.delete(this.toKey(t));const n=this.buildWrapperTarget(t);n&&r.render(n)}renderAllButtons(){for(const[t,e]of this.buttons)this.renderButtons(t)}registerMessages(t,e){this.messages.set(t,{wrapper:t,options:e})}renderMessages(t){if(!this.messages.has(t))return;const e=this.messages.get(t);if(this.hasRendered(t))return void document.querySelector(t).setAttribute("data-pp-amount",e.options.amount);const r=this.paypal.Messages(e.options);r.render(e.wrapper),setTimeout((()=>{this.hasRendered(t)||r.render(e.wrapper)}),100)}renderAllMessages(){for(const[t,e]of this.messages)this.renderMessages(t)}renderAll(){this.renderAllButtons(),this.renderAllMessages()}hasRendered(t){let e=t;if(Array.isArray(t)){e=t[0];for(const r of t.slice(1))e+=" .item-"+r}const r=document.querySelector(e);return r&&r.hasChildNodes()}sanitizeWrapper(t){return Array.isArray(t)&&1===(t=t.filter((t=>!!t))).length&&(t=t[0]),t}buildWrapperTarget(t){let e=t;if(Array.isArray(t)){const r=jQuery(t[0]);if(!r.length)return;const n="item-"+t[1];let o=r.find("."+n);o.length||(o=jQuery(`<div class="${n}"></div>`),r.append(o)),e=o.get(0)}return jQuery(e).length?e:null}toKey(t){return Array.isArray(t)?JSON.stringify(t):t}};const T=window.widgetBuilder;var C=r(9457),R=r.n(C);const F={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let G;const D=new Uint8Array(16);function M(){if(!G){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");G=crypto.getRandomValues.bind(crypto)}return G(D)}const B=[];for(let t=0;t<256;++t)B.push((t+256).toString(16).slice(1));const U=function(t,e,r){if(F.randomUUID&&!e&&!t)return F.randomUUID();const n=(t=t||{}).random||(t.rng||M)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return function(t,e=0){return(B[t[e+0]]+B[t[e+1]]+B[t[e+2]]+B[t[e+3]]+"-"+B[t[e+4]]+B[t[e+5]]+"-"+B[t[e+6]]+B[t[e+7]]+"-"+B[t[e+8]]+B[t[e+9]]+"-"+B[t[e+10]]+B[t[e+11]]+B[t[e+12]]+B[t[e+13]]+B[t[e+14]]+B[t[e+15]]).toLowerCase()}(n)},$=t=>{let e=(t=>{const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[(r=n,r.replace(/([-_]\w)/g,(function(t){return t[1].toUpperCase()})))]=t[n]);var r;return e})(t.url_params);t.script_attributes&&(e=R()(e,t.script_attributes));const r=(t=>{const e={},r=t?.axo?.sdk_client_token,n=U().replace(/-/g,"");return r&&(e["data-sdk-client-token"]=r,e["data-client-metadata-id"]=n),e})(t),n=((t,e)=>{const r=t?.save_payment_methods?.id_token;return r&&!e?{"data-user-id-token":r}:{}})(t,r["data-sdk-client-token"]);return R().all([e,r,n])},Y=new Map,W=new Map,q=async(t,e)=>{if(!t)throw new Error("Namespace is required");if(Y.has(t))return console.log(`Script already loaded for namespace: ${t}`),Y.get(t);if(W.has(t))return console.log(`Script loading in progress for namespace: ${t}`),W.get(t);const r={...$(e),"data-namespace":t},n=await(async(t,e)=>e.data_client_id?.set_attribute&&"1"!==e.vault_v3_enabled?new Promise(((r,n)=>{N(t,e.data_client_id,(t=>{T.setPaypal(t),r(t)}),n)})):null)(r,e);if(n)return n;const o=new Promise(((e,n)=>{j(r).then((r=>{T.setPaypal(r),Y.set(t,r),console.log(`Script loaded for namespace: ${t}`),e(r)})).catch((e=>{console.error(`Failed to load script for namespace: ${t}`,e),n(e)})).finally((()=>{W.delete(t)}))}));return W.set(t,o),o};function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function V(){V=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==J(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(J(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function z(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function K(){K=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==H(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(H(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function X(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const Q=function(t){var e=t.fastlaneSdk,r=t.name,o=void 0===r?"fastlane-watermark-container":r,i=t.includeAdditionalInfo,a=void 0===i||i,c=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useEffect)((function(){var t=function(){var t,r=(t=K().mark((function t(){var r;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c.current){t.next=2;break}return t.abrupt("return");case 2:return c.current.innerHTML="",t.prev=3,t.next=6,e.FastlaneWatermarkComponent({includeAdditionalInfo:a});case 6:r=t.sent,s.current=r,r.render("#".concat(o)),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(3),u("Error rendering watermark: ".concat(t.t0),"error");case 14:case"end":return t.stop()}}),t,null,[[3,11]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){X(i,n,o,a,c,"next",t)}function c(t){X(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();return t(),function(){c.current&&(c.current.innerHTML="")}}),[e,o,a]),React.createElement("div",{id:o,ref:c})};r(9085);var Z={container:null,root:null},tt=function(){if(Z.root&&Z.root.unmount(),Z.container)if(Z.container.parentNode)Z.container.parentNode.removeChild(Z.container);else{var t=document.querySelector(".wc-block-checkout-axo-block-watermark-container");t&&t.remove()}Object.assign(Z,{container:null,root:null})};const et=function(t){var e=t.fastlaneSdk,r=(0,a.useSelect)((function(t){return t(g).getIsAxoActive()})),o=(0,a.useSelect)((function(t){return t(g).getIsAxoScriptLoaded()}));return(0,n.useEffect)((function(){return r||!r&&!o?(function(){var t=document.querySelector(".wp-block-woocommerce-checkout-contact-information-block .wc-block-components-text-input");if(t&&!Z.container){var e=t.querySelector('input[id="email"]');if(e){Z.container=document.createElement("div"),Z.container.setAttribute("class","wc-block-checkout-axo-block-watermark-container");var r=t.querySelector(".wc-block-axo-email-submit-button-container")||e;r.parentNode.insertBefore(Z.container,r.nextSibling),Z.root=(0,n.createRoot)(Z.container)}}}(),function(t){var e,r=t.isAxoActive,o=t.fastlaneSdk;e=r||t.isAxoScriptLoaded?r?(0,n.createElement)(Q,{fastlaneSdk:o,name:"fastlane-watermark-email",includeAdditionalInfo:!0}):null:(0,n.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),Z.root&&Z.root.render(e)}({isAxoActive:r,isAxoScriptLoaded:o,fastlaneSdk:e})):tt(),tt}),[e,r,o]),null},rt=function(t){var e=t.handleSubmit,r=(0,a.useSelect)((function(t){return{isGuest:t(g).getIsGuest(),isAxoActive:t(g).getIsAxoActive(),isEmailSubmitted:t(g).getIsEmailSubmitted()}})),n=r.isGuest,i=r.isAxoActive,c=r.isEmailSubmitted;return n&&i?React.createElement("button",{type:"button",onClick:e,className:"wc-block-components-button wp-element-button ".concat(c?"is-loading":""),disabled:c},React.createElement("span",{className:"wc-block-components-button__text",style:{visibility:c?"hidden":"visible"}},(0,o.__)("Continue","woocommerce-paypal-payments")),c&&React.createElement("span",{className:"wc-block-components-spinner","aria-hidden":"true",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})):null};function nt(t){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function ot(){ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==nt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(nt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function it(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var at=null,ct={container:null,root:null,unsubscribe:null},ut=null,st=function(){return at||(at=document.getElementById("email")),at},lt=(r(739),r(3110),function(t,e){t&&e||u("Shipping or billing address is missing: ".concat(JSON.stringify({shippingAddress:t,billingAddress:e})),"warn");var r={shippingAddress:t,billingAddress:e};u("Snapshot data: ".concat(JSON.stringify(r)));try{localStorage.setItem("axoOriginalCheckoutFields",JSON.stringify(r))}catch(t){u("Error saving to localStorage: ".concat(t),"error")}}),ft=function(t,e,r){u("Populating WooCommerce fields with profile data: ".concat(JSON.stringify(t)));var n=(0,a.dispatch)("wc/store/checkout");"function"==typeof n.__internalSetUseShippingAsBilling&&n.__internalSetUseShippingAsBilling(!1);var o=t.shippingAddress,i=o.address,c=o.name,s=o.phoneNumber,l={first_name:c.firstName,last_name:c.lastName,address_1:i.addressLine1,address_2:i.addressLine2||"",city:i.adminArea2,state:i.adminArea1,postcode:i.postalCode,country:i.countryCode,phone:s.nationalNumber};u("Setting WooCommerce shipping address: ".concat(JSON.stringify(l))),e(l);var f=t.card.paymentSource.card.billingAddress,p={first_name:t.name.firstName,last_name:t.name.lastName,address_1:f.addressLine1,address_2:f.addressLine2||"",city:f.adminArea2,state:f.adminArea1,postcode:f.postalCode,country:f.countryCode};u("Setting WooCommerce billing address: ".concat(JSON.stringify(p))),r(p),"function"==typeof n.setEditingShippingAddress&&n.setEditingShippingAddress(!1),"function"==typeof n.setEditingBillingAddress&&n.setEditingBillingAddress(!1)};const pt=function(t){var e=t.onChangeShippingAddressClick;return React.createElement("a",{className:"wc-block-axo-change-link",role:"button",onClick:function(t){t.preventDefault(),e()}},(0,o.__)("Choose a different shipping address","woocommerce-paypal-payments"))},ht=function(t){var e=t.onChangeShippingAddressClick;return(0,n.useEffect)((function(){var t=document.querySelector("#shipping-fields .wc-block-components-checkout-step__heading");if(t&&!t.querySelector(".wc-block-checkout-axo-block-card__edit")){var r=document.createElement("span");r.className="wc-block-checkout-axo-block-card__edit",t.appendChild(r);var o=(0,n.createRoot)(r);return o.render(React.createElement(pt,{onChangeShippingAddressClick:e})),function(){o.unmount(),r.remove()}}}),[e]),null};var dt=function(t){if(!document.querySelector("#shipping-fields .wc-block-checkout-axo-block-card__edit")){var e=document.createElement("div");document.body.appendChild(e),(0,n.createRoot)(e).render(React.createElement(ht,{onChangeShippingAddressClick:t}))}},vt={VISA:"visa-light.svg",MASTERCARD:"mastercard-light.svg",AMEX:"amex-light.svg",DISCOVER:"discover-light.svg",DINERS:"dinersclub-light.svg",JCB:"jcb-light.svg",UNIONPAY:"unionpay-light.svg"};const yt=function(t){var e,r,o=t.fastlaneSdk,i=t.showWatermark,c=void 0===i||i,u=(0,a.useSelect)((function(t){return{card:t(g).getCardDetails()}}),[]).card,s=null!==(e=null==u||null===(r=u.paymentSource)||void 0===r?void 0:r.card)&&void 0!==e?e:{},l=s.brand,f=s.lastDigits,p=s.expiry,h=s.name,d=(0,n.useMemo)((function(){return vt[l]?React.createElement("img",{className:"wc-block-axo-block-card__meta-icon",title:l,src:"".concat(window.wc_ppcp_axo.icons_directory).concat(vt[l]),alt:l}):React.createElement("span",null,l)}),[l]),v=p?"".concat(p.split("-")[1],"/").concat(p.split("-")[0]):"";return React.createElement("div",{className:"wc-block-checkout-axo-block-card"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__inner"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__content"},React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta"},React.createElement("span",{className:"wc-block-checkout-axo-block-card__meta-digits"},"**** **** **** ".concat(f)),d),React.createElement("div",{className:"wc-block-checkout-axo-block-card__meta"},React.createElement("span",null,h),React.createElement("span",null,v)," ")),React.createElement("div",{className:"wc-block-checkout-axo-block-card__watermark"},c&&React.createElement(Q,{fastlaneSdk:o,name:"wc-block-checkout-axo-card-watermark",includeAdditionalInfo:!1}))))},mt=function(t){var e=t.onChangeButtonClick;return(0,n.createElement)("a",{className:"wc-block-checkout-axo-block-card__edit wc-block-axo-change-link",role:"button",onClick:function(t){t.preventDefault(),e()}},(0,o.__)("Choose a different card","woocommerce-paypal-payments"))},gt=function(t){var e=t.onChangeButtonClick;return(0,n.useEffect)((function(){var t=document.getElementById("ppcp-axo-block-radio-label");if(t&&!t.querySelector(".wc-block-checkout-axo-block-card__edit")){var r=document.createElement("div");t.appendChild(r),(0,n.createRoot)(r).render((0,n.createElement)(mt,{onChangeButtonClick:e}))}return function(){var t=document.querySelector(".wc-block-checkout-axo-block-card__edit");t&&t.parentNode&&t.parentNode.remove()}}),[e]),null};function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function wt(){wt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==bt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(bt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function xt(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}r(5440);var Et=function(t,e){u("Update the phone prefill value: ".concat(e)),t.updatePrefills({phoneNumber:e})};var St="wc/store/checkout",Ot=function(){var t=(0,a.useSelect)((function(t){var e=t(St);return{isEditingShippingAddress:!e.getEditingShippingAddress||e.getEditingShippingAddress(),isEditingBillingAddress:!e.getEditingBillingAddress||e.getEditingBillingAddress()}}),[]),e=t.isEditingShippingAddress,r=t.isEditingBillingAddress,o=(0,a.useDispatch)(St),i=o.setEditingShippingAddress,c=o.setEditingBillingAddress;return{isEditingShippingAddress:e,isEditingBillingAddress:r,setShippingAddressEditing:(0,n.useCallback)((function(t){"function"==typeof i&&i(t)}),[i]),setBillingAddressEditing:(0,n.useCallback)((function(t){"function"==typeof c&&c(t)}),[c])}};function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function _t(){_t=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Lt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Lt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function kt(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function At(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kt(i,n,o,a,c,"next",t)}function c(t){kt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function Pt(){Pt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==jt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(jt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function It(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Nt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){It(i,n,o,a,c,"next",t)}function c(t){It(i,n,o,a,c,"throw",t)}a(void 0)}))}}const Tt=function(t,e,r,o,i){var c=(0,a.useDispatch)(g),s=c.setIsAxoActive,l=c.setIsAxoScriptLoaded,f=c.setShippingAddress,p=c.setCardDetails,h=function(t,e,r){var o=(0,a.useDispatch)(g).setIsPayPalLoaded,i=(0,a.useSelect)((function(t){return{isPayPalLoaded:t(g).getIsPayPalLoaded()}}),[]).isPayPalLoaded;return(0,n.useEffect)((function(){var n=function(){var n,a=(n=V().mark((function n(){return V().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i||!r){n.next=10;break}return n.prev=1,n.next=4,q(t,e);case 4:o(!0),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),u("Error loading PayPal script for namespace: ".concat(t,". Error: ").concat(n.t0),"error");case 10:case"end":return n.stop()}}),n,null,[[1,7]])})),function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){z(i,r,o,a,c,"next",t)}function c(t){z(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(){return a.apply(this,arguments)}}();n()}),[e,r,i]),i}(t,e,r),d=function(t){var e=Ot().setBillingAddressEditing,r=k().setBillingAddress,o=(0,a.useDispatch)(g).setCardDetails;return(0,n.useCallback)(Nt(Pt().mark((function n(){var i,a,c,s,l,f,p,h,d,v,y;return Pt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=17;break}return n.next=3,t.profile.showCardSelector();case 3:if(a=n.sent,c=a.selectionChanged,s=a.selectedCard,!c||null==s||null===(i=s.paymentSource)||void 0===i||!i.card){n.next=16;break}return l=s.paymentSource.card,f=l.name,p=l.billingAddress,h="",d="",f&&(v=f.split(" "),h=v[0],d=v.slice(1).join(" ")),y={first_name:h,last_name:d,address_1:(null==p?void 0:p.addressLine1)||"",address_2:(null==p?void 0:p.addressLine2)||"",city:(null==p?void 0:p.adminArea2)||"",state:(null==p?void 0:p.adminArea1)||"",postcode:(null==p?void 0:p.postalCode)||"",country:(null==p?void 0:p.countryCode)||""},n.next=14,Promise.all([new Promise((function(t){o(s),t()})),new Promise((function(t){r(y),t()})),new Promise((function(t){e(!1),t()}))]);case 14:n.next=17;break;case 16:u("Selected card or billing address is missing.","error");case 17:case"end":return n.stop()}}),n)}))),[t,o,r,e])}(o),v=function(t,e){var r=Ot().setShippingAddressEditing,o=k().setShippingAddress;return(0,n.useCallback)(At(_t().mark((function n(){var i,a,c,u,s,l,f;return _t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=14;break}return n.next=3,t.profile.showShippingAddressSelector();case 3:if(i=n.sent,a=i.selectionChanged,c=i.selectedAddress,!a){n.next=14;break}return e(c),u=c.address,s=c.name,l=c.phoneNumber,f={first_name:s.firstName,last_name:s.lastName,address_1:u.addressLine1,address_2:u.addressLine2||"",city:u.adminArea2,state:u.adminArea1,postcode:u.postalCode,country:u.countryCode,phone:l.nationalNumber},n.next=12,new Promise((function(t){o(f),t()}));case 12:return n.next=14,new Promise((function(t){r(!1),t()}));case 14:case"end":return n.stop()}}),n)}))),[t,e,o,r])}(o,f),y=k(),m=y.shippingAddress,b=y.billingAddress,w=y.setShippingAddress,E=y.setBillingAddress;return function(t){var e=(0,a.useDispatch)(g).setPhoneNumber,r=(0,a.useSelect)((function(t){return{phoneNumber:t(g).getPhoneNumber()}})).phoneNumber,o=k(),i=o.shippingAddress,c=o.billingAddress,u=(0,n.useRef)((t=>{const e={timeoutId:null,args:null},r=()=>{e.timeoutId&&window.clearTimeout(e.timeoutId),e.timeoutId=null,e.args=null},n=()=>{e.timeoutId&&(t.apply(null,e.args||[]),r())},o=(...t)=>{r(),e.args=t,e.timeoutId=window.setTimeout(n,250)};return o.cancel=r,o.flush=n,o})(Et)).current,s=(0,n.useCallback)((function(){var t=(null==c?void 0:c.phone)||"",n=(null==i?void 0:i.phone)||"",o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/^\+?[01]+/,"").replace(/[^0-9]/g,"");return 10===t.length?t:""}(t||n);o&&o!==r&&e(o)}),[c,i,r,e]);(0,n.useEffect)((function(){s()}),[s]),(0,n.useEffect)((function(){t&&r&&u(t,r)}),[u,t,r]),(0,n.useEffect)((function(){return function(){null!=u&&u.cancel&&u.cancel()}}),[u])}(i),(0,n.useEffect)((function(){var t,e,r;t=".wp-block-woocommerce-checkout-express-payment-block",e="wc-block-axo-is-authenticated",(r=function(){var r=document.querySelector(t);r?(0,a.select)(g).getIsGuest()?r.classList.remove(e):r.classList.add(e):u("Authentication class target element not found: ".concat(t),"warn")})(),(0,a.subscribe)((function(){r()})),function(){var t=".wp-block-woocommerce-checkout-fields-block",e="wc-block-axo-email-lookup-completed",r=function(){var r=document.querySelector(t);r?(0,a.select)(g).getIsEmailLookupCompleted()?r.classList.add(e):r.classList.remove(e):u("Email lookup completed class target element not found: ".concat(t),"warn")};r(),(0,a.subscribe)((function(){r()}))}(),function(){var t=".wp-block-woocommerce-checkout-fields-block",e="wc-block-axo-is-loaded",r="wc-block-axo-is-authenticated",n="wc-block-axo-email-lookup-completed",o=function(){var o=document.querySelector(t);if(o){var i=(0,a.select)(g).getIsAxoActive(),c=(0,a.select)(g).getIsGuest(),s=(0,a.select)(g).getIsEmailLookupCompleted();i?o.classList.add(e):o.classList.remove(e),c?o.classList.remove(r):o.classList.add(r),s?o.classList.add(n):o.classList.remove(n)}else u("Checkout block class target element not found: ".concat(t),"warn")};o(),(0,a.subscribe)((function(){o()}))}()}),[]),(0,n.useEffect)((function(){if(function(t){var e=document.createElement("div");document.body.appendChild(e),(0,n.createRoot)(e).render((0,n.createElement)(et,{fastlaneSdk:t}))}(o),h&&o){l(!0),s(!0);var t=function(t,e,r,o,i,c,s,l,f,p){return function(){var h,d=(h=wt().mark((function h(d){var v,y,m,b;return wt().wrap((function(h){for(;;)switch(h.prev=h.next){case 0:if(h.prev=0,u("Email value being looked up: ".concat(d)),t){h.next=4;break}throw new Error("FastlaneSDK is not initialized");case 4:if(t.identity){h.next=6;break}throw new Error("FastlaneSDK identity object is not available");case 6:return h.next=8,t.identity.lookupCustomerByEmail(d);case 8:if(v=h.sent,u("Lookup response: ".concat(JSON.stringify(v))),v&&""===v.customerContextId&&x(!0),v&&v.customerContextId){h.next=14;break}return u("No customerContextId found in the response","warn"),h.abrupt("return");case 14:return h.next=16,t.identity.triggerAuthenticationFlow(v.customerContextId);case 16:if((y=h.sent)&&y.authenticationState){h.next=19;break}throw new Error("Invalid authentication response");case 19:m=y.authenticationState,b=y.profileData,y&&x(!0),"succeeded"===m?(o(i,c),(0,a.dispatch)(g).setIsGuest(!1),b&&b.shippingAddress&&e(b.shippingAddress),b&&b.card&&r(b.card),u("Profile Data: ".concat(JSON.stringify(b))),ft(b,s,l),dt(f),w=p,E=document.createElement("div"),document.body.appendChild(E),(0,n.createRoot)(E).render((0,n.createElement)(gt,{onChangeButtonClick:w}))):u("Authentication failed or did not succeed","warn"),h.next=28;break;case 24:throw h.prev=24,h.t0=h.catch(0),u("Error during email lookup or authentication:\n\t\t\t\t".concat(h.t0)),h.t0;case 28:case"end":return h.stop()}var w,E}),h,null,[[0,24]])})),function(){var t=this,e=arguments;return new Promise((function(r,n){var o=h.apply(t,e);function i(t){xt(o,r,n,i,a,"next",t)}function a(t){xt(o,r,n,i,a,"throw",t)}i(void 0)}))});return function(t){return d.apply(this,arguments)}}()}(o,f,p,lt,m,b,w,E,v,d);!function(t){var e=st();if(e){var r=function(){var r,n=(r=ot().mark((function r(){return ot().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!wp.data.select(g).getIsEmailSubmitted()&&e.value){r.next=3;break}return r.abrupt("return");case 3:return wp.data.dispatch(g).setIsEmailSubmitted(!0),o(),r.prev=5,r.next=8,t(e.value);case 8:r.next=13;break;case 10:r.prev=10,r.t0=r.catch(5),u("Error during email submission: ".concat(r.t0),"error");case 13:return r.prev=13,wp.data.dispatch(g).setIsEmailSubmitted(!1),o(),r.finish(13);case 17:case"end":return r.stop()}}),r,null,[[5,10,13,17]])})),function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){it(i,n,o,a,c,"next",t)}function c(t){it(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();ut=function(t){var e=wp.data.select(g).getIsAxoActive();"Enter"===t.key&&e&&(t.preventDefault(),r())},e.addEventListener("keydown",ut),ct.container||(ct.container=document.createElement("div"),ct.container.setAttribute("class","wc-block-axo-email-submit-button-container"),e.parentNode.insertBefore(ct.container,e.nextSibling),ct.root=(0,n.createRoot)(ct.container));var o=function(){ct.root&&ct.root.render((0,n.createElement)(rt,{handleSubmit:r}))};o(),ct.unsubscribe=wp.data.subscribe((function(){o()}))}else u("Email input element not found. Functionality not added.","warn")}(t)}}),[h,o,s,l,m,b,w,E,v,d,f,p,i]),h};function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function Rt(){Rt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Ct(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ct(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ft(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Gt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ft(i,n,o,a,c,"next",t)}function c(t){Ft(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Mt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Ut(){Ut=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==r&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==Bt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Bt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,c,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function $t(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Yt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$t(i,n,o,a,c,"next",t)}function c(t){$t(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var qt=function(t){var e,r,i=t.fastlaneSdk,c=t.onPaymentLoad,s=(e=(0,n.useState)(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Wt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],f=s[1],p=(0,a.useSelect)((function(t){return{isGuest:t(g).getIsGuest(),isEmailLookupCompleted:t(g).getIsEmailLookupCompleted(),cardDetails:t(g).getCardDetails()}}),[]),h=p.isGuest,d=p.isEmailLookupCompleted,v=p.cardDetails,y=(0,n.useCallback)(Yt(Ut().mark((function t(){var e;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(h&&d&&l||!h&&!v)){t.next=12;break}return t.prev=1,t.next=4,i.FastlaneCardComponent({});case 4:e=t.sent,document.querySelector("#fastlane-card")&&(e.render("#fastlane-card"),c(e)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),u("Error loading payment component: ".concat(t.t0),"error");case 12:case"end":return t.stop()}}),t,null,[[1,9]])}))),[h,d,l,v,i,c]);return(0,n.useEffect)((function(){h&&d&&f(!0)}),[h,d]),(0,n.useEffect)((function(){l&&y()}),[l,y]),h&&!d?React.createElement("div",{id:"ppcp-axo-block-radio-content"},(0,o.__)("Enter your email address above to continue.","woocommerce-paypal-payments")):h&&d||!h&&!v?React.createElement("div",{id:"fastlane-card"}):React.createElement(yt,{fastlaneSdk:i,showWatermark:!h})};function Jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Vt="ppcpBlocksPaypalAxo",zt=wc.wcSettings.getSetting("".concat("ppcp-axo-gateway","_data")),Ht=function(t){var e,r,i,c,s,l=t.eventRegistration,f=t.emitResponse,p=l.onPaymentSetup,h=(c=(0,n.useState)(null),s=2,function(t){if(Array.isArray(t))return t}(c)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(c,s)||function(t,e){if(t){if("string"==typeof t)return Jt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jt(t,e):void 0}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=h[0],v=h[1],y=function(t){var e=Dt((0,n.useState)(!1),2),r=e[0],o=e[1],i=Dt((0,n.useState)(t),2),a=i[0],c=i[1];return(0,n.useEffect)((function(){var t=function(){void 0!==window.PayPalCommerceGateway?(c(window.PayPalCommerceGateway),o(!0)):u("PayPal Commerce Gateway config not loaded.","error")};return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t(),function(){document.removeEventListener("DOMContentLoaded",t)}}),[]),{isConfigLoaded:r,ppcpConfig:a}}(zt),m=y.isConfigLoaded,b=y.ppcpConfig,w=window.wc_ppcp_axo,x=_(Vt,w,b),E=function(t,e,r){var o=(0,a.useSelect)((function(t){return{cardDetails:t(g).getCardDetails()}}),[]).cardDetails;return(0,n.useCallback)(Gt(Rt().mark((function n(){var i,a,c;return Rt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=!(null==o||!o.id),(a=null==o?void 0:o.id)||!e){n.next=6;break}return n.next=5,e.getPaymentToken(r).then((function(t){return t.id}));case 5:a=n.sent;case 6:if(a){n.next=10;break}return c="tokenization error",e||(c="initialization error"),n.abrupt("return",{type:t.responseTypes.ERROR,message:"Could not process the payment (".concat(c,")")});case 10:return n.abrupt("return",{type:t.responseTypes.SUCCESS,meta:{paymentMethodData:{fastlane_member:i,axo_nonce:a}}});case 11:case"end":return n.stop()}}),n)}))),[null==o?void 0:o.id,t.responseTypes.ERROR,t.responseTypes.SUCCESS,e,r])}(f,d,(e=k(),r=e.billingAddress,i=e.shippingAddress,(0,n.useMemo)((function(){var t,e=((t=r).first_name||t.last_name)&&t.address_1&&t.city&&t.postcode&&t.country?r:i;return{cardholderName:{fullName:"".concat(e.first_name," ").concat(e.last_name)},billingAddress:{addressLine1:e.address_1,addressLine2:e.address_2,adminArea1:e.state,adminArea2:e.city,postalCode:e.postcode,countryCode:e.country}}}),[r,i]))),S=Tt(Vt,b,m,x,d),O=function(t,e,r){return(0,n.useEffect)((function(){var r=t(e);return function(){r()}}),[t,e]),{handlePaymentLoad:(0,n.useCallback)((function(t){r(t)}),[r])}}(p,E,v).handlePaymentLoad;return function(){var t=(0,a.useDispatch)(g),e=t.setIsAxoActive,r=t.setIsGuest,o=t.setIsEmailLookupCompleted,i=k(),c=i.setShippingAddress,s=i.setBillingAddress;(0,n.useEffect)((function(){return function(){u("Cleaning up: Restoring WooCommerce fields"),function(t,e){var r;u("Attempting to restore original fields");try{r=localStorage.getItem("axoOriginalCheckoutFields"),u("Data retrieved from localStorage: ".concat(JSON.stringify(r)))}catch(t){u("Error retrieving from localStorage: ".concat(t),"error")}if(r)try{var n=JSON.parse(r);n.shippingAddress?t(n.shippingAddress):u("No shipping address found in saved data","warn"),n.billingAddress?(u("Restoring billing address:\n\t\t\t\t\t".concat(JSON.stringify(n.billingAddress))),e(n.billingAddress)):u("No billing address found in saved data","warn")}catch(t){u("Error parsing saved data: ".concat(t))}else u("No data found in localStorage under axoOriginalCheckoutFields","warn")}(c,s)}}),[c,s]),(0,n.useEffect)((function(){return function(){var t,i,a;u("Cleaning up Axo component"),e(!1),r(!0),o(!1),(t=document.querySelector("#shipping-fields .wc-block-checkout-axo-block-card__edit"))&&((0,n.createRoot)(t).unmount(),t.remove()),(i=document.querySelector(".wc-block-checkout-axo-block-card__edit"))&&i.parentNode&&i.parentNode.remove(),tt(),ct.root&&(u("Removing email functionality"),(a=st())&&ut&&a.removeEventListener("keydown",ut),ct.root&&ct.root.unmount(),ct.unsubscribe&&ct.unsubscribe(),ct.container&&ct.container.parentNode&&ct.container.parentNode.removeChild(ct.container),ct={container:null,root:null,unsubscribe:null},ut=null)}}),[])}(),m?S?x?React.createElement(qt,{fastlaneSdk:x,onPaymentLoad:O}):React.createElement(React.Fragment,null,(0,o.__)("Loading Fastlane…","woocommerce-paypal-payments")):React.createElement(React.Fragment,null,(0,o.__)("Loading PayPal script…","woocommerce-paypal-payments")):React.createElement(React.Fragment,null,(0,o.__)("Loading configuration…","woocommerce-paypal-payments"))};(0,i.registerPaymentMethod)({name:zt.id,label:React.createElement("div",{id:"ppcp-axo-block-radio-label",dangerouslySetInnerHTML:{__html:zt.title}}),content:React.createElement(Ht,null),edit:(0,n.createElement)(zt.title),ariaLabel:zt.title,canMakePayment:function(){return!0},supports:{showSavedCards:!0,features:zt.supports}})})();
//# sourceMappingURL=index.js.map