commerce-sdk-isomorphic 4.1.0 → 4.2.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.
Files changed (86) hide show
  1. package/README.md +1 -114
  2. package/lib/index.cjs.d.ts +1320 -169
  3. package/lib/index.cjs.js +1 -1
  4. package/lib/index.esm.d.ts +1320 -169
  5. package/lib/index.esm.js +1 -1
  6. package/package.json +24 -91
  7. package/lib/clientConfig.cjs.d.ts +0 -54
  8. package/lib/clientConfig.cjs.js +0 -1
  9. package/lib/clientConfig.d.ts +0 -54
  10. package/lib/clientConfig.js +0 -1
  11. package/lib/config.cjs.d.ts +0 -2
  12. package/lib/config.cjs.js +0 -1
  13. package/lib/config.d.ts +0 -2
  14. package/lib/config.js +0 -1
  15. package/lib/helpers.cjs.d.ts +0 -2225
  16. package/lib/helpers.cjs.js +0 -1
  17. package/lib/helpers.d.ts +0 -2225
  18. package/lib/helpers.js +0 -1
  19. package/lib/responseError.cjs.d.ts +0 -12
  20. package/lib/responseError.cjs.js +0 -1
  21. package/lib/responseError.d.ts +0 -12
  22. package/lib/responseError.js +0 -1
  23. package/lib/shopperBaskets.cjs.d.ts +0 -10264
  24. package/lib/shopperBaskets.cjs.js +0 -1
  25. package/lib/shopperBaskets.d.ts +0 -10264
  26. package/lib/shopperBaskets.js +0 -1
  27. package/lib/shopperBasketsv2.cjs.d.ts +0 -10458
  28. package/lib/shopperBasketsv2.cjs.js +0 -1
  29. package/lib/shopperBasketsv2.d.ts +0 -10458
  30. package/lib/shopperBasketsv2.js +0 -1
  31. package/lib/shopperConsents.cjs.d.ts +0 -1147
  32. package/lib/shopperConsents.cjs.js +0 -1
  33. package/lib/shopperConsents.d.ts +0 -1147
  34. package/lib/shopperConsents.js +0 -1
  35. package/lib/shopperContext.cjs.d.ts +0 -1406
  36. package/lib/shopperContext.cjs.js +0 -1
  37. package/lib/shopperContext.d.ts +0 -1406
  38. package/lib/shopperContext.js +0 -1
  39. package/lib/shopperCustomers.cjs.d.ts +0 -12190
  40. package/lib/shopperCustomers.cjs.js +0 -1
  41. package/lib/shopperCustomers.d.ts +0 -12190
  42. package/lib/shopperCustomers.js +0 -1
  43. package/lib/shopperExperience.cjs.d.ts +0 -1174
  44. package/lib/shopperExperience.cjs.js +0 -1
  45. package/lib/shopperExperience.d.ts +0 -1174
  46. package/lib/shopperExperience.js +0 -1
  47. package/lib/shopperGiftCertificates.cjs.d.ts +0 -734
  48. package/lib/shopperGiftCertificates.cjs.js +0 -1
  49. package/lib/shopperGiftCertificates.d.ts +0 -734
  50. package/lib/shopperGiftCertificates.js +0 -1
  51. package/lib/shopperLogin.cjs.d.ts +0 -3847
  52. package/lib/shopperLogin.cjs.js +0 -1
  53. package/lib/shopperLogin.d.ts +0 -3847
  54. package/lib/shopperLogin.js +0 -1
  55. package/lib/shopperOrders.cjs.d.ts +0 -5398
  56. package/lib/shopperOrders.cjs.js +0 -1
  57. package/lib/shopperOrders.d.ts +0 -5398
  58. package/lib/shopperOrders.js +0 -1
  59. package/lib/shopperProducts.cjs.d.ts +0 -3484
  60. package/lib/shopperProducts.cjs.js +0 -1
  61. package/lib/shopperProducts.d.ts +0 -3484
  62. package/lib/shopperProducts.js +0 -1
  63. package/lib/shopperPromotions.cjs.d.ts +0 -1006
  64. package/lib/shopperPromotions.cjs.js +0 -1
  65. package/lib/shopperPromotions.d.ts +0 -1006
  66. package/lib/shopperPromotions.js +0 -1
  67. package/lib/shopperSearch.cjs.d.ts +0 -3357
  68. package/lib/shopperSearch.cjs.js +0 -1
  69. package/lib/shopperSearch.d.ts +0 -3357
  70. package/lib/shopperSearch.js +0 -1
  71. package/lib/shopperSeo.cjs.d.ts +0 -774
  72. package/lib/shopperSeo.cjs.js +0 -1
  73. package/lib/shopperSeo.d.ts +0 -774
  74. package/lib/shopperSeo.js +0 -1
  75. package/lib/shopperStores.cjs.d.ts +0 -1294
  76. package/lib/shopperStores.cjs.js +0 -1
  77. package/lib/shopperStores.d.ts +0 -1294
  78. package/lib/shopperStores.js +0 -1
  79. package/lib/templateUrl.cjs.d.ts +0 -76
  80. package/lib/templateUrl.cjs.js +0 -1
  81. package/lib/templateUrl.d.ts +0 -76
  82. package/lib/templateUrl.js +0 -1
  83. package/lib/version.cjs.d.ts +0 -3
  84. package/lib/version.cjs.js +0 -1
  85. package/lib/version.d.ts +0 -3
  86. package/lib/version.js +0 -1
