@pushwoosh/http-client 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http-client.d.ts +171 -0
- package/{lib → dist}/http-client.errors.d.ts +34 -28
- package/{lib → dist}/http-client.types.d.ts +19 -12
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -22
- package/lib/http-client.d.ts +0 -169
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- /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.1.0",
|
|
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",
|
|
@@ -17,18 +19,18 @@
|
|
|
17
19
|
},
|
|
18
20
|
"pre-commit": "check",
|
|
19
21
|
"dependencies": {
|
|
20
|
-
"@babel/runtime-corejs3": "^7.16.
|
|
21
|
-
"core-js": "^3.
|
|
22
|
+
"@babel/runtime-corejs3": "^7.16.5",
|
|
23
|
+
"core-js": "^3.20.0",
|
|
22
24
|
"js-cookie": "^3.0.1",
|
|
23
25
|
"jwt-decode": "^3.1.2",
|
|
24
26
|
"path-to-regexp": "^6.2.0",
|
|
25
|
-
"qs": "^6.10.
|
|
26
|
-
"tslib": "^2.3.1"
|
|
27
|
+
"qs": "^6.10.3"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "^7.
|
|
30
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
31
|
-
"@babel/preset-env": "^7.
|
|
30
|
+
"@babel/core": "^7.16.5",
|
|
31
|
+
"@babel/plugin-transform-runtime": "^7.16.5",
|
|
32
|
+
"@babel/preset-env": "^7.16.5",
|
|
33
|
+
"@types/history": "^4.7.10",
|
|
32
34
|
"@types/jest": "^26.0.24",
|
|
33
35
|
"@types/js-cookie": "^3.0.1",
|
|
34
36
|
"@types/qs": "^6.9.7",
|
|
@@ -42,27 +44,33 @@
|
|
|
42
44
|
"dotenv": "^10.0.0",
|
|
43
45
|
"eslint": "^7.32.0",
|
|
44
46
|
"eslint-config-airbnb": "^18.2.1",
|
|
45
|
-
"eslint-config-airbnb-typescript": "^14.0.
|
|
47
|
+
"eslint-config-airbnb-typescript": "^14.0.2",
|
|
46
48
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
47
|
-
"eslint-plugin-
|
|
48
|
-
"eslint-plugin-
|
|
49
|
-
"eslint-plugin-
|
|
50
|
-
"eslint-plugin-react
|
|
49
|
+
"eslint-plugin-compat": "^4.0.0",
|
|
50
|
+
"eslint-plugin-import": "^2.25.3",
|
|
51
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
52
|
+
"eslint-plugin-react": "^7.27.1",
|
|
53
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
54
|
+
"history": "^4.10.1",
|
|
51
55
|
"jest": "^26.6.3",
|
|
52
56
|
"pre-commit": "^1.2.2",
|
|
53
57
|
"terser-webpack-plugin": "^4.2.3",
|
|
54
58
|
"ts-jest": "^26.5.6",
|
|
55
59
|
"ts-loader": "^8.3.0",
|
|
56
|
-
"
|
|
60
|
+
"tslib": "^2.3.1",
|
|
61
|
+
"typescript": "^4.5.4",
|
|
57
62
|
"webpack": "^4.46.0",
|
|
58
63
|
"webpack-cli": "^3.3.12",
|
|
59
|
-
"webpack-
|
|
64
|
+
"webpack-config-single-spa": "^1.18.3",
|
|
65
|
+
"webpack-dev-server": "^3.11.3",
|
|
60
66
|
"webpack-merge": "^5.8.0"
|
|
61
67
|
},
|
|
62
68
|
"peerDependencies": {
|
|
63
|
-
"axios": "^0.24.0"
|
|
69
|
+
"axios": "^0.24.0",
|
|
70
|
+
"history": "^4.10.1",
|
|
71
|
+
"tslib": "^2.3.1"
|
|
64
72
|
},
|
|
65
73
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
74
|
+
"node": ">= 14"
|
|
67
75
|
}
|
|
68
76
|
}
|
package/lib/http-client.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Body, Config, CookieOptions, DeleteOptions, GetOptions, Introspect, Method, Options, Params, PatchOptions, PostOptions, PutOptions, Query, Response, Result } from './http-client.types';
|
|
2
|
-
export declare class HttpClient<I extends Introspect = Introspect> {
|
|
3
|
-
/**
|
|
4
|
-
* Имя куки в которой будет сохранена случайная строка для проверки ответа авторизации
|
|
5
|
-
*/
|
|
6
|
-
private static STORIED_AUTHORIZATION_STATE_COOKIE_NAME;
|
|
7
|
-
/**
|
|
8
|
-
* Имя куки в которой будет сохранен текущий адрес страницы
|
|
9
|
-
*/
|
|
10
|
-
private static STORIED_URL_COOKIE_NAME;
|
|
11
|
-
/**
|
|
12
|
-
* Параметры конфигурации
|
|
13
|
-
*/
|
|
14
|
-
private readonly config;
|
|
15
|
-
/**
|
|
16
|
-
* Параметры куки
|
|
17
|
-
*/
|
|
18
|
-
private readonly cookieOptions;
|
|
19
|
-
/**
|
|
20
|
-
* Токен доступа
|
|
21
|
-
*/
|
|
22
|
-
private accessToken;
|
|
23
|
-
/**
|
|
24
|
-
* Токен обновления
|
|
25
|
-
*/
|
|
26
|
-
private refreshToken;
|
|
27
|
-
/**
|
|
28
|
-
* Происходит ли сейчас обновление токенов
|
|
29
|
-
*/
|
|
30
|
-
private isRefreshing;
|
|
31
|
-
/**
|
|
32
|
-
* Был ли установлен токен доступа вручную
|
|
33
|
-
*/
|
|
34
|
-
private isAccessTokenSetManual;
|
|
35
|
-
constructor(config: Config, cookieOptions?: CookieOptions);
|
|
36
|
-
/**
|
|
37
|
-
* Разобрать ответ от сервера и вернуть результат выполнения запроса
|
|
38
|
-
*
|
|
39
|
-
* @param { Response<*> } response - ответ от сервера в формате Axios
|
|
40
|
-
*/
|
|
41
|
-
static parseResponse<R extends Result>(response: Response<R>): R;
|
|
42
|
-
/**
|
|
43
|
-
* Проверить наличие авторизации
|
|
44
|
-
*/
|
|
45
|
-
private guardAuthorization;
|
|
46
|
-
/**
|
|
47
|
-
* Обновить токены
|
|
48
|
-
* Для более подробной информации: RFC 6749 https://www.rfc-editor.org/rfc/rfc6749.html
|
|
49
|
-
*
|
|
50
|
-
* @param { UpdateTokensPairQuery } query - параметры запроса для обновления токенов
|
|
51
|
-
*/
|
|
52
|
-
private updateTokensPair;
|
|
53
|
-
/**
|
|
54
|
-
* Обновить токены с помощью кода авторизации
|
|
55
|
-
* Для более подробной информации: RFC 6749 https://www.rfc-editor.org/rfc/rfc6749.html#section-4.1.3
|
|
56
|
-
*
|
|
57
|
-
* @param { string } authorizationCode - код авторизации, полученный от сервера авторизации
|
|
58
|
-
*/
|
|
59
|
-
private updateTokensPairByAuthorizationCode;
|
|
60
|
-
/**
|
|
61
|
-
* Обновить токены с помощью токена обновления
|
|
62
|
-
* Для более подробной информации: RFC 6749 https://www.rfc-editor.org/rfc/rfc6749.html#section-6
|
|
63
|
-
*
|
|
64
|
-
* @param { string } refreshToken - токен обновления, полученный от сервера авторизации
|
|
65
|
-
* @param { Introspect } introspect - содержимое токена доступа
|
|
66
|
-
*/
|
|
67
|
-
private updateTokensPairByRefreshToken;
|
|
68
|
-
/**
|
|
69
|
-
* Инициализировать модуль, если передан authorizationCode и authorizationState будет выполнена попытка обновить токены
|
|
70
|
-
*
|
|
71
|
-
* @param { string } authorizationCode - код авторизации, полученный от сервера авторизации
|
|
72
|
-
* @param { string } authorizationState - уникальная строка, переданная клиентом серверу при авторизации, полученная от сервера авторизации
|
|
73
|
-
*/
|
|
74
|
-
initialize(authorizationCode: string | null, authorizationState: string | null): Promise<I | null>;
|
|
75
|
-
/**
|
|
76
|
-
* Выполнить аутентификацию пользователя
|
|
77
|
-
*/
|
|
78
|
-
login(): Promise<void>;
|
|
79
|
-
/**
|
|
80
|
-
* Завершить сессию
|
|
81
|
-
*/
|
|
82
|
-
logout(): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Временный костыль, чтобы установить токен доступа из сессии
|
|
85
|
-
*/
|
|
86
|
-
setAccessToken(accessToken: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Получить токен доступа, если время жизни токена закончилось, будет осуществлена попытка обновить токен
|
|
89
|
-
*/
|
|
90
|
-
getAccessToken(): Promise<string>;
|
|
91
|
-
/**
|
|
92
|
-
* Выполнить запрос на сервер
|
|
93
|
-
*
|
|
94
|
-
* Дженерик:
|
|
95
|
-
* Method - тип запроса
|
|
96
|
-
* Placeholders - параметры, которые будут подставлены в шаблон пути
|
|
97
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
98
|
-
* Body - тело запроса (never для GET)
|
|
99
|
-
* Result - ожидаемый результат выполнения запроса
|
|
100
|
-
*
|
|
101
|
-
* @param { string } url - адрес запроса
|
|
102
|
-
* @param { Options<Method, Params, Query, Body> } options - параметры запроса
|
|
103
|
-
*/
|
|
104
|
-
request<M extends Method, P extends Params, Q extends Query, B extends Body, R extends Result>(url: string, options: Options<M, P, Q, B>): Promise<Response<R>>;
|
|
105
|
-
/**
|
|
106
|
-
* Выполнить GET запрос на сервер
|
|
107
|
-
*
|
|
108
|
-
* Дженерик:
|
|
109
|
-
* Params - параметры, которые будут подставлены в шаблон пути
|
|
110
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
111
|
-
* Result - ожидаемый результат выполнения запроса
|
|
112
|
-
*
|
|
113
|
-
* @param { string } url - адрес запроса
|
|
114
|
-
* @param { GetOptions<Params, Query> } options - параметры GET запроса
|
|
115
|
-
*/
|
|
116
|
-
get<P extends Params, Q extends Query, R extends Result>(url: string, options: GetOptions<P, Q>): Promise<R>;
|
|
117
|
-
/**
|
|
118
|
-
* Выполнить POST запрос на сервер
|
|
119
|
-
*
|
|
120
|
-
* Дженерик:
|
|
121
|
-
* Params - параметры, которые будут подставлены в шаблон пути
|
|
122
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
123
|
-
* Body - тело запроса
|
|
124
|
-
* Result - ожидаемый результат выполнения запроса
|
|
125
|
-
*
|
|
126
|
-
* @param { string } url - адрес запроса
|
|
127
|
-
* @param { PostOptions<Params, Query, Body> } options - параметры POST запроса
|
|
128
|
-
*/
|
|
129
|
-
post<P extends Params, Q extends Query, B extends Body, R extends Result>(url: string, options: PostOptions<P, Q, B>): Promise<R>;
|
|
130
|
-
/**
|
|
131
|
-
* Выполнить PUT запрос на сервер
|
|
132
|
-
*
|
|
133
|
-
* Дженерик:
|
|
134
|
-
* Params - параметры, которые будут подставлены в шаблон пути
|
|
135
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
136
|
-
* Body - тело запроса
|
|
137
|
-
* Result - ожидаемый результат выполнения запроса
|
|
138
|
-
*
|
|
139
|
-
* @param { string } url - адрес запроса
|
|
140
|
-
* @param { PutOptions<Params, Query, Body> } options - параметры PUT запроса
|
|
141
|
-
*/
|
|
142
|
-
put<P extends Params, Q extends Query, B extends Body, R extends Result>(url: string, options: PutOptions<P, Q, B>): Promise<R>;
|
|
143
|
-
/**
|
|
144
|
-
* Выполнить PATCH запрос на сервер
|
|
145
|
-
*
|
|
146
|
-
* Дженерик:
|
|
147
|
-
* Params - параметры, которые будут подставлены в шаблон пути
|
|
148
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
149
|
-
* Body - тело запроса
|
|
150
|
-
* Result - ожидаемый результат выполнения запроса
|
|
151
|
-
*
|
|
152
|
-
* @param { string } url - адрес запроса
|
|
153
|
-
* @param { PatchOptions<Params, Query, Body> } options - параметры PATCH запроса
|
|
154
|
-
*/
|
|
155
|
-
patch<P extends Params, Q extends Query, B extends Body, R extends Result>(url: string, options: PatchOptions<P, Q, B>): Promise<R>;
|
|
156
|
-
/**
|
|
157
|
-
* Выполнить DELETE запрос на сервер
|
|
158
|
-
*
|
|
159
|
-
* Дженерик:
|
|
160
|
-
* Params - параметры, которые будут подставлены в шаблон пути
|
|
161
|
-
* Query - параметры, которые будут преобразованы в строку запроса
|
|
162
|
-
* Body - тело запроса
|
|
163
|
-
* Result - ожидаемый результат выполнения запроса
|
|
164
|
-
*
|
|
165
|
-
* @param { string } url - адрес запроса
|
|
166
|
-
* @param { DeleteOptions<Params, Query, Body> } options - параметры DELETE запроса
|
|
167
|
-
*/
|
|
168
|
-
delete<P extends Params, Q extends Query, B extends Body, R extends Result>(url: string, options: DeleteOptions<P, Q, B>): Promise<R>;
|
|
169
|
-
}
|
package/lib/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("axios"));else if("function"==typeof define&&define.amd)define(["axios"],e);else{var r="object"==typeof exports?e(require("axios")):e(t.axios);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=176)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(97))},function(t,e,r){var n=r(0),o=r(69),i=r(9),a=r(70),c=r(68),u=r(67),s=o("wks"),f=n.Symbol,p=f&&f.for,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var e="Symbol."+t;c&&i(f,t)?s[t]=f[t]:s[t]=u&&p?p(e):l(e)}return s[t]}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o);t.exports=n?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e,r){t.exports=r(173)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){"use strict";var n=r(0),o=r(38),i=r(3),a=r(2),c=r(39).f,u=r(72),s=r(20),f=r(30),p=r(13),l=r(9),y=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,d,h,v,g,m,b,w=t.target,x=t.global,S=t.stat,O=t.proto,A=x?n:S?n[w]:(n[w]||{}).prototype,E=x?s:s[w]||p(s,w,{})[w],j=E.prototype;for(d in e)r=!u(x?d:w+(S?".":"#")+d,t.forced)&&A&&l(A,d),v=E[d],r&&(g=t.noTargetGet?(b=c(A,d))&&b.value:A[d]),h=r&&g?g:e[d],r&&typeof v==typeof h||(m=t.bind&&r?f(h,n):t.wrap&&r?y(h):O&&a(h)?i(h):h,(t.sham||h&&h.sham||v&&v.sham)&&p(m,"sham",!0),p(E,d,m),O&&(l(s,o=w+"Prototype")||p(s,o,{}),p(s[o],d,h),t.real&&j&&!j[d]&&p(j,d,h)))}},function(t,e,r){var n=r(2);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,r){var n=r(3),o=r(43),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(0),o=r(7),i=n.String,a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not an object")}},function(t,e,r){var n=r(20),o=r(0),i=r(2),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,r){var n=r(5);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(12),o=r(16),i=r(18);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(3);t.exports=n({}.isPrototypeOf)},function(t,e,r){var n=r(0),o=r(2),i=r(29),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a function")}},function(t,e,r){var n=r(0),o=r(12),i=r(71),a=r(10),c=r(40),u=n.TypeError,s=Object.defineProperty;e.f=o?s:function(t,e,r){if(a(t),e=c(e),a(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){t.exports=function(){"use strict";function t(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function e(r,n){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=t({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+r.write(o,e)+a}}function i(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],n={},o=0;o<e.length;o++){var i=e[o].split("="),a=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(n[c]=r.read(a,c),t===c)break}catch(t){}}return t?n[t]:n}}return Object.create({set:o,get:i,remove:function(e,r){o(e,"",t({},r,{expires:-1}))},withAttributes:function(r){return e(this.converter,t({},this.attributes,r))},withConverter:function(r){return e(t({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}return e({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(99),o=r(27);t.exports=function(t){return n(o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,r){var n=r(3),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n=r(11);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(0),o=r(46),i=r(2),a=r(23),c=r(1)("toStringTag"),u=n.Object,s="Arguments"==a(function(){return arguments}());t.exports=o?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=u(t),c))?r:s?a(e):"Object"==(n=a(e))&&i(e.callee)?"Arguments":n}},function(t,e,r){var n=r(13);t.exports=function(t,e,r,o){o&&o.enumerable?t[e]=r:n(t,e,r)}},function(t,e,r){var n=r(0).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e,r){var n,o,i=r(0),a=r(24),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(0).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(3),o=r(15),i=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(103);t.exports=function(t){return n(t.length)}},function(t,e,r){var n=r(20);t.exports=function(t){return n[t+"Prototype"]}},function(t,e,r){var n=r(0),o=r(25),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e,r){var n=r(3),o=r(10),i=r(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},function(t,e,r){var n=r(0),o=r(30),i=r(8),a=r(10),c=r(29),u=r(126),s=r(31),f=r(14),p=r(127),l=r(80),y=r(128),d=n.TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,r){var n,g,m,b,w,x,S,O=r&&r.that,A=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),P=o(e,O),T=function(t){return n&&y(n,"normal",t),new h(!0,t)},k=function(t){return A?(a(t),j?P(t[0],t[1],T):P(t[0],t[1])):j?P(t,T):P(t)};if(E)n=t;else{if(!(g=l(t)))throw d(c(t)+" is not iterable");if(u(g)){for(m=0,b=s(t);b>m;m++)if((w=k(t[m]))&&f(v,w))return w;return new h(!1)}n=p(t,g)}for(x=n.next;!(S=i(x,n)).done;){try{w=k(S.value)}catch(t){y(n,"throw",t)}if("object"==typeof w&&w&&f(v,w))return w}return new h(!1)}},function(t,e,r){"use strict";var n=r(15),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},function(t,e,r){t.exports=r(156)},function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,r){var n=r(12),o=r(8),i=r(98),a=r(18),c=r(19),u=r(40),s=r(9),f=r(71),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=c(t),e=u(e),f)try{return p(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},function(t,e,r){var n=r(100),o=r(66);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},function(t,e,r){var n=r(15);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},function(t,e,r){var n=r(0),o=r(102),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},function(t,e,r){var n=r(0),o=r(27),i=n.Object;t.exports=function(t){return i(o(t))}},function(t,e,r){var n=r(0),o=r(7),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},function(t,e,r){var n={};n[r(1)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(23);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(3),o=r(5),i=r(2),a=r(25),c=r(11),u=r(49),s=function(){},f=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,y=n(l.exec),d=!l.exec(s),h=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!y(l,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!p||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},function(t,e,r){var n=r(3),o=r(2),i=r(42),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},function(t,e,r){var n=r(3);t.exports=n([].slice)},function(t,e,r){var n=r(0),o=r(9),i=r(2),a=r(43),c=r(52),u=r(116),s=c("IE_PROTO"),f=n.Object,p=f.prototype;t.exports=u?f.getPrototypeOf:function(t){var e=a(t);if(o(e,s))return e[s];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof f?p:null}},function(t,e,r){var n=r(69),o=r(70),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n,o=r(10),i=r(122),a=r(54),c=r(53),u=r(79),s=r(44),f=r(52),p=f("IE_PROTO"),l=function(){},y=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&n?d(n):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):d(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};c[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[p]=t):r=h(),void 0===e?r:i(r,e)}},function(t,e,r){var n,o,i,a=r(131),c=r(0),u=r(3),s=r(7),f=r(13),p=r(9),l=r(42),y=r(52),d=r(53),h="Object already initialized",v=c.TypeError,g=c.WeakMap;if(a||l.state){var m=l.state||(l.state=new g),b=u(m.get),w=u(m.has),x=u(m.set);n=function(t,e){if(w(m,t))throw new v(h);return e.facade=t,x(m,t,e),e},o=function(t){return b(m,t)||{}},i=function(t){return w(m,t)}}else{var S=y("state");d[S]=!0,n=function(t,e){if(p(t,S))throw new v(h);return e.facade=t,f(t,S,e),e},o=function(t){return p(t,S)?t[S]:{}},i=function(t){return p(t,S)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!s(e)||(r=o(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(46),o=r(16).f,i=r(13),a=r(9),c=r(134),u=r(1)("toStringTag");t.exports=function(t,e,r,s){if(t){var f=r?t:t.prototype;a(f,u)||o(f,u,{configurable:!0,value:e}),s&&!n&&i(f,"toString",c)}}},function(t,e,r){var n=r(23),o=r(0);t.exports="process"==n(o.process)},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var s=function(){throw new a},f=u?function(){try{return s}catch(t){try{return u(arguments,"callee").get}catch(t){return s}}}():s,p=r(164)(),l=Object.getPrototypeOf||function(t){return t.__proto__},y={},d="undefined"==typeof Uint8Array?n:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},v=function t(e){var r;if("%AsyncFunction%"===e)r=c("async function () {}");else if("%GeneratorFunction%"===e)r=c("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=c("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=l(o.prototype))}return h[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(61),b=r(167),w=m.call(Function.call,Array.prototype.concat),x=m.call(Function.apply,Array.prototype.splice),S=m.call(Function.call,String.prototype.replace),O=m.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,j=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,A,(function(t,e,r,o){n[n.length]=r?S(o,E,"$1"):e||t})),n},P=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(h,n)){var i=h[n];if(i===y&&(i=v(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=j(t),n=r.length>0?r[0]:"",i=P("%"+n+"%",e),c=i.name,s=i.value,f=!1,p=i.alias;p&&(n=p[0],x(r,w([0,1],p)));for(var l=1,y=!0;l<r.length;l+=1){var d=r[l],v=O(d,0,1),g=O(d,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(f=!0),b(h,c="%"+(n+="."+d)+"%"))s=h[c];else if(null!=s){if(!(d in s)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&l+1>=r.length){var m=u(s,d);s=(y=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else y=b(s,d),s=s[d];y&&!f&&(h[c]=s)}}return s}},function(t,e,r){"use strict";var n=r(166);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){t.exports=r(109)},function(t,e,r){t.exports=r(113)},function(t,e,r){"use strict";var n=r(162),o=r(172),i=r(62);t.exports={formats:i,parse:o,stringify:n}},function(t,e,r){var n=r(0),o=r(11),i=r(2),a=r(14),c=r(67),u=n.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&a(e.prototype,u(t))}},function(t,e,r){var n=r(68);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(28),o=r(5);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e,r){var n=r(21),o=r(42);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(3),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},function(t,e,r){var n=r(12),o=r(5),i=r(44);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(5),o=r(2),i=/#|\.prototype\./,a=function(t,e){var r=u[c(t)];return r==f||r!=s&&(o(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},function(t,e,r){var n=r(19),o=r(74),i=r(31),a=function(t){return function(e,r,a){var c,u=n(e),s=i(u),f=o(a,s);if(t&&r!=r){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(45),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=r(40),o=r(16),i=r(18);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},function(t,e,r){var n=r(5),o=r(1),i=r(28),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(3),o=r(9),i=r(19),a=r(73).indexOf,c=r(53),u=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,f=[];for(r in n)!o(c,r)&&o(n,r)&&u(f,r);for(;e.length>s;)o(n,r=e[s++])&&(~a(f,r)||u(f,r));return f}},function(t,e,r){var n=r(11);t.exports=n("document","documentElement")},function(t,e,r){var n=r(25),o=r(41),i=r(22),a=r(1)("iterator");t.exports=function(t){if(null!=t)return o(t,a)||o(t,"@@iterator")||i[n(t)]}},function(t,e,r){"use strict";var n=r(19),o=r(75),i=r(22),a=r(56),c=r(16).f,u=r(82),s=r(21),f=r(12),p="Array Iterator",l=a.set,y=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){l(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=y(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(t){}},function(t,e,r){"use strict";var n=r(6),o=r(8),i=r(21),a=r(132),c=r(2),u=r(133),s=r(51),f=r(34),p=r(57),l=r(13),y=r(26),d=r(1),h=r(22),v=r(83),g=a.PROPER,m=a.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=d("iterator"),S="keys",O="values",A="entries",E=function(){return this};t.exports=function(t,e,r,a,d,v,j){u(r,e,a);var P,T,k,R=function(t){if(t===d&&N)return N;if(!w&&t in C)return C[t];switch(t){case S:case O:case A:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",_=!1,C=t.prototype,M=C[x]||C["@@iterator"]||d&&C[d],N=!w&&M||R(d),F="Array"==e&&C.entries||M;if(F&&(P=s(F.call(new t)))!==Object.prototype&&P.next&&(i||s(P)===b||(f?f(P,b):c(P[x])||y(P,x,E)),p(P,I,!0,!0),i&&(h[I]=E)),g&&d==O&&M&&M.name!==O&&(!i&&m?l(C,"name",O):(_=!0,N=function(){return o(M,this)})),d)if(T={values:R(O),keys:v?N:R(S),entries:R(A)},j)for(k in T)(w||_||!(k in C))&&y(C,k,T[k]);else n({target:e,proto:!0,forced:w||_},T);return i&&!j||C[x]===N||y(C,x,N,{name:d}),h[e]=N,T}},function(t,e,r){"use strict";var n,o,i,a=r(5),c=r(2),u=r(55),s=r(51),f=r(26),p=r(1),l=r(21),y=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):d=!0),null==n||a((function(){var t={};return n[y].call(t)!==t}))?n={}:l&&(n=u(n)),c(n[y])||f(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},function(t,e,r){var n=r(0);t.exports=n.Promise},function(t,e,r){var n=r(10),o=r(141),i=r(1)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n,o,i,a,c=r(0),u=r(38),s=r(30),f=r(2),p=r(9),l=r(5),y=r(79),d=r(50),h=r(44),v=r(87),g=r(58),m=c.setImmediate,b=c.clearImmediate,w=c.process,x=c.Dispatch,S=c.Function,O=c.MessageChannel,A=c.String,E=0,j={},P="onreadystatechange";try{n=c.location}catch(t){}var T=function(t){if(p(j,t)){var e=j[t];delete j[t],e()}},k=function(t){return function(){T(t)}},R=function(t){T(t.data)},I=function(t){c.postMessage(A(t),n.protocol+"//"+n.host)};m&&b||(m=function(t){var e=d(arguments,1);return j[++E]=function(){u(f(t)?t:S(t),void 0,e)},o(E),E},b=function(t){delete j[t]},g?o=function(t){w.nextTick(k(t))}:x&&x.now?o=function(t){x.now(k(t))}:O&&!v?(a=(i=new O).port2,i.port1.onmessage=R,o=s(a.postMessage,a)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!l(I)?(o=I,c.addEventListener("message",R,!1)):o=P in h("script")?function(t){y.appendChild(h("script")).onreadystatechange=function(){y.removeChild(this),T(t)}}:function(t){setTimeout(k(t),0)}),t.exports={set:m,clear:b}},function(t,e,r){var n=r(24);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(t,e,r){var n=r(10),o=r(7),i=r(36);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";var n=r(62),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],c=Object.keys(a),u=0;u<c.length;++u){var s=c[u],f=a[s];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(e.push({obj:a,prop:s}),r.push(f))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",s=0;s<c.length;++s){var f=c.charCodeAt(s);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===n.RFC1738&&(40===f||41===f)?u+=c.charAt(s):f<128?u+=a[f]:f<2048?u+=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?u+=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&c.charCodeAt(s)),u+=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=c(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},function(t,e,r){t.exports=r(93)},function(t,e,r){t.exports=r(154)},function(e,r){e.exports=t},function(t,e,r){var n=r(94);t.exports=n},function(t,e,r){var n=r(14),o=r(95),i=r(104),a=Array.prototype,c=String.prototype;t.exports=function(t){var e=t.includes;return t===a||n(a,t)&&e===a.includes?o:"string"==typeof t||t===c||n(c,t)&&e===c.includes?i:e}},function(t,e,r){r(96);var n=r(32);t.exports=n("Array").includes},function(t,e,r){"use strict";var n=r(6),o=r(73).includes,i=r(75);n({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(0),o=r(3),i=r(5),a=r(23),c=n.Object,u=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):c(t)}:c},function(t,e,r){var n=r(0),o=r(8),i=r(7),a=r(66),c=r(41),u=r(101),s=r(1),f=n.TypeError,p=s("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,n=c(t,p);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||a(r))return r;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,r){var n=r(0),o=r(8),i=r(2),a=r(7),c=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!a(n=o(r,t)))return n;if(i(r=t.valueOf)&&!a(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!a(n=o(r,t)))return n;throw c("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(45),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){r(105);var n=r(32);t.exports=n("String").includes},function(t,e,r){"use strict";var n=r(6),o=r(3),i=r(106),a=r(27),c=r(33),u=r(108),s=o("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~s(c(a(this)),c(i(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0),o=r(107),i=n.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(7),o=r(23),i=r(1)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){var n=r(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){var n=r(110);t.exports=n},function(t,e,r){var n=r(14),o=r(111),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||n(i,t)&&e===i.slice?o:e}},function(t,e,r){r(112);var n=r(32);t.exports=n("Array").slice},function(t,e,r){"use strict";var n=r(6),o=r(0),i=r(47),a=r(48),c=r(7),u=r(74),s=r(31),f=r(19),p=r(76),l=r(1),y=r(77),d=r(50),h=y("slice"),v=l("species"),g=o.Array,m=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var r,n,o,l=f(this),y=s(l),h=u(t,y),b=u(void 0===e?y:e,y);if(i(l)&&(r=l.constructor,(a(r)&&(r===g||i(r.prototype))||c(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return d(l,h,b);for(n=new(void 0===r?g:r)(m(b-h,0)),o=0;h<b;h++,o++)h in l&&p(n,o,l[h]);return n.length=o,n}})},function(t,e,r){var n=r(114);r(152),t.exports=n},function(t,e,r){r(115),r(81),r(135),r(136),r(147),r(148),r(149),r(150);var n=r(20);t.exports=n.Promise},function(t,e,r){"use strict";var n=r(6),o=r(0),i=r(14),a=r(51),c=r(34),u=r(118),s=r(55),f=r(13),p=r(18),l=r(124),y=r(125),d=r(35),h=r(129),v=r(1),g=r(130),m=v("toStringTag"),b=o.Error,w=[].push,x=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=i(S,this);c?r=c(new b,o?a(this):S):(r=o?this:s(S),f(r,m,"Error")),void 0!==e&&f(r,"message",h(e)),g&&f(r,"stack",l(r.stack,1)),y(r,n);var u=[];return d(t,w,{that:u}),f(r,"errors",u),r};c?c(x,b):u(x,b,{name:!0});var S=x.prototype=s(b.prototype,{constructor:p(1,x),message:p(1,""),name:p(1,"AggregateError")});n({global:!0},{AggregateError:x})},function(t,e,r){var n=r(5);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(0),o=r(2),i=n.String,a=n.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},function(t,e,r){var n=r(9),o=r(119),i=r(39),a=r(16);t.exports=function(t,e,r){for(var c=o(e),u=a.f,s=i.f,f=0;f<c.length;f++){var p=c[f];n(t,p)||r&&n(r,p)||u(t,p,s(e,p))}}},function(t,e,r){var n=r(11),o=r(3),i=r(120),a=r(121),c=r(10),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},function(t,e,r){var n=r(78),o=r(54).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(12),o=r(16),i=r(10),a=r(19),c=r(123);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),u=c(e),s=u.length,f=0;s>f;)o.f(t,r=u[f++],n[r]);return t}},function(t,e,r){var n=r(78),o=r(54);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(3)("".replace),o=String(Error("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,a=i.test(o);t.exports=function(t,e){if(a&&"string"==typeof t)for(;e--;)t=n(t,i,"");return t}},function(t,e,r){var n=r(7),o=r(13);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},function(t,e,r){var n=r(1),o=r(22),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,r){var n=r(0),o=r(8),i=r(15),a=r(10),c=r(29),u=r(80),s=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(i(r))return a(o(r,t));throw s(c(t)+" is not iterable")}},function(t,e,r){var n=r(8),o=r(10),i=r(41);t.exports=function(t,e,r){var a,c;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){c=!0,a=t}if("throw"===e)throw r;if(c)throw a;return o(a),r}},function(t,e,r){var n=r(33);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},function(t,e,r){var n=r(5),o=r(18);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},function(t,e,r){var n=r(0),o=r(2),i=r(49),a=n.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},function(t,e,r){var n=r(12),o=r(9),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},function(t,e,r){"use strict";var n=r(83).IteratorPrototype,o=r(55),i=r(18),a=r(57),c=r(22),u=function(){return this};t.exports=function(t,e,r,s){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!s,r)}),a(t,f,!1,!0),c[f]=u,t}},function(t,e,r){"use strict";var n=r(46),o=r(25);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e){},function(t,e,r){"use strict";var n,o,i,a,c=r(6),u=r(21),s=r(0),f=r(11),p=r(8),l=r(84),y=r(26),d=r(137),h=r(34),v=r(57),g=r(138),m=r(15),b=r(2),w=r(7),x=r(139),S=r(49),O=r(35),A=r(140),E=r(85),j=r(86).set,P=r(142),T=r(88),k=r(145),R=r(36),I=r(59),_=r(56),C=r(72),M=r(1),N=r(146),F=r(58),D=r(28),U=M("species"),L="Promise",B=_.getterFor(L),z=_.set,H=_.getterFor(L),G=l&&l.prototype,W=l,q=G,V=s.TypeError,$=s.document,K=s.process,Q=R.f,J=Q,Z=!!($&&$.createEvent&&s.dispatchEvent),Y=b(s.PromiseRejectionEvent),X="unhandledrejection",tt=!1,et=C(L,(function(){var t=S(W),e=t!==String(W);if(!e&&66===D)return!0;if(u&&!q.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var r=new W((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[U]=n,!(tt=r.then((function(){}))instanceof n)||!e&&N&&!Y})),rt=et||!A((function(t){W.all(t).catch((function(){}))})),nt=function(t){var e;return!(!w(t)||!b(e=t.then))&&e},ot=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;P((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,c,u,s=r[i++],f=o?s.ok:s.fail,l=s.resolve,y=s.reject,d=s.domain;try{f?(o||(2===t.rejection&&ut(t),t.rejection=1),!0===f?a=n:(d&&d.enter(),a=f(n),d&&(d.exit(),u=!0)),a===s.promise?y(V("Promise-chain cycle")):(c=nt(a))?p(c,a,l,y):l(a)):y(n)}catch(t){d&&!u&&d.exit(),y(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&at(t)}))}},it=function(t,e,r){var n,o;Z?((n=$.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},!Y&&(o=s["on"+t])?o(n):t===X&&k("Unhandled promise rejection",r)},at=function(t){p(j,s,(function(){var e,r=t.facade,n=t.value;if(ct(t)&&(e=I((function(){F?K.emit("unhandledRejection",n,r):it(X,r,n)})),t.rejection=F||ct(t)?2:1,e.error))throw e.value}))},ct=function(t){return 1!==t.rejection&&!t.parent},ut=function(t){p(j,s,(function(){var e=t.facade;F?K.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},st=function(t,e,r){return function(n){t(e,n,r)}},ft=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ot(t,!0))},pt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw V("Promise can't be resolved itself");var n=nt(e);n?P((function(){var r={done:!1};try{p(n,e,st(pt,r,t),st(ft,r,t))}catch(e){ft(r,e,t)}})):(t.value=e,t.state=1,ot(t,!1))}catch(e){ft({done:!1},e,t)}}};if(et&&(q=(W=function(t){x(this,q),m(t),p(n,this);var e=B(this);try{t(st(pt,e),st(ft,e))}catch(t){ft(e,t)}}).prototype,(n=function(t){z(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(q,{then:function(t,e){var r=H(this),n=r.reactions,o=Q(E(this,W));return o.ok=!b(t)||t,o.fail=b(e)&&e,o.domain=F?K.domain:void 0,r.parent=!0,n[n.length]=o,0!=r.state&&ot(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=B(t);this.promise=t,this.resolve=st(pt,e),this.reject=st(ft,e)},R.f=Q=function(t){return t===W||t===i?new o(t):J(t)},!u&&b(l)&&G!==Object.prototype)){a=G.then,tt||(y(G,"then",(function(t,e){var r=this;return new W((function(t,e){p(a,r,t,e)})).then(t,e)}),{unsafe:!0}),y(G,"catch",q.catch,{unsafe:!0}));try{delete G.constructor}catch(t){}h&&h(G,q)}c({global:!0,wrap:!0,forced:et},{Promise:W}),v(W,L,!1,!0),g(L),i=f(L),c({target:L,stat:!0,forced:et},{reject:function(t){var e=Q(this);return p(e.reject,void 0,t),e.promise}}),c({target:L,stat:!0,forced:u||et},{resolve:function(t){return T(u&&this===i?W:this,t)}}),c({target:L,stat:!0,forced:rt},{all:function(t){var e=this,r=Q(e),n=r.resolve,o=r.reject,i=I((function(){var r=m(e.resolve),i=[],a=0,c=1;O(t,(function(t){var u=a++,s=!1;c++,p(r,e,t).then((function(t){s||(s=!0,i[u]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Q(e),n=r.reject,o=I((function(){var o=m(e.resolve);O(t,(function(t){p(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},function(t,e,r){var n=r(26);t.exports=function(t,e,r){for(var o in e)r&&r.unsafe&&t[o]?t[o]=e[o]:n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(11),o=r(16),i=r(1),a=r(12),c=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(0),o=r(14),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,r){var n=r(1)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n=r(0),o=r(48),i=r(29),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a constructor")}},function(t,e,r){var n,o,i,a,c,u,s,f,p=r(0),l=r(30),y=r(39).f,d=r(86).set,h=r(87),v=r(143),g=r(144),m=r(58),b=p.MutationObserver||p.WebKitMutationObserver,w=p.document,x=p.process,S=p.Promise,O=y(p,"queueMicrotask"),A=O&&O.value;A||(n=function(){var t,e;for(m&&(t=x.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},h||m||g||!b||!w?!v&&S&&S.resolve?((s=S.resolve(void 0)).constructor=S,f=l(s.then,s),a=function(){f(n)}):m?a=function(){x.nextTick(n)}:(d=l(d,p),a=function(){d(n)}):(c=!0,u=w.createTextNode(""),new b(n).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),t.exports=A||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,r){var n=r(24),o=r(0);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},function(t,e,r){var n=r(24);t.exports=/web0s(?!.*chrome)/i.test(n)},function(t,e,r){var n=r(0);t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports="object"==typeof window},function(t,e,r){"use strict";var n=r(6),o=r(8),i=r(15),a=r(36),c=r(59),u=r(35);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=a.f(e),n=r.resolve,s=r.reject,f=c((function(){var r=i(e.resolve),a=[],c=0,s=1;u(t,(function(t){var i=c++,u=!1;s++,o(r,e,t).then((function(t){u||(u=!0,a[i]={status:"fulfilled",value:t},--s||n(a))}),(function(t){u||(u=!0,a[i]={status:"rejected",reason:t},--s||n(a))}))})),--s||n(a)}));return f.error&&s(f.value),r.promise}})},function(t,e,r){"use strict";var n=r(6),o=r(15),i=r(11),a=r(8),c=r(36),u=r(59),s=r(35),f="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=i("AggregateError"),n=c.f(e),p=n.resolve,l=n.reject,y=u((function(){var n=o(e.resolve),i=[],c=0,u=1,y=!1;s(t,(function(t){var o=c++,s=!1;u++,a(n,e,t).then((function(t){s||y||(y=!0,p(t))}),(function(t){s||y||(s=!0,i[o]=t,--u||l(new r(i,f)))}))})),--u||l(new r(i,f))}));return y.error&&l(y.value),n.promise}})},function(t,e,r){"use strict";var n=r(6),o=r(21),i=r(84),a=r(5),c=r(11),u=r(2),s=r(85),f=r(88),p=r(26);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=s(this,c("Promise")),r=u(t);return this.then(r?function(r){return f(e,t()).then((function(){return r}))}:t,r?function(r){return f(e,t()).then((function(){throw r}))}:t)}}),!o&&u(i)){var l=c("Promise").prototype.finally;i.prototype.finally!==l&&p(i.prototype,"finally",l,{unsafe:!0})}},function(t,e,r){"use strict";var n=r(151).charAt,o=r(33),i=r(56),a=r(82),c="String Iterator",u=i.set,s=i.getterFor(c);a(String,"String",(function(t){u(this,{type:c,string:o(t),index:0})}),(function(){var t,e=s(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(3),o=r(45),i=r(33),a=r(27),c=n("".charAt),u=n("".charCodeAt),s=n("".slice),f=function(t){return function(e,r){var n,f,p=i(a(e)),l=o(r),y=p.length;return l<0||l>=y?t?"":void 0:(n=u(p,l))<55296||n>56319||l+1===y||(f=u(p,l+1))<56320||f>57343?t?c(p,l):n:t?s(p,l,l+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,r){r(81);var n=r(153),o=r(0),i=r(25),a=r(13),c=r(22),u=r(1)("toStringTag");for(var s in n){var f=o[s],p=f&&f.prototype;p&&i(p)!==u&&a(p,u,s),c[s]=c.Array}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){r(155);var n=r(20);t.exports=n.setTimeout},function(t,e,r){var n=r(6),o=r(0),i=r(38),a=r(2),c=r(24),u=r(50),s=/MSIE .\./.test(c),f=o.Function,p=function(t){return function(e,r){var n=arguments.length>2,o=n?u(arguments,2):void 0;return t(n?function(){i(a(e)?e:f(e),this,o)}:e,r)}};n({global:!0,bind:!0,forced:s},{setTimeout:p(o.setTimeout),setInterval:p(o.setInterval)})},function(t,e,r){var n=r(157);t.exports=n},function(t,e,r){var n=r(14),o=r(158),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||n(i,t)&&e===i.concat?o:e}},function(t,e,r){r(159);var n=r(32);t.exports=n("Array").concat},function(t,e,r){"use strict";var n=r(6),o=r(0),i=r(5),a=r(47),c=r(7),u=r(43),s=r(31),f=r(76),p=r(160),l=r(77),y=r(1),d=r(28),h=y("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=o.TypeError,b=d>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),w=l("concat"),x=function(t){if(!c(t))return!1;var e=t[h];return void 0!==e?!!e:a(t)};n({target:"Array",proto:!0,forced:!b||!w},{concat:function(t){var e,r,n,o,i,a=u(this),c=p(a,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(x(i=-1===e?a:arguments[e])){if(l+(o=s(i))>v)throw m(g);for(r=0;r<o;r++,l++)r in i&&f(c,l,i[r])}else{if(l>=v)throw m(g);f(c,l++,i)}return c.length=l,c}})},function(t,e,r){var n=r(161);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,r){var n=r(0),o=r(47),i=r(48),a=r(7),c=r(1)("species"),u=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===u||o(e.prototype))||a(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?u:e}},function(t,e,r){"use strict";var n=r(163),o=r(89),i=r(62),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,s=String.prototype.split,f=Array.prototype.push,p=function(t,e){f.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,y=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:y,formatter:i.formatters[y],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h={},v=function t(e,r,i,a,c,f,l,y,v,g,m,b,w,x,S){for(var O,A=e,E=S,j=0,P=!1;void 0!==(E=E.get(h))&&!P;){var T=E.get(e);if(j+=1,void 0!==T){if(T===j)throw new RangeError("Cyclic object value");P=!0}void 0===E.get(h)&&(j=0)}if("function"==typeof l?A=l(r,A):A instanceof Date?A=g(A):"comma"===i&&u(A)&&(A=o.maybeMap(A,(function(t){return t instanceof Date?g(t):t}))),null===A){if(a)return f&&!w?f(r,d.encoder,x,"key",m):r;A=""}if("string"==typeof(O=A)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(A)){if(f){var k=w?r:f(r,d.encoder,x,"key",m);if("comma"===i&&w){for(var R=s.call(String(A),","),I="",_=0;_<R.length;++_)I+=(0===_?"":",")+b(f(R[_],d.encoder,x,"value",m));return[b(k)+"="+I]}return[b(k)+"="+b(f(A,d.encoder,x,"value",m))]}return[b(r)+"="+b(String(A))]}var C,M=[];if(void 0===A)return M;if("comma"===i&&u(A))C=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(l))C=l;else{var N=Object.keys(A);C=y?N.sort(y):N}for(var F=0;F<C.length;++F){var D=C[F],U="object"==typeof D&&void 0!==D.value?D.value:A[D];if(!c||null!==U){var L=u(A)?"function"==typeof i?i(r,D):r:r+(v?"."+D:"["+D+"]");S.set(e,j);var B=n();B.set(h,S),p(M,t(U,L,i,a,c,f,l,y,v,g,m,b,w,x,B))}}return M};t.exports=function(t,e){var r,o=t,s=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=d.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:d.charsetSentinel,delimiter:void 0===t.delimiter?d.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:d.encode,encoder:"function"==typeof t.encoder?t.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:d.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:d.strictNullHandling}}(e);"function"==typeof s.filter?o=(0,s.filter)("",o):u(s.filter)&&(r=s.filter);var f,l=[];if("object"!=typeof o||null===o)return"";f=e&&e.arrayFormat in c?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=c[f];r||(r=Object.keys(o)),s.sort&&r.sort(s.sort);for(var h=n(),g=0;g<r.length;++g){var m=r[g];s.skipNulls&&null===o[m]||p(l,v(o[m],m,y,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,h))}var b=l.join(s.delimiter),w=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},function(t,e,r){"use strict";var n=r(60),o=r(168),i=r(170),a=n("%TypeError%"),c=n("%WeakMap%",!0),u=n("%Map%",!0),s=o("WeakMap.prototype.get",!0),f=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),l=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),h=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return s(t,n)}else if(u){if(e)return l(e,n)}else if(r)return function(t,e){var r=h(t,e);return r&&r.value}(r,n)},has:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return p(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!h(t,e)}(r,n);return!1},set:function(n,o){c&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new c),f(t,n,o)):u?(e||(e=new u),y(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=h(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(165);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";t.exports=function(t){var e=this;if("function"!=typeof e||i.call(e)!==a)throw new TypeError(n+e);for(var r,c=o.call(arguments,1),u=function(){if(this instanceof r){var n=e.apply(this,c.concat(o.call(arguments)));return Object(n)===n?n:this}return e.apply(t,c.concat(o.call(arguments)))},s=Math.max(0,e.length-c.length),f=[],p=0;p<s;p++)f.push("$"+p);if(r=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(u),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){"use strict";var n=r(61);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var n=r(60),o=r(169),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},function(t,e,r){"use strict";var n=r(61),o=r(60),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(t){s=null}t.exports=function(t){var e=c(n,a,arguments);if(u&&s){var r=u(e,"length");r.configurable&&s(e,"length",{value:1+f(0,t.length-(arguments.length-1))})}return e};var p=function(){return c(n,i,arguments)};s?s(t.exports,"apply",{value:p}):t.exports.apply=p},function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=c&&u&&"function"==typeof u.get?u.get:null,f=c&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,S=RegExp.prototype.test,O=Array.prototype.concat,A=Array.prototype.join,E=Array.prototype.slice,j=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-j(-t):j(t);if(n!==t){var o=String(n),i=m.call(e,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var N=r(171).custom,F=N&&B(N)?N:null;function D(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function U(t){return b.call(String(t),/"/g,""")}function L(t){return!("[object Array]"!==G(t)||I&&"object"==typeof t&&I in t)}function B(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var c=r||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return q(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?M(e,w):w}if("bigint"==typeof e){var S=String(e)+"n";return h?M(e,S):S}var j=void 0===c.depth?5:c.depth;if(void 0===n&&(n=0),n>=j&&j>0&&"object"==typeof e)return L(e)?"[Array]":"[Object]";var T=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(c,n);if(void 0===o)o=[];else if(W(o,e)>=0)return"[Circular]";function N(e,r,i){if(r&&(o=E.call(o)).push(r),i){var a={depth:c.depth};return H(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),t(e,a,n+1,o)}return t(e,c,n+1,o)}if("function"==typeof e){var z=function(t){if(t.name)return t.name;var e=g.call(v.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),V=Z(e,N);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(V.length>0?" { "+A.call(V,", ")+" }":"")}if(B(e)){var Y=R?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||R?Y:$(Y)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var X="<"+x.call(String(e.nodeName)),tt=e.attributes||[],et=0;et<tt.length;et++)X+=" "+tt[et].name+"="+D(U(tt[et].value),"double",c);return X+=">",e.childNodes&&e.childNodes.length&&(X+="..."),X+="</"+x.call(String(e.nodeName))+">"}if(L(e)){if(0===e.length)return"[]";var rt=Z(e,N);return T&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(rt)?"["+J(rt,T)+"]":"[ "+A.call(rt,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||I&&"object"==typeof t&&I in t)}(e)){var nt=Z(e,N);return"cause"in e&&!_.call(e,"cause")?"{ ["+String(e)+"] "+A.call(O.call("[cause]: "+N(e.cause),nt),", ")+" }":0===nt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(nt,", ")+" }"}if("object"==typeof e&&u){if(F&&"function"==typeof e[F])return e[F]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ot=[];return a.call(e,(function(t,r){ot.push(N(r,e,!0)+" => "+N(t,e))})),Q("Map",i.call(e),ot,T)}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var it=[];return f.call(e,(function(t){it.push(N(t,e))})),Q("Set",s.call(e),it,T)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return K("WeakMap");if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return K("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return K("WeakRef");if(function(t){return!("[object Number]"!==G(t)||I&&"object"==typeof t&&I in t)}(e))return $(N(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return $(N(P.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||I&&"object"==typeof t&&I in t)}(e))return $(d.call(e));if(function(t){return!("[object String]"!==G(t)||I&&"object"==typeof t&&I in t)}(e))return $(N(String(e)));if(!function(t){return!("[object Date]"!==G(t)||I&&"object"==typeof t&&I in t)}(e)&&!function(t){return!("[object RegExp]"!==G(t)||I&&"object"==typeof t&&I in t)}(e)){var at=Z(e,N),ct=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",st=!ct&&I&&Object(e)===e&&I in e?m.call(G(e),8,-1):ut?"Object":"",ft=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(st||ut?"["+A.call(O.call([],st||[],ut||[]),": ")+"] ":"");return 0===at.length?ft+"{}":T?ft+"{"+J(at,T)+"}":ft+"{ "+A.call(at,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function H(t,e){return z.call(t,e)}function G(t){return h.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function q(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return q(m.call(t,0,e.maxStringLength),e)+n}return D(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",e)}function V(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function $(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function Q(t,e,r,n){return t+" ("+e+") {"+(n?J(r,n):A.call(r,", "))+"}"}function J(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=L(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=H(t,o)?e(t[o],t):""}var i,a="function"==typeof T?T(t):[];if(R){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var u in t)H(t,u)&&(r&&String(Number(u))===u&&u<t.length||R&&i["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof T)for(var s=0;s<a.length;s++)_.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}},function(t,e){},function(t,e,r){"use strict";var n=r(89),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},s=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,f=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;f.push(s)}for(var p=0;r.depth>0&&null!==(c=a.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+i.slice(c.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),i=t.length-1;i>=0;--i){var a,c=t[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,f=parseInt(s,10);r.parseArrays||""!==s?!isNaN(f)&&c!==s&&String(f)===s&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:a[s]=o:a={0:o}}o=a}return o}(f,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof t?function(t,e){var r,s={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),y=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<l.length;++r)0===l[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[r]?d="utf-8":"utf8=%26%2310003%3B"===l[r]&&(d="iso-8859-1"),y=r,r=l.length);for(r=0;r<l.length;++r)if(r!==y){var h,v,g=l[r],m=g.indexOf("]="),b=-1===m?g.indexOf("="):m+1;-1===b?(h=e.decoder(g,a.decoder,d,"key"),v=e.strictNullHandling?null:""):(h=e.decoder(g.slice(0,b),a.decoder,d,"key"),v=n.maybeMap(u(g.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===d&&(v=c(v)),g.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(s,h)?s[h]=n.combine(s[h],v):s[h]=v}return s}(t,r):t,p=r.plainObjects?Object.create(null):{},l=Object.keys(f),y=0;y<l.length;++y){var d=l[y],h=s(d,f[d],r,"string"==typeof t);p=n.merge(p,h,r)}return!0===r.allowSparse?p:n.compact(p)}},function(t,e,r){var n=r(174);t.exports=n},function(t,e,r){r(175);var n=r(20);t.exports=n.Object.setPrototypeOf},function(t,e,r){r(6)({target:"Object",stat:!0},{setPrototypeOf:r(34)})},function(t,e,r){"use strict";r.r(e),r.d(e,"HttpClient",(function(){return Q})),r.d(e,"HttpClientError",(function(){return M})),r.d(e,"InternalError",(function(){return N})),r.d(e,"UnknownError",(function(){return F})),r.d(e,"BadRequestError",(function(){return D})),r.d(e,"UnauthorizedError",(function(){return U})),r.d(e,"ForbiddenError",(function(){return L})),r.d(e,"NotFoundError",(function(){return B})),r.d(e,"MethodNotAllowedError",(function(){return z})),r.d(e,"UnsupportedMediaTypeError",(function(){return H})),r.d(e,"UnprocessableEntityError",(function(){return G})),r.d(e,"InternalServerError",(function(){return W})),r.d(e,"BadGatewayError",(function(){return q})),r.d(e,"ServiceUnavailableError",(function(){return V})),r.d(e,"GatewayTimeoutError",(function(){return $}));var n=r(90),o=r.n(n),i=r(63),a=r.n(i),c=r(64),u=r.n(c),s=r(91),f=r.n(s),p=r(37),l=r.n(p),y=function(t,e){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},y(t,e)};function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var h=function(){return h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},h.apply(this,arguments)};function v(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))}function g(t,e){var r,n,o,i,a={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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=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 m=r(92),b=r.n(m),w=r(17),x=r.n(w);function S(t){this.message=t}S.prototype=new Error,S.prototype.name="InvalidCharacterError";var O="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new S("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,a="";n=e.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function A(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(O(t).replace(/(.)/g,(function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(e)}catch(t){return O(e)}}function E(t){this.message=t}E.prototype=new Error,E.prototype.name="InvalidTokenError";var j=function(t,e){if("string"!=typeof t)throw new E("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(A(t.split(".")[r]))}catch(t){throw new E("Invalid token specified: "+t.message)}};function P(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],r=0;r<t.length;){var n=t[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)e.push({type:"CHAR",index:r,value:t[r++]});else{var o=1,i="";if("?"===t[c=r+1])throw new TypeError('Pattern cannot start with "?" at '+c);for(;c<t.length;)if("\\"!==t[c]){if(")"===t[c]){if(0==--o){c++;break}}else if("("===t[c]&&(o++,"?"!==t[c+1]))throw new TypeError("Capturing groups are not allowed at "+c);i+=t[c++]}else i+=t[c++]+t[c++];if(o)throw new TypeError("Unbalanced pattern at "+r);if(!i)throw new TypeError("Missing pattern at "+r);e.push({type:"PATTERN",index:r,value:i}),r=c}else{for(var a="",c=r+1;c<t.length;){var u=t.charCodeAt(c);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;a+=t[c++]}if(!a)throw new TypeError("Missing parameter name at "+r);e.push({type:"NAME",index:r,value:a}),r=c}else e.push({type:"CLOSE",index:r,value:t[r++]});else e.push({type:"OPEN",index:r,value:t[r++]});else e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else e.push({type:"MODIFIER",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}(t),n=e.prefixes,o=void 0===n?"./":n,i="[^"+k(e.delimiter||"/#?")+"]+?",a=[],c=0,u=0,s="",f=function(t){if(u<r.length&&r[u].type===t)return r[u++].value},p=function(t){var e=f(t);if(void 0!==e)return e;var n=r[u],o=n.type,i=n.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+t)},l=function(){for(var t,e="";t=f("CHAR")||f("ESCAPED_CHAR");)e+=t;return e};u<r.length;){var y=f("CHAR"),d=f("NAME"),h=f("PATTERN");if(d||h){var v=y||"";-1===o.indexOf(v)&&(s+=v,v=""),s&&(a.push(s),s=""),a.push({name:d||c++,prefix:v,suffix:"",pattern:h||i,modifier:f("MODIFIER")||""})}else{var g=y||f("ESCAPED_CHAR");if(g)s+=g;else if(s&&(a.push(s),s=""),f("OPEN")){v=l();var m=f("NAME")||"",b=f("PATTERN")||"",w=l();p("CLOSE"),a.push({name:m||(b?c++:""),pattern:m&&!b?i:b,prefix:v,suffix:w,modifier:f("MODIFIER")||""})}else p("END")}}return a}function T(t,e){return function(t,e){void 0===e&&(e={});var r=R(e),n=e.encode,o=void 0===n?function(t){return t}:n,i=e.validate,a=void 0===i||i,c=t.map((function(t){if("object"==typeof t)return new RegExp("^(?:"+t.pattern+")$",r)}));return function(e){for(var r="",n=0;n<t.length;n++){var i=t[n];if("string"!=typeof i){var u=e?e[i.name]:void 0,s="?"===i.modifier||"*"===i.modifier,f="*"===i.modifier||"+"===i.modifier;if(Array.isArray(u)){if(!f)throw new TypeError('Expected "'+i.name+'" to not repeat, but got an array');if(0===u.length){if(s)continue;throw new TypeError('Expected "'+i.name+'" to not be empty')}for(var p=0;p<u.length;p++){var l=o(u[p],i);if(a&&!c[n].test(l))throw new TypeError('Expected all "'+i.name+'" to match "'+i.pattern+'", but got "'+l+'"');r+=i.prefix+l+i.suffix}}else if("string"!=typeof u&&"number"!=typeof u){if(!s){var y=f?"an array":"a string";throw new TypeError('Expected "'+i.name+'" to be '+y)}}else{l=o(String(u),i);if(a&&!c[n].test(l))throw new TypeError('Expected "'+i.name+'" to match "'+i.pattern+'", but got "'+l+'"');r+=i.prefix+l+i.suffix}}else r+=i}return r}}(P(t,e),e)}function k(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function R(t){return t&&t.sensitive?"":"i"}var I=r(65),_=r(4),C=r.n(_),M=function(t){function e(r,n,o){var i=t.call(this,r)||this;return i.name="HttpClient",i.status=n,i.details=o,C()(i,e.prototype),i}return d(e,t),e}(Error),N=function(t){function e(r,n){var o=t.call(this,r,0,n)||this;return o.name="HttpClient",C()(o,e.prototype),o}return d(e,t),e}(M),F=function(t){function e(r,n){var o=t.call(this,"Unknown Network Client error!",r,n)||this;return C()(o,e.prototype),o}return d(e,t),e}(M),D=function(t){function e(r){var n=t.call(this,"Bad Request Error!",400,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),U=function(t){function e(r){var n=t.call(this,"Unauthorized Error!",401,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),L=function(t){function e(r){var n=t.call(this,"Forbidden Error!",403,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),B=function(t){function e(r){var n=t.call(this,"Not Found Error!",404,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),z=function(t){function e(e){var r=t.call(this,"Method Not Allowed Error!",405,e)||this;return C()(r,B.prototype),r}return d(e,t),e}(M),H=function(t){function e(r){var n=t.call(this,"Unprocessable Entity Error",415,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),G=function(t){function e(r){var n=t.call(this,"Unprocessable Entity Error",422,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),W=function(t){function e(r){var n=t.call(this,"Internal Server Error",500,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),q=function(t){function e(r){var n=t.call(this,"Bad Gateway Error",502,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),V=function(t){function e(r){var n=t.call(this,"Service Unavailable Error",503,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),$=function(t){function e(r){var n=t.call(this,"Gateway Timeout Error",504,r)||this;return C()(n,e.prototype),n}return d(e,t),e}(M),K=b.a.create({paramsSerializer:I.stringify}),Q=function(){function t(t,e){var r;this.accessToken=null,this.refreshToken=null,this.isRefreshing=!1,this.isAccessTokenSetManual=!1;var n=window.location.hostname,i=o()(n).call(n,".")?".".concat(a()(r=n.split(".")).call(r,-2).join(".")):n;this.config=t,this.cookieOptions=h({domain:i,path:"/"},e)}return t.parseResponse=function(t){if(t.status>=400)switch(t.status){case 400:throw new D(t.message);case 401:throw new U(t.message);case 403:throw new L(t.message);case 404:throw new B(t.message);case 405:throw new z(t.message);case 415:throw new H(t.message);case 422:throw new G(t.message);case 500:throw new W(t.message);case 502:throw new q(t.message);case 503:throw new V(t.message);case 504:throw new $(t.message);default:throw new F(t.status,t.message)}return t.result},t.prototype.guardAuthorization=function(){return v(this,void 0,void 0,(function(){var t,e;return g(this,(function(r){switch(r.label){case 0:return this.isAccessTokenSetManual?[2]:this.isRefreshing?[4,new u.a((function(t){f()(t,250)}))]:[3,3];case 1:return r.sent(),[4,this.guardAuthorization()];case 2:return r.sent(),[2];case 3:return this.accessToken&&this.refreshToken?(t=(new Date).getTime()/1e3,e=j(this.accessToken),e.expired_at<t?[4,this.updateTokensPairByRefreshToken(this.refreshToken,e)]:[3,6]):[3,7];case 4:return r.sent(),[4,this.guardAuthorization()];case 5:r.sent(),r.label=6;case 6:return[2];case 7:throw new U("Have not access token or refresh token!")}}))}))},t.prototype.updateTokensPair=function(e){return v(this,void 0,void 0,(function(){var r,n,o,i,a,c;return g(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),this.isRefreshing=!0,r=window.btoa("".concat(this.config.clientId,":")),n="Basic ".concat(r),a=(i=t).parseResponse,[4,this.request(this.config.urls.token,{method:"POST",headers:{Authorization:n},query:e,withAuthorization:!1,withCredentials:!0})];case 1:return o=a.apply(i,[u.sent()]),this.isRefreshing=!1,this.accessToken=o.access_token,this.refreshToken=o.refresh_token,[3,3];case 2:throw c=u.sent(),this.isRefreshing=!1,this.accessToken=null,this.refreshToken=null,c;case 3:return[2]}}))}))},t.prototype.updateTokensPairByAuthorizationCode=function(t){return v(this,void 0,void 0,(function(){var e;return g(this,(function(r){var n;switch(r.label){case 0:return e=l()(n="".concat(window.location.origin)).call(n,window.location.pathname),[4,this.updateTokensPair({grant_type:"authorization_code",code:t,redirect_uri:e})];case 1:return r.sent(),[2]}}))}))},t.prototype.updateTokensPairByRefreshToken=function(t,e){return v(this,void 0,void 0,(function(){return g(this,(function(r){switch(r.label){case 0:return[4,this.updateTokensPair({grant_type:"refresh_token",refresh_token:t,username:e.username,account_id:e.account_id})];case 1:return r.sent(),[2]}}))}))},t.prototype.initialize=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:if(!e||!r)return[2,null];if(n=x.a.get(t.STORIED_URL_COOKIE_NAME),o=x.a.get(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME),x.a.remove(t.STORIED_URL_COOKIE_NAME),x.a.remove(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME),!(o===r))throw new N("Storied authorization state and received authorization state NOT equals!","[HttpClient::initialize]");return[4,this.updateTokensPairByAuthorizationCode(e)];case 1:if(i.sent(),!this.accessToken)throw new N("Access Token is null after update tokens!","[HttpClient::initialize]");return window.history.replaceState(null,document.title,n),[2,j(this.accessToken)]}}))}))},t.prototype.login=function(){return v(this,void 0,void 0,(function(){var e,r,n;return g(this,(function(o){var i,c,s;return e=l()(i="".concat(window.location.origin)).call(i,window.location.pathname),r=a()(c=Math.random().toString()).call(c,2,12),x.a.set(t.STORIED_URL_COOKIE_NAME,window.location.href,this.cookieOptions),x.a.set(t.STORIED_AUTHORIZATION_STATE_COOKIE_NAME,r),n=Object(I.stringify)({response_type:"code",client_id:this.config.clientId,redirect_uri:e,state:r}),window.location.href=l()(s="".concat(this.config.urls.authorize,"?")).call(s,n),[2,new u.a((function(){}))]}))}))},t.prototype.logout=function(){return v(this,void 0,void 0,(function(){var e,r;return g(this,(function(n){switch(n.label){case 0:return this.accessToken=null,this.refreshToken=null,r=(e=t).parseResponse,[4,this.request(this.config.urls.logout,{method:"GET",withAuthorization:!1,withCredentials:!0})];case 1:return[2,r.apply(e,[n.sent()])]}}))}))},t.prototype.setAccessToken=function(t){this.isAccessTokenSetManual=!0,this.accessToken=t},t.prototype.getAccessToken=function(){return v(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 N("AccessToken is null after guard authorization!","[HttpClient::getAccessToken]");return[2,this.accessToken]}}))}))},t.prototype.request=function(t,e){return v(this,void 0,void 0,(function(){var r,n,o;return g(this,(function(i){switch(i.label){case 0:return r={url:t,method:e.method,headers:e.headers,validateStatus:null,withCredentials:e.withCredentials},"params"in e&&(n=T(t),r.url=n(e.params)),"query"in e&&(r.params=e.query),"body"in e&&(r.data=e.body),e.withAuthorization?[4,this.guardAuthorization()]:[3,2];case 1:i.sent(),r.headers=r.headers||{},r.headers.Authorization="Bearer ".concat(this.accessToken),i.label=2;case 2:return[4,K.request(r)];case 3:return[2,{result:(o=i.sent()).data,status:o.status,message:o.statusText}]}}))}))},t.prototype.get=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:return o=(n=t).parseResponse,[4,this.request(e,h({method:"GET"},r))];case 1:return[2,o.apply(n,[i.sent()])]}}))}))},t.prototype.post=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:return o=(n=t).parseResponse,[4,this.request(e,h({method:"POST"},r))];case 1:return[2,o.apply(n,[i.sent()])]}}))}))},t.prototype.put=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:return o=(n=t).parseResponse,[4,this.request(e,h({method:"PUT"},r))];case 1:return[2,o.apply(n,[i.sent()])]}}))}))},t.prototype.patch=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:return o=(n=t).parseResponse,[4,this.request(e,h({method:"PATCH"},r))];case 1:return[2,o.apply(n,[i.sent()])]}}))}))},t.prototype.delete=function(e,r){return v(this,void 0,void 0,(function(){var n,o;return g(this,(function(i){switch(i.label){case 0:return o=(n=t).parseResponse,[4,this.request(e,h({method:"DELETE"},r))];case 1:return[2,o.apply(n,[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
|