commerce-sdk-isomorphic 4.0.1-preview-shopper-configurations.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/lib/clientConfig.cjs.d.ts +4 -2
- package/lib/clientConfig.cjs.js +1 -1
- package/lib/clientConfig.d.ts +4 -2
- package/lib/clientConfig.js +1 -1
- package/lib/helpers.cjs.d.ts +9 -9
- package/lib/helpers.cjs.js +1 -1
- package/lib/helpers.d.ts +9 -9
- package/lib/helpers.js +1 -1
- package/lib/index.cjs.d.ts +333 -1025
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +333 -1025
- package/lib/index.esm.js +1 -1
- package/lib/shopperBaskets.cjs.d.ts +6 -1
- package/lib/shopperBaskets.cjs.js +1 -1
- package/lib/shopperBaskets.d.ts +6 -1
- package/lib/shopperBaskets.js +1 -1
- package/lib/shopperBasketsv2.cjs.d.ts +6 -1
- package/lib/shopperBasketsv2.cjs.js +1 -1
- package/lib/shopperBasketsv2.d.ts +6 -1
- package/lib/shopperBasketsv2.js +1 -1
- package/lib/shopperConsents.cjs.d.ts +6 -1
- package/lib/shopperConsents.cjs.js +1 -1
- package/lib/shopperConsents.d.ts +6 -1
- package/lib/shopperConsents.js +1 -1
- package/lib/shopperContext.cjs.d.ts +6 -1
- package/lib/shopperContext.cjs.js +1 -1
- package/lib/shopperContext.d.ts +6 -1
- package/lib/shopperContext.js +1 -1
- package/lib/shopperCustomers.cjs.d.ts +11 -246
- package/lib/shopperCustomers.cjs.js +1 -1
- package/lib/shopperCustomers.d.ts +11 -246
- package/lib/shopperCustomers.js +1 -1
- package/lib/shopperExperience.cjs.d.ts +6 -1
- package/lib/shopperExperience.cjs.js +1 -1
- package/lib/shopperExperience.d.ts +6 -1
- package/lib/shopperExperience.js +1 -1
- package/lib/shopperGiftCertificates.cjs.d.ts +6 -1
- package/lib/shopperGiftCertificates.cjs.js +1 -1
- package/lib/shopperGiftCertificates.d.ts +6 -1
- package/lib/shopperGiftCertificates.js +1 -1
- package/lib/shopperLogin.cjs.d.ts +6 -1
- package/lib/shopperLogin.cjs.js +1 -1
- package/lib/shopperLogin.d.ts +6 -1
- package/lib/shopperLogin.js +1 -1
- package/lib/shopperOrders.cjs.d.ts +6 -1
- package/lib/shopperOrders.cjs.js +1 -1
- package/lib/shopperOrders.d.ts +6 -1
- package/lib/shopperOrders.js +1 -1
- package/lib/shopperProducts.cjs.d.ts +6 -1
- package/lib/shopperProducts.cjs.js +1 -1
- package/lib/shopperProducts.d.ts +6 -1
- package/lib/shopperProducts.js +1 -1
- package/lib/shopperPromotions.cjs.d.ts +6 -1
- package/lib/shopperPromotions.cjs.js +1 -1
- package/lib/shopperPromotions.d.ts +6 -1
- package/lib/shopperPromotions.js +1 -1
- package/lib/shopperSearch.cjs.d.ts +6 -1
- package/lib/shopperSearch.cjs.js +1 -1
- package/lib/shopperSearch.d.ts +6 -1
- package/lib/shopperSearch.js +1 -1
- package/lib/shopperSeo.cjs.d.ts +6 -1
- package/lib/shopperSeo.cjs.js +1 -1
- package/lib/shopperSeo.d.ts +6 -1
- package/lib/shopperSeo.js +1 -1
- package/lib/shopperStores.cjs.d.ts +6 -1
- package/lib/shopperStores.cjs.js +1 -1
- package/lib/shopperStores.d.ts +6 -1
- package/lib/shopperStores.js +1 -1
- package/lib/version.cjs.d.ts +1 -1
- package/lib/version.cjs.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/lib/shopperConfigurations.cjs.d.ts +0 -601
- package/lib/shopperConfigurations.cjs.js +0 -1
- package/lib/shopperConfigurations.d.ts +0 -601
- package/lib/shopperConfigurations.js +0 -1
package/lib/helpers.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("nanoid");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=t(require("seedrandom")),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var a,s,c=function(e){return e&&e.Math==Math&&e},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=function(e){try{return!!e()}catch(e){return!0}},l=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!f((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),h=Function.prototype.call,p=d?h.bind(h):function(){return h.apply(h,arguments)},g={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y={f:v&&!g.call({1:2},1)?function(e){var t=v(this,e);return!!t&&t.enumerable}:g},m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},b=Function.prototype,w=b.bind,k=b.call,x=d&&w.bind(k,k),_=d?function(e){return e&&x(e)}:function(e){return e&&function(){return k.apply(e,arguments)}},I=_({}.toString),O=_("".slice),C=function(e){return O(I(e),8,-1)},P=Object,S=_("".split),z=f((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==C(e)?S(e,""):P(e)}:P,T=TypeError,A=function(e){if(null==e)throw T("Can't call method on "+e);return e},E=function(e){return z(A(e))},j=function(e){return"function"==typeof e},R=function(e){return"object"==typeof e?null!==e:j(e)},U=function(e){return j(e)?e:void 0},L=function(e,t){return arguments.length<2?U(u[e]):u[e]&&u[e][t]},q=_({}.isPrototypeOf),M=L("navigator","userAgent")||"",B=u.process,F=u.Deno,N=B&&B.versions||F&&F.version,D=N&&N.v8;D&&(s=(a=D.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!s&&M&&(!(a=M.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=M.match(/Chrome\/(\d+)/))&&(s=+a[1]);var W=s,G=!!Object.getOwnPropertySymbols&&!f((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,$=V?function(e){return"symbol"==typeof e}:function(e){var t=L("Symbol");return j(t)&&q(t.prototype,H(e))},Y=String,J=function(e){try{return Y(e)}catch(e){return"Object"}},K=TypeError,Q=function(e){if(j(e))return e;throw K(J(e)+" is not a function")},X=function(e,t){var r=e[t];return null==r?void 0:Q(r)},Z=TypeError,ee=Object.defineProperty,te=function(e,t){try{ee(u,e,{value:t,configurable:!0,writable:!0})}catch(r){u[e]=t}return t},re=u["__core-js_shared__"]||te("__core-js_shared__",{}),ne=i((function(e){(e.exports=function(e,t){return re[e]||(re[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),oe=Object,ie=function(e){return oe(A(e))},ae=_({}.hasOwnProperty),se=Object.hasOwn||function(e,t){return ae(ie(e),t)},ce=0,ue=Math.random(),fe=_(1..toString),le=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++ce+ue,36)},de=ne("wks"),he=u.Symbol,pe=he&&he.for,ge=V?he:he&&he.withoutSetter||le,ve=function(e){if(!se(de,e)||!G&&"string"!=typeof de[e]){var t="Symbol."+e;G&&se(he,e)?de[e]=he[e]:de[e]=V&&pe?pe(t):ge(t)}return de[e]},ye=TypeError,me=ve("toPrimitive"),be=function(e,t){if(!R(e)||$(e))return e;var r,n=X(e,me);if(n){if(void 0===t&&(t="default"),r=p(n,e,t),!R(r)||$(r))return r;throw ye("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&j(r=e.toString)&&!R(n=p(r,e)))return n;if(j(r=e.valueOf)&&!R(n=p(r,e)))return n;if("string"!==t&&j(r=e.toString)&&!R(n=p(r,e)))return n;throw Z("Can't convert object to primitive value")}(e,t)},we=function(e){var t=be(e,"string");return $(t)?t:t+""},ke=u.document,xe=R(ke)&&R(ke.createElement),_e=function(e){return xe?ke.createElement(e):{}},Ie=!l&&!f((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Oe=Object.getOwnPropertyDescriptor,Ce={f:l?Oe:function(e,t){if(e=E(e),t=we(t),Ie)try{return Oe(e,t)}catch(e){}if(se(e,t))return m(!p(y.f,e,t),e[t])}},Pe=l&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Se=String,ze=TypeError,Te=function(e){if(R(e))return e;throw ze(Se(e)+" is not an object")},Ae=TypeError,Ee=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Re={f:l?Pe?function(e,t,r){if(Te(e),t=we(t),Te(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=je(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Ee(e,t,r)}:Ee:function(e,t,r){if(Te(e),t=we(t),Te(r),Ie)try{return Ee(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ae("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ue=l?function(e,t,r){return Re.f(e,t,m(1,r))}:function(e,t,r){return e[t]=r,e},Le=Function.prototype,qe=l&&Object.getOwnPropertyDescriptor,Me=se(Le,"name"),Be={EXISTS:Me,PROPER:Me&&"something"===function(){}.name,CONFIGURABLE:Me&&(!l||l&&qe(Le,"name").configurable)},Fe=_(Function.toString);j(re.inspectSource)||(re.inspectSource=function(e){return Fe(e)});var Ne,De,We,Ge=re.inspectSource,Ve=u.WeakMap,He=j(Ve)&&/native code/.test(Ge(Ve)),$e=ne("keys"),Ye=function(e){return $e[e]||($e[e]=le(e))},Je={},Ke=u.TypeError,Qe=u.WeakMap;if(He||re.state){var Xe=re.state||(re.state=new Qe),Ze=_(Xe.get),et=_(Xe.has),tt=_(Xe.set);Ne=function(e,t){if(et(Xe,e))throw new Ke("Object already initialized");return t.facade=e,tt(Xe,e,t),t},De=function(e){return Ze(Xe,e)||{}},We=function(e){return et(Xe,e)}}else{var rt=Ye("state");Je[rt]=!0,Ne=function(e,t){if(se(e,rt))throw new Ke("Object already initialized");return t.facade=e,Ue(e,rt,t),t},De=function(e){return se(e,rt)?e[rt]:{}},We=function(e){return se(e,rt)}}var nt={set:Ne,get:De,has:We,enforce:function(e){return We(e)?De(e):Ne(e,{})},getterFor:function(e){return function(t){var r;if(!R(t)||(r=De(t)).type!==e)throw Ke("Incompatible receiver, "+e+" required");return r}}},ot=i((function(e){var t=Be.CONFIGURABLE,r=nt.enforce,n=nt.get,o=Object.defineProperty,i=l&&!f((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),s=e.exports=function(e,n,s){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(n="get "+n),s&&s.setter&&(n="set "+n),(!se(e,"name")||t&&e.name!==n)&&(l?o(e,"name",{value:n,configurable:!0}):e.name=n),i&&s&&se(s,"arity")&&e.length!==s.arity&&o(e,"length",{value:s.arity});try{s&&se(s,"constructor")&&s.constructor?l&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var c=r(e);return se(c,"source")||(c.source=a.join("string"==typeof n?n:"")),e};Function.prototype.toString=s((function(){return j(this)&&n(this).source||Ge(this)}),"toString")})),it=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(j(r)&&ot(r,i,n),n.global)o?e[t]=r:te(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Re.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},at=Math.ceil,st=Math.floor,ct=Math.trunc||function(e){var t=+e;return(t>0?st:at)(t)},ut=function(e){var t=+e;return t!=t||0===t?0:ct(t)},ft=Math.max,lt=Math.min,dt=function(e,t){var r=ut(e);return r<0?ft(r+t,0):lt(r,t)},ht=Math.min,pt=function(e){return e>0?ht(ut(e),9007199254740991):0},gt=function(e){return pt(e.length)},vt=function(e){return function(t,r,n){var o,i=E(t),a=gt(i),s=dt(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yt={includes:vt(!0),indexOf:vt(!1)},mt=yt.indexOf,bt=_([].push),wt=function(e,t){var r,n=E(e),o=0,i=[];for(r in n)!se(Je,r)&&se(n,r)&&bt(i,r);for(;t.length>o;)se(n,r=t[o++])&&(~mt(i,r)||bt(i,r));return i},kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=kt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(e){return wt(e,xt)}},It={f:Object.getOwnPropertySymbols},Ot=_([].concat),Ct=L("Reflect","ownKeys")||function(e){var t=_t.f(Te(e)),r=It.f;return r?Ot(t,r(e)):t},Pt=function(e,t,r){for(var n=Ct(t),o=Re.f,i=Ce.f,a=0;a<n.length;a++){var s=n[a];se(e,s)||r&&se(r,s)||o(e,s,i(t,s))}},St=/#|\.prototype\./,zt=function(e,t){var r=At[Tt(e)];return r==jt||r!=Et&&(j(t)?f(t):!!t)},Tt=zt.normalize=function(e){return String(e).replace(St,".").toLowerCase()},At=zt.data={},Et=zt.NATIVE="N",jt=zt.POLYFILL="P",Rt=zt,Ut=Ce.f,Lt=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,f=e.stat;if(r=c?u:f?u[s]||te(s,{}):(u[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Ut(r,n))&&a.value:r[n],!Rt(c?n:s+(f?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(e.sham||o&&o.sham)&&Ue(i,"sham",!0),it(r,n,i,e)}};function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Lt({global:!0},{globalThis:u});var Mt="object"===("undefined"==typeof window?"undefined":qt(window))&&"object"===qt(window.document),Bt="object"===("undefined"==typeof process?"undefined":qt(process))&&"object"===qt(process.versions)&&"string"==typeof process.versions.node,Ft=Mt?window:globalThis,Nt="function"==typeof Ft.fetch,Dt=function(){if(!Nt)throw new Error("Please use Node.js 18+ for native fetch support.");return Ft.fetch}(),Wt=Object.keys||function(e){return wt(e,kt)},Gt=f((function(){Wt(1)}));Lt({target:"Object",stat:!0,forced:Gt},{keys:function(e){return Wt(ie(e))}});var Vt={};Vt[ve("toStringTag")]="z";var Ht,$t="[object z]"===String(Vt),Yt=ve("toStringTag"),Jt=Object,Kt="Arguments"==C(function(){return arguments}()),Qt=$t?C:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Jt(e),Yt))?r:Kt?C(t):"Object"==(n=C(t))&&j(t.callee)?"Arguments":n},Xt=String,Zt=function(e){if("Symbol"===Qt(e))throw TypeError("Cannot convert a Symbol value to a string");return Xt(e)},er={f:l&&!Pe?Object.defineProperties:function(e,t){Te(e);for(var r,n=E(t),o=Wt(t),i=o.length,a=0;i>a;)Re.f(e,r=o[a++],n[r]);return e}},tr=L("document","documentElement"),rr=Ye("IE_PROTO"),nr=function(){},or=function(e){return"<script>"+e+"<\/script>"},ir=function(e){e.write(or("")),e.close();var t=e.parentWindow.Object;return e=null,t},ar=function(){try{Ht=new ActiveXObject("htmlfile")}catch(e){}var e,t;ar="undefined"!=typeof document?document.domain&&Ht?ir(Ht):((t=_e("iframe")).style.display="none",tr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(or("document.F=Object")),e.close(),e.F):ir(Ht);for(var r=kt.length;r--;)delete ar.prototype[kt[r]];return ar()};Je[rr]=!0;var sr=Object.create||function(e,t){var r;return null!==e?(nr.prototype=Te(e),r=new nr,nr.prototype=null,r[rr]=e):r=ar(),void 0===t?r:er.f(r,t)},cr=function(e,t,r){var n=we(t);n in e?Re.f(e,n,m(0,r)):e[n]=r},ur=Array,fr=Math.max,lr=function(e,t,r){for(var n=gt(e),o=dt(t,n),i=dt(void 0===r?n:r,n),a=ur(fr(i-o,0)),s=0;o<i;o++,s++)cr(a,s,e[o]);return a.length=s,a},dr=_t.f,hr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pr={f:function(e){return hr&&"Window"==C(e)?function(e){try{return dr(e)}catch(e){return lr(hr)}}(e):dr(E(e))}},gr={f:ve},vr=u,yr=Re.f,mr=Re.f,br=ve("toStringTag"),wr=function(e,t,r){e&&!r&&(e=e.prototype),e&&!se(e,br)&&mr(e,br,{configurable:!0,value:t})},kr=_(_.bind),xr=function(e,t){return Q(e),void 0===t?e:d?kr(e,t):function(){return e.apply(t,arguments)}},_r=Array.isArray||function(e){return"Array"==C(e)},Ir=function(){},Or=[],Cr=L("Reflect","construct"),Pr=/^\s*(?:class|function)\b/,Sr=_(Pr.exec),zr=!Pr.exec(Ir),Tr=function(e){if(!j(e))return!1;try{return Cr(Ir,Or,e),!0}catch(e){return!1}},Ar=function(e){if(!j(e))return!1;switch(Qt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return zr||!!Sr(Pr,Ge(e))}catch(e){return!0}};Ar.sham=!0;var Er=!Cr||f((function(){var e;return Tr(Tr.call)||!Tr(Object)||!Tr((function(){e=!0}))||e}))?Ar:Tr,jr=ve("species"),Rr=Array,Ur=function(e,t){return new(function(e){var t;return _r(e)&&(t=e.constructor,(Er(t)&&(t===Rr||_r(t.prototype))||R(t)&&null===(t=t[jr]))&&(t=void 0)),void 0===t?Rr:t}(e))(0===t?0:t)},Lr=_([].push),qr=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,u,f,l){for(var d,h,p=ie(c),g=z(p),v=xr(u,f),y=gt(g),m=0,b=l||Ur,w=t?b(c,y):r||a?b(c,0):void 0;y>m;m++)if((s||m in g)&&(h=v(d=g[m],m,p),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Lr(w,d)}else switch(e){case 4:return!1;case 7:Lr(w,d)}return i?-1:n||o?o:w}},Mr={forEach:qr(0),map:qr(1),filter:qr(2),some:qr(3),every:qr(4),find:qr(5),findIndex:qr(6),filterReject:qr(7)},Br=Mr.forEach,Fr=Ye("hidden"),Nr=nt.set,Dr=nt.getterFor("Symbol"),Wr=Object.prototype,Gr=u.Symbol,Vr=Gr&&Gr.prototype,Hr=u.TypeError,$r=u.QObject,Yr=Ce.f,Jr=Re.f,Kr=pr.f,Qr=y.f,Xr=_([].push),Zr=ne("symbols"),en=ne("op-symbols"),tn=ne("wks"),rn=!$r||!$r.prototype||!$r.prototype.findChild,nn=l&&f((function(){return 7!=sr(Jr({},"a",{get:function(){return Jr(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Yr(Wr,t);n&&delete Wr[t],Jr(e,t,r),n&&e!==Wr&&Jr(Wr,t,n)}:Jr,on=function(e,t){var r=Zr[e]=sr(Vr);return Nr(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},an=function(e,t,r){e===Wr&&an(en,t,r),Te(e);var n=we(t);return Te(r),se(Zr,n)?(r.enumerable?(se(e,Fr)&&e[Fr][n]&&(e[Fr][n]=!1),r=sr(r,{enumerable:m(0,!1)})):(se(e,Fr)||Jr(e,Fr,m(1,{})),e[Fr][n]=!0),nn(e,n,r)):Jr(e,n,r)},sn=function(e,t){Te(e);var r=E(t),n=Wt(r).concat(ln(r));return Br(n,(function(t){l&&!p(cn,r,t)||an(e,t,r[t])})),e},cn=function(e){var t=we(e),r=p(Qr,this,t);return!(this===Wr&&se(Zr,t)&&!se(en,t))&&(!(r||!se(this,t)||!se(Zr,t)||se(this,Fr)&&this[Fr][t])||r)},un=function(e,t){var r=E(e),n=we(t);if(r!==Wr||!se(Zr,n)||se(en,n)){var o=Yr(r,n);return!o||!se(Zr,n)||se(r,Fr)&&r[Fr][n]||(o.enumerable=!0),o}},fn=function(e){var t=Kr(E(e)),r=[];return Br(t,(function(e){se(Zr,e)||se(Je,e)||Xr(r,e)})),r},ln=function(e){var t=e===Wr,r=Kr(t?en:E(e)),n=[];return Br(r,(function(e){!se(Zr,e)||t&&!se(Wr,e)||Xr(n,Zr[e])})),n};G||(Vr=(Gr=function(){if(q(Vr,this))throw Hr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Zt(arguments[0]):void 0,t=le(e),r=function(e){this===Wr&&p(r,en,e),se(this,Fr)&&se(this[Fr],t)&&(this[Fr][t]=!1),nn(this,t,m(1,e))};return l&&rn&&nn(Wr,t,{configurable:!0,set:r}),on(t,e)}).prototype,it(Vr,"toString",(function(){return Dr(this).tag})),it(Gr,"withoutSetter",(function(e){return on(le(e),e)})),y.f=cn,Re.f=an,er.f=sn,Ce.f=un,_t.f=pr.f=fn,It.f=ln,gr.f=function(e){return on(ve(e),e)},l&&(Jr(Vr,"description",{configurable:!0,get:function(){return Dr(this).description}}),it(Wr,"propertyIsEnumerable",cn,{unsafe:!0}))),Lt({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:Gr}),Br(Wt(tn),(function(e){!function(e){var t=vr.Symbol||(vr.Symbol={});se(t,e)||yr(t,e,{value:gr.f(e)})}(e)})),Lt({target:"Symbol",stat:!0,forced:!G},{useSetter:function(){rn=!0},useSimple:function(){rn=!1}}),Lt({target:"Object",stat:!0,forced:!G,sham:!l},{create:function(e,t){return void 0===t?sr(e):sn(sr(e),t)},defineProperty:an,defineProperties:sn,getOwnPropertyDescriptor:un}),Lt({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:fn}),function(){var e=L("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=ve("toPrimitive");t&&!t[n]&&it(t,n,(function(e){return p(r,this)}),{arity:1})}(),wr(Gr,"Symbol"),Je[Fr]=!0;var dn=G&&!!Symbol.for&&!!Symbol.keyFor,hn=ne("string-to-symbol-registry"),pn=ne("symbol-to-string-registry");Lt({target:"Symbol",stat:!0,forced:!dn},{for:function(e){var t=Zt(e);if(se(hn,t))return hn[t];var r=L("Symbol")(t);return hn[t]=r,pn[r]=t,r}});var gn=ne("symbol-to-string-registry");Lt({target:"Symbol",stat:!0,forced:!dn},{keyFor:function(e){if(!$(e))throw TypeError(J(e)+" is not a symbol");if(se(gn,e))return gn[e]}});var vn=Function.prototype,yn=vn.apply,mn=vn.call,bn="object"==typeof Reflect&&Reflect.apply||(d?mn.bind(yn):function(){return mn.apply(yn,arguments)}),wn=_([].slice),kn=L("JSON","stringify"),xn=_(/./.exec),_n=_("".charAt),In=_("".charCodeAt),On=_("".replace),Cn=_(1..toString),Pn=/[\uD800-\uDFFF]/g,Sn=/^[\uD800-\uDBFF]$/,zn=/^[\uDC00-\uDFFF]$/,Tn=!G||f((function(){var e=L("Symbol")();return"[null]"!=kn([e])||"{}"!=kn({a:e})||"{}"!=kn(Object(e))})),An=f((function(){return'"\\udf06\\ud834"'!==kn("\udf06\ud834")||'"\\udead"'!==kn("\udead")})),En=function(e,t){var r=wn(arguments),n=t;if((R(t)||void 0!==e)&&!$(e))return _r(t)||(t=function(e,t){if(j(n)&&(t=p(n,this,e,t)),!$(t))return t}),r[1]=t,bn(kn,null,r)},jn=function(e,t,r){var n=_n(r,t-1),o=_n(r,t+1);return xn(Sn,e)&&!xn(zn,o)||xn(zn,e)&&!xn(Sn,n)?"\\u"+Cn(In(e,0),16):e};kn&&Lt({target:"JSON",stat:!0,arity:3,forced:Tn||An},{stringify:function(e,t,r){var n=wn(arguments),o=bn(Tn?En:kn,null,n);return An&&"string"==typeof o?On(o,Pn,jn):o}});var Rn=!G||f((function(){It.f(1)}));Lt({target:"Object",stat:!0,forced:Rn},{getOwnPropertySymbols:function(e){var t=It.f;return t?t(ie(e)):[]}});var Un=ve("species"),Ln=function(e){return W>=51||!f((function(){var t=[];return(t.constructor={})[Un]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qn=Mr.filter,Mn=Ln("filter");Lt({target:"Array",proto:!0,forced:!Mn},{filter:function(e){return qn(this,e,arguments.length>1?arguments[1]:void 0)}});var Bn=$t?{}.toString:function(){return"[object "+Qt(this)+"]"};$t||it(Object.prototype,"toString",Bn,{unsafe:!0});var Fn=Ce.f,Nn=f((function(){Fn(1)}));Lt({target:"Object",stat:!0,forced:!l||Nn,sham:!l},{getOwnPropertyDescriptor:function(e,t){return Fn(E(e),t)}});var Dn={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},Wn=_e("span").classList,Gn=Wn&&Wn.constructor&&Wn.constructor.prototype,Vn=Gn===Object.prototype?void 0:Gn,Hn=function(e,t){var r=[][e];return!!r&&f((function(){r.call(null,t||function(){return 1},1)}))},$n=Mr.forEach,Yn=Hn("forEach")?[].forEach:function(e){return $n(this,e,arguments.length>1?arguments[1]:void 0)},Jn=function(e){if(e&&e.forEach!==Yn)try{Ue(e,"forEach",Yn)}catch(t){e.forEach=Yn}};for(var Kn in Dn)Dn[Kn]&&Jn(u[Kn]&&u[Kn].prototype);Jn(Vn),Lt({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(e){for(var t,r,n=E(e),o=Ce.f,i=Ct(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&cr(a,t,r);return a}});var Qn=er.f;Lt({target:"Object",stat:!0,forced:Object.defineProperties!==Qn,sham:!l},{defineProperties:Qn});var Xn=Re.f;Lt({target:"Object",stat:!0,forced:Object.defineProperty!==Xn,sham:!l},{defineProperty:Xn});var Zn=function(){var e=Te(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},eo=RegExp.prototype,to=Be.PROPER,ro=RegExp.prototype.toString,no=f((function(){return"/a/b"!=ro.call({source:"a",flags:"b"})})),oo=to&&"toString"!=ro.name;(no||oo)&&it(RegExp.prototype,"toString",(function(){var e=Te(this);return"/"+Zt(e.source)+"/"+Zt(function(e){var t=e.flags;return void 0!==t||"flags"in eo||se(e,"flags")||!q(eo,e)?t:p(Zn,e)}(e))}),{unsafe:!0});var io=Re.f,ao=ve("unscopables"),so=Array.prototype;null==so[ao]&&io(so,ao,{configurable:!0,value:sr(null)});var co,uo,fo,lo=function(e){so[ao][e]=!0},ho={},po=!f((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),go=Ye("IE_PROTO"),vo=Object,yo=vo.prototype,mo=po?vo.getPrototypeOf:function(e){var t=ie(e);if(se(t,go))return t[go];var r=t.constructor;return j(r)&&t instanceof r?r.prototype:t instanceof vo?yo:null},bo=ve("iterator"),wo=!1;[].keys&&("next"in(fo=[].keys())?(uo=mo(mo(fo)))!==Object.prototype&&(co=uo):wo=!0),(null==co||f((function(){var e={};return co[bo].call(e)!==e})))&&(co={}),j(co[bo])||it(co,bo,(function(){return this}));var ko={IteratorPrototype:co,BUGGY_SAFARI_ITERATORS:wo},xo=ko.IteratorPrototype,_o=function(){return this},Io=function(e,t,r,n){var o=t+" Iterator";return e.prototype=sr(xo,{next:m(+!n,r)}),wr(e,o,!1),ho[o]=_o,e},Oo=String,Co=TypeError,Po=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Te(r),function(e){if("object"==typeof e||j(e))return e;throw Co("Can't set "+Oo(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),So=Be.PROPER,zo=Be.CONFIGURABLE,To=ko.IteratorPrototype,Ao=ko.BUGGY_SAFARI_ITERATORS,Eo=ve("iterator"),jo=function(){return this},Ro=function(e,t,r,n,o,i,a){Io(r,t,n);var s,c,u,f=function(e){if(e===o&&v)return v;if(!Ao&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",d=!1,h=e.prototype,g=h[Eo]||h["@@iterator"]||o&&h[o],v=!Ao&&g||f(o),y="Array"==t&&h.entries||g;if(y&&(s=mo(y.call(new e)))!==Object.prototype&&s.next&&(mo(s)!==To&&(Po?Po(s,To):j(s[Eo])||it(s,Eo,jo)),wr(s,l,!0)),So&&"values"==o&&g&&"values"!==g.name&&(zo?Ue(h,"name","values"):(d=!0,v=function(){return p(g,this)})),o)if(c={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(u in c)(Ao||d||!(u in h))&&it(h,u,c[u]);else Lt({target:t,proto:!0,forced:Ao||d},c);return h[Eo]!==v&&it(h,Eo,v,{name:o}),ho[t]=v,c},Uo=Re.f,Lo=nt.set,qo=nt.getterFor("Array Iterator"),Mo=Ro(Array,"Array",(function(e,t){Lo(this,{type:"Array Iterator",target:E(e),index:0,kind:t})}),(function(){var e=qo(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Bo=ho.Arguments=ho.Array;if(lo("keys"),lo("values"),lo("entries"),l&&"values"!==Bo.name)try{Uo(Bo,"name",{value:"values"})}catch(e){}var Fo=_("".charAt),No=_("".charCodeAt),Do=_("".slice),Wo=function(e){return function(t,r){var n,o,i=Zt(A(t)),a=ut(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=No(i,a))<55296||n>56319||a+1===s||(o=No(i,a+1))<56320||o>57343?e?Fo(i,a):n:e?Do(i,a,a+2):o-56320+(n-55296<<10)+65536}},Go={codeAt:Wo(!1),charAt:Wo(!0)},Vo=Go.charAt,Ho=nt.set,$o=nt.getterFor("String Iterator");Ro(String,"String",(function(e){Ho(this,{type:"String Iterator",string:Zt(e),index:0})}),(function(){var e,t=$o(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Vo(r,n),t.index+=e.length,{value:e,done:!1})}));var Yo=ve("iterator"),Jo=ve("toStringTag"),Ko=Mo.values,Qo=function(e,t){if(e){if(e[Yo]!==Ko)try{Ue(e,Yo,Ko)}catch(t){e[Yo]=Ko}if(e[Jo]||Ue(e,Jo,t),Dn[t])for(var r in Mo)if(e[r]!==Mo[r])try{Ue(e,r,Mo[r])}catch(t){e[r]=Mo[r]}}};for(var Xo in Dn)Qo(u[Xo]&&u[Xo].prototype,Xo);Qo(Vn,"DOMTokenList");var Zo=ve("iterator"),ei=!f((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Zo]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),ti=function(e,t,r){return r.get&&ot(r.get,t,{getter:!0}),r.set&&ot(r.set,t,{setter:!0}),Re.f(e,t,r)},ri=TypeError,ni=function(e,t){if(q(t,e))return e;throw ri("Incorrect invocation")},oi=Object.assign,ii=Object.defineProperty,ai=_([].concat),si=!oi||f((function(){if(l&&1!==oi({b:1},oi(ii({},"a",{enumerable:!0,get:function(){ii(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=oi({},e)[r]||"abcdefghijklmnopqrst"!=Wt(oi({},t)).join("")}))?function(e,t){for(var r=ie(e),n=arguments.length,o=1,i=It.f,a=y.f;n>o;)for(var s,c=z(arguments[o++]),u=i?ai(Wt(c),i(c)):Wt(c),f=u.length,d=0;f>d;)s=u[d++],l&&!p(a,c,s)||(r[s]=c[s]);return r}:oi,ci=function(e,t,r){var n,o;Te(e);try{if(!(n=X(e,"return"))){if("throw"===t)throw r;return r}n=p(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Te(n),r},ui=function(e,t,r,n){try{return n?t(Te(r)[0],r[1]):t(r)}catch(t){ci(e,"throw",t)}},fi=ve("iterator"),li=Array.prototype,di=function(e){return void 0!==e&&(ho.Array===e||li[fi]===e)},hi=ve("iterator"),pi=function(e){if(null!=e)return X(e,hi)||X(e,"@@iterator")||ho[Qt(e)]},gi=TypeError,vi=function(e,t){var r=arguments.length<2?pi(e):t;if(Q(r))return Te(p(r,e));throw gi(J(e)+" is not iterable")},yi=Array,mi=function(e){var t=ie(e),r=Er(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=xr(o,n>2?arguments[2]:void 0));var a,s,c,u,f,l,d=pi(t),h=0;if(!d||this===yi&&di(d))for(a=gt(t),s=r?new this(a):yi(a);a>h;h++)l=i?o(t[h],h):t[h],cr(s,h,l);else for(f=(u=vi(t,d)).next,s=r?new this:[];!(c=p(f,u)).done;h++)l=i?ui(u,o,[c.value,h],!0):c.value,cr(s,h,l);return s.length=h,s},bi=/[^\0-\u007E]/,wi=/[.\u3002\uFF0E\uFF61]/g,ki="Overflow: input needs wider integers to process",xi=RangeError,_i=_(wi.exec),Ii=Math.floor,Oi=String.fromCharCode,Ci=_("".charCodeAt),Pi=_([].join),Si=_([].push),zi=_("".replace),Ti=_("".split),Ai=_("".toLowerCase),Ei=function(e){return e+22+75*(e<26)},ji=function(e,t,r){var n=0;for(e=r?Ii(e/700):e>>1,e+=Ii(e/t);e>455;)e=Ii(e/35),n+=36;return Ii(n+36*e/(e+38))},Ri=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Ci(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Ci(e,r++);56320==(64512&i)?Si(t,((1023&o)<<10)+(1023&i)+65536):(Si(t,o),r--)}else Si(t,o)}return t}(e)).length,i=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Si(n,Oi(r));var c=n.length,u=c;for(c&&Si(n,"-");u<o;){var f=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<f&&(f=r);var l=u+1;if(f-i>Ii((2147483647-a)/l))throw xi(ki);for(a+=(f-i)*l,i=f,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw xi(ki);if(r==i){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var g=d-p,v=36-p;Si(n,Oi(Ei(p+g%v))),d=Ii(g/v),h+=36}Si(n,Oi(Ei(d))),s=ji(a,l,u==c),a=0,u++}}a++,i++}return Pi(n,"")},Ui=TypeError,Li=function(e,t){if(e<t)throw Ui("Not enough arguments");return e},qi=function(e,t,r){for(var n in t)it(e,n,t[n],r);return e},Mi=Math.floor,Bi=function(e,t){var r=e.length,n=Mi(r/2);return r<8?Fi(e,t):Ni(e,Bi(lr(e,0,n),t),Bi(lr(e,n),t),t)},Fi=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Ni=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},Di=Bi,Wi=ve("iterator"),Gi=nt.set,Vi=nt.getterFor("URLSearchParams"),Hi=nt.getterFor("URLSearchParamsIterator"),$i=Object.getOwnPropertyDescriptor,Yi=function(e){if(!l)return u[e];var t=$i(u,e);return t&&t.value},Ji=Yi("fetch"),Ki=Yi("Request"),Qi=Yi("Headers"),Xi=Ki&&Ki.prototype,Zi=Qi&&Qi.prototype,ea=u.RegExp,ta=u.TypeError,ra=u.decodeURIComponent,na=u.encodeURIComponent,oa=_("".charAt),ia=_([].join),aa=_([].push),sa=_("".replace),ca=_([].shift),ua=_([].splice),fa=_("".split),la=_("".slice),da=/\+/g,ha=Array(4),pa=function(e){return ha[e-1]||(ha[e-1]=ea("((?:%[\\da-f]{2}){"+e+"})","gi"))},ga=function(e){try{return ra(e)}catch(t){return e}},va=function(e){var t=sa(e,da," "),r=4;try{return ra(t)}catch(e){for(;r;)t=sa(t,pa(r--),ga);return t}},ya=/[!'()~]|%20/g,ma={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ba=function(e){return ma[e]},wa=function(e){return sa(na(e),ya,ba)},ka=Io((function(e,t){Gi(this,{type:"URLSearchParamsIterator",iterator:vi(Vi(e).entries),kind:t})}),"Iterator",(function(){var e=Hi(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),xa=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===oa(e,0)?la(e,1):e:Zt(e)))};xa.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=pi(e);if(c)for(r=(t=vi(e,c)).next;!(n=p(r,t)).done;){if(i=(o=vi(Te(n.value))).next,(a=p(i,o)).done||(s=p(i,o)).done||!p(i,o).done)throw ta("Expected sequence with length 2");aa(this.entries,{key:Zt(a.value),value:Zt(s.value)})}else for(var u in e)se(e,u)&&aa(this.entries,{key:u,value:Zt(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=fa(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=fa(t,"="),aa(this.entries,{key:va(ca(r)),value:va(ia(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],aa(r,wa(e.key)+"="+wa(e.value));return ia(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var _a=function(){ni(this,Ia);var e=arguments.length>0?arguments[0]:void 0;Gi(this,new xa(e))},Ia=_a.prototype;if(qi(Ia,{append:function(e,t){Li(arguments.length,2);var r=Vi(this);aa(r.entries,{key:Zt(e),value:Zt(t)}),r.updateURL()},delete:function(e){Li(arguments.length,1);for(var t=Vi(this),r=t.entries,n=Zt(e),o=0;o<r.length;)r[o].key===n?ua(r,o,1):o++;t.updateURL()},get:function(e){Li(arguments.length,1);for(var t=Vi(this).entries,r=Zt(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Li(arguments.length,1);for(var t=Vi(this).entries,r=Zt(e),n=[],o=0;o<t.length;o++)t[o].key===r&&aa(n,t[o].value);return n},has:function(e){Li(arguments.length,1);for(var t=Vi(this).entries,r=Zt(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Li(arguments.length,1);for(var r,n=Vi(this),o=n.entries,i=!1,a=Zt(e),s=Zt(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?ua(o,c--,1):(i=!0,r.value=s));i||aa(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=Vi(this);Di(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Vi(this).entries,n=xr(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ka(this,"keys")},values:function(){return new ka(this,"values")},entries:function(){return new ka(this,"entries")}},{enumerable:!0}),it(Ia,Wi,Ia.entries,{name:"entries"}),it(Ia,"toString",(function(){return Vi(this).serialize()}),{enumerable:!0}),wr(_a,"URLSearchParams"),Lt({global:!0,constructor:!0,forced:!ei},{URLSearchParams:_a}),!ei&&j(Qi)){var Oa=_(Zi.has),Ca=_(Zi.set),Pa=function(e){if(R(e)){var t,r=e.body;if("URLSearchParams"===Qt(r))return t=e.headers?new Qi(e.headers):new Qi,Oa(t,"content-type")||Ca(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),sr(e,{body:m(0,Zt(r)),headers:m(0,t)})}return e};if(j(Ji)&&Lt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Ji(e,arguments.length>1?Pa(arguments[1]):{})}}),j(Ki)){var Sa=function(e){return ni(this,Xi),new Ki(e,arguments.length>1?Pa(arguments[1]):{})};Xi.constructor=Sa,Sa.prototype=Xi,Lt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Sa})}}var za,Ta={URLSearchParams:_a,getState:Vi},Aa=Go.codeAt,Ea=nt.set,ja=nt.getterFor("URL"),Ra=Ta.URLSearchParams,Ua=Ta.getState,La=u.URL,qa=u.TypeError,Ma=u.parseInt,Ba=Math.floor,Fa=Math.pow,Na=_("".charAt),Da=_(/./.exec),Wa=_([].join),Ga=_(1..toString),Va=_([].pop),Ha=_([].push),$a=_("".replace),Ya=_([].shift),Ja=_("".split),Ka=_("".slice),Qa=_("".toLowerCase),Xa=_([].unshift),Za=/[a-z]/i,es=/[\d+-.a-z]/i,ts=/\d/,rs=/^0x/i,ns=/^[0-7]+$/,os=/^\d+$/,is=/^[\da-f]+$/i,as=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ss=/[\0\t\n\r #/:<>?@[\\\]^|]/,cs=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,us=/[\t\n\r]/g,fs=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Xa(t,e%256),e=Ba(e/256);return Wa(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Ga(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ls={},ds=si({},ls,{" ":1,'"':1,"<":1,">":1,"`":1}),hs=si({},ds,{"#":1,"?":1,"{":1,"}":1}),ps=si({},hs,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gs=function(e,t){var r=Aa(e,0);return r>32&&r<127&&!se(t,e)?e:encodeURIComponent(e)},vs={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ys=function(e,t){var r;return 2==e.length&&Da(Za,Na(e,0))&&(":"==(r=Na(e,1))||!t&&"|"==r)},ms=function(e){var t;return e.length>1&&ys(Ka(e,0,2))&&(2==e.length||"/"===(t=Na(e,2))||"\\"===t||"?"===t||"#"===t)},bs=function(e){return"."===e||"%2e"===Qa(e)},ws={},ks={},xs={},_s={},Is={},Os={},Cs={},Ps={},Ss={},zs={},Ts={},As={},Es={},js={},Rs={},Us={},Ls={},qs={},Ms={},Bs={},Fs={},Ns=function(e,t,r){var n,o,i,a=Zt(e);if(t){if(o=this.parse(a))throw qa(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ns(r,!0)),o=this.parse(a,null,n))throw qa(o);(i=Ua(new Ra)).bindURL(this),this.searchParams=i}};Ns.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,c=this,u=t||ws,f=0,l="",d=!1,h=!1,p=!1;for(e=Zt(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=$a(e,cs,"")),e=$a(e,us,""),n=mi(e);f<=n.length;){switch(o=n[f],u){case ws:if(!o||!Da(Za,o)){if(t)return"Invalid scheme";u=xs;continue}l+=Qa(o),u=ks;break;case ks:if(o&&(Da(es,o)||"+"==o||"-"==o||"."==o))l+=Qa(o);else{if(":"!=o){if(t)return"Invalid scheme";l="",u=xs,f=0;continue}if(t&&(c.isSpecial()!=se(vs,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&vs[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?u=js:c.isSpecial()&&r&&r.scheme==c.scheme?u=_s:c.isSpecial()?u=Ps:"/"==n[f+1]?(u=Is,f++):(c.cannotBeABaseURL=!0,Ha(c.path,""),u=Ms)}break;case xs:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=lr(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=Fs;break}u="file"==r.scheme?js:Os;continue;case _s:if("/"!=o||"/"!=n[f+1]){u=Os;continue}u=Ss,f++;break;case Is:if("/"==o){u=zs;break}u=qs;continue;case Os:if(c.scheme=r.scheme,o==za)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=lr(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())u=Cs;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=lr(r.path),c.query="",u=Bs;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=lr(r.path),c.path.length--,u=qs;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=lr(r.path),c.query=r.query,c.fragment="",u=Fs}break;case Cs:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=qs;continue}u=zs}else u=Ss;break;case Ps:if(u=Ss,"/"!=o||"/"!=Na(l,f+1))continue;f++;break;case Ss:if("/"!=o&&"\\"!=o){u=zs;continue}break;case zs:if("@"==o){d&&(l="%40"+l),d=!0,i=mi(l);for(var g=0;g<i.length;g++){var v=i[g];if(":"!=v||p){var y=gs(v,ps);p?c.password+=y:c.username+=y}else p=!0}l=""}else if(o==za||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(d&&""==l)return"Invalid authority";f-=mi(l).length+1,l="",u=Ts}else l+=o;break;case Ts:case As:if(t&&"file"==c.scheme){u=Us;continue}if(":"!=o||h){if(o==za||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==l)return"Invalid host";if(t&&""==l&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(l))return a;if(l="",u=Ls,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),l+=o}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",u=Es,t==As)return}break;case Es:if(!Da(ts,o)){if(o==za||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=l){var m=Ma(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===vs[c.scheme]?null:m,l=""}if(t)return;u=Ls;continue}return"Invalid port"}l+=o;break;case js:if(c.scheme="file","/"==o||"\\"==o)u=Rs;else{if(!r||"file"!=r.scheme){u=qs;continue}if(o==za)c.host=r.host,c.path=lr(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=lr(r.path),c.query="",u=Bs;else{if("#"!=o){ms(Wa(lr(n,f),""))||(c.host=r.host,c.path=lr(r.path),c.shortenPath()),u=qs;continue}c.host=r.host,c.path=lr(r.path),c.query=r.query,c.fragment="",u=Fs}}break;case Rs:if("/"==o||"\\"==o){u=Us;break}r&&"file"==r.scheme&&!ms(Wa(lr(n,f),""))&&(ys(r.path[0],!0)?Ha(c.path,r.path[0]):c.host=r.host),u=qs;continue;case Us:if(o==za||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ys(l))u=qs;else if(""==l){if(c.host="",t)return;u=Ls}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),t)return;l="",u=Ls}continue}l+=o;break;case Ls:if(c.isSpecial()){if(u=qs,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=za&&(u=qs,"/"!=o))continue}else c.fragment="",u=Fs;else c.query="",u=Bs;break;case qs:if(o==za||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=Qa(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||Ha(c.path,"")):bs(l)?"/"==o||"\\"==o&&c.isSpecial()||Ha(c.path,""):("file"==c.scheme&&!c.path.length&&ys(l)&&(c.host&&(c.host=""),l=Na(l,0)+":"),Ha(c.path,l)),l="","file"==c.scheme&&(o==za||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)Ya(c.path);"?"==o?(c.query="",u=Bs):"#"==o&&(c.fragment="",u=Fs)}else l+=gs(o,hs);break;case Ms:"?"==o?(c.query="",u=Bs):"#"==o?(c.fragment="",u=Fs):o!=za&&(c.path[0]+=gs(o,ls));break;case Bs:t||"#"!=o?o!=za&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":gs(o,ls)):(c.fragment="",u=Fs);break;case Fs:o!=za&&(c.fragment+=gs(o,ds))}f++}},parseHost:function(e){var t,r,n;if("["==Na(e,0)){if("]"!=Na(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,d=function(){return Na(e,l)};if(":"==d()){if(":"!=Na(e,1))return;l+=2,f=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=r=0;r<4&&Da(is,d());)t=16*t+Ma(d(),16),l++,r++;if("."==d()){if(0==r)return;if(l-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;l++}if(!Da(ts,d()))return;for(;Da(ts,d());){if(i=Ma(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;c[u++]=t}else{if(null!==f)return;l++,f=++u}}if(null!==f)for(a=u-f,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[f+a-1],c[f+--a]=s;else if(8!=u)return;return c}(Ka(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=Ti(zi(Ai(e),wi,"."),".");for(t=0;t<o.length;t++)r=o[t],Si(n,_i(bi,r)?"xn--"+Ri(r):r);return Pi(n,".")}(e),Da(as,e))return"Invalid host";if(null===(t=function(e){var t,r,n,o,i,a,s,c=Ja(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==Na(o,0)&&(i=Da(rs,o)?16:8,o=Ka(o,8==i?1:2)),""===o)a=0;else{if(!Da(10==i?os:8==i?ns:is,o))return e;a=Ma(o,i)}Ha(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=Fa(256,5-t))return null}else if(a>255)return null;for(s=Va(r),n=0;n<r.length;n++)s+=r[n]*Fa(256,3-n);return s}(e)))return"Invalid host";this.host=t}else{if(Da(ss,e))return"Invalid host";for(t="",r=mi(e),n=0;n<r.length;n++)t+=gs(r[n],ls);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return se(vs,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ys(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=fs(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Wa(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw qa(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Ds(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+fs(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Zt(e)+":",ws)},getUsername:function(){return this.username},setUsername:function(e){var t=mi(Zt(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=gs(t[r],ps)}},getPassword:function(){return this.password},setPassword:function(e){var t=mi(Zt(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=gs(t[r],ps)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?fs(e):fs(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ts)},getHostname:function(){var e=this.host;return null===e?"":fs(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,As)},getPort:function(){var e=this.port;return null===e?"":Zt(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Zt(e))?this.port=null:this.parse(e,Es))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Wa(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ls))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Zt(e))?this.query=null:("?"==Na(e,0)&&(e=Ka(e,1)),this.query="",this.parse(e,Bs)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Zt(e))?("#"==Na(e,0)&&(e=Ka(e,1)),this.fragment="",this.parse(e,Fs)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ds=function(e){var t=ni(this,Ws),r=Li(arguments.length,1)>1?arguments[1]:void 0,n=Ea(t,new Ns(e,!1,r));l||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Ws=Ds.prototype,Gs=function(e,t){return{get:function(){return ja(this)[e]()},set:t&&function(e){return ja(this)[t](e)},configurable:!0,enumerable:!0}};if(l&&(ti(Ws,"href",Gs("serialize","setHref")),ti(Ws,"origin",Gs("getOrigin")),ti(Ws,"protocol",Gs("getProtocol","setProtocol")),ti(Ws,"username",Gs("getUsername","setUsername")),ti(Ws,"password",Gs("getPassword","setPassword")),ti(Ws,"host",Gs("getHost","setHost")),ti(Ws,"hostname",Gs("getHostname","setHostname")),ti(Ws,"port",Gs("getPort","setPort")),ti(Ws,"pathname",Gs("getPathname","setPathname")),ti(Ws,"search",Gs("getSearch","setSearch")),ti(Ws,"searchParams",Gs("getSearchParams")),ti(Ws,"hash",Gs("getHash","setHash"))),it(Ws,"toJSON",(function(){return ja(this).serialize()}),{enumerable:!0}),it(Ws,"toString",(function(){return ja(this).serialize()}),{enumerable:!0}),La){var Vs=La.createObjectURL,Hs=La.revokeObjectURL;Vs&&it(Ds,"createObjectURL",xr(Vs,La)),Hs&&it(Ds,"revokeObjectURL",xr(Hs,La))}wr(Ds,"URL"),Lt({global:!0,constructor:!0,forced:!ei,sham:!l},{URL:Ds});var $s,Ys,Js=u.RegExp,Ks=f((function(){var e=Js("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Qs=Ks||f((function(){return!Js("a","y").sticky})),Xs={BROKEN_CARET:Ks||f((function(){var e=Js("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Qs,UNSUPPORTED_Y:Ks},Zs=u.RegExp,ec=f((function(){var e=Zs(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),tc=u.RegExp,rc=f((function(){var e=tc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),nc=nt.get,oc=ne("native-string-replace",String.prototype.replace),ic=RegExp.prototype.exec,ac=ic,sc=_("".charAt),cc=_("".indexOf),uc=_("".replace),fc=_("".slice),lc=(Ys=/b*/g,p(ic,$s=/a/,"a"),p(ic,Ys,"a"),0!==$s.lastIndex||0!==Ys.lastIndex),dc=Xs.BROKEN_CARET,hc=void 0!==/()??/.exec("")[1];(lc||hc||dc||ec||rc)&&(ac=function(e){var t,r,n,o,i,a,s,c=this,u=nc(c),f=Zt(e),l=u.raw;if(l)return l.lastIndex=c.lastIndex,t=p(ac,l,f),c.lastIndex=l.lastIndex,t;var d=u.groups,h=dc&&c.sticky,g=p(Zn,c),v=c.source,y=0,m=f;if(h&&(g=uc(g,"y",""),-1===cc(g,"g")&&(g+="g"),m=fc(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==sc(f,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),r=new RegExp("^(?:"+v+")",g)),hc&&(r=new RegExp("^"+v+"$(?!\\s)",g)),lc&&(n=c.lastIndex),o=p(ic,h?r:c,m),h?o?(o.input=fc(o.input,y),o[0]=fc(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:lc&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),hc&&o&&o.length>1&&p(oc,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=sr(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var pc=ac;Lt({target:"RegExp",proto:!0,forced:/./.exec!==pc},{exec:pc});var gc=ve("species"),vc=RegExp.prototype,yc=function(e,t,r,n){var o=ve(e),i=!f((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!f((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[gc]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=_(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=_(e),c=t.exec;return c===pc||c===vc.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));it(String.prototype,e,c[0]),it(vc,o,c[1])}n&&Ue(vc[o],"sham",!0)},mc=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},bc=TypeError,wc=function(e,t){var r=e.exec;if(j(r)){var n=p(r,e,t);return null!==n&&Te(n),n}if("RegExp"===C(e))return p(pc,e,t);throw bc("RegExp#exec called on incompatible receiver")};yc("search",(function(e,t,r){return[function(t){var r=A(this),n=null==t?void 0:X(t,e);return n?p(n,t,r):new RegExp(t)[e](Zt(r))},function(e){var n=Te(this),o=Zt(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;mc(a,0)||(n.lastIndex=0);var s=wc(n,o);return mc(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var kc=Mr.map,xc=Ln("map");Lt({target:"Array",proto:!0,forced:!xc},{map:function(e){return kc(this,e,arguments.length>1?arguments[1]:void 0)}});var _c=ve("iterator"),Ic=!1;try{var Oc=0,Cc={next:function(){return{done:!!Oc++}},return:function(){Ic=!0}};Cc[_c]=function(){return this},Array.from(Cc,(function(){throw 2}))}catch(e){}var Pc,Sc,zc,Tc=function(e,t){if(!t&&!Ic)return!1;var r=!1;try{var n={};n[_c]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Ac="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ec=Re.f,jc=nt.enforce,Rc=nt.get,Uc=u.Int8Array,Lc=Uc&&Uc.prototype,qc=u.Uint8ClampedArray,Mc=qc&&qc.prototype,Bc=Uc&&mo(Uc),Fc=Lc&&mo(Lc),Nc=Object.prototype,Dc=u.TypeError,Wc=ve("toStringTag"),Gc=le("TYPED_ARRAY_TAG"),Vc=Ac&&!!Po&&"Opera"!==Qt(u.opera),Hc=!1,$c={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Yc={BigInt64Array:8,BigUint64Array:8},Jc=function(e){var t=mo(e);if(R(t)){var r=Rc(t);return r&&se(r,"TypedArrayConstructor")?r.TypedArrayConstructor:Jc(t)}},Kc=function(e){if(!R(e))return!1;var t=Qt(e);return se($c,t)||se(Yc,t)};for(Pc in $c)(zc=(Sc=u[Pc])&&Sc.prototype)?jc(zc).TypedArrayConstructor=Sc:Vc=!1;for(Pc in Yc)(zc=(Sc=u[Pc])&&Sc.prototype)&&(jc(zc).TypedArrayConstructor=Sc);if((!Vc||!j(Bc)||Bc===Function.prototype)&&(Bc=function(){throw Dc("Incorrect invocation")},Vc))for(Pc in $c)u[Pc]&&Po(u[Pc],Bc);if((!Vc||!Fc||Fc===Nc)&&(Fc=Bc.prototype,Vc))for(Pc in $c)u[Pc]&&Po(u[Pc].prototype,Fc);if(Vc&&mo(Mc)!==Fc&&Po(Mc,Fc),l&&!se(Fc,Wc))for(Pc in Hc=!0,Ec(Fc,Wc,{get:function(){return R(this)?this[Gc]:void 0}}),$c)u[Pc]&&Ue(u[Pc],Gc,Pc);var Qc={NATIVE_ARRAY_BUFFER_VIEWS:Vc,TYPED_ARRAY_TAG:Hc&&Gc,aTypedArray:function(e){if(Kc(e))return e;throw Dc("Target is not a typed array")},aTypedArrayConstructor:function(e){if(j(e)&&(!Po||q(Bc,e)))return e;throw Dc(J(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(l){if(r)for(var o in $c){var i=u[o];if(i&&se(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}Fc[e]&&!r||it(Fc,e,r?t:Vc&&Lc[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(l){if(Po){if(r)for(n in $c)if((o=u[n])&&se(o,e))try{delete o[e]}catch(e){}if(Bc[e]&&!r)return;try{return it(Bc,e,r?t:Vc&&Bc[e]||t)}catch(e){}}for(n in $c)!(o=u[n])||o[e]&&!r||it(o,e,t)}},getTypedArrayConstructor:Jc,isView:function(e){if(!R(e))return!1;var t=Qt(e);return"DataView"===t||se($c,t)||se(Yc,t)},isTypedArray:Kc,TypedArray:Bc,TypedArrayPrototype:Fc},Xc=Qc.NATIVE_ARRAY_BUFFER_VIEWS,Zc=u.ArrayBuffer,eu=u.Int8Array,tu=!Xc||!f((function(){eu(1)}))||!f((function(){new eu(-1)}))||!Tc((function(e){new eu,new eu(null),new eu(1.5),new eu(e)}),!0)||f((function(){return 1!==new eu(new Zc(2),1,void 0).length})),ru=RangeError,nu=function(e){if(void 0===e)return 0;var t=ut(e),r=pt(t);if(t!==r)throw ru("Wrong length or index");return r},ou=Array,iu=Math.abs,au=Math.pow,su=Math.floor,cu=Math.log,uu=Math.LN2,fu=function(e,t,r){var n,o,i,a=ou(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,f=23===t?au(2,-24)-au(2,-77):0,l=e<0||0===e&&1/e<0?1:0,d=0;for((e=iu(e))!=e||e===1/0?(o=e!=e?1:0,n=c):(n=su(cu(e)/uu),e*(i=au(2,-n))<1&&(n--,i*=2),(e+=n+u>=1?f/i:f*au(2,1-u))*i>=2&&(n++,i/=2),n+u>=c?(o=0,n=c):n+u>=1?(o=(e*i-1)*au(2,t),n+=u):(o=e*au(2,u-1)*au(2,t),n=0));t>=8;)a[d++]=255&o,o/=256,t-=8;for(n=n<<t|o,s+=t;s>0;)a[d++]=255&n,n/=256,s-=8;return a[--d]|=128*l,a},lu=function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,s=o-7,c=n-1,u=e[c--],f=127&u;for(u>>=7;s>0;)f=256*f+e[c--],s-=8;for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===f)f=1-a;else{if(f===i)return r?NaN:u?-1/0:1/0;r+=au(2,t),f-=a}return(u?-1:1)*r*au(2,f-t)},du=function(e){for(var t=ie(this),r=gt(t),n=arguments.length,o=dt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:dt(i,r);a>o;)t[o++]=e;return t},hu=_t.f,pu=Re.f,gu=Be.PROPER,vu=Be.CONFIGURABLE,yu=nt.get,mu=nt.set,bu=u.ArrayBuffer,wu=bu,ku=wu&&wu.prototype,xu=u.DataView,_u=xu&&xu.prototype,Iu=Object.prototype,Ou=u.Array,Cu=u.RangeError,Pu=_(du),Su=_([].reverse),zu=fu,Tu=lu,Au=function(e){return[255&e]},Eu=function(e){return[255&e,e>>8&255]},ju=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Ru=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Uu=function(e){return zu(e,23,4)},Lu=function(e){return zu(e,52,8)},qu=function(e,t){pu(e.prototype,t,{get:function(){return yu(this)[t]}})},Mu=function(e,t,r,n){var o=nu(r),i=yu(e);if(o+t>i.byteLength)throw Cu("Wrong index");var a=yu(i.buffer).bytes,s=o+i.byteOffset,c=lr(a,s,s+t);return n?c:Su(c)},Bu=function(e,t,r,n,o,i){var a=nu(r),s=yu(e);if(a+t>s.byteLength)throw Cu("Wrong index");for(var c=yu(s.buffer).bytes,u=a+s.byteOffset,f=n(+o),l=0;l<t;l++)c[u+l]=f[i?l:t-l-1]};if(Ac){var Fu=gu&&"ArrayBuffer"!==bu.name;if(f((function(){bu(1)}))&&f((function(){new bu(-1)}))&&!f((function(){return new bu,new bu(1.5),new bu(NaN),Fu&&!vu})))Fu&&vu&&Ue(bu,"name","ArrayBuffer");else{(wu=function(e){return ni(this,ku),new bu(nu(e))}).prototype=ku;for(var Nu,Du=hu(bu),Wu=0;Du.length>Wu;)(Nu=Du[Wu++])in wu||Ue(wu,Nu,bu[Nu]);ku.constructor=wu}Po&&mo(_u)!==Iu&&Po(_u,Iu);var Gu=new xu(new wu(2)),Vu=_(_u.setInt8);Gu.setInt8(0,2147483648),Gu.setInt8(1,2147483649),!Gu.getInt8(0)&&Gu.getInt8(1)||qi(_u,{setInt8:function(e,t){Vu(this,e,t<<24>>24)},setUint8:function(e,t){Vu(this,e,t<<24>>24)}},{unsafe:!0})}else ku=(wu=function(e){ni(this,ku);var t=nu(e);mu(this,{bytes:Pu(Ou(t),0),byteLength:t}),l||(this.byteLength=t)}).prototype,_u=(xu=function(e,t,r){ni(this,_u),ni(e,ku);var n=yu(e).byteLength,o=ut(t);if(o<0||o>n)throw Cu("Wrong offset");if(o+(r=void 0===r?n-o:pt(r))>n)throw Cu("Wrong length");mu(this,{buffer:e,byteLength:r,byteOffset:o}),l||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,l&&(qu(wu,"byteLength"),qu(xu,"buffer"),qu(xu,"byteLength"),qu(xu,"byteOffset")),qi(_u,{getInt8:function(e){return Mu(this,1,e)[0]<<24>>24},getUint8:function(e){return Mu(this,1,e)[0]},getInt16:function(e){var t=Mu(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Mu(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Ru(Mu(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Ru(Mu(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Tu(Mu(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Tu(Mu(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Bu(this,1,e,Au,t)},setUint8:function(e,t){Bu(this,1,e,Au,t)},setInt16:function(e,t){Bu(this,2,e,Eu,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Bu(this,2,e,Eu,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Bu(this,4,e,ju,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Bu(this,4,e,ju,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Bu(this,4,e,Uu,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Bu(this,8,e,Lu,t,arguments.length>2?arguments[2]:void 0)}});wr(wu,"ArrayBuffer"),wr(xu,"DataView");var Hu={ArrayBuffer:wu,DataView:xu},$u=Math.floor,Yu=Number.isInteger||function(e){return!R(e)&&isFinite(e)&&$u(e)===e},Ju=RangeError,Ku=RangeError,Qu=function(e,t){var r=function(e){var t=ut(e);if(t<0)throw Ju("The argument can't be less than 0");return t}(e);if(r%t)throw Ku("Wrong offset");return r},Xu=TypeError,Zu=function(e){if(Er(e))return e;throw Xu(J(e)+" is not a constructor")},ef=Qc.aTypedArrayConstructor,tf=function(e){var t,r,n,o,i,a,s=Zu(this),c=ie(e),u=arguments.length,f=u>1?arguments[1]:void 0,l=void 0!==f,d=pi(c);if(d&&!di(d))for(a=(i=vi(c,d)).next,c=[];!(o=p(a,i)).done;)c.push(o.value);for(l&&u>2&&(f=xr(f,arguments[2])),r=gt(c),n=new(ef(s))(r),t=0;r>t;t++)n[t]=l?f(c[t],t):c[t];return n},rf=ve("species"),nf=function(e){var t=L(e),r=Re.f;l&&t&&!t[rf]&&r(t,rf,{configurable:!0,get:function(){return this}})};i((function(e){var t=_t.f,r=Mr.forEach,n=nt.get,o=nt.set,i=nt.enforce,a=Re.f,s=Ce.f,c=Math.round,f=u.RangeError,d=Hu.ArrayBuffer,h=d.prototype,g=Hu.DataView,v=Qc.NATIVE_ARRAY_BUFFER_VIEWS,y=Qc.TYPED_ARRAY_TAG,b=Qc.TypedArray,w=Qc.TypedArrayPrototype,k=Qc.aTypedArrayConstructor,x=Qc.isTypedArray,_=function(e,t){k(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},I=function(e,t){a(e,t,{get:function(){return n(this)[t]}})},O=function(e){var t;return q(h,e)||"ArrayBuffer"==(t=Qt(e))||"SharedArrayBuffer"==t},C=function(e,t){return x(e)&&!$(t)&&t in e&&Yu(+t)&&t>=0},P=function(e,t){return t=we(t),C(e,t)?m(2,e[t]):s(e,t)},S=function(e,t,r){return t=we(t),!(C(e,t)&&R(r)&&se(r,"value"))||se(r,"get")||se(r,"set")||r.configurable||se(r,"writable")&&!r.writable||se(r,"enumerable")&&!r.enumerable?a(e,t,r):(e[t]=r.value,e)};l?(v||(Ce.f=P,Re.f=S,I(w,"buffer"),I(w,"byteOffset"),I(w,"byteLength"),I(w,"length")),Lt({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:P,defineProperty:S}),e.exports=function(e,s,l){var h=e.match(/\d+$/)[0]/8,m=e+(l?"Clamped":"")+"Array",k="get"+e,I="set"+e,C=u[m],P=C,S=P&&P.prototype,z={},T=function(e,t){a(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[k](t*h+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=n(e);l&&(r=(r=c(r))<0?0:r>255?255:255&r),o.view[I](t*h+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};v?tu&&(P=s((function(e,t,r,n){return ni(e,S),function(e,t,r){var n,o;return Po&&j(n=t.constructor)&&n!==r&&R(o=n.prototype)&&o!==r.prototype&&Po(e,o),e}(R(t)?O(t)?void 0!==n?new C(t,Qu(r,h),n):void 0!==r?new C(t,Qu(r,h)):new C(t):x(t)?_(P,t):p(tf,P,t):new C(nu(t)),e,P)})),Po&&Po(P,b),r(t(C),(function(e){e in P||Ue(P,e,C[e])})),P.prototype=S):(P=s((function(e,t,r,n){ni(e,S);var i,a,s,c=0,u=0;if(R(t)){if(!O(t))return x(t)?_(P,t):p(tf,P,t);i=t,u=Qu(r,h);var l=t.byteLength;if(void 0===n){if(l%h)throw f("Wrong length");if((a=l-u)<0)throw f("Wrong length")}else if((a=pt(n)*h)+u>l)throw f("Wrong length");s=a/h}else s=nu(t),i=new d(a=s*h);for(o(e,{buffer:i,byteOffset:u,byteLength:a,length:s,view:new g(i)});c<s;)T(e,c++)})),Po&&Po(P,b),S=P.prototype=sr(w)),S.constructor!==P&&Ue(S,"constructor",P),i(S).TypedArrayConstructor=P,y&&Ue(S,y,m);var A=P!=C;z[m]=P,Lt({global:!0,constructor:!0,forced:A,sham:!v},z),"BYTES_PER_ELEMENT"in P||Ue(P,"BYTES_PER_ELEMENT",h),"BYTES_PER_ELEMENT"in S||Ue(S,"BYTES_PER_ELEMENT",h),nf(m)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var of=TypeError,af=function(e,t){if(!delete e[t])throw of("Cannot delete property "+J(t)+" of "+J(e))},sf=Math.min,cf=_([].copyWithin||function(e,t){var r=ie(this),n=gt(r),o=dt(e,n),i=dt(t,n),a=arguments.length>2?arguments[2]:void 0,s=sf((void 0===a?n:dt(a,n))-i,n-o),c=1;for(i<o&&o<i+s&&(c=-1,i+=s-1,o+=s-1);s-- >0;)i in r?r[o]=r[i]:af(r,o),o+=c,i+=c;return r}),uf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("copyWithin",(function(e,t){return cf(uf(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ff=Mr.every,lf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("every",(function(e){return ff(lf(this),e,arguments.length>1?arguments[1]:void 0)}));var df=TypeError,hf=function(e){var t=be(e,"number");if("number"==typeof t)throw df("Can't convert number to bigint");return BigInt(t)},pf=Qc.aTypedArray,gf=Qc.exportTypedArrayMethod,vf=_("".slice);gf("fill",(function(e){var t=arguments.length;pf(this);var r="Big"===vf(Qt(this),0,3)?hf(e):+e;return p(du,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),f((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var yf=ve("species"),mf=function(e,t){var r,n=Te(e).constructor;return void 0===n||null==(r=Te(n)[yf])?t:Zu(r)},bf=Qc.aTypedArrayConstructor,wf=Qc.getTypedArrayConstructor,kf=function(e){return bf(mf(e,wf(e)))},xf=function(e,t){return function(e,t){for(var r=0,n=gt(t),o=new e(n);n>r;)o[r]=t[r++];return o}(kf(e),t)},_f=Mr.filter,If=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("filter",(function(e){var t=_f(If(this),e,arguments.length>1?arguments[1]:void 0);return xf(this,t)}));var Of=Mr.find,Cf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("find",(function(e){return Of(Cf(this),e,arguments.length>1?arguments[1]:void 0)}));var Pf=Mr.findIndex,Sf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("findIndex",(function(e){return Pf(Sf(this),e,arguments.length>1?arguments[1]:void 0)}));var zf=Mr.forEach,Tf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("forEach",(function(e){zf(Tf(this),e,arguments.length>1?arguments[1]:void 0)}));var Af=yt.includes,Ef=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("includes",(function(e){return Af(Ef(this),e,arguments.length>1?arguments[1]:void 0)}));var jf=yt.indexOf,Rf=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("indexOf",(function(e){return jf(Rf(this),e,arguments.length>1?arguments[1]:void 0)}));var Uf=ve("iterator"),Lf=u.Uint8Array,qf=_(Mo.values),Mf=_(Mo.keys),Bf=_(Mo.entries),Ff=Qc.aTypedArray,Nf=Qc.exportTypedArrayMethod,Df=Lf&&Lf.prototype,Wf=!f((function(){Df[Uf].call([1])})),Gf=!!Df&&Df.values&&Df[Uf]===Df.values&&"values"===Df.values.name,Vf=function(){return qf(Ff(this))};Nf("entries",(function(){return Bf(Ff(this))}),Wf),Nf("keys",(function(){return Mf(Ff(this))}),Wf),Nf("values",Vf,Wf||!Gf,{name:"values"}),Nf(Uf,Vf,Wf||!Gf,{name:"values"});var Hf=Qc.aTypedArray,$f=Qc.exportTypedArrayMethod,Yf=_([].join);$f("join",(function(e){return Yf(Hf(this),e)}));var Jf=Math.min,Kf=[].lastIndexOf,Qf=!!Kf&&1/[1].lastIndexOf(1,-0)<0,Xf=Hn("lastIndexOf"),Zf=Qf||!Xf?function(e){if(Qf)return bn(Kf,this,arguments)||0;var t=E(this),r=gt(t),n=r-1;for(arguments.length>1&&(n=Jf(n,ut(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Kf,el=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return bn(Zf,el(this),t>1?[e,arguments[1]]:[e])}));var tl=Mr.map,rl=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("map",(function(e){return tl(rl(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(kf(e))(t)}))}));var nl=TypeError,ol=function(e){return function(t,r,n,o){Q(r);var i=ie(t),a=z(i),s=gt(i),c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw nl("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(o=r(o,a[c],c,i));return o}},il={left:ol(!1),right:ol(!0)},al=il.left,sl=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return al(sl(this),e,t,t>1?arguments[1]:void 0)}));var cl=il.right,ul=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return cl(ul(this),e,t,t>1?arguments[1]:void 0)}));var fl=Qc.aTypedArray,ll=Qc.exportTypedArrayMethod,dl=Math.floor;ll("reverse",(function(){for(var e,t=fl(this).length,r=dl(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}));var hl=u.RangeError,pl=u.Int8Array,gl=pl&&pl.prototype,vl=gl&&gl.set,yl=Qc.aTypedArray,ml=Qc.exportTypedArrayMethod,bl=!f((function(){var e=new Uint8ClampedArray(2);return p(vl,e,{length:1,0:3},1),3!==e[1]})),wl=bl&&Qc.NATIVE_ARRAY_BUFFER_VIEWS&&f((function(){var e=new pl(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));ml("set",(function(e){yl(this);var t=Qu(arguments.length>1?arguments[1]:void 0,1),r=ie(e);if(bl)return p(vl,this,r,t);var n=this.length,o=gt(r),i=0;if(o+t>n)throw hl("Wrong length");for(;i<o;)this[t+i]=r[i++]}),!bl||wl);var kl=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("slice",(function(e,t){for(var r=wn(kl(this),e,t),n=kf(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),f((function(){new Int8Array(1).slice()})));var xl=Mr.some,_l=Qc.aTypedArray;(0,Qc.exportTypedArrayMethod)("some",(function(e){return xl(_l(this),e,arguments.length>1?arguments[1]:void 0)}));var Il=M.match(/firefox\/(\d+)/i),Ol=!!Il&&+Il[1],Cl=/MSIE|Trident/.test(M),Pl=M.match(/AppleWebKit\/(\d+)\./),Sl=!!Pl&&+Pl[1],zl=Qc.aTypedArray,Tl=Qc.exportTypedArrayMethod,Al=u.Uint16Array,El=Al&&_(Al.prototype.sort),jl=!(!El||f((function(){El(new Al(2),null)}))&&f((function(){El(new Al(2),{})}))),Rl=!!El&&!f((function(){if(W)return W<74;if(Ol)return Ol<67;if(Cl)return!0;if(Sl)return Sl<602;var e,t,r=new Al(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(El(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));Tl("sort",(function(e){return void 0!==e&&Q(e),Rl?El(this,e):Di(zl(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Rl||jl);var Ul=u.Int8Array,Ll=Qc.aTypedArray,ql=Qc.exportTypedArrayMethod,Ml=[].toLocaleString,Bl=!!Ul&&f((function(){Ml.call(new Ul(1))}));ql("toLocaleString",(function(){return bn(Ml,Bl?wn(Ll(this)):Ll(this),wn(arguments))}),f((function(){return[1,2].toLocaleString()!=new Ul([1,2]).toLocaleString()}))||!f((function(){Ul.prototype.toLocaleString.call([1,2])})));var Fl=Qc.exportTypedArrayMethod,Nl=u.Uint8Array,Dl=Nl&&Nl.prototype||{},Wl=[].toString,Gl=_([].join);f((function(){Wl.call({})}))&&(Wl=function(){return Gl(this)});var Vl=Dl.toString!=Wl;Fl("toString",Wl,Vl);var Hl=Go.charAt,$l=function(e,t,r){return t+(r?Hl(e,t).length:1)},Yl=Math.floor,Jl=_("".charAt),Kl=_("".replace),Ql=_("".slice),Xl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Zl=/\$([$&'`]|\d{1,2})/g,ed=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=Zl;return void 0!==o&&(o=ie(o),c=Xl),Kl(i,c,(function(i,c){var u;switch(Jl(c,0)){case"$":return"$";case"&":return e;case"`":return Ql(t,0,r);case"'":return Ql(t,a);case"<":u=o[Ql(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>s){var l=Yl(f/10);return 0===l?i:l<=s?void 0===n[l-1]?Jl(c,1):n[l-1]+Jl(c,1):i}u=n[f-1]}return void 0===u?"":u}))},td=ve("replace"),rd=Math.max,nd=Math.min,od=_([].concat),id=_([].push),ad=_("".indexOf),sd=_("".slice),cd="$0"==="a".replace(/./,"$0"),ud=!!/./[td]&&""===/./[td]("a","$0");yc("replace",(function(e,t,r){var n=ud?"$":"$0";return[function(e,r){var n=A(this),o=null==e?void 0:X(e,td);return o?p(o,e,n,r):p(t,Zt(n),e,r)},function(e,o){var i=Te(this),a=Zt(e);if("string"==typeof o&&-1===ad(o,n)&&-1===ad(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=j(o);c||(o=Zt(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=wc(i,a);if(null===d)break;if(id(l,d),!u)break;""===Zt(d[0])&&(i.lastIndex=$l(a,pt(i.lastIndex),f))}for(var h,p="",g=0,v=0;v<l.length;v++){for(var y=Zt((d=l[v])[0]),m=rd(nd(ut(d.index),a.length),0),b=[],w=1;w<d.length;w++)id(b,void 0===(h=d[w])?h:String(h));var k=d.groups;if(c){var x=od([y],b,m,a);void 0!==k&&id(x,k);var _=Zt(bn(o,void 0,x))}else _=ed(y,a,m,b,k,o);m>=g&&(p+=sd(a,g,m)+_,g=m+y.length)}return p+sd(a,g)}]}),!!f((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!cd||ud);var fd,ld,dd,hd,pd="process"==C(u.process),gd=/(?:ipad|iphone|ipod).*applewebkit/i.test(M),vd=u.setImmediate,yd=u.clearImmediate,md=u.process,bd=u.Dispatch,wd=u.Function,kd=u.MessageChannel,xd=u.String,_d=0,Id={};try{fd=u.location}catch(e){}var Od=function(e){if(se(Id,e)){var t=Id[e];delete Id[e],t()}},Cd=function(e){return function(){Od(e)}},Pd=function(e){Od(e.data)},Sd=function(e){u.postMessage(xd(e),fd.protocol+"//"+fd.host)};vd&&yd||(vd=function(e){Li(arguments.length,1);var t=j(e)?e:wd(e),r=wn(arguments,1);return Id[++_d]=function(){bn(t,void 0,r)},ld(_d),_d},yd=function(e){delete Id[e]},pd?ld=function(e){md.nextTick(Cd(e))}:bd&&bd.now?ld=function(e){bd.now(Cd(e))}:kd&&!gd?(hd=(dd=new kd).port2,dd.port1.onmessage=Pd,ld=xr(hd.postMessage,hd)):u.addEventListener&&j(u.postMessage)&&!u.importScripts&&fd&&"file:"!==fd.protocol&&!f(Sd)?(ld=Sd,u.addEventListener("message",Pd,!1)):ld="onreadystatechange"in _e("script")?function(e){tr.appendChild(_e("script")).onreadystatechange=function(){tr.removeChild(this),Od(e)}}:function(e){setTimeout(Cd(e),0)});var zd,Td,Ad,Ed,jd,Rd,Ud,Ld,qd={set:vd,clear:yd},Md=/ipad|iphone|ipod/i.test(M)&&void 0!==u.Pebble,Bd=/web0s(?!.*chrome)/i.test(M),Fd=Ce.f,Nd=qd.set,Dd=u.MutationObserver||u.WebKitMutationObserver,Wd=u.document,Gd=u.process,Vd=u.Promise,Hd=Fd(u,"queueMicrotask"),$d=Hd&&Hd.value;$d||(zd=function(){var e,t;for(pd&&(e=Gd.domain)&&e.exit();Td;){t=Td.fn,Td=Td.next;try{t()}catch(e){throw Td?Ed():Ad=void 0,e}}Ad=void 0,e&&e.enter()},gd||pd||Bd||!Dd||!Wd?!Md&&Vd&&Vd.resolve?((Ud=Vd.resolve(void 0)).constructor=Vd,Ld=xr(Ud.then,Ud),Ed=function(){Ld(zd)}):pd?Ed=function(){Gd.nextTick(zd)}:(Nd=xr(Nd,u),Ed=function(){Nd(zd)}):(jd=!0,Rd=Wd.createTextNode(""),new Dd(zd).observe(Rd,{characterData:!0}),Ed=function(){Rd.data=jd=!jd}));var Yd=$d||function(e){var t={fn:e,next:void 0};Ad&&(Ad.next=t),Td||(Td=t,Ed()),Ad=t},Jd=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Kd=function(){this.head=null,this.tail=null};Kd.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Qd=Kd,Xd=u.Promise,Zd="object"==typeof window&&"object"!=typeof Deno;Xd&&Xd.prototype;var eh,th,rh,nh=ve("species"),oh=!1,ih=j(u.PromiseRejectionEvent),ah={CONSTRUCTOR:Rt("Promise",(function(){var e=Ge(Xd),t=e!==String(Xd);if(!t&&66===W)return!0;if(W>=51&&/native code/.test(e))return!1;var r=new Xd((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[nh]=n,!(oh=r.then((function(){}))instanceof n)||!t&&Zd&&!ih})),REJECTION_EVENT:ih,SUBCLASSING:oh},sh=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=Q(t),this.reject=Q(r)},ch={f:function(e){return new sh(e)}},uh=qd.set,fh=ah.CONSTRUCTOR,lh=ah.REJECTION_EVENT,dh=ah.SUBCLASSING,hh=nt.getterFor("Promise"),ph=nt.set,gh=Xd&&Xd.prototype,vh=Xd,yh=gh,mh=u.TypeError,bh=u.document,wh=u.process,kh=ch.f,xh=kh,_h=!!(bh&&bh.createEvent&&u.dispatchEvent),Ih=function(e){var t;return!(!R(e)||!j(t=e.then))&&t},Oh=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Th(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(mh("Promise-chain cycle")):(n=Ih(r))?p(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},Ch=function(e,t){e.notified||(e.notified=!0,Yd((function(){for(var r,n=e.reactions;r=n.get();)Oh(r,e);e.notified=!1,t&&!e.rejection&&Sh(e)})))},Ph=function(e,t,r){var n,o;_h?((n=bh.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!lh&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&function(e,t){var r=u.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Sh=function(e){p(uh,u,(function(){var t,r=e.facade,n=e.value;if(zh(e)&&(t=Jd((function(){pd?wh.emit("unhandledRejection",n,r):Ph("unhandledrejection",r,n)})),e.rejection=pd||zh(e)?2:1,t.error))throw t.value}))},zh=function(e){return 1!==e.rejection&&!e.parent},Th=function(e){p(uh,u,(function(){var t=e.facade;pd?wh.emit("rejectionHandled",t):Ph("rejectionhandled",t,e.value)}))},Ah=function(e,t,r){return function(n){e(t,n,r)}},Eh=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Ch(e,!0))},jh=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw mh("Promise can't be resolved itself");var n=Ih(t);n?Yd((function(){var r={done:!1};try{p(n,t,Ah(jh,r,e),Ah(Eh,r,e))}catch(t){Eh(r,t,e)}})):(e.value=t,e.state=1,Ch(e,!1))}catch(t){Eh({done:!1},t,e)}}};if(fh&&(yh=(vh=function(e){ni(this,yh),Q(e),p(eh,this);var t=hh(this);try{e(Ah(jh,t),Ah(Eh,t))}catch(e){Eh(t,e)}}).prototype,(eh=function(e){ph(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Qd,rejection:!1,state:0,value:void 0})}).prototype=it(yh,"then",(function(e,t){var r=hh(this),n=kh(mf(this,vh));return r.parent=!0,n.ok=!j(e)||e,n.fail=j(t)&&t,n.domain=pd?wh.domain:void 0,0==r.state?r.reactions.add(n):Yd((function(){Oh(n,r)})),n.promise})),th=function(){var e=new eh,t=hh(e);this.promise=e,this.resolve=Ah(jh,t),this.reject=Ah(Eh,t)},ch.f=kh=function(e){return e===vh||void 0===e?new th(e):xh(e)},j(Xd)&&gh!==Object.prototype)){rh=gh.then,dh||it(gh,"then",(function(e,t){var r=this;return new vh((function(e,t){p(rh,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete gh.constructor}catch(e){}Po&&Po(gh,yh)}Lt({global:!0,constructor:!0,wrap:!0,forced:fh},{Promise:vh}),wr(vh,"Promise",!1),nf("Promise");var Rh=TypeError,Uh=function(e,t){this.stopped=e,this.result=t},Lh=Uh.prototype,qh=function(e,t,r){var n,o,i,a,s,c,u,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),v=xr(t,f),y=function(e){return n&&ci(n,"normal",e),new Uh(!0,e)},m=function(e){return l?(Te(e),g?v(e[0],e[1],y):v(e[0],e[1])):g?v(e,y):v(e)};if(d)n=e.iterator;else if(h)n=e;else{if(!(o=pi(e)))throw Rh(J(e)+" is not iterable");if(di(o)){for(i=0,a=gt(e);a>i;i++)if((s=m(e[i]))&&q(Lh,s))return s;return new Uh(!1)}n=vi(e,o)}for(c=d?e.next:n.next;!(u=p(c,n)).done;){try{s=m(u.value)}catch(e){ci(n,"throw",e)}if("object"==typeof s&&s&&q(Lh,s))return s}return new Uh(!1)},Mh=ah.CONSTRUCTOR||!Tc((function(e){Xd.all(e).then(void 0,(function(){}))}));Lt({target:"Promise",stat:!0,forced:Mh},{all:function(e){var t=this,r=ch.f(t),n=r.resolve,o=r.reject,i=Jd((function(){var r=Q(t.resolve),i=[],a=0,s=1;qh(e,(function(e){var c=a++,u=!1;s++,p(r,t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var Bh=ah.CONSTRUCTOR,Fh=Xd&&Xd.prototype;if(Lt({target:"Promise",proto:!0,forced:Bh,real:!0},{catch:function(e){return this.then(void 0,e)}}),j(Xd)){var Nh=L("Promise").prototype.catch;Fh.catch!==Nh&&it(Fh,"catch",Nh,{unsafe:!0})}Lt({target:"Promise",stat:!0,forced:Mh},{race:function(e){var t=this,r=ch.f(t),n=r.reject,o=Jd((function(){var o=Q(t.resolve);qh(e,(function(e){p(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Lt({target:"Promise",stat:!0,forced:ah.CONSTRUCTOR},{reject:function(e){var t=ch.f(this);return p(t.reject,void 0,e),t.promise}});var Dh=ah.CONSTRUCTOR;L("Promise"),Lt({target:"Promise",stat:!0,forced:Dh},{resolve:function(e){return function(e,t){if(Te(e),R(t)&&t.constructor===e)return t;var r=ch.f(e);return(0,r.resolve)(t),r.promise}(this,e)}}),Lt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return qh(e,(function(e,r){cr(t,e,r)}),{AS_ENTRIES:!0}),t}});var Wh=TypeError,Gh=function(e){if(e>9007199254740991)throw Wh("Maximum allowed index exceeded");return e},Vh=ve("isConcatSpreadable"),Hh=W>=51||!f((function(){var e=[];return e[Vh]=!1,e.concat()[0]!==e})),$h=Ln("concat"),Yh=function(e){if(!R(e))return!1;var t=e[Vh];return void 0!==t?!!t:_r(e)};function Jh(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Kh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xh(e){return function(e){if(Array.isArray(e))return Qh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zh(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function ep(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Zh(i,n,o,a,s,"next",e)}function s(e){Zh(i,n,o,a,s,"throw",e)}a(void 0)}))}}Lt({target:"Array",proto:!0,arity:1,forced:!Hh||!$h},{concat:function(e){var t,r,n,o,i,a=ie(this),s=Ur(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Yh(i=-1===t?a:arguments[t]))for(o=gt(i),Gh(c+o),r=0;r<o;r++,c++)r in i&&cr(s,c,i[r]);else Gh(c+1),cr(s,c++,i);return s.length=c,s}});var tp=Object.prototype,rp=tp.hasOwnProperty,np="function"==typeof Symbol?Symbol:{},op=np.iterator||"@@iterator",ip=np.asyncIterator||"@@asyncIterator",ap=np.toStringTag||"@@toStringTag";function sp(e,t,r,n){var o=t&&t.prototype instanceof fp?t:fp,i=Object.create(o.prototype),a=new _p(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return Op()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=wp(a,r);if(s){if(s===up)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=cp(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===up)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function cp(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var up={};function fp(){}function lp(){}function dp(){}var hp={};hp[op]=function(){return this};var pp=Object.getPrototypeOf,gp=pp&&pp(pp(Ip([])));gp&&gp!==tp&&rp.call(gp,op)&&(hp=gp);var vp=dp.prototype=fp.prototype=Object.create(hp);function yp(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function mp(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===lp||"GeneratorFunction"===(t.displayName||t.name))}function bp(e,t){var r;this._invoke=function(n,o){function i(){return new t((function(r,i){!function r(n,o,i,a){var s=cp(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&rp.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,a)}))}a(s.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}}function wp(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,wp(e,t),"throw"===t.method))return up;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return up}var n=cp(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,up;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,up):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,up)}function kp(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function xp(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(kp,this),this.reset(!0)}function Ip(e){if(e){var t=e[op];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(rp.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:Op}}function Op(){return{value:void 0,done:!0}}lp.prototype=vp.constructor=dp,dp.constructor=lp,dp[ap]=lp.displayName="GeneratorFunction",yp(bp.prototype),bp.prototype[ip]=function(){return this},yp(vp),vp[ap]="Generator",vp[op]=function(){return this},vp.toString=function(){return"[object Generator]"},_p.prototype={constructor:_p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(xp),!e)for(var t in this)"t"===t.charAt(0)&&rp.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=rp.call(o,"catchLoc"),s=rp.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&rp.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,up):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),up},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),xp(r),up}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;xp(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:Ip(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),up}};var Cp,Pp={wrap:sp,isGeneratorFunction:mp,AsyncIterator:bp,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,dp):(e.__proto__=dp,ap in e||(e[ap]="GeneratorFunction")),e.prototype=Object.create(vp),e},awrap:function(e){return{__await:e}},async:function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new bp(sp(e,t,r,n),o);return mp(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},keys:function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:Ip},Sp=ve("match"),zp=TypeError,Tp=function(e){if(function(e){var t;return R(e)&&(void 0!==(t=e[Sp])?!!t:"RegExp"==C(e))}(e))throw zp("The method doesn't accept regular expressions");return e},Ap=ve("match"),Ep=Ce.f,jp=_("".startsWith),Rp=_("".slice),Up=Math.min,Lp=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ap]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),qp=!(Lp||(Cp=Ep(String.prototype,"startsWith"),!Cp||Cp.writable));function Mp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fp(e,t,r){return t&&Bp(e.prototype,t),r&&Bp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Np(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Np(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Np(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Lt({target:"String",proto:!0,forced:!qp&&!Lp},{startsWith:function(e){var t=Zt(A(this));Tp(e);var r=pt(Up(arguments.length>1?arguments[1]:void 0,t.length)),n=Zt(e);return jp?jp(t,n,r):Rp(t,r,r+n.length)===n}});var Wp=Fp((function e(t){if(Mp(this,e),Kh(this,"baseUri",void 0),Kh(this,"proxy",void 0),Kh(this,"headers",void 0),Kh(this,"parameters",void 0),Kh(this,"fetchOptions",void 0),Kh(this,"transformRequest",void 0),Kh(this,"throwOnBadResponse",void 0),this.headers=Dp({},t.headers),this.parameters=Dp({},t.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=Dp({credentials:"omit"},t.fetchOptions),this.transformRequest=t.transformRequest||e.defaults.transformRequest,t.baseUri&&(this.baseUri=t.baseUri),t.proxy&&(this.proxy=t.proxy),this.throwOnBadResponse=!!t.throwOnBadResponse}));Kh(Wp,"defaults",{transformRequest:function(e,t){switch(t["Content-Type"]){case"application/json":return JSON.stringify(e);case"application/x-www-form-urlencoded":return new URLSearchParams(e);default:return e}}});var Gp=Function,Vp=_([].concat),Hp=_([].join),$p={},Yp=function(e,t,r){if(!se($p,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";$p[t]=Gp("C,a","return new C("+Hp(n,",")+")")}return $p[t](e,r)},Jp=d?Gp.bind:function(e){var t=Q(this),r=t.prototype,n=wn(arguments,1),o=function(){var r=Vp(n,wn(arguments));return this instanceof o?Yp(t,r.length,r):t.apply(e,r)};return R(r)&&(o.prototype=r),o},Kp=L("Reflect","construct"),Qp=Object.prototype,Xp=[].push,Zp=f((function(){function e(){}return!(Kp((function(){}),[],e)instanceof e)})),eg=!f((function(){Kp((function(){}))})),tg=Zp||eg;function rg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ng(e,t){return(ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function og(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ng(e,t)}function ig(e,t){if(t&&("object"===qt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rg(e)}function ag(e){return(ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function cg(e,t,r){return(cg=sg()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ng(o,r.prototype),o}).apply(null,arguments)}function ug(e){var t="function"==typeof Map?new Map:void 0;return(ug=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return cg(e,arguments,ag(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ng(n,e)})(e)}function fg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ag(e);if(t){var o=ag(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ig(this,r)}}Lt({target:"Reflect",stat:!0,forced:tg,sham:tg},{construct:function(e,t){Zu(e),Te(t);var r=arguments.length<3?e:Zu(arguments[2]);if(eg&&!Zp)return Kp(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return bn(Xp,n,t),new(bn(Jp,e,n))}var o=r.prototype,i=sr(R(o)?o:Qp),a=bn(e,i,t);return R(a)?a:i}});var lg=function(e){og(r,ug(Error));var t=fg(r);function r(e){var n;return Mp(this,r),Kh(rg(n=t.call(this,"".concat(e.status," ").concat(e.statusText))),"response",void 0),n.response=e,n}return Fp(r)}();function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dg(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pg=function(){var e=ep(Pp.mark((function e(t,r,n,o){var i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=hg(hg({},null==n?void 0:n.headers),null==r?void 0:r.headers),s=hg(hg({},null==n?void 0:n.fetchOptions),{},{headers:a,body:null==r?void 0:r.body,method:null!==(i=null==r?void 0:r.method)&&void 0!==i?i:"GET"}),e.next=4,fetch(t,s);case 4:if(c=e.sent,!o){e.next=7;break}return e.abrupt("return",c);case 7:if(null==n||!n.throwOnBadResponse||c.ok||304===c.status){e.next=11;break}throw new lg(c);case 11:return e.next=13,c.text();case 13:return u=e.sent,e.abrupt("return",u?JSON.parse(u):{});case 15:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}();function gg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ag(e);if(t){var o=ag(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ig(this,r)}}yc("match",(function(e,t,r){return[function(t){var r=A(this),n=null==t?void 0:X(t,e);return n?p(n,t,r):new RegExp(t)[e](Zt(r))},function(e){var n=Te(this),o=Zt(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return wc(n,o);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=wc(n,o));){var f=Zt(s[0]);c[u]=f,""===f&&(n.lastIndex=$l(o,pt(n.lastIndex),a)),u++}return 0===u?null:c}]}));var vg=function(e){og(r,ug(URL));var t=gg(r);function r(e,n,o){var i;Mp(this,r);var a={};return Object.keys((null==o?void 0:o.pathParams)||{}).forEach((function(e){var t,r=null==o||null===(t=o.pathParams)||void 0===t?void 0:t[e];r&&(a[e]=encodeURIComponent(r))})),(i=t.call(this,r.renderTemplateUri("".concat(n,"/").concat(e).replace(/\/\/+/g,"/"),a))).addQueryParams(null==o?void 0:o.queryParams),null!=o&&o.origin&&i.replaceOrigin(null==o?void 0:o.origin),i}return Fp(r,[{key:"replaceOrigin",value:function(e){var t=new URL(e);this.protocol=t.protocol,this.host=t.host,this.pathname="".concat(t.pathname,"/").concat(this.pathname).replace(/\/\/+/g,"/")}},{key:"addQueryParams",value:function(e){var t=this;e&&Object.keys(e).forEach((function(r){var n=e[r];if(Array.isArray(n))if("refine"===r)for(var o=0;o<n.length;o+=1)t.searchParams.append(r,String(n[o]));else t.searchParams.append(r,n.join());else t.searchParams.append(r,String(n))}))}}],[{key:"renderTemplateUri",value:function(e,t){var r=t?e.replace(/\{([^\}]+)\}/g,(function(e,r){return String(t[r])})):e,n=/(\.|%2e|%2E|%252e|%252E)+(\/|%2f|%2F|%252f|%252F)+/g;return r.match(n)&&(console.warn("Path traversal attempt detected. Normalizing url"),r=r.replace(n,"")),r}}]),r}(),yg="commerce-sdk-isomorphic@4.0.1-preview-shopper-test.0";function mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mg(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wg=function(){function e(t){Mp(this,e),Kh(this,"clientConfig",void 0);var r=bg({},t);r.baseUri||(r.baseUri=(this instanceof e?this.constructor:void 0).defaultBaseUri),this.clientConfig=new Wp(r)}var t,r,n,o,i,a,s,c,u,f,l,d,h,p,g,v;return Fp(e,[{key:"authenticateCustomer",value:(v=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authenticateCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"authorizeCustomer",value:(g=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.redirect_uri){e.next=17;break}a.redirect_uri=n.redirect_uri,e.next=22;break;case 17:if(void 0===o.redirect_uri){e.next=21;break}a.redirect_uri=o.redirect_uri,e.next=22;break;case 21:throw new Error("Missing required query parameter: redirect_uri");case 22:if(void 0===n.response_type){e.next=26;break}a.response_type=n.response_type,e.next=31;break;case 26:if(void 0===o.response_type){e.next=30;break}a.response_type=o.response_type,e.next=31;break;case 30:throw new Error("Missing required query parameter: response_type");case 31:if(void 0===n.client_id){e.next=35;break}a.client_id=n.client_id,e.next=40;break;case 35:if(void 0===o.client_id){e.next=39;break}a.client_id=o.client_id,e.next=40;break;case 39:throw new Error("Missing required query parameter: client_id");case 40:return void 0!==n.scope?a.scope=n.scope:void 0!==o.scope&&(a.scope=o.scope),void 0!==n.state?a.state=n.state:void 0!==o.state&&(a.state=o.state),void 0!==n.usid?a.usid=n.usid:void 0!==o.usid&&(a.usid=o.usid),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==o.code_challenge&&(a.code_challenge=o.code_challenge),void 0!==n.ui_locales?a.ui_locales=n.ui_locales:void 0!==o.ui_locales&&(a.ui_locales=o.ui_locales),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizeCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=53,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 53:if(u=e.sent,!r){e.next=56;break}return e.abrupt("return",u);case 56:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"authorizePasswordlessCustomer",value:(p=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizePasswordlessCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/passwordless/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getAccessToken",value:(h=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"getJwksUri",value:(d=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getJwksUri: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/jwks",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"getPasswordLessAccessToken",value:function(){var e=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordLessAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/passwordless/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getPasswordResetToken",value:(l=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordResetToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/password/reset",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"getSessionBridgeAccessToken",value:(f=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getSessionBridgeAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/session-bridge/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"getTrustedAgentAccessToken",value:(u=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/trusted-agent/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"getTrustedAgentAuthorizationToken",value:(c=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===o.client_id){e.next=21;break}a.client_id=o.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.channel_id){e.next=26;break}a.channel_id=n.channel_id,e.next=31;break;case 26:if(void 0===o.channel_id){e.next=30;break}a.channel_id=o.channel_id,e.next=31;break;case 30:throw new Error("Missing required query parameter: channel_id");case 31:if(void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==o.code_challenge&&(a.code_challenge=o.code_challenge),void 0===n.login_id){e.next=36;break}a.login_id=n.login_id,e.next=41;break;case 36:if(void 0===o.login_id){e.next=40;break}a.login_id=o.login_id,e.next=41;break;case 40:throw new Error("Missing required query parameter: login_id");case 41:if(void 0===n.idp_origin){e.next=45;break}a.idp_origin=n.idp_origin,e.next=50;break;case 45:if(void 0===o.idp_origin){e.next=49;break}a.idp_origin=o.idp_origin,e.next=50;break;case 49:throw new Error("Missing required query parameter: idp_origin");case 50:if(void 0===n.redirect_uri){e.next=54;break}a.redirect_uri=n.redirect_uri,e.next=59;break;case 54:if(void 0===o.redirect_uri){e.next=58;break}a.redirect_uri=o.redirect_uri,e.next=59;break;case 58:throw new Error("Missing required query parameter: redirect_uri");case 59:if(void 0===n.response_type){e.next=63;break}a.response_type=n.response_type,e.next=68;break;case 63:if(void 0===o.response_type){e.next=67;break}a.response_type=o.response_type,e.next=68;break;case 67:throw new Error("Missing required query parameter: response_type");case 68:return Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAuthorizationToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/trusted-agent/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=74,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 74:if(u=e.sent,!r){e.next=77;break}return e.abrupt("return",u);case 77:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getTrustedSystemAccessToken",value:(s=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedSystemAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/trusted-system/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"getUserInfo",value:(a=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getUserInfo: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/userinfo",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=20,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 20:return u=e.sent,e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getWellknownOpenidConfiguration",value:(i=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getWellknownOpenidConfiguration: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/.well-known/openid-configuration",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"introspectToken",value:(o=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for introspectToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/introspect",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"logoutCustomer",value:(n=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===o.client_id){e.next=21;break}a.client_id=o.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.refresh_token){e.next=26;break}a.refresh_token=n.refresh_token,e.next=31;break;case 26:if(void 0===o.refresh_token){e.next=30;break}a.refresh_token=o.refresh_token,e.next=31;break;case 30:throw new Error("Missing required query parameter: refresh_token");case 31:return void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for logoutCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/logout",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=39,pg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 39:return u=e.sent,e.abrupt("return",u);case 41:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"resetPassword",value:(r=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for resetPassword: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/password/action",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"revokeToken",value:(t=ep(Pp.mark((function e(t,r){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for revokeToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new vg("/organizations/{organizationId}/oauth2/revoke",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=bg(bg({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Mt||(c["user-agent"]=[c["user-agent"],yg].join(" ")),e.next=19,pg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();Kh(wg,"defaultBaseUri","https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1"),Kh(wg,"apiPaths",{authenticateCustomer:"/organizations/{organizationId}/oauth2/login",authorizeCustomer:"/organizations/{organizationId}/oauth2/authorize",authorizePasswordlessCustomer:"/organizations/{organizationId}/oauth2/passwordless/login",getAccessToken:"/organizations/{organizationId}/oauth2/token",getJwksUri:"/organizations/{organizationId}/oauth2/jwks",getPasswordLessAccessToken:"/organizations/{organizationId}/oauth2/passwordless/token",getPasswordResetToken:"/organizations/{organizationId}/oauth2/password/reset",getSessionBridgeAccessToken:"/organizations/{organizationId}/oauth2/session-bridge/token",getTrustedAgentAccessToken:"/organizations/{organizationId}/oauth2/trusted-agent/token",getTrustedAgentAuthorizationToken:"/organizations/{organizationId}/oauth2/trusted-agent/authorize",getTrustedSystemAccessToken:"/organizations/{organizationId}/oauth2/trusted-system/token",getUserInfo:"/organizations/{organizationId}/oauth2/userinfo",getWellknownOpenidConfiguration:"/organizations/{organizationId}/oauth2/.well-known/openid-configuration",introspectToken:"/organizations/{organizationId}/oauth2/introspect",logoutCustomer:"/organizations/{organizationId}/oauth2/logout",resetPassword:"/organizations/{organizationId}/oauth2/password/action",revokeToken:"/organizations/{organizationId}/oauth2/revoke"}),Kh(wg,"paramKeys",{authenticateCustomer:["organizationId","redirect_uri","channel_id","client_id","response_type","state","scope","usid","code_challenge"],authenticateCustomerRequired:["organizationId","redirect_uri","channel_id"],authorizeCustomer:["organizationId","redirect_uri","response_type","client_id","scope","state","usid","hint","channel_id","code_challenge","ui_locales"],authorizeCustomerRequired:["organizationId","redirect_uri","response_type","client_id"],authorizePasswordlessCustomer:["organizationId","user_id","mode","channel_id","locale","usid","callback_uri"],authorizePasswordlessCustomerRequired:["organizationId","user_id","mode","channel_id"],getAccessToken:["organizationId","grant_type","refresh_token","code","usid","redirect_uri","code_verifier","client_id","channel_id","dnt"],getAccessTokenRequired:["organizationId","grant_type"],getJwksUri:["organizationId"],getJwksUriRequired:["organizationId"],getPasswordLessAccessToken:["organizationId","grant_type","hint","pwdless_login_token","client_id","code_verifier"],getPasswordLessAccessTokenRequired:["organizationId","grant_type","hint","pwdless_login_token"],getPasswordResetToken:["organizationId","user_id","mode","channel_id","locale","client_id","code_challenge","callback_uri","idp_name","hint"],getPasswordResetTokenRequired:["organizationId","user_id","mode","channel_id"],getSessionBridgeAccessToken:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id","dwsgst","dwsrst","usid","dnt"],getSessionBridgeAccessTokenRequired:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id"],getTrustedAgentAccessToken:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin","agent_id","usid","dnt","state"],getTrustedAgentAccessTokenRequired:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin"],getTrustedAgentAuthorizationToken:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type","code_challenge"],getTrustedAgentAuthorizationTokenRequired:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type"],getTrustedSystemAccessToken:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id","usid","email_id","dnt"],getTrustedSystemAccessTokenRequired:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id"],getUserInfo:["organizationId","channel_id"],getUserInfoRequired:["organizationId"],getWellknownOpenidConfiguration:["organizationId"],getWellknownOpenidConfigurationRequired:["organizationId"],introspectToken:["organizationId","token","token_type_hint"],introspectTokenRequired:["organizationId","token"],logoutCustomer:["organizationId","client_id","refresh_token","channel_id","hint"],logoutCustomerRequired:["organizationId","client_id","refresh_token"],resetPassword:["organizationId","client_id","pwd_action_token","code_verifier","channel_id","new_password","hint"],resetPasswordRequired:["organizationId","client_id","pwd_action_token","code_verifier","channel_id"],revokeToken:["organizationId","token","token_type_hint"],revokeTokenRequired:["organizationId","token"]});var kg=["hint","redirectURI","usid"],xg=["hint","redirectURI","usid"],_g=["dnt","redirectURI","usid"];function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Og(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Cg=Mt?btoa:function(e){return Buffer.from(e).toString("base64")},Pg=function(e){var t,r,n=new URL(e),o=new URLSearchParams(n.search),i=null!==(t=o.get("usid"))&&void 0!==t?t:"";return{code:null!==(r=o.get("code"))&&void 0!==r?r:"",usid:i}},Sg=function(){return t=n.default(String(+new Date),{entropy:!0}),e.customRandom(e.urlAlphabet,128,(function(e){return new Uint8Array(e).map((function(){return 256*t()}))}))();var t},zg=function(){var e=ep(Pp.mark((function e(t){var n,o,i,a,s,c,u;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},o="",!Mt||!window.crypto){e.next=12;break}return i=new TextEncoder,a=i.encode(t),e.next=7,window.crypto.subtle.digest("SHA-256",a);case 7:s=e.sent,c=btoa(String.fromCharCode.apply(String,Xh(new Uint8Array(s)))),o=n(c),e.next=16;break;case 12:return e.next=14,Promise.resolve().then((function(){return r(require("crypto"))}));case 14:u=e.sent,o=n(u.default.createHash("sha256").update(t).digest("base64"));case 16:if(0!==o.length){e.next=18;break}throw new Error("Problem generating code challenge");case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Tg(e){return Ag.apply(this,arguments)}function Ag(){return(Ag=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g,v,y;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.slasClient,o=t.codeVerifier,i=t.parameters,a=t.privateClient,s={},void 0!==a&&a){e.next=6;break}return e.next=5,zg(o);case 5:s.codeChallenge=e.sent;case 6:return(c=new wg(n.clientConfig)).clientConfig.fetchOptions=Og(Og({},n.clientConfig.fetchOptions),{},{redirect:Mt?"follow":"manual"}),u=i.hint,f=i.redirectURI,l=i.usid,d=Jh(i,kg),h={parameters:Og(Og(Og(Og({},d),{},{client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId},s.codeChallenge&&{code_challenge:s.codeChallenge}),u&&{hint:u}),{},{organizationId:n.clientConfig.parameters.organizationId,redirect_uri:f,response_type:"code"},l&&{usid:l})},e.next=12,c.authorizeCustomer(h,!0);case 12:if(p=e.sent,g=(null===(r=p.headers)||void 0===r?void 0:r.get("location"))||p.url,v=new URL(g),y=Object.fromEntries(v.searchParams.entries()),!(p.status>=400||y.error)){e.next=18;break}throw new lg(p);case 18:return e.abrupt("return",Og({url:g},Pg(g)));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Eg(){return(Eg=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,o=t.privateClient,i=void 0!==o&&o,a=n.hint,s=n.redirectURI,c=n.usid,u=Jh(n,xg),f=Sg(),l={},i){e.next=8;break}return e.next=7,zg(f);case 7:l.codeChallenge=e.sent;case 8:return d=wg.apiPaths.authorizeCustomer,h={organizationId:r.clientConfig.parameters.organizationId,shortCode:r.clientConfig.parameters.shortCode},p=Og(Og(Og({},u),{},{client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId},l.codeChallenge&&{code_challenge:l.codeChallenge}),{},{hint:a,redirect_uri:s,response_type:"code"},c&&{usid:c}),g=new vg(d,r.clientConfig.baseUri,{pathParams:h,queryParams:p,origin:r.clientConfig.proxy}),e.abrupt("return",{url:g.toString(),codeVerifier:f});case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jg(){return(jg=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,i=!!n.clientSecret,a=Og(Og(Og({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:o.code,organizationId:r.clientConfig.parameters.organizationId},!i&&n.codeVerifier&&{code_verifier:n.codeVerifier}),{},{grant_type:i?"authorization_code":"authorization_code_pkce",redirect_uri:o.redirectURI},void 0!==o.dnt&&{dnt:o.dnt.toString()}),o.usid&&{usid:o.usid}),!n.clientSecret){e.next=7;break}return s="Basic ".concat(Cg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),c={headers:{Authorization:s},body:a},e.abrupt("return",r.getAccessToken(c));case 7:return e.abrupt("return",r.getAccessToken({body:a}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rg(){return(Rg=ep(Pp.mark((function e(t){var r,n,o,i,a;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,o=t.credentials,r.clientConfig.parameters.siteId){e.next=3;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 3:return i="Basic ".concat(Cg("".concat(r.clientConfig.parameters.clientId,":").concat(o.clientSecret))),a={headers:{Authorization:i},body:Og(Og({grant_type:"client_credentials",channel_id:r.clientConfig.parameters.siteId},n.usid&&{usid:n.usid}),void 0!==n.dnt&&{dnt:n.dnt.toString()})},e.abrupt("return",r.getAccessToken(a));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ug(){return(Ug=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c,u,f;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.slasClient,n=t.parameters,o=Sg(),i=n.dnt,a=n.redirectURI,s=n.usid,c=Jh(n,_g),e.next=5,Tg({slasClient:r,codeVerifier:o,parameters:Og(Og({},c),{},{redirectURI:a,hint:"guest"},s&&{usid:s}),privateClient:!1});case 5:return u=e.sent,f=Og({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:u.code,code_verifier:o,grant_type:"authorization_code_pkce",redirect_uri:a,usid:u.usid},void 0!==i&&{dnt:i.toString()}),e.abrupt("return",r.getAccessToken({body:f}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lg(){return(Lg=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g,v,y,m,b,w,k,x;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slasClient,o=t.credentials,i=t.parameters,a=t.body,s=Sg(),e.next=4,zg(s);case 4:return c=e.sent,(u=new wg(n.clientConfig)).clientConfig.fetchOptions=Og(Og({},n.clientConfig.fetchOptions),{},{redirect:Mt?"follow":"manual"}),f="Basic ".concat(Cg("".concat(o.username,":").concat(o.password))),l=i.dnt,d=i.usid,h=i.redirectURI,p={headers:{Authorization:f},parameters:{organizationId:n.clientConfig.parameters.organizationId},body:Og(Og({},a||{}),{},{redirect_uri:h,client_id:n.clientConfig.parameters.clientId,code_challenge:c,channel_id:n.clientConfig.parameters.siteId},d&&{usid:d})},e.next=12,u.authenticateCustomer(p,!0);case 12:if(g=e.sent,v=(null===(r=g.headers)||void 0===r?void 0:r.get("location"))||g.url,y=new URL(v),m=Object.fromEntries(y.searchParams.entries()),!(g.status>=400||m.error)){e.next=18;break}throw new lg(g);case 18:if(b=Pg(v),w=Og({client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId,code:b.code,code_verifier:s,grant_type:"authorization_code_pkce",organizationId:n.clientConfig.parameters.organizationId,redirect_uri:i.redirectURI,usid:b.usid},void 0!==l&&{dnt:l.toString()}),!o.clientSecret){e.next=24;break}return k="Basic ".concat(Cg("".concat(n.clientConfig.parameters.clientId,":").concat(o.clientSecret))),x={headers:{Authorization:k},body:w},e.abrupt("return",n.getAccessToken(x));case 24:return e.abrupt("return",n.getAccessToken({body:w}));case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qg(){return(qg=ep(Pp.mark((function e(t){var r,n,o,i,a;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.siteId){e.next=5;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 5:if(o.mode){e.next=7;break}throw new Error("Required argument mode is not provided through parameters");case 7:if(o.userid){e.next=9;break}throw new Error("Required argument userid is not provided through parameters");case 9:return i="Basic ".concat(Cg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),a=Og(Og(Og({user_id:o.userid,mode:o.mode},o.locale&&{locale:o.locale}),o.usid&&{usid:o.usid}),{},{channel_id:r.clientConfig.parameters.siteId},o.callbackURI&&{callback_uri:o.callbackURI}),e.abrupt("return",r.authorizePasswordlessCustomer({headers:{Authorization:i},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:a},!0));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mg(){return(Mg=ep(Pp.mark((function e(t){var r,n,o,i,a,s;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.organizationId){e.next=5;break}throw new Error("Required argument organizationId is not provided through clientConfig.parameters.organizationId");case 5:if(o.pwdlessLoginToken){e.next=7;break}throw new Error("Required argument pwdlessLoginToken is not provided through parameters");case 7:return i=Sg(),a="Basic ".concat(Cg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),s=Og({grant_type:"client_credentials",hint:"pwdless_login",pwdless_login_token:o.pwdlessLoginToken,code_verifier:i},o.dnt&&{dnt:o.dnt}),e.abrupt("return",r.getPasswordLessAccessToken({headers:{Authorization:a},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:s}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Bg=Mr.find,Fg=!0;"find"in[]&&Array(1).find((function(){Fg=!1})),Lt({target:"Array",proto:!0,forced:Fg},{find:function(e){return Bg(this,e,arguments.length>1?arguments[1]:void 0)}}),lo("find");function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wg=function(e){var t=!1;return e&&(t=Boolean(Object.keys(e).find((function(e){return"content-type"===e.toLowerCase()})))),t},Gg=function(){var e=ep(Pp.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h;return Pp.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.options,i=t.clientConfig,a=t.rawResponse,s=["apiName","endpointPath","organizationId","shortCode"],c=Dg(Dg({},i.parameters),null==o?void 0:o.customApiPathParameters),s.forEach((function(e){if(!c[e])throw new Error("Missing required property needed in options.customApiPathParameters or clientConfig.parameters: ".concat(e))})),c.apiVersion||(c.apiVersion="v1"),u=i,i.baseUri||(u=Dg(Dg({},i),{},{baseUri:"https://{shortCode}.api.commercecloud.salesforce.com/custom/{apiName}/{apiVersion}"})),f=Boolean(!(null!==(r=o.parameters)&&void 0!==r&&r.siteId)&&(null==i||null===(n=i.parameters)||void 0===n?void 0:n.siteId)),l=Wg(o.headers)||Wg(u.headers),d=o,l&&!f||(d=Dg(Dg({},o),{},{headers:Dg(Dg({},o.headers),!l&&{"Content-Type":"application/json"}),parameters:Dg(Dg({},o.parameters),f&&{siteId:i.parameters.siteId})})),h=new vg("/organizations/{organizationId}/{endpointPath}",u.baseUri,{pathParams:c,queryParams:d.parameters,origin:u.proxy}),e.abrupt("return",pg(h.toString(),d,u,a));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();exports.authorize=Tg,exports.authorizeIDP=function(e){return Eg.apply(this,arguments)},exports.authorizePasswordless=function(e){return qg.apply(this,arguments)},exports.callCustomEndpoint=Gg,exports.createCodeVerifier=Sg,exports.doFetch=pg,exports.encodeSCAPISpecialCharacters=function(e){return e.replace(/%/g,"%25").replace(/,/g,"%2C")},exports.fetch=Dt,exports.generateCodeChallenge=zg,exports.getCodeAndUsidFromUrl=Pg,exports.getPasswordLessAccessToken=function(e){return Mg.apply(this,arguments)},exports.globalObject=Ft,exports.hasFetchAvailable=Nt,exports.isBrowser=Mt,exports.isNode=Bt,exports.loginGuestUser=function(e){return Ug.apply(this,arguments)},exports.loginGuestUserPrivate=function(e){return Rg.apply(this,arguments)},exports.loginIDPUser=function(e){return jg.apply(this,arguments)},exports.loginRegisteredUserB2C=function(e){return Lg.apply(this,arguments)},exports.logout=function(e){var t=e.slasClient,r=e.parameters;return t.logoutCustomer({headers:{Authorization:"Bearer ".concat(r.accessToken)},parameters:{refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId}})},exports.refreshAccessToken=function(e){var t=e.slasClient,r=e.parameters,n=e.credentials,o=Og({grant_type:"refresh_token",refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId},void 0!==r.dnt&&{dnt:r.dnt.toString()});if(n&&n.clientSecret){var i={headers:{Authorization:"Basic ".concat(Cg("".concat(t.clientConfig.parameters.clientId,":").concat(n.clientSecret)))},body:o};return t.getAccessToken(i)}return t.getAccessToken({body:o})},exports.stringToBase64=Cg;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("nanoid");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=t(require("seedrandom")),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var a,s,c=function(e){return e&&e.Math==Math&&e},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=function(e){try{return!!e()}catch(e){return!0}},l=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!f((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),h=Function.prototype.call,p=d?h.bind(h):function(){return h.apply(h,arguments)},g={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y={f:v&&!g.call({1:2},1)?function(e){var t=v(this,e);return!!t&&t.enumerable}:g},m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},b=Function.prototype,w=b.bind,x=b.call,k=d&&w.bind(x,x),_=d?function(e){return e&&k(e)}:function(e){return e&&function(){return x.apply(e,arguments)}},I=_({}.toString),O=_("".slice),C=function(e){return O(I(e),8,-1)},P=Object,S=_("".split),T=f((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==C(e)?S(e,""):P(e)}:P,z=TypeError,A=function(e){if(null==e)throw z("Can't call method on "+e);return e},E=function(e){return T(A(e))},j=function(e){return"function"==typeof e},R=function(e){return"object"==typeof e?null!==e:j(e)},U=function(e){return j(e)?e:void 0},q=function(e,t){return arguments.length<2?U(u[e]):u[e]&&u[e][t]},L=_({}.isPrototypeOf),M=q("navigator","userAgent")||"",B=u.process,F=u.Deno,D=B&&B.versions||F&&F.version,N=D&&D.v8;N&&(s=(a=N.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!s&&M&&(!(a=M.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=M.match(/Chrome\/(\d+)/))&&(s=+a[1]);var W=s,G=!!Object.getOwnPropertySymbols&&!f((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,$=V?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return j(t)&&L(t.prototype,H(e))},Y=String,J=function(e){try{return Y(e)}catch(e){return"Object"}},K=TypeError,Q=function(e){if(j(e))return e;throw K(J(e)+" is not a function")},X=function(e,t){var r=e[t];return null==r?void 0:Q(r)},Z=TypeError,ee=Object.defineProperty,te=function(e,t){try{ee(u,e,{value:t,configurable:!0,writable:!0})}catch(r){u[e]=t}return t},re=u["__core-js_shared__"]||te("__core-js_shared__",{}),ne=i((function(e){(e.exports=function(e,t){return re[e]||(re[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),oe=Object,ie=function(e){return oe(A(e))},ae=_({}.hasOwnProperty),se=Object.hasOwn||function(e,t){return ae(ie(e),t)},ce=0,ue=Math.random(),fe=_(1..toString),le=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++ce+ue,36)},de=ne("wks"),he=u.Symbol,pe=he&&he.for,ge=V?he:he&&he.withoutSetter||le,ve=function(e){if(!se(de,e)||!G&&"string"!=typeof de[e]){var t="Symbol."+e;G&&se(he,e)?de[e]=he[e]:de[e]=V&&pe?pe(t):ge(t)}return de[e]},ye=TypeError,me=ve("toPrimitive"),be=function(e,t){if(!R(e)||$(e))return e;var r,n=X(e,me);if(n){if(void 0===t&&(t="default"),r=p(n,e,t),!R(r)||$(r))return r;throw ye("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&j(r=e.toString)&&!R(n=p(r,e)))return n;if(j(r=e.valueOf)&&!R(n=p(r,e)))return n;if("string"!==t&&j(r=e.toString)&&!R(n=p(r,e)))return n;throw Z("Can't convert object to primitive value")}(e,t)},we=function(e){var t=be(e,"string");return $(t)?t:t+""},xe=u.document,ke=R(xe)&&R(xe.createElement),_e=function(e){return ke?xe.createElement(e):{}},Ie=!l&&!f((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),Oe=Object.getOwnPropertyDescriptor,Ce={f:l?Oe:function(e,t){if(e=E(e),t=we(t),Ie)try{return Oe(e,t)}catch(e){}if(se(e,t))return m(!p(y.f,e,t),e[t])}},Pe=l&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Se=String,Te=TypeError,ze=function(e){if(R(e))return e;throw Te(Se(e)+" is not an object")},Ae=TypeError,Ee=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Re={f:l?Pe?function(e,t,r){if(ze(e),t=we(t),ze(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=je(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Ee(e,t,r)}:Ee:function(e,t,r){if(ze(e),t=we(t),ze(r),Ie)try{return Ee(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ae("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ue=l?function(e,t,r){return Re.f(e,t,m(1,r))}:function(e,t,r){return e[t]=r,e},qe=Function.prototype,Le=l&&Object.getOwnPropertyDescriptor,Me=se(qe,"name"),Be={EXISTS:Me,PROPER:Me&&"something"===function(){}.name,CONFIGURABLE:Me&&(!l||l&&Le(qe,"name").configurable)},Fe=_(Function.toString);j(re.inspectSource)||(re.inspectSource=function(e){return Fe(e)});var De,Ne,We,Ge=re.inspectSource,Ve=u.WeakMap,He=j(Ve)&&/native code/.test(Ge(Ve)),$e=ne("keys"),Ye=function(e){return $e[e]||($e[e]=le(e))},Je={},Ke=u.TypeError,Qe=u.WeakMap;if(He||re.state){var Xe=re.state||(re.state=new Qe),Ze=_(Xe.get),et=_(Xe.has),tt=_(Xe.set);De=function(e,t){if(et(Xe,e))throw new Ke("Object already initialized");return t.facade=e,tt(Xe,e,t),t},Ne=function(e){return Ze(Xe,e)||{}},We=function(e){return et(Xe,e)}}else{var rt=Ye("state");Je[rt]=!0,De=function(e,t){if(se(e,rt))throw new Ke("Object already initialized");return t.facade=e,Ue(e,rt,t),t},Ne=function(e){return se(e,rt)?e[rt]:{}},We=function(e){return se(e,rt)}}var nt={set:De,get:Ne,has:We,enforce:function(e){return We(e)?Ne(e):De(e,{})},getterFor:function(e){return function(t){var r;if(!R(t)||(r=Ne(t)).type!==e)throw Ke("Incompatible receiver, "+e+" required");return r}}},ot=i((function(e){var t=Be.CONFIGURABLE,r=nt.enforce,n=nt.get,o=Object.defineProperty,i=l&&!f((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),s=e.exports=function(e,n,s){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(n="get "+n),s&&s.setter&&(n="set "+n),(!se(e,"name")||t&&e.name!==n)&&(l?o(e,"name",{value:n,configurable:!0}):e.name=n),i&&s&&se(s,"arity")&&e.length!==s.arity&&o(e,"length",{value:s.arity});try{s&&se(s,"constructor")&&s.constructor?l&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var c=r(e);return se(c,"source")||(c.source=a.join("string"==typeof n?n:"")),e};Function.prototype.toString=s((function(){return j(this)&&n(this).source||Ge(this)}),"toString")})),it=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(j(r)&&ot(r,i,n),n.global)o?e[t]=r:te(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Re.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},at=Math.ceil,st=Math.floor,ct=Math.trunc||function(e){var t=+e;return(t>0?st:at)(t)},ut=function(e){var t=+e;return t!=t||0===t?0:ct(t)},ft=Math.max,lt=Math.min,dt=function(e,t){var r=ut(e);return r<0?ft(r+t,0):lt(r,t)},ht=Math.min,pt=function(e){return e>0?ht(ut(e),9007199254740991):0},gt=function(e){return pt(e.length)},vt=function(e){return function(t,r,n){var o,i=E(t),a=gt(i),s=dt(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yt={includes:vt(!0),indexOf:vt(!1)},mt=yt.indexOf,bt=_([].push),wt=function(e,t){var r,n=E(e),o=0,i=[];for(r in n)!se(Je,r)&&se(n,r)&&bt(i,r);for(;t.length>o;)se(n,r=t[o++])&&(~mt(i,r)||bt(i,r));return i},xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=xt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(e){return wt(e,kt)}},It={f:Object.getOwnPropertySymbols},Ot=_([].concat),Ct=q("Reflect","ownKeys")||function(e){var t=_t.f(ze(e)),r=It.f;return r?Ot(t,r(e)):t},Pt=function(e,t,r){for(var n=Ct(t),o=Re.f,i=Ce.f,a=0;a<n.length;a++){var s=n[a];se(e,s)||r&&se(r,s)||o(e,s,i(t,s))}},St=/#|\.prototype\./,Tt=function(e,t){var r=At[zt(e)];return r==jt||r!=Et&&(j(t)?f(t):!!t)},zt=Tt.normalize=function(e){return String(e).replace(St,".").toLowerCase()},At=Tt.data={},Et=Tt.NATIVE="N",jt=Tt.POLYFILL="P",Rt=Tt,Ut=Ce.f,qt=function(e,t){var r,n,o,i,a,s=e.target,c=e.global,f=e.stat;if(r=c?u:f?u[s]||te(s,{}):(u[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Ut(r,n))&&a.value:r[n],!Rt(c?n:s+(f?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(e.sham||o&&o.sham)&&Ue(i,"sham",!0),it(r,n,i,e)}};qt({global:!0},{globalThis:u});var Lt={};Lt[ve("toStringTag")]="z";var Mt="[object z]"===String(Lt),Bt=ve("toStringTag"),Ft=Object,Dt="Arguments"==C(function(){return arguments}()),Nt=Mt?C:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ft(e),Bt))?r:Dt?C(t):"Object"==(n=C(t))&&j(t.callee)?"Arguments":n},Wt=Mt?{}.toString:function(){return"[object "+Nt(this)+"]"};Mt||it(Object.prototype,"toString",Wt,{unsafe:!0});var Gt="process"==C(u.process),Vt=String,Ht=TypeError,$t=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ze(r),function(e){if("object"==typeof e||j(e))return e;throw Ht("Can't set "+Vt(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),Yt=Re.f,Jt=ve("toStringTag"),Kt=function(e,t,r){e&&!r&&(e=e.prototype),e&&!se(e,Jt)&&Yt(e,Jt,{configurable:!0,value:t})},Qt=ve("species"),Xt=function(e){var t=q(e),r=Re.f;l&&t&&!t[Qt]&&r(t,Qt,{configurable:!0,get:function(){return this}})},Zt=TypeError,er=function(e,t){if(L(t,e))return e;throw Zt("Incorrect invocation")},tr=function(){},rr=[],nr=q("Reflect","construct"),or=/^\s*(?:class|function)\b/,ir=_(or.exec),ar=!or.exec(tr),sr=function(e){if(!j(e))return!1;try{return nr(tr,rr,e),!0}catch(e){return!1}},cr=function(e){if(!j(e))return!1;switch(Nt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ar||!!ir(or,Ge(e))}catch(e){return!0}};cr.sham=!0;var ur,fr,lr,dr,hr=!nr||f((function(){var e;return sr(sr.call)||!sr(Object)||!sr((function(){e=!0}))||e}))?cr:sr,pr=TypeError,gr=function(e){if(hr(e))return e;throw pr(J(e)+" is not a constructor")},vr=ve("species"),yr=function(e,t){var r,n=ze(e).constructor;return void 0===n||null==(r=ze(n)[vr])?t:gr(r)},mr=Function.prototype,br=mr.apply,wr=mr.call,xr="object"==typeof Reflect&&Reflect.apply||(d?wr.bind(br):function(){return wr.apply(br,arguments)}),kr=_(_.bind),_r=function(e,t){return Q(e),void 0===t?e:d?kr(e,t):function(){return e.apply(t,arguments)}},Ir=q("document","documentElement"),Or=_([].slice),Cr=TypeError,Pr=function(e,t){if(e<t)throw Cr("Not enough arguments");return e},Sr=/(?:ipad|iphone|ipod).*applewebkit/i.test(M),Tr=u.setImmediate,zr=u.clearImmediate,Ar=u.process,Er=u.Dispatch,jr=u.Function,Rr=u.MessageChannel,Ur=u.String,qr=0,Lr={};try{ur=u.location}catch(e){}var Mr=function(e){if(se(Lr,e)){var t=Lr[e];delete Lr[e],t()}},Br=function(e){return function(){Mr(e)}},Fr=function(e){Mr(e.data)},Dr=function(e){u.postMessage(Ur(e),ur.protocol+"//"+ur.host)};Tr&&zr||(Tr=function(e){Pr(arguments.length,1);var t=j(e)?e:jr(e),r=Or(arguments,1);return Lr[++qr]=function(){xr(t,void 0,r)},fr(qr),qr},zr=function(e){delete Lr[e]},Gt?fr=function(e){Ar.nextTick(Br(e))}:Er&&Er.now?fr=function(e){Er.now(Br(e))}:Rr&&!Sr?(dr=(lr=new Rr).port2,lr.port1.onmessage=Fr,fr=_r(dr.postMessage,dr)):u.addEventListener&&j(u.postMessage)&&!u.importScripts&&ur&&"file:"!==ur.protocol&&!f(Dr)?(fr=Dr,u.addEventListener("message",Fr,!1)):fr="onreadystatechange"in _e("script")?function(e){Ir.appendChild(_e("script")).onreadystatechange=function(){Ir.removeChild(this),Mr(e)}}:function(e){setTimeout(Br(e),0)});var Nr,Wr,Gr,Vr,Hr,$r,Yr,Jr,Kr={set:Tr,clear:zr},Qr=/ipad|iphone|ipod/i.test(M)&&void 0!==u.Pebble,Xr=/web0s(?!.*chrome)/i.test(M),Zr=Ce.f,en=Kr.set,tn=u.MutationObserver||u.WebKitMutationObserver,rn=u.document,nn=u.process,on=u.Promise,an=Zr(u,"queueMicrotask"),sn=an&&an.value;sn||(Nr=function(){var e,t;for(Gt&&(e=nn.domain)&&e.exit();Wr;){t=Wr.fn,Wr=Wr.next;try{t()}catch(e){throw Wr?Vr():Gr=void 0,e}}Gr=void 0,e&&e.enter()},Sr||Gt||Xr||!tn||!rn?!Qr&&on&&on.resolve?((Yr=on.resolve(void 0)).constructor=on,Jr=_r(Yr.then,Yr),Vr=function(){Jr(Nr)}):Gt?Vr=function(){nn.nextTick(Nr)}:(en=_r(en,u),Vr=function(){en(Nr)}):(Hr=!0,$r=rn.createTextNode(""),new tn(Nr).observe($r,{characterData:!0}),Vr=function(){$r.data=Hr=!Hr}));var cn=sn||function(e){var t={fn:e,next:void 0};Gr&&(Gr.next=t),Wr||(Wr=t,Vr()),Gr=t},un=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},fn=function(){this.head=null,this.tail=null};fn.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var ln=fn,dn=u.Promise,hn="object"==typeof window&&"object"!=typeof Deno;dn&&dn.prototype;var pn,gn,vn,yn=ve("species"),mn=!1,bn=j(u.PromiseRejectionEvent),wn={CONSTRUCTOR:Rt("Promise",(function(){var e=Ge(dn),t=e!==String(dn);if(!t&&66===W)return!0;if(W>=51&&/native code/.test(e))return!1;var r=new dn((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[yn]=n,!(mn=r.then((function(){}))instanceof n)||!t&&hn&&!bn})),REJECTION_EVENT:bn,SUBCLASSING:mn},xn=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=Q(t),this.reject=Q(r)},kn={f:function(e){return new xn(e)}},_n=Kr.set,In=wn.CONSTRUCTOR,On=wn.REJECTION_EVENT,Cn=wn.SUBCLASSING,Pn=nt.getterFor("Promise"),Sn=nt.set,Tn=dn&&dn.prototype,zn=dn,An=Tn,En=u.TypeError,jn=u.document,Rn=u.process,Un=kn.f,qn=Un,Ln=!!(jn&&jn.createEvent&&u.dispatchEvent),Mn=function(e){var t;return!(!R(e)||!j(t=e.then))&&t},Bn=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Gn(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(En("Promise-chain cycle")):(n=Mn(r))?p(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},Fn=function(e,t){e.notified||(e.notified=!0,cn((function(){for(var r,n=e.reactions;r=n.get();)Bn(r,e);e.notified=!1,t&&!e.rejection&&Nn(e)})))},Dn=function(e,t,r){var n,o;Ln?((n=jn.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!On&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&function(e,t){var r=u.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Nn=function(e){p(_n,u,(function(){var t,r=e.facade,n=e.value;if(Wn(e)&&(t=un((function(){Gt?Rn.emit("unhandledRejection",n,r):Dn("unhandledrejection",r,n)})),e.rejection=Gt||Wn(e)?2:1,t.error))throw t.value}))},Wn=function(e){return 1!==e.rejection&&!e.parent},Gn=function(e){p(_n,u,(function(){var t=e.facade;Gt?Rn.emit("rejectionHandled",t):Dn("rejectionhandled",t,e.value)}))},Vn=function(e,t,r){return function(n){e(t,n,r)}},Hn=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Fn(e,!0))},$n=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw En("Promise can't be resolved itself");var n=Mn(t);n?cn((function(){var r={done:!1};try{p(n,t,Vn($n,r,e),Vn(Hn,r,e))}catch(t){Hn(r,t,e)}})):(e.value=t,e.state=1,Fn(e,!1))}catch(t){Hn({done:!1},t,e)}}};if(In&&(An=(zn=function(e){er(this,An),Q(e),p(pn,this);var t=Pn(this);try{e(Vn($n,t),Vn(Hn,t))}catch(e){Hn(t,e)}}).prototype,(pn=function(e){Sn(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new ln,rejection:!1,state:0,value:void 0})}).prototype=it(An,"then",(function(e,t){var r=Pn(this),n=Un(yr(this,zn));return r.parent=!0,n.ok=!j(e)||e,n.fail=j(t)&&t,n.domain=Gt?Rn.domain:void 0,0==r.state?r.reactions.add(n):cn((function(){Bn(n,r)})),n.promise})),gn=function(){var e=new pn,t=Pn(e);this.promise=e,this.resolve=Vn($n,t),this.reject=Vn(Hn,t)},kn.f=Un=function(e){return e===zn||void 0===e?new gn(e):qn(e)},j(dn)&&Tn!==Object.prototype)){vn=Tn.then,Cn||it(Tn,"then",(function(e,t){var r=this;return new zn((function(e,t){p(vn,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Tn.constructor}catch(e){}$t&&$t(Tn,An)}qt({global:!0,constructor:!0,wrap:!0,forced:In},{Promise:zn}),Kt(zn,"Promise",!1),Xt("Promise");var Yn={},Jn=ve("iterator"),Kn=Array.prototype,Qn=function(e){return void 0!==e&&(Yn.Array===e||Kn[Jn]===e)},Xn=ve("iterator"),Zn=function(e){if(null!=e)return X(e,Xn)||X(e,"@@iterator")||Yn[Nt(e)]},eo=TypeError,to=function(e,t){var r=arguments.length<2?Zn(e):t;if(Q(r))return ze(p(r,e));throw eo(J(e)+" is not iterable")},ro=function(e,t,r){var n,o;ze(e);try{if(!(n=X(e,"return"))){if("throw"===t)throw r;return r}n=p(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ze(n),r},no=TypeError,oo=function(e,t){this.stopped=e,this.result=t},io=oo.prototype,ao=function(e,t,r){var n,o,i,a,s,c,u,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),v=_r(t,f),y=function(e){return n&&ro(n,"normal",e),new oo(!0,e)},m=function(e){return l?(ze(e),g?v(e[0],e[1],y):v(e[0],e[1])):g?v(e,y):v(e)};if(d)n=e.iterator;else if(h)n=e;else{if(!(o=Zn(e)))throw no(J(e)+" is not iterable");if(Qn(o)){for(i=0,a=gt(e);a>i;i++)if((s=m(e[i]))&&L(io,s))return s;return new oo(!1)}n=to(e,o)}for(c=d?e.next:n.next;!(u=p(c,n)).done;){try{s=m(u.value)}catch(e){ro(n,"throw",e)}if("object"==typeof s&&s&&L(io,s))return s}return new oo(!1)},so=ve("iterator"),co=!1;try{var uo=0,fo={next:function(){return{done:!!uo++}},return:function(){co=!0}};fo[so]=function(){return this},Array.from(fo,(function(){throw 2}))}catch(e){}var lo=function(e,t){if(!t&&!co)return!1;var r=!1;try{var n={};n[so]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},ho=wn.CONSTRUCTOR||!lo((function(e){dn.all(e).then(void 0,(function(){}))}));qt({target:"Promise",stat:!0,forced:ho},{all:function(e){var t=this,r=kn.f(t),n=r.resolve,o=r.reject,i=un((function(){var r=Q(t.resolve),i=[],a=0,s=1;ao(e,(function(e){var c=a++,u=!1;s++,p(r,t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var po=wn.CONSTRUCTOR,go=dn&&dn.prototype;if(qt({target:"Promise",proto:!0,forced:po,real:!0},{catch:function(e){return this.then(void 0,e)}}),j(dn)){var vo=q("Promise").prototype.catch;go.catch!==vo&&it(go,"catch",vo,{unsafe:!0})}qt({target:"Promise",stat:!0,forced:ho},{race:function(e){var t=this,r=kn.f(t),n=r.reject,o=un((function(){var o=Q(t.resolve);ao(e,(function(e){p(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),qt({target:"Promise",stat:!0,forced:wn.CONSTRUCTOR},{reject:function(e){var t=kn.f(this);return p(t.reject,void 0,e),t.promise}});var yo=wn.CONSTRUCTOR;function mo(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function bo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){mo(i,n,o,a,s,"next",e)}function s(e){mo(i,n,o,a,s,"throw",e)}a(void 0)}))}}function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}q("Promise"),qt({target:"Promise",stat:!0,forced:yo},{resolve:function(e){return function(e,t){if(ze(e),R(t)&&t.constructor===e)return t;var r=kn.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var xo=Object.prototype,ko=xo.hasOwnProperty,_o="function"==typeof Symbol?Symbol:{},Io=_o.iterator||"@@iterator",Oo=_o.asyncIterator||"@@asyncIterator",Co=_o.toStringTag||"@@toStringTag";function Po(e,t,r,n){var o=t&&t.prototype instanceof zo?t:zo,i=Object.create(o.prototype),a=new Wo(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return Vo()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=Fo(a,r);if(s){if(s===To)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=So(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===To)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function So(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var To={};function zo(){}function Ao(){}function Eo(){}var jo={};jo[Io]=function(){return this};var Ro=Object.getPrototypeOf,Uo=Ro&&Ro(Ro(Go([])));Uo&&Uo!==xo&&ko.call(Uo,Io)&&(jo=Uo);var qo=Eo.prototype=zo.prototype=Object.create(jo);function Lo(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Mo(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Ao||"GeneratorFunction"===(t.displayName||t.name))}function Bo(e,t){var r;this._invoke=function(n,o){function i(){return new t((function(r,i){!function r(n,o,i,a){var s=So(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&ko.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,a)}))}a(s.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}}function Fo(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,Fo(e,t),"throw"===t.method))return To;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return To}var n=So(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,To;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,To):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,To)}function Do(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function No(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Wo(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Do,this),this.reset(!0)}function Go(e){if(e){var t=e[Io];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(ko.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:Vo}}function Vo(){return{value:void 0,done:!0}}Ao.prototype=qo.constructor=Eo,Eo.constructor=Ao,Eo[Co]=Ao.displayName="GeneratorFunction",Lo(Bo.prototype),Bo.prototype[Oo]=function(){return this},Lo(qo),qo[Co]="Generator",qo[Io]=function(){return this},qo.toString=function(){return"[object Generator]"},Wo.prototype={constructor:Wo,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(No),!e)for(var t in this)"t"===t.charAt(0)&&ko.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=ko.call(o,"catchLoc"),s=ko.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&ko.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,To):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),To},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),No(r),To}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;No(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:Go(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),To}};var Ho,$o,Yo={wrap:Po,isGeneratorFunction:Mo,AsyncIterator:Bo,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,Eo):(e.__proto__=Eo,Co in e||(e[Co]="GeneratorFunction")),e.prototype=Object.create(qo),e},awrap:function(e){return{__await:e}},async:function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new Bo(Po(e,t,r,n),o);return Mo(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},keys:function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:Go},Jo="object"===("undefined"==typeof window?"undefined":wo(window))&&"object"===wo(window.document),Ko="object"===("undefined"==typeof process?"undefined":wo(process))&&"object"===wo(process.versions)&&"string"==typeof process.versions.node,Qo=Jo?window:globalThis,Xo="function"==typeof Qo.fetch,Zo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ho?Ho.apply(void 0,t):($o||($o=bo(Yo.mark((function e(){var t,n,o;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ko){e.next=7;break}return e.next=3,Promise.resolve().then((function(){return r(require("node-fetch"))}));case 3:return n=e.sent,o=null!==(t=n.default)&&void 0!==t?t:n,Ho=o,e.abrupt("return",o);case 7:if(Xo){e.next=9;break}throw new Error("Bad environment: it is not a node environment but fetch is not defined");case 9:return Ho=Qo.fetch.bind(Qo),e.abrupt("return",Ho);case 11:case"end":return e.stop()}}),e)})))()),$o.then((function(e){return e.apply(void 0,t)})))},ei=Object.keys||function(e){return wt(e,xt)},ti=f((function(){ei(1)}));qt({target:"Object",stat:!0,forced:ti},{keys:function(e){return ei(ie(e))}});var ri,ni=String,oi=function(e){if("Symbol"===Nt(e))throw TypeError("Cannot convert a Symbol value to a string");return ni(e)},ii={f:l&&!Pe?Object.defineProperties:function(e,t){ze(e);for(var r,n=E(t),o=ei(t),i=o.length,a=0;i>a;)Re.f(e,r=o[a++],n[r]);return e}},ai=Ye("IE_PROTO"),si=function(){},ci=function(e){return"<script>"+e+"<\/script>"},ui=function(e){e.write(ci("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{ri=new ActiveXObject("htmlfile")}catch(e){}var e,t;fi="undefined"!=typeof document?document.domain&&ri?ui(ri):((t=_e("iframe")).style.display="none",Ir.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ci("document.F=Object")),e.close(),e.F):ui(ri);for(var r=xt.length;r--;)delete fi.prototype[xt[r]];return fi()};Je[ai]=!0;var li=Object.create||function(e,t){var r;return null!==e?(si.prototype=ze(e),r=new si,si.prototype=null,r[ai]=e):r=fi(),void 0===t?r:ii.f(r,t)},di=function(e,t,r){var n=we(t);n in e?Re.f(e,n,m(0,r)):e[n]=r},hi=Array,pi=Math.max,gi=function(e,t,r){for(var n=gt(e),o=dt(t,n),i=dt(void 0===r?n:r,n),a=hi(pi(i-o,0)),s=0;o<i;o++,s++)di(a,s,e[o]);return a.length=s,a},vi=_t.f,yi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mi={f:function(e){return yi&&"Window"==C(e)?function(e){try{return vi(e)}catch(e){return gi(yi)}}(e):vi(E(e))}},bi={f:ve},wi=u,xi=Re.f,ki=Array.isArray||function(e){return"Array"==C(e)},_i=ve("species"),Ii=Array,Oi=function(e,t){return new(function(e){var t;return ki(e)&&(t=e.constructor,(hr(t)&&(t===Ii||ki(t.prototype))||R(t)&&null===(t=t[_i]))&&(t=void 0)),void 0===t?Ii:t}(e))(0===t?0:t)},Ci=_([].push),Pi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,u,f,l){for(var d,h,p=ie(c),g=T(p),v=_r(u,f),y=gt(g),m=0,b=l||Oi,w=t?b(c,y):r||a?b(c,0):void 0;y>m;m++)if((s||m in g)&&(h=v(d=g[m],m,p),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ci(w,d)}else switch(e){case 4:return!1;case 7:Ci(w,d)}return i?-1:n||o?o:w}},Si={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},Ti=Si.forEach,zi=Ye("hidden"),Ai=nt.set,Ei=nt.getterFor("Symbol"),ji=Object.prototype,Ri=u.Symbol,Ui=Ri&&Ri.prototype,qi=u.TypeError,Li=u.QObject,Mi=Ce.f,Bi=Re.f,Fi=mi.f,Di=y.f,Ni=_([].push),Wi=ne("symbols"),Gi=ne("op-symbols"),Vi=ne("wks"),Hi=!Li||!Li.prototype||!Li.prototype.findChild,$i=l&&f((function(){return 7!=li(Bi({},"a",{get:function(){return Bi(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Mi(ji,t);n&&delete ji[t],Bi(e,t,r),n&&e!==ji&&Bi(ji,t,n)}:Bi,Yi=function(e,t){var r=Wi[e]=li(Ui);return Ai(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},Ji=function(e,t,r){e===ji&&Ji(Gi,t,r),ze(e);var n=we(t);return ze(r),se(Wi,n)?(r.enumerable?(se(e,zi)&&e[zi][n]&&(e[zi][n]=!1),r=li(r,{enumerable:m(0,!1)})):(se(e,zi)||Bi(e,zi,m(1,{})),e[zi][n]=!0),$i(e,n,r)):Bi(e,n,r)},Ki=function(e,t){ze(e);var r=E(t),n=ei(r).concat(ea(r));return Ti(n,(function(t){l&&!p(Qi,r,t)||Ji(e,t,r[t])})),e},Qi=function(e){var t=we(e),r=p(Di,this,t);return!(this===ji&&se(Wi,t)&&!se(Gi,t))&&(!(r||!se(this,t)||!se(Wi,t)||se(this,zi)&&this[zi][t])||r)},Xi=function(e,t){var r=E(e),n=we(t);if(r!==ji||!se(Wi,n)||se(Gi,n)){var o=Mi(r,n);return!o||!se(Wi,n)||se(r,zi)&&r[zi][n]||(o.enumerable=!0),o}},Zi=function(e){var t=Fi(E(e)),r=[];return Ti(t,(function(e){se(Wi,e)||se(Je,e)||Ni(r,e)})),r},ea=function(e){var t=e===ji,r=Fi(t?Gi:E(e)),n=[];return Ti(r,(function(e){!se(Wi,e)||t&&!se(ji,e)||Ni(n,Wi[e])})),n};G||(Ui=(Ri=function(){if(L(Ui,this))throw qi("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?oi(arguments[0]):void 0,t=le(e),r=function(e){this===ji&&p(r,Gi,e),se(this,zi)&&se(this[zi],t)&&(this[zi][t]=!1),$i(this,t,m(1,e))};return l&&Hi&&$i(ji,t,{configurable:!0,set:r}),Yi(t,e)}).prototype,it(Ui,"toString",(function(){return Ei(this).tag})),it(Ri,"withoutSetter",(function(e){return Yi(le(e),e)})),y.f=Qi,Re.f=Ji,ii.f=Ki,Ce.f=Xi,_t.f=mi.f=Zi,It.f=ea,bi.f=function(e){return Yi(ve(e),e)},l&&(Bi(Ui,"description",{configurable:!0,get:function(){return Ei(this).description}}),it(ji,"propertyIsEnumerable",Qi,{unsafe:!0}))),qt({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:Ri}),Ti(ei(Vi),(function(e){!function(e){var t=wi.Symbol||(wi.Symbol={});se(t,e)||xi(t,e,{value:bi.f(e)})}(e)})),qt({target:"Symbol",stat:!0,forced:!G},{useSetter:function(){Hi=!0},useSimple:function(){Hi=!1}}),qt({target:"Object",stat:!0,forced:!G,sham:!l},{create:function(e,t){return void 0===t?li(e):Ki(li(e),t)},defineProperty:Ji,defineProperties:Ki,getOwnPropertyDescriptor:Xi}),qt({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Zi}),function(){var e=q("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=ve("toPrimitive");t&&!t[n]&&it(t,n,(function(e){return p(r,this)}),{arity:1})}(),Kt(Ri,"Symbol"),Je[zi]=!0;var ta=G&&!!Symbol.for&&!!Symbol.keyFor,ra=ne("string-to-symbol-registry"),na=ne("symbol-to-string-registry");qt({target:"Symbol",stat:!0,forced:!ta},{for:function(e){var t=oi(e);if(se(ra,t))return ra[t];var r=q("Symbol")(t);return ra[t]=r,na[r]=t,r}});var oa=ne("symbol-to-string-registry");qt({target:"Symbol",stat:!0,forced:!ta},{keyFor:function(e){if(!$(e))throw TypeError(J(e)+" is not a symbol");if(se(oa,e))return oa[e]}});var ia=q("JSON","stringify"),aa=_(/./.exec),sa=_("".charAt),ca=_("".charCodeAt),ua=_("".replace),fa=_(1..toString),la=/[\uD800-\uDFFF]/g,da=/^[\uD800-\uDBFF]$/,ha=/^[\uDC00-\uDFFF]$/,pa=!G||f((function(){var e=q("Symbol")();return"[null]"!=ia([e])||"{}"!=ia({a:e})||"{}"!=ia(Object(e))})),ga=f((function(){return'"\\udf06\\ud834"'!==ia("\udf06\ud834")||'"\\udead"'!==ia("\udead")})),va=function(e,t){var r=Or(arguments),n=t;if((R(t)||void 0!==e)&&!$(e))return ki(t)||(t=function(e,t){if(j(n)&&(t=p(n,this,e,t)),!$(t))return t}),r[1]=t,xr(ia,null,r)},ya=function(e,t,r){var n=sa(r,t-1),o=sa(r,t+1);return aa(da,e)&&!aa(ha,o)||aa(ha,e)&&!aa(da,n)?"\\u"+fa(ca(e,0),16):e};ia&&qt({target:"JSON",stat:!0,arity:3,forced:pa||ga},{stringify:function(e,t,r){var n=Or(arguments),o=xr(pa?va:ia,null,n);return ga&&"string"==typeof o?ua(o,la,ya):o}});var ma=!G||f((function(){It.f(1)}));qt({target:"Object",stat:!0,forced:ma},{getOwnPropertySymbols:function(e){var t=It.f;return t?t(ie(e)):[]}});var ba=ve("species"),wa=function(e){return W>=51||!f((function(){var t=[];return(t.constructor={})[ba]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},xa=Si.filter,ka=wa("filter");qt({target:"Array",proto:!0,forced:!ka},{filter:function(e){return xa(this,e,arguments.length>1?arguments[1]:void 0)}});var _a=Ce.f,Ia=f((function(){_a(1)}));qt({target:"Object",stat:!0,forced:!l||Ia,sham:!l},{getOwnPropertyDescriptor:function(e,t){return _a(E(e),t)}});var Oa={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},Ca=_e("span").classList,Pa=Ca&&Ca.constructor&&Ca.constructor.prototype,Sa=Pa===Object.prototype?void 0:Pa,Ta=function(e,t){var r=[][e];return!!r&&f((function(){r.call(null,t||function(){return 1},1)}))},za=Si.forEach,Aa=Ta("forEach")?[].forEach:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)},Ea=function(e){if(e&&e.forEach!==Aa)try{Ue(e,"forEach",Aa)}catch(t){e.forEach=Aa}};for(var ja in Oa)Oa[ja]&&Ea(u[ja]&&u[ja].prototype);Ea(Sa),qt({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(e){for(var t,r,n=E(e),o=Ce.f,i=Ct(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&di(a,t,r);return a}});var Ra=ii.f;qt({target:"Object",stat:!0,forced:Object.defineProperties!==Ra,sham:!l},{defineProperties:Ra});var Ua=Re.f;qt({target:"Object",stat:!0,forced:Object.defineProperty!==Ua,sham:!l},{defineProperty:Ua});var qa=function(){var e=ze(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},La=RegExp.prototype,Ma=Be.PROPER,Ba=RegExp.prototype.toString,Fa=f((function(){return"/a/b"!=Ba.call({source:"a",flags:"b"})})),Da=Ma&&"toString"!=Ba.name;(Fa||Da)&&it(RegExp.prototype,"toString",(function(){var e=ze(this);return"/"+oi(e.source)+"/"+oi(function(e){var t=e.flags;return void 0!==t||"flags"in La||se(e,"flags")||!L(La,e)?t:p(qa,e)}(e))}),{unsafe:!0});var Na=Re.f,Wa=ve("unscopables"),Ga=Array.prototype;null==Ga[Wa]&&Na(Ga,Wa,{configurable:!0,value:li(null)});var Va,Ha,$a,Ya=function(e){Ga[Wa][e]=!0},Ja=!f((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ka=Ye("IE_PROTO"),Qa=Object,Xa=Qa.prototype,Za=Ja?Qa.getPrototypeOf:function(e){var t=ie(e);if(se(t,Ka))return t[Ka];var r=t.constructor;return j(r)&&t instanceof r?r.prototype:t instanceof Qa?Xa:null},es=ve("iterator"),ts=!1;[].keys&&("next"in($a=[].keys())?(Ha=Za(Za($a)))!==Object.prototype&&(Va=Ha):ts=!0),(null==Va||f((function(){var e={};return Va[es].call(e)!==e})))&&(Va={}),j(Va[es])||it(Va,es,(function(){return this}));var rs={IteratorPrototype:Va,BUGGY_SAFARI_ITERATORS:ts},ns=rs.IteratorPrototype,os=function(){return this},is=function(e,t,r,n){var o=t+" Iterator";return e.prototype=li(ns,{next:m(+!n,r)}),Kt(e,o,!1),Yn[o]=os,e},as=Be.PROPER,ss=Be.CONFIGURABLE,cs=rs.IteratorPrototype,us=rs.BUGGY_SAFARI_ITERATORS,fs=ve("iterator"),ls=function(){return this},ds=function(e,t,r,n,o,i,a){is(r,t,n);var s,c,u,f=function(e){if(e===o&&v)return v;if(!us&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",d=!1,h=e.prototype,g=h[fs]||h["@@iterator"]||o&&h[o],v=!us&&g||f(o),y="Array"==t&&h.entries||g;if(y&&(s=Za(y.call(new e)))!==Object.prototype&&s.next&&(Za(s)!==cs&&($t?$t(s,cs):j(s[fs])||it(s,fs,ls)),Kt(s,l,!0)),as&&"values"==o&&g&&"values"!==g.name&&(ss?Ue(h,"name","values"):(d=!0,v=function(){return p(g,this)})),o)if(c={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(u in c)(us||d||!(u in h))&&it(h,u,c[u]);else qt({target:t,proto:!0,forced:us||d},c);return h[fs]!==v&&it(h,fs,v,{name:o}),Yn[t]=v,c},hs=Re.f,ps=nt.set,gs=nt.getterFor("Array Iterator"),vs=ds(Array,"Array",(function(e,t){ps(this,{type:"Array Iterator",target:E(e),index:0,kind:t})}),(function(){var e=gs(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),ys=Yn.Arguments=Yn.Array;if(Ya("keys"),Ya("values"),Ya("entries"),l&&"values"!==ys.name)try{hs(ys,"name",{value:"values"})}catch(e){}var ms=_("".charAt),bs=_("".charCodeAt),ws=_("".slice),xs=function(e){return function(t,r){var n,o,i=oi(A(t)),a=ut(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=bs(i,a))<55296||n>56319||a+1===s||(o=bs(i,a+1))<56320||o>57343?e?ms(i,a):n:e?ws(i,a,a+2):o-56320+(n-55296<<10)+65536}},ks={codeAt:xs(!1),charAt:xs(!0)},_s=ks.charAt,Is=nt.set,Os=nt.getterFor("String Iterator");ds(String,"String",(function(e){Is(this,{type:"String Iterator",string:oi(e),index:0})}),(function(){var e,t=Os(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=_s(r,n),t.index+=e.length,{value:e,done:!1})}));var Cs=ve("iterator"),Ps=ve("toStringTag"),Ss=vs.values,Ts=function(e,t){if(e){if(e[Cs]!==Ss)try{Ue(e,Cs,Ss)}catch(t){e[Cs]=Ss}if(e[Ps]||Ue(e,Ps,t),Oa[t])for(var r in vs)if(e[r]!==vs[r])try{Ue(e,r,vs[r])}catch(t){e[r]=vs[r]}}};for(var zs in Oa)Ts(u[zs]&&u[zs].prototype,zs);Ts(Sa,"DOMTokenList");var As=ve("iterator"),Es=!f((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[As]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),js=function(e,t,r){return r.get&&ot(r.get,t,{getter:!0}),r.set&&ot(r.set,t,{setter:!0}),Re.f(e,t,r)},Rs=Object.assign,Us=Object.defineProperty,qs=_([].concat),Ls=!Rs||f((function(){if(l&&1!==Rs({b:1},Rs(Us({},"a",{enumerable:!0,get:function(){Us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Rs({},e)[r]||"abcdefghijklmnopqrst"!=ei(Rs({},t)).join("")}))?function(e,t){for(var r=ie(e),n=arguments.length,o=1,i=It.f,a=y.f;n>o;)for(var s,c=T(arguments[o++]),u=i?qs(ei(c),i(c)):ei(c),f=u.length,d=0;f>d;)s=u[d++],l&&!p(a,c,s)||(r[s]=c[s]);return r}:Rs,Ms=function(e,t,r,n){try{return n?t(ze(r)[0],r[1]):t(r)}catch(t){ro(e,"throw",t)}},Bs=Array,Fs=function(e){var t=ie(e),r=hr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=_r(o,n>2?arguments[2]:void 0));var a,s,c,u,f,l,d=Zn(t),h=0;if(!d||this===Bs&&Qn(d))for(a=gt(t),s=r?new this(a):Bs(a);a>h;h++)l=i?o(t[h],h):t[h],di(s,h,l);else for(f=(u=to(t,d)).next,s=r?new this:[];!(c=p(f,u)).done;h++)l=i?Ms(u,o,[c.value,h],!0):c.value,di(s,h,l);return s.length=h,s},Ds=/[^\0-\u007E]/,Ns=/[.\u3002\uFF0E\uFF61]/g,Ws="Overflow: input needs wider integers to process",Gs=RangeError,Vs=_(Ns.exec),Hs=Math.floor,$s=String.fromCharCode,Ys=_("".charCodeAt),Js=_([].join),Ks=_([].push),Qs=_("".replace),Xs=_("".split),Zs=_("".toLowerCase),ec=function(e){return e+22+75*(e<26)},tc=function(e,t,r){var n=0;for(e=r?Hs(e/700):e>>1,e+=Hs(e/t);e>455;)e=Hs(e/35),n+=36;return Hs(n+36*e/(e+38))},rc=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Ys(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Ys(e,r++);56320==(64512&i)?Ks(t,((1023&o)<<10)+(1023&i)+65536):(Ks(t,o),r--)}else Ks(t,o)}return t}(e)).length,i=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Ks(n,$s(r));var c=n.length,u=c;for(c&&Ks(n,"-");u<o;){var f=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<f&&(f=r);var l=u+1;if(f-i>Hs((2147483647-a)/l))throw Gs(Ws);for(a+=(f-i)*l,i=f,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw Gs(Ws);if(r==i){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var g=d-p,v=36-p;Ks(n,$s(ec(p+g%v))),d=Hs(g/v),h+=36}Ks(n,$s(ec(d))),s=tc(a,l,u==c),a=0,u++}}a++,i++}return Js(n,"")},nc=function(e,t,r){for(var n in t)it(e,n,t[n],r);return e},oc=Math.floor,ic=function(e,t){var r=e.length,n=oc(r/2);return r<8?ac(e,t):sc(e,ic(gi(e,0,n),t),ic(gi(e,n),t),t)},ac=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},sc=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},cc=ic,uc=ve("iterator"),fc=nt.set,lc=nt.getterFor("URLSearchParams"),dc=nt.getterFor("URLSearchParamsIterator"),hc=Object.getOwnPropertyDescriptor,pc=function(e){if(!l)return u[e];var t=hc(u,e);return t&&t.value},gc=pc("fetch"),vc=pc("Request"),yc=pc("Headers"),mc=vc&&vc.prototype,bc=yc&&yc.prototype,wc=u.RegExp,xc=u.TypeError,kc=u.decodeURIComponent,_c=u.encodeURIComponent,Ic=_("".charAt),Oc=_([].join),Cc=_([].push),Pc=_("".replace),Sc=_([].shift),Tc=_([].splice),zc=_("".split),Ac=_("".slice),Ec=/\+/g,jc=Array(4),Rc=function(e){return jc[e-1]||(jc[e-1]=wc("((?:%[\\da-f]{2}){"+e+"})","gi"))},Uc=function(e){try{return kc(e)}catch(t){return e}},qc=function(e){var t=Pc(e,Ec," "),r=4;try{return kc(t)}catch(e){for(;r;)t=Pc(t,Rc(r--),Uc);return t}},Lc=/[!'()~]|%20/g,Mc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Bc=function(e){return Mc[e]},Fc=function(e){return Pc(_c(e),Lc,Bc)},Dc=is((function(e,t){fc(this,{type:"URLSearchParamsIterator",iterator:to(lc(e).entries),kind:t})}),"Iterator",(function(){var e=dc(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Nc=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Ic(e,0)?Ac(e,1):e:oi(e)))};Nc.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=Zn(e);if(c)for(r=(t=to(e,c)).next;!(n=p(r,t)).done;){if(i=(o=to(ze(n.value))).next,(a=p(i,o)).done||(s=p(i,o)).done||!p(i,o).done)throw xc("Expected sequence with length 2");Cc(this.entries,{key:oi(a.value),value:oi(s.value)})}else for(var u in e)se(e,u)&&Cc(this.entries,{key:u,value:oi(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=zc(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=zc(t,"="),Cc(this.entries,{key:qc(Sc(r)),value:qc(Oc(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Cc(r,Fc(e.key)+"="+Fc(e.value));return Oc(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Wc=function(){er(this,Gc);var e=arguments.length>0?arguments[0]:void 0;fc(this,new Nc(e))},Gc=Wc.prototype;if(nc(Gc,{append:function(e,t){Pr(arguments.length,2);var r=lc(this);Cc(r.entries,{key:oi(e),value:oi(t)}),r.updateURL()},delete:function(e){Pr(arguments.length,1);for(var t=lc(this),r=t.entries,n=oi(e),o=0;o<r.length;)r[o].key===n?Tc(r,o,1):o++;t.updateURL()},get:function(e){Pr(arguments.length,1);for(var t=lc(this).entries,r=oi(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Pr(arguments.length,1);for(var t=lc(this).entries,r=oi(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Cc(n,t[o].value);return n},has:function(e){Pr(arguments.length,1);for(var t=lc(this).entries,r=oi(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Pr(arguments.length,1);for(var r,n=lc(this),o=n.entries,i=!1,a=oi(e),s=oi(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Tc(o,c--,1):(i=!0,r.value=s));i||Cc(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=lc(this);cc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=lc(this).entries,n=_r(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new Dc(this,"keys")},values:function(){return new Dc(this,"values")},entries:function(){return new Dc(this,"entries")}},{enumerable:!0}),it(Gc,uc,Gc.entries,{name:"entries"}),it(Gc,"toString",(function(){return lc(this).serialize()}),{enumerable:!0}),Kt(Wc,"URLSearchParams"),qt({global:!0,constructor:!0,forced:!Es},{URLSearchParams:Wc}),!Es&&j(yc)){var Vc=_(bc.has),Hc=_(bc.set),$c=function(e){if(R(e)){var t,r=e.body;if("URLSearchParams"===Nt(r))return t=e.headers?new yc(e.headers):new yc,Vc(t,"content-type")||Hc(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),li(e,{body:m(0,oi(r)),headers:m(0,t)})}return e};if(j(gc)&&qt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return gc(e,arguments.length>1?$c(arguments[1]):{})}}),j(vc)){var Yc=function(e){return er(this,mc),new vc(e,arguments.length>1?$c(arguments[1]):{})};mc.constructor=Yc,Yc.prototype=mc,qt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Yc})}}var Jc,Kc={URLSearchParams:Wc,getState:lc},Qc=ks.codeAt,Xc=nt.set,Zc=nt.getterFor("URL"),eu=Kc.URLSearchParams,tu=Kc.getState,ru=u.URL,nu=u.TypeError,ou=u.parseInt,iu=Math.floor,au=Math.pow,su=_("".charAt),cu=_(/./.exec),uu=_([].join),fu=_(1..toString),lu=_([].pop),du=_([].push),hu=_("".replace),pu=_([].shift),gu=_("".split),vu=_("".slice),yu=_("".toLowerCase),mu=_([].unshift),bu=/[a-z]/i,wu=/[\d+-.a-z]/i,xu=/\d/,ku=/^0x/i,_u=/^[0-7]+$/,Iu=/^\d+$/,Ou=/^[\da-f]+$/i,Cu=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Pu=/[\0\t\n\r #/:<>?@[\\\]^|]/,Su=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Tu=/[\t\n\r]/g,zu=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)mu(t,e%256),e=iu(e/256);return uu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=fu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Au={},Eu=Ls({},Au,{" ":1,'"':1,"<":1,">":1,"`":1}),ju=Ls({},Eu,{"#":1,"?":1,"{":1,"}":1}),Ru=Ls({},ju,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Uu=function(e,t){var r=Qc(e,0);return r>32&&r<127&&!se(t,e)?e:encodeURIComponent(e)},qu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Lu=function(e,t){var r;return 2==e.length&&cu(bu,su(e,0))&&(":"==(r=su(e,1))||!t&&"|"==r)},Mu=function(e){var t;return e.length>1&&Lu(vu(e,0,2))&&(2==e.length||"/"===(t=su(e,2))||"\\"===t||"?"===t||"#"===t)},Bu=function(e){return"."===e||"%2e"===yu(e)},Fu={},Du={},Nu={},Wu={},Gu={},Vu={},Hu={},$u={},Yu={},Ju={},Ku={},Qu={},Xu={},Zu={},ef={},tf={},rf={},nf={},of={},af={},sf={},cf=function(e,t,r){var n,o,i,a=oi(e);if(t){if(o=this.parse(a))throw nu(o);this.searchParams=null}else{if(void 0!==r&&(n=new cf(r,!0)),o=this.parse(a,null,n))throw nu(o);(i=tu(new eu)).bindURL(this),this.searchParams=i}};cf.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,c=this,u=t||Fu,f=0,l="",d=!1,h=!1,p=!1;for(e=oi(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=hu(e,Su,"")),e=hu(e,Tu,""),n=Fs(e);f<=n.length;){switch(o=n[f],u){case Fu:if(!o||!cu(bu,o)){if(t)return"Invalid scheme";u=Nu;continue}l+=yu(o),u=Du;break;case Du:if(o&&(cu(wu,o)||"+"==o||"-"==o||"."==o))l+=yu(o);else{if(":"!=o){if(t)return"Invalid scheme";l="",u=Nu,f=0;continue}if(t&&(c.isSpecial()!=se(qu,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&qu[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?u=Zu:c.isSpecial()&&r&&r.scheme==c.scheme?u=Wu:c.isSpecial()?u=$u:"/"==n[f+1]?(u=Gu,f++):(c.cannotBeABaseURL=!0,du(c.path,""),u=of)}break;case Nu:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=gi(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=sf;break}u="file"==r.scheme?Zu:Vu;continue;case Wu:if("/"!=o||"/"!=n[f+1]){u=Vu;continue}u=Yu,f++;break;case Gu:if("/"==o){u=Ju;break}u=nf;continue;case Vu:if(c.scheme=r.scheme,o==Jc)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=gi(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())u=Hu;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=gi(r.path),c.query="",u=af;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=gi(r.path),c.path.length--,u=nf;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=gi(r.path),c.query=r.query,c.fragment="",u=sf}break;case Hu:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=nf;continue}u=Ju}else u=Yu;break;case $u:if(u=Yu,"/"!=o||"/"!=su(l,f+1))continue;f++;break;case Yu:if("/"!=o&&"\\"!=o){u=Ju;continue}break;case Ju:if("@"==o){d&&(l="%40"+l),d=!0,i=Fs(l);for(var g=0;g<i.length;g++){var v=i[g];if(":"!=v||p){var y=Uu(v,Ru);p?c.password+=y:c.username+=y}else p=!0}l=""}else if(o==Jc||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(d&&""==l)return"Invalid authority";f-=Fs(l).length+1,l="",u=Ku}else l+=o;break;case Ku:case Qu:if(t&&"file"==c.scheme){u=tf;continue}if(":"!=o||h){if(o==Jc||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==l)return"Invalid host";if(t&&""==l&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(l))return a;if(l="",u=rf,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),l+=o}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",u=Xu,t==Qu)return}break;case Xu:if(!cu(xu,o)){if(o==Jc||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=l){var m=ou(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===qu[c.scheme]?null:m,l=""}if(t)return;u=rf;continue}return"Invalid port"}l+=o;break;case Zu:if(c.scheme="file","/"==o||"\\"==o)u=ef;else{if(!r||"file"!=r.scheme){u=nf;continue}if(o==Jc)c.host=r.host,c.path=gi(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=gi(r.path),c.query="",u=af;else{if("#"!=o){Mu(uu(gi(n,f),""))||(c.host=r.host,c.path=gi(r.path),c.shortenPath()),u=nf;continue}c.host=r.host,c.path=gi(r.path),c.query=r.query,c.fragment="",u=sf}}break;case ef:if("/"==o||"\\"==o){u=tf;break}r&&"file"==r.scheme&&!Mu(uu(gi(n,f),""))&&(Lu(r.path[0],!0)?du(c.path,r.path[0]):c.host=r.host),u=nf;continue;case tf:if(o==Jc||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Lu(l))u=nf;else if(""==l){if(c.host="",t)return;u=rf}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),t)return;l="",u=rf}continue}l+=o;break;case rf:if(c.isSpecial()){if(u=nf,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Jc&&(u=nf,"/"!=o))continue}else c.fragment="",u=sf;else c.query="",u=af;break;case nf:if(o==Jc||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=yu(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||du(c.path,"")):Bu(l)?"/"==o||"\\"==o&&c.isSpecial()||du(c.path,""):("file"==c.scheme&&!c.path.length&&Lu(l)&&(c.host&&(c.host=""),l=su(l,0)+":"),du(c.path,l)),l="","file"==c.scheme&&(o==Jc||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)pu(c.path);"?"==o?(c.query="",u=af):"#"==o&&(c.fragment="",u=sf)}else l+=Uu(o,ju);break;case of:"?"==o?(c.query="",u=af):"#"==o?(c.fragment="",u=sf):o!=Jc&&(c.path[0]+=Uu(o,Au));break;case af:t||"#"!=o?o!=Jc&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":Uu(o,Au)):(c.fragment="",u=sf);break;case sf:o!=Jc&&(c.fragment+=Uu(o,Eu))}f++}},parseHost:function(e){var t,r,n;if("["==su(e,0)){if("]"!=su(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,d=function(){return su(e,l)};if(":"==d()){if(":"!=su(e,1))return;l+=2,f=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=r=0;r<4&&cu(Ou,d());)t=16*t+ou(d(),16),l++,r++;if("."==d()){if(0==r)return;if(l-=r,u>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;l++}if(!cu(xu,d()))return;for(;cu(xu,d());){if(i=ou(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;c[u++]=t}else{if(null!==f)return;l++,f=++u}}if(null!==f)for(a=u-f,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[f+a-1],c[f+--a]=s;else if(8!=u)return;return c}(vu(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=Xs(Qs(Zs(e),Ns,"."),".");for(t=0;t<o.length;t++)r=o[t],Ks(n,Vs(Ds,r)?"xn--"+rc(r):r);return Js(n,".")}(e),cu(Cu,e))return"Invalid host";if(null===(t=function(e){var t,r,n,o,i,a,s,c=gu(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==su(o,0)&&(i=cu(ku,o)?16:8,o=vu(o,8==i?1:2)),""===o)a=0;else{if(!cu(10==i?Iu:8==i?_u:Ou,o))return e;a=ou(o,i)}du(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=au(256,5-t))return null}else if(a>255)return null;for(s=lu(r),n=0;n<r.length;n++)s+=r[n]*au(256,3-n);return s}(e)))return"Invalid host";this.host=t}else{if(cu(Pu,e))return"Invalid host";for(t="",r=Fs(e),n=0;n<r.length;n++)t+=Uu(r[n],Au);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return se(qu,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Lu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=zu(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+uu(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw nu(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new uf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+zu(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(oi(e)+":",Fu)},getUsername:function(){return this.username},setUsername:function(e){var t=Fs(oi(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Uu(t[r],Ru)}},getPassword:function(){return this.password},setPassword:function(e){var t=Fs(oi(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Uu(t[r],Ru)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?zu(e):zu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ku)},getHostname:function(){var e=this.host;return null===e?"":zu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Qu)},getPort:function(){var e=this.port;return null===e?"":oi(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=oi(e))?this.port=null:this.parse(e,Xu))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+uu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,rf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=oi(e))?this.query=null:("?"==su(e,0)&&(e=vu(e,1)),this.query="",this.parse(e,af)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=oi(e))?("#"==su(e,0)&&(e=vu(e,1)),this.fragment="",this.parse(e,sf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var uf=function(e){var t=er(this,ff),r=Pr(arguments.length,1)>1?arguments[1]:void 0,n=Xc(t,new cf(e,!1,r));l||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},ff=uf.prototype,lf=function(e,t){return{get:function(){return Zc(this)[e]()},set:t&&function(e){return Zc(this)[t](e)},configurable:!0,enumerable:!0}};if(l&&(js(ff,"href",lf("serialize","setHref")),js(ff,"origin",lf("getOrigin")),js(ff,"protocol",lf("getProtocol","setProtocol")),js(ff,"username",lf("getUsername","setUsername")),js(ff,"password",lf("getPassword","setPassword")),js(ff,"host",lf("getHost","setHost")),js(ff,"hostname",lf("getHostname","setHostname")),js(ff,"port",lf("getPort","setPort")),js(ff,"pathname",lf("getPathname","setPathname")),js(ff,"search",lf("getSearch","setSearch")),js(ff,"searchParams",lf("getSearchParams")),js(ff,"hash",lf("getHash","setHash"))),it(ff,"toJSON",(function(){return Zc(this).serialize()}),{enumerable:!0}),it(ff,"toString",(function(){return Zc(this).serialize()}),{enumerable:!0}),ru){var df=ru.createObjectURL,hf=ru.revokeObjectURL;df&&it(uf,"createObjectURL",_r(df,ru)),hf&&it(uf,"revokeObjectURL",_r(hf,ru))}Kt(uf,"URL"),qt({global:!0,constructor:!0,forced:!Es,sham:!l},{URL:uf});var pf,gf,vf=u.RegExp,yf=f((function(){var e=vf("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),mf=yf||f((function(){return!vf("a","y").sticky})),bf={BROKEN_CARET:yf||f((function(){var e=vf("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:mf,UNSUPPORTED_Y:yf},wf=u.RegExp,xf=f((function(){var e=wf(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kf=u.RegExp,_f=f((function(){var e=kf("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),If=nt.get,Of=ne("native-string-replace",String.prototype.replace),Cf=RegExp.prototype.exec,Pf=Cf,Sf=_("".charAt),Tf=_("".indexOf),zf=_("".replace),Af=_("".slice),Ef=(gf=/b*/g,p(Cf,pf=/a/,"a"),p(Cf,gf,"a"),0!==pf.lastIndex||0!==gf.lastIndex),jf=bf.BROKEN_CARET,Rf=void 0!==/()??/.exec("")[1];(Ef||Rf||jf||xf||_f)&&(Pf=function(e){var t,r,n,o,i,a,s,c=this,u=If(c),f=oi(e),l=u.raw;if(l)return l.lastIndex=c.lastIndex,t=p(Pf,l,f),c.lastIndex=l.lastIndex,t;var d=u.groups,h=jf&&c.sticky,g=p(qa,c),v=c.source,y=0,m=f;if(h&&(g=zf(g,"y",""),-1===Tf(g,"g")&&(g+="g"),m=Af(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Sf(f,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),r=new RegExp("^(?:"+v+")",g)),Rf&&(r=new RegExp("^"+v+"$(?!\\s)",g)),Ef&&(n=c.lastIndex),o=p(Cf,h?r:c,m),h?o?(o.input=Af(o.input,y),o[0]=Af(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ef&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Rf&&o&&o.length>1&&p(Of,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=li(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Uf=Pf;qt({target:"RegExp",proto:!0,forced:/./.exec!==Uf},{exec:Uf});var qf=ve("species"),Lf=RegExp.prototype,Mf=function(e,t,r,n){var o=ve(e),i=!f((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!f((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[qf]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=_(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=_(e),c=t.exec;return c===Uf||c===Lf.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));it(String.prototype,e,c[0]),it(Lf,o,c[1])}n&&Ue(Lf[o],"sham",!0)},Bf=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Ff=TypeError,Df=function(e,t){var r=e.exec;if(j(r)){var n=p(r,e,t);return null!==n&&ze(n),n}if("RegExp"===C(e))return p(Uf,e,t);throw Ff("RegExp#exec called on incompatible receiver")};Mf("search",(function(e,t,r){return[function(t){var r=A(this),n=null==t?void 0:X(t,e);return n?p(n,t,r):new RegExp(t)[e](oi(r))},function(e){var n=ze(this),o=oi(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;Bf(a,0)||(n.lastIndex=0);var s=Df(n,o);return Bf(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var Nf=Si.map,Wf=wa("map");qt({target:"Array",proto:!0,forced:!Wf},{map:function(e){return Nf(this,e,arguments.length>1?arguments[1]:void 0)}});var Gf,Vf,Hf,$f="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Yf=Re.f,Jf=nt.enforce,Kf=nt.get,Qf=u.Int8Array,Xf=Qf&&Qf.prototype,Zf=u.Uint8ClampedArray,el=Zf&&Zf.prototype,tl=Qf&&Za(Qf),rl=Xf&&Za(Xf),nl=Object.prototype,ol=u.TypeError,il=ve("toStringTag"),al=le("TYPED_ARRAY_TAG"),sl=$f&&!!$t&&"Opera"!==Nt(u.opera),cl=!1,ul={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},fl={BigInt64Array:8,BigUint64Array:8},ll=function(e){var t=Za(e);if(R(t)){var r=Kf(t);return r&&se(r,"TypedArrayConstructor")?r.TypedArrayConstructor:ll(t)}},dl=function(e){if(!R(e))return!1;var t=Nt(e);return se(ul,t)||se(fl,t)};for(Gf in ul)(Hf=(Vf=u[Gf])&&Vf.prototype)?Jf(Hf).TypedArrayConstructor=Vf:sl=!1;for(Gf in fl)(Hf=(Vf=u[Gf])&&Vf.prototype)&&(Jf(Hf).TypedArrayConstructor=Vf);if((!sl||!j(tl)||tl===Function.prototype)&&(tl=function(){throw ol("Incorrect invocation")},sl))for(Gf in ul)u[Gf]&&$t(u[Gf],tl);if((!sl||!rl||rl===nl)&&(rl=tl.prototype,sl))for(Gf in ul)u[Gf]&&$t(u[Gf].prototype,rl);if(sl&&Za(el)!==rl&&$t(el,rl),l&&!se(rl,il))for(Gf in cl=!0,Yf(rl,il,{get:function(){return R(this)?this[al]:void 0}}),ul)u[Gf]&&Ue(u[Gf],al,Gf);var hl={NATIVE_ARRAY_BUFFER_VIEWS:sl,TYPED_ARRAY_TAG:cl&&al,aTypedArray:function(e){if(dl(e))return e;throw ol("Target is not a typed array")},aTypedArrayConstructor:function(e){if(j(e)&&(!$t||L(tl,e)))return e;throw ol(J(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(l){if(r)for(var o in ul){var i=u[o];if(i&&se(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}rl[e]&&!r||it(rl,e,r?t:sl&&Xf[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(l){if($t){if(r)for(n in ul)if((o=u[n])&&se(o,e))try{delete o[e]}catch(e){}if(tl[e]&&!r)return;try{return it(tl,e,r?t:sl&&tl[e]||t)}catch(e){}}for(n in ul)!(o=u[n])||o[e]&&!r||it(o,e,t)}},getTypedArrayConstructor:ll,isView:function(e){if(!R(e))return!1;var t=Nt(e);return"DataView"===t||se(ul,t)||se(fl,t)},isTypedArray:dl,TypedArray:tl,TypedArrayPrototype:rl},pl=hl.NATIVE_ARRAY_BUFFER_VIEWS,gl=u.ArrayBuffer,vl=u.Int8Array,yl=!pl||!f((function(){vl(1)}))||!f((function(){new vl(-1)}))||!lo((function(e){new vl,new vl(null),new vl(1.5),new vl(e)}),!0)||f((function(){return 1!==new vl(new gl(2),1,void 0).length})),ml=RangeError,bl=function(e){if(void 0===e)return 0;var t=ut(e),r=pt(t);if(t!==r)throw ml("Wrong length or index");return r},wl=Array,xl=Math.abs,kl=Math.pow,_l=Math.floor,Il=Math.log,Ol=Math.LN2,Cl=function(e,t,r){var n,o,i,a=wl(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,f=23===t?kl(2,-24)-kl(2,-77):0,l=e<0||0===e&&1/e<0?1:0,d=0;for((e=xl(e))!=e||e===1/0?(o=e!=e?1:0,n=c):(n=_l(Il(e)/Ol),e*(i=kl(2,-n))<1&&(n--,i*=2),(e+=n+u>=1?f/i:f*kl(2,1-u))*i>=2&&(n++,i/=2),n+u>=c?(o=0,n=c):n+u>=1?(o=(e*i-1)*kl(2,t),n+=u):(o=e*kl(2,u-1)*kl(2,t),n=0));t>=8;)a[d++]=255&o,o/=256,t-=8;for(n=n<<t|o,s+=t;s>0;)a[d++]=255&n,n/=256,s-=8;return a[--d]|=128*l,a},Pl=function(e,t){var r,n=e.length,o=8*n-t-1,i=(1<<o)-1,a=i>>1,s=o-7,c=n-1,u=e[c--],f=127&u;for(u>>=7;s>0;)f=256*f+e[c--],s-=8;for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===f)f=1-a;else{if(f===i)return r?NaN:u?-1/0:1/0;r+=kl(2,t),f-=a}return(u?-1:1)*r*kl(2,f-t)},Sl=function(e){for(var t=ie(this),r=gt(t),n=arguments.length,o=dt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:dt(i,r);a>o;)t[o++]=e;return t},Tl=_t.f,zl=Re.f,Al=Be.PROPER,El=Be.CONFIGURABLE,jl=nt.get,Rl=nt.set,Ul=u.ArrayBuffer,ql=Ul,Ll=ql&&ql.prototype,Ml=u.DataView,Bl=Ml&&Ml.prototype,Fl=Object.prototype,Dl=u.Array,Nl=u.RangeError,Wl=_(Sl),Gl=_([].reverse),Vl=Cl,Hl=Pl,$l=function(e){return[255&e]},Yl=function(e){return[255&e,e>>8&255]},Jl=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Kl=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Ql=function(e){return Vl(e,23,4)},Xl=function(e){return Vl(e,52,8)},Zl=function(e,t){zl(e.prototype,t,{get:function(){return jl(this)[t]}})},ed=function(e,t,r,n){var o=bl(r),i=jl(e);if(o+t>i.byteLength)throw Nl("Wrong index");var a=jl(i.buffer).bytes,s=o+i.byteOffset,c=gi(a,s,s+t);return n?c:Gl(c)},td=function(e,t,r,n,o,i){var a=bl(r),s=jl(e);if(a+t>s.byteLength)throw Nl("Wrong index");for(var c=jl(s.buffer).bytes,u=a+s.byteOffset,f=n(+o),l=0;l<t;l++)c[u+l]=f[i?l:t-l-1]};if($f){var rd=Al&&"ArrayBuffer"!==Ul.name;if(f((function(){Ul(1)}))&&f((function(){new Ul(-1)}))&&!f((function(){return new Ul,new Ul(1.5),new Ul(NaN),rd&&!El})))rd&&El&&Ue(Ul,"name","ArrayBuffer");else{(ql=function(e){return er(this,Ll),new Ul(bl(e))}).prototype=Ll;for(var nd,od=Tl(Ul),id=0;od.length>id;)(nd=od[id++])in ql||Ue(ql,nd,Ul[nd]);Ll.constructor=ql}$t&&Za(Bl)!==Fl&&$t(Bl,Fl);var ad=new Ml(new ql(2)),sd=_(Bl.setInt8);ad.setInt8(0,2147483648),ad.setInt8(1,2147483649),!ad.getInt8(0)&&ad.getInt8(1)||nc(Bl,{setInt8:function(e,t){sd(this,e,t<<24>>24)},setUint8:function(e,t){sd(this,e,t<<24>>24)}},{unsafe:!0})}else Ll=(ql=function(e){er(this,Ll);var t=bl(e);Rl(this,{bytes:Wl(Dl(t),0),byteLength:t}),l||(this.byteLength=t)}).prototype,Bl=(Ml=function(e,t,r){er(this,Bl),er(e,Ll);var n=jl(e).byteLength,o=ut(t);if(o<0||o>n)throw Nl("Wrong offset");if(o+(r=void 0===r?n-o:pt(r))>n)throw Nl("Wrong length");Rl(this,{buffer:e,byteLength:r,byteOffset:o}),l||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,l&&(Zl(ql,"byteLength"),Zl(Ml,"buffer"),Zl(Ml,"byteLength"),Zl(Ml,"byteOffset")),nc(Bl,{getInt8:function(e){return ed(this,1,e)[0]<<24>>24},getUint8:function(e){return ed(this,1,e)[0]},getInt16:function(e){var t=ed(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ed(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Kl(ed(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Kl(ed(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Hl(ed(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Hl(ed(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){td(this,1,e,$l,t)},setUint8:function(e,t){td(this,1,e,$l,t)},setInt16:function(e,t){td(this,2,e,Yl,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){td(this,2,e,Yl,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){td(this,4,e,Jl,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){td(this,4,e,Jl,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){td(this,4,e,Ql,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){td(this,8,e,Xl,t,arguments.length>2?arguments[2]:void 0)}});Kt(ql,"ArrayBuffer"),Kt(Ml,"DataView");var cd={ArrayBuffer:ql,DataView:Ml},ud=Math.floor,fd=Number.isInteger||function(e){return!R(e)&&isFinite(e)&&ud(e)===e},ld=RangeError,dd=RangeError,hd=function(e,t){var r=function(e){var t=ut(e);if(t<0)throw ld("The argument can't be less than 0");return t}(e);if(r%t)throw dd("Wrong offset");return r},pd=hl.aTypedArrayConstructor,gd=function(e){var t,r,n,o,i,a,s=gr(this),c=ie(e),u=arguments.length,f=u>1?arguments[1]:void 0,l=void 0!==f,d=Zn(c);if(d&&!Qn(d))for(a=(i=to(c,d)).next,c=[];!(o=p(a,i)).done;)c.push(o.value);for(l&&u>2&&(f=_r(f,arguments[2])),r=gt(c),n=new(pd(s))(r),t=0;r>t;t++)n[t]=l?f(c[t],t):c[t];return n};i((function(e){var t=_t.f,r=Si.forEach,n=nt.get,o=nt.set,i=nt.enforce,a=Re.f,s=Ce.f,c=Math.round,f=u.RangeError,d=cd.ArrayBuffer,h=d.prototype,g=cd.DataView,v=hl.NATIVE_ARRAY_BUFFER_VIEWS,y=hl.TYPED_ARRAY_TAG,b=hl.TypedArray,w=hl.TypedArrayPrototype,x=hl.aTypedArrayConstructor,k=hl.isTypedArray,_=function(e,t){x(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},I=function(e,t){a(e,t,{get:function(){return n(this)[t]}})},O=function(e){var t;return L(h,e)||"ArrayBuffer"==(t=Nt(e))||"SharedArrayBuffer"==t},C=function(e,t){return k(e)&&!$(t)&&t in e&&fd(+t)&&t>=0},P=function(e,t){return t=we(t),C(e,t)?m(2,e[t]):s(e,t)},S=function(e,t,r){return t=we(t),!(C(e,t)&&R(r)&&se(r,"value"))||se(r,"get")||se(r,"set")||r.configurable||se(r,"writable")&&!r.writable||se(r,"enumerable")&&!r.enumerable?a(e,t,r):(e[t]=r.value,e)};l?(v||(Ce.f=P,Re.f=S,I(w,"buffer"),I(w,"byteOffset"),I(w,"byteLength"),I(w,"length")),qt({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:P,defineProperty:S}),e.exports=function(e,s,l){var h=e.match(/\d+$/)[0]/8,m=e+(l?"Clamped":"")+"Array",x="get"+e,I="set"+e,C=u[m],P=C,S=P&&P.prototype,T={},z=function(e,t){a(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[x](t*h+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=n(e);l&&(r=(r=c(r))<0?0:r>255?255:255&r),o.view[I](t*h+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};v?yl&&(P=s((function(e,t,r,n){return er(e,S),function(e,t,r){var n,o;return $t&&j(n=t.constructor)&&n!==r&&R(o=n.prototype)&&o!==r.prototype&&$t(e,o),e}(R(t)?O(t)?void 0!==n?new C(t,hd(r,h),n):void 0!==r?new C(t,hd(r,h)):new C(t):k(t)?_(P,t):p(gd,P,t):new C(bl(t)),e,P)})),$t&&$t(P,b),r(t(C),(function(e){e in P||Ue(P,e,C[e])})),P.prototype=S):(P=s((function(e,t,r,n){er(e,S);var i,a,s,c=0,u=0;if(R(t)){if(!O(t))return k(t)?_(P,t):p(gd,P,t);i=t,u=hd(r,h);var l=t.byteLength;if(void 0===n){if(l%h)throw f("Wrong length");if((a=l-u)<0)throw f("Wrong length")}else if((a=pt(n)*h)+u>l)throw f("Wrong length");s=a/h}else s=bl(t),i=new d(a=s*h);for(o(e,{buffer:i,byteOffset:u,byteLength:a,length:s,view:new g(i)});c<s;)z(e,c++)})),$t&&$t(P,b),S=P.prototype=li(w)),S.constructor!==P&&Ue(S,"constructor",P),i(S).TypedArrayConstructor=P,y&&Ue(S,y,m);var A=P!=C;T[m]=P,qt({global:!0,constructor:!0,forced:A,sham:!v},T),"BYTES_PER_ELEMENT"in P||Ue(P,"BYTES_PER_ELEMENT",h),"BYTES_PER_ELEMENT"in S||Ue(S,"BYTES_PER_ELEMENT",h),Xt(m)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var vd=TypeError,yd=function(e,t){if(!delete e[t])throw vd("Cannot delete property "+J(t)+" of "+J(e))},md=Math.min,bd=_([].copyWithin||function(e,t){var r=ie(this),n=gt(r),o=dt(e,n),i=dt(t,n),a=arguments.length>2?arguments[2]:void 0,s=md((void 0===a?n:dt(a,n))-i,n-o),c=1;for(i<o&&o<i+s&&(c=-1,i+=s-1,o+=s-1);s-- >0;)i in r?r[o]=r[i]:yd(r,o),o+=c,i+=c;return r}),wd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("copyWithin",(function(e,t){return bd(wd(this),e,t,arguments.length>2?arguments[2]:void 0)}));var xd=Si.every,kd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("every",(function(e){return xd(kd(this),e,arguments.length>1?arguments[1]:void 0)}));var _d=TypeError,Id=function(e){var t=be(e,"number");if("number"==typeof t)throw _d("Can't convert number to bigint");return BigInt(t)},Od=hl.aTypedArray,Cd=hl.exportTypedArrayMethod,Pd=_("".slice);Cd("fill",(function(e){var t=arguments.length;Od(this);var r="Big"===Pd(Nt(this),0,3)?Id(e):+e;return p(Sl,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),f((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var Sd=hl.aTypedArrayConstructor,Td=hl.getTypedArrayConstructor,zd=function(e){return Sd(yr(e,Td(e)))},Ad=function(e,t){return function(e,t){for(var r=0,n=gt(t),o=new e(n);n>r;)o[r]=t[r++];return o}(zd(e),t)},Ed=Si.filter,jd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("filter",(function(e){var t=Ed(jd(this),e,arguments.length>1?arguments[1]:void 0);return Ad(this,t)}));var Rd=Si.find,Ud=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("find",(function(e){return Rd(Ud(this),e,arguments.length>1?arguments[1]:void 0)}));var qd=Si.findIndex,Ld=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("findIndex",(function(e){return qd(Ld(this),e,arguments.length>1?arguments[1]:void 0)}));var Md=Si.forEach,Bd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("forEach",(function(e){Md(Bd(this),e,arguments.length>1?arguments[1]:void 0)}));var Fd=yt.includes,Dd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("includes",(function(e){return Fd(Dd(this),e,arguments.length>1?arguments[1]:void 0)}));var Nd=yt.indexOf,Wd=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("indexOf",(function(e){return Nd(Wd(this),e,arguments.length>1?arguments[1]:void 0)}));var Gd=ve("iterator"),Vd=u.Uint8Array,Hd=_(vs.values),$d=_(vs.keys),Yd=_(vs.entries),Jd=hl.aTypedArray,Kd=hl.exportTypedArrayMethod,Qd=Vd&&Vd.prototype,Xd=!f((function(){Qd[Gd].call([1])})),Zd=!!Qd&&Qd.values&&Qd[Gd]===Qd.values&&"values"===Qd.values.name,eh=function(){return Hd(Jd(this))};Kd("entries",(function(){return Yd(Jd(this))}),Xd),Kd("keys",(function(){return $d(Jd(this))}),Xd),Kd("values",eh,Xd||!Zd,{name:"values"}),Kd(Gd,eh,Xd||!Zd,{name:"values"});var th=hl.aTypedArray,rh=hl.exportTypedArrayMethod,nh=_([].join);rh("join",(function(e){return nh(th(this),e)}));var oh=Math.min,ih=[].lastIndexOf,ah=!!ih&&1/[1].lastIndexOf(1,-0)<0,sh=Ta("lastIndexOf"),ch=ah||!sh?function(e){if(ah)return xr(ih,this,arguments)||0;var t=E(this),r=gt(t),n=r-1;for(arguments.length>1&&(n=oh(n,ut(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:ih,uh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return xr(ch,uh(this),t>1?[e,arguments[1]]:[e])}));var fh=Si.map,lh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("map",(function(e){return fh(lh(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(zd(e))(t)}))}));var dh=TypeError,hh=function(e){return function(t,r,n,o){Q(r);var i=ie(t),a=T(i),s=gt(i),c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw dh("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(o=r(o,a[c],c,i));return o}},ph={left:hh(!1),right:hh(!0)},gh=ph.left,vh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return gh(vh(this),e,t,t>1?arguments[1]:void 0)}));var yh=ph.right,mh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return yh(mh(this),e,t,t>1?arguments[1]:void 0)}));var bh=hl.aTypedArray,wh=hl.exportTypedArrayMethod,xh=Math.floor;wh("reverse",(function(){for(var e,t=bh(this).length,r=xh(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}));var kh=u.RangeError,_h=u.Int8Array,Ih=_h&&_h.prototype,Oh=Ih&&Ih.set,Ch=hl.aTypedArray,Ph=hl.exportTypedArrayMethod,Sh=!f((function(){var e=new Uint8ClampedArray(2);return p(Oh,e,{length:1,0:3},1),3!==e[1]})),Th=Sh&&hl.NATIVE_ARRAY_BUFFER_VIEWS&&f((function(){var e=new _h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Ph("set",(function(e){Ch(this);var t=hd(arguments.length>1?arguments[1]:void 0,1),r=ie(e);if(Sh)return p(Oh,this,r,t);var n=this.length,o=gt(r),i=0;if(o+t>n)throw kh("Wrong length");for(;i<o;)this[t+i]=r[i++]}),!Sh||Th);var zh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("slice",(function(e,t){for(var r=Or(zh(this),e,t),n=zd(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),f((function(){new Int8Array(1).slice()})));var Ah=Si.some,Eh=hl.aTypedArray;(0,hl.exportTypedArrayMethod)("some",(function(e){return Ah(Eh(this),e,arguments.length>1?arguments[1]:void 0)}));var jh=M.match(/firefox\/(\d+)/i),Rh=!!jh&&+jh[1],Uh=/MSIE|Trident/.test(M),qh=M.match(/AppleWebKit\/(\d+)\./),Lh=!!qh&&+qh[1],Mh=hl.aTypedArray,Bh=hl.exportTypedArrayMethod,Fh=u.Uint16Array,Dh=Fh&&_(Fh.prototype.sort),Nh=!(!Dh||f((function(){Dh(new Fh(2),null)}))&&f((function(){Dh(new Fh(2),{})}))),Wh=!!Dh&&!f((function(){if(W)return W<74;if(Rh)return Rh<67;if(Uh)return!0;if(Lh)return Lh<602;var e,t,r=new Fh(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(Dh(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));Bh("sort",(function(e){return void 0!==e&&Q(e),Wh?Dh(this,e):cc(Mh(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Wh||Nh);var Gh=u.Int8Array,Vh=hl.aTypedArray,Hh=hl.exportTypedArrayMethod,$h=[].toLocaleString,Yh=!!Gh&&f((function(){$h.call(new Gh(1))}));Hh("toLocaleString",(function(){return xr($h,Yh?Or(Vh(this)):Vh(this),Or(arguments))}),f((function(){return[1,2].toLocaleString()!=new Gh([1,2]).toLocaleString()}))||!f((function(){Gh.prototype.toLocaleString.call([1,2])})));var Jh=hl.exportTypedArrayMethod,Kh=u.Uint8Array,Qh=Kh&&Kh.prototype||{},Xh=[].toString,Zh=_([].join);f((function(){Xh.call({})}))&&(Xh=function(){return Zh(this)});var ep=Qh.toString!=Xh;Jh("toString",Xh,ep);var tp=ks.charAt,rp=function(e,t,r){return t+(r?tp(e,t).length:1)},np=Math.floor,op=_("".charAt),ip=_("".replace),ap=_("".slice),sp=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cp=/\$([$&'`]|\d{1,2})/g,up=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=cp;return void 0!==o&&(o=ie(o),c=sp),ip(i,c,(function(i,c){var u;switch(op(c,0)){case"$":return"$";case"&":return e;case"`":return ap(t,0,r);case"'":return ap(t,a);case"<":u=o[ap(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>s){var l=np(f/10);return 0===l?i:l<=s?void 0===n[l-1]?op(c,1):n[l-1]+op(c,1):i}u=n[f-1]}return void 0===u?"":u}))},fp=ve("replace"),lp=Math.max,dp=Math.min,hp=_([].concat),pp=_([].push),gp=_("".indexOf),vp=_("".slice),yp="$0"==="a".replace(/./,"$0"),mp=!!/./[fp]&&""===/./[fp]("a","$0");Mf("replace",(function(e,t,r){var n=mp?"$":"$0";return[function(e,r){var n=A(this),o=null==e?void 0:X(e,fp);return o?p(o,e,n,r):p(t,oi(n),e,r)},function(e,o){var i=ze(this),a=oi(e);if("string"==typeof o&&-1===gp(o,n)&&-1===gp(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=j(o);c||(o=oi(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Df(i,a);if(null===d)break;if(pp(l,d),!u)break;""===oi(d[0])&&(i.lastIndex=rp(a,pt(i.lastIndex),f))}for(var h,p="",g=0,v=0;v<l.length;v++){for(var y=oi((d=l[v])[0]),m=lp(dp(ut(d.index),a.length),0),b=[],w=1;w<d.length;w++)pp(b,void 0===(h=d[w])?h:String(h));var x=d.groups;if(c){var k=hp([y],b,m,a);void 0!==x&&pp(k,x);var _=oi(xr(o,void 0,k))}else _=up(y,a,m,b,x,o);m>=g&&(p+=vp(a,g,m)+_,g=m+y.length)}return p+vp(a,g)}]}),!!f((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!yp||mp),qt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return ao(e,(function(e,r){di(t,e,r)}),{AS_ENTRIES:!0}),t}});var bp=TypeError,wp=function(e){if(e>9007199254740991)throw bp("Maximum allowed index exceeded");return e},xp=ve("isConcatSpreadable"),kp=W>=51||!f((function(){var e=[];return e[xp]=!1,e.concat()[0]!==e})),_p=wa("concat"),Ip=function(e){if(!R(e))return!1;var t=e[xp];return void 0!==t?!!t:ki(e)};function Op(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Cp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sp(e){return function(e){if(Array.isArray(e))return Pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}qt({target:"Array",proto:!0,arity:1,forced:!kp||!_p},{concat:function(e){var t,r,n,o,i,a=ie(this),s=Oi(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Ip(i=-1===t?a:arguments[t]))for(o=gt(i),wp(c+o),r=0;r<o;r++,c++)r in i&&di(s,c,i[r]);else wp(c+1),di(s,c++,i);return s.length=c,s}});var Tp,zp=ve("match"),Ap=function(e){var t;return R(e)&&(void 0!==(t=e[zp])?!!t:"RegExp"==C(e))},Ep=TypeError,jp=function(e){if(Ap(e))throw Ep("The method doesn't accept regular expressions");return e},Rp=ve("match"),Up=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Rp]=!1,"/./"[e](t)}catch(e){}}return!1},qp=Ce.f,Lp=_("".startsWith),Mp=_("".slice),Bp=Math.min,Fp=Up("startsWith"),Dp=!(Fp||(Tp=qp(String.prototype,"startsWith"),!Tp||Tp.writable));function Np(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gp(e,t,r){return t&&Wp(e.prototype,t),r&&Wp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(r),!0).forEach((function(t){Cp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}qt({target:"String",proto:!0,forced:!Dp&&!Fp},{startsWith:function(e){var t=oi(A(this));jp(e);var r=pt(Bp(arguments.length>1?arguments[1]:void 0,t.length)),n=oi(e);return Lp?Lp(t,n,r):Mp(t,r,r+n.length)===n}});var $p=Gp((function e(t){if(Np(this,e),Cp(this,"baseUri",void 0),Cp(this,"proxy",void 0),Cp(this,"headers",void 0),Cp(this,"parameters",void 0),Cp(this,"fetchOptions",void 0),Cp(this,"fetch",void 0),Cp(this,"transformRequest",void 0),Cp(this,"throwOnBadResponse",void 0),this.headers=Hp({},t.headers),this.parameters=Hp({},t.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=Hp({credentials:"omit"},t.fetchOptions),this.transformRequest=t.transformRequest||e.defaults.transformRequest,this.fetch=t.fetch,t.baseUri&&(this.baseUri=t.baseUri),t.proxy&&(this.proxy=t.proxy),this.throwOnBadResponse=!!t.throwOnBadResponse}));Cp($p,"defaults",{transformRequest:function(e,t){switch(t["Content-Type"]){case"application/json":return JSON.stringify(e);case"application/x-www-form-urlencoded":return new URLSearchParams(e);default:return e}}});var Yp=Function,Jp=_([].concat),Kp=_([].join),Qp={},Xp=function(e,t,r){if(!se(Qp,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";Qp[t]=Yp("C,a","return new C("+Kp(n,",")+")")}return Qp[t](e,r)},Zp=d?Yp.bind:function(e){var t=Q(this),r=t.prototype,n=Or(arguments,1),o=function(){var r=Jp(n,Or(arguments));return this instanceof o?Xp(t,r.length,r):t.apply(e,r)};return R(r)&&(o.prototype=r),o},eg=q("Reflect","construct"),tg=Object.prototype,rg=[].push,ng=f((function(){function e(){}return!(eg((function(){}),[],e)instanceof e)})),og=!f((function(){eg((function(){}))})),ig=ng||og;function ag(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(e,t){return(sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cg(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sg(e,t)}function ug(e,t){if(t&&("object"===wo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ag(e)}function fg(e){return(fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function dg(e,t,r){return(dg=lg()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&sg(o,r.prototype),o}).apply(null,arguments)}function hg(e){var t="function"==typeof Map?new Map:void 0;return(hg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return dg(e,arguments,fg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sg(n,e)})(e)}function pg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=fg(e);if(t){var o=fg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ug(this,r)}}qt({target:"Reflect",stat:!0,forced:ig,sham:ig},{construct:function(e,t){gr(e),ze(t);var r=arguments.length<3?e:gr(arguments[2]);if(og&&!ng)return eg(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return xr(rg,n,t),new(xr(Zp,e,n))}var o=r.prototype,i=li(R(o)?o:tg),a=xr(e,i,t);return R(a)?a:i}});var gg=function(e){cg(r,hg(Error));var t=pg(r);function r(e){var n;return Np(this,r),Cp(ag(n=t.call(this,"".concat(e.status," ").concat(e.statusText))),"response",void 0),n.response=e,n}return Gp(r)}();function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(r),!0).forEach((function(t){Cp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mg=function(){var e=bo(Yo.mark((function e(t,r,n,o){var i,a,s,c,u,f;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=yg(yg({},null==n?void 0:n.headers),null==r?void 0:r.headers),s=yg(yg({},null==n?void 0:n.fetchOptions),{},{headers:a,body:null==r?void 0:r.body,method:null!==(i=null==r?void 0:r.method)&&void 0!==i?i:"GET"}),c=(null==n?void 0:n.fetch)||Zo,e.next=5,c(t,s);case 5:if(u=e.sent,!o){e.next=8;break}return e.abrupt("return",u);case 8:if(null==n||!n.throwOnBadResponse||u.ok||304===u.status){e.next=12;break}throw new gg(u);case 12:return e.next=14,u.text();case 14:return f=e.sent,e.abrupt("return",f?JSON.parse(f):{});case 16:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}();function bg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=fg(e);if(t){var o=fg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ug(this,r)}}Mf("match",(function(e,t,r){return[function(t){var r=A(this),n=null==t?void 0:X(t,e);return n?p(n,t,r):new RegExp(t)[e](oi(r))},function(e){var n=ze(this),o=oi(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return Df(n,o);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=Df(n,o));){var f=oi(s[0]);c[u]=f,""===f&&(n.lastIndex=rp(o,pt(n.lastIndex),a)),u++}return 0===u?null:c}]}));var wg=function(e){cg(r,hg(URL));var t=bg(r);function r(e,n,o){var i;Np(this,r);var a={};return Object.keys((null==o?void 0:o.pathParams)||{}).forEach((function(e){var t,r=null==o||null===(t=o.pathParams)||void 0===t?void 0:t[e];r&&(a[e]=encodeURIComponent(r))})),(i=t.call(this,r.renderTemplateUri("".concat(n,"/").concat(e).replace(/\/\/+/g,"/"),a))).addQueryParams(null==o?void 0:o.queryParams),null!=o&&o.origin&&i.replaceOrigin(null==o?void 0:o.origin),i}return Gp(r,[{key:"replaceOrigin",value:function(e){var t=new URL(e);this.protocol=t.protocol,this.host=t.host,this.pathname="".concat(t.pathname,"/").concat(this.pathname).replace(/\/\/+/g,"/")}},{key:"addQueryParams",value:function(e){var t=this;e&&Object.keys(e).forEach((function(r){var n=e[r];if(Array.isArray(n))if("refine"===r)for(var o=0;o<n.length;o+=1)t.searchParams.append(r,String(n[o]));else t.searchParams.append(r,n.join());else t.searchParams.append(r,String(n))}))}}],[{key:"renderTemplateUri",value:function(e,t){var r=t?e.replace(/\{([^\}]+)\}/g,(function(e,r){return String(t[r])})):e,n=/(\.|%2e|%2E|%252e|%252E)+(\/|%2f|%2F|%252f|%252F)+/g;return r.match(n)&&(console.warn("Path traversal attempt detected. Normalizing url"),r=r.replace(n,"")),r}}]),r}(),xg="commerce-sdk-isomorphic@4.1.0";function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kg(Object(r),!0).forEach((function(t){Cp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ig=function(){function e(t){Np(this,e),Cp(this,"clientConfig",void 0);var r=_g({},t);r.baseUri||(r.baseUri=(this instanceof e?this.constructor:void 0).defaultBaseUri),this.clientConfig=new $p(r)}var t,r,n,o,i,a,s,c,u,f,l,d,h,p,g,v;return Gp(e,[{key:"authenticateCustomer",value:(v=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authenticateCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"authorizeCustomer",value:(g=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.redirect_uri){e.next=17;break}a.redirect_uri=n.redirect_uri,e.next=22;break;case 17:if(void 0===o.redirect_uri){e.next=21;break}a.redirect_uri=o.redirect_uri,e.next=22;break;case 21:throw new Error("Missing required query parameter: redirect_uri");case 22:if(void 0===n.response_type){e.next=26;break}a.response_type=n.response_type,e.next=31;break;case 26:if(void 0===o.response_type){e.next=30;break}a.response_type=o.response_type,e.next=31;break;case 30:throw new Error("Missing required query parameter: response_type");case 31:if(void 0===n.client_id){e.next=35;break}a.client_id=n.client_id,e.next=40;break;case 35:if(void 0===o.client_id){e.next=39;break}a.client_id=o.client_id,e.next=40;break;case 39:throw new Error("Missing required query parameter: client_id");case 40:return void 0!==n.scope?a.scope=n.scope:void 0!==o.scope&&(a.scope=o.scope),void 0!==n.state?a.state=n.state:void 0!==o.state&&(a.state=o.state),void 0!==n.usid?a.usid=n.usid:void 0!==o.usid&&(a.usid=o.usid),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==o.code_challenge&&(a.code_challenge=o.code_challenge),void 0!==n.ui_locales?a.ui_locales=n.ui_locales:void 0!==o.ui_locales&&(a.ui_locales=o.ui_locales),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizeCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=53,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 53:if(u=e.sent,!r){e.next=56;break}return e.abrupt("return",u);case 56:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"authorizePasswordlessCustomer",value:(p=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizePasswordlessCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/passwordless/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getAccessToken",value:(h=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"getJwksUri",value:(d=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getJwksUri: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/jwks",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"getPasswordLessAccessToken",value:function(){var e=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordLessAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/passwordless/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getPasswordResetToken",value:(l=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordResetToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/password/reset",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"getSessionBridgeAccessToken",value:(f=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getSessionBridgeAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/session-bridge/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"getTrustedAgentAccessToken",value:(u=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-agent/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"getTrustedAgentAuthorizationToken",value:(c=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===o.client_id){e.next=21;break}a.client_id=o.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.channel_id){e.next=26;break}a.channel_id=n.channel_id,e.next=31;break;case 26:if(void 0===o.channel_id){e.next=30;break}a.channel_id=o.channel_id,e.next=31;break;case 30:throw new Error("Missing required query parameter: channel_id");case 31:if(void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==o.code_challenge&&(a.code_challenge=o.code_challenge),void 0===n.login_id){e.next=36;break}a.login_id=n.login_id,e.next=41;break;case 36:if(void 0===o.login_id){e.next=40;break}a.login_id=o.login_id,e.next=41;break;case 40:throw new Error("Missing required query parameter: login_id");case 41:if(void 0===n.idp_origin){e.next=45;break}a.idp_origin=n.idp_origin,e.next=50;break;case 45:if(void 0===o.idp_origin){e.next=49;break}a.idp_origin=o.idp_origin,e.next=50;break;case 49:throw new Error("Missing required query parameter: idp_origin");case 50:if(void 0===n.redirect_uri){e.next=54;break}a.redirect_uri=n.redirect_uri,e.next=59;break;case 54:if(void 0===o.redirect_uri){e.next=58;break}a.redirect_uri=o.redirect_uri,e.next=59;break;case 58:throw new Error("Missing required query parameter: redirect_uri");case 59:if(void 0===n.response_type){e.next=63;break}a.response_type=n.response_type,e.next=68;break;case 63:if(void 0===o.response_type){e.next=67;break}a.response_type=o.response_type,e.next=68;break;case 67:throw new Error("Missing required query parameter: response_type");case 68:return Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAuthorizationToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-agent/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=74,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 74:if(u=e.sent,!r){e.next=77;break}return e.abrupt("return",u);case 77:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getTrustedSystemAccessToken",value:(s=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedSystemAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-system/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"getUserInfo",value:(a=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getUserInfo: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/userinfo",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=20,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 20:return u=e.sent,e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getWellknownOpenidConfiguration",value:(i=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getWellknownOpenidConfiguration: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/.well-known/openid-configuration",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"introspectToken",value:(o=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for introspectToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/introspect",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"logoutCustomer",value:(n=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===o.client_id){e.next=21;break}a.client_id=o.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.refresh_token){e.next=26;break}a.refresh_token=n.refresh_token,e.next=31;break;case 26:if(void 0===o.refresh_token){e.next=30;break}a.refresh_token=o.refresh_token,e.next=31;break;case 30:throw new Error("Missing required query parameter: refresh_token");case 31:return void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for logoutCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/logout",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=39,mg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 39:return u=e.sent,e.abrupt("return",u);case 41:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"resetPassword",value:(r=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for resetPassword: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/password/action",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"revokeToken",value:(t=bo(Yo.mark((function e(t,r){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for revokeToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/revoke",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Jo||(c["user-agent"]=[c["user-agent"],xg].join(" ")),e.next=19,mg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();Cp(Ig,"defaultBaseUri","https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1"),Cp(Ig,"apiPaths",{authenticateCustomer:"/organizations/{organizationId}/oauth2/login",authorizeCustomer:"/organizations/{organizationId}/oauth2/authorize",authorizePasswordlessCustomer:"/organizations/{organizationId}/oauth2/passwordless/login",getAccessToken:"/organizations/{organizationId}/oauth2/token",getJwksUri:"/organizations/{organizationId}/oauth2/jwks",getPasswordLessAccessToken:"/organizations/{organizationId}/oauth2/passwordless/token",getPasswordResetToken:"/organizations/{organizationId}/oauth2/password/reset",getSessionBridgeAccessToken:"/organizations/{organizationId}/oauth2/session-bridge/token",getTrustedAgentAccessToken:"/organizations/{organizationId}/oauth2/trusted-agent/token",getTrustedAgentAuthorizationToken:"/organizations/{organizationId}/oauth2/trusted-agent/authorize",getTrustedSystemAccessToken:"/organizations/{organizationId}/oauth2/trusted-system/token",getUserInfo:"/organizations/{organizationId}/oauth2/userinfo",getWellknownOpenidConfiguration:"/organizations/{organizationId}/oauth2/.well-known/openid-configuration",introspectToken:"/organizations/{organizationId}/oauth2/introspect",logoutCustomer:"/organizations/{organizationId}/oauth2/logout",resetPassword:"/organizations/{organizationId}/oauth2/password/action",revokeToken:"/organizations/{organizationId}/oauth2/revoke"}),Cp(Ig,"paramKeys",{authenticateCustomer:["organizationId","redirect_uri","channel_id","client_id","response_type","state","scope","usid","code_challenge"],authenticateCustomerRequired:["organizationId","redirect_uri","channel_id"],authorizeCustomer:["organizationId","redirect_uri","response_type","client_id","scope","state","usid","hint","channel_id","code_challenge","ui_locales"],authorizeCustomerRequired:["organizationId","redirect_uri","response_type","client_id"],authorizePasswordlessCustomer:["organizationId","user_id","mode","channel_id","locale","usid","callback_uri"],authorizePasswordlessCustomerRequired:["organizationId","user_id","mode","channel_id"],getAccessToken:["organizationId","grant_type","refresh_token","code","usid","redirect_uri","code_verifier","client_id","channel_id","dnt"],getAccessTokenRequired:["organizationId","grant_type"],getJwksUri:["organizationId"],getJwksUriRequired:["organizationId"],getPasswordLessAccessToken:["organizationId","grant_type","hint","pwdless_login_token","client_id","code_verifier"],getPasswordLessAccessTokenRequired:["organizationId","grant_type","hint","pwdless_login_token"],getPasswordResetToken:["organizationId","user_id","mode","channel_id","locale","client_id","code_challenge","callback_uri","idp_name","hint"],getPasswordResetTokenRequired:["organizationId","user_id","mode","channel_id"],getSessionBridgeAccessToken:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id","dwsgst","dwsrst","usid","dnt"],getSessionBridgeAccessTokenRequired:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id"],getTrustedAgentAccessToken:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin","agent_id","usid","dnt","state"],getTrustedAgentAccessTokenRequired:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin"],getTrustedAgentAuthorizationToken:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type","code_challenge"],getTrustedAgentAuthorizationTokenRequired:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type"],getTrustedSystemAccessToken:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id","usid","email_id","dnt"],getTrustedSystemAccessTokenRequired:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id"],getUserInfo:["organizationId","channel_id"],getUserInfoRequired:["organizationId"],getWellknownOpenidConfiguration:["organizationId"],getWellknownOpenidConfigurationRequired:["organizationId"],introspectToken:["organizationId","token","token_type_hint"],introspectTokenRequired:["organizationId","token"],logoutCustomer:["organizationId","client_id","refresh_token","channel_id","hint"],logoutCustomerRequired:["organizationId","client_id","refresh_token"],resetPassword:["organizationId","client_id","pwd_action_token","code_verifier","channel_id","new_password","hint"],resetPasswordRequired:["organizationId","client_id","pwd_action_token","code_verifier","channel_id"],revokeToken:["organizationId","token","token_type_hint"],revokeTokenRequired:["organizationId","token"]});var Og=["hint","redirectURI","usid"],Cg=["hint","redirectURI","usid"],Pg=["dnt","redirectURI","usid"];function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sg(Object(r),!0).forEach((function(t){Cp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zg=Jo?btoa:function(e){return Buffer.from(e).toString("base64")},Ag=function(e){var t,r,n=new URL(e),o=new URLSearchParams(n.search),i=null!==(t=o.get("usid"))&&void 0!==t?t:"";return{code:null!==(r=o.get("code"))&&void 0!==r?r:"",usid:i}},Eg=function(){return t=n.default(String(+new Date),{entropy:!0}),e.customRandom(e.urlAlphabet,128,(function(e){return new Uint8Array(e).map((function(){return 256*t()}))}))();var t},jg=function(){var e=bo(Yo.mark((function e(t){var n,o,i,a,s,c,u;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},o="",!Jo||!window.crypto){e.next=12;break}return i=new TextEncoder,a=i.encode(t),e.next=7,window.crypto.subtle.digest("SHA-256",a);case 7:s=e.sent,c=btoa(String.fromCharCode.apply(String,Sp(new Uint8Array(s)))),o=n(c),e.next=16;break;case 12:return e.next=14,Promise.resolve().then((function(){return r(require("crypto"))}));case 14:u=e.sent,o=n(u.default.createHash("sha256").update(t).digest("base64"));case 16:if(0!==o.length){e.next=18;break}throw new Error("Problem generating code challenge");case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Rg(e){return Ug.apply(this,arguments)}function Ug(){return(Ug=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g,v,y;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.slasClient,o=t.codeVerifier,i=t.parameters,a=t.privateClient,s={},void 0!==a&&a){e.next=6;break}return e.next=5,jg(o);case 5:s.codeChallenge=e.sent;case 6:return(c=new Ig(n.clientConfig)).clientConfig.fetchOptions=Tg(Tg({},n.clientConfig.fetchOptions),{},{redirect:Jo?"follow":"manual"}),u=i.hint,f=i.redirectURI,l=i.usid,d=Op(i,Og),h={parameters:Tg(Tg(Tg(Tg({},d),{},{client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId},s.codeChallenge&&{code_challenge:s.codeChallenge}),u&&{hint:u}),{},{organizationId:n.clientConfig.parameters.organizationId,redirect_uri:f,response_type:"code"},l&&{usid:l})},e.next=12,c.authorizeCustomer(h,!0);case 12:if(p=e.sent,g=(null===(r=p.headers)||void 0===r?void 0:r.get("location"))||p.url,v=new URL(g),y=Object.fromEntries(v.searchParams.entries()),!(p.status>=400||y.error)){e.next=18;break}throw new gg(p);case 18:return e.abrupt("return",Tg({url:g},Ag(g)));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qg(){return(qg=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,o=t.privateClient,i=void 0!==o&&o,a=n.hint,s=n.redirectURI,c=n.usid,u=Op(n,Cg),f=Eg(),l={},i){e.next=8;break}return e.next=7,jg(f);case 7:l.codeChallenge=e.sent;case 8:return d=Ig.apiPaths.authorizeCustomer,h={organizationId:r.clientConfig.parameters.organizationId,shortCode:r.clientConfig.parameters.shortCode},p=Tg(Tg(Tg({},u),{},{client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId},l.codeChallenge&&{code_challenge:l.codeChallenge}),{},{hint:a,redirect_uri:s,response_type:"code"},c&&{usid:c}),g=new wg(d,r.clientConfig.baseUri,{pathParams:h,queryParams:p,origin:r.clientConfig.proxy}),e.abrupt("return",{url:g.toString(),codeVerifier:f});case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lg(){return(Lg=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,i=!!n.clientSecret,a=Tg(Tg(Tg({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:o.code,organizationId:r.clientConfig.parameters.organizationId},!i&&n.codeVerifier&&{code_verifier:n.codeVerifier}),{},{grant_type:i?"authorization_code":"authorization_code_pkce",redirect_uri:o.redirectURI},void 0!==o.dnt&&{dnt:o.dnt.toString()}),o.usid&&{usid:o.usid}),!n.clientSecret){e.next=7;break}return s="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),c={headers:{Authorization:s},body:a},e.abrupt("return",r.getAccessToken(c));case 7:return e.abrupt("return",r.getAccessToken({body:a}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mg(){return(Mg=bo(Yo.mark((function e(t){var r,n,o,i,a;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,o=t.credentials,r.clientConfig.parameters.siteId){e.next=3;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 3:return i="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(o.clientSecret))),a={headers:{Authorization:i},body:Tg(Tg({grant_type:"client_credentials",channel_id:r.clientConfig.parameters.siteId},n.usid&&{usid:n.usid}),void 0!==n.dnt&&{dnt:n.dnt.toString()})},e.abrupt("return",r.getAccessToken(a));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bg(){return(Bg=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c,u,f;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.slasClient,n=t.parameters,o=Eg(),i=n.dnt,a=n.redirectURI,s=n.usid,c=Op(n,Pg),e.next=5,Rg({slasClient:r,codeVerifier:o,parameters:Tg(Tg({},c),{},{redirectURI:a,hint:"guest"},s&&{usid:s}),privateClient:!1});case 5:return u=e.sent,f=Tg({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:u.code,code_verifier:o,grant_type:"authorization_code_pkce",redirect_uri:a,usid:u.usid},void 0!==i&&{dnt:i.toString()}),e.abrupt("return",r.getAccessToken({body:f}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fg(){return(Fg=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g,v,y,m,b,w,x,k;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slasClient,o=t.credentials,i=t.parameters,a=t.body,s=Eg(),e.next=4,jg(s);case 4:return c=e.sent,(u=new Ig(n.clientConfig)).clientConfig.fetchOptions=Tg(Tg({},n.clientConfig.fetchOptions),{},{redirect:Jo?"follow":"manual"}),f="Basic ".concat(zg("".concat(o.username,":").concat(o.password))),l=i.dnt,d=i.usid,h=i.redirectURI,p={headers:{Authorization:f},parameters:{organizationId:n.clientConfig.parameters.organizationId},body:Tg(Tg({},a||{}),{},{redirect_uri:h,client_id:n.clientConfig.parameters.clientId,code_challenge:c,channel_id:n.clientConfig.parameters.siteId},d&&{usid:d})},e.next=12,u.authenticateCustomer(p,!0);case 12:if(g=e.sent,v=(null===(r=g.headers)||void 0===r?void 0:r.get("location"))||g.url,y=new URL(v),m=Object.fromEntries(y.searchParams.entries()),!(g.status>=400||m.error)){e.next=18;break}throw new gg(g);case 18:if(b=Ag(v),w=Tg({client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId,code:b.code,code_verifier:s,grant_type:"authorization_code_pkce",organizationId:n.clientConfig.parameters.organizationId,redirect_uri:i.redirectURI,usid:b.usid},void 0!==l&&{dnt:l.toString()}),!o.clientSecret){e.next=24;break}return x="Basic ".concat(zg("".concat(n.clientConfig.parameters.clientId,":").concat(o.clientSecret))),k={headers:{Authorization:x},body:w},e.abrupt("return",n.getAccessToken(k));case 24:return e.abrupt("return",n.getAccessToken({body:w}));case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dg(){return(Dg=bo(Yo.mark((function e(t){var r,n,o,i,a;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.siteId){e.next=5;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 5:if(o.mode){e.next=7;break}throw new Error("Required argument mode is not provided through parameters");case 7:if(o.userid){e.next=9;break}throw new Error("Required argument userid is not provided through parameters");case 9:return i="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),a=Tg(Tg(Tg({user_id:o.userid,mode:o.mode},o.locale&&{locale:o.locale}),o.usid&&{usid:o.usid}),{},{channel_id:r.clientConfig.parameters.siteId},o.callbackURI&&{callback_uri:o.callbackURI}),e.abrupt("return",r.authorizePasswordlessCustomer({headers:{Authorization:i},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:a},!0));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ng(){return(Ng=bo(Yo.mark((function e(t){var r,n,o,i,a,s;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,o=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.organizationId){e.next=5;break}throw new Error("Required argument organizationId is not provided through clientConfig.parameters.organizationId");case 5:if(o.pwdlessLoginToken){e.next=7;break}throw new Error("Required argument pwdlessLoginToken is not provided through parameters");case 7:return i=Eg(),a="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),s=Tg({grant_type:"client_credentials",hint:"pwdless_login",pwdless_login_token:o.pwdlessLoginToken,code_verifier:i},o.dnt&&{dnt:o.dnt}),e.abrupt("return",r.getPasswordLessAccessToken({headers:{Authorization:a},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:s}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wg=Si.find,Gg=!0;"find"in[]&&Array(1).find((function(){Gg=!1})),qt({target:"Array",proto:!0,forced:Gg},{find:function(e){return Wg(this,e,arguments.length>1?arguments[1]:void 0)}}),Ya("find");var Vg=yt.includes,Hg=f((function(){return!Array(1).includes()}));qt({target:"Array",proto:!0,forced:Hg},{includes:function(e){return Vg(this,e,arguments.length>1?arguments[1]:void 0)}}),Ya("includes");var $g=_("".indexOf);qt({target:"String",proto:!0,forced:!Up("includes")},{includes:function(e){return!!~$g(oi(A(this)),oi(jp(e)),arguments.length>1?arguments[1]:void 0)}});var Yg=bf.UNSUPPORTED_Y,Jg=Math.min,Kg=[].push,Qg=_(/./.exec),Xg=_(Kg),Zg=_("".slice);Mf("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=oi(A(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===e)return[n];if(!Ap(e))return p(t,n,e,o);for(var i,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,l=new RegExp(e.source,u+"g");(i=p(Uf,l,n))&&!((a=l.lastIndex)>f&&(Xg(c,Zg(n,f,i.index)),i.length>1&&i.index<n.length&&xr(Kg,c,gi(i,1)),s=i[0].length,f=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===n.length?!s&&Qg(l,"")||Xg(c,""):Xg(c,Zg(n,f)),c.length>o?gi(c,0,o):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:p(t,this,e,r)}:t,[function(t,r){var o=A(this),i=null==t?void 0:X(t,e);return i?p(i,t,o,r):p(n,oi(o),t,r)},function(e,o){var i=ze(this),a=oi(e),s=r(n,i,a,o,n!==t);if(s.done)return s.value;var c=yr(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Yg?"g":"y"),l=new c(Yg?"^(?:"+i.source+")":i,f),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Df(l,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){l.lastIndex=Yg?0:p;var v,y=Df(l,Yg?Zg(a,p):a);if(null===y||(v=Jg(pt(l.lastIndex+(Yg?p:0)),a.length))===h)p=rp(a,p,u);else{if(Xg(g,Zg(a,h,p)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Xg(g,y[m]),g.length===d)return g;p=h=v}}return Xg(g,Zg(a,h)),g}]}),!!f((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Yg);var ev=wa("slice"),tv=ve("species"),rv=Array,nv=Math.max;qt({target:"Array",proto:!0,forced:!ev},{slice:function(e,t){var r,n,o,i=E(this),a=gt(i),s=dt(e,a),c=dt(void 0===t?a:t,a);if(ki(i)&&(r=i.constructor,(hr(r)&&(r===rv||ki(r.prototype))||R(r)&&null===(r=r[tv]))&&(r=void 0),r===rv||void 0===r))return Or(i,s,c);for(n=new(void 0===r?rv:r)(nv(c-s,0)),o=0;s<c;s++,o++)s in i&&di(n,o,i[s]);return n.length=o,n}});function ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(r),!0).forEach((function(t){Cp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var av=function(e){var t=!1;return e&&(t=Boolean(Object.keys(e).find((function(e){return"content-type"===e.toLowerCase()})))),t},sv=function(){var e=bo(Yo.mark((function e(t){var r,n,o,i,a,s,c,u,f,l,d,h,p,g,v,y,m,b;return Yo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.options,s=t.clientConfig,c=t.rawResponse,u=["apiName","endpointPath","organizationId","shortCode"],f=iv(iv({},s.parameters),null==a?void 0:a.customApiPathParameters),u.forEach((function(e){if(!f[e])throw new Error("Missing required property needed in options.customApiPathParameters or clientConfig.parameters: ".concat(e))})),f.apiVersion||(f.apiVersion="v1"),l=s,s.baseUri||(l=iv(iv({},s),{},{baseUri:"https://{shortCode}.api.commercecloud.salesforce.com/custom/{apiName}/{apiVersion}"})),d=Boolean(!(null!==(r=a.parameters)&&void 0!==r&&r.siteId)&&(null==s||null===(n=s.parameters)||void 0===n?void 0:n.siteId)),h=av(a.headers)||av(l.headers),p=a,h&&!d||(p=iv(iv({},a),{},{headers:iv(iv({},a.headers),!h&&{"Content-Type":"application/json"}),parameters:iv(iv({},a.parameters),d&&{siteId:s.parameters.siteId})})),g=(null==a||null===(o=a.customApiPathParameters)||void 0===o?void 0:o.endpointPath)||(null===(i=s.parameters)||void 0===i?void 0:i.endpointPath),v=g,y={},g.includes("/")&&(m=g.split("/").filter((function(e){return""!==e})),v="",m.forEach((function(e,t){var r="endpointPathSegment".concat(t);y[r]=e,v+="{".concat(r,"}/")})),v=v.slice(0,-1)),b=new wg("/organizations/{organizationId}/".concat(v),l.baseUri,{pathParams:iv(iv({},f),y),queryParams:p.parameters,origin:l.proxy}),e.abrupt("return",mg(b.toString(),p,l,c));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();exports.authorize=Rg,exports.authorizeIDP=function(e){return qg.apply(this,arguments)},exports.authorizePasswordless=function(e){return Dg.apply(this,arguments)},exports.callCustomEndpoint=sv,exports.createCodeVerifier=Eg,exports.doFetch=mg,exports.encodeSCAPISpecialCharacters=function(e){return e.replace(/%/g,"%25").replace(/,/g,"%2C")},exports.fetch=Zo,exports.generateCodeChallenge=jg,exports.getCodeAndUsidFromUrl=Ag,exports.getPasswordLessAccessToken=function(e){return Ng.apply(this,arguments)},exports.globalObject=Qo,exports.hasFetchAvailable=Xo,exports.isBrowser=Jo,exports.isNode=Ko,exports.loginGuestUser=function(e){return Bg.apply(this,arguments)},exports.loginGuestUserPrivate=function(e){return Mg.apply(this,arguments)},exports.loginIDPUser=function(e){return Lg.apply(this,arguments)},exports.loginRegisteredUserB2C=function(e){return Fg.apply(this,arguments)},exports.logout=function(e){var t=e.slasClient,r=e.parameters;return t.logoutCustomer({headers:{Authorization:"Bearer ".concat(r.accessToken)},parameters:{refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId}})},exports.refreshAccessToken=function(e){var t=e.slasClient,r=e.parameters,n=e.credentials,o=Tg({grant_type:"refresh_token",refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId},void 0!==r.dnt&&{dnt:r.dnt.toString()});if(n&&n.clientSecret){var i={headers:{Authorization:"Basic ".concat(zg("".concat(t.clientConfig.parameters.clientId,":").concat(n.clientSecret)))},body:o};return t.getAccessToken(i)}return t.getAccessToken({body:o})},exports.stringToBase64=zg;
|