@@ -1 +0,0 @@
1
- var e="https://{shortCode}.api.commercecloud.salesforce.com/product/shopper-products/v1",t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(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 n,o,i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},s=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),f=Function.prototype.call,l=u?f.bind(f):function(){return f.apply(f,arguments)},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!h.call({1:2},1)?function(e){var t=p(this,e);return!!t&&t.enumerable}:h},v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=Function.prototype,y=g.bind,m=g.call,b=u&&y.bind(m,m),w=u?function(e){return e&&b(e)}:function(e){return e&&function(){return m.apply(e,arguments)}},O=w({}.toString),x=w("".slice),P=function(e){return x(O(e),8,-1)},S=Object,I=w("".split),j=c((function(){return!S("z").propertyIsEnumerable(0)}))?function(e){return"String"==P(e)?I(e,""):S(e)}:S,k=TypeError,E=function(e){if(null==e)throw k("Can't call method on "+e);return e},R=function(e){return j(E(e))},L=function(e){return"function"==typeof e},C=function(e){return"object"==typeof e?null!==e:L(e)},T=function(e){return L(e)?e:void 0},U=function(e,t){return arguments.length<2?T(a[e]):a[e]&&a[e][t]},A=w({}.isPrototypeOf),z=U("navigator","userAgent")||"",q=a.process,_=a.Deno,F=q&&q.versions||_&&_.version,M=F&&F.v8;M&&(o=(n=M.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&z&&(!(n=z.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=z.match(/Chrome\/(\d+)/))&&(o=+n[1]);var B=o,N=!!Object.getOwnPropertySymbols&&!c((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),D=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=Object,H=D?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return L(t)&&A(t.prototype,G(e))},$=String,W=function(e){try{return $(e)}catch(e){return"Object"}},V=TypeError,J=function(e){if(L(e))return e;throw V(W(e)+" is not a function")},Y=function(e,t){var r=e[t];return null==r?void 0:J(r)},K=TypeError,Q=Object.defineProperty,X=function(e,t){try{Q(a,e,{value:t,configurable:!0,writable:!0})}catch(r){a[e]=t}return t},Z=a["__core-js_shared__"]||X("__core-js_shared__",{}),ee=r((function(e){(e.exports=function(e,t){return Z[e]||(Z[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"})})),te=Object,re=function(e){return te(E(e))},ne=w({}.hasOwnProperty),oe=Object.hasOwn||function(e,t){return ne(re(e),t)},ie=0,ae=Math.random(),ce=w(1..toString),se=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ce(++ie+ae,36)},ue=ee("wks"),fe=a.Symbol,le=fe&&fe.for,he=D?fe:fe&&fe.withoutSetter||se,pe=function(e){if(!oe(ue,e)||!N&&"string"!=typeof ue[e]){var t="Symbol."+e;N&&oe(fe,e)?ue[e]=fe[e]:ue[e]=D&&le?le(t):he(t)}return ue[e]},de=TypeError,ve=pe("toPrimitive"),ge=function(e,t){if(!C(e)||H(e))return e;var r,n=Y(e,ve);if(n){if(void 0===t&&(t="default"),r=l(n,e,t),!C(r)||H(r))return r;throw de("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&L(r=e.toString)&&!C(n=l(r,e)))return n;if(L(r=e.valueOf)&&!C(n=l(r,e)))return n;if("string"!==t&&L(r=e.toString)&&!C(n=l(r,e)))return n;throw K("Can't convert object to primitive value")}(e,t)},ye=function(e){var t=ge(e,"string");return H(t)?t:t+""},me=a.document,be=C(me)&&C(me.createElement),we=function(e){return be?me.createElement(e):{}},Oe=!s&&!c((function(){return 7!=Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a})),xe=Object.getOwnPropertyDescriptor,Pe={f:s?xe:function(e,t){if(e=R(e),t=ye(t),Oe)try{return xe(e,t)}catch(e){}if(oe(e,t))return v(!l(d.f,e,t),e[t])}},Se=s&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=String,je=TypeError,ke=function(e){if(C(e))return e;throw je(Ie(e)+" is not an object")},Ee=TypeError,Re=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Ce={f:s?Se?function(e,t,r){if(ke(e),t=ye(t),ke(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Le(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 Re(e,t,r)}:Re:function(e,t,r){if(ke(e),t=ye(t),ke(r),Oe)try{return Re(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ee("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Te=s?function(e,t,r){return Ce.f(e,t,v(1,r))}:function(e,t,r){return e[t]=r,e},Ue=Function.prototype,Ae=s&&Object.getOwnPropertyDescriptor,ze=oe(Ue,"name"),qe={EXISTS:ze,PROPER:ze&&"something"===function(){}.name,CONFIGURABLE:ze&&(!s||s&&Ae(Ue,"name").configurable)},_e=w(Function.toString);L(Z.inspectSource)||(Z.inspectSource=function(e){return _e(e)});var Fe,Me,Be,Ne=Z.inspectSource,De=a.WeakMap,Ge=L(De)&&/native code/.test(Ne(De)),He=ee("keys"),$e=function(e){return He[e]||(He[e]=se(e))},We={},Ve=a.TypeError,Je=a.WeakMap;if(Ge||Z.state){var Ye=Z.state||(Z.state=new Je),Ke=w(Ye.get),Qe=w(Ye.has),Xe=w(Ye.set);Fe=function(e,t){if(Qe(Ye,e))throw new Ve("Object already initialized");return t.facade=e,Xe(Ye,e,t),t},Me=function(e){return Ke(Ye,e)||{}},Be=function(e){return Qe(Ye,e)}}else{var Ze=$e("state");We[Ze]=!0,Fe=function(e,t){if(oe(e,Ze))throw new Ve("Object already initialized");return t.facade=e,Te(e,Ze,t),t},Me=function(e){return oe(e,Ze)?e[Ze]:{}},Be=function(e){return oe(e,Ze)}}var et={set:Fe,get:Me,has:Be,enforce:function(e){return Be(e)?Me(e):Fe(e,{})},getterFor:function(e){return function(t){var r;if(!C(t)||(r=Me(t)).type!==e)throw Ve("Incompatible receiver, "+e+" required");return r}}},tt=r((function(e){var t=qe.CONFIGURABLE,r=et.enforce,n=et.get,o=Object.defineProperty,i=s&&!c((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),u=e.exports=function(e,n,c){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(n="get "+n),c&&c.setter&&(n="set "+n),(!oe(e,"name")||t&&e.name!==n)&&(s?o(e,"name",{value:n,configurable:!0}):e.name=n),i&&c&&oe(c,"arity")&&e.length!==c.arity&&o(e,"length",{value:c.arity});try{c&&oe(c,"constructor")&&c.constructor?s&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var u=r(e);return oe(u,"source")||(u.source=a.join("string"==typeof n?n:"")),e};Function.prototype.toString=u((function(){return L(this)&&n(this).source||Ne(this)}),"toString")})),rt=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(L(r)&&tt(r,i,n),n.global)o?e[t]=r:X(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Ce.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},nt=Math.ceil,ot=Math.floor,it=Math.trunc||function(e){var t=+e;return(t>0?ot:nt)(t)},at=function(e){var t=+e;return t!=t||0===t?0:it(t)},ct=Math.max,st=Math.min,ut=function(e,t){var r=at(e);return r<0?ct(r+t,0):st(r,t)},ft=Math.min,lt=function(e){return e>0?ft(at(e),9007199254740991):0},ht=function(e){return lt(e.length)},pt=function(e){return function(t,r,n){var o,i=R(t),a=ht(i),c=ut(n,a);if(e&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===r)return e||c||0;return!e&&-1}},dt={includes:pt(!0),indexOf:pt(!1)}.indexOf,vt=w([].push),gt=function(e,t){var r,n=R(e),o=0,i=[];for(r in n)!oe(We,r)&&oe(n,r)&&vt(i,r);for(;t.length>o;)oe(n,r=t[o++])&&(~dt(i,r)||vt(i,r));return i},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=yt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(e){return gt(e,mt)}},wt={f:Object.getOwnPropertySymbols},Ot=w([].concat),xt=U("Reflect","ownKeys")||function(e){var t=bt.f(ke(e)),r=wt.f;return r?Ot(t,r(e)):t},Pt=function(e,t,r){for(var n=xt(t),o=Ce.f,i=Pe.f,a=0;a<n.length;a++){var c=n[a];oe(e,c)||r&&oe(r,c)||o(e,c,i(t,c))}},St=/#|\.prototype\./,It=function(e,t){var r=kt[jt(e)];return r==Rt||r!=Et&&(L(t)?c(t):!!t)},jt=It.normalize=function(e){return String(e).replace(St,".").toLowerCase()},kt=It.data={},Et=It.NATIVE="N",Rt=It.POLYFILL="P",Lt=It,Ct=Pe.f,Tt=function(e,t){var r,n,o,i,c,s=e.target,u=e.global,f=e.stat;if(r=u?a:f?a[s]||X(s,{}):(a[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(c=Ct(r,n))&&c.value:r[n],!Lt(u?n:s+(f?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(e.sham||o&&o.sham)&&Te(i,"sham",!0),rt(r,n,i,e)}},Ut=Object.keys||function(e){return gt(e,yt)},At=c((function(){Ut(1)}));Tt({target:"Object",stat:!0,forced:At},{keys:function(e){return Ut(re(e))}});var zt={};zt[pe("toStringTag")]="z";var qt,_t="[object z]"===String(zt),Ft=pe("toStringTag"),Mt=Object,Bt="Arguments"==P(function(){return arguments}()),Nt=_t?P: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=Mt(e),Ft))?r:Bt?P(t):"Object"==(n=P(t))&&L(t.callee)?"Arguments":n},Dt=String,Gt=function(e){if("Symbol"===Nt(e))throw TypeError("Cannot convert a Symbol value to a string");return Dt(e)},Ht={f:s&&!Se?Object.defineProperties:function(e,t){ke(e);for(var r,n=R(t),o=Ut(t),i=o.length,a=0;i>a;)Ce.f(e,r=o[a++],n[r]);return e}},$t=U("document","documentElement"),Wt=$e("IE_PROTO"),Vt=function(){},Jt=function(e){return"<script>"+e+"<\/script>"},Yt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kt=function(){try{qt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Kt="undefined"!=typeof document?document.domain&&qt?Yt(qt):((t=we("iframe")).style.display="none",$t.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F):Yt(qt);for(var r=yt.length;r--;)delete Kt.prototype[yt[r]];return Kt()};We[Wt]=!0;var Qt=Object.create||function(e,t){var r;return null!==e?(Vt.prototype=ke(e),r=new Vt,Vt.prototype=null,r[Wt]=e):r=Kt(),void 0===t?r:Ht.f(r,t)},Xt=function(e,t,r){var n=ye(t);n in e?Ce.f(e,n,v(0,r)):e[n]=r},Zt=Array,er=Math.max,tr=function(e,t,r){for(var n=ht(e),o=ut(t,n),i=ut(void 0===r?n:r,n),a=Zt(er(i-o,0)),c=0;o<i;o++,c++)Xt(a,c,e[o]);return a.length=c,a},rr=bt.f,nr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],or={f:function(e){return nr&&"Window"==P(e)?function(e){try{return rr(e)}catch(e){return tr(nr)}}(e):rr(R(e))}},ir={f:pe},ar=a,cr=Ce.f,sr=Ce.f,ur=pe("toStringTag"),fr=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oe(e,ur)&&sr(e,ur,{configurable:!0,value:t})},lr=w(w.bind),hr=function(e,t){return J(e),void 0===t?e:u?lr(e,t):function(){return e.apply(t,arguments)}},pr=Array.isArray||function(e){return"Array"==P(e)},dr=function(){},vr=[],gr=U("Reflect","construct"),yr=/^\s*(?:class|function)\b/,mr=w(yr.exec),br=!yr.exec(dr),wr=function(e){if(!L(e))return!1;try{return gr(dr,vr,e),!0}catch(e){return!1}},Or=function(e){if(!L(e))return!1;switch(Nt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return br||!!mr(yr,Ne(e))}catch(e){return!0}};Or.sham=!0;var xr=!gr||c((function(){var e;return wr(wr.call)||!wr(Object)||!wr((function(){e=!0}))||e}))?Or:wr,Pr=pe("species"),Sr=Array,Ir=function(e,t){return new(function(e){var t;return pr(e)&&(t=e.constructor,(xr(t)&&(t===Sr||pr(t.prototype))||C(t)&&null===(t=t[Pr]))&&(t=void 0)),void 0===t?Sr:t}(e))(0===t?0:t)},jr=w([].push),kr=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(s,u,f,l){for(var h,p,d=re(s),v=j(d),g=hr(u,f),y=ht(v),m=0,b=l||Ir,w=t?b(s,y):r||a?b(s,0):void 0;y>m;m++)if((c||m in v)&&(p=g(h=v[m],m,d),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:jr(w,h)}else switch(e){case 4:return!1;case 7:jr(w,h)}return i?-1:n||o?o:w}},Er={forEach:kr(0),map:kr(1),filter:kr(2),some:kr(3),every:kr(4),find:kr(5),findIndex:kr(6),filterReject:kr(7)},Rr=Er.forEach,Lr=$e("hidden"),Cr=et.set,Tr=et.getterFor("Symbol"),Ur=Object.prototype,Ar=a.Symbol,zr=Ar&&Ar.prototype,qr=a.TypeError,_r=a.QObject,Fr=Pe.f,Mr=Ce.f,Br=or.f,Nr=d.f,Dr=w([].push),Gr=ee("symbols"),Hr=ee("op-symbols"),$r=ee("wks"),Wr=!_r||!_r.prototype||!_r.prototype.findChild,Vr=s&&c((function(){return 7!=Qt(Mr({},"a",{get:function(){return Mr(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Fr(Ur,t);n&&delete Ur[t],Mr(e,t,r),n&&e!==Ur&&Mr(Ur,t,n)}:Mr,Jr=function(e,t){var r=Gr[e]=Qt(zr);return Cr(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},Yr=function(e,t,r){e===Ur&&Yr(Hr,t,r),ke(e);var n=ye(t);return ke(r),oe(Gr,n)?(r.enumerable?(oe(e,Lr)&&e[Lr][n]&&(e[Lr][n]=!1),r=Qt(r,{enumerable:v(0,!1)})):(oe(e,Lr)||Mr(e,Lr,v(1,{})),e[Lr][n]=!0),Vr(e,n,r)):Mr(e,n,r)},Kr=function(e,t){ke(e);var r=R(t),n=Ut(r).concat(en(r));return Rr(n,(function(t){s&&!l(Qr,r,t)||Yr(e,t,r[t])})),e},Qr=function(e){var t=ye(e),r=l(Nr,this,t);return!(this===Ur&&oe(Gr,t)&&!oe(Hr,t))&&(!(r||!oe(this,t)||!oe(Gr,t)||oe(this,Lr)&&this[Lr][t])||r)},Xr=function(e,t){var r=R(e),n=ye(t);if(r!==Ur||!oe(Gr,n)||oe(Hr,n)){var o=Fr(r,n);return!o||!oe(Gr,n)||oe(r,Lr)&&r[Lr][n]||(o.enumerable=!0),o}},Zr=function(e){var t=Br(R(e)),r=[];return Rr(t,(function(e){oe(Gr,e)||oe(We,e)||Dr(r,e)})),r},en=function(e){var t=e===Ur,r=Br(t?Hr:R(e)),n=[];return Rr(r,(function(e){!oe(Gr,e)||t&&!oe(Ur,e)||Dr(n,Gr[e])})),n};N||(zr=(Ar=function(){if(A(zr,this))throw qr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Gt(arguments[0]):void 0,t=se(e),r=function(e){this===Ur&&l(r,Hr,e),oe(this,Lr)&&oe(this[Lr],t)&&(this[Lr][t]=!1),Vr(this,t,v(1,e))};return s&&Wr&&Vr(Ur,t,{configurable:!0,set:r}),Jr(t,e)}).prototype,rt(zr,"toString",(function(){return Tr(this).tag})),rt(Ar,"withoutSetter",(function(e){return Jr(se(e),e)})),d.f=Qr,Ce.f=Yr,Ht.f=Kr,Pe.f=Xr,bt.f=or.f=Zr,wt.f=en,ir.f=function(e){return Jr(pe(e),e)},s&&(Mr(zr,"description",{configurable:!0,get:function(){return Tr(this).description}}),rt(Ur,"propertyIsEnumerable",Qr,{unsafe:!0}))),Tt({global:!0,constructor:!0,wrap:!0,forced:!N,sham:!N},{Symbol:Ar}),Rr(Ut($r),(function(e){!function(e){var t=ar.Symbol||(ar.Symbol={});oe(t,e)||cr(t,e,{value:ir.f(e)})}(e)})),Tt({target:"Symbol",stat:!0,forced:!N},{useSetter:function(){Wr=!0},useSimple:function(){Wr=!1}}),Tt({target:"Object",stat:!0,forced:!N,sham:!s},{create:function(e,t){return void 0===t?Qt(e):Kr(Qt(e),t)},defineProperty:Yr,defineProperties:Kr,getOwnPropertyDescriptor:Xr}),Tt({target:"Object",stat:!0,forced:!N},{getOwnPropertyNames:Zr}),function(){var e=U("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=pe("toPrimitive");t&&!t[n]&&rt(t,n,(function(e){return l(r,this)}),{arity:1})}(),fr(Ar,"Symbol"),We[Lr]=!0;var tn=N&&!!Symbol.for&&!!Symbol.keyFor,rn=ee("string-to-symbol-registry"),nn=ee("symbol-to-string-registry");Tt({target:"Symbol",stat:!0,forced:!tn},{for:function(e){var t=Gt(e);if(oe(rn,t))return rn[t];var r=U("Symbol")(t);return rn[t]=r,nn[r]=t,r}});var on=ee("symbol-to-string-registry");Tt({target:"Symbol",stat:!0,forced:!tn},{keyFor:function(e){if(!H(e))throw TypeError(W(e)+" is not a symbol");if(oe(on,e))return on[e]}});var an=Function.prototype,cn=an.apply,sn=an.call,un="object"==typeof Reflect&&Reflect.apply||(u?sn.bind(cn):function(){return sn.apply(cn,arguments)}),fn=w([].slice),ln=U("JSON","stringify"),hn=w(/./.exec),pn=w("".charAt),dn=w("".charCodeAt),vn=w("".replace),gn=w(1..toString),yn=/[\uD800-\uDFFF]/g,mn=/^[\uD800-\uDBFF]$/,bn=/^[\uDC00-\uDFFF]$/,wn=!N||c((function(){var e=U("Symbol")();return"[null]"!=ln([e])||"{}"!=ln({a:e})||"{}"!=ln(Object(e))})),On=c((function(){return'"\\udf06\\ud834"'!==ln("\udf06\ud834")||'"\\udead"'!==ln("\udead")})),xn=function(e,t){var r=fn(arguments),n=t;if((C(t)||void 0!==e)&&!H(e))return pr(t)||(t=function(e,t){if(L(n)&&(t=l(n,this,e,t)),!H(t))return t}),r[1]=t,un(ln,null,r)},Pn=function(e,t,r){var n=pn(r,t-1),o=pn(r,t+1);return hn(mn,e)&&!hn(bn,o)||hn(bn,e)&&!hn(mn,n)?"\\u"+gn(dn(e,0),16):e};ln&&Tt({target:"JSON",stat:!0,arity:3,forced:wn||On},{stringify:function(e,t,r){var n=fn(arguments),o=un(wn?xn:ln,null,n);return On&&"string"==typeof o?vn(o,yn,Pn):o}});var Sn=!N||c((function(){wt.f(1)}));Tt({target:"Object",stat:!0,forced:Sn},{getOwnPropertySymbols:function(e){var t=wt.f;return t?t(re(e)):[]}});var In=pe("species"),jn=function(e){return B>=51||!c((function(){var t=[];return(t.constructor={})[In]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},kn=Er.filter,En=jn("filter");Tt({target:"Array",proto:!0,forced:!En},{filter:function(e){return kn(this,e,arguments.length>1?arguments[1]:void 0)}});var Rn=_t?{}.toString:function(){return"[object "+Nt(this)+"]"};_t||rt(Object.prototype,"toString",Rn,{unsafe:!0});var Ln=Pe.f,Cn=c((function(){Ln(1)}));Tt({target:"Object",stat:!0,forced:!s||Cn,sham:!s},{getOwnPropertyDescriptor:function(e,t){return Ln(R(e),t)}});var Tn={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},Un=we("span").classList,An=Un&&Un.constructor&&Un.constructor.prototype,zn=An===Object.prototype?void 0:An,qn=Er.forEach,_n=function(e,t){var r=[][e];return!!r&&c((function(){r.call(null,t||function(){return 1},1)}))}("forEach")?[].forEach:function(e){return qn(this,e,arguments.length>1?arguments[1]:void 0)},Fn=function(e){if(e&&e.forEach!==_n)try{Te(e,"forEach",_n)}catch(t){e.forEach=_n}};for(var Mn in Tn)Tn[Mn]&&Fn(a[Mn]&&a[Mn].prototype);Fn(zn),Tt({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,r,n=R(e),o=Pe.f,i=xt(n),a={},c=0;i.length>c;)void 0!==(r=o(n,t=i[c++]))&&Xt(a,t,r);return a}});var Bn=Ht.f;Tt({target:"Object",stat:!0,forced:Object.defineProperties!==Bn,sham:!s},{defineProperties:Bn});var Nn=Ce.f;Tt({target:"Object",stat:!0,forced:Object.defineProperty!==Nn,sham:!s},{defineProperty:Nn});var Dn,Gn=pe("match"),Hn=TypeError,$n=function(e){if(function(e){var t;return C(e)&&(void 0!==(t=e[Gn])?!!t:"RegExp"==P(e))}(e))throw Hn("The method doesn't accept regular expressions");return e},Wn=pe("match"),Vn=Pe.f,Jn=w("".startsWith),Yn=w("".slice),Kn=Math.min,Qn=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Wn]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),Xn=!(Qn||(Dn=Vn(String.prototype,"startsWith"),!Dn||Dn.writable));Tt({target:"String",proto:!0,forced:!Xn&&!Qn},{startsWith:function(e){var t=Gt(E(this));$n(e);var r=lt(Kn(arguments.length>1?arguments[1]:void 0,t.length)),n=Gt(e);return Jn?Jn(t,n,r):Yn(t,r,r+n.length)===n}});var Zn=function(){var e=ke(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=qe.PROPER,ro=RegExp.prototype.toString,no=c((function(){return"/a/b"!=ro.call({source:"a",flags:"b"})})),oo=to&&"toString"!=ro.name;function io(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function ao(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){io(i,n,o,a,c,"next",e)}function c(e){io(i,n,o,a,c,"throw",e)}a(void 0)}))}}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function so(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 uo(e,t,r){return t&&so(e.prototype,t),r&&so(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(no||oo)&&rt(RegExp.prototype,"toString",(function(){var e=ke(this);return"/"+Gt(e.source)+"/"+Gt(function(e){var t=e.flags;return void 0!==t||"flags"in eo||oe(e,"flags")||!A(eo,e)?t:l(Zn,e)}(e))}),{unsafe:!0});var lo=Object.prototype,ho=lo.hasOwnProperty,po="function"==typeof Symbol?Symbol:{},vo=po.iterator||"@@iterator",go=po.asyncIterator||"@@asyncIterator",yo=po.toStringTag||"@@toStringTag";function mo(e,t,r,n){var o=t&&t.prototype instanceof Oo?t:Oo,i=Object.create(o.prototype),a=new Ao(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 qo()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=Co(a,r);if(c){if(c===wo)continue;return c}}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 s=bo(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===wo)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function bo(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var wo={};function Oo(){}function xo(){}function Po(){}var So={};So[vo]=function(){return this};var Io=Object.getPrototypeOf,jo=Io&&Io(Io(zo([])));jo&&jo!==lo&&ho.call(jo,vo)&&(So=jo);var ko=Po.prototype=Oo.prototype=Object.create(So);function Eo(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Ro(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===xo||"GeneratorFunction"===(t.displayName||t.name))}function Lo(e,t){var r;this._invoke=function(n,o){function i(){return new t((function(r,i){!function r(n,o,i,a){var c=bo(e[n],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&ho.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){s.value=e,i(s)}),(function(e){return r("throw",e,i,a)}))}a(c.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}}function Co(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,Co(e,t),"throw"===t.method))return wo;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return wo}var n=bo(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,wo;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,wo):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,wo)}function To(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 Uo(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Ao(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(To,this),this.reset(!0)}function zo(e){if(e){var t=e[vo];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(ho.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:qo}}function qo(){return{value:void 0,done:!0}}xo.prototype=ko.constructor=Po,Po.constructor=xo,Po[yo]=xo.displayName="GeneratorFunction",Eo(Lo.prototype),Lo.prototype[go]=function(){return this},Eo(ko),ko[yo]="Generator",ko[vo]=function(){return this},ko.toString=function(){return"[object Generator]"},Ao.prototype={constructor:Ao,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(Uo),!e)for(var t in this)"t"===t.charAt(0)&&ho.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=ho.call(o,"catchLoc"),c=ho.call(o,"finallyLoc");if(a&&c){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(!c)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&&ho.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,wo):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),wo},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),Uo(r),wo}},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;Uo(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:zo(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),wo}};var _o={wrap:mo,isGeneratorFunction:Ro,AsyncIterator:Lo,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,Po):(e.__proto__=Po,yo in e||(e[yo]="GeneratorFunction")),e.prototype=Object.create(ko),e},awrap:function(e){return{__await:e}},async:function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new Lo(mo(e,t,r,n),o);return Ro(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:zo},Fo=Ce.f,Mo=pe("unscopables"),Bo=Array.prototype;null==Bo[Mo]&&Fo(Bo,Mo,{configurable:!0,value:Qt(null)});var No,Do,Go,Ho=function(e){Bo[Mo][e]=!0},$o={},Wo=!c((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vo=$e("IE_PROTO"),Jo=Object,Yo=Jo.prototype,Ko=Wo?Jo.getPrototypeOf:function(e){var t=re(e);if(oe(t,Vo))return t[Vo];var r=t.constructor;return L(r)&&t instanceof r?r.prototype:t instanceof Jo?Yo:null},Qo=pe("iterator"),Xo=!1;[].keys&&("next"in(Go=[].keys())?(Do=Ko(Ko(Go)))!==Object.prototype&&(No=Do):Xo=!0),(null==No||c((function(){var e={};return No[Qo].call(e)!==e})))&&(No={}),L(No[Qo])||rt(No,Qo,(function(){return this}));var Zo={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Xo},ei=Zo.IteratorPrototype,ti=function(){return this},ri=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Qt(ei,{next:v(+!n,r)}),fr(e,o,!1),$o[o]=ti,e},ni=String,oi=TypeError,ii=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ke(r),function(e){if("object"==typeof e||L(e))return e;throw oi("Can't set "+ni(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),ai=qe.PROPER,ci=qe.CONFIGURABLE,si=Zo.IteratorPrototype,ui=Zo.BUGGY_SAFARI_ITERATORS,fi=pe("iterator"),li=function(){return this},hi=function(e,t,r,n,o,i,a){ri(r,t,n);var c,s,u,f=function(e){if(e===o&&g)return g;if(!ui&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},h=t+" Iterator",p=!1,d=e.prototype,v=d[fi]||d["@@iterator"]||o&&d[o],g=!ui&&v||f(o),y="Array"==t&&d.entries||v;if(y&&(c=Ko(y.call(new e)))!==Object.prototype&&c.next&&(Ko(c)!==si&&(ii?ii(c,si):L(c[fi])||rt(c,fi,li)),fr(c,h,!0)),ai&&"values"==o&&v&&"values"!==v.name&&(ci?Te(d,"name","values"):(p=!0,g=function(){return l(v,this)})),o)if(s={values:f("values"),keys:i?g:f("keys"),entries:f("entries")},a)for(u in s)(ui||p||!(u in d))&&rt(d,u,s[u]);else Tt({target:t,proto:!0,forced:ui||p},s);return d[fi]!==g&&rt(d,fi,g,{name:o}),$o[t]=g,s},pi=Ce.f,di=et.set,vi=et.getterFor("Array Iterator"),gi=hi(Array,"Array",(function(e,t){di(this,{type:"Array Iterator",target:R(e),index:0,kind:t})}),(function(){var e=vi(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"),yi=$o.Arguments=$o.Array;if(Ho("keys"),Ho("values"),Ho("entries"),s&&"values"!==yi.name)try{pi(yi,"name",{value:"values"})}catch(e){}var mi=w("".charAt),bi=w("".charCodeAt),wi=w("".slice),Oi=function(e){return function(t,r){var n,o,i=Gt(E(t)),a=at(r),c=i.length;return a<0||a>=c?e?"":void 0:(n=bi(i,a))<55296||n>56319||a+1===c||(o=bi(i,a+1))<56320||o>57343?e?mi(i,a):n:e?wi(i,a,a+2):o-56320+(n-55296<<10)+65536}},xi={codeAt:Oi(!1),charAt:Oi(!0)},Pi=xi.charAt,Si=et.set,Ii=et.getterFor("String Iterator");hi(String,"String",(function(e){Si(this,{type:"String Iterator",string:Gt(e),index:0})}),(function(){var e,t=Ii(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Pi(r,n),t.index+=e.length,{value:e,done:!1})}));var ji=pe("iterator"),ki=pe("toStringTag"),Ei=gi.values,Ri=function(e,t){if(e){if(e[ji]!==Ei)try{Te(e,ji,Ei)}catch(t){e[ji]=Ei}if(e[ki]||Te(e,ki,t),Tn[t])for(var r in gi)if(e[r]!==gi[r])try{Te(e,r,gi[r])}catch(t){e[r]=gi[r]}}};for(var Li in Tn)Ri(a[Li]&&a[Li].prototype,Li);Ri(zn,"DOMTokenList");var Ci=pe("iterator"),Ti=!c((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[Ci]||"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})),Ui=TypeError,Ai=function(e,t){if(A(t,e))return e;throw Ui("Incorrect invocation")},zi=pe("iterator"),qi=function(e){if(null!=e)return Y(e,zi)||Y(e,"@@iterator")||$o[Nt(e)]},_i=TypeError,Fi=function(e,t){var r=arguments.length<2?qi(e):t;if(J(r))return ke(l(r,e));throw _i(W(e)+" is not iterable")},Mi=TypeError,Bi=function(e,t){if(e<t)throw Mi("Not enough arguments");return e},Ni=Math.floor,Di=function(e,t){var r=e.length,n=Ni(r/2);return r<8?Gi(e,t):Hi(e,Di(tr(e,0,n),t),Di(tr(e,n),t),t)},Gi=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},Hi=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,c=0;a<o||c<i;)e[a+c]=a<o&&c<i?n(t[a],r[c])<=0?t[a++]:r[c++]:a<o?t[a++]:r[c++];return e},$i=Di,Wi=pe("iterator"),Vi=et.set,Ji=et.getterFor("URLSearchParams"),Yi=et.getterFor("URLSearchParamsIterator"),Ki=Object.getOwnPropertyDescriptor,Qi=function(e){if(!s)return a[e];var t=Ki(a,e);return t&&t.value},Xi=Qi("fetch"),Zi=Qi("Request"),ea=Qi("Headers"),ta=Zi&&Zi.prototype,ra=ea&&ea.prototype,na=a.RegExp,oa=a.TypeError,ia=a.decodeURIComponent,aa=a.encodeURIComponent,ca=w("".charAt),sa=w([].join),ua=w([].push),fa=w("".replace),la=w([].shift),ha=w([].splice),pa=w("".split),da=w("".slice),va=/\+/g,ga=Array(4),ya=function(e){return ga[e-1]||(ga[e-1]=na("((?:%[\\da-f]{2}){"+e+"})","gi"))},ma=function(e){try{return ia(e)}catch(t){return e}},ba=function(e){var t=fa(e,va," "),r=4;try{return ia(t)}catch(e){for(;r;)t=fa(t,ya(r--),ma);return t}},wa=/[!'()~]|%20/g,Oa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xa=function(e){return Oa[e]},Pa=function(e){return fa(aa(e),wa,xa)},Sa=ri((function(e,t){Vi(this,{type:"URLSearchParamsIterator",iterator:Fi(Ji(e).entries),kind:t})}),"Iterator",(function(){var e=Yi(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),Ia=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ca(e,0)?da(e,1):e:Gt(e)))};Ia.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,c,s=qi(e);if(s)for(r=(t=Fi(e,s)).next;!(n=l(r,t)).done;){if(i=(o=Fi(ke(n.value))).next,(a=l(i,o)).done||(c=l(i,o)).done||!l(i,o).done)throw oa("Expected sequence with length 2");ua(this.entries,{key:Gt(a.value),value:Gt(c.value)})}else for(var u in e)oe(e,u)&&ua(this.entries,{key:u,value:Gt(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=pa(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=pa(t,"="),ua(this.entries,{key:ba(la(r)),value:ba(sa(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ua(r,Pa(e.key)+"="+Pa(e.value));return sa(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ja=function(){Ai(this,ka);var e=arguments.length>0?arguments[0]:void 0;Vi(this,new Ia(e))},ka=ja.prototype;if(function(e,t,r){for(var n in t)rt(e,n,t[n],r)}(ka,{append:function(e,t){Bi(arguments.length,2);var r=Ji(this);ua(r.entries,{key:Gt(e),value:Gt(t)}),r.updateURL()},delete:function(e){Bi(arguments.length,1);for(var t=Ji(this),r=t.entries,n=Gt(e),o=0;o<r.length;)r[o].key===n?ha(r,o,1):o++;t.updateURL()},get:function(e){Bi(arguments.length,1);for(var t=Ji(this).entries,r=Gt(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Bi(arguments.length,1);for(var t=Ji(this).entries,r=Gt(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ua(n,t[o].value);return n},has:function(e){Bi(arguments.length,1);for(var t=Ji(this).entries,r=Gt(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Bi(arguments.length,1);for(var r,n=Ji(this),o=n.entries,i=!1,a=Gt(e),c=Gt(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?ha(o,s--,1):(i=!0,r.value=c));i||ua(o,{key:a,value:c}),n.updateURL()},sort:function(){var e=Ji(this);$i(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ji(this).entries,n=hr(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 Sa(this,"keys")},values:function(){return new Sa(this,"values")},entries:function(){return new Sa(this,"entries")}},{enumerable:!0}),rt(ka,Wi,ka.entries,{name:"entries"}),rt(ka,"toString",(function(){return Ji(this).serialize()}),{enumerable:!0}),fr(ja,"URLSearchParams"),Tt({global:!0,constructor:!0,forced:!Ti},{URLSearchParams:ja}),!Ti&&L(ea)){var Ea=w(ra.has),Ra=w(ra.set),La=function(e){if(C(e)){var t,r=e.body;if("URLSearchParams"===Nt(r))return t=e.headers?new ea(e.headers):new ea,Ea(t,"content-type")||Ra(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qt(e,{body:v(0,Gt(r)),headers:v(0,t)})}return e};if(L(Xi)&&Tt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Xi(e,arguments.length>1?La(arguments[1]):{})}}),L(Zi)){var Ca=function(e){return Ai(this,ta),new Zi(e,arguments.length>1?La(arguments[1]):{})};ta.constructor=Ca,Ca.prototype=ta,Tt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ca})}}var Ta={URLSearchParams:ja,getState:Ji};function Ua(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 Aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(r),!0).forEach((function(t){fo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var za=uo((function e(t){if(co(this,e),fo(this,"baseUri",void 0),fo(this,"proxy",void 0),fo(this,"headers",void 0),fo(this,"parameters",void 0),fo(this,"fetchOptions",void 0),fo(this,"fetch",void 0),fo(this,"transformRequest",void 0),fo(this,"throwOnBadResponse",void 0),this.headers=Aa({},t.headers),this.parameters=Aa({},t.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=Aa({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}));fo(za,"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}}}),Tt({global:!0},{globalThis:a});var qa,_a,Fa,Ma,Ba="process"==P(a.process),Na=pe("species"),Da=TypeError,Ga=function(e){if(xr(e))return e;throw Da(W(e)+" is not a constructor")},Ha=pe("species"),$a=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Wa=a.setImmediate,Va=a.clearImmediate,Ja=a.process,Ya=a.Dispatch,Ka=a.Function,Qa=a.MessageChannel,Xa=a.String,Za=0,ec={};try{qa=a.location}catch(e){}var tc=function(e){if(oe(ec,e)){var t=ec[e];delete ec[e],t()}},rc=function(e){return function(){tc(e)}},nc=function(e){tc(e.data)},oc=function(e){a.postMessage(Xa(e),qa.protocol+"//"+qa.host)};Wa&&Va||(Wa=function(e){Bi(arguments.length,1);var t=L(e)?e:Ka(e),r=fn(arguments,1);return ec[++Za]=function(){un(t,void 0,r)},_a(Za),Za},Va=function(e){delete ec[e]},Ba?_a=function(e){Ja.nextTick(rc(e))}:Ya&&Ya.now?_a=function(e){Ya.now(rc(e))}:Qa&&!$a?(Ma=(Fa=new Qa).port2,Fa.port1.onmessage=nc,_a=hr(Ma.postMessage,Ma)):a.addEventListener&&L(a.postMessage)&&!a.importScripts&&qa&&"file:"!==qa.protocol&&!c(oc)?(_a=oc,a.addEventListener("message",nc,!1)):_a="onreadystatechange"in we("script")?function(e){$t.appendChild(we("script")).onreadystatechange=function(){$t.removeChild(this),tc(e)}}:function(e){setTimeout(rc(e),0)});var ic,ac,cc,sc,uc,fc,lc,hc,pc={set:Wa,clear:Va},dc=/ipad|iphone|ipod/i.test(z)&&void 0!==a.Pebble,vc=/web0s(?!.*chrome)/i.test(z),gc=Pe.f,yc=pc.set,mc=a.MutationObserver||a.WebKitMutationObserver,bc=a.document,wc=a.process,Oc=a.Promise,xc=gc(a,"queueMicrotask"),Pc=xc&&xc.value;Pc||(ic=function(){var e,t;for(Ba&&(e=wc.domain)&&e.exit();ac;){t=ac.fn,ac=ac.next;try{t()}catch(e){throw ac?sc():cc=void 0,e}}cc=void 0,e&&e.enter()},$a||Ba||vc||!mc||!bc?!dc&&Oc&&Oc.resolve?((lc=Oc.resolve(void 0)).constructor=Oc,hc=hr(lc.then,lc),sc=function(){hc(ic)}):Ba?sc=function(){wc.nextTick(ic)}:(yc=hr(yc,a),sc=function(){yc(ic)}):(uc=!0,fc=bc.createTextNode(""),new mc(ic).observe(fc,{characterData:!0}),sc=function(){fc.data=uc=!uc}));var Sc=Pc||function(e){var t={fn:e,next:void 0};cc&&(cc.next=t),ac||(ac=t,sc()),cc=t},Ic=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jc=function(){this.head=null,this.tail=null};jc.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 kc=jc,Ec=a.Promise,Rc="object"==typeof window&&"object"!=typeof Deno;Ec&&Ec.prototype;var Lc,Cc,Tc,Uc=pe("species"),Ac=!1,zc=L(a.PromiseRejectionEvent),qc={CONSTRUCTOR:Lt("Promise",(function(){var e=Ne(Ec),t=e!==String(Ec);if(!t&&66===B)return!0;if(B>=51&&/native code/.test(e))return!1;var r=new Ec((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[Uc]=n,!(Ac=r.then((function(){}))instanceof n)||!t&&Rc&&!zc})),REJECTION_EVENT:zc,SUBCLASSING:Ac},_c=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=J(t),this.reject=J(r)},Fc={f:function(e){return new _c(e)}},Mc=pc.set,Bc=qc.CONSTRUCTOR,Nc=qc.REJECTION_EVENT,Dc=qc.SUBCLASSING,Gc=et.getterFor("Promise"),Hc=et.set,$c=Ec&&Ec.prototype,Wc=Ec,Vc=$c,Jc=a.TypeError,Yc=a.document,Kc=a.process,Qc=Fc.f,Xc=Qc,Zc=!!(Yc&&Yc.createEvent&&a.dispatchEvent),es=function(e){var t;return!(!C(e)||!L(t=e.then))&&t},ts=function(e,t){var r,n,o,i=t.value,a=1==t.state,c=a?e.ok:e.fail,s=e.resolve,u=e.reject,f=e.domain;try{c?(a||(2===t.rejection&&as(t),t.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===e.promise?u(Jc("Promise-chain cycle")):(n=es(r))?l(n,r,s,u):s(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},rs=function(e,t){e.notified||(e.notified=!0,Sc((function(){for(var r,n=e.reactions;r=n.get();)ts(r,e);e.notified=!1,t&&!e.rejection&&os(e)})))},ns=function(e,t,r){var n,o;Zc?((n=Yc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),a.dispatchEvent(n)):n={promise:t,reason:r},!Nc&&(o=a["on"+e])?o(n):"unhandledrejection"===e&&function(e,t){var r=a.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},os=function(e){l(Mc,a,(function(){var t,r=e.facade,n=e.value;if(is(e)&&(t=Ic((function(){Ba?Kc.emit("unhandledRejection",n,r):ns("unhandledrejection",r,n)})),e.rejection=Ba||is(e)?2:1,t.error))throw t.value}))},is=function(e){return 1!==e.rejection&&!e.parent},as=function(e){l(Mc,a,(function(){var t=e.facade;Ba?Kc.emit("rejectionHandled",t):ns("rejectionhandled",t,e.value)}))},cs=function(e,t,r){return function(n){e(t,n,r)}},ss=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,rs(e,!0))},us=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Jc("Promise can't be resolved itself");var n=es(t);n?Sc((function(){var r={done:!1};try{l(n,t,cs(us,r,e),cs(ss,r,e))}catch(t){ss(r,t,e)}})):(e.value=t,e.state=1,rs(e,!1))}catch(t){ss({done:!1},t,e)}}};if(Bc&&(Vc=(Wc=function(e){Ai(this,Vc),J(e),l(Lc,this);var t=Gc(this);try{e(cs(us,t),cs(ss,t))}catch(e){ss(t,e)}}).prototype,(Lc=function(e){Hc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new kc,rejection:!1,state:0,value:void 0})}).prototype=rt(Vc,"then",(function(e,t){var r,n,o,i=Gc(this),a=Qc((r=Wc,void 0===(o=ke(this).constructor)||null==(n=ke(o)[Ha])?r:Ga(n)));return i.parent=!0,a.ok=!L(e)||e,a.fail=L(t)&&t,a.domain=Ba?Kc.domain:void 0,0==i.state?i.reactions.add(a):Sc((function(){ts(a,i)})),a.promise})),Cc=function(){var e=new Lc,t=Gc(e);this.promise=e,this.resolve=cs(us,t),this.reject=cs(ss,t)},Fc.f=Qc=function(e){return e===Wc||void 0===e?new Cc(e):Xc(e)},L(Ec)&&$c!==Object.prototype)){Tc=$c.then,Dc||rt($c,"then",(function(e,t){var r=this;return new Wc((function(e,t){l(Tc,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete $c.constructor}catch(e){}ii&&ii($c,Vc)}Tt({global:!0,constructor:!0,wrap:!0,forced:Bc},{Promise:Wc}),fr(Wc,"Promise",!1),function(e){var t=U(e),r=Ce.f;s&&t&&!t[Na]&&r(t,Na,{configurable:!0,get:function(){return this}})}("Promise");var fs=pe("iterator"),ls=Array.prototype,hs=function(e){return void 0!==e&&($o.Array===e||ls[fs]===e)},ps=function(e,t,r){var n,o;ke(e);try{if(!(n=Y(e,"return"))){if("throw"===t)throw r;return r}n=l(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ke(n),r},ds=TypeError,vs=function(e,t){this.stopped=e,this.result=t},gs=vs.prototype,ys=function(e,t,r){var n,o,i,a,c,s,u,f=r&&r.that,h=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),g=hr(t,f),y=function(e){return n&&ps(n,"normal",e),new vs(!0,e)},m=function(e){return h?(ke(e),v?g(e[0],e[1],y):g(e[0],e[1])):v?g(e,y):g(e)};if(p)n=e.iterator;else if(d)n=e;else{if(!(o=qi(e)))throw ds(W(e)+" is not iterable");if(hs(o)){for(i=0,a=ht(e);a>i;i++)if((c=m(e[i]))&&A(gs,c))return c;return new vs(!1)}n=Fi(e,o)}for(s=p?e.next:n.next;!(u=l(s,n)).done;){try{c=m(u.value)}catch(e){ps(n,"throw",e)}if("object"==typeof c&&c&&A(gs,c))return c}return new vs(!1)},ms=pe("iterator"),bs=!1;try{var ws=0,Os={next:function(){return{done:!!ws++}},return:function(){bs=!0}};Os[ms]=function(){return this},Array.from(Os,(function(){throw 2}))}catch(e){}var xs=qc.CONSTRUCTOR||!function(e,t){if(!t&&!bs)return!1;var r=!1;try{var n={};n[ms]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}((function(e){Ec.all(e).then(void 0,(function(){}))}));Tt({target:"Promise",stat:!0,forced:xs},{all:function(e){var t=this,r=Fc.f(t),n=r.resolve,o=r.reject,i=Ic((function(){var r=J(t.resolve),i=[],a=0,c=1;ys(e,(function(e){var s=a++,u=!1;c++,l(r,t,e).then((function(e){u||(u=!0,i[s]=e,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var Ps=qc.CONSTRUCTOR,Ss=Ec&&Ec.prototype;if(Tt({target:"Promise",proto:!0,forced:Ps,real:!0},{catch:function(e){return this.then(void 0,e)}}),L(Ec)){var Is=U("Promise").prototype.catch;Ss.catch!==Is&&rt(Ss,"catch",Is,{unsafe:!0})}Tt({target:"Promise",stat:!0,forced:xs},{race:function(e){var t=this,r=Fc.f(t),n=r.reject,o=Ic((function(){var o=J(t.resolve);ys(e,(function(e){l(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Tt({target:"Promise",stat:!0,forced:qc.CONSTRUCTOR},{reject:function(e){var t=Fc.f(this);return l(t.reject,void 0,e),t.promise}});var js=qc.CONSTRUCTOR;function ks(e){return(ks="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)}U("Promise"),Tt({target:"Promise",stat:!0,forced:js},{resolve:function(e){return function(e,t){if(ke(e),C(t)&&t.constructor===e)return t;var r=Fc.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var Es,Rs,Ls,Cs,Ts="object"===("undefined"==typeof window?"undefined":ks(window))&&"object"===ks(window.document),Us="object"===("undefined"==typeof process?"undefined":ks(process))&&"object"===ks(process.versions)&&"string"==typeof process.versions.node,As=Ts?window:globalThis,zs="function"==typeof As.fetch,qs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Es?Es.apply(void 0,t):(Rs||(Rs=ao(_o.mark((function e(){var t,r,n;return _o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Us){e.next=7;break}return e.next=3,import("node-fetch");case 3:return r=e.sent,n=null!==(t=r.default)&&void 0!==t?t:r,Es=n,e.abrupt("return",n);case 7:if(zs){e.next=9;break}throw new Error("Bad environment: it is not a node environment but fetch is not defined");case 9:return Es=As.fetch.bind(As),e.abrupt("return",Es);case 11:case"end":return e.stop()}}),e)})))()),Rs.then((function(e){return e.apply(void 0,t)})))},_s=a.RegExp,Fs=c((function(){var e=_s("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ms=Fs||c((function(){return!_s("a","y").sticky})),Bs={BROKEN_CARET:Fs||c((function(){var e=_s("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ms,UNSUPPORTED_Y:Fs},Ns=a.RegExp,Ds=c((function(){var e=Ns(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Gs=a.RegExp,Hs=c((function(){var e=Gs("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$s=et.get,Ws=ee("native-string-replace",String.prototype.replace),Vs=RegExp.prototype.exec,Js=Vs,Ys=w("".charAt),Ks=w("".indexOf),Qs=w("".replace),Xs=w("".slice),Zs=(Cs=/b*/g,l(Vs,Ls=/a/,"a"),l(Vs,Cs,"a"),0!==Ls.lastIndex||0!==Cs.lastIndex),eu=Bs.BROKEN_CARET,tu=void 0!==/()??/.exec("")[1];(Zs||tu||eu||Ds||Hs)&&(Js=function(e){var t,r,n,o,i,a,c,s=this,u=$s(s),f=Gt(e),h=u.raw;if(h)return h.lastIndex=s.lastIndex,t=l(Js,h,f),s.lastIndex=h.lastIndex,t;var p=u.groups,d=eu&&s.sticky,v=l(Zn,s),g=s.source,y=0,m=f;if(d&&(v=Qs(v,"y",""),-1===Ks(v,"g")&&(v+="g"),m=Xs(f,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ys(f,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),r=new RegExp("^(?:"+g+")",v)),tu&&(r=new RegExp("^"+g+"$(?!\\s)",v)),Zs&&(n=s.lastIndex),o=l(Vs,d?r:s,m),d?o?(o.input=Xs(o.input,y),o[0]=Xs(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Zs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tu&&o&&o.length>1&&l(Ws,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Qt(null),i=0;i<p.length;i++)a[(c=p[i])[0]]=o[c[1]];return o});var ru=Js;Tt({target:"RegExp",proto:!0,forced:/./.exec!==ru},{exec:ru});var nu=pe("species"),ou=RegExp.prototype,iu=function(e,t,r,n){var o=pe(e),i=!c((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!c((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[nu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=w(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var a=w(e),c=t.exec;return c===ru||c===ou.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));rt(String.prototype,e,u[0]),rt(ou,o,u[1])}n&&Te(ou[o],"sham",!0)},au=xi.charAt,cu=function(e,t,r){return t+(r?au(e,t).length:1)},su=Math.floor,uu=w("".charAt),fu=w("".replace),lu=w("".slice),hu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pu=/\$([$&'`]|\d{1,2})/g,du=function(e,t,r,n,o,i){var a=r+e.length,c=n.length,s=pu;return void 0!==o&&(o=re(o),s=hu),fu(i,s,(function(i,s){var u;switch(uu(s,0)){case"$":return"$";case"&":return e;case"`":return lu(t,0,r);case"'":return lu(t,a);case"<":u=o[lu(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>c){var l=su(f/10);return 0===l?i:l<=c?void 0===n[l-1]?uu(s,1):n[l-1]+uu(s,1):i}u=n[f-1]}return void 0===u?"":u}))},vu=TypeError,gu=function(e,t){var r=e.exec;if(L(r)){var n=l(r,e,t);return null!==n&&ke(n),n}if("RegExp"===P(e))return l(ru,e,t);throw vu("RegExp#exec called on incompatible receiver")},yu=pe("replace"),mu=Math.max,bu=Math.min,wu=w([].concat),Ou=w([].push),xu=w("".indexOf),Pu=w("".slice),Su="$0"==="a".replace(/./,"$0"),Iu=!!/./[yu]&&""===/./[yu]("a","$0");iu("replace",(function(e,t,r){var n=Iu?"$":"$0";return[function(e,r){var n=E(this),o=null==e?void 0:Y(e,yu);return o?l(o,e,n,r):l(t,Gt(n),e,r)},function(e,o){var i=ke(this),a=Gt(e);if("string"==typeof o&&-1===xu(o,n)&&-1===xu(o,"$<")){var c=r(t,i,a,o);if(c.done)return c.value}var s=L(o);s||(o=Gt(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=gu(i,a);if(null===h)break;if(Ou(l,h),!u)break;""===Gt(h[0])&&(i.lastIndex=cu(a,lt(i.lastIndex),f))}for(var p,d="",v=0,g=0;g<l.length;g++){for(var y=Gt((h=l[g])[0]),m=mu(bu(at(h.index),a.length),0),b=[],w=1;w<h.length;w++)Ou(b,void 0===(p=h[w])?p:String(p));var O=h.groups;if(s){var x=wu([y],b,m,a);void 0!==O&&Ou(x,O);var P=Gt(un(o,void 0,x))}else P=du(y,a,m,b,O,o);m>=v&&(d+=Pu(a,v,m)+P,v=m+y.length)}return d+Pu(a,v)}]}),!!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Su||Iu);var ju=Function,ku=w([].concat),Eu=w([].join),Ru={},Lu=function(e,t,r){if(!oe(Ru,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";Ru[t]=ju("C,a","return new C("+Eu(n,",")+")")}return Ru[t](e,r)},Cu=u?ju.bind:function(e){var t=J(this),r=t.prototype,n=fn(arguments,1),o=function(){var r=ku(n,fn(arguments));return this instanceof o?Lu(t,r.length,r):t.apply(e,r)};return C(r)&&(o.prototype=r),o},Tu=U("Reflect","construct"),Uu=Object.prototype,Au=[].push,zu=c((function(){function e(){}return!(Tu((function(){}),[],e)instanceof e)})),qu=!c((function(){Tu((function(){}))})),_u=zu||qu;Tt({target:"Reflect",stat:!0,forced:_u,sham:_u},{construct:function(e,t){Ga(e),ke(t);var r=arguments.length<3?e:Ga(arguments[2]);if(qu&&!zu)return Tu(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 un(Au,n,t),new(un(Cu,e,n))}var o=r.prototype,i=Qt(C(o)?o:Uu),a=un(e,i,t);return C(a)?a:i}});var Fu=TypeError,Mu=function(e){if(e>9007199254740991)throw Fu("Maximum allowed index exceeded");return e},Bu=pe("isConcatSpreadable"),Nu=B>=51||!c((function(){var e=[];return e[Bu]=!1,e.concat()[0]!==e})),Du=jn("concat"),Gu=function(e){if(!C(e))return!1;var t=e[Bu];return void 0!==t?!!t:pr(e)};function Hu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wu(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&&$u(e,t)}function Vu(e,t){if(t&&("object"===ks(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hu(e)}function Ju(e){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yu(){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 Ku(e,t,r){return(Ku=Yu()?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&&$u(o,r.prototype),o}).apply(null,arguments)}function Qu(e){var t="function"==typeof Map?new Map:void 0;return(Qu=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 Ku(e,arguments,Ju(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$u(n,e)})(e)}function Xu(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=Ju(e);if(t){var o=Ju(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vu(this,r)}}Tt({target:"Array",proto:!0,arity:1,forced:!Nu||!Du},{concat:function(e){var t,r,n,o,i,a=re(this),c=Ir(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gu(i=-1===t?a:arguments[t]))for(o=ht(i),Mu(s+o),r=0;r<o;r++,s++)r in i&&Xt(c,s,i[r]);else Mu(s+1),Xt(c,s++,i);return c.length=s,c}});var Zu=function(e){Wu(r,Qu(Error));var t=Xu(r);function r(e){var n;return co(this,r),fo(Hu(n=t.call(this,"".concat(e.status," ").concat(e.statusText))),"response",void 0),n.response=e,n}return uo(r)}();function ef(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 tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(r),!0).forEach((function(t){fo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rf,nf=function(){var e=ao(_o.mark((function e(t,r,n,o){var i,a,c,s,u,f;return _o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=tf(tf({},null==n?void 0:n.headers),null==r?void 0:r.headers),c=tf(tf({},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"}),s=(null==n?void 0:n.fetch)||qs,e.next=5,s(t,c);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 Zu(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)}}(),of=function(e,t,r){return r.get&&tt(r.get,t,{getter:!0}),r.set&&tt(r.set,t,{setter:!0}),Ce.f(e,t,r)},af=Object.assign,cf=Object.defineProperty,sf=w([].concat),uf=!af||c((function(){if(s&&1!==af({b:1},af(cf({},"a",{enumerable:!0,get:function(){cf(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!=af({},e)[r]||"abcdefghijklmnopqrst"!=Ut(af({},t)).join("")}))?function(e,t){for(var r=re(e),n=arguments.length,o=1,i=wt.f,a=d.f;n>o;)for(var c,u=j(arguments[o++]),f=i?sf(Ut(u),i(u)):Ut(u),h=f.length,p=0;h>p;)c=f[p++],s&&!l(a,u,c)||(r[c]=u[c]);return r}:af,ff=function(e,t,r,n){try{return n?t(ke(r)[0],r[1]):t(r)}catch(t){ps(e,"throw",t)}},lf=Array,hf=function(e){var t=re(e),r=xr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=hr(o,n>2?arguments[2]:void 0));var a,c,s,u,f,h,p=qi(t),d=0;if(!p||this===lf&&hs(p))for(a=ht(t),c=r?new this(a):lf(a);a>d;d++)h=i?o(t[d],d):t[d],Xt(c,d,h);else for(f=(u=Fi(t,p)).next,c=r?new this:[];!(s=l(f,u)).done;d++)h=i?ff(u,o,[s.value,d],!0):s.value,Xt(c,d,h);return c.length=d,c},pf=/[^\0-\u007E]/,df=/[.\u3002\uFF0E\uFF61]/g,vf="Overflow: input needs wider integers to process",gf=RangeError,yf=w(df.exec),mf=Math.floor,bf=String.fromCharCode,wf=w("".charCodeAt),Of=w([].join),xf=w([].push),Pf=w("".replace),Sf=w("".split),If=w("".toLowerCase),jf=function(e){return e+22+75*(e<26)},kf=function(e,t,r){var n=0;for(e=r?mf(e/700):e>>1,e+=mf(e/t);e>455;)e=mf(e/35),n+=36;return mf(n+36*e/(e+38))},Ef=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=wf(e,r++);if(o>=55296&&o<=56319&&r<n){var i=wf(e,r++);56320==(64512&i)?xf(t,((1023&o)<<10)+(1023&i)+65536):(xf(t,o),r--)}else xf(t,o)}return t}(e)).length,i=128,a=0,c=72;for(t=0;t<e.length;t++)(r=e[t])<128&&xf(n,bf(r));var s=n.length,u=s;for(s&&xf(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>mf((2147483647-a)/l))throw gf(vf);for(a+=(f-i)*l,i=f,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw gf(vf);if(r==i){for(var h=a,p=36;;){var d=p<=c?1:p>=c+26?26:p-c;if(h<d)break;var v=h-d,g=36-d;xf(n,bf(jf(d+v%g))),h=mf(v/g),p+=36}xf(n,bf(jf(h))),c=kf(a,l,u==s),a=0,u++}}a++,i++}return Of(n,"")},Rf=xi.codeAt,Lf=et.set,Cf=et.getterFor("URL"),Tf=Ta.URLSearchParams,Uf=Ta.getState,Af=a.URL,zf=a.TypeError,qf=a.parseInt,_f=Math.floor,Ff=Math.pow,Mf=w("".charAt),Bf=w(/./.exec),Nf=w([].join),Df=w(1..toString),Gf=w([].pop),Hf=w([].push),$f=w("".replace),Wf=w([].shift),Vf=w("".split),Jf=w("".slice),Yf=w("".toLowerCase),Kf=w([].unshift),Qf=/[a-z]/i,Xf=/[\d+-.a-z]/i,Zf=/\d/,el=/^0x/i,tl=/^[0-7]+$/,rl=/^\d+$/,nl=/^[\da-f]+$/i,ol=/[\0\t\n\r #%/:<>?@[\\\]^|]/,il=/[\0\t\n\r #/:<>?@[\\\]^|]/,al=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,cl=/[\t\n\r]/g,sl=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Kf(t,e%256),e=_f(e/256);return Nf(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+=Df(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ul={},fl=uf({},ul,{" ":1,'"':1,"<":1,">":1,"`":1}),ll=uf({},fl,{"#":1,"?":1,"{":1,"}":1}),hl=uf({},ll,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pl=function(e,t){var r=Rf(e,0);return r>32&&r<127&&!oe(t,e)?e:encodeURIComponent(e)},dl={ftp:21,file:null,http:80,https:443,ws:80,wss:443},vl=function(e,t){var r;return 2==e.length&&Bf(Qf,Mf(e,0))&&(":"==(r=Mf(e,1))||!t&&"|"==r)},gl=function(e){var t;return e.length>1&&vl(Jf(e,0,2))&&(2==e.length||"/"===(t=Mf(e,2))||"\\"===t||"?"===t||"#"===t)},yl=function(e){return"."===e||"%2e"===Yf(e)},ml={},bl={},wl={},Ol={},xl={},Pl={},Sl={},Il={},jl={},kl={},El={},Rl={},Ll={},Cl={},Tl={},Ul={},Al={},zl={},ql={},_l={},Fl={},Ml=function(e,t,r){var n,o,i,a=Gt(e);if(t){if(o=this.parse(a))throw zf(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ml(r,!0)),o=this.parse(a,null,n))throw zf(o);(i=Uf(new Tf)).bindURL(this),this.searchParams=i}};Ml.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,c,s=this,u=t||ml,f=0,l="",h=!1,p=!1,d=!1;for(e=Gt(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=$f(e,al,"")),e=$f(e,cl,""),n=hf(e);f<=n.length;){switch(o=n[f],u){case ml:if(!o||!Bf(Qf,o)){if(t)return"Invalid scheme";u=wl;continue}l+=Yf(o),u=bl;break;case bl:if(o&&(Bf(Xf,o)||"+"==o||"-"==o||"."==o))l+=Yf(o);else{if(":"!=o){if(t)return"Invalid scheme";l="",u=wl,f=0;continue}if(t&&(s.isSpecial()!=oe(dl,l)||"file"==l&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=l,t)return void(s.isSpecial()&&dl[s.scheme]==s.port&&(s.port=null));l="","file"==s.scheme?u=Cl:s.isSpecial()&&r&&r.scheme==s.scheme?u=Ol:s.isSpecial()?u=Il:"/"==n[f+1]?(u=xl,f++):(s.cannotBeABaseURL=!0,Hf(s.path,""),u=ql)}break;case wl:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=tr(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,u=Fl;break}u="file"==r.scheme?Cl:Pl;continue;case Ol:if("/"!=o||"/"!=n[f+1]){u=Pl;continue}u=jl,f++;break;case xl:if("/"==o){u=kl;break}u=zl;continue;case Pl:if(s.scheme=r.scheme,o==rf)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=tr(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())u=Sl;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=tr(r.path),s.query="",u=_l;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=tr(r.path),s.path.length--,u=zl;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=tr(r.path),s.query=r.query,s.fragment="",u=Fl}break;case Sl:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,u=zl;continue}u=kl}else u=jl;break;case Il:if(u=jl,"/"!=o||"/"!=Mf(l,f+1))continue;f++;break;case jl:if("/"!=o&&"\\"!=o){u=kl;continue}break;case kl:if("@"==o){h&&(l="%40"+l),h=!0,i=hf(l);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=pl(g,hl);d?s.password+=y:s.username+=y}else d=!0}l=""}else if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(h&&""==l)return"Invalid authority";f-=hf(l).length+1,l="",u=El}else l+=o;break;case El:case Rl:if(t&&"file"==s.scheme){u=Ul;continue}if(":"!=o||p){if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==l)return"Invalid host";if(t&&""==l&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(l))return a;if(l="",u=Al,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return"Invalid host";if(a=s.parseHost(l))return a;if(l="",u=Ll,t==Rl)return}break;case Ll:if(!Bf(Zf,o)){if(o==rf||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=l){var m=qf(l,10);if(m>65535)return"Invalid port";s.port=s.isSpecial()&&m===dl[s.scheme]?null:m,l=""}if(t)return;u=Al;continue}return"Invalid port"}l+=o;break;case Cl:if(s.scheme="file","/"==o||"\\"==o)u=Tl;else{if(!r||"file"!=r.scheme){u=zl;continue}if(o==rf)s.host=r.host,s.path=tr(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=tr(r.path),s.query="",u=_l;else{if("#"!=o){gl(Nf(tr(n,f),""))||(s.host=r.host,s.path=tr(r.path),s.shortenPath()),u=zl;continue}s.host=r.host,s.path=tr(r.path),s.query=r.query,s.fragment="",u=Fl}}break;case Tl:if("/"==o||"\\"==o){u=Ul;break}r&&"file"==r.scheme&&!gl(Nf(tr(n,f),""))&&(vl(r.path[0],!0)?Hf(s.path,r.path[0]):s.host=r.host),u=zl;continue;case Ul:if(o==rf||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&vl(l))u=zl;else if(""==l){if(s.host="",t)return;u=Al}else{if(a=s.parseHost(l))return a;if("localhost"==s.host&&(s.host=""),t)return;l="",u=Al}continue}l+=o;break;case Al:if(s.isSpecial()){if(u=zl,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=rf&&(u=zl,"/"!=o))continue}else s.fragment="",u=Fl;else s.query="",u=_l;break;case zl:if(o==rf||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(c=Yf(c=l))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||Hf(s.path,"")):yl(l)?"/"==o||"\\"==o&&s.isSpecial()||Hf(s.path,""):("file"==s.scheme&&!s.path.length&&vl(l)&&(s.host&&(s.host=""),l=Mf(l,0)+":"),Hf(s.path,l)),l="","file"==s.scheme&&(o==rf||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)Wf(s.path);"?"==o?(s.query="",u=_l):"#"==o&&(s.fragment="",u=Fl)}else l+=pl(o,ll);break;case ql:"?"==o?(s.query="",u=_l):"#"==o?(s.fragment="",u=Fl):o!=rf&&(s.path[0]+=pl(o,ul));break;case _l:t||"#"!=o?o!=rf&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":pl(o,ul)):(s.fragment="",u=Fl);break;case Fl:o!=rf&&(s.fragment+=pl(o,fl))}f++}},parseHost:function(e){var t,r,n;if("["==Mf(e,0)){if("]"!=Mf(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,o,i,a,c,s=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,h=function(){return Mf(e,l)};if(":"==h()){if(":"!=Mf(e,1))return;l+=2,f=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&Bf(nl,h());)t=16*t+qf(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Bf(Zf,h()))return;for(;Bf(Zf,h());){if(i=qf(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}s[u]=256*s[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;s[u++]=t}else{if(null!==f)return;l++,f=++u}}if(null!==f)for(a=u-f,u=7;0!=u&&a>0;)c=s[u],s[u--]=s[f+a-1],s[f+--a]=c;else if(8!=u)return;return s}(Jf(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=Sf(Pf(If(e),df,"."),".");for(t=0;t<o.length;t++)r=o[t],xf(n,yf(pf,r)?"xn--"+Ef(r):r);return Of(n,".")}(e),Bf(ol,e))return"Invalid host";if(null===(t=function(e){var t,r,n,o,i,a,c,s=Vf(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==Mf(o,0)&&(i=Bf(el,o)?16:8,o=Jf(o,8==i?1:2)),""===o)a=0;else{if(!Bf(10==i?rl:8==i?tl:nl,o))return e;a=qf(o,i)}Hf(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=Ff(256,5-t))return null}else if(a>255)return null;for(c=Gf(r),n=0;n<r.length;n++)c+=r[n]*Ff(256,3-n);return c}(e)))return"Invalid host";this.host=t}else{if(Bf(il,e))return"Invalid host";for(t="",r=hf(e),n=0;n<r.length;n++)t+=pl(r[n],ul);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return oe(dl,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&vl(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,c=e.query,s=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=sl(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Nf(a,"/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},setHref:function(e){var t=this.parse(e);if(t)throw zf(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Bl(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+sl(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Gt(e)+":",ml)},getUsername:function(){return this.username},setUsername:function(e){var t=hf(Gt(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pl(t[r],hl)}},getPassword:function(){return this.password},setPassword:function(e){var t=hf(Gt(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pl(t[r],hl)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?sl(e):sl(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,El)},getHostname:function(){var e=this.host;return null===e?"":sl(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Rl)},getPort:function(){var e=this.port;return null===e?"":Gt(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Gt(e))?this.port=null:this.parse(e,Ll))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Nf(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Al))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Gt(e))?this.query=null:("?"==Mf(e,0)&&(e=Jf(e,1)),this.query="",this.parse(e,_l)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Gt(e))?("#"==Mf(e,0)&&(e=Jf(e,1)),this.fragment="",this.parse(e,Fl)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Bl=function(e){var t=Ai(this,Nl),r=Bi(arguments.length,1)>1?arguments[1]:void 0,n=Lf(t,new Ml(e,!1,r));s||(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())},Nl=Bl.prototype,Dl=function(e,t){return{get:function(){return Cf(this)[e]()},set:t&&function(e){return Cf(this)[t](e)},configurable:!0,enumerable:!0}};if(s&&(of(Nl,"href",Dl("serialize","setHref")),of(Nl,"origin",Dl("getOrigin")),of(Nl,"protocol",Dl("getProtocol","setProtocol")),of(Nl,"username",Dl("getUsername","setUsername")),of(Nl,"password",Dl("getPassword","setPassword")),of(Nl,"host",Dl("getHost","setHost")),of(Nl,"hostname",Dl("getHostname","setHostname")),of(Nl,"port",Dl("getPort","setPort")),of(Nl,"pathname",Dl("getPathname","setPathname")),of(Nl,"search",Dl("getSearch","setSearch")),of(Nl,"searchParams",Dl("getSearchParams")),of(Nl,"hash",Dl("getHash","setHash"))),rt(Nl,"toJSON",(function(){return Cf(this).serialize()}),{enumerable:!0}),rt(Nl,"toString",(function(){return Cf(this).serialize()}),{enumerable:!0}),Af){var Gl=Af.createObjectURL,Hl=Af.revokeObjectURL;Gl&&rt(Bl,"createObjectURL",hr(Gl,Af)),Hl&&rt(Bl,"revokeObjectURL",hr(Hl,Af))}function $l(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=Ju(e);if(t){var o=Ju(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vu(this,r)}}fr(Bl,"URL"),Tt({global:!0,constructor:!0,forced:!Ti,sham:!s},{URL:Bl}),iu("match",(function(e,t,r){return[function(t){var r=E(this),n=null==t?void 0:Y(t,e);return n?l(n,t,r):new RegExp(t)[e](Gt(r))},function(e){var n=ke(this),o=Gt(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return gu(n,o);var a=n.unicode;n.lastIndex=0;for(var c,s=[],u=0;null!==(c=gu(n,o));){var f=Gt(c[0]);s[u]=f,""===f&&(n.lastIndex=cu(o,lt(n.lastIndex),a)),u++}return 0===u?null:s}]}));var Wl=function(e){Wu(r,Qu(URL));var t=$l(r);function r(e,n,o){var i;co(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 uo(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}(),Vl="commerce-sdk-isomorphic@4.1.0";function Jl(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 Yl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(r),!0).forEach((function(t){fo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kl=function(){function e(t){co(this,e),fo(this,"clientConfig",void 0);var r=Yl({},t);r.baseUri||(r.baseUri=(this instanceof e?this.constructor:void 0).defaultBaseUri),this.clientConfig=new za(r)}var t,r,n,o;return uo(e,[{key:"getCategories",value:(o=ao(_o.mark((function e(t,r){var n,o,i,a,c,s,u;return _o.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.ids){e.next=17;break}a.ids=n.ids,e.next=22;break;case 17:if(void 0===o.ids){e.next=21;break}a.ids=o.ids,e.next=22;break;case 21:throw new Error("Missing required query parameter: ids");case 22:if(void 0!==n.levels?a.levels=n.levels:void 0!==o.levels&&(a.levels=o.levels),void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),void 0===n.siteId){e.next=28;break}a.siteId=n.siteId,e.next=33;break;case 28:if(void 0===o.siteId){e.next=32;break}a.siteId=o.siteId,e.next=33;break;case 32:throw new Error("Missing required query parameter: siteId");case 33: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 getCategories: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),c=new Wl("/organizations/{organizationId}/categories",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),s=Yl(Yl({},this.clientConfig.headers),null==t?void 0:t.headers),Ts||(s["user-agent"]=[s["user-agent"],Vl].join(" ")),e.next=39,nf(c.toString(),{method:"GET",headers:s},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 o.apply(this,arguments)})},{key:"getCategory",value:(n=ao(_o.mark((function e(t,r){var n,o,i,a,c,s,u;return _o.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.id){e.next=7;break}i.id=n.id,e.next=12;break;case 7:if(void 0===o.id){e.next=11;break}i.id=o.id,e.next=12;break;case 11:throw new Error("Missing required path parameter: id");case 12:if(void 0===n.organizationId){e.next=16;break}i.organizationId=n.organizationId,e.next=21;break;case 16:if(void 0===o.organizationId){e.next=20;break}i.organizationId=o.organizationId,e.next=21;break;case 20:throw new Error("Missing required path parameter: organizationId");case 21:if(a={},void 0!==n.levels?a.levels=n.levels:void 0!==o.levels&&(a.levels=o.levels),void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),void 0===n.siteId){e.next=28;break}a.siteId=n.siteId,e.next=33;break;case 28:if(void 0===o.siteId){e.next=32;break}a.siteId=o.siteId,e.next=33;break;case 32:throw new Error("Missing required query parameter: siteId");case 33: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 getCategory: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),c=new Wl("/organizations/{organizationId}/categories/{id}",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),s=Yl(Yl({},this.clientConfig.headers),null==t?void 0:t.headers),Ts||(s["user-agent"]=[s["user-agent"],Vl].join(" ")),e.next=39,nf(c.toString(),{method:"GET",headers:s},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:"getProduct",value:(r=ao(_o.mark((function e(t,r){var n,o,i,a,c,s,u;return _o.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(void 0===n.id){e.next=16;break}i.id=n.id,e.next=21;break;case 16:if(void 0===o.id){e.next=20;break}i.id=o.id,e.next=21;break;case 20:throw new Error("Missing required path parameter: id");case 21:if(a={},void 0!==n.inventoryIds?a.inventoryIds=n.inventoryIds:void 0!==o.inventoryIds&&(a.inventoryIds=o.inventoryIds),void 0!==n.expand?a.expand=n.expand:void 0!==o.expand&&(a.expand=o.expand),void 0!==n.allImages?a.allImages=n.allImages:void 0!==o.allImages&&(a.allImages=o.allImages),void 0!==n.perPricebook?a.perPricebook=n.perPricebook:void 0!==o.perPricebook&&(a.perPricebook=o.perPricebook),void 0!==n.select?a.select=n.select:void 0!==o.select&&(a.select=o.select),void 0!==n.currency?a.currency=n.currency:void 0!==o.currency&&(a.currency=o.currency),void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),void 0===n.siteId){e.next=33;break}a.siteId=n.siteId,e.next=38;break;case 33:if(void 0===o.siteId){e.next=37;break}a.siteId=o.siteId,e.next=38;break;case 37:throw new Error("Missing required query parameter: siteId");case 38: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 getProduct: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),c=new Wl("/organizations/{organizationId}/products/{id}",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),s=Yl(Yl({},this.clientConfig.headers),null==t?void 0:t.headers),Ts||(s["user-agent"]=[s["user-agent"],Vl].join(" ")),e.next=44,nf(c.toString(),{method:"GET",headers:s},this.clientConfig,r);case 44:return u=e.sent,e.abrupt("return",u);case 46:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"getProducts",value:(t=ao(_o.mark((function e(t,r){var n,o,i,a,c,s,u;return _o.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.ids){e.next=17;break}a.ids=n.ids,e.next=22;break;case 17:if(void 0===o.ids){e.next=21;break}a.ids=o.ids,e.next=22;break;case 21:throw new Error("Missing required query parameter: ids");case 22:if(void 0!==n.inventoryIds?a.inventoryIds=n.inventoryIds:void 0!==o.inventoryIds&&(a.inventoryIds=o.inventoryIds),void 0!==n.expand?a.expand=n.expand:void 0!==o.expand&&(a.expand=o.expand),void 0!==n.allImages?a.allImages=n.allImages:void 0!==o.allImages&&(a.allImages=o.allImages),void 0!==n.perPricebook?a.perPricebook=n.perPricebook:void 0!==o.perPricebook&&(a.perPricebook=o.perPricebook),void 0===n.siteId){e.next=30;break}a.siteId=n.siteId,e.next=35;break;case 30:if(void 0===o.siteId){e.next=34;break}a.siteId=o.siteId,e.next=35;break;case 34:throw new Error("Missing required query parameter: siteId");case 35:return void 0!==n.select?a.select=n.select:void 0!==o.select&&(a.select=o.select),void 0!==n.locale?a.locale=n.locale:void 0!==o.locale&&(a.locale=o.locale),void 0!==n.currency?a.currency=n.currency:void 0!==o.currency&&(a.currency=o.currency),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 getProducts: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),c=new Wl("/organizations/{organizationId}/products",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),s=Yl(Yl({},this.clientConfig.headers),null==t?void 0:t.headers),Ts||(s["user-agent"]=[s["user-agent"],Vl].join(" ")),e.next=44,nf(c.toString(),{method:"GET",headers:s},this.clientConfig,r);case 44:return u=e.sent,e.abrupt("return",u);case 46:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();fo(Kl,"defaultBaseUri",e),fo(Kl,"apiPaths",{getCategories:"/organizations/{organizationId}/categories",getCategory:"/organizations/{organizationId}/categories/{id}",getProduct:"/organizations/{organizationId}/products/{id}",getProducts:"/organizations/{organizationId}/products"}),fo(Kl,"paramKeys",{getCategories:["organizationId","ids","siteId","levels","locale"],getCategoriesRequired:["organizationId","ids","siteId"],getCategory:["id","organizationId","siteId","levels","locale"],getCategoryRequired:["id","organizationId","siteId"],getProduct:["organizationId","id","siteId","inventoryIds","expand","allImages","perPricebook","select","currency","locale"],getProductRequired:["organizationId","id","siteId"],getProducts:["organizationId","ids","siteId","inventoryIds","expand","allImages","perPricebook","select","locale","currency"],getProductsRequired:["organizationId","ids","siteId"]});export{Kl as ShopperProducts,e as defaultBaseUri};