@pushwoosh/http-client 1.0.1 → 1.0.3
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/{lib → dist}/http-client.d.ts +70 -70
- package/{lib → dist}/http-client.errors.d.ts +28 -28
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -17
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- /package/{lib → dist}/http-client.types.d.ts +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/http-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"
|
|
8
|
+
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"start": "
|
|
12
|
-
"build": "
|
|
11
|
+
"start": "npm run development",
|
|
12
|
+
"build": "npm run production",
|
|
13
|
+
"development": "cross-env NODE_ENV=development webpack-dev-server --config webpack.development.config.js",
|
|
14
|
+
"production": "cross-env NODE_ENV=production webpack --config webpack.production.config.js",
|
|
13
15
|
"check": "npm run check:lint && npm run check:types && npm run check:tests",
|
|
14
16
|
"check:lint": "echo \"Run check:lint\" && eslint .",
|
|
15
17
|
"check:tests": "echo \"Run check:tests\" && jest --passWithNoTests",
|
|
@@ -18,7 +20,11 @@
|
|
|
18
20
|
"pre-commit": "check",
|
|
19
21
|
"dependencies": {
|
|
20
22
|
"@babel/runtime-corejs3": "^7.16.3",
|
|
21
|
-
"core-js": "^3.
|
|
23
|
+
"core-js": "^3.20.0",
|
|
24
|
+
"js-cookie": "^3.0.1",
|
|
25
|
+
"jwt-decode": "^3.1.2",
|
|
26
|
+
"path-to-regexp": "^6.2.0",
|
|
27
|
+
"qs": "^6.10.2",
|
|
22
28
|
"tslib": "^2.3.1"
|
|
23
29
|
},
|
|
24
30
|
"devDependencies": {
|
|
@@ -45,28 +51,21 @@
|
|
|
45
51
|
"eslint-plugin-react": "^7.26.1",
|
|
46
52
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
47
53
|
"jest": "^26.6.3",
|
|
48
|
-
"js-cookie": "^3.0.1",
|
|
49
|
-
"jwt-decode": "^3.1.2",
|
|
50
|
-
"path-to-regexp": "^6.2.0",
|
|
51
54
|
"pre-commit": "^1.2.2",
|
|
52
|
-
"qs": "^6.10.2",
|
|
53
55
|
"terser-webpack-plugin": "^4.2.3",
|
|
54
56
|
"ts-jest": "^26.5.6",
|
|
55
57
|
"ts-loader": "^8.3.0",
|
|
56
58
|
"typescript": "^4.4.4",
|
|
57
59
|
"webpack": "^4.46.0",
|
|
58
60
|
"webpack-cli": "^3.3.12",
|
|
61
|
+
"webpack-config-single-spa": "^1.18.3",
|
|
59
62
|
"webpack-dev-server": "^3.11.2",
|
|
60
63
|
"webpack-merge": "^5.8.0"
|
|
61
64
|
},
|
|
62
65
|
"peerDependencies": {
|
|
63
|
-
"axios": "^0.24.0"
|
|
64
|
-
"js-cookie": "^3.0.1",
|
|
65
|
-
"jwt-decode": "^3.1.2",
|
|
66
|
-
"path-to-regexp": "^6.2.0",
|
|
67
|
-
"qs": "^6.10.2"
|
|
66
|
+
"axios": "^0.24.0"
|
|
68
67
|
},
|
|
69
68
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
69
|
+
"node": ">= 14"
|
|
71
70
|
}
|
|
72
71
|
}
|
package/lib/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("js-cookie"),require("jwt-decode"),require("qs"),require("axios"),require("path-to-regexp"));else if("function"==typeof define&&define.amd)define(["js-cookie","jwt-decode","qs","axios","path-to-regexp"],r);else{var n="object"==typeof exports?r(require("js-cookie"),require("jwt-decode"),require("qs"),require("axios"),require("path-to-regexp")):r(t["js-cookie"],t["jwt-decode"],t.qs,t.axios,t["path-to-regexp"]);for(var e in n)("object"==typeof exports?exports:t)[e]=n[e]}}(window,(function(t,r,n,e,o){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=163)}([function(t,r,n){(function(r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||function(){return this}()||Function("return this")()}).call(this,n(95))},function(t,r,n){var e=n(0),o=n(67),i=n(9),u=n(68),c=n(66),a=n(65),s=o("wks"),f=e.Symbol,p=f&&f.for,l=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var r="Symbol."+t;c&&i(f,t)?s[t]=f[t]:s[t]=a&&p?p(r):l(r)}return s[t]}},function(t,r){t.exports=function(t){return"function"==typeof t}},function(t,r){var n=Function.prototype,e=n.bind,o=n.call,i=e&&e.bind(o);t.exports=e?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,r,n){t.exports=n(160)},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){"use strict";var e=n(0),o=n(38),i=n(3),u=n(2),c=n(39).f,a=n(70),s=n(20),f=n(30),p=n(13),l=n(9),v=function(t){var r=function(n,e,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var n,o,h,d,y,g,w,x,m=t.target,b=t.global,T=t.stat,O=t.proto,E=b?e:T?e[m]:(e[m]||{}).prototype,S=b?s:s[m]||p(s,m,{})[m],j=S.prototype;for(h in r)n=!a(b?h:m+(T?".":"#")+h,t.forced)&&E&&l(E,h),y=S[h],n&&(g=t.noTargetGet?(x=c(E,h))&&x.value:E[h]),d=n&&g?g:r[h],n&&typeof y==typeof d||(w=t.bind&&n?f(d,e):t.wrap&&n?v(d):O&&u(d)?i(d):d,(t.sham||d&&d.sham||y&&y.sham)&&p(w,"sham",!0),p(S,h,w),O&&(l(s,o=m+"Prototype")||p(s,o,{}),p(s[o],h,d),t.real&&j&&!j[h]&&p(j,h,d)))}},function(t,r,n){var e=n(2);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},function(t,r){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,r,n){var e=n(3),o=n(43),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},function(t,r,n){var e=n(0),o=n(7),i=e.String,u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,r,n){var e=n(20),o=n(0),i=n(2),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?u(e[t])||u(o[t]):e[t]&&e[t][r]||o[t]&&o[t][r]}},function(t,r,n){var e=n(5);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r,n){var e=n(12),o=n(16),i=n(18);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(3);t.exports=e({}.isPrototypeOf)},function(t,r,n){var e=n(0),o=n(2),i=n(29),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,r,n){var e=n(0),o=n(12),i=n(69),u=n(10),c=n(40),a=e.TypeError,s=Object.defineProperty;r.f=o?s:function(t,r,n){if(u(t),r=c(r),u(n),i)try{return s(t,r,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(r,n){r.exports=t},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(97),o=n(27);t.exports=function(t){return e(o(t))}},function(t,r){t.exports={}},function(t,r){t.exports=!0},function(t,r){t.exports={}},function(t,r,n){var e=n(3),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,r,n){var e=n(11);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(0),o=n(46),i=n(2),u=n(23),c=n(1)("toStringTag"),a=e.Object,s="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=a(t),c))?n:s?u(r):"Object"==(e=u(r))&&i(r.callee)?"Arguments":e}},function(t,r,n){var e=n(13);t.exports=function(t,r,n,o){o&&o.enumerable?t[r]=n:e(t,r,n)}},function(t,r,n){var e=n(0).TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},function(t,r,n){var e,o,i=n(0),u=n(24),c=i.process,a=i.Deno,s=c&&c.versions||a&&a.version,f=s&&s.v8;f&&(o=(e=f.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},function(t,r,n){var e=n(0).String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,r,n){var e=n(3),o=n(15),i=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?i(t,r):function(){return t.apply(r,arguments)}}},function(t,r,n){var e=n(101);t.exports=function(t){return e(t.length)}},function(t,r,n){var e=n(20);t.exports=function(t){return e[t+"Prototype"]}},function(t,r,n){var e=n(0),o=n(25),i=e.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,r,n){var e=n(3),o=n(10),i=n(115);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t(n,e):n.__proto__=e,n}}():void 0)},function(t,r,n){var e=n(0),o=n(30),i=n(8),u=n(10),c=n(29),a=n(124),s=n(31),f=n(14),p=n(125),l=n(78),v=n(126),h=e.TypeError,d=function(t,r){this.stopped=t,this.result=r},y=d.prototype;t.exports=function(t,r,n){var e,g,w,x,m,b,T,O=n&&n.that,E=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),A=o(r,O),_=function(t){return e&&v(e,"normal",t),new d(!0,t)},k=function(t){return E?(u(t),j?A(t[0],t[1],_):A(t[0],t[1])):j?A(t,_):A(t)};if(S)e=t;else{if(!(g=l(t)))throw h(c(t)+" is not iterable");if(a(g)){for(w=0,x=s(t);x>w;w++)if((m=k(t[w]))&&f(y,m))return m;return new d(!1)}e=p(t,g)}for(b=e.next;!(T=i(b,e)).done;){try{m=k(T.value)}catch(t){v(e,"throw",t)}if("object"==typeof m&&m&&f(y,m))return m}return new d(!1)}},function(t,r,n){"use strict";var e=n(15),o=function(t){var r,n;this.promise=new t((function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e})),this.resolve=e(r),this.reject=e(n)};t.exports.f=function(t){return new o(t)}},function(t,r,n){t.exports=n(154)},function(t,r){var n=Function.prototype,e=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(e):function(){return i.apply(e,arguments)})},function(t,r,n){var e=n(12),o=n(8),i=n(96),u=n(18),c=n(19),a=n(40),s=n(9),f=n(69),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=a(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return u(!o(i.f,t,r),t[r])}},function(t,r,n){var e=n(98),o=n(64);t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},function(t,r,n){var e=n(15);t.exports=function(t,r){var n=t[r];return null==n?void 0:e(n)}},function(t,r,n){var e=n(0),o=n(100),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},function(t,r,n){var e=n(0),o=n(27),i=e.Object;t.exports=function(t){return i(o(t))}},function(t,r,n){var e=n(0),o=n(7),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?e:n)(r)}},function(t,r,n){var e={};e[n(1)("toStringTag")]="z",t.exports="[object z]"===String(e)},function(t,r,n){var e=n(23);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(3),o=n(5),i=n(2),u=n(25),c=n(11),a=n(49),s=function(){},f=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=e(l.exec),h=!l.exec(s),d=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!v(l,a(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?y:d},function(t,r,n){var e=n(3),o=n(2),i=n(42),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,r,n){var e=n(3);t.exports=e([].slice)},function(t,r,n){var e=n(0),o=n(9),i=n(2),u=n(43),c=n(52),a=n(114),s=c("IE_PROTO"),f=e.Object,p=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var r=u(t);if(o(r,s))return r[s];var n=r.constructor;return i(n)&&r instanceof n?n.prototype:r instanceof f?p:null}},function(t,r,n){var e=n(67),o=n(68),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r){t.exports={}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,n){var e,o=n(10),i=n(120),u=n(54),c=n(53),a=n(77),s=n(44),f=n(52),p=f("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"</"+"script>"},h=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,r;d="undefined"!=typeof document?document.domain&&e?h(e):((r=s("iframe")).style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):h(e);for(var n=u.length;n--;)delete d.prototype[u[n]];return d()};c[p]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[p]=t):n=d(),void 0===r?n:i(n,r)}},function(t,r,n){var e,o,i,u=n(129),c=n(0),a=n(3),s=n(7),f=n(13),p=n(9),l=n(42),v=n(52),h=n(53),d="Object already initialized",y=c.TypeError,g=c.WeakMap;if(u||l.state){var w=l.state||(l.state=new g),x=a(w.get),m=a(w.has),b=a(w.set);e=function(t,r){if(m(w,t))throw new y(d);return r.facade=t,b(w,t,r),r},o=function(t){return x(w,t)||{}},i=function(t){return m(w,t)}}else{var T=v("state");h[T]=!0,e=function(t,r){if(p(t,T))throw new y(d);return r.facade=t,f(t,T,r),r},o=function(t){return p(t,T)?t[T]:{}},i=function(t){return p(t,T)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!s(r)||(n=o(r)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(46),o=n(16).f,i=n(13),u=n(9),c=n(132),a=n(1)("toStringTag");t.exports=function(t,r,n,s){if(t){var f=n?t:t.prototype;u(f,a)||o(f,a,{configurable:!0,value:r}),s&&!e&&i(f,"toString",c)}}},function(t,r,n){var e=n(23),o=n(0);t.exports="process"==e(o.process)},function(t,r){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,r,n){t.exports=n(107)},function(t,r,n){t.exports=n(111)},function(t,n){t.exports=r},function(t,r){t.exports=n},function(t,r,n){var e=n(0),o=n(11),i=n(2),u=n(14),c=n(65),a=e.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var r=o("Symbol");return i(r)&&u(r.prototype,a(t))}},function(t,r,n){var e=n(66);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,n){var e=n(28),o=n(5);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},function(t,r,n){var e=n(21),o=n(42);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.20.0",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,r,n){var e=n(3),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,r,n){var e=n(12),o=n(5),i=n(44);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r,n){var e=n(5),o=n(2),i=/#|\.prototype\./,u=function(t,r){var n=a[c(t)];return n==f||n!=s&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},function(t,r,n){var e=n(19),o=n(72),i=n(31),u=function(t){return function(r,n,u){var c,a=e(r),s=i(a),f=o(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(45),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r){t.exports=function(){}},function(t,r,n){"use strict";var e=n(40),o=n(16),i=n(18);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,r,n){var e=n(5),o=n(1),i=n(28),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r,n){var e=n(3),o=n(9),i=n(19),u=n(71).indexOf,c=n(53),a=e([].push);t.exports=function(t,r){var n,e=i(t),s=0,f=[];for(n in e)!o(c,n)&&o(e,n)&&a(f,n);for(;r.length>s;)o(e,n=r[s++])&&(~u(f,n)||a(f,n));return f}},function(t,r,n){var e=n(11);t.exports=e("document","documentElement")},function(t,r,n){var e=n(25),o=n(41),i=n(22),u=n(1)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[e(t)]}},function(t,r,n){"use strict";var e=n(19),o=n(73),i=n(22),u=n(56),c=n(16).f,a=n(80),s=n(21),f=n(12),p="Array Iterator",l=u.set,v=u.getterFor(p);t.exports=a(Array,"Array",(function(t,r){l(this,{type:p,target:e(t),index:0,kind:r})}),(function(){var t=v(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&f&&"values"!==h.name)try{c(h,"name",{value:"values"})}catch(t){}},function(t,r,n){"use strict";var e=n(6),o=n(8),i=n(21),u=n(130),c=n(2),a=n(131),s=n(51),f=n(34),p=n(57),l=n(13),v=n(26),h=n(1),d=n(22),y=n(81),g=u.PROPER,w=u.CONFIGURABLE,x=y.IteratorPrototype,m=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),T="keys",O="values",E="entries",S=function(){return this};t.exports=function(t,r,n,u,h,y,j){a(n,r,u);var A,_,k,P=function(t){if(t===h&&L)return L;if(!m&&t in M)return M[t];switch(t){case T:case O:case E:return function(){return new n(this,t)}}return function(){return new n(this)}},R=r+" Iterator",I=!1,M=t.prototype,C=M[b]||M["@@iterator"]||h&&M[h],L=!m&&C||P(h),N="Array"==r&&M.entries||C;if(N&&(A=s(N.call(new t)))!==Object.prototype&&A.next&&(i||s(A)===x||(f?f(A,x):c(A[b])||v(A,b,S)),p(A,R,!0,!0),i&&(d[R]=S)),g&&h==O&&C&&C.name!==O&&(!i&&w?l(M,"name",O):(I=!0,L=function(){return o(C,this)})),h)if(_={values:P(O),keys:y?L:P(T),entries:P(E)},j)for(k in _)(m||I||!(k in M))&&v(M,k,_[k]);else e({target:r,proto:!0,forced:m||I},_);return i&&!j||M[b]===L||v(M,b,L,{name:h}),d[r]=L,_}},function(t,r,n){"use strict";var e,o,i,u=n(5),c=n(2),a=n(55),s=n(51),f=n(26),p=n(1),l=n(21),v=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(e=o):h=!0),null==e||u((function(){var t={};return e[v].call(t)!==t}))?e={}:l&&(e=a(e)),c(e[v])||f(e,v,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}},function(t,r,n){var e=n(0);t.exports=e.Promise},function(t,r,n){var e=n(10),o=n(139),i=n(1)("species");t.exports=function(t,r){var n,u=e(t).constructor;return void 0===u||null==(n=e(u)[i])?r:o(n)}},function(t,r,n){var e,o,i,u,c=n(0),a=n(38),s=n(30),f=n(2),p=n(9),l=n(5),v=n(77),h=n(50),d=n(44),y=n(85),g=n(58),w=c.setImmediate,x=c.clearImmediate,m=c.process,b=c.Dispatch,T=c.Function,O=c.MessageChannel,E=c.String,S=0,j={},A="onreadystatechange";try{e=c.location}catch(t){}var _=function(t){if(p(j,t)){var r=j[t];delete j[t],r()}},k=function(t){return function(){_(t)}},P=function(t){_(t.data)},R=function(t){c.postMessage(E(t),e.protocol+"//"+e.host)};w&&x||(w=function(t){var r=h(arguments,1);return j[++S]=function(){a(f(t)?t:T(t),void 0,r)},o(S),S},x=function(t){delete j[t]},g?o=function(t){m.nextTick(k(t))}:b&&b.now?o=function(t){b.now(k(t))}:O&&!y?(u=(i=new O).port2,i.port1.onmessage=P,o=s(u.postMessage,u)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&e&&"file:"!==e.protocol&&!l(R)?(o=R,c.addEventListener("message",P,!1)):o=A in d("script")?function(t){v.appendChild(d("script")).onreadystatechange=function(){v.removeChild(this),_(t)}}:function(t){setTimeout(k(t),0)}),t.exports={set:w,clear:x}},function(t,r,n){var e=n(24);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},function(t,r,n){var e=n(10),o=n(7),i=n(36);t.exports=function(t,r){if(e(t),o(r)&&r.constructor===t)return r;var n=i.f(t);return(0,n.resolve)(r),n.promise}},function(t,r,n){t.exports=n(91)},function(t,r,n){t.exports=n(152)},function(t,r){t.exports=e},function(t,r){t.exports=o},function(t,r,n){var e=n(92);t.exports=e},function(t,r,n){var e=n(14),o=n(93),i=n(102),u=Array.prototype,c=String.prototype;t.exports=function(t){var r=t.includes;return t===u||e(u,t)&&r===u.includes?o:"string"==typeof t||t===c||e(c,t)&&r===c.includes?i:r}},function(t,r,n){n(94);var e=n(32);t.exports=e("Array").includes},function(t,r,n){"use strict";var e=n(6),o=n(71).includes,i=n(73);e({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(0),o=n(3),i=n(5),u=n(23),c=e.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,r,n){var e=n(0),o=n(8),i=n(7),u=n(64),c=n(41),a=n(99),s=n(1),f=e.TypeError,p=s("toPrimitive");t.exports=function(t,r){if(!i(t)||u(t))return t;var n,e=c(t,p);if(e){if(void 0===r&&(r="default"),n=o(e,t,r),!i(n)||u(n))return n;throw f("Can't convert object to primitive value")}return void 0===r&&(r="number"),a(t,r)}},function(t,r,n){var e=n(0),o=n(8),i=n(2),u=n(7),c=e.TypeError;t.exports=function(t,r){var n,e;if("string"===r&&i(n=t.toString)&&!u(e=o(n,t)))return e;if(i(n=t.valueOf)&&!u(e=o(n,t)))return e;if("string"!==r&&i(n=t.toString)&&!u(e=o(n,t)))return e;throw c("Can't convert object to primitive value")}},function(t,r,n){var e=n(0),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(45),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r,n){n(103);var e=n(32);t.exports=e("String").includes},function(t,r,n){"use strict";var e=n(6),o=n(3),i=n(104),u=n(27),c=n(33),a=n(106),s=o("".indexOf);e({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(c(u(this)),c(i(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){var e=n(0),o=n(105),i=e.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},function(t,r,n){var e=n(7),o=n(23),i=n(1)("match");t.exports=function(t){var r;return e(t)&&(void 0!==(r=t[i])?!!r:"RegExp"==o(t))}},function(t,r,n){var e=n(1)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[e]=!1,"/./"[t](r)}catch(t){}}return!1}},function(t,r,n){var e=n(108);t.exports=e},function(t,r,n){var e=n(14),o=n(109),i=Array.prototype;t.exports=function(t){var r=t.slice;return t===i||e(i,t)&&r===i.slice?o:r}},function(t,r,n){n(110);var e=n(32);t.exports=e("Array").slice},function(t,r,n){"use strict";var e=n(6),o=n(0),i=n(47),u=n(48),c=n(7),a=n(72),s=n(31),f=n(19),p=n(74),l=n(1),v=n(75),h=n(50),d=v("slice"),y=l("species"),g=o.Array,w=Math.max;e({target:"Array",proto:!0,forced:!d},{slice:function(t,r){var n,e,o,l=f(this),v=s(l),d=a(t,v),x=a(void 0===r?v:r,v);if(i(l)&&(n=l.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[y]))&&(n=void 0),n===g||void 0===n))return h(l,d,x);for(e=new(void 0===n?g:n)(w(x-d,0)),o=0;d<x;d++,o++)d in l&&p(e,o,l[d]);return e.length=o,e}})},function(t,r,n){var e=n(112);n(150),t.exports=e},function(t,r,n){n(113),n(79),n(133),n(134),n(145),n(146),n(147),n(148);var e=n(20);t.exports=e.Promise},function(t,r,n){"use strict";var e=n(6),o=n(0),i=n(14),u=n(51),c=n(34),a=n(116),s=n(55),f=n(13),p=n(18),l=n(122),v=n(123),h=n(35),d=n(127),y=n(1),g=n(128),w=y("toStringTag"),x=o.Error,m=[].push,b=function(t,r){var n,e=arguments.length>2?arguments[2]:void 0,o=i(T,this);c?n=c(new x,o?u(this):T):(n=o?this:s(T),f(n,w,"Error")),void 0!==r&&f(n,"message",d(r)),g&&f(n,"stack",l(n.stack,1)),v(n,e);var a=[];return h(t,m,{that:a}),f(n,"errors",a),n};c?c(b,x):a(b,x,{name:!0});var T=b.prototype=s(x.prototype,{constructor:p(1,b),message:p(1,""),name:p(1,"AggregateError")});e({global:!0},{AggregateError:b})},function(t,r,n){var e=n(5);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,r,n){var e=n(0),o=n(2),i=e.String,u=e.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,r,n){var e=n(9),o=n(117),i=n(39),u=n(16);t.exports=function(t,r,n){for(var c=o(r),a=u.f,s=i.f,f=0;f<c.length;f++){var p=c[f];e(t,p)||n&&e(n,p)||a(t,p,s(r,p))}}},function(t,r,n){var e=n(11),o=n(3),i=n(118),u=n(119),c=n(10),a=o([].concat);t.exports=e("Reflect","ownKeys")||function(t){var r=i.f(c(t)),n=u.f;return n?a(r,n(t)):r}},function(t,r,n){var e=n(76),o=n(54).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(12),o=n(16),i=n(10),u=n(19),c=n(121);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),a=c(r),s=a.length,f=0;s>f;)o.f(t,n=a[f++],e[n]);return t}},function(t,r,n){var e=n(76),o=n(54);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r,n){var e=n(3)("".replace),o=String(Error("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,u=i.test(o);t.exports=function(t,r){if(u&&"string"==typeof t)for(;r--;)t=e(t,i,"");return t}},function(t,r,n){var e=n(7),o=n(13);t.exports=function(t,r){e(r)&&"cause"in r&&o(t,"cause",r.cause)}},function(t,r,n){var e=n(1),o=n(22),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,n){var e=n(0),o=n(8),i=n(15),u=n(10),c=n(29),a=n(78),s=e.TypeError;t.exports=function(t,r){var n=arguments.length<2?a(t):r;if(i(n))return u(o(n,t));throw s(c(t)+" is not iterable")}},function(t,r,n){var e=n(8),o=n(10),i=n(41);t.exports=function(t,r,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw n;return n}u=e(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw n;if(c)throw u;return o(u),n}},function(t,r,n){var e=n(33);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)}},function(t,r,n){var e=n(5),o=n(18);t.exports=!e((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},function(t,r,n){var e=n(0),o=n(2),i=n(49),u=e.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,r,n){var e=n(12),o=n(9),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,s=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:s}},function(t,r,n){"use strict";var e=n(81).IteratorPrototype,o=n(55),i=n(18),u=n(57),c=n(22),a=function(){return this};t.exports=function(t,r,n,s){var f=r+" Iterator";return t.prototype=o(e,{next:i(+!s,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,r,n){"use strict";var e=n(46),o=n(25);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,r){},function(t,r,n){"use strict";var e,o,i,u,c=n(6),a=n(21),s=n(0),f=n(11),p=n(8),l=n(82),v=n(26),h=n(135),d=n(34),y=n(57),g=n(136),w=n(15),x=n(2),m=n(7),b=n(137),T=n(49),O=n(35),E=n(138),S=n(83),j=n(84).set,A=n(140),_=n(86),k=n(143),P=n(36),R=n(59),I=n(56),M=n(70),C=n(1),L=n(144),N=n(58),q=n(28),z=C("species"),F="Promise",U=I.getterFor(F),D=I.set,G=I.getterFor(F),H=l&&l.prototype,B=l,K=H,V=s.TypeError,W=s.document,Z=s.process,Y=P.f,X=Y,J=!!(W&&W.createEvent&&s.dispatchEvent),Q=x(s.PromiseRejectionEvent),$="unhandledrejection",tt=!1,rt=M(F,(function(){var t=T(B),r=t!==String(B);if(!r&&66===q)return!0;if(a&&!K.finally)return!0;if(q>=51&&/native code/.test(t))return!1;var n=new B((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};return(n.constructor={})[z]=e,!(tt=n.then((function(){}))instanceof e)||!r&&L&&!Q})),nt=rt||!E((function(t){B.all(t).catch((function(){}))})),et=function(t){var r;return!(!m(t)||!x(r=t.then))&&r},ot=function(t,r){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){for(var e=t.value,o=1==t.state,i=0;n.length>i;){var u,c,a,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,v=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&at(t),t.rejection=1),!0===f?u=e:(h&&h.enter(),u=f(e),h&&(h.exit(),a=!0)),u===s.promise?v(V("Promise-chain cycle")):(c=et(u))?p(c,u,l,v):l(u)):v(e)}catch(t){h&&!a&&h.exit(),v(t)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ut(t)}))}},it=function(t,r,n){var e,o;J?((e=W.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),s.dispatchEvent(e)):e={promise:r,reason:n},!Q&&(o=s["on"+t])?o(e):t===$&&k("Unhandled promise rejection",n)},ut=function(t){p(j,s,(function(){var r,n=t.facade,e=t.value;if(ct(t)&&(r=R((function(){N?Z.emit("unhandledRejection",e,n):it($,n,e)})),t.rejection=N||ct(t)?2:1,r.error))throw r.value}))},ct=function(t){return 1!==t.rejection&&!t.parent},at=function(t){p(j,s,(function(){var r=t.facade;N?Z.emit("rejectionHandled",r):it("rejectionhandled",r,t.value)}))},st=function(t,r,n){return function(e){t(r,e,n)}},ft=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,ot(t,!0))},pt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw V("Promise can't be resolved itself");var e=et(r);e?A((function(){var n={done:!1};try{p(e,r,st(pt,n,t),st(ft,n,t))}catch(r){ft(n,r,t)}})):(t.value=r,t.state=1,ot(t,!1))}catch(r){ft({done:!1},r,t)}}};if(rt&&(K=(B=function(t){b(this,K),w(t),p(e,this);var r=U(this);try{t(st(pt,r),st(ft,r))}catch(t){ft(r,t)}}).prototype,(e=function(t){D(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(K,{then:function(t,r){var n=G(this),e=n.reactions,o=Y(S(this,B));return o.ok=!x(t)||t,o.fail=x(r)&&r,o.domain=N?Z.domain:void 0,n.parent=!0,e[e.length]=o,0!=n.state&&ot(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e,r=U(t);this.promise=t,this.resolve=st(pt,r),this.reject=st(ft,r)},P.f=Y=function(t){return t===B||t===i?new o(t):X(t)},!a&&x(l)&&H!==Object.prototype)){u=H.then,tt||(v(H,"then",(function(t,r){var n=this;return new B((function(t,r){p(u,n,t,r)})).then(t,r)}),{unsafe:!0}),v(H,"catch",K.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}d&&d(H,K)}c({global:!0,wrap:!0,forced:rt},{Promise:B}),y(B,F,!1,!0),g(F),i=f(F),c({target:F,stat:!0,forced:rt},{reject:function(t){var r=Y(this);return p(r.reject,void 0,t),r.promise}}),c({target:F,stat:!0,forced:a||rt},{resolve:function(t){return _(a&&this===i?B:this,t)}}),c({target:F,stat:!0,forced:nt},{all:function(t){var r=this,n=Y(r),e=n.resolve,o=n.reject,i=R((function(){var n=w(r.resolve),i=[],u=0,c=1;O(t,(function(t){var a=u++,s=!1;c++,p(n,r,t).then((function(t){s||(s=!0,i[a]=t,--c||e(i))}),o)})),--c||e(i)}));return i.error&&o(i.value),n.promise},race:function(t){var r=this,n=Y(r),e=n.reject,o=R((function(){var o=w(r.resolve);O(t,(function(t){p(o,r,t).then(n.resolve,e)}))}));return o.error&&e(o.value),n.promise}})},function(t,r,n){var e=n(26);t.exports=function(t,r,n){for(var o in r)n&&n.unsafe&&t[o]?t[o]=r[o]:e(t,o,r[o],n);return t}},function(t,r,n){"use strict";var e=n(11),o=n(16),i=n(1),u=n(12),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},function(t,r,n){var e=n(0),o=n(14),i=e.TypeError;t.exports=function(t,r){if(o(r,t))return t;throw i("Incorrect invocation")}},function(t,r,n){var e=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,r,n){var e=n(0),o=n(48),i=n(29),u=e.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},function(t,r,n){var e,o,i,u,c,a,s,f,p=n(0),l=n(30),v=n(39).f,h=n(84).set,d=n(85),y=n(141),g=n(142),w=n(58),x=p.MutationObserver||p.WebKitMutationObserver,m=p.document,b=p.process,T=p.Promise,O=v(p,"queueMicrotask"),E=O&&O.value;E||(e=function(){var t,r;for(w&&(t=b.domain)&&t.exit();o;){r=o.fn,o=o.next;try{r()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},d||w||g||!x||!m?!y&&T&&T.resolve?((s=T.resolve(void 0)).constructor=T,f=l(s.then,s),u=function(){f(e)}):w?u=function(){b.nextTick(e)}:(h=l(h,p),u=function(){h(e)}):(c=!0,a=m.createTextNode(""),new x(e).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=E||function(t){var r={fn:t,next:void 0};i&&(i.next=r),o||(o=r,u()),i=r}},function(t,r,n){var e=n(24),o=n(0);t.exports=/ipad|iphone|ipod/i.test(e)&&void 0!==o.Pebble},function(t,r,n){var e=n(24);t.exports=/web0s(?!.*chrome)/i.test(e)},function(t,r,n){var e=n(0);t.exports=function(t,r){var n=e.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,r))}},function(t,r){t.exports="object"==typeof window},function(t,r,n){"use strict";var e=n(6),o=n(8),i=n(15),u=n(36),c=n(59),a=n(35);e({target:"Promise",stat:!0},{allSettled:function(t){var r=this,n=u.f(r),e=n.resolve,s=n.reject,f=c((function(){var n=i(r.resolve),u=[],c=0,s=1;a(t,(function(t){var i=c++,a=!1;s++,o(n,r,t).then((function(t){a||(a=!0,u[i]={status:"fulfilled",value:t},--s||e(u))}),(function(t){a||(a=!0,u[i]={status:"rejected",reason:t},--s||e(u))}))})),--s||e(u)}));return f.error&&s(f.value),n.promise}})},function(t,r,n){"use strict";var e=n(6),o=n(15),i=n(11),u=n(8),c=n(36),a=n(59),s=n(35),f="No one promise resolved";e({target:"Promise",stat:!0},{any:function(t){var r=this,n=i("AggregateError"),e=c.f(r),p=e.resolve,l=e.reject,v=a((function(){var e=o(r.resolve),i=[],c=0,a=1,v=!1;s(t,(function(t){var o=c++,s=!1;a++,u(e,r,t).then((function(t){s||v||(v=!0,p(t))}),(function(t){s||v||(s=!0,i[o]=t,--a||l(new n(i,f)))}))})),--a||l(new n(i,f))}));return v.error&&l(v.value),e.promise}})},function(t,r,n){"use strict";var e=n(6),o=n(21),i=n(82),u=n(5),c=n(11),a=n(2),s=n(83),f=n(86),p=n(26);if(e({target:"Promise",proto:!0,real:!0,forced:!!i&&u((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=s(this,c("Promise")),n=a(t);return this.then(n?function(n){return f(r,t()).then((function(){return n}))}:t,n?function(n){return f(r,t()).then((function(){throw n}))}:t)}}),!o&&a(i)){var l=c("Promise").prototype.finally;i.prototype.finally!==l&&p(i.prototype,"finally",l,{unsafe:!0})}},function(t,r,n){"use strict";var e=n(149).charAt,o=n(33),i=n(56),u=n(80),c="String Iterator",a=i.set,s=i.getterFor(c);u(String,"String",(function(t){a(this,{type:c,string:o(t),index:0})}),(function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})}))},function(t,r,n){var e=n(3),o=n(45),i=n(33),u=n(27),c=e("".charAt),a=e("".charCodeAt),s=e("".slice),f=function(t){return function(r,n){var e,f,p=i(u(r)),l=o(n),v=p.length;return l<0||l>=v?t?"":void 0:(e=a(p,l))<55296||e>56319||l+1===v||(f=a(p,l+1))<56320||f>57343?t?c(p,l):e:t?s(p,l,l+2):f-56320+(e-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,r,n){n(79);var e=n(151),o=n(0),i=n(25),u=n(13),c=n(22),a=n(1)("toStringTag");for(var s in e){var f=o[s],p=f&&f.prototype;p&&i(p)!==a&&u(p,a,s),c[s]=c.Array}},function(t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r,n){n(153);var e=n(20);t.exports=e.setTimeout},function(t,r,n){var e=n(6),o=n(0),i=n(38),u=n(2),c=n(24),a=n(50),s=/MSIE .\./.test(c),f=o.Function,p=function(t){return function(r,n){var e=arguments.length>2,o=e?a(arguments,2):void 0;return t(e?function(){i(u(r)?r:f(r),this,o)}:r,n)}};e({global:!0,bind:!0,forced:s},{setTimeout:p(o.setTimeout),setInterval:p(o.setInterval)})},function(t,r,n){var e=n(155);t.exports=e},function(t,r,n){var e=n(14),o=n(156),i=Array.prototype;t.exports=function(t){var r=t.concat;return t===i||e(i,t)&&r===i.concat?o:r}},function(t,r,n){n(157);var e=n(32);t.exports=e("Array").concat},function(t,r,n){"use strict";var e=n(6),o=n(0),i=n(5),u=n(47),c=n(7),a=n(43),s=n(31),f=n(74),p=n(158),l=n(75),v=n(1),h=n(28),d=v("isConcatSpreadable"),y=9007199254740991,g="Maximum allowed index exceeded",w=o.TypeError,x=h>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=l("concat"),b=function(t){if(!c(t))return!1;var r=t[d];return void 0!==r?!!r:u(t)};e({target:"Array",proto:!0,forced:!x||!m},{concat:function(t){var r,n,e,o,i,u=a(this),c=p(u,0),l=0;for(r=-1,e=arguments.length;r<e;r++)if(b(i=-1===r?u:arguments[r])){if(l+(o=s(i))>y)throw w(g);for(n=0;n<o;n++,l++)n in i&&f(c,l,i[n])}else{if(l>=y)throw w(g);f(c,l++,i)}return c.length=l,c}})},function(t,r,n){var e=n(159);t.exports=function(t,r){return new(e(t))(0===r?0:r)}},function(t,r,n){var e=n(0),o=n(47),i=n(48),u=n(7),c=n(1)("species"),a=e.Array;t.exports=function(t){var r;return o(t)&&(r=t.constructor,(i(r)&&(r===a||o(r.prototype))||u(r)&&null===(r=r[c]))&&(r=void 0)),void 0===r?a:r}},function(t,r,n){var e=n(161);t.exports=e},function(t,r,n){n(162);var e=n(20);t.exports=e.Object.setPrototypeOf},function(t,r,n){n(6)({target:"Object",stat:!0},{setPrototypeOf:n(34)})},function(t,r,n){"use strict";n.r(r),n.d(r,"HttpClient",(function(){return H})),n.d(r,"HttpClientError",(function(){return _})),n.d(r,"InternalError",(function(){return k})),n.d(r,"UnknownError",(function(){return P})),n.d(r,"BadRequestError",(function(){return R})),n.d(r,"UnauthorizedError",(function(){return I})),n.d(r,"ForbiddenError",(function(){return M})),n.d(r,"NotFoundError",(function(){return C})),n.d(r,"MethodNotAllowedError",(function(){return L})),n.d(r,"UnsupportedMediaTypeError",(function(){return N})),n.d(r,"UnprocessableEntityError",(function(){return q})),n.d(r,"InternalServerError",(function(){return z})),n.d(r,"BadGatewayError",(function(){return F})),n.d(r,"ServiceUnavailableError",(function(){return U})),n.d(r,"GatewayTimeoutError",(function(){return D}));var e=n(87),o=n.n(e),i=n(60),u=n.n(i),c=n(61),a=n.n(c),s=n(88),f=n.n(s),p=n(37),l=n.n(p),v=function(t,r){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},v(t,r)};function h(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}v(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var d=function(){return d=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},d.apply(this,arguments)};function y(t,r,n,e){return new(n||(n=Promise))((function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(u,c)}a((e=e.apply(t,r||[])).next())}))}function g(t,r){var n,e,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,e&&(o=2&i[0]?e.return:i[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,i[1])).done)return o;switch(e=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,e=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=r.call(t,u)}catch(t){i=[6,t],e=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}Object.create;Object.create;var w=n(89),x=n.n(w),m=n(17),b=n.n(m),T=n(62),O=n.n(T),E=n(90),S=n(63),j=n(4),A=n.n(j),_=function(t){function r(n,e,o){var i=t.call(this,n)||this;return i.name="HttpClient",i.status=e,i.details=o,A()(i,r.prototype),i}return h(r,t),r}(Error),k=function(t){function r(n,e){var o=t.call(this,n,0,e)||this;return o.name="HttpClient",A()(o,r.prototype),o}return h(r,t),r}(_),P=function(t){function r(n,e){var o=t.call(this,"Unknown Network Client error!",n,e)||this;return A()(o,r.prototype),o}return h(r,t),r}(_),R=function(t){function r(n){var e=t.call(this,"Bad Request Error!",400,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),I=function(t){function r(n){var e=t.call(this,"Unauthorized Error!",401,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),M=function(t){function r(n){var e=t.call(this,"Forbidden Error!",403,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),C=function(t){function r(n){var e=t.call(this,"Not Found Error!",404,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),L=function(t){function r(r){var n=t.call(this,"Method Not Allowed Error!",405,r)||this;return A()(n,C.prototype),n}return h(r,t),r}(_),N=function(t){function r(n){var e=t.call(this,"Unprocessable Entity Error",415,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),q=function(t){function r(n){var e=t.call(this,"Unprocessable Entity Error",422,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),z=function(t){function r(n){var e=t.call(this,"Internal Server Error",500,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),F=function(t){function r(n){var e=t.call(this,"Bad Gateway Error",502,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),U=function(t){function r(n){var e=t.call(this,"Service Unavailable Error",503,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),D=function(t){function r(n){var e=t.call(this,"Gateway Timeout Error",504,n)||this;return A()(e,r.prototype),e}return h(r,t),r}(_),G=x.a.create({paramsSerializer:S.stringify}),H=function(){function t(t,r){var n;this.accessToken=null,this.refreshToken=null,this.isRefreshing=!1,this.isAccessTokenSetManual=!1;var e=window.location.hostname,i=o()(e).call(e,".")?".".concat(u()(n=e.split(".")).call(n,-2).join(".")):e;this.config=t,this.cookieOptions=d({domain:i,path:"/"},r)}return t.parseResponse=function(t){if(t.status>=400)switch(t.status){case 400:throw new R(t.message);case 401:throw new I(t.message);case 403:throw new M(t.message);case 404:throw new C(t.message);case 405:throw new L(t.message);case 415:throw new N(t.message);case 422:throw new q(t.message);case 500:throw new z(t.message);case 502:throw new F(t.message);case 503:throw new U(t.message);case 504:throw new D(t.message);default:throw new P(t.status,t.message)}return t.result},t.prototype.guardAuthorization=function(){return y(this,void 0,void 0,(function(){var t,r;return g(this,(function(n){switch(n.label){case 0:return this.isAccessTokenSetManual?[2]:this.isRefreshing?[4,new a.a((function(t){f()(t,250)}))]:[3,3];case 1:return n.sent(),[4,this.guardAuthorization()];case 2:return n.sent(),[2];case 3:return this.accessToken&&this.refreshToken?(t=(new Date).getTime()/1e3,r=O()(this.accessToken),r.expired_at<t?[4,this.updateTokensPairByRefreshToken(this.refreshToken,r)]:[3,6]):[3,7];case 4:return n.sent(),[4,this.guardAuthorization()];case 5:n.sent(),n.label=6;case 6:return[2];case 7:throw new I("Have not access token or refresh token!")}}))}))},t.prototype.updateTokensPair=function(r){return y(this,void 0,void 0,(function(){var n,e,o,i,u,c;return g(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this.isRefreshing=!0,n=window.btoa("".concat(this.config.clientId,":")),e="Basic ".concat(n),u=(i=t).parseResponse,[4,this.request(this.config.urls.token,{method:"POST",headers:{Authorization:e},query:r,withAuthorization:!1,withCredentials:!0})];case 1:return o=u.apply(i,[a.sent()]),this.isRefreshing=!1,this.accessToken=o.access_token,this.refreshToken=o.refresh_token,[3,3];case 2:throw c=a.sent(),this.isRefreshing=!1,this.accessToken=null,this.refreshToken=null,c;case 3:return[2]}}))}))},t.prototype.updateTokensPairByAuthorizationCode=function(t){return y(this,void 0,void 0,(function(){var r;return g(this,(function(n){var e;switch(n.label){case 0:return r=l()(e="".concat(window.location.origin)).call(e,window.location.pathname),[4,this.updateTokensPair({grant_type:"authorization_code",code:t,redirect_uri:r})];case 1:return n.sent(),[2]}}))}))},t.prototype.updateTokensPairByRefreshToken=function(t,r){return y(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.updateTokensPair({grant_type:"refresh_token",refresh_token:t,username:r.username,account_id:r.account_id})];case 1:return n.sent(),[2]}}))}))},t.prototype.initialize=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:if(!r||!n)return[2,null];if(e=b.a.get(t.STORIED_URL_COOKIE_NAME),o=b.a.get(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME),b.a.remove(t.STORIED_URL_COOKIE_NAME),b.a.remove(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME),!(o===n))throw new k("Storied authorization state and received authorization state NOT equals!","[HttpClient::initialize]");return[4,this.updateTokensPairByAuthorizationCode(r)];case 1:if(i.sent(),!this.accessToken)throw new k("Access Token is null after update tokens!","[HttpClient::initialize]");return window.history.replaceState(null,document.title,e),[2,O()(this.accessToken)]}}))}))},t.prototype.login=function(){return y(this,void 0,void 0,(function(){var r,n,e;return g(this,(function(o){var i,c,s;return r=l()(i="".concat(window.location.origin)).call(i,window.location.pathname),n=u()(c=Math.random().toString()).call(c,2,12),b.a.set(t.STORIED_URL_COOKIE_NAME,window.location.href,this.cookieOptions),b.a.set(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME,n),e=Object(S.stringify)({response_type:"code",client_id:this.config.clientId,redirect_uri:r,state:n}),window.location.href=l()(s="".concat(this.config.urls.authorize,"?")).call(s,e),[2,new a.a((function(){}))]}))}))},t.prototype.logout=function(){return y(this,void 0,void 0,(function(){var r,n;return g(this,(function(e){switch(e.label){case 0:return this.accessToken=null,this.refreshToken=null,n=(r=t).parseResponse,[4,this.request(this.config.urls.logout,{method:"GET",withAuthorization:!1,withCredentials:!0})];case 1:return[2,n.apply(r,[e.sent()])]}}))}))},t.prototype.setAccessToken=function(t){this.isAccessTokenSetManual=!0,this.accessToken=t},t.prototype.getAccessToken=function(){return y(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.guardAuthorization()];case 1:if(t.sent(),!this.accessToken)throw new k("AccessToken is null after guard authorization!","[HttpClient::getAccessToken]");return[2,this.accessToken]}}))}))},t.prototype.request=function(t,r){return y(this,void 0,void 0,(function(){var n,e,o;return g(this,(function(i){switch(i.label){case 0:return n={url:t,method:r.method,headers:r.headers,validateStatus:null,withCredentials:r.withCredentials},"params"in r&&(e=Object(E.compile)(t),n.url=e(r.params)),"query"in r&&(n.params=r.query),"body"in r&&(n.data=r.body),r.withAuthorization?[4,this.guardAuthorization()]:[3,2];case 1:i.sent(),n.headers=n.headers||{},n.headers.Authorization="Bearer ".concat(this.accessToken),i.label=2;case 2:return[4,G.request(n)];case 3:return[2,{result:(o=i.sent()).data,status:o.status,message:o.statusText}]}}))}))},t.prototype.get=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:return o=(e=t).parseResponse,[4,this.request(r,d({method:"GET"},n))];case 1:return[2,o.apply(e,[i.sent()])]}}))}))},t.prototype.post=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:return o=(e=t).parseResponse,[4,this.request(r,d({method:"POST"},n))];case 1:return[2,o.apply(e,[i.sent()])]}}))}))},t.prototype.put=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:return o=(e=t).parseResponse,[4,this.request(r,d({method:"PUT"},n))];case 1:return[2,o.apply(e,[i.sent()])]}}))}))},t.prototype.patch=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:return o=(e=t).parseResponse,[4,this.request(r,d({method:"PATCH"},n))];case 1:return[2,o.apply(e,[i.sent()])]}}))}))},t.prototype.delete=function(r,n){return y(this,void 0,void 0,(function(){var e,o;return g(this,(function(i){switch(i.label){case 0:return o=(e=t).parseResponse,[4,this.request(r,d({method:"DELETE"},n))];case 1:return[2,o.apply(e,[i.sent()])]}}))}))},t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME="__PW_STORIED_AUTHORIZATION_STATE",t.STORIED_URL_COOKIE_NAME="__PW_STORIED_URL",t}()}])}));
|
|
2
|
-
//# sourceMappingURL=index.js.map
|