New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@loophq/onstore-sdk

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loophq/onstore-sdk - npm Package Compare versions

Comparing version 1.5.7 to 1.5.8

2

dist/loop-onstore-sdk.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.LoopOnstore=e():t.LoopOnstore=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=108)}([function(t,e,n){(function(e){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 e&&e)||Function("return this")()}).call(this,n(60))},function(t,e,n){var o=n(0),r=n(38),i=n(5),c=n(39),a=n(42),s=n(73),l=r("wks"),u=o.Symbol,p=s?u:c;t.exports=function(t){return i(l,t)||(a&&i(u,t)?l[t]=u[t]:l[t]=p("Symbol."+t)),l[t]}},function(t,e,n){var o=n(8);t.exports=function(t){if(!o(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(9),r=n(13),i=n(23);t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(3);t.exports=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(0),r=n(88),i=n(89),c=n(6),a=n(1),s=a("iterator"),l=a("toStringTag"),u=i.values;for(var p in r){var f=o[p],d=f&&f.prototype;if(d){if(d[s]!==u)try{c(d,s,u)}catch(t){d[s]=u}if(d[l]||c(d,l,p),r[p])for(var v in i)if(d[v]!==i[v])try{c(d,v,i[v])}catch(t){d[v]=i[v]}}}},function(t,e,n){var o=n(0),r=n(19).f,i=n(6),c=n(14),a=n(25),s=n(64),l=n(41);t.exports=function(t,e){var n,u,p,f,d,v=t.target,m=t.global,h=t.stat;if(n=m?o:h?o[v]||a(v,{}):(o[v]||{}).prototype)for(u in e){if(f=e[u],p=t.noTargetGet?(d=r(n,u))&&d.value:n[u],!l(m?u:v+(h?".":"#")+u,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;s(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),c(n,u,f,t)}}},function(t,e,n){var o=n(9),r=n(36),i=n(2),c=n(35),a=Object.defineProperty;e.f=o?a:function(t,e,n){if(i(t),e=c(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var o=n(0),r=n(6),i=n(5),c=n(25),a=n(26),s=n(27),l=s.get,u=s.enforce,p=String(String).split("String");(t.exports=function(t,e,n,a){var s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||r(n,"name",e),u(n).source=p.join("string"==typeof e?e:"")),t!==o?(s?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:r(t,e,n)):l?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},function(t,e){t.exports=!1},function(t,e,n){var o=n(66),r=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t])||i(r[t]):o[t]&&o[t][e]||r[t]&&r[t][e]}},function(t,e,n){var o=n(10),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,n){var o=n(9),r=n(61),i=n(23),c=n(20),a=n(35),s=n(5),l=n(36),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(t,e){if(t=c(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var o=n(62),r=n(4);t.exports=function(t){return o(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";var o,r,i,c,a=n(12),s=n(15),l=n(0),u=n(16),p=n(71),f=n(14),d=n(72),v=n(31),m=n(74),h=n(8),y=n(21),g=n(75),b=n(7),x=n(26),_=n(76),w=n(82),S=n(44),O=n(45).set,j=n(83),k=n(84),E=n(85),P=n(49),L=n(86),C=n(27),T=n(41),I=n(1),A=n(87),M=I("species"),D="Promise",R=C.get,N=C.set,F=C.getterFor(D),U=p,q=l.TypeError,B=l.document,H=l.process,z=u("fetch"),G=P.f,$=G,W="process"==b(H),J=!!(B&&B.createEvent&&l.dispatchEvent),K=T(D,(function(){if(!(x(U)!==String(U))){if(66===A)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype.finally)return!0;if(A>=51&&/native code/.test(U))return!1;var t=U.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[M]=e,!(t.then((function(){}))instanceof e)})),V=K||!w((function(t){U.all(t).catch((function(){}))})),Y=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e,n){if(!e.notified){e.notified=!0;var o=e.reactions;j((function(){for(var r=e.value,i=1==e.state,c=0;o.length>c;){var a,s,l,u=o[c++],p=i?u.ok:u.fail,f=u.resolve,d=u.reject,v=u.domain;try{p?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===p?a=r:(v&&v.enter(),a=p(r),v&&(v.exit(),l=!0)),a===u.promise?d(q("Promise-chain cycle")):(s=Y(a))?s.call(a,f,d):f(a)):d(r)}catch(t){v&&!l&&v.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Q(t,e)}))}},X=function(t,e,n){var o,r;J?((o=B.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),l.dispatchEvent(o)):o={promise:e,reason:n},(r=l["on"+t])?r(o):"unhandledrejection"===t&&E("Unhandled promise rejection",n)},Q=function(t,e){O.call(l,(function(){var n,o=e.value;if(tt(e)&&(n=L((function(){W?H.emit("unhandledRejection",o,t):X("unhandledrejection",t,o)})),e.rejection=W||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){O.call(l,(function(){W?H.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},nt=function(t,e,n,o){return function(r){t(e,n,r,o)}},ot=function(t,e,n,o){e.done||(e.done=!0,o&&(e=o),e.value=n,e.state=2,Z(t,e,!0))},rt=function(t,e,n,o){if(!e.done){e.done=!0,o&&(e=o);try{if(t===n)throw q("Promise can't be resolved itself");var r=Y(n);r?j((function(){var o={done:!1};try{r.call(n,nt(rt,t,o,e),nt(ot,t,o,e))}catch(n){ot(t,o,n,e)}})):(e.value=n,e.state=1,Z(t,e,!1))}catch(n){ot(t,{done:!1},n,e)}}};K&&(U=function(t){g(this,U,D),y(t),o.call(this);var e=R(this);try{t(nt(rt,this,e),nt(ot,this,e))}catch(t){ot(this,e,t)}},(o=function(t){N(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U.prototype,{then:function(t,e){var n=F(this),o=G(S(this,U));return o.ok="function"!=typeof t||t,o.fail="function"==typeof e&&e,o.domain=W?H.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&Z(this,n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new o,e=R(t);this.promise=t,this.resolve=nt(rt,t,e),this.reject=nt(ot,t,e)},P.f=G=function(t){return t===U||t===i?new r(t):$(t)},s||"function"!=typeof p||(c=p.prototype.then,f(p.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){c.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(U,z.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:K},{Promise:U}),v(U,D,!1,!0),m(D),i=u(D),a({target:D,stat:!0,forced:K},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),a({target:D,stat:!0,forced:s||K},{resolve:function(t){return k(s&&this===i?U:this,t)}}),a({target:D,stat:!0,forced:V},{all:function(t){var e=this,n=G(e),o=n.resolve,r=n.reject,i=L((function(){var n=y(e.resolve),i=[],c=0,a=1;_(t,(function(t){var s=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[s]=t,--a||o(i))}),r)})),--a||o(i)}));return i.error&&r(i.value),n.promise},race:function(t){var e=this,n=G(e),o=n.reject,r=L((function(){var r=y(e.resolve);_(t,(function(t){r.call(e,t).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(0),r=n(8),i=o.document,c=r(i)&&r(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var o=n(0),r=n(6);t.exports=function(t,e){try{r(o,t,e)}catch(n){o[t]=e}return e}},function(t,e,n){var o=n(37),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(t){return r.call(t)}),t.exports=o.inspectSource},function(t,e,n){var o,r,i,c=n(63),a=n(0),s=n(8),l=n(6),u=n(5),p=n(28),f=n(29),d=a.WeakMap;if(c){var v=new d,m=v.get,h=v.has,y=v.set;o=function(t,e){return y.call(v,t,e),e},r=function(t){return m.call(v,t)||{}},i=function(t){return h.call(v,t)}}else{var g=p("state");f[g]=!0,o=function(t,e){return l(t,g,e),e},r=function(t){return u(t,g)?t[g]:{}},i=function(t){return u(t,g)}}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var o=n(38),r=n(39),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var o=n(13).f,r=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var o=n(6),r=n(14),i=n(3),c=n(1),a=n(33),s=c("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,p){var f=c(t),d=!i((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),v=d&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!v||"replace"===t&&!l||"split"===t&&!u){var m=/./[f],h=n(f,""[t],(function(t,e,n,o,r){return e.exec===a?d&&!r?{done:!0,value:m.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),y=h[0],g=h[1];r(String.prototype,t,y),r(RegExp.prototype,f,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)}),p&&o(RegExp.prototype[f],"sham",!0)}}},function(t,e,n){"use strict";var o,r,i=n(102),c=RegExp.prototype.exec,a=String.prototype.replace,s=c,l=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(s=function(t){var e,n,o,r,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),l&&(e=s.lastIndex),o=c.call(s,t),l&&o&&(s.lastIndex=s.global?o.index+o[0].length:e),u&&o&&o.length>1&&a.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),t.exports=s},function(t,e,n){var o=n(7),r=n(33);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,n){var o=n(8);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var o=n(9),r=n(3),i=n(24);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var o=n(0),r=n(25),i=o["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=i},function(t,e,n){var o=n(15),r=n(37);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.5.0",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+o).toString(36)}},function(t,e,n){var o=n(5),r=n(20),i=n(68).indexOf,c=n(29);t.exports=function(t,e){var n,a=r(t),s=0,l=[];for(n in a)!o(c,n)&&o(a,n)&&l.push(n);for(;e.length>s;)o(a,n=e[s++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){var o=n(3),r=/#|\.prototype\./,i=function(t,e){var n=a[c(t)];return n==l||n!=s&&("function"==typeof e?o(e):!!e)},c=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},function(t,e,n){var o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(t,e,n){var o=n(21);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var o=n(2),r=n(21),i=n(1)("species");t.exports=function(t,e){var n,c=o(t).constructor;return void 0===c||null==(n=o(c)[i])?e:r(n)}},function(t,e,n){var o,r,i,c=n(0),a=n(3),s=n(7),l=n(43),u=n(46),p=n(24),f=n(47),d=c.location,v=c.setImmediate,m=c.clearImmediate,h=c.process,y=c.MessageChannel,g=c.Dispatch,b=0,x={},_=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},w=function(t){return function(){_(t)}},S=function(t){_(t.data)},O=function(t){c.postMessage(t+"",d.protocol+"//"+d.host)};v&&m||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(b),b},m=function(t){delete x[t]},"process"==s(h)?o=function(t){h.nextTick(w(t))}:g&&g.now?o=function(t){g.now(w(t))}:y&&!f?(i=(r=new y).port2,r.port1.onmessage=S,o=l(i.postMessage,i,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||a(O)?o="onreadystatechange"in p("script")?function(t){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),_(t)}}:function(t){setTimeout(w(t),0)}:(o=O,c.addEventListener("message",S,!1))),t.exports={set:v,clear:m}},function(t,e,n){var o=n(16);t.exports=o("document","documentElement")},function(t,e,n){var o=n(48);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(t,e,n){var o=n(16);t.exports=o("navigator","userAgent")||""},function(t,e,n){"use strict";var o=n(21),r=function(t){var e,n;this.promise=new t((function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)};t.exports.f=function(t){return new r(t)}},function(t,e,n){var o=n(2),r=n(91),i=n(30),c=n(29),a=n(46),s=n(24),l=n(28)("IE_PROTO"),u=function(){},p=function(){var t,e=s("iframe"),n=i.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),p=t.F;n--;)delete p.prototype[i[n]];return p()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=o(t),n=new u,u.prototype=null,n[l]=t):n=p(),void 0===e?n:r(n,e)},c[l]=!0},function(t,e,n){"use strict";var o,r,i,c=n(52),a=n(6),s=n(5),l=n(1),u=n(15),p=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(r=c(c(i)))!==Object.prototype&&(o=r):f=!0),null==o&&(o={}),u||s(o,p)||a(o,p,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var o=n(5),r=n(53),i=n(28),c=n(95),a=i("IE_PROTO"),s=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=r(t),o(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var o=n(4);t.exports=function(t){return Object(o(t))}},function(t,e,n){"use strict";var o=n(103).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},function(t,e,n){"use strict";var o=n(32),r=n(56),i=n(2),c=n(4),a=n(44),s=n(54),l=n(17),u=n(34),p=n(33),f=n(3),d=[].push,v=Math.min,m=!f((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(c(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[o];if(!r(t))return e.call(o,t,i);for(var a,s,l,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,f+"g");(a=p.call(m,o))&&!((s=m.lastIndex)>v&&(u.push(o.slice(v,a.index)),a.length>1&&a.index<o.length&&d.apply(u,a.slice(1)),l=a[0].length,v=s,u.length>=i));)m.lastIndex===a.index&&m.lastIndex++;return v===o.length?!l&&m.test("")||u.push(""):u.push(o.slice(v)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=c(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,r,n):o.call(String(r),e,n)},function(t,r){var c=n(o,t,this,r,o!==e);if(c.done)return c.value;var p=i(t),f=String(this),d=a(p,RegExp),h=p.unicode,y=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(m?"y":"g"),g=new d(m?p:"^(?:"+p.source+")",y),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===f.length)return null===u(g,f)?[f]:[];for(var x=0,_=0,w=[];_<f.length;){g.lastIndex=m?_:0;var S,O=u(g,m?f:f.slice(_));if(null===O||(S=v(l(g.lastIndex+(m?0:_)),f.length))===x)_=s(f,_,h);else{if(w.push(f.slice(x,_)),w.length===b)return w;for(var j=1;j<=O.length-1;j++)if(w.push(O[j]),w.length===b)return w;_=x=S}}return w.push(f.slice(x)),w}]}),!m)},function(t,e,n){var o=n(8),r=n(7),i=n(1)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},function(t,e,n){var o=n(56);t.exports=function(t){if(o(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var o=n(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t){t.exports=JSON.parse('{"a":"1.5.6"}')},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},function(t,e,n){var o=n(3),r=n(7),i="".split;t.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var o=n(0),r=n(26),i=o.WeakMap;t.exports="function"==typeof i&&/native code/.test(r(i))},function(t,e,n){var o=n(5),r=n(65),i=n(19),c=n(13);t.exports=function(t,e){for(var n=r(e),a=c.f,s=i.f,l=0;l<n.length;l++){var u=n[l];o(t,u)||a(t,u,s(e,u))}}},function(t,e,n){var o=n(16),r=n(67),i=n(70),c=n(2);t.exports=o("Reflect","ownKeys")||function(t){var e=r.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var o=n(0);t.exports=o},function(t,e,n){var o=n(40),r=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){var o=n(20),r=n(17),i=n(69),c=function(t){return function(e,n,c){var a,s=o(e),l=r(s.length),u=i(c,l);if(t&&n!=n){for(;l>u;)if((a=s[u++])!=a)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,e,n){var o=n(10),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(0);t.exports=o.Promise},function(t,e,n){var o=n(14);t.exports=function(t,e,n){for(var r in e)o(t,r,e[r],n);return t}},function(t,e,n){var o=n(42);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol()},function(t,e,n){"use strict";var o=n(16),r=n(13),i=n(1),c=n(9),a=i("species");t.exports=function(t){var e=o(t),n=r.f;c&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var o=n(2),r=n(77),i=n(17),c=n(43),a=n(78),s=n(81),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,u,p){var f,d,v,m,h,y,g,b=c(e,n,u?2:1);if(p)f=t;else{if("function"!=typeof(d=a(t)))throw TypeError("Target is not iterable");if(r(d)){for(v=0,m=i(t.length);m>v;v++)if((h=u?b(o(g=t[v])[0],g[1]):b(t[v]))&&h instanceof l)return h;return new l(!1)}f=d.call(t)}for(y=f.next;!(g=y.call(f)).done;)if("object"==typeof(h=s(f,b,g.value,u))&&h&&h instanceof l)return h;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){var o=n(1),r=n(18),i=o("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||c[i]===t)}},function(t,e,n){var o=n(79),r=n(18),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||r[o(t)]}},function(t,e,n){var o=n(80),r=n(7),i=n(1)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=o?r:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:c?r(e):"Object"==(o=r(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e,n){var o={};o[n(1)("toStringTag")]="z",t.exports="[object z]"===String(o)},function(t,e,n){var o=n(2);t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},function(t,e,n){var o=n(1)("iterator"),r=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){r=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var o,r,i,c,a,s,l,u,p=n(0),f=n(19).f,d=n(7),v=n(45).set,m=n(47),h=p.MutationObserver||p.WebKitMutationObserver,y=p.process,g=p.Promise,b="process"==d(y),x=f(p,"queueMicrotask"),_=x&&x.value;_||(o=function(){var t,e;for(b&&(t=y.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?c():i=void 0,t}}i=void 0,t&&t.enter()},b?c=function(){y.nextTick(o)}:h&&!m?(a=!0,s=document.createTextNode(""),new h(o).observe(s,{characterData:!0}),c=function(){s.data=a=!a}):g&&g.resolve?(l=g.resolve(void 0),u=l.then,c=function(){u.call(l,o)}):c=function(){v.call(p,o)}),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),r||(r=e,c()),i=e}},function(t,e,n){var o=n(2),r=n(8),i=n(49);t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var o=n(0);t.exports=function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var o,r,i=n(0),c=n(48),a=i.process,s=a&&a.versions,l=s&&s.v8;l?r=(o=l.split("."))[0]+o[1]:c&&(!(o=c.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=c.match(/Chrome\/(\d+)/))&&(r=o[1]),t.exports=r&&+r},function(t,e){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}},function(t,e,n){"use strict";var o=n(20),r=n(90),i=n(18),c=n(27),a=n(93),s=c.set,l=c.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){s(this,{type:"Array Iterator",target:o(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var o=n(1),r=n(50),i=n(6),c=o("unscopables"),a=Array.prototype;null==a[c]&&i(a,c,r(null)),t.exports=function(t){a[c][t]=!0}},function(t,e,n){var o=n(9),r=n(13),i=n(2),c=n(92);t.exports=o?Object.defineProperties:function(t,e){i(t);for(var n,o=c(e),a=o.length,s=0;a>s;)r.f(t,n=o[s++],e[n]);return t}},function(t,e,n){var o=n(40),r=n(30);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){"use strict";var o=n(12),r=n(94),i=n(52),c=n(96),a=n(31),s=n(6),l=n(14),u=n(1),p=n(15),f=n(18),d=n(51),v=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,h=u("iterator"),y=function(){return this};t.exports=function(t,e,n,u,d,g,b){r(n,e,u);var x,_,w,S=function(t){if(t===d&&P)return P;if(!m&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",j=!1,k=t.prototype,E=k[h]||k["@@iterator"]||d&&k[d],P=!m&&E||S(d),L="Array"==e&&k.entries||E;if(L&&(x=i(L.call(new t)),v!==Object.prototype&&x.next&&(p||i(x)===v||(c?c(x,v):"function"!=typeof x[h]&&s(x,h,y)),a(x,O,!0,!0),p&&(f[O]=y))),"values"==d&&E&&"values"!==E.name&&(j=!0,P=function(){return E.call(this)}),p&&!b||k[h]===P||s(k,h,P),f[e]=P,d)if(_={values:S("values"),keys:g?P:S("keys"),entries:S("entries")},b)for(w in _)!m&&!j&&w in k||l(k,w,_[w]);else o({target:e,proto:!0,forced:m||j},_);return _}},function(t,e,n){"use strict";var o=n(51).IteratorPrototype,r=n(50),i=n(23),c=n(31),a=n(18),s=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=r(o,{next:i(1,n)}),c(t,l,!1,!0),a[l]=s,t}},function(t,e,n){var o=n(3);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var o=n(2),r=n(97);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),r(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var o=n(8);t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){"use strict";var o=n(12),r=n(10),i=n(99),c=n(100),a=n(3),s=1..toFixed,l=Math.floor,u=function(t,e,n){return 0===e?n:e%2==1?u(t,e-1,n*t):u(t*t,e/2,n)};o({target:"Number",proto:!0,forced:s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){s.call({})}))},{toFixed:function(t){var e,n,o,a,s=i(this),p=r(t),f=[0,0,0,0,0,0],d="",v="0",m=function(t,e){for(var n=-1,o=e;++n<6;)o+=t*f[n],f[n]=o%1e7,o=l(o/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=f[e],f[e]=l(n/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==f[t]){var n=String(f[t]);e=""===e?n:e+c.call("0",7-n.length)+n}return e};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*u(2,69,1))-69)<0?s*u(2,-e,1):s/u(2,e,1),n*=4503599627370496,(e=52-e)>0){for(m(0,n),o=p;o>=7;)m(1e7,0),o-=7;for(m(u(10,o,1),0),o=e-1;o>=23;)h(1<<23),o-=23;h(1<<o),m(1,1),h(2),v=y()}else m(0,n),m(1<<-e,0),v=y()+c.call("0",p);return v=p>0?d+((a=v.length)<=p?"0."+c.call("0",p-a)+v:v.slice(0,a-p)+"."+v.slice(a-p)):d+v}})},function(t,e,n){var o=n(7);t.exports=function(t){if("number"!=typeof t&&"Number"!=o(t))throw TypeError("Incorrect invocation");return+t}},function(t,e,n){"use strict";var o=n(10),r=n(4);t.exports="".repeat||function(t){var e=String(r(this)),n="",i=o(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){"use strict";var o=n(32),r=n(2),i=n(53),c=n(17),a=n(10),s=n(4),l=n(54),u=n(34),p=Math.max,f=Math.min,d=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(t,e,n){return[function(n,o){var r=s(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r,o):e.call(String(r),n,o)},function(t,i){var s=n(e,t,this,i);if(s.done)return s.value;var d=r(t),v=String(this),m="function"==typeof i;m||(i=String(i));var h=d.global;if(h){var y=d.unicode;d.lastIndex=0}for(var g=[];;){var b=u(d,v);if(null===b)break;if(g.push(b),!h)break;""===String(b[0])&&(d.lastIndex=l(v,c(d.lastIndex),y))}for(var x,_="",w=0,S=0;S<g.length;S++){b=g[S];for(var O=String(b[0]),j=p(f(a(b.index),v.length),0),k=[],E=1;E<b.length;E++)k.push(void 0===(x=b[E])?x:String(x));var P=b.groups;if(m){var L=[O].concat(k,j,v);void 0!==P&&L.push(P);var C=String(i.apply(void 0,L))}else C=o(O,v,j,k,P,i);j>=w&&(_+=v.slice(w,j)+C,w=j+O.length)}return _+v.slice(w)}];function o(t,n,o,r,c,a){var s=o+t.length,l=r.length,u=m;return void 0!==c&&(c=i(c),u=v),e.call(a,u,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,o);case"'":return n.slice(s);case"<":a=c[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>l){var p=d(u/10);return 0===p?e:p<=l?void 0===r[p-1]?i.charAt(1):r[p-1]+i.charAt(1):e}a=r[u-1]}return void 0===a?"":a}))}}))},function(t,e,n){"use strict";var o=n(2);t.exports=function(){var t=o(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var o=n(10),r=n(4),i=function(t){return function(e,n){var i,c,a=String(r(e)),s=o(n),l=a.length;return s<0||s>=l?t?"":void 0:(i=a.charCodeAt(s))<55296||i>56319||s+1===l||(c=a.charCodeAt(s+1))<56320||c>57343?t?a.charAt(s):i:t?a.slice(s,s+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var o=n(12),r=n(57),i=n(4);o({target:"String",proto:!0,forced:!n(58)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var o=n(32),r=n(2),i=n(4),c=n(106),a=n(34);o("search",1,(function(t,e,n){return[function(e){var n=i(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,n):new RegExp(e)[t](String(n))},function(t){var o=n(e,t,this);if(o.done)return o.value;var i=r(t),s=String(this),l=i.lastIndex;c(l,0)||(i.lastIndex=0);var u=a(i,s);return c(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var o,r=n(12),i=n(19).f,c=n(17),a=n(57),s=n(4),l=n(58),u=n(15),p="".startsWith,f=Math.min,d=l("startsWith");r({target:"String",proto:!0,forced:!!(u||d||(o=i(String.prototype,"startsWith"),!o||o.writable))&&!d},{startsWith:function(t){var e=String(s(this));a(t);var n=c(f(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return p?p.call(e,o,n):e.slice(n,n+o.length)===o}})},function(t,e,n){"use strict";n.r(e);n(22),n(11);var o={get:(t="loop-onstore-data")=>JSON.parse(localStorage.getItem(t)||null),set(t,e="loop-onstore-data"){localStorage.setItem(e,JSON.stringify(t))},remove(t="loop-onstore-data"){localStorage.removeItem(t)}};function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let c={debug:!1,testMode:!1,redirect:!0,active:!1,params:null,key:null,api:null,token:null,id:null,fullPayload:!1,preserveCart:!1,draftOrderId:null,inExperiment:!1,singleItem:!1,attach:null,isEmbeddedPortal:!1};const a=t=>t?c[t]:c,s=(t,e)=>{c[t]=e,o.set(c)},l=()=>{const t=o.get();t&&(c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},c,{},t))};var u=new Proxy({},{get:(t,e)=>!t[e]&&a("debug")?t=>"string"==typeof t?console[e]("%c".concat(t),"color: #3256E6"):console[e](t):t[e]||function(){}});class p extends HTMLElement{constructor(){super()}connectedCallback(){var t;if(!LoopOnstore.isActive()||!a("inExperiment"))return;const e=a("attach");(null!==(t=document.querySelectorAll(e))&&void 0!==t?t:[]).forEach(t=>t.remove());const n=this.buildBtnContainer();this.attachShadow({mode:"open"}).appendChild(n)}buildBtnContainer(){const t=document.createElement("div");t.className="loop-onstore-btn-container",t.style="display:flex; flex-direction: column; gap: 1rem;";const e=this.buildCheckoutBtn(),n=this.buildAddMoreBtn();return t.appendChild(e),a("singleItem")||t.appendChild(n),t}buildAddMoreBtn(){const t=document.createElement("button");return t.textContent="Select more items to return",t.part="loop-onstore-add-more-btn",t.addEventListener("click",this.handleAddMore),t}buildCheckoutBtn(){const t=document.createElement("button");return t.textContent="Checkout",t.part="loop-onstore-checkout-btn",t.addEventListener("click",this.handleCheckout),t}handleCheckout(){LoopOnstore.submit()}handleAddMore(){LoopOnstore.submit(null,"lineItems")}}const f=t=>{if((t=>t instanceof HTMLElement||t instanceof Array&&t.some(t=>t instanceof HTMLElement))(t)){if(!(t instanceof Array))return[t];const e=t.filter(t=>t instanceof HTMLElement),n=t.filter(t=>!(t instanceof HTMLElement));return[...e,...document.querySelectorAll(n)]}return[...document.querySelectorAll(t)]},d=(t,e)=>{const n=f(t);return n.length>1&&u.warn("Attaching Loop.submit() to more than one element. Make sure you're using the right selector!"),n.forEach(t=>{t.addEventListener("click",e)}),customElements.get("loop-onstore")||customElements.define("loop-onstore",p),n};n(98),n(101),n(55);const v={JPY:{constant:1,decimals:0,decimalSymbol:"",thousandSymbol:",",symbol:"¥"},GBP:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"£"},EUR:{constant:100,decimals:2,decimalSymbol:",",thousandSymbol:".",symbol:"€"},USD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},CAD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},AUD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},HKD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},NZD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},SGD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"}},m=(t,e="USD")=>{if(!t)return"";const n=v[e];if(n){const{dollars:e,cents:o}=((t,e)=>{const[n,o]=Number.parseFloat(t/e.constant).toFixed(e.decimals).split(".");return{dollars:n?n.replace(/\B(?=(\d{3})+(?!\d))/g,e.thousandSymbol):"0",cents:o||""}})(t,n);return"".concat(n.symbol).concat(e).concat(n.decimalSymbol).concat(o)}return new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t/n.constant)};function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b=()=>{var t;return null!==(t=a("api"))&&void 0!==t?t:"https://api.loopreturns.com/api/v1/"},x=t=>{const{token:e,total_discount:n,original_total_price:o,total_price:r,items:i,currency:c,items_subtotal_price:a,cart_level_discount_applications:s}=t;return(t=>{const e="object"==typeof t&&null!==t?JSON.stringify(t):String(t);return window.btoa(unescape(encodeURIComponent(e)))})({token:e,total_discount:n,original_total_price:o,total_price:r,items:i.map(t=>{const{id:e,quantity:n,variant_id:o,price:r,original_price:i,discounted_price:c,original_line_price:a,line_price:s,total_discount:l,final_price:u,final_line_price:p,taxable:f,product_id:d,discount_allocations:v,line_level_discount_allocations:m}=t;return{id:e,quantity:n,variant_id:o,price:r,original_price:i,discounted_price:c,original_line_price:a,line_price:s,total_discount:l,final_price:u,final_line_price:p,taxable:f,product_id:d,discount_allocations:v,line_level_discount_allocations:m}}),currency:c,items_subtotal_price:a,cart_level_discount_applications:s})},_=(t,e="GET",n)=>{const o=a("key");return new Promise(r=>{const i=null!=n?JSON.stringify(n):null;var c=new XMLHttpRequest;c.withCredentials=!0,c.addEventListener("readystatechange",(function(){this.readyState===this.DONE&&r(JSON.parse(this.responseText))})),c.open(e,t),""!==o&&c.setRequestHeader("x-authorization",o),c.setRequestHeader("content-type","application/json"),c.send(i)})},w=()=>{return _("/cart.js")},S=()=>{return _("/cart/clear.js","POST")};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k=(t,e)=>{u.info("Creating cart request..."),u.info("Syncing these variants to the Loop cart:"),u.info(t);const n=a("token");return n?((t,e,n)=>{const o=b(),r="".concat(o,"cart/").concat(t);let i={};return a("fullPayload")&&(i={shopify:x(n)}),_(r,"POST",y({cart:e,draftOrderId:a("draftOrderId")},i))})(n,t,e).then(t=>(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t})({},t,{token:n})):((t,e)=>{const n=b(),o="".concat(n,"cart/");let r={};return a("fullPayload")&&(r={shopify:x(e)}),_(o,"POST",y({cart:t,draftOrderId:a("draftOrderId")},r))})(t,e)};n(104),n(105),n(107);function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const L=t=>{const e=Number(t);return Number.isNaN(e)?t:e};var C={get:(t=window.location.search)=>t.substr(1).split("&").reduce((t,e)=>{const[n,o]=decodeURIComponent(e).split("=");return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){P(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{[n]:L(o)})},{}),hasLoopData:(t=window.location.search)=>t.includes("loop_total"),getKeys:(t,e="loop")=>Object.keys(t).filter(t=>t.startsWith(e)),clear(t=[]){const e=Object.entries(this.get()).reduce((e,[n,o])=>{if(t.includes(n))return e;const r=e.length?"&":"?";return"".concat(e).concat(r).concat(encodeURIComponent(n),"=").concat(encodeURIComponent(o))},"");window.history.replaceState({},"","".concat(window.location.origin).concat(window.location.pathname).concat(e))}};const T={credit:{container:".loop-onstore__credit",amount:".loop-onstore__credit-amount"},percentDiscount:{container:".loop-onstore__percent-discount",amount:".loop-onstore__percent-discount-amount"}};var I=(t,e={})=>{if(t)return t;const n=((t={})=>{const e=document.createElement("div");e.classList.add("loop-onstore"),e.id="loop-onstore",e.innerHTML='\n <div class="loop-onstore__percent-discount">\n <span class="loop-onstore__percent-discount-amount"></span>\n <span class="loop-onstore__copy loop-onstore__percent-discount-copy">\n applied at checkout\n </span>\n </div>\n <div class="loop-onstore__credit">\n <span class="loop-onstore__amount loop-onstore__credit-amount"></span>\n <span class="loop-onstore__copy loop-onstore__credit-copy">\n in available credit\n </span>\n <span class="loop-onstore__copy loop-onstore__mobile-credit-copy">\n credit\n </span>\n </div>\n <button class="loop-onstore__back">\n <svg \n class="loop-onstore__back-icon"\n width="16"\n height="16"\n viewBox="0 0 16 16"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M12.6667 8H3.33333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 12.6666L3.33333 7.99998L8 3.33331" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg> \n <span>Go back</span>\n </button>\n\n',Object.keys(t).forEach(n=>{const o=t[n],r=T[n];if(r&&o){const t=e.querySelector(r.container);if(t){t.style.display="flex";const e=t.querySelector(r.amount);e&&o.amount&&(e.textContent=o.amount)}}});const n=e.querySelector(".loop-onstore__back");return n&&n.addEventListener("click",async()=>{const t=await w(),e=t.items.reduce((t,e)=>[...t,...Array(e.quantity).fill(e.variant_id)],[]),n=await k(e,t);LoopOnstore.backToLoop(n.token,"lineItems")}),e})(e);return document.body.appendChild(n)};const A=t=>1===document.querySelectorAll(t).length,M=t=>{let e=t.nodeName.toLowerCase();const n=(t=>{if(t.classList.length>0){const e=Array.from(t.classList);let n="";for(const t of e)if(n+=".".concat(t),A(n))return n}return""})(t);if(n)return n;if(t.id&&A("#".concat(t.id)))return"#".concat(t.id);const o=((t,e)=>{for(let n of e)if(t.hasAttribute(n)){let e="[".concat(n,'="').concat(t.getAttribute(n),'"]');if(A(e))return e}return""})(t,["name","type","alt","title","value"]);if(o&&(e+=o),!o){let n=t.parentNode;if(!n)return e;let o=Array.prototype.indexOf.call(n.children,t)+1;return M(n)+" > "+e+":nth-child(".concat(o,")")}return e};var D=function(){const t=e=>{e.preventDefault(),console.log(M(e.target)),console.log("Disabling LoopOnstore inspector."),window.removeEventListener("click",t)};console.log("Enabling LoopOnstore inspector. Click your checkout button to generate a unique selector."),window.addEventListener("click",t)},R=n(59);n.d(e,"init",(function(){return F})),n.d(e,"testMode",(function(){return U})),n.d(e,"testModeNewShopperFlow",(function(){return q})),n.d(e,"testModeOff",(function(){return B})),n.d(e,"submit",(function(){return G})),n.d(e,"attach",(function(){return $})),n.d(e,"debug",(function(){return H})),n.d(e,"setKey",(function(){return z})),n.d(e,"backToLoop",(function(){return W})),n.d(e,"isActive",(function(){return J})),n.d(e,"info",(function(){return K})),n.d(e,"inspect",(function(){return D}));const N={bar:null,attached:[]},F=async t=>{if(l(),null==t?void 0:t.key)z(t.key);else if(!a("key"))throw new Error("Loop Returns on-store API requires an API key.");(null==t?void 0:t.api)&&(u.info("Setting api to ".concat(t.api,".")),s("api",t.api)),(null==t?void 0:t.preserveCart)&&(u.info("Setting preserve cart to ".concat(t.preserveCart)),s("preserveCart",t.preserveCart));const e=C.get();if(C.hasLoopData()){var n,o,r;a("id")!==e.loop_return_id&&s("token",null),s("params",e),s("id",e.loop_return_id),s("inExperiment",null!==(n=Boolean("true"===(null==e?void 0:e.loop_experiment_b_eligible)))&&void 0!==n&&n),s("singleItem",null!==(o=Boolean("true"===(null==e?void 0:e.loop_single_item_eligible)))&&void 0!==o&&o),s("isEmbeddedPortal",null!==(r=Boolean("true"===(null==e?void 0:e.loop_embedded_portal)))&&void 0!==r&&r),a("inExperiment")&&s("preserveCart",!0),C.clear(C.getKeys(e)),await S();const t=a("token");if(t)try{const{cart:e}=await(t=>{const e=b(),n="".concat(e,"cart/").concat(t);return _(n)})(t);await(t=>{if(!(null==t?void 0:t.length))return S();const e=t.reduce((t,e)=>t[e]?y({},t,{[e]:t[e]+1}):y({},t,{[e]:1}),{});return _("/cart/update.js","POST",{updates:e})})(e),u.info("Updating Shopify cart to match loop cart."),document.dispatchEvent(new Event("Loop:Cart Update"))}catch(t){u.warn("Unable to reboot cart"),u.error(t)}}const i=a("params");if(i){var c,p;s("active",!0),document.body.classList.add("loop-returns-activated");const t={};null!==(c=i.loop_total)&&void 0!==c&&c&&(t.credit={amount:m(i.loop_total,i.loop_currency)}),null!==(p=i.loop_discount_percentage)&&void 0!==p&&p&&(t.percentDiscount={amount:i.loop_discount_percentage+"% off"});const e=I(null,t);(()=>{const t=document.createElement("style");t.type="text/css",t.innerText="\n:root {\n --loop-primary-color: #030712;\n --loop-text-color: white;\n --loop-badge-background: #F9FAFB;\n --loop-badge-text: #374151;\n --loop-button-background: white;\n --loop-button-text: #1F2937;\n --loop-button-border: #D1D5DB;\n \n --loop-onstore-button-padding: 14px 16px;\n --loop-onstore-checkout-background: #030712;\n --loop-onstore-checkout-text-color: white;\n --loop-onstore-button-radius: 0;\n --loop-onstore-button-gap: 0.25rem;\n --loop-onstore-add-more-background: white;\n --loop-onstore-add-more-text-color: black;\n --loop-onstore-add-more-border: black;\n --loop-onstore-casing: uppercase;\n}\n.loop-returns-activated .loop-onstore {\n transform: translateY(0);\n display: flex;\n}\n.loop-onstore {\n box-sizing: border-box;\n width: 100%;\n position: fixed;\n display: none;\n align-items: center;\n justify-content: space-between;\n top: auto !important;\n bottom: 0 !important;\n left: 0;\n z-index: 2147483647;\n background-color: var(--loop-primary-color);\n color: var(--loop-text-color);\n font-family: 'SF Pro Text', untitled sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !important;\n transform: translateY(100%);\n transition: transform .2s;\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 1rem 1.5rem;\n}\n.loop-onstore *, .loop-onstore *::before, .loop-onstore *::after {\n box-sizing: inherit;\n}\n.loop-onstore__credit {\n display: none;\n align-items: flex-start;\n gap: 0.25rem;\n}\n.loop-onstore__credit-amount {\n font-weight: 600;\n}\n.loop-onstore__mobile-credit-copy {\n display: none;\n}\n.loop-onstore__percent-discount {\n display: none;\n align-items: flex-start;\n gap: 0.5rem; \n}\n.loop-onstore__percent-discount-amount {\n display: flex;\n padding: 0.125rem 0.5rem;\n justify-content: center;\n align-items: center;\n gap: 0.375rem;\n border-radius: 100px;\n background: var(--loop-badge-background);\n font-weight: 600;\n font-size: 0.75rem;\n color: var(--loop-badge-text);\n}\n.loop-onstore__percent-discount-copy {\n text-align: center;\n}\n.loop-onstore__back {\n color: var(--loop-button-text);\n background: var(--loop-button-background);\n border: none;\n appearance: none;\n transition: all .2s;\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.5rem;\n border-radius: 0.5rem;\n border: 1px solid var(--loop-button-border);\n display: flex;\n padding: 0.5rem 1rem;\n align-items: center;\n gap: 0.25rem; \n cursor: pointer;\n}\n.loop-onstore__back:hover {\n opacity: .7;\n}\n.loop-onstore__back-icon path {\n stroke: var(--loop-button-text); \n}\n\n.loop-returns-modal {\n font-family: 'SF Pro Text', untitled sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji !important;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-style: normal;\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n }\n\n .loop-returns-modal__backdrop{\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(65, 69, 74, 0.7);\n }\n\n .loop-returns-modal__content {\n overflow: auto;\n max-height: 600px;\n background-color: #fff;\n box-shadow: 0px 1px 4px rgb(0 0 0 / 12%), 0px 6px 12px rgb(0 0 0 / 8%);\n border-radius: 8px;\n width: 500px;\n max-width: 700px;\n position: relative;\n z-index: 1000;\n }\n\n .loop-returns-modal__header {\n color: #3256E5;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 15px 20px;\n border-bottom: 1px solid #EAEAEA;\n font-size: 1.25rem;\n font-weight: 500;\n }\n\n .loop-returns-modal__close--icon {\n height: 20px;\n width: 20px;\n cursor: pointer;\n }\n\n .loop-returns-modal__body {\n padding: 20px;\n }\n\n loop-onstore {\n flex: 1;\n }\n\n loop-onstore::part(loop-onstore-checkout-btn) {\n padding: var(--loop-onstore-button-padding);\n background: var(--loop-primary-color);\n color: var(--loop-onstore-checkout-text-color);\n border-radius: var(--loop-onstore-button-radius);\n cursor: pointer;\n font-weight: 500;\n text-transform: var(--loop-onstore-casing);\n }\n\n loop-onstore::part(loop-onstore-add-more-btn) {\n padding: var(--loop-onstore-button-padding);\n background: transparent;\n border: 1px solid var(--loop-onstore-add-more-border);\n border-radius: var(--loop-onstore-button-radius);\n color: var(--loop-onstore-add-more-text-color);\n cursor: pointer;\n font-weight: 500;\n text-transform: var(--loop-onstore-casing);\n }\n\n@media screen and (max-width: 680px) {\n .loop-onstore {\n z-index: 200;\n bottom: 3.2rem;\n padding: 1rem 1.5rem;\n }\n .loop-onstore__mobile-credit-copy {\n display: block;\n }\n .loop-onstore__credit-copy {\n display: none;\n }\n .loop-onstore__percent-discount-copy {\n display: none;\n }\n .loop-onstore__back {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n}\n",document.head.appendChild(t)})(),N.bar=e,u.info("Loop returns activated"),document.dispatchEvent(new Event("Loop:Activated"))}(null==t?void 0:t.attach)&&(s("attach",null==t?void 0:t.attach),$(t.attach)),(null==t?void 0:t.full)&&s("fullPayload",null==t?void 0:t.full)},U=(t=!0)=>{s("debug",!0),s("testMode",!0),u.info("Test mode activated"),s("redirect",t),window.location="".concat(window.location.origin).concat(window.location.pathname,"?loop_domain=example.loopreturns.com&loop_return_id=this-is-a-test&loop_currency=USD&loop_total=12099&loop_discount_percentage=25&loop_base=799&loop_credit=500&loop_subdomain=example&loop_redirect_url=example.loopreturns.com%2F%23%2Fcredit&loop_customer_name=Jane%20Doe")},q=()=>{s("debug",!0),u.info("Test mode Flow B activated"),s("testMode",!0),s("redirect",!1),window.location="".concat(window.location.origin).concat(window.location.pathname,"?loop_domain=example.loopreturns.com&loop_return_id=this-is-a-test&loop_currency=USD&loop_total=12099&loop_discount_percentage=25&loop_base=799&loop_credit=500&loop_subdomain=example&loop_redirect_url=example.loopreturns.com%2F%23%2Fcredit&loop_customer_name=Jane%20Doe&loop_experiment_b_eligible=true&loop_single_item_eligible=false")},B=()=>{s("debug",!1),s("testMode",!1),u.info("Test mode deactivated"),s("redirect",!0),localStorage.removeItem("loop-onstore-data"),window.location.reload()},H=()=>{const t=!a("debug");return s("debug",t),"Debug ".concat(t?"on":"off")},z=t=>{if(!t||"string"!=typeof t)return console.error("Your api key is either undefined or not a string.");s("key",t),u.info("Loop Returns on-store API key set.")},G=async(t,e=null)=>{let n=null;t||(u.info("Requesting updated cart from Shopify"),n=await w(),t=n.items.reduce((t,e)=>[...t,...Array(e.quantity).fill(e.variant_id)],[]));try{var o;if(window.stackableService&&"function"==typeof(null===(o=window.stackableService)||void 0===o?void 0:o.send)){window.stackableService.send({type:"checkout",data:{preventRedirect:!0}});let t=0;await(async()=>await new Promise(e=>{const n=setInterval(()=>{(window.stackableService.state.context.draftOrderId||6===t)&&(e(),clearInterval(n)),t++},500)}))(),s("draftOrderId",window.stackableService.state.context.draftOrderId)}const r=await k(t,n);return s("token",r.token),a("preserveCart")||await S(),W(r.token,e),Promise.resolve(r.token)}catch(t){return u.info("Unable to create Loop Returns cart:"),u.error(t),Promise.reject(t)}},$=t=>{if(a("active")){u.info('Loop attaching to: "'.concat(t,'"'));const e=async t=>{if(a("active")){t.stopImmediatePropagation(),t.preventDefault(),t.target.disabled=!0,t.target.classList.add("loop-activated");try{await G(),t.target.disabled=!1,t.target.classList.remove("loop-activated")}catch(e){t.target.disabled=!1,t.target.classList.remove("loop-activated")}}};N.attached=d(t,e),new MutationObserver(n=>{const o=((t,e)=>t.filter(t=>t[e].length).reduce((t,n)=>[...t,...n[e]],[]))(n,"addedNodes");let r=t;if(t instanceof HTMLElement&&(r=[]),t instanceof Array&&(r=t.filter(t=>!(t instanceof HTMLElement))),o.length){o.some(t=>{var e;return!(null===(e=r)||void 0===e||!e.length)&&(t&&1===t.nodeType&&(t.matches(r)||(null==t?void 0:t.querySelector(r))))})&&(((t,e)=>{t.forEach(t=>{t.removeEventListener("click",e)})})(N.attached,e),N.attached=d(t,e),u.info('Loop reattached to: "'.concat(t,'"')))}}).observe(document.body,{childList:!0,subtree:!0})}},W=(t,e=null)=>{const n=a("testMode");s("active",!1);const o=a("params"),r=a("isEmbeddedPortal");let i="http://".concat(o.loop_redirect_url);if(t&&o.loop_return_key?i="http://".concat(o.loop_domain,"/#/cart/v2/").concat(t,"/").concat(o.loop_return_key):t&&(i="http://".concat(o.loop_domain,"/#/cart/v2/").concat(t).concat(e?"?to="+e:"")),r&&(i="".concat(window.location.origin,"/apps/returns?token=").concat(t).concat(e?"&to="+e:"")),s("params",null),u.info("Redirecting to:"),u.info(i),document.dispatchEvent(new Event("Loop:Back To Loop")),n)return(()=>{document.body.style.overflow="hidden";const t=document.createElement("div");t.classList.add("loop-returns-modal"),t.innerHTML='\n <div class="loop-returns-modal">\n <div class="loop-returns-modal__backdrop"></div>\n <div class="loop-returns-modal__content">\n <div class="loop-returns-modal__header">\n <div class="loop-returns-modal__text">Loop Onstore Installed</div>\n <div class="loop-returns-modal__close">\n <svg class="loop-returns-modal__close--icon width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M0 7.50024C0 3.36474 3.3645 0.000244141 7.5 0.000244141C11.6355 0.000244141 15 3.36474 15 7.50024C15 11.6357 11.6355 15.0002 7.5 15.0002C3.3645 15.0002 0 11.6357 0 7.50024ZM5.78025 4.71999C5.6388 4.58338 5.44935 4.50778 5.2527 4.50949C5.05605 4.5112 4.86794 4.59007 4.72889 4.72913C4.58983 4.86819 4.51095 5.0563 4.50924 5.25294C4.50754 5.44959 4.58313 5.63904 4.71975 5.78049L6.4395 7.50024L4.71975 9.21999C4.64812 9.28918 4.59098 9.37194 4.55167 9.46344C4.51237 9.55494 4.49168 9.65336 4.49081 9.75294C4.48995 9.85253 4.50892 9.95129 4.54663 10.0435C4.58434 10.1356 4.64003 10.2194 4.71045 10.2898C4.78087 10.3602 4.86461 10.4159 4.95678 10.4536C5.04896 10.4913 5.14772 10.5103 5.2473 10.5094C5.34689 10.5086 5.4453 10.4879 5.5368 10.4486C5.62831 10.4093 5.71106 10.3521 5.78025 10.2805L7.5 8.56074L9.21975 10.2805C9.3612 10.4171 9.55065 10.4927 9.7473 10.491C9.94395 10.4893 10.1321 10.4104 10.2711 10.2714C10.4102 10.1323 10.489 9.94419 10.4908 9.74754C10.4925 9.5509 10.4169 9.36145 10.2802 9.21999L8.5605 7.50024L10.2802 5.78049C10.4169 5.63904 10.4925 5.44959 10.4908 5.25294C10.489 5.0563 10.4102 4.86819 10.2711 4.72913C10.1321 4.59007 9.94395 4.5112 9.7473 4.50949C9.55065 4.50778 9.3612 4.58338 9.21975 4.71999L7.5 6.43974L5.78025 4.71999Z"\n fill="black" />\n </svg>\n </div>\n </div>\n <div class="loop-returns-modal__body">\n Test Mode Successful\n </div>\n </div>\n </div>\n </div>',document.body.appendChild(t);const e=document.querySelector(".loop-returns-modal__close"),n=document.querySelector(".loop-returns-modal__backdrop"),o=e=>{"Escape"===e.key&&(t.remove(),document.removeEventListener("keydown",o))};document.addEventListener("keydown",o),null==e||e.addEventListener("click",()=>{t.remove(),document.removeEventListener("keydown",o),document.body.style.overflow="auto"}),null==n||n.addEventListener("click",()=>{t.remove(),document.removeEventListener("keydown",o),document.body.style.overflow="auto"})})(),void s("testMode",!1);a("redirect")&&(window.location.href=i)},J=()=>a("active"),K=()=>{var t,e,n,o;console.log("Using SDK version:",R.a),console.log("API Key Last 4:",null!==(t=null===(e=a("key"))||void 0===e?void 0:e.slice(-4))&&void 0!==t?t:"No key set"),console.log("Attached To:",null!==(n=a("attach"))&&void 0!==n?n:"No selector set"),console.log("Portal Embedded:",null!==(o=a("isEmbeddedPortal"))&&void 0!==o&&o)}}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.LoopOnstore=e():t.LoopOnstore=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=108)}([function(t,e,n){(function(e){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 e&&e)||Function("return this")()}).call(this,n(60))},function(t,e,n){var o=n(0),r=n(38),i=n(5),c=n(39),a=n(42),s=n(73),l=r("wks"),u=o.Symbol,p=s?u:c;t.exports=function(t){return i(l,t)||(a&&i(u,t)?l[t]=u[t]:l[t]=p("Symbol."+t)),l[t]}},function(t,e,n){var o=n(8);t.exports=function(t){if(!o(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(9),r=n(13),i=n(23);t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(3);t.exports=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(0),r=n(88),i=n(89),c=n(6),a=n(1),s=a("iterator"),l=a("toStringTag"),u=i.values;for(var p in r){var f=o[p],d=f&&f.prototype;if(d){if(d[s]!==u)try{c(d,s,u)}catch(t){d[s]=u}if(d[l]||c(d,l,p),r[p])for(var v in i)if(d[v]!==i[v])try{c(d,v,i[v])}catch(t){d[v]=i[v]}}}},function(t,e,n){var o=n(0),r=n(19).f,i=n(6),c=n(14),a=n(25),s=n(64),l=n(41);t.exports=function(t,e){var n,u,p,f,d,v=t.target,m=t.global,h=t.stat;if(n=m?o:h?o[v]||a(v,{}):(o[v]||{}).prototype)for(u in e){if(f=e[u],p=t.noTargetGet?(d=r(n,u))&&d.value:n[u],!l(m?u:v+(h?".":"#")+u,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;s(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),c(n,u,f,t)}}},function(t,e,n){var o=n(9),r=n(36),i=n(2),c=n(35),a=Object.defineProperty;e.f=o?a:function(t,e,n){if(i(t),e=c(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var o=n(0),r=n(6),i=n(5),c=n(25),a=n(26),s=n(27),l=s.get,u=s.enforce,p=String(String).split("String");(t.exports=function(t,e,n,a){var s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||r(n,"name",e),u(n).source=p.join("string"==typeof e?e:"")),t!==o?(s?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:r(t,e,n)):l?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},function(t,e){t.exports=!1},function(t,e,n){var o=n(66),r=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t])||i(r[t]):o[t]&&o[t][e]||r[t]&&r[t][e]}},function(t,e,n){var o=n(10),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,n){var o=n(9),r=n(61),i=n(23),c=n(20),a=n(35),s=n(5),l=n(36),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(t,e){if(t=c(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var o=n(62),r=n(4);t.exports=function(t){return o(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";var o,r,i,c,a=n(12),s=n(15),l=n(0),u=n(16),p=n(71),f=n(14),d=n(72),v=n(31),m=n(74),h=n(8),y=n(21),g=n(75),b=n(7),x=n(26),_=n(76),w=n(82),S=n(44),O=n(45).set,j=n(83),k=n(84),E=n(85),P=n(49),L=n(86),C=n(27),T=n(41),I=n(1),A=n(87),M=I("species"),D="Promise",R=C.get,N=C.set,F=C.getterFor(D),U=p,q=l.TypeError,B=l.document,H=l.process,z=u("fetch"),G=P.f,$=G,W="process"==b(H),J=!!(B&&B.createEvent&&l.dispatchEvent),K=T(D,(function(){if(!(x(U)!==String(U))){if(66===A)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype.finally)return!0;if(A>=51&&/native code/.test(U))return!1;var t=U.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[M]=e,!(t.then((function(){}))instanceof e)})),V=K||!w((function(t){U.all(t).catch((function(){}))})),Y=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e,n){if(!e.notified){e.notified=!0;var o=e.reactions;j((function(){for(var r=e.value,i=1==e.state,c=0;o.length>c;){var a,s,l,u=o[c++],p=i?u.ok:u.fail,f=u.resolve,d=u.reject,v=u.domain;try{p?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===p?a=r:(v&&v.enter(),a=p(r),v&&(v.exit(),l=!0)),a===u.promise?d(q("Promise-chain cycle")):(s=Y(a))?s.call(a,f,d):f(a)):d(r)}catch(t){v&&!l&&v.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Q(t,e)}))}},X=function(t,e,n){var o,r;J?((o=B.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),l.dispatchEvent(o)):o={promise:e,reason:n},(r=l["on"+t])?r(o):"unhandledrejection"===t&&E("Unhandled promise rejection",n)},Q=function(t,e){O.call(l,(function(){var n,o=e.value;if(tt(e)&&(n=L((function(){W?H.emit("unhandledRejection",o,t):X("unhandledrejection",t,o)})),e.rejection=W||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){O.call(l,(function(){W?H.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},nt=function(t,e,n,o){return function(r){t(e,n,r,o)}},ot=function(t,e,n,o){e.done||(e.done=!0,o&&(e=o),e.value=n,e.state=2,Z(t,e,!0))},rt=function(t,e,n,o){if(!e.done){e.done=!0,o&&(e=o);try{if(t===n)throw q("Promise can't be resolved itself");var r=Y(n);r?j((function(){var o={done:!1};try{r.call(n,nt(rt,t,o,e),nt(ot,t,o,e))}catch(n){ot(t,o,n,e)}})):(e.value=n,e.state=1,Z(t,e,!1))}catch(n){ot(t,{done:!1},n,e)}}};K&&(U=function(t){g(this,U,D),y(t),o.call(this);var e=R(this);try{t(nt(rt,this,e),nt(ot,this,e))}catch(t){ot(this,e,t)}},(o=function(t){N(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U.prototype,{then:function(t,e){var n=F(this),o=G(S(this,U));return o.ok="function"!=typeof t||t,o.fail="function"==typeof e&&e,o.domain=W?H.domain:void 0,n.parent=!0,n.reactions.push(o),0!=n.state&&Z(this,n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new o,e=R(t);this.promise=t,this.resolve=nt(rt,t,e),this.reject=nt(ot,t,e)},P.f=G=function(t){return t===U||t===i?new r(t):$(t)},s||"function"!=typeof p||(c=p.prototype.then,f(p.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){c.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(U,z.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:K},{Promise:U}),v(U,D,!1,!0),m(D),i=u(D),a({target:D,stat:!0,forced:K},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),a({target:D,stat:!0,forced:s||K},{resolve:function(t){return k(s&&this===i?U:this,t)}}),a({target:D,stat:!0,forced:V},{all:function(t){var e=this,n=G(e),o=n.resolve,r=n.reject,i=L((function(){var n=y(e.resolve),i=[],c=0,a=1;_(t,(function(t){var s=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[s]=t,--a||o(i))}),r)})),--a||o(i)}));return i.error&&r(i.value),n.promise},race:function(t){var e=this,n=G(e),o=n.reject,r=L((function(){var r=y(e.resolve);_(t,(function(t){r.call(e,t).then(n.resolve,o)}))}));return r.error&&o(r.value),n.promise}})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(0),r=n(8),i=o.document,c=r(i)&&r(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var o=n(0),r=n(6);t.exports=function(t,e){try{r(o,t,e)}catch(n){o[t]=e}return e}},function(t,e,n){var o=n(37),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(t){return r.call(t)}),t.exports=o.inspectSource},function(t,e,n){var o,r,i,c=n(63),a=n(0),s=n(8),l=n(6),u=n(5),p=n(28),f=n(29),d=a.WeakMap;if(c){var v=new d,m=v.get,h=v.has,y=v.set;o=function(t,e){return y.call(v,t,e),e},r=function(t){return m.call(v,t)||{}},i=function(t){return h.call(v,t)}}else{var g=p("state");f[g]=!0,o=function(t,e){return l(t,g,e),e},r=function(t){return u(t,g)?t[g]:{}},i=function(t){return u(t,g)}}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var o=n(38),r=n(39),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var o=n(13).f,r=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var o=n(6),r=n(14),i=n(3),c=n(1),a=n(33),s=c("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,p){var f=c(t),d=!i((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),v=d&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!v||"replace"===t&&!l||"split"===t&&!u){var m=/./[f],h=n(f,""[t],(function(t,e,n,o,r){return e.exec===a?d&&!r?{done:!0,value:m.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),y=h[0],g=h[1];r(String.prototype,t,y),r(RegExp.prototype,f,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)}),p&&o(RegExp.prototype[f],"sham",!0)}}},function(t,e,n){"use strict";var o,r,i=n(102),c=RegExp.prototype.exec,a=String.prototype.replace,s=c,l=(o=/a/,r=/b*/g,c.call(o,"a"),c.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(s=function(t){var e,n,o,r,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),l&&(e=s.lastIndex),o=c.call(s,t),l&&o&&(s.lastIndex=s.global?o.index+o[0].length:e),u&&o&&o.length>1&&a.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),t.exports=s},function(t,e,n){var o=n(7),r=n(33);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,n){var o=n(8);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var o=n(9),r=n(3),i=n(24);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var o=n(0),r=n(25),i=o["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=i},function(t,e,n){var o=n(15),r=n(37);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.5.0",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+o).toString(36)}},function(t,e,n){var o=n(5),r=n(20),i=n(68).indexOf,c=n(29);t.exports=function(t,e){var n,a=r(t),s=0,l=[];for(n in a)!o(c,n)&&o(a,n)&&l.push(n);for(;e.length>s;)o(a,n=e[s++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){var o=n(3),r=/#|\.prototype\./,i=function(t,e){var n=a[c(t)];return n==l||n!=s&&("function"==typeof e?o(e):!!e)},c=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},function(t,e,n){var o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},function(t,e,n){var o=n(21);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var o=n(2),r=n(21),i=n(1)("species");t.exports=function(t,e){var n,c=o(t).constructor;return void 0===c||null==(n=o(c)[i])?e:r(n)}},function(t,e,n){var o,r,i,c=n(0),a=n(3),s=n(7),l=n(43),u=n(46),p=n(24),f=n(47),d=c.location,v=c.setImmediate,m=c.clearImmediate,h=c.process,y=c.MessageChannel,g=c.Dispatch,b=0,x={},_=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},w=function(t){return function(){_(t)}},S=function(t){_(t.data)},O=function(t){c.postMessage(t+"",d.protocol+"//"+d.host)};v&&m||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(b),b},m=function(t){delete x[t]},"process"==s(h)?o=function(t){h.nextTick(w(t))}:g&&g.now?o=function(t){g.now(w(t))}:y&&!f?(i=(r=new y).port2,r.port1.onmessage=S,o=l(i.postMessage,i,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||a(O)?o="onreadystatechange"in p("script")?function(t){u.appendChild(p("script")).onreadystatechange=function(){u.removeChild(this),_(t)}}:function(t){setTimeout(w(t),0)}:(o=O,c.addEventListener("message",S,!1))),t.exports={set:v,clear:m}},function(t,e,n){var o=n(16);t.exports=o("document","documentElement")},function(t,e,n){var o=n(48);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(o)},function(t,e,n){var o=n(16);t.exports=o("navigator","userAgent")||""},function(t,e,n){"use strict";var o=n(21),r=function(t){var e,n;this.promise=new t((function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o})),this.resolve=o(e),this.reject=o(n)};t.exports.f=function(t){return new r(t)}},function(t,e,n){var o=n(2),r=n(91),i=n(30),c=n(29),a=n(46),s=n(24),l=n(28)("IE_PROTO"),u=function(){},p=function(){var t,e=s("iframe"),n=i.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),p=t.F;n--;)delete p.prototype[i[n]];return p()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=o(t),n=new u,u.prototype=null,n[l]=t):n=p(),void 0===e?n:r(n,e)},c[l]=!0},function(t,e,n){"use strict";var o,r,i,c=n(52),a=n(6),s=n(5),l=n(1),u=n(15),p=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(r=c(c(i)))!==Object.prototype&&(o=r):f=!0),null==o&&(o={}),u||s(o,p)||a(o,p,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var o=n(5),r=n(53),i=n(28),c=n(95),a=i("IE_PROTO"),s=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=r(t),o(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var o=n(4);t.exports=function(t){return Object(o(t))}},function(t,e,n){"use strict";var o=n(103).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},function(t,e,n){"use strict";var o=n(32),r=n(56),i=n(2),c=n(4),a=n(44),s=n(54),l=n(17),u=n(34),p=n(33),f=n(3),d=[].push,v=Math.min,m=!f((function(){return!RegExp(4294967295,"y")}));o("split",2,(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(c(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[o];if(!r(t))return e.call(o,t,i);for(var a,s,l,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,f+"g");(a=p.call(m,o))&&!((s=m.lastIndex)>v&&(u.push(o.slice(v,a.index)),a.length>1&&a.index<o.length&&d.apply(u,a.slice(1)),l=a[0].length,v=s,u.length>=i));)m.lastIndex===a.index&&m.lastIndex++;return v===o.length?!l&&m.test("")||u.push(""):u.push(o.slice(v)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=c(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,r,n):o.call(String(r),e,n)},function(t,r){var c=n(o,t,this,r,o!==e);if(c.done)return c.value;var p=i(t),f=String(this),d=a(p,RegExp),h=p.unicode,y=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(m?"y":"g"),g=new d(m?p:"^(?:"+p.source+")",y),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===f.length)return null===u(g,f)?[f]:[];for(var x=0,_=0,w=[];_<f.length;){g.lastIndex=m?_:0;var S,O=u(g,m?f:f.slice(_));if(null===O||(S=v(l(g.lastIndex+(m?0:_)),f.length))===x)_=s(f,_,h);else{if(w.push(f.slice(x,_)),w.length===b)return w;for(var j=1;j<=O.length-1;j++)if(w.push(O[j]),w.length===b)return w;_=x=S}}return w.push(f.slice(x)),w}]}),!m)},function(t,e,n){var o=n(8),r=n(7),i=n(1)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},function(t,e,n){var o=n(56);t.exports=function(t){if(o(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var o=n(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t){t.exports=JSON.parse('{"a":"1.5.7"}')},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},function(t,e,n){var o=n(3),r=n(7),i="".split;t.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var o=n(0),r=n(26),i=o.WeakMap;t.exports="function"==typeof i&&/native code/.test(r(i))},function(t,e,n){var o=n(5),r=n(65),i=n(19),c=n(13);t.exports=function(t,e){for(var n=r(e),a=c.f,s=i.f,l=0;l<n.length;l++){var u=n[l];o(t,u)||a(t,u,s(e,u))}}},function(t,e,n){var o=n(16),r=n(67),i=n(70),c=n(2);t.exports=o("Reflect","ownKeys")||function(t){var e=r.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var o=n(0);t.exports=o},function(t,e,n){var o=n(40),r=n(30).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){var o=n(20),r=n(17),i=n(69),c=function(t){return function(e,n,c){var a,s=o(e),l=r(s.length),u=i(c,l);if(t&&n!=n){for(;l>u;)if((a=s[u++])!=a)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,e,n){var o=n(10),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(0);t.exports=o.Promise},function(t,e,n){var o=n(14);t.exports=function(t,e,n){for(var r in e)o(t,r,e[r],n);return t}},function(t,e,n){var o=n(42);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol()},function(t,e,n){"use strict";var o=n(16),r=n(13),i=n(1),c=n(9),a=i("species");t.exports=function(t){var e=o(t),n=r.f;c&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var o=n(2),r=n(77),i=n(17),c=n(43),a=n(78),s=n(81),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,u,p){var f,d,v,m,h,y,g,b=c(e,n,u?2:1);if(p)f=t;else{if("function"!=typeof(d=a(t)))throw TypeError("Target is not iterable");if(r(d)){for(v=0,m=i(t.length);m>v;v++)if((h=u?b(o(g=t[v])[0],g[1]):b(t[v]))&&h instanceof l)return h;return new l(!1)}f=d.call(t)}for(y=f.next;!(g=y.call(f)).done;)if("object"==typeof(h=s(f,b,g.value,u))&&h&&h instanceof l)return h;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){var o=n(1),r=n(18),i=o("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||c[i]===t)}},function(t,e,n){var o=n(79),r=n(18),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||r[o(t)]}},function(t,e,n){var o=n(80),r=n(7),i=n(1)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=o?r:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:c?r(e):"Object"==(o=r(e))&&"function"==typeof e.callee?"Arguments":o}},function(t,e,n){var o={};o[n(1)("toStringTag")]="z",t.exports="[object z]"===String(o)},function(t,e,n){var o=n(2);t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},function(t,e,n){var o=n(1)("iterator"),r=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){r=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var o,r,i,c,a,s,l,u,p=n(0),f=n(19).f,d=n(7),v=n(45).set,m=n(47),h=p.MutationObserver||p.WebKitMutationObserver,y=p.process,g=p.Promise,b="process"==d(y),x=f(p,"queueMicrotask"),_=x&&x.value;_||(o=function(){var t,e;for(b&&(t=y.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?c():i=void 0,t}}i=void 0,t&&t.enter()},b?c=function(){y.nextTick(o)}:h&&!m?(a=!0,s=document.createTextNode(""),new h(o).observe(s,{characterData:!0}),c=function(){s.data=a=!a}):g&&g.resolve?(l=g.resolve(void 0),u=l.then,c=function(){u.call(l,o)}):c=function(){v.call(p,o)}),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),r||(r=e,c()),i=e}},function(t,e,n){var o=n(2),r=n(8),i=n(49);t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var o=n(0);t.exports=function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var o,r,i=n(0),c=n(48),a=i.process,s=a&&a.versions,l=s&&s.v8;l?r=(o=l.split("."))[0]+o[1]:c&&(!(o=c.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=c.match(/Chrome\/(\d+)/))&&(r=o[1]),t.exports=r&&+r},function(t,e){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}},function(t,e,n){"use strict";var o=n(20),r=n(90),i=n(18),c=n(27),a=n(93),s=c.set,l=c.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){s(this,{type:"Array Iterator",target:o(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var o=n(1),r=n(50),i=n(6),c=o("unscopables"),a=Array.prototype;null==a[c]&&i(a,c,r(null)),t.exports=function(t){a[c][t]=!0}},function(t,e,n){var o=n(9),r=n(13),i=n(2),c=n(92);t.exports=o?Object.defineProperties:function(t,e){i(t);for(var n,o=c(e),a=o.length,s=0;a>s;)r.f(t,n=o[s++],e[n]);return t}},function(t,e,n){var o=n(40),r=n(30);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){"use strict";var o=n(12),r=n(94),i=n(52),c=n(96),a=n(31),s=n(6),l=n(14),u=n(1),p=n(15),f=n(18),d=n(51),v=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,h=u("iterator"),y=function(){return this};t.exports=function(t,e,n,u,d,g,b){r(n,e,u);var x,_,w,S=function(t){if(t===d&&P)return P;if(!m&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",j=!1,k=t.prototype,E=k[h]||k["@@iterator"]||d&&k[d],P=!m&&E||S(d),L="Array"==e&&k.entries||E;if(L&&(x=i(L.call(new t)),v!==Object.prototype&&x.next&&(p||i(x)===v||(c?c(x,v):"function"!=typeof x[h]&&s(x,h,y)),a(x,O,!0,!0),p&&(f[O]=y))),"values"==d&&E&&"values"!==E.name&&(j=!0,P=function(){return E.call(this)}),p&&!b||k[h]===P||s(k,h,P),f[e]=P,d)if(_={values:S("values"),keys:g?P:S("keys"),entries:S("entries")},b)for(w in _)!m&&!j&&w in k||l(k,w,_[w]);else o({target:e,proto:!0,forced:m||j},_);return _}},function(t,e,n){"use strict";var o=n(51).IteratorPrototype,r=n(50),i=n(23),c=n(31),a=n(18),s=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=r(o,{next:i(1,n)}),c(t,l,!1,!0),a[l]=s,t}},function(t,e,n){var o=n(3);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var o=n(2),r=n(97);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),r(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var o=n(8);t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){"use strict";var o=n(12),r=n(10),i=n(99),c=n(100),a=n(3),s=1..toFixed,l=Math.floor,u=function(t,e,n){return 0===e?n:e%2==1?u(t,e-1,n*t):u(t*t,e/2,n)};o({target:"Number",proto:!0,forced:s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){s.call({})}))},{toFixed:function(t){var e,n,o,a,s=i(this),p=r(t),f=[0,0,0,0,0,0],d="",v="0",m=function(t,e){for(var n=-1,o=e;++n<6;)o+=t*f[n],f[n]=o%1e7,o=l(o/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=f[e],f[e]=l(n/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==f[t]){var n=String(f[t]);e=""===e?n:e+c.call("0",7-n.length)+n}return e};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*u(2,69,1))-69)<0?s*u(2,-e,1):s/u(2,e,1),n*=4503599627370496,(e=52-e)>0){for(m(0,n),o=p;o>=7;)m(1e7,0),o-=7;for(m(u(10,o,1),0),o=e-1;o>=23;)h(1<<23),o-=23;h(1<<o),m(1,1),h(2),v=y()}else m(0,n),m(1<<-e,0),v=y()+c.call("0",p);return v=p>0?d+((a=v.length)<=p?"0."+c.call("0",p-a)+v:v.slice(0,a-p)+"."+v.slice(a-p)):d+v}})},function(t,e,n){var o=n(7);t.exports=function(t){if("number"!=typeof t&&"Number"!=o(t))throw TypeError("Incorrect invocation");return+t}},function(t,e,n){"use strict";var o=n(10),r=n(4);t.exports="".repeat||function(t){var e=String(r(this)),n="",i=o(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){"use strict";var o=n(32),r=n(2),i=n(53),c=n(17),a=n(10),s=n(4),l=n(54),u=n(34),p=Math.max,f=Math.min,d=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(t,e,n){return[function(n,o){var r=s(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r,o):e.call(String(r),n,o)},function(t,i){var s=n(e,t,this,i);if(s.done)return s.value;var d=r(t),v=String(this),m="function"==typeof i;m||(i=String(i));var h=d.global;if(h){var y=d.unicode;d.lastIndex=0}for(var g=[];;){var b=u(d,v);if(null===b)break;if(g.push(b),!h)break;""===String(b[0])&&(d.lastIndex=l(v,c(d.lastIndex),y))}for(var x,_="",w=0,S=0;S<g.length;S++){b=g[S];for(var O=String(b[0]),j=p(f(a(b.index),v.length),0),k=[],E=1;E<b.length;E++)k.push(void 0===(x=b[E])?x:String(x));var P=b.groups;if(m){var L=[O].concat(k,j,v);void 0!==P&&L.push(P);var C=String(i.apply(void 0,L))}else C=o(O,v,j,k,P,i);j>=w&&(_+=v.slice(w,j)+C,w=j+O.length)}return _+v.slice(w)}];function o(t,n,o,r,c,a){var s=o+t.length,l=r.length,u=m;return void 0!==c&&(c=i(c),u=v),e.call(a,u,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,o);case"'":return n.slice(s);case"<":a=c[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>l){var p=d(u/10);return 0===p?e:p<=l?void 0===r[p-1]?i.charAt(1):r[p-1]+i.charAt(1):e}a=r[u-1]}return void 0===a?"":a}))}}))},function(t,e,n){"use strict";var o=n(2);t.exports=function(){var t=o(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var o=n(10),r=n(4),i=function(t){return function(e,n){var i,c,a=String(r(e)),s=o(n),l=a.length;return s<0||s>=l?t?"":void 0:(i=a.charCodeAt(s))<55296||i>56319||s+1===l||(c=a.charCodeAt(s+1))<56320||c>57343?t?a.charAt(s):i:t?a.slice(s,s+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var o=n(12),r=n(57),i=n(4);o({target:"String",proto:!0,forced:!n(58)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var o=n(32),r=n(2),i=n(4),c=n(106),a=n(34);o("search",1,(function(t,e,n){return[function(e){var n=i(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,n):new RegExp(e)[t](String(n))},function(t){var o=n(e,t,this);if(o.done)return o.value;var i=r(t),s=String(this),l=i.lastIndex;c(l,0)||(i.lastIndex=0);var u=a(i,s);return c(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var o,r=n(12),i=n(19).f,c=n(17),a=n(57),s=n(4),l=n(58),u=n(15),p="".startsWith,f=Math.min,d=l("startsWith");r({target:"String",proto:!0,forced:!!(u||d||(o=i(String.prototype,"startsWith"),!o||o.writable))&&!d},{startsWith:function(t){var e=String(s(this));a(t);var n=c(f(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return p?p.call(e,o,n):e.slice(n,n+o.length)===o}})},function(t,e,n){"use strict";n.r(e);n(22),n(11);var o={get:(t="loop-onstore-data")=>JSON.parse(localStorage.getItem(t)||null),set(t,e="loop-onstore-data"){localStorage.setItem(e,JSON.stringify(t))},remove(t="loop-onstore-data"){localStorage.removeItem(t)}};function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let c={debug:!1,testMode:!1,redirect:!0,active:!1,params:null,key:null,api:null,token:null,id:null,fullPayload:!1,preserveCart:!1,draftOrderId:null,inExperiment:!1,singleItem:!1,attach:null,isEmbeddedPortal:!1};const a=t=>t?c[t]:c,s=(t,e)=>{c[t]=e,o.set(c)},l=()=>{const t=o.get();t&&(c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},c,{},t))};var u=new Proxy({},{get:(t,e)=>!t[e]&&a("debug")?t=>"string"==typeof t?console[e]("%c".concat(t),"color: #3256E6"):console[e](t):t[e]||function(){}});class p extends HTMLElement{constructor(){super()}connectedCallback(){var t;if(!LoopOnstore.isActive()||!a("inExperiment"))return;const e=a("attach");(null!==(t=document.querySelectorAll(e))&&void 0!==t?t:[]).forEach(t=>t.remove());const n=this.buildBtnContainer();this.attachShadow({mode:"open"}).appendChild(n)}buildBtnContainer(){const t=document.createElement("div");t.className="loop-onstore-btn-container",t.style="display:flex; flex-direction: column; gap: 1rem;";const e=this.buildCheckoutBtn(),n=this.buildAddMoreBtn();return t.appendChild(e),a("singleItem")||t.appendChild(n),t}buildAddMoreBtn(){const t=document.createElement("button");return t.textContent="Select more items to return",t.part="loop-onstore-add-more-btn",t.addEventListener("click",this.handleAddMore),t}buildCheckoutBtn(){const t=document.createElement("button");return t.textContent="Checkout",t.part="loop-onstore-checkout-btn",t.addEventListener("click",this.handleCheckout),t}handleCheckout(){LoopOnstore.submit()}handleAddMore(){LoopOnstore.submit(null,"lineItems")}}const f=t=>{if((t=>t instanceof HTMLElement||t instanceof Array&&t.some(t=>t instanceof HTMLElement))(t)){if(!(t instanceof Array))return[t];const e=t.filter(t=>t instanceof HTMLElement),n=t.filter(t=>!(t instanceof HTMLElement));return[...e,...document.querySelectorAll(n)]}return[...document.querySelectorAll(t)]},d=(t,e)=>{const n=f(t);return n.length>1&&u.warn("Attaching Loop.submit() to more than one element. Make sure you're using the right selector!"),n.forEach(t=>{t.addEventListener("click",e)}),customElements.get("loop-onstore")||customElements.define("loop-onstore",p),n};n(98),n(101),n(55);const v={JPY:{constant:1,decimals:0,decimalSymbol:"",thousandSymbol:",",symbol:"¥"},GBP:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"£"},EUR:{constant:100,decimals:2,decimalSymbol:",",thousandSymbol:".",symbol:"€"},USD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},CAD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},AUD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},HKD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},NZD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"},SGD:{constant:100,decimals:2,decimalSymbol:".",thousandSymbol:",",symbol:"$"}},m=(t,e="USD")=>{if(!t)return"";const n=v[e];if(n){const{dollars:e,cents:o}=((t,e)=>{const[n,o]=Number.parseFloat(t/e.constant).toFixed(e.decimals).split(".");return{dollars:n?n.replace(/\B(?=(\d{3})+(?!\d))/g,e.thousandSymbol):"0",cents:o||""}})(t,n);return"".concat(n.symbol).concat(e).concat(n.decimalSymbol).concat(o)}return new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t/n.constant)};function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b=()=>{var t;return null!==(t=a("api"))&&void 0!==t?t:"https://api.loopreturns.com/api/v1/"},x=t=>{const{token:e,total_discount:n,original_total_price:o,total_price:r,items:i,currency:c,items_subtotal_price:a,cart_level_discount_applications:s}=t;return(t=>{const e="object"==typeof t&&null!==t?JSON.stringify(t):String(t);return window.btoa(unescape(encodeURIComponent(e)))})({token:e,total_discount:n,original_total_price:o,total_price:r,items:i.map(t=>{const{id:e,quantity:n,variant_id:o,price:r,original_price:i,discounted_price:c,original_line_price:a,line_price:s,total_discount:l,final_price:u,final_line_price:p,taxable:f,product_id:d,discount_allocations:v,line_level_discount_allocations:m}=t;return{id:e,quantity:n,variant_id:o,price:r,original_price:i,discounted_price:c,original_line_price:a,line_price:s,total_discount:l,final_price:u,final_line_price:p,taxable:f,product_id:d,discount_allocations:v,line_level_discount_allocations:m}}),currency:c,items_subtotal_price:a,cart_level_discount_applications:s})},_=(t,e="GET",n)=>{const o=a("key");return new Promise(r=>{const i=null!=n?JSON.stringify(n):null;var c=new XMLHttpRequest;c.withCredentials=!0,c.addEventListener("readystatechange",(function(){this.readyState===this.DONE&&r(JSON.parse(this.responseText))})),c.open(e,t),""!==o&&c.setRequestHeader("x-authorization",o),c.setRequestHeader("content-type","application/json"),c.send(i)})},w=()=>{return _("/cart.js")},S=()=>{return _("/cart/clear.js","POST")};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k=(t,e)=>{u.info("Creating cart request..."),u.info("Syncing these variants to the Loop cart:"),u.info(t);const n=a("token");return n?((t,e,n)=>{const o=b(),r="".concat(o,"cart/").concat(t);let i={};return a("fullPayload")&&(i={shopify:x(n)}),_(r,"POST",y({cart:e,draftOrderId:a("draftOrderId")},i))})(n,t,e).then(t=>(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t})({},t,{token:n})):((t,e)=>{const n=b(),o="".concat(n,"cart/");let r={};return a("fullPayload")&&(r={shopify:x(e)}),_(o,"POST",y({cart:t,draftOrderId:a("draftOrderId")},r))})(t,e)};n(104),n(105),n(107);function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const L=t=>{const e=Number(t);return Number.isNaN(e)?t:e};var C={get:(t=window.location.search)=>t.substr(1).split("&").reduce((t,e)=>{const[n,o]=decodeURIComponent(e).split("=");return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){P(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{[n]:L(o)})},{}),hasLoopData:(t=window.location.search)=>t.includes("loop_total"),getKeys:(t,e="loop")=>Object.keys(t).filter(t=>t.startsWith(e)),clear(t=[]){const e=Object.entries(this.get()).reduce((e,[n,o])=>{if(t.includes(n))return e;const r=e.length?"&":"?";return"".concat(e).concat(r).concat(encodeURIComponent(n),"=").concat(encodeURIComponent(o))},"");window.history.replaceState({},"","".concat(window.location.origin).concat(window.location.pathname).concat(e))}};const T={credit:{container:".loop-onstore__credit",amount:".loop-onstore__credit-amount"},percentDiscount:{container:".loop-onstore__percent-discount",amount:".loop-onstore__percent-discount-amount"}};var I=(t,e={})=>{if(t)return t;const n=((t={})=>{const e=document.createElement("div");e.classList.add("loop-onstore"),e.id="loop-onstore",e.innerHTML='\n <div class="loop-onstore__percent-discount">\n <span class="loop-onstore__percent-discount-amount"></span>\n <span class="loop-onstore__copy loop-onstore__percent-discount-copy">\n applied at checkout\n </span>\n </div>\n <div class="loop-onstore__credit">\n <span class="loop-onstore__amount loop-onstore__credit-amount"></span>\n <span class="loop-onstore__copy loop-onstore__credit-copy">\n in available credit\n </span>\n <span class="loop-onstore__copy loop-onstore__mobile-credit-copy">\n credit\n </span>\n </div>\n <button class="loop-onstore__back">\n <svg \n class="loop-onstore__back-icon"\n width="16"\n height="16"\n viewBox="0 0 16 16"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M12.6667 8H3.33333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 12.6666L3.33333 7.99998L8 3.33331" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg> \n <span>Go back</span>\n </button>\n\n',Object.keys(t).forEach(n=>{const o=t[n],r=T[n];if(r&&o){const t=e.querySelector(r.container);if(t){t.style.display="flex";const e=t.querySelector(r.amount);e&&o.amount&&(e.textContent=o.amount)}}});const n=e.querySelector(".loop-onstore__back");return n&&n.addEventListener("click",async()=>{const t=await w(),e=t.items.reduce((t,e)=>[...t,...Array(e.quantity).fill(e.variant_id)],[]),n=await k(e,t);LoopOnstore.backToLoop(n.token,"lineItems")}),e})(e);return document.body.appendChild(n)};const A=t=>1===document.querySelectorAll(t).length,M=t=>{let e=t.nodeName.toLowerCase();const n=(t=>{if(t.classList.length>0){const e=Array.from(t.classList);let n="";for(const t of e)if(n+=".".concat(t),A(n))return n}return""})(t);if(n)return n;if(t.id&&A("#".concat(t.id)))return"#".concat(t.id);const o=((t,e)=>{for(let n of e)if(t.hasAttribute(n)){let e="[".concat(n,'="').concat(t.getAttribute(n),'"]');if(A(e))return e}return""})(t,["name","type","alt","title","value"]);if(o&&(e+=o),!o){let n=t.parentNode;if(!n)return e;let o=Array.prototype.indexOf.call(n.children,t)+1;return M(n)+" > "+e+":nth-child(".concat(o,")")}return e};var D=function(){const t=e=>{e.preventDefault(),console.log(M(e.target)),console.log("Disabling LoopOnstore inspector."),window.removeEventListener("click",t)};console.log("Enabling LoopOnstore inspector. Click your checkout button to generate a unique selector."),window.addEventListener("click",t)},R=n(59);n.d(e,"init",(function(){return F})),n.d(e,"testMode",(function(){return U})),n.d(e,"testModeNewShopperFlow",(function(){return q})),n.d(e,"testModeOff",(function(){return B})),n.d(e,"submit",(function(){return G})),n.d(e,"attach",(function(){return $})),n.d(e,"debug",(function(){return H})),n.d(e,"setKey",(function(){return z})),n.d(e,"backToLoop",(function(){return W})),n.d(e,"isActive",(function(){return J})),n.d(e,"info",(function(){return K})),n.d(e,"inspect",(function(){return D}));const N={bar:null,attached:[]},F=async t=>{if(l(),null==t?void 0:t.key)z(t.key);else if(!a("key"))throw new Error("Loop Returns on-store API requires an API key.");(null==t?void 0:t.api)&&(u.info("Setting api to ".concat(t.api,".")),s("api",t.api)),(null==t?void 0:t.preserveCart)&&(u.info("Setting preserve cart to ".concat(t.preserveCart)),s("preserveCart",t.preserveCart));const e=C.get();if(C.hasLoopData()){var n,o,r;a("id")!==e.loop_return_id&&s("token",null),s("params",e),s("id",e.loop_return_id),s("inExperiment",null!==(n=Boolean("true"===(null==e?void 0:e.loop_experiment_b_eligible)))&&void 0!==n&&n),s("singleItem",null!==(o=Boolean("true"===(null==e?void 0:e.loop_single_item_eligible)))&&void 0!==o&&o),s("isEmbeddedPortal",null!==(r=Boolean("true"===(null==e?void 0:e.loop_embedded_portal)))&&void 0!==r&&r),a("inExperiment")&&s("preserveCart",!0),C.clear(C.getKeys(e)),await S();const t=a("token");if(t)try{const{cart:e}=await(t=>{const e=b(),n="".concat(e,"cart/").concat(t);return _(n)})(t);await(t=>{if(!(null==t?void 0:t.length))return S();const e=t.reduce((t,e)=>t[e]?y({},t,{[e]:t[e]+1}):y({},t,{[e]:1}),{});return _("/cart/update.js","POST",{updates:e})})(e),u.info("Updating Shopify cart to match loop cart."),document.dispatchEvent(new Event("Loop:Cart Update"))}catch(t){u.warn("Unable to reboot cart"),u.error(t)}}const i=a("params");if(i){var c,p;s("active",!0),document.body.classList.add("loop-returns-activated");const t={};null!==(c=i.loop_total)&&void 0!==c&&c&&(t.credit={amount:m(i.loop_total,i.loop_currency)}),null!==(p=i.loop_discount_percentage)&&void 0!==p&&p&&(t.percentDiscount={amount:i.loop_discount_percentage+"% off"});const e=I(null,t);(()=>{const t=document.createElement("style");t.type="text/css",t.innerText="\n:root {\n --loop-primary-color: #030712;\n --loop-text-color: white;\n --loop-badge-background: #F9FAFB;\n --loop-badge-text: #374151;\n --loop-button-background: white;\n --loop-button-text: #1F2937;\n --loop-button-border: #D1D5DB;\n \n --loop-onstore-button-padding: 14px 16px;\n --loop-onstore-checkout-background: #030712;\n --loop-onstore-checkout-text-color: white;\n --loop-onstore-button-radius: 0;\n --loop-onstore-button-gap: 0.25rem;\n --loop-onstore-add-more-background: white;\n --loop-onstore-add-more-text-color: black;\n --loop-onstore-add-more-border: black;\n --loop-onstore-casing: uppercase;\n}\n.loop-returns-activated .loop-onstore {\n transform: translateY(0);\n display: flex;\n}\n.loop-onstore {\n box-sizing: border-box;\n width: 100%;\n position: fixed;\n display: none;\n align-items: center;\n justify-content: space-between;\n top: auto !important;\n bottom: 0 !important;\n left: 0;\n z-index: 2147483647;\n background-color: var(--loop-primary-color);\n color: var(--loop-text-color);\n font-family: 'SF Pro Text', untitled sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !important;\n transform: translateY(100%);\n transition: transform .2s;\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 1rem 1.5rem;\n}\n.loop-onstore *, .loop-onstore *::before, .loop-onstore *::after {\n box-sizing: inherit;\n}\n.loop-onstore__credit {\n display: none;\n align-items: flex-start;\n gap: 0.25rem;\n}\n.loop-onstore__credit-amount {\n font-weight: 600;\n}\n.loop-onstore__mobile-credit-copy {\n display: none;\n}\n.loop-onstore__percent-discount {\n display: none;\n align-items: flex-start;\n gap: 0.5rem; \n}\n.loop-onstore__percent-discount-amount {\n display: flex;\n padding: 0.125rem 0.5rem;\n justify-content: center;\n align-items: center;\n gap: 0.375rem;\n border-radius: 100px;\n background: var(--loop-badge-background);\n font-weight: 600;\n font-size: 0.75rem;\n color: var(--loop-badge-text);\n}\n.loop-onstore__percent-discount-copy {\n text-align: center;\n}\n.loop-onstore__back {\n color: var(--loop-button-text);\n background: var(--loop-button-background);\n border: none;\n appearance: none;\n transition: all .2s;\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.5rem;\n border-radius: 0.5rem;\n border: 1px solid var(--loop-button-border);\n display: flex;\n padding: 0.5rem 1rem;\n align-items: center;\n gap: 0.25rem; \n cursor: pointer;\n}\n.loop-onstore__back:hover {\n opacity: .7;\n}\n.loop-onstore__back-icon path {\n stroke: var(--loop-button-text); \n}\n\n.loop-returns-modal {\n font-family: 'SF Pro Text', untitled sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji !important;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-style: normal;\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n }\n\n .loop-returns-modal__backdrop{\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(65, 69, 74, 0.7);\n }\n\n .loop-returns-modal__content {\n overflow: auto;\n max-height: 600px;\n background-color: #fff;\n box-shadow: 0px 1px 4px rgb(0 0 0 / 12%), 0px 6px 12px rgb(0 0 0 / 8%);\n border-radius: 8px;\n width: 500px;\n max-width: 700px;\n position: relative;\n z-index: 1000;\n }\n\n .loop-returns-modal__header {\n color: #3256E5;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 15px 20px;\n border-bottom: 1px solid #EAEAEA;\n font-size: 1.25rem;\n font-weight: 500;\n }\n\n .loop-returns-modal__close--icon {\n height: 20px;\n width: 20px;\n cursor: pointer;\n }\n\n .loop-returns-modal__body {\n padding: 20px;\n }\n\n loop-onstore {\n flex: 1;\n }\n\n loop-onstore::part(loop-onstore-checkout-btn) {\n padding: var(--loop-onstore-button-padding);\n background: var(--loop-primary-color);\n color: var(--loop-onstore-checkout-text-color);\n border-radius: var(--loop-onstore-button-radius);\n cursor: pointer;\n font-weight: 500;\n text-transform: var(--loop-onstore-casing);\n }\n\n loop-onstore::part(loop-onstore-add-more-btn) {\n padding: var(--loop-onstore-button-padding);\n background: transparent;\n border: 1px solid var(--loop-onstore-add-more-border);\n border-radius: var(--loop-onstore-button-radius);\n color: var(--loop-onstore-add-more-text-color);\n cursor: pointer;\n font-weight: 500;\n text-transform: var(--loop-onstore-casing);\n }\n\n@media screen and (max-width: 680px) {\n .loop-onstore {\n z-index: 200;\n bottom: 3.2rem;\n padding: 1rem 1.5rem;\n }\n .loop-onstore__mobile-credit-copy {\n display: block;\n }\n .loop-onstore__credit-copy {\n display: none;\n }\n .loop-onstore__percent-discount-copy {\n display: none;\n }\n .loop-onstore__back {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n}\n",document.head.appendChild(t)})(),N.bar=e,u.info("Loop returns activated"),document.dispatchEvent(new Event("Loop:Activated"))}(null==t?void 0:t.attach)&&(s("attach",null==t?void 0:t.attach),$(t.attach)),(null==t?void 0:t.full)&&s("fullPayload",null==t?void 0:t.full)},U=(t=!0)=>{s("debug",!0),s("testMode",!0),u.info("Test mode activated"),s("redirect",t),window.location="".concat(window.location.origin).concat(window.location.pathname,"?loop_domain=example.loopreturns.com&loop_return_id=this-is-a-test&loop_currency=USD&loop_total=12099&loop_discount_percentage=25&loop_base=799&loop_credit=500&loop_subdomain=example&loop_redirect_url=example.loopreturns.com%2F%23%2Fcredit&loop_customer_name=Jane%20Doe")},q=()=>{s("debug",!0),u.info("Test mode Flow B activated"),s("testMode",!0),s("redirect",!1),window.location="".concat(window.location.origin).concat(window.location.pathname,"?loop_domain=example.loopreturns.com&loop_return_id=this-is-a-test&loop_currency=USD&loop_total=12099&loop_discount_percentage=25&loop_base=799&loop_credit=500&loop_subdomain=example&loop_redirect_url=example.loopreturns.com%2F%23%2Fcredit&loop_customer_name=Jane%20Doe&loop_experiment_b_eligible=true&loop_single_item_eligible=false")},B=()=>{s("debug",!1),s("testMode",!1),u.info("Test mode deactivated"),s("redirect",!0),localStorage.removeItem("loop-onstore-data"),window.location.reload()},H=()=>{const t=!a("debug");return s("debug",t),"Debug ".concat(t?"on":"off")},z=t=>{if(!t||"string"!=typeof t)return console.error("Your api key is either undefined or not a string.");s("key",t),u.info("Loop Returns on-store API key set.")},G=async(t,e=null)=>{let n=null;t||(u.info("Requesting updated cart from Shopify"),n=await w(),t=n.items.reduce((t,e)=>[...t,...Array(e.quantity).fill(e.variant_id)],[]));try{var o;if(window.stackableService&&"function"==typeof(null===(o=window.stackableService)||void 0===o?void 0:o.send)){window.stackableService.send({type:"checkout",data:{preventRedirect:!0}});let t=0;await(async()=>await new Promise(e=>{const n=setInterval(()=>{(window.stackableService.state.context.draftOrderId||6===t)&&(e(),clearInterval(n)),t++},500)}))(),s("draftOrderId",window.stackableService.state.context.draftOrderId)}const r=await k(t,n);return s("token",r.token),a("preserveCart")||await S(),W(r.token,e),Promise.resolve(r.token)}catch(t){return u.info("Unable to create Loop Returns cart:"),u.error(t),Promise.reject(t)}},$=t=>{if(a("active")){u.info('Loop attaching to: "'.concat(t,'"'));const e=async t=>{if(a("active")){t.stopImmediatePropagation(),t.preventDefault(),t.target.disabled=!0,t.target.classList.add("loop-activated");try{await G(),t.target.disabled=!1,t.target.classList.remove("loop-activated")}catch(e){t.target.disabled=!1,t.target.classList.remove("loop-activated")}}};N.attached=d(t,e),new MutationObserver(n=>{const o=((t,e)=>t.filter(t=>t[e].length).reduce((t,n)=>[...t,...n[e]],[]))(n,"addedNodes");let r=t;if(t instanceof HTMLElement&&(r=[]),t instanceof Array&&(r=t.filter(t=>!(t instanceof HTMLElement))),o.length){o.some(t=>{var e;return!(null===(e=r)||void 0===e||!e.length)&&(t&&1===t.nodeType&&(t.matches(r)||(null==t?void 0:t.querySelector(r))))})&&(((t,e)=>{t.forEach(t=>{t.removeEventListener("click",e)})})(N.attached,e),N.attached=d(t,e),u.info('Loop reattached to: "'.concat(t,'"')))}}).observe(document.body,{childList:!0,subtree:!0})}},W=(t,e=null)=>{const n=a("testMode");s("active",!1);const o=a("params"),r=a("isEmbeddedPortal");let i="http://".concat(o.loop_redirect_url);if(t&&o.loop_return_key?i="http://".concat(o.loop_domain,"/#/cart/v2/").concat(t,"/").concat(o.loop_return_key):t&&(i="http://".concat(o.loop_domain,"/#/cart/v2/").concat(t).concat(e?"?to="+e:"")),r&&(i="".concat(window.location.origin,"/apps/returns?token=").concat(t).concat(e?"&to="+e:"")),s("params",null),u.info("Redirecting to:"),u.info(i),document.dispatchEvent(new Event("Loop:Back To Loop")),n)return(()=>{document.body.style.overflow="hidden";const t=document.createElement("div");t.classList.add("loop-returns-modal"),t.innerHTML='\n <div class="loop-returns-modal">\n <div class="loop-returns-modal__backdrop"></div>\n <div class="loop-returns-modal__content">\n <div class="loop-returns-modal__header">\n <div class="loop-returns-modal__text">Loop Onstore Installed</div>\n <div class="loop-returns-modal__close">\n <svg class="loop-returns-modal__close--icon width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M0 7.50024C0 3.36474 3.3645 0.000244141 7.5 0.000244141C11.6355 0.000244141 15 3.36474 15 7.50024C15 11.6357 11.6355 15.0002 7.5 15.0002C3.3645 15.0002 0 11.6357 0 7.50024ZM5.78025 4.71999C5.6388 4.58338 5.44935 4.50778 5.2527 4.50949C5.05605 4.5112 4.86794 4.59007 4.72889 4.72913C4.58983 4.86819 4.51095 5.0563 4.50924 5.25294C4.50754 5.44959 4.58313 5.63904 4.71975 5.78049L6.4395 7.50024L4.71975 9.21999C4.64812 9.28918 4.59098 9.37194 4.55167 9.46344C4.51237 9.55494 4.49168 9.65336 4.49081 9.75294C4.48995 9.85253 4.50892 9.95129 4.54663 10.0435C4.58434 10.1356 4.64003 10.2194 4.71045 10.2898C4.78087 10.3602 4.86461 10.4159 4.95678 10.4536C5.04896 10.4913 5.14772 10.5103 5.2473 10.5094C5.34689 10.5086 5.4453 10.4879 5.5368 10.4486C5.62831 10.4093 5.71106 10.3521 5.78025 10.2805L7.5 8.56074L9.21975 10.2805C9.3612 10.4171 9.55065 10.4927 9.7473 10.491C9.94395 10.4893 10.1321 10.4104 10.2711 10.2714C10.4102 10.1323 10.489 9.94419 10.4908 9.74754C10.4925 9.5509 10.4169 9.36145 10.2802 9.21999L8.5605 7.50024L10.2802 5.78049C10.4169 5.63904 10.4925 5.44959 10.4908 5.25294C10.489 5.0563 10.4102 4.86819 10.2711 4.72913C10.1321 4.59007 9.94395 4.5112 9.7473 4.50949C9.55065 4.50778 9.3612 4.58338 9.21975 4.71999L7.5 6.43974L5.78025 4.71999Z"\n fill="black" />\n </svg>\n </div>\n </div>\n <div class="loop-returns-modal__body">\n Test Mode Successful\n </div>\n </div>\n </div>\n </div>',document.body.appendChild(t);const e=document.querySelector(".loop-returns-modal__close"),n=document.querySelector(".loop-returns-modal__backdrop"),o=e=>{"Escape"===e.key&&(t.remove(),document.removeEventListener("keydown",o))};document.addEventListener("keydown",o),null==e||e.addEventListener("click",()=>{t.remove(),document.removeEventListener("keydown",o),document.body.style.overflow="auto"}),null==n||n.addEventListener("click",()=>{t.remove(),document.removeEventListener("keydown",o),document.body.style.overflow="auto"})})(),void s("testMode",!1);a("redirect")&&(window.location.href=i)},J=()=>a("active"),K=()=>{var t,e,n,o;console.log("Using SDK version:",R.a),console.log("API Key Last 4:",null!==(t=null===(e=a("key"))||void 0===e?void 0:e.slice(-4))&&void 0!==t?t:"No key set"),console.log("Attached To:",null!==(n=a("attach"))&&void 0!==n?n:"No selector set"),console.log("Portal Embedded:",null!==(o=a("isEmbeddedPortal"))&&void 0!==o&&o)}}])}));
{
"name": "@loophq/onstore-sdk",
"private": false,
"version": "1.5.7",
"version": "1.5.8",
"description": "An SDK for integrating with loop returns on-store api",

@@ -6,0 +6,0 @@ "main": "dist/loop-onstore-sdk.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc