@bigbinary/neeto-github-frontend 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2860 +1,27 @@
1
- import { useState, createElement, useRef } from 'react';
2
- import classnames from 'classnames';
3
- import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
4
- import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
5
- import { Trans, useTranslation } from 'react-i18next';
6
- import { useQuery } from '@tanstack/react-query';
7
- import { isNotNil } from 'ramda';
8
- import axios from 'axios';
9
- import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
10
- import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
11
- import Github from '@bigbinary/neeto-icons/misc/Github';
12
- import Typography from '@bigbinary/neetoui/Typography';
13
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
14
- import Building from '@bigbinary/neeto-icons/Building';
15
- import Avatar from '@bigbinary/neetoui/Avatar';
16
- import Button from '@bigbinary/neetoui/Button';
17
- import Plus from '@bigbinary/neeto-icons/Plus';
18
- import Settings from '@bigbinary/neeto-icons/Settings';
19
- import { isPresent, findBy, noop } from '@bigbinary/neeto-cist';
20
- import Search from '@bigbinary/neeto-molecules/Search';
21
- import Lock from '@bigbinary/neeto-icons/Lock';
22
- import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
23
- import Pane from '@bigbinary/neetoui/Pane';
24
- import require$$0 from 'util';
25
-
26
- var _globalProps$organiza$1;
27
- var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
28
- ({
29
- integrator_id: globalProps === null || globalProps === void 0 || (_globalProps$organiza$1 = globalProps.organization) === null || _globalProps$organiza$1 === void 0 ? void 0 : _globalProps$organiza$1.id,
30
- integrator_type: "Organization"
31
- });
32
- var GITHUB_INTEGRATOR_PARAMS = {
33
- integratorId: globalProps.organization.id,
34
- integratorType: "Organization"
35
- };
36
-
37
- var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
38
- var githubAppUrl = function githubAppUrl(id) {
39
- return "".concat(baseUrl, "/").concat(id);
40
- };
41
- var repositories = function repositories() {
42
- return axios.get("".concat(githubAppUrl(globalProps.githubAppInstallationId), "/repositories"), {
43
- params: GITHUB_INTEGRATOR_PARAMS
44
- });
45
- };
46
- var githubAccountsApi = {
47
- repositories: repositories
48
- };
49
-
50
- var QUERY_KEYS = {
51
- GITHUB_REPOSITORIES_LIST: "github-repositories-list"
52
- };
53
- var STALE_TIME_CONFIG = {
54
- staleTime: DEFAULT_STALE_TIME
55
- };
56
-
57
- var useFetchGithubRepositories = function useFetchGithubRepositories(_ref) {
58
- var isConnected = _ref.isConnected;
59
- return useQuery({
60
- queryKey: [QUERY_KEYS.GITHUB_REPOSITORIES_LIST],
61
- queryFn: githubAccountsApi.repositories,
62
- staleTime: STALE_TIME_CONFIG.staleTime,
63
- enabled: isConnected && isNotNil(globalProps.githubAppInstallationId)
64
- });
65
- };
66
-
67
- var Header = withT(function (_ref) {
68
- var t = _ref.t;
69
- return /*#__PURE__*/jsxs("div", {
70
- className: "neeto-ui-text-gray-800 mb-1 flex w-full flex-row items-center space-x-2 font-sans text-lg font-medium leading-6 antialiased",
71
- children: [/*#__PURE__*/jsx(Github, {
72
- size: 16
73
- }), /*#__PURE__*/jsx(Typography, {
74
- style: "h4",
75
- children: t("neetoGithub.github")
76
- })]
77
- });
78
- });
79
-
80
- var Configure = withT(function (_ref) {
81
- var t = _ref.t,
82
- isConnected = _ref.isConnected,
83
- installationUrl = _ref.installationUrl;
84
- return /*#__PURE__*/jsx("div", {
85
- className: "neeto-ui-text-gray-900 flex-shrink-0 font-sans text-sm font-normal leading-6 antialiased",
86
- children: /*#__PURE__*/jsx(Button, {
87
- href: installationUrl,
88
- icon: isConnected ? Settings : Plus,
89
- iconPosition: "left",
90
- iconSize: 20,
91
- size: "small",
92
- style: "link",
93
- children: isConnected ? t("neetoGithub.configureAccount") : t("neetoGithub.connectAccount")
94
- })
95
- });
96
- });
97
-
98
- var List$1 = withT(function (_ref) {
99
- var t = _ref.t,
100
- accounts = _ref.accounts,
101
- isConnected = _ref.isConnected,
102
- installationUrl = _ref.installationUrl,
103
- isPane = _ref.isPane;
104
- return /*#__PURE__*/jsxs("div", {
105
- className: classnames("neeto-ui-border-gray-300 flex justify-between gap-3 border-b pb-4 pt-2", {
106
- "flex-col md:flex-row": isPane,
107
- "flex-col": !isPane
108
- }),
109
- children: [accounts.map(function (_ref2) {
110
- var id = _ref2.id,
111
- name = _ref2.name,
112
- avatarUrl = _ref2.avatarUrl,
113
- type = _ref2.type,
114
- profileUrl = _ref2.profileUrl,
115
- count = _ref2.count;
116
- return /*#__PURE__*/jsxs("div", {
117
- className: "flex w-full items-center space-x-2",
118
- children: [/*#__PURE__*/jsxs("div", {
119
- className: "flex items-center gap-1",
120
- children: [type === "Organization" ? /*#__PURE__*/jsx(Building, {
121
- className: "neeto-ui-text-gray-600",
122
- size: 24
123
- }) : /*#__PURE__*/jsx(Avatar, {
124
- size: "small",
125
- user: {
126
- imageUrl: avatarUrl
127
- }
128
- }), /*#__PURE__*/jsx(Typography, {
129
- className: "neeto-ui-text-gray-800",
130
- style: "body2",
131
- children: /*#__PURE__*/jsx(Button, {
132
- className: "neeto-ui-text-gray-800",
133
- label: "@".concat(name),
134
- style: "link",
135
- onClick: function onClick() {
136
- return window.open(profileUrl, "_blank");
137
- }
138
- })
139
- })]
140
- }), /*#__PURE__*/jsx("span", {
141
- className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
142
- }), /*#__PURE__*/jsx(Typography, {
143
- className: "neeto-ui-text-black",
144
- style: "body2",
145
- children: t("neetoGithub.countOf.repos", {
146
- count: count
147
- })
148
- })]
149
- }, id);
150
- }), /*#__PURE__*/jsx(Configure, {
151
- installationUrl: installationUrl,
152
- isConnected: isConnected
153
- })]
154
- });
155
- });
156
-
157
- var Accounts = function Accounts(_ref) {
158
- var isPane = _ref.isPane,
159
- accounts = _ref.accounts,
160
- isConnected = _ref.isConnected,
161
- onConnect = _ref.onConnect,
162
- installationUrl = _ref.installationUrl;
163
- return /*#__PURE__*/jsx("div", {
164
- className: classnames("flex w-full flex-col border border-solid border-transparent px-0 py-2", {
165
- "order-1": isPane,
166
- "md:order-2 md:max-w-72 lg:max-w-sm lg:px-6": !isPane
167
- }),
168
- children: /*#__PURE__*/jsxs("div", {
169
- className: "mb-2",
170
- children: [/*#__PURE__*/jsx(Header, {}), /*#__PURE__*/jsx(List$1, {
171
- accounts: accounts,
172
- installationUrl: installationUrl,
173
- isConnected: isConnected,
174
- isPane: isPane,
175
- onConnect: onConnect
176
- })]
177
- })
178
- });
179
- };
180
-
181
- function _arrayWithHoles(arr) {
182
- if (Array.isArray(arr)) return arr;
183
- }
184
-
185
- function _iterableToArrayLimit(r, l) {
186
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
187
- if (null != t) {
188
- var e,
189
- n,
190
- i,
191
- u,
192
- a = [],
193
- f = !0,
194
- o = !1;
195
- try {
196
- if (i = (t = t.call(r)).next, 0 === l) {
197
- if (Object(t) !== t) return;
198
- f = !1;
199
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
200
- } catch (r) {
201
- o = !0, n = r;
202
- } finally {
203
- try {
204
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
205
- } finally {
206
- if (o) throw n;
207
- }
208
- }
209
- return a;
210
- }
211
- }
212
-
213
- function _arrayLikeToArray(arr, len) {
214
- if (len == null || len > arr.length) len = arr.length;
215
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
216
- return arr2;
217
- }
218
-
219
- function _unsupportedIterableToArray(o, minLen) {
220
- if (!o) return;
221
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
222
- var n = Object.prototype.toString.call(o).slice(8, -1);
223
- if (n === "Object" && o.constructor) n = o.constructor.name;
224
- if (n === "Map" || n === "Set") return Array.from(o);
225
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
226
- }
227
-
228
- function _nonIterableRest() {
229
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
230
- }
231
-
232
- function _slicedToArray(arr, i) {
233
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
234
- }
235
-
236
- var NoRepositories = withT(function (_ref) {
237
- var t = _ref.t,
238
- installationUrl = _ref.installationUrl,
239
- troubleshootUrl = _ref.troubleshootUrl;
240
- return /*#__PURE__*/jsx("div", {
241
- className: "flex items-center justify-center py-6",
242
- children: /*#__PURE__*/jsxs("div", {
243
- className: "mx-auto flex w-full max-w-sm flex-col items-center justify-center space-y-4 py-4 text-center",
244
- children: [/*#__PURE__*/jsx(Typography, {
245
- style: "body2",
246
- children: t("neetoGithub.noReposDescription")
247
- }), /*#__PURE__*/jsx(Button, {
248
- href: installationUrl,
249
- icon: Github,
250
- iconPosition: "left",
251
- label: t("neetoGithub.connectRepository"),
252
- size: "medium",
253
- style: "primary"
254
- }), /*#__PURE__*/jsx("div", {
255
- className: "text-xs",
256
- children: /*#__PURE__*/jsx(Trans, {
257
- i18nKey: t("neetoGithub.troubleshoot"),
258
- components: {
259
- troubleshootLink: /*#__PURE__*/jsx("a", {
260
- className: "text-indigo-600 underline",
261
- href: troubleshootUrl,
262
- rel: "noopener noreferrer",
263
- target: "_blank"
264
- })
265
- }
266
- })
267
- })]
268
- })
269
- });
270
- });
271
-
272
- var RepositoryTile = function RepositoryTile(_ref) {
273
- var isConnecting = _ref.isConnecting,
274
- onConnect = _ref.onConnect,
275
- repository = _ref.repository;
276
- var _useTranslation = useTranslation(),
277
- t = _useTranslation.t;
278
- var _useState = useState(false),
279
- _useState2 = _slicedToArray(_useState, 2),
280
- isLoading = _useState2[0],
281
- setIsLoading = _useState2[1];
282
- var id = repository.id,
283
- fullName = repository.fullName,
284
- isPrivate = repository.isPrivate,
285
- updatedAt = repository.updatedAt;
286
- return /*#__PURE__*/jsxs("div", {
287
- className: "neeto-ui-border-gray-300 flex flex-col justify-between gap-3 border-b border-solid py-3 pl-3 pr-3 last:border-b-0 md:flex-row md:items-center md:pl-5",
288
- children: [/*#__PURE__*/jsxs("div", {
289
- className: "width-calc flex items-center space-x-2",
290
- children: [/*#__PURE__*/jsx(Github, {
291
- className: "flex-shrink-0",
292
- size: 16
293
- }), /*#__PURE__*/jsx(Typography, {
294
- style: "body2",
295
- children: fullName
296
- }), isPrivate && /*#__PURE__*/jsx(Lock, {
297
- className: "flex-shrink-0",
298
- size: 16
299
- }), /*#__PURE__*/jsxs("div", {
300
- className: "hidden lg:inline-block",
301
- children: [/*#__PURE__*/jsx("span", {
302
- className: "neeto-ui-bg-gray-800 neeto-ui-rounded-full h-1 w-1"
303
- }), /*#__PURE__*/jsx(DateFormat.FromNow, {
304
- date: updatedAt
305
- })]
306
- })]
307
- }), /*#__PURE__*/jsx(Button, {
308
- className: "w-max",
309
- disabled: isConnecting,
310
- loading: isLoading,
311
- style: "primary",
312
- type: "button",
313
- onClick: function onClick() {
314
- return onConnect({
315
- repoType: "private",
316
- repository: repository,
317
- setIsLoading: setIsLoading
318
- });
319
- },
320
- children: t("neetoGithub.connect")
321
- })]
322
- }, id);
323
- };
324
-
325
- var List = withT(function (_ref) {
326
- var t = _ref.t,
327
- filteredRepositories = _ref.filteredRepositories,
328
- repositories = _ref.repositories,
329
- isConnecting = _ref.isConnecting,
330
- onConnect = _ref.onConnect,
331
- installationUrl = _ref.installationUrl,
332
- troubleshootUrl = _ref.troubleshootUrl;
333
- return /*#__PURE__*/jsx("div", {
334
- className: "h-full overflow-y-scroll px-4 pb-4 md:px-6 md:pb-6",
335
- children: isPresent(repositories) ? /*#__PURE__*/jsx("div", {
336
- className: classnames("neeto-ui-border-gray-300 neeto-ui-rounded-md flex flex-col items-center justify-center border", {
337
- "h-auto": isPresent(filteredRepositories),
338
- "h-full": !isPresent(filteredRepositories)
339
- }),
340
- children: /*#__PURE__*/jsx("div", {
341
- className: "m-0 h-full w-full p-0",
342
- children: isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
343
- return /*#__PURE__*/createElement(RepositoryTile, {
344
- isConnecting: isConnecting,
345
- onConnect: onConnect,
346
- repository: repository,
347
- key: index
348
- });
349
- }) : /*#__PURE__*/jsx(Typography, {
350
- className: "flex h-full w-full items-center justify-center",
351
- style: "body2",
352
- children: t("neetoGithub.noRepos")
353
- })
354
- })
355
- }) : /*#__PURE__*/jsx(NoRepositories, {
356
- installationUrl: installationUrl,
357
- troubleshootUrl: troubleshootUrl
358
- })
359
- });
360
- });
361
-
362
- var NotConnected = withT(function (_ref) {
363
- var t = _ref.t,
364
- installationUrl = _ref.installationUrl;
365
- return /*#__PURE__*/jsxs("div", {
366
- className: "flex w-full max-w-sm flex-col items-center justify-center space-y-4 text-center",
367
- children: [/*#__PURE__*/jsx(Typography, {
368
- style: "body2",
369
- children: t("neetoGithub.notConnectedDescription", {
370
- appName: globalProps.appName
371
- })
372
- }), /*#__PURE__*/jsx(Button, {
373
- href: installationUrl,
374
- icon: Github,
375
- iconPosition: "left",
376
- label: t("neetoGithub.connectGithub"),
377
- size: "medium",
378
- style: "primary"
379
- })]
380
- });
381
- });
382
-
383
- var Private = function Private(_ref) {
384
- var isConnected = _ref.isConnected,
385
- isConnecting = _ref.isConnecting,
386
- repositories = _ref.repositories,
387
- onConnect = _ref.onConnect,
388
- installationUrl = _ref.installationUrl,
389
- troubleshootUrl = _ref.troubleshootUrl;
390
- var _useTranslation = useTranslation(),
391
- t = _useTranslation.t;
392
- var _useState = useState(repositories),
393
- _useState2 = _slicedToArray(_useState, 2),
394
- filteredRepositories = _useState2[0],
395
- setFilteredRepositories = _useState2[1];
396
- var onSearch = function onSearch(searchTerm) {
397
- if (!isPresent(searchTerm)) {
398
- setFilteredRepositories(repositories);
399
- return;
400
- }
401
- var filteredRepositories = repositories.filter(function (_ref2) {
402
- var fullName = _ref2.fullName;
403
- return fullName.toLowerCase().includes(searchTerm.toLowerCase());
404
- });
405
- setFilteredRepositories(filteredRepositories);
406
- };
407
- return /*#__PURE__*/jsx("div", {
408
- className: "connect-repo flex h-full flex-col",
409
- children: isConnected ? /*#__PURE__*/jsxs(Fragment, {
410
- children: [/*#__PURE__*/jsxs("div", {
411
- className: "space-y-3 p-4 md:p-6",
412
- children: [/*#__PURE__*/jsx(Typography, {
413
- className: "flex-shrink-0 text-lg font-medium",
414
- style: "h2",
415
- children: t("neetoGithub.connectARepo")
416
- }), isPresent(repositories) && /*#__PURE__*/jsx(Search, {
417
- onSearch: onSearch,
418
- className: "w-full",
419
- unlimitedChars: false,
420
- suffix: /*#__PURE__*/jsx(Typography, {
421
- style: "body2",
422
- children: t("neetoGithub.countOf.repos", {
423
- count: filteredRepositories.length
424
- })
425
- })
426
- })]
427
- }), /*#__PURE__*/jsx("div", {
428
- className: "flex min-h-0 w-full flex-grow flex-col space-y-6",
429
- children: /*#__PURE__*/jsx(List, {
430
- filteredRepositories: filteredRepositories,
431
- installationUrl: installationUrl,
432
- isConnecting: isConnecting,
433
- onConnect: onConnect,
434
- repositories: repositories,
435
- troubleshootUrl: troubleshootUrl
436
- })
437
- })]
438
- }) : /*#__PURE__*/jsx("div", {
439
- className: "neeto-ui-text-gray-900 flex-grow font-sans text-sm font-normal leading-6 antialiased",
440
- children: /*#__PURE__*/jsx("div", {
441
- className: "flex h-full flex-col items-center justify-center p-4",
442
- children: /*#__PURE__*/jsx(NotConnected, {
443
- installationUrl: installationUrl
444
- })
445
- })
446
- })
447
- });
448
- };
449
-
450
- var Repositories = function Repositories(_ref) {
451
- var isConnected = _ref.isConnected,
452
- isConnecting = _ref.isConnecting,
453
- repositories = _ref.repositories,
454
- onConnect = _ref.onConnect,
455
- installationUrl = _ref.installationUrl,
456
- troubleshootUrl = _ref.troubleshootUrl,
457
- isPane = _ref.isPane;
458
- return /*#__PURE__*/jsx("div", {
459
- className: classnames("neeto-ui-rounded-md neeto-ui-border-gray-300 h-full w-full space-y-6 border border-solid", {
460
- "order-2": isPane,
461
- "order-1": !isPane
462
- }),
463
- children: /*#__PURE__*/jsx(Private, {
464
- installationUrl: installationUrl,
465
- isConnected: isConnected,
466
- isConnecting: isConnecting,
467
- onConnect: onConnect,
468
- repositories: repositories,
469
- troubleshootUrl: troubleshootUrl
470
- })
471
- });
472
- };
473
-
474
- var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
475
- var _ref$isPaneLoading = _ref.isPaneLoading,
476
- isPaneLoading = _ref$isPaneLoading === void 0 ? false : _ref$isPaneLoading,
477
- _ref$shouldFetchRepos = _ref.shouldFetchRepositories,
478
- shouldFetchRepositories = _ref$shouldFetchRepos === void 0 ? true : _ref$shouldFetchRepos,
479
- _ref$paneAccounts = _ref.paneAccounts,
480
- paneAccounts = _ref$paneAccounts === void 0 ? [] : _ref$paneAccounts,
481
- installationUrl = _ref.installationUrl,
482
- isConnected = _ref.isConnected,
483
- _ref$isConnecting = _ref.isConnecting,
484
- isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
485
- onConnect = _ref.onConnect,
486
- _ref$paneRepositories = _ref.paneRepositories,
487
- paneRepositories = _ref$paneRepositories === void 0 ? [] : _ref$paneRepositories,
488
- troubleshootUrl = _ref.troubleshootUrl,
489
- _ref$isPane = _ref.isPane,
490
- isPane = _ref$isPane === void 0 ? false : _ref$isPane;
491
- var _useTranslation = useTranslation(),
492
- t = _useTranslation.t;
493
- var _useFetchGithubReposi = useFetchGithubRepositories({
494
- isConnected: shouldFetchRepositories && globalProps.isGithubIntegrated
495
- }),
496
- _useFetchGithubReposi2 = _useFetchGithubReposi.data,
497
- _useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
498
- _useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
499
- containerRepositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
500
- _useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
501
- containerAccounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
502
- isContainerLoading = _useFetchGithubReposi.isLoading;
503
- var repositories = shouldFetchRepositories ? containerRepositories : paneRepositories;
504
- var accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;
505
- var isLoading = shouldFetchRepositories ? isContainerLoading : isPaneLoading;
506
- if (isLoading) {
507
- return /*#__PURE__*/jsx("div", {
508
- className: "flex h-full w-full flex-col items-center",
509
- children: /*#__PURE__*/jsx(PageLoader, {
510
- text: t("neetoGithub.fetchingRepos")
511
- })
512
- });
513
- }
514
- return /*#__PURE__*/jsxs("div", {
515
- className: classnames("flex min-h-0 w-full flex-grow flex-col", {
516
- "flex-col": isPane,
517
- "gap-3 md:flex-row md:gap-6": !isPane
518
- }),
519
- children: [/*#__PURE__*/jsx(Accounts, {
520
- accounts: accounts,
521
- installationUrl: installationUrl,
522
- isConnected: isConnected,
523
- isPane: isPane,
524
- onConnect: onConnect
525
- }), /*#__PURE__*/jsx(Repositories, {
526
- installationUrl: installationUrl,
527
- isConnected: isConnected,
528
- isConnecting: isConnecting,
529
- isPane: isPane,
530
- onConnect: onConnect,
531
- repositories: repositories,
532
- troubleshootUrl: troubleshootUrl
533
- })]
534
- });
535
- };
536
-
537
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
538
-
539
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
540
- var shams = function hasSymbols() {
541
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
542
- if (typeof Symbol.iterator === 'symbol') { return true; }
543
-
544
- var obj = {};
545
- var sym = Symbol('test');
546
- var symObj = Object(sym);
547
- if (typeof sym === 'string') { return false; }
548
-
549
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
550
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
551
-
552
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
553
- // if (sym instanceof Symbol) { return false; }
554
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
555
- // if (!(symObj instanceof Symbol)) { return false; }
556
-
557
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
558
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
559
-
560
- var symVal = 42;
561
- obj[sym] = symVal;
562
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
563
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
564
-
565
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
566
-
567
- var syms = Object.getOwnPropertySymbols(obj);
568
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
569
-
570
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
571
-
572
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
573
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
574
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
575
- }
576
-
577
- return true;
578
- };
579
-
580
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
581
- var hasSymbolSham = shams;
582
-
583
- var hasSymbols$1 = function hasNativeSymbols() {
584
- if (typeof origSymbol !== 'function') { return false; }
585
- if (typeof Symbol !== 'function') { return false; }
586
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
587
- if (typeof Symbol('bar') !== 'symbol') { return false; }
588
-
589
- return hasSymbolSham();
590
- };
591
-
592
- var test = {
593
- foo: {}
594
- };
595
-
596
- var $Object = Object;
597
-
598
- var hasProto$1 = function hasProto() {
599
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
600
- };
601
-
602
- /* eslint no-invalid-this: 1 */
603
-
604
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
605
- var toStr$1 = Object.prototype.toString;
606
- var max = Math.max;
607
- var funcType = '[object Function]';
608
-
609
- var concatty = function concatty(a, b) {
610
- var arr = [];
611
-
612
- for (var i = 0; i < a.length; i += 1) {
613
- arr[i] = a[i];
614
- }
615
- for (var j = 0; j < b.length; j += 1) {
616
- arr[j + a.length] = b[j];
617
- }
618
-
619
- return arr;
620
- };
621
-
622
- var slicy = function slicy(arrLike, offset) {
623
- var arr = [];
624
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
625
- arr[j] = arrLike[i];
626
- }
627
- return arr;
628
- };
629
-
630
- var joiny = function (arr, joiner) {
631
- var str = '';
632
- for (var i = 0; i < arr.length; i += 1) {
633
- str += arr[i];
634
- if (i + 1 < arr.length) {
635
- str += joiner;
636
- }
637
- }
638
- return str;
639
- };
640
-
641
- var implementation$1 = function bind(that) {
642
- var target = this;
643
- if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
644
- throw new TypeError(ERROR_MESSAGE + target);
645
- }
646
- var args = slicy(arguments, 1);
647
-
648
- var bound;
649
- var binder = function () {
650
- if (this instanceof bound) {
651
- var result = target.apply(
652
- this,
653
- concatty(args, arguments)
654
- );
655
- if (Object(result) === result) {
656
- return result;
657
- }
658
- return this;
659
- }
660
- return target.apply(
661
- that,
662
- concatty(args, arguments)
663
- );
664
-
665
- };
666
-
667
- var boundLength = max(0, target.length - args.length);
668
- var boundArgs = [];
669
- for (var i = 0; i < boundLength; i++) {
670
- boundArgs[i] = '$' + i;
671
- }
672
-
673
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
674
-
675
- if (target.prototype) {
676
- var Empty = function Empty() {};
677
- Empty.prototype = target.prototype;
678
- bound.prototype = new Empty();
679
- Empty.prototype = null;
680
- }
681
-
682
- return bound;
683
- };
684
-
685
- var implementation = implementation$1;
686
-
687
- var functionBind = Function.prototype.bind || implementation;
688
-
689
- var call = Function.prototype.call;
690
- var $hasOwn = Object.prototype.hasOwnProperty;
691
- var bind$1 = functionBind;
692
-
693
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
694
- var hasown = bind$1.call(call, $hasOwn);
695
-
696
- var undefined$1;
697
-
698
- var $SyntaxError$1 = SyntaxError;
699
- var $Function = Function;
700
- var $TypeError$3 = TypeError;
701
-
702
- // eslint-disable-next-line consistent-return
703
- var getEvalledConstructor = function (expressionSyntax) {
704
- try {
705
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
706
- } catch (e) {}
707
- };
708
-
709
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
710
- if ($gOPD$1) {
711
- try {
712
- $gOPD$1({}, '');
713
- } catch (e) {
714
- $gOPD$1 = null; // this is IE 8, which has a broken gOPD
715
- }
716
- }
717
-
718
- var throwTypeError = function () {
719
- throw new $TypeError$3();
720
- };
721
- var ThrowTypeError = $gOPD$1
722
- ? (function () {
723
- try {
724
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
725
- arguments.callee; // IE 8 does not throw here
726
- return throwTypeError;
727
- } catch (calleeThrows) {
728
- try {
729
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
730
- return $gOPD$1(arguments, 'callee').get;
731
- } catch (gOPDthrows) {
732
- return throwTypeError;
733
- }
734
- }
735
- }())
736
- : throwTypeError;
737
-
738
- var hasSymbols = hasSymbols$1();
739
- var hasProto = hasProto$1();
740
-
741
- var getProto = Object.getPrototypeOf || (
742
- hasProto
743
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
744
- : null
745
- );
746
-
747
- var needsEval = {};
748
-
749
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
750
-
751
- var INTRINSICS = {
752
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
753
- '%Array%': Array,
754
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
755
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
756
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
757
- '%AsyncFunction%': needsEval,
758
- '%AsyncGenerator%': needsEval,
759
- '%AsyncGeneratorFunction%': needsEval,
760
- '%AsyncIteratorPrototype%': needsEval,
761
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
762
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
763
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
764
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
765
- '%Boolean%': Boolean,
766
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
767
- '%Date%': Date,
768
- '%decodeURI%': decodeURI,
769
- '%decodeURIComponent%': decodeURIComponent,
770
- '%encodeURI%': encodeURI,
771
- '%encodeURIComponent%': encodeURIComponent,
772
- '%Error%': Error,
773
- '%eval%': eval, // eslint-disable-line no-eval
774
- '%EvalError%': EvalError,
775
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
776
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
777
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
778
- '%Function%': $Function,
779
- '%GeneratorFunction%': needsEval,
780
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
781
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
782
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
783
- '%isFinite%': isFinite,
784
- '%isNaN%': isNaN,
785
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
786
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
787
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
788
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
789
- '%Math%': Math,
790
- '%Number%': Number,
791
- '%Object%': Object,
792
- '%parseFloat%': parseFloat,
793
- '%parseInt%': parseInt,
794
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
795
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
796
- '%RangeError%': RangeError,
797
- '%ReferenceError%': ReferenceError,
798
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
799
- '%RegExp%': RegExp,
800
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
801
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
802
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
803
- '%String%': String,
804
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
805
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
806
- '%SyntaxError%': $SyntaxError$1,
807
- '%ThrowTypeError%': ThrowTypeError,
808
- '%TypedArray%': TypedArray,
809
- '%TypeError%': $TypeError$3,
810
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
811
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
812
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
813
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
814
- '%URIError%': URIError,
815
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
816
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
817
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
818
- };
819
-
820
- if (getProto) {
821
- try {
822
- null.error; // eslint-disable-line no-unused-expressions
823
- } catch (e) {
824
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
825
- var errorProto = getProto(getProto(e));
826
- INTRINSICS['%Error.prototype%'] = errorProto;
827
- }
828
- }
829
-
830
- var doEval = function doEval(name) {
831
- var value;
832
- if (name === '%AsyncFunction%') {
833
- value = getEvalledConstructor('async function () {}');
834
- } else if (name === '%GeneratorFunction%') {
835
- value = getEvalledConstructor('function* () {}');
836
- } else if (name === '%AsyncGeneratorFunction%') {
837
- value = getEvalledConstructor('async function* () {}');
838
- } else if (name === '%AsyncGenerator%') {
839
- var fn = doEval('%AsyncGeneratorFunction%');
840
- if (fn) {
841
- value = fn.prototype;
842
- }
843
- } else if (name === '%AsyncIteratorPrototype%') {
844
- var gen = doEval('%AsyncGenerator%');
845
- if (gen && getProto) {
846
- value = getProto(gen.prototype);
847
- }
848
- }
849
-
850
- INTRINSICS[name] = value;
851
-
852
- return value;
853
- };
854
-
855
- var LEGACY_ALIASES = {
856
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
857
- '%ArrayPrototype%': ['Array', 'prototype'],
858
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
859
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
860
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
861
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
862
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
863
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
864
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
865
- '%BooleanPrototype%': ['Boolean', 'prototype'],
866
- '%DataViewPrototype%': ['DataView', 'prototype'],
867
- '%DatePrototype%': ['Date', 'prototype'],
868
- '%ErrorPrototype%': ['Error', 'prototype'],
869
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
870
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
871
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
872
- '%FunctionPrototype%': ['Function', 'prototype'],
873
- '%Generator%': ['GeneratorFunction', 'prototype'],
874
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
875
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
876
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
877
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
878
- '%JSONParse%': ['JSON', 'parse'],
879
- '%JSONStringify%': ['JSON', 'stringify'],
880
- '%MapPrototype%': ['Map', 'prototype'],
881
- '%NumberPrototype%': ['Number', 'prototype'],
882
- '%ObjectPrototype%': ['Object', 'prototype'],
883
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
884
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
885
- '%PromisePrototype%': ['Promise', 'prototype'],
886
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
887
- '%Promise_all%': ['Promise', 'all'],
888
- '%Promise_reject%': ['Promise', 'reject'],
889
- '%Promise_resolve%': ['Promise', 'resolve'],
890
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
891
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
892
- '%RegExpPrototype%': ['RegExp', 'prototype'],
893
- '%SetPrototype%': ['Set', 'prototype'],
894
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
895
- '%StringPrototype%': ['String', 'prototype'],
896
- '%SymbolPrototype%': ['Symbol', 'prototype'],
897
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
898
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
899
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
900
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
901
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
902
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
903
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
904
- '%URIErrorPrototype%': ['URIError', 'prototype'],
905
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
906
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
907
- };
908
-
909
- var bind = functionBind;
910
- var hasOwn$1 = hasown;
911
- var $concat$1 = bind.call(Function.call, Array.prototype.concat);
912
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
913
- var $replace$1 = bind.call(Function.call, String.prototype.replace);
914
- var $strSlice = bind.call(Function.call, String.prototype.slice);
915
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
916
-
917
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
918
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
919
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
920
- var stringToPath = function stringToPath(string) {
921
- var first = $strSlice(string, 0, 1);
922
- var last = $strSlice(string, -1);
923
- if (first === '%' && last !== '%') {
924
- throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
925
- } else if (last === '%' && first !== '%') {
926
- throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
927
- }
928
- var result = [];
929
- $replace$1(string, rePropName, function (match, number, quote, subString) {
930
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
931
- });
932
- return result;
933
- };
934
- /* end adaptation */
935
-
936
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
937
- var intrinsicName = name;
938
- var alias;
939
- if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
940
- alias = LEGACY_ALIASES[intrinsicName];
941
- intrinsicName = '%' + alias[0] + '%';
942
- }
943
-
944
- if (hasOwn$1(INTRINSICS, intrinsicName)) {
945
- var value = INTRINSICS[intrinsicName];
946
- if (value === needsEval) {
947
- value = doEval(intrinsicName);
948
- }
949
- if (typeof value === 'undefined' && !allowMissing) {
950
- throw new $TypeError$3('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
951
- }
952
-
953
- return {
954
- alias: alias,
955
- name: intrinsicName,
956
- value: value
957
- };
958
- }
959
-
960
- throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
961
- };
962
-
963
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
964
- if (typeof name !== 'string' || name.length === 0) {
965
- throw new $TypeError$3('intrinsic name must be a non-empty string');
966
- }
967
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
968
- throw new $TypeError$3('"allowMissing" argument must be a boolean');
969
- }
970
-
971
- if ($exec(/^%?[^%]*%?$/, name) === null) {
972
- throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
973
- }
974
- var parts = stringToPath(name);
975
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
976
-
977
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
978
- var intrinsicRealName = intrinsic.name;
979
- var value = intrinsic.value;
980
- var skipFurtherCaching = false;
981
-
982
- var alias = intrinsic.alias;
983
- if (alias) {
984
- intrinsicBaseName = alias[0];
985
- $spliceApply(parts, $concat$1([0, 1], alias));
986
- }
987
-
988
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
989
- var part = parts[i];
990
- var first = $strSlice(part, 0, 1);
991
- var last = $strSlice(part, -1);
992
- if (
993
- (
994
- (first === '"' || first === "'" || first === '`')
995
- || (last === '"' || last === "'" || last === '`')
996
- )
997
- && first !== last
998
- ) {
999
- throw new $SyntaxError$1('property names with quotes must have matching quotes');
1000
- }
1001
- if (part === 'constructor' || !isOwn) {
1002
- skipFurtherCaching = true;
1003
- }
1004
-
1005
- intrinsicBaseName += '.' + part;
1006
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1007
-
1008
- if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
1009
- value = INTRINSICS[intrinsicRealName];
1010
- } else if (value != null) {
1011
- if (!(part in value)) {
1012
- if (!allowMissing) {
1013
- throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
1014
- }
1015
- return void undefined$1;
1016
- }
1017
- if ($gOPD$1 && (i + 1) >= parts.length) {
1018
- var desc = $gOPD$1(value, part);
1019
- isOwn = !!desc;
1020
-
1021
- // By convention, when a data property is converted to an accessor
1022
- // property to emulate a data property that does not suffer from
1023
- // the override mistake, that accessor's getter is marked with
1024
- // an `originalValue` property. Here, when we detect this, we
1025
- // uphold the illusion by pretending to see that original data
1026
- // property, i.e., returning the value rather than the getter
1027
- // itself.
1028
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1029
- value = desc.get;
1030
- } else {
1031
- value = value[part];
1032
- }
1033
- } else {
1034
- isOwn = hasOwn$1(value, part);
1035
- value = value[part];
1036
- }
1037
-
1038
- if (isOwn && !skipFurtherCaching) {
1039
- INTRINSICS[intrinsicRealName] = value;
1040
- }
1041
- }
1042
- }
1043
- return value;
1044
- };
1045
-
1046
- var callBind$1 = {exports: {}};
1047
-
1048
- var GetIntrinsic$5 = getIntrinsic;
1049
-
1050
- var $defineProperty$1 = GetIntrinsic$5('%Object.defineProperty%', true);
1051
-
1052
- var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
1053
- if ($defineProperty$1) {
1054
- try {
1055
- $defineProperty$1({}, 'a', { value: 1 });
1056
- return true;
1057
- } catch (e) {
1058
- // IE 8 has a broken defineProperty
1059
- return false;
1060
- }
1061
- }
1062
- return false;
1063
- };
1064
-
1065
- hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
1066
- // node v0.6 has a bug where array lengths can be Set but not Defined
1067
- if (!hasPropertyDescriptors$1()) {
1068
- return null;
1069
- }
1070
- try {
1071
- return $defineProperty$1([], 'length', { value: 1 }).length !== 1;
1072
- } catch (e) {
1073
- // In Firefox 4-22, defining length on an array throws an exception.
1074
- return true;
1075
- }
1076
- };
1077
-
1078
- var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
1079
-
1080
- var GetIntrinsic$4 = getIntrinsic;
1081
-
1082
- var $gOPD = GetIntrinsic$4('%Object.getOwnPropertyDescriptor%', true);
1083
-
1084
- if ($gOPD) {
1085
- try {
1086
- $gOPD([], 'length');
1087
- } catch (e) {
1088
- // IE 8 has a broken gOPD
1089
- $gOPD = null;
1090
- }
1091
- }
1092
-
1093
- var gopd$1 = $gOPD;
1094
-
1095
- var hasPropertyDescriptors = hasPropertyDescriptors_1();
1096
-
1097
- var GetIntrinsic$3 = getIntrinsic;
1098
-
1099
- var $defineProperty = hasPropertyDescriptors && GetIntrinsic$3('%Object.defineProperty%', true);
1100
- if ($defineProperty) {
1101
- try {
1102
- $defineProperty({}, 'a', { value: 1 });
1103
- } catch (e) {
1104
- // IE 8 has a broken defineProperty
1105
- $defineProperty = false;
1106
- }
1107
- }
1108
-
1109
- var $SyntaxError = GetIntrinsic$3('%SyntaxError%');
1110
- var $TypeError$2 = GetIntrinsic$3('%TypeError%');
1111
-
1112
- var gopd = gopd$1;
1113
-
1114
- /** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
1115
- var defineDataProperty = function defineDataProperty(
1116
- obj,
1117
- property,
1118
- value
1119
- ) {
1120
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
1121
- throw new $TypeError$2('`obj` must be an object or a function`');
1122
- }
1123
- if (typeof property !== 'string' && typeof property !== 'symbol') {
1124
- throw new $TypeError$2('`property` must be a string or a symbol`');
1125
- }
1126
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
1127
- throw new $TypeError$2('`nonEnumerable`, if provided, must be a boolean or null');
1128
- }
1129
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
1130
- throw new $TypeError$2('`nonWritable`, if provided, must be a boolean or null');
1131
- }
1132
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
1133
- throw new $TypeError$2('`nonConfigurable`, if provided, must be a boolean or null');
1134
- }
1135
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
1136
- throw new $TypeError$2('`loose`, if provided, must be a boolean');
1137
- }
1138
-
1139
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
1140
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
1141
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
1142
- var loose = arguments.length > 6 ? arguments[6] : false;
1143
-
1144
- /* @type {false | TypedPropertyDescriptor<unknown>} */
1145
- var desc = !!gopd && gopd(obj, property);
1146
-
1147
- if ($defineProperty) {
1148
- $defineProperty(obj, property, {
1149
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
1150
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
1151
- value: value,
1152
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
1153
- });
1154
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
1155
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
1156
- obj[property] = value; // eslint-disable-line no-param-reassign
1157
- } else {
1158
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
1159
- }
1160
- };
1161
-
1162
- var GetIntrinsic$2 = getIntrinsic;
1163
- var define = defineDataProperty;
1164
- var hasDescriptors = hasPropertyDescriptors_1();
1165
- var gOPD = gopd$1;
1166
-
1167
- var $TypeError$1 = GetIntrinsic$2('%TypeError%');
1168
- var $floor$1 = GetIntrinsic$2('%Math.floor%');
1169
-
1170
- var setFunctionLength = function setFunctionLength(fn, length) {
1171
- if (typeof fn !== 'function') {
1172
- throw new $TypeError$1('`fn` is not a function');
1173
- }
1174
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
1175
- throw new $TypeError$1('`length` must be a positive 32-bit integer');
1176
- }
1177
-
1178
- var loose = arguments.length > 2 && !!arguments[2];
1179
-
1180
- var functionLengthIsConfigurable = true;
1181
- var functionLengthIsWritable = true;
1182
- if ('length' in fn && gOPD) {
1183
- var desc = gOPD(fn, 'length');
1184
- if (desc && !desc.configurable) {
1185
- functionLengthIsConfigurable = false;
1186
- }
1187
- if (desc && !desc.writable) {
1188
- functionLengthIsWritable = false;
1189
- }
1190
- }
1191
-
1192
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
1193
- if (hasDescriptors) {
1194
- define(fn, 'length', length, true, true);
1195
- } else {
1196
- define(fn, 'length', length);
1197
- }
1198
- }
1199
- return fn;
1200
- };
1201
-
1202
- callBind$1.exports;
1203
-
1204
- (function (module) {
1205
-
1206
- var bind = functionBind;
1207
- var GetIntrinsic = getIntrinsic;
1208
- var setFunctionLength$1 = setFunctionLength;
1209
-
1210
- var $TypeError = GetIntrinsic('%TypeError%');
1211
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1212
- var $call = GetIntrinsic('%Function.prototype.call%');
1213
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
1214
-
1215
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
1216
- var $max = GetIntrinsic('%Math.max%');
1217
-
1218
- if ($defineProperty) {
1219
- try {
1220
- $defineProperty({}, 'a', { value: 1 });
1221
- } catch (e) {
1222
- // IE 8 has a broken defineProperty
1223
- $defineProperty = null;
1224
- }
1225
- }
1226
-
1227
- module.exports = function callBind(originalFunction) {
1228
- if (typeof originalFunction !== 'function') {
1229
- throw new $TypeError('a function is required');
1230
- }
1231
- var func = $reflectApply(bind, $call, arguments);
1232
- return setFunctionLength$1(
1233
- func,
1234
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
1235
- true
1236
- );
1237
- };
1238
-
1239
- var applyBind = function applyBind() {
1240
- return $reflectApply(bind, $apply, arguments);
1241
- };
1242
-
1243
- if ($defineProperty) {
1244
- $defineProperty(module.exports, 'apply', { value: applyBind });
1245
- } else {
1246
- module.exports.apply = applyBind;
1247
- }
1248
- } (callBind$1));
1249
-
1250
- var callBindExports = callBind$1.exports;
1251
-
1252
- var GetIntrinsic$1 = getIntrinsic;
1253
-
1254
- var callBind = callBindExports;
1255
-
1256
- var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
1257
-
1258
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
1259
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
1260
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1261
- return callBind(intrinsic);
1262
- }
1263
- return intrinsic;
1264
- };
1265
-
1266
- var util_inspect = require$$0.inspect;
1267
-
1268
- var hasMap = typeof Map === 'function' && Map.prototype;
1269
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1270
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1271
- var mapForEach = hasMap && Map.prototype.forEach;
1272
- var hasSet = typeof Set === 'function' && Set.prototype;
1273
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1274
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1275
- var setForEach = hasSet && Set.prototype.forEach;
1276
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1277
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1278
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1279
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1280
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1281
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1282
- var booleanValueOf = Boolean.prototype.valueOf;
1283
- var objectToString = Object.prototype.toString;
1284
- var functionToString = Function.prototype.toString;
1285
- var $match = String.prototype.match;
1286
- var $slice = String.prototype.slice;
1287
- var $replace = String.prototype.replace;
1288
- var $toUpperCase = String.prototype.toUpperCase;
1289
- var $toLowerCase = String.prototype.toLowerCase;
1290
- var $test = RegExp.prototype.test;
1291
- var $concat = Array.prototype.concat;
1292
- var $join = Array.prototype.join;
1293
- var $arrSlice = Array.prototype.slice;
1294
- var $floor = Math.floor;
1295
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1296
- var gOPS = Object.getOwnPropertySymbols;
1297
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1298
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1299
- // ie, `has-tostringtag/shams
1300
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1301
- ? Symbol.toStringTag
1302
- : null;
1303
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1304
-
1305
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1306
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1307
- ? function (O) {
1308
- return O.__proto__; // eslint-disable-line no-proto
1309
- }
1310
- : null
1311
- );
1312
-
1313
- function addNumericSeparator(num, str) {
1314
- if (
1315
- num === Infinity
1316
- || num === -Infinity
1317
- || num !== num
1318
- || (num && num > -1000 && num < 1000)
1319
- || $test.call(/e/, str)
1320
- ) {
1321
- return str;
1322
- }
1323
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1324
- if (typeof num === 'number') {
1325
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1326
- if (int !== num) {
1327
- var intStr = String(int);
1328
- var dec = $slice.call(str, intStr.length + 1);
1329
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1330
- }
1331
- }
1332
- return $replace.call(str, sepRegex, '$&_');
1333
- }
1334
-
1335
- var utilInspect = util_inspect;
1336
- var inspectCustom = utilInspect.custom;
1337
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1338
-
1339
- var objectInspect = function inspect_(obj, options, depth, seen) {
1340
- var opts = options || {};
1341
-
1342
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1343
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1344
- }
1345
- if (
1346
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1347
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1348
- : opts.maxStringLength !== null
1349
- )
1350
- ) {
1351
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1352
- }
1353
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1354
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1355
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1356
- }
1357
-
1358
- if (
1359
- has$3(opts, 'indent')
1360
- && opts.indent !== null
1361
- && opts.indent !== '\t'
1362
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1363
- ) {
1364
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1365
- }
1366
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1367
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1368
- }
1369
- var numericSeparator = opts.numericSeparator;
1370
-
1371
- if (typeof obj === 'undefined') {
1372
- return 'undefined';
1373
- }
1374
- if (obj === null) {
1375
- return 'null';
1376
- }
1377
- if (typeof obj === 'boolean') {
1378
- return obj ? 'true' : 'false';
1379
- }
1380
-
1381
- if (typeof obj === 'string') {
1382
- return inspectString(obj, opts);
1383
- }
1384
- if (typeof obj === 'number') {
1385
- if (obj === 0) {
1386
- return Infinity / obj > 0 ? '0' : '-0';
1387
- }
1388
- var str = String(obj);
1389
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1390
- }
1391
- if (typeof obj === 'bigint') {
1392
- var bigIntStr = String(obj) + 'n';
1393
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1394
- }
1395
-
1396
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1397
- if (typeof depth === 'undefined') { depth = 0; }
1398
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1399
- return isArray$3(obj) ? '[Array]' : '[Object]';
1400
- }
1401
-
1402
- var indent = getIndent(opts, depth);
1403
-
1404
- if (typeof seen === 'undefined') {
1405
- seen = [];
1406
- } else if (indexOf(seen, obj) >= 0) {
1407
- return '[Circular]';
1408
- }
1409
-
1410
- function inspect(value, from, noIndent) {
1411
- if (from) {
1412
- seen = $arrSlice.call(seen);
1413
- seen.push(from);
1414
- }
1415
- if (noIndent) {
1416
- var newOpts = {
1417
- depth: opts.depth
1418
- };
1419
- if (has$3(opts, 'quoteStyle')) {
1420
- newOpts.quoteStyle = opts.quoteStyle;
1421
- }
1422
- return inspect_(value, newOpts, depth + 1, seen);
1423
- }
1424
- return inspect_(value, opts, depth + 1, seen);
1425
- }
1426
-
1427
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1428
- var name = nameOf(obj);
1429
- var keys = arrObjKeys(obj, inspect);
1430
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1431
- }
1432
- if (isSymbol(obj)) {
1433
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1434
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1435
- }
1436
- if (isElement(obj)) {
1437
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1438
- var attrs = obj.attributes || [];
1439
- for (var i = 0; i < attrs.length; i++) {
1440
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1441
- }
1442
- s += '>';
1443
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1444
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1445
- return s;
1446
- }
1447
- if (isArray$3(obj)) {
1448
- if (obj.length === 0) { return '[]'; }
1449
- var xs = arrObjKeys(obj, inspect);
1450
- if (indent && !singleLineValues(xs)) {
1451
- return '[' + indentedJoin(xs, indent) + ']';
1452
- }
1453
- return '[ ' + $join.call(xs, ', ') + ' ]';
1454
- }
1455
- if (isError(obj)) {
1456
- var parts = arrObjKeys(obj, inspect);
1457
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1458
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1459
- }
1460
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1461
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1462
- }
1463
- if (typeof obj === 'object' && customInspect) {
1464
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1465
- return utilInspect(obj, { depth: maxDepth - depth });
1466
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1467
- return obj.inspect();
1468
- }
1469
- }
1470
- if (isMap(obj)) {
1471
- var mapParts = [];
1472
- if (mapForEach) {
1473
- mapForEach.call(obj, function (value, key) {
1474
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1475
- });
1476
- }
1477
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1478
- }
1479
- if (isSet(obj)) {
1480
- var setParts = [];
1481
- if (setForEach) {
1482
- setForEach.call(obj, function (value) {
1483
- setParts.push(inspect(value, obj));
1484
- });
1485
- }
1486
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1487
- }
1488
- if (isWeakMap(obj)) {
1489
- return weakCollectionOf('WeakMap');
1490
- }
1491
- if (isWeakSet(obj)) {
1492
- return weakCollectionOf('WeakSet');
1493
- }
1494
- if (isWeakRef(obj)) {
1495
- return weakCollectionOf('WeakRef');
1496
- }
1497
- if (isNumber(obj)) {
1498
- return markBoxed(inspect(Number(obj)));
1499
- }
1500
- if (isBigInt(obj)) {
1501
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1502
- }
1503
- if (isBoolean(obj)) {
1504
- return markBoxed(booleanValueOf.call(obj));
1505
- }
1506
- if (isString(obj)) {
1507
- return markBoxed(inspect(String(obj)));
1508
- }
1509
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
1510
- /* eslint-env browser */
1511
- if (typeof window !== 'undefined' && obj === window) {
1512
- return '{ [object Window] }';
1513
- }
1514
- if (obj === commonjsGlobal) {
1515
- return '{ [object globalThis] }';
1516
- }
1517
- if (!isDate(obj) && !isRegExp$1(obj)) {
1518
- var ys = arrObjKeys(obj, inspect);
1519
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1520
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1521
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1522
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1523
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1524
- if (ys.length === 0) { return tag + '{}'; }
1525
- if (indent) {
1526
- return tag + '{' + indentedJoin(ys, indent) + '}';
1527
- }
1528
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1529
- }
1530
- return String(obj);
1531
- };
1532
-
1533
- function wrapQuotes(s, defaultStyle, opts) {
1534
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1535
- return quoteChar + s + quoteChar;
1536
- }
1537
-
1538
- function quote(s) {
1539
- return $replace.call(String(s), /"/g, '&quot;');
1540
- }
1541
-
1542
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1543
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1544
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1545
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1546
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1547
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1548
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1549
-
1550
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1551
- function isSymbol(obj) {
1552
- if (hasShammedSymbols) {
1553
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1554
- }
1555
- if (typeof obj === 'symbol') {
1556
- return true;
1557
- }
1558
- if (!obj || typeof obj !== 'object' || !symToString) {
1559
- return false;
1560
- }
1561
- try {
1562
- symToString.call(obj);
1563
- return true;
1564
- } catch (e) {}
1565
- return false;
1566
- }
1567
-
1568
- function isBigInt(obj) {
1569
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1570
- return false;
1571
- }
1572
- try {
1573
- bigIntValueOf.call(obj);
1574
- return true;
1575
- } catch (e) {}
1576
- return false;
1577
- }
1578
-
1579
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1580
- function has$3(obj, key) {
1581
- return hasOwn.call(obj, key);
1582
- }
1583
-
1584
- function toStr(obj) {
1585
- return objectToString.call(obj);
1586
- }
1587
-
1588
- function nameOf(f) {
1589
- if (f.name) { return f.name; }
1590
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1591
- if (m) { return m[1]; }
1592
- return null;
1593
- }
1594
-
1595
- function indexOf(xs, x) {
1596
- if (xs.indexOf) { return xs.indexOf(x); }
1597
- for (var i = 0, l = xs.length; i < l; i++) {
1598
- if (xs[i] === x) { return i; }
1599
- }
1600
- return -1;
1601
- }
1602
-
1603
- function isMap(x) {
1604
- if (!mapSize || !x || typeof x !== 'object') {
1605
- return false;
1606
- }
1607
- try {
1608
- mapSize.call(x);
1609
- try {
1610
- setSize.call(x);
1611
- } catch (s) {
1612
- return true;
1613
- }
1614
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1615
- } catch (e) {}
1616
- return false;
1617
- }
1618
-
1619
- function isWeakMap(x) {
1620
- if (!weakMapHas || !x || typeof x !== 'object') {
1621
- return false;
1622
- }
1623
- try {
1624
- weakMapHas.call(x, weakMapHas);
1625
- try {
1626
- weakSetHas.call(x, weakSetHas);
1627
- } catch (s) {
1628
- return true;
1629
- }
1630
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1631
- } catch (e) {}
1632
- return false;
1633
- }
1634
-
1635
- function isWeakRef(x) {
1636
- if (!weakRefDeref || !x || typeof x !== 'object') {
1637
- return false;
1638
- }
1639
- try {
1640
- weakRefDeref.call(x);
1641
- return true;
1642
- } catch (e) {}
1643
- return false;
1644
- }
1645
-
1646
- function isSet(x) {
1647
- if (!setSize || !x || typeof x !== 'object') {
1648
- return false;
1649
- }
1650
- try {
1651
- setSize.call(x);
1652
- try {
1653
- mapSize.call(x);
1654
- } catch (m) {
1655
- return true;
1656
- }
1657
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1658
- } catch (e) {}
1659
- return false;
1660
- }
1661
-
1662
- function isWeakSet(x) {
1663
- if (!weakSetHas || !x || typeof x !== 'object') {
1664
- return false;
1665
- }
1666
- try {
1667
- weakSetHas.call(x, weakSetHas);
1668
- try {
1669
- weakMapHas.call(x, weakMapHas);
1670
- } catch (s) {
1671
- return true;
1672
- }
1673
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1674
- } catch (e) {}
1675
- return false;
1676
- }
1677
-
1678
- function isElement(x) {
1679
- if (!x || typeof x !== 'object') { return false; }
1680
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1681
- return true;
1682
- }
1683
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1684
- }
1685
-
1686
- function inspectString(str, opts) {
1687
- if (str.length > opts.maxStringLength) {
1688
- var remaining = str.length - opts.maxStringLength;
1689
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1690
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1691
- }
1692
- // eslint-disable-next-line no-control-regex
1693
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1694
- return wrapQuotes(s, 'single', opts);
1695
- }
1696
-
1697
- function lowbyte(c) {
1698
- var n = c.charCodeAt(0);
1699
- var x = {
1700
- 8: 'b',
1701
- 9: 't',
1702
- 10: 'n',
1703
- 12: 'f',
1704
- 13: 'r'
1705
- }[n];
1706
- if (x) { return '\\' + x; }
1707
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1708
- }
1709
-
1710
- function markBoxed(str) {
1711
- return 'Object(' + str + ')';
1712
- }
1713
-
1714
- function weakCollectionOf(type) {
1715
- return type + ' { ? }';
1716
- }
1717
-
1718
- function collectionOf(type, size, entries, indent) {
1719
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1720
- return type + ' (' + size + ') {' + joinedEntries + '}';
1721
- }
1722
-
1723
- function singleLineValues(xs) {
1724
- for (var i = 0; i < xs.length; i++) {
1725
- if (indexOf(xs[i], '\n') >= 0) {
1726
- return false;
1727
- }
1728
- }
1729
- return true;
1730
- }
1731
-
1732
- function getIndent(opts, depth) {
1733
- var baseIndent;
1734
- if (opts.indent === '\t') {
1735
- baseIndent = '\t';
1736
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1737
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1738
- } else {
1739
- return null;
1740
- }
1741
- return {
1742
- base: baseIndent,
1743
- prev: $join.call(Array(depth + 1), baseIndent)
1744
- };
1745
- }
1746
-
1747
- function indentedJoin(xs, indent) {
1748
- if (xs.length === 0) { return ''; }
1749
- var lineJoiner = '\n' + indent.prev + indent.base;
1750
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1751
- }
1752
-
1753
- function arrObjKeys(obj, inspect) {
1754
- var isArr = isArray$3(obj);
1755
- var xs = [];
1756
- if (isArr) {
1757
- xs.length = obj.length;
1758
- for (var i = 0; i < obj.length; i++) {
1759
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1760
- }
1761
- }
1762
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1763
- var symMap;
1764
- if (hasShammedSymbols) {
1765
- symMap = {};
1766
- for (var k = 0; k < syms.length; k++) {
1767
- symMap['$' + syms[k]] = syms[k];
1768
- }
1769
- }
1770
-
1771
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1772
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1773
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1774
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1775
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1776
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1777
- } else if ($test.call(/[^\w$]/, key)) {
1778
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1779
- } else {
1780
- xs.push(key + ': ' + inspect(obj[key], obj));
1781
- }
1782
- }
1783
- if (typeof gOPS === 'function') {
1784
- for (var j = 0; j < syms.length; j++) {
1785
- if (isEnumerable.call(obj, syms[j])) {
1786
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1787
- }
1788
- }
1789
- }
1790
- return xs;
1791
- }
1792
-
1793
- var GetIntrinsic = getIntrinsic;
1794
- var callBound = callBound$1;
1795
- var inspect = objectInspect;
1796
-
1797
- var $TypeError = GetIntrinsic('%TypeError%');
1798
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
1799
- var $Map = GetIntrinsic('%Map%', true);
1800
-
1801
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1802
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1803
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1804
- var $mapGet = callBound('Map.prototype.get', true);
1805
- var $mapSet = callBound('Map.prototype.set', true);
1806
- var $mapHas = callBound('Map.prototype.has', true);
1807
-
1808
- /*
1809
- * This function traverses the list returning the node corresponding to the
1810
- * given key.
1811
- *
1812
- * That node is also moved to the head of the list, so that if it's accessed
1813
- * again we don't need to traverse the whole list. By doing so, all the recently
1814
- * used nodes can be accessed relatively quickly.
1815
- */
1816
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1817
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
1818
- if (curr.key === key) {
1819
- prev.next = curr.next;
1820
- curr.next = list.next;
1821
- list.next = curr; // eslint-disable-line no-param-reassign
1822
- return curr;
1823
- }
1824
- }
1825
- };
1826
-
1827
- var listGet = function (objects, key) {
1828
- var node = listGetNode(objects, key);
1829
- return node && node.value;
1830
- };
1831
- var listSet = function (objects, key, value) {
1832
- var node = listGetNode(objects, key);
1833
- if (node) {
1834
- node.value = value;
1835
- } else {
1836
- // Prepend the new node to the beginning of the list
1837
- objects.next = { // eslint-disable-line no-param-reassign
1838
- key: key,
1839
- next: objects.next,
1840
- value: value
1841
- };
1842
- }
1843
- };
1844
- var listHas = function (objects, key) {
1845
- return !!listGetNode(objects, key);
1846
- };
1847
-
1848
- var sideChannel = function getSideChannel() {
1849
- var $wm;
1850
- var $m;
1851
- var $o;
1852
- var channel = {
1853
- assert: function (key) {
1854
- if (!channel.has(key)) {
1855
- throw new $TypeError('Side channel does not contain ' + inspect(key));
1856
- }
1857
- },
1858
- get: function (key) { // eslint-disable-line consistent-return
1859
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1860
- if ($wm) {
1861
- return $weakMapGet($wm, key);
1862
- }
1863
- } else if ($Map) {
1864
- if ($m) {
1865
- return $mapGet($m, key);
1866
- }
1867
- } else {
1868
- if ($o) { // eslint-disable-line no-lonely-if
1869
- return listGet($o, key);
1870
- }
1871
- }
1872
- },
1873
- has: function (key) {
1874
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1875
- if ($wm) {
1876
- return $weakMapHas($wm, key);
1877
- }
1878
- } else if ($Map) {
1879
- if ($m) {
1880
- return $mapHas($m, key);
1881
- }
1882
- } else {
1883
- if ($o) { // eslint-disable-line no-lonely-if
1884
- return listHas($o, key);
1885
- }
1886
- }
1887
- return false;
1888
- },
1889
- set: function (key, value) {
1890
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1891
- if (!$wm) {
1892
- $wm = new $WeakMap();
1893
- }
1894
- $weakMapSet($wm, key, value);
1895
- } else if ($Map) {
1896
- if (!$m) {
1897
- $m = new $Map();
1898
- }
1899
- $mapSet($m, key, value);
1900
- } else {
1901
- if (!$o) {
1902
- /*
1903
- * Initialize the linked list as an empty node, so that we don't have
1904
- * to special-case handling of the first node: we can always refer to
1905
- * it as (previous node).next, instead of something like (list).head
1906
- */
1907
- $o = { key: {}, next: null };
1908
- }
1909
- listSet($o, key, value);
1910
- }
1911
- }
1912
- };
1913
- return channel;
1914
- };
1915
-
1916
- var replace = String.prototype.replace;
1917
- var percentTwenties = /%20/g;
1918
-
1919
- var Format = {
1920
- RFC1738: 'RFC1738',
1921
- RFC3986: 'RFC3986'
1922
- };
1923
-
1924
- var formats$3 = {
1925
- 'default': Format.RFC3986,
1926
- formatters: {
1927
- RFC1738: function (value) {
1928
- return replace.call(value, percentTwenties, '+');
1929
- },
1930
- RFC3986: function (value) {
1931
- return String(value);
1932
- }
1933
- },
1934
- RFC1738: Format.RFC1738,
1935
- RFC3986: Format.RFC3986
1936
- };
1937
-
1938
- var formats$2 = formats$3;
1939
-
1940
- var has$2 = Object.prototype.hasOwnProperty;
1941
- var isArray$2 = Array.isArray;
1942
-
1943
- var hexTable = (function () {
1944
- var array = [];
1945
- for (var i = 0; i < 256; ++i) {
1946
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1947
- }
1948
-
1949
- return array;
1950
- }());
1951
-
1952
- var compactQueue = function compactQueue(queue) {
1953
- while (queue.length > 1) {
1954
- var item = queue.pop();
1955
- var obj = item.obj[item.prop];
1956
-
1957
- if (isArray$2(obj)) {
1958
- var compacted = [];
1959
-
1960
- for (var j = 0; j < obj.length; ++j) {
1961
- if (typeof obj[j] !== 'undefined') {
1962
- compacted.push(obj[j]);
1963
- }
1964
- }
1965
-
1966
- item.obj[item.prop] = compacted;
1967
- }
1968
- }
1969
- };
1970
-
1971
- var arrayToObject = function arrayToObject(source, options) {
1972
- var obj = options && options.plainObjects ? Object.create(null) : {};
1973
- for (var i = 0; i < source.length; ++i) {
1974
- if (typeof source[i] !== 'undefined') {
1975
- obj[i] = source[i];
1976
- }
1977
- }
1978
-
1979
- return obj;
1980
- };
1981
-
1982
- var merge = function merge(target, source, options) {
1983
- /* eslint no-param-reassign: 0 */
1984
- if (!source) {
1985
- return target;
1986
- }
1987
-
1988
- if (typeof source !== 'object') {
1989
- if (isArray$2(target)) {
1990
- target.push(source);
1991
- } else if (target && typeof target === 'object') {
1992
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
1993
- target[source] = true;
1994
- }
1995
- } else {
1996
- return [target, source];
1997
- }
1998
-
1999
- return target;
2000
- }
2001
-
2002
- if (!target || typeof target !== 'object') {
2003
- return [target].concat(source);
2004
- }
2005
-
2006
- var mergeTarget = target;
2007
- if (isArray$2(target) && !isArray$2(source)) {
2008
- mergeTarget = arrayToObject(target, options);
2009
- }
2010
-
2011
- if (isArray$2(target) && isArray$2(source)) {
2012
- source.forEach(function (item, i) {
2013
- if (has$2.call(target, i)) {
2014
- var targetItem = target[i];
2015
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
2016
- target[i] = merge(targetItem, item, options);
2017
- } else {
2018
- target.push(item);
2019
- }
2020
- } else {
2021
- target[i] = item;
2022
- }
2023
- });
2024
- return target;
2025
- }
2026
-
2027
- return Object.keys(source).reduce(function (acc, key) {
2028
- var value = source[key];
2029
-
2030
- if (has$2.call(acc, key)) {
2031
- acc[key] = merge(acc[key], value, options);
2032
- } else {
2033
- acc[key] = value;
2034
- }
2035
- return acc;
2036
- }, mergeTarget);
2037
- };
2038
-
2039
- var assign = function assignSingleSource(target, source) {
2040
- return Object.keys(source).reduce(function (acc, key) {
2041
- acc[key] = source[key];
2042
- return acc;
2043
- }, target);
2044
- };
2045
-
2046
- var decode = function (str, decoder, charset) {
2047
- var strWithoutPlus = str.replace(/\+/g, ' ');
2048
- if (charset === 'iso-8859-1') {
2049
- // unescape never throws, no try...catch needed:
2050
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
2051
- }
2052
- // utf-8
2053
- try {
2054
- return decodeURIComponent(strWithoutPlus);
2055
- } catch (e) {
2056
- return strWithoutPlus;
2057
- }
2058
- };
2059
-
2060
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
2061
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
2062
- // It has been adapted here for stricter adherence to RFC 3986
2063
- if (str.length === 0) {
2064
- return str;
2065
- }
2066
-
2067
- var string = str;
2068
- if (typeof str === 'symbol') {
2069
- string = Symbol.prototype.toString.call(str);
2070
- } else if (typeof str !== 'string') {
2071
- string = String(str);
2072
- }
2073
-
2074
- if (charset === 'iso-8859-1') {
2075
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
2076
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
2077
- });
2078
- }
2079
-
2080
- var out = '';
2081
- for (var i = 0; i < string.length; ++i) {
2082
- var c = string.charCodeAt(i);
2083
-
2084
- if (
2085
- c === 0x2D // -
2086
- || c === 0x2E // .
2087
- || c === 0x5F // _
2088
- || c === 0x7E // ~
2089
- || (c >= 0x30 && c <= 0x39) // 0-9
2090
- || (c >= 0x41 && c <= 0x5A) // a-z
2091
- || (c >= 0x61 && c <= 0x7A) // A-Z
2092
- || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
2093
- ) {
2094
- out += string.charAt(i);
2095
- continue;
2096
- }
2097
-
2098
- if (c < 0x80) {
2099
- out = out + hexTable[c];
2100
- continue;
2101
- }
2102
-
2103
- if (c < 0x800) {
2104
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
2105
- continue;
2106
- }
2107
-
2108
- if (c < 0xD800 || c >= 0xE000) {
2109
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
2110
- continue;
2111
- }
2112
-
2113
- i += 1;
2114
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
2115
- /* eslint operator-linebreak: [2, "before"] */
2116
- out += hexTable[0xF0 | (c >> 18)]
2117
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
2118
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
2119
- + hexTable[0x80 | (c & 0x3F)];
2120
- }
2121
-
2122
- return out;
2123
- };
2124
-
2125
- var compact = function compact(value) {
2126
- var queue = [{ obj: { o: value }, prop: 'o' }];
2127
- var refs = [];
2128
-
2129
- for (var i = 0; i < queue.length; ++i) {
2130
- var item = queue[i];
2131
- var obj = item.obj[item.prop];
2132
-
2133
- var keys = Object.keys(obj);
2134
- for (var j = 0; j < keys.length; ++j) {
2135
- var key = keys[j];
2136
- var val = obj[key];
2137
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
2138
- queue.push({ obj: obj, prop: key });
2139
- refs.push(val);
2140
- }
2141
- }
2142
- }
2143
-
2144
- compactQueue(queue);
2145
-
2146
- return value;
2147
- };
2148
-
2149
- var isRegExp = function isRegExp(obj) {
2150
- return Object.prototype.toString.call(obj) === '[object RegExp]';
2151
- };
2152
-
2153
- var isBuffer = function isBuffer(obj) {
2154
- if (!obj || typeof obj !== 'object') {
2155
- return false;
2156
- }
2157
-
2158
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
2159
- };
2160
-
2161
- var combine = function combine(a, b) {
2162
- return [].concat(a, b);
2163
- };
2164
-
2165
- var maybeMap = function maybeMap(val, fn) {
2166
- if (isArray$2(val)) {
2167
- var mapped = [];
2168
- for (var i = 0; i < val.length; i += 1) {
2169
- mapped.push(fn(val[i]));
2170
- }
2171
- return mapped;
2172
- }
2173
- return fn(val);
2174
- };
2175
-
2176
- var utils$2 = {
2177
- arrayToObject: arrayToObject,
2178
- assign: assign,
2179
- combine: combine,
2180
- compact: compact,
2181
- decode: decode,
2182
- encode: encode,
2183
- isBuffer: isBuffer,
2184
- isRegExp: isRegExp,
2185
- maybeMap: maybeMap,
2186
- merge: merge
2187
- };
2188
-
2189
- var getSideChannel = sideChannel;
2190
- var utils$1 = utils$2;
2191
- var formats$1 = formats$3;
2192
- var has$1 = Object.prototype.hasOwnProperty;
2193
-
2194
- var arrayPrefixGenerators = {
2195
- brackets: function brackets(prefix) {
2196
- return prefix + '[]';
2197
- },
2198
- comma: 'comma',
2199
- indices: function indices(prefix, key) {
2200
- return prefix + '[' + key + ']';
2201
- },
2202
- repeat: function repeat(prefix) {
2203
- return prefix;
2204
- }
2205
- };
2206
-
2207
- var isArray$1 = Array.isArray;
2208
- var push = Array.prototype.push;
2209
- var pushToArray = function (arr, valueOrArray) {
2210
- push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
2211
- };
2212
-
2213
- var toISO = Date.prototype.toISOString;
2214
-
2215
- var defaultFormat = formats$1['default'];
2216
- var defaults$1 = {
2217
- addQueryPrefix: false,
2218
- allowDots: false,
2219
- charset: 'utf-8',
2220
- charsetSentinel: false,
2221
- delimiter: '&',
2222
- encode: true,
2223
- encoder: utils$1.encode,
2224
- encodeValuesOnly: false,
2225
- format: defaultFormat,
2226
- formatter: formats$1.formatters[defaultFormat],
2227
- // deprecated
2228
- indices: false,
2229
- serializeDate: function serializeDate(date) {
2230
- return toISO.call(date);
2231
- },
2232
- skipNulls: false,
2233
- strictNullHandling: false
2234
- };
2235
-
2236
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
2237
- return typeof v === 'string'
2238
- || typeof v === 'number'
2239
- || typeof v === 'boolean'
2240
- || typeof v === 'symbol'
2241
- || typeof v === 'bigint';
2242
- };
2243
-
2244
- var sentinel = {};
2245
-
2246
- var stringify$1 = function stringify(
2247
- object,
2248
- prefix,
2249
- generateArrayPrefix,
2250
- commaRoundTrip,
2251
- strictNullHandling,
2252
- skipNulls,
2253
- encoder,
2254
- filter,
2255
- sort,
2256
- allowDots,
2257
- serializeDate,
2258
- format,
2259
- formatter,
2260
- encodeValuesOnly,
2261
- charset,
2262
- sideChannel
2263
- ) {
2264
- var obj = object;
2265
-
2266
- var tmpSc = sideChannel;
2267
- var step = 0;
2268
- var findFlag = false;
2269
- while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
2270
- // Where object last appeared in the ref tree
2271
- var pos = tmpSc.get(object);
2272
- step += 1;
2273
- if (typeof pos !== 'undefined') {
2274
- if (pos === step) {
2275
- throw new RangeError('Cyclic object value');
2276
- } else {
2277
- findFlag = true; // Break while
2278
- }
2279
- }
2280
- if (typeof tmpSc.get(sentinel) === 'undefined') {
2281
- step = 0;
2282
- }
2283
- }
2284
-
2285
- if (typeof filter === 'function') {
2286
- obj = filter(prefix, obj);
2287
- } else if (obj instanceof Date) {
2288
- obj = serializeDate(obj);
2289
- } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2290
- obj = utils$1.maybeMap(obj, function (value) {
2291
- if (value instanceof Date) {
2292
- return serializeDate(value);
2293
- }
2294
- return value;
2295
- });
2296
- }
2297
-
2298
- if (obj === null) {
2299
- if (strictNullHandling) {
2300
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
2301
- }
2302
-
2303
- obj = '';
2304
- }
2305
-
2306
- if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
2307
- if (encoder) {
2308
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
2309
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
2310
- }
2311
- return [formatter(prefix) + '=' + formatter(String(obj))];
2312
- }
2313
-
2314
- var values = [];
2315
-
2316
- if (typeof obj === 'undefined') {
2317
- return values;
2318
- }
2319
-
2320
- var objKeys;
2321
- if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2322
- // we need to join elements in
2323
- if (encodeValuesOnly && encoder) {
2324
- obj = utils$1.maybeMap(obj, encoder);
2325
- }
2326
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
2327
- } else if (isArray$1(filter)) {
2328
- objKeys = filter;
2329
- } else {
2330
- var keys = Object.keys(obj);
2331
- objKeys = sort ? keys.sort(sort) : keys;
2332
- }
2333
-
2334
- var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
2335
-
2336
- for (var j = 0; j < objKeys.length; ++j) {
2337
- var key = objKeys[j];
2338
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2339
-
2340
- if (skipNulls && value === null) {
2341
- continue;
2342
- }
2343
-
2344
- var keyPrefix = isArray$1(obj)
2345
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
2346
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
2347
-
2348
- sideChannel.set(object, step);
2349
- var valueSideChannel = getSideChannel();
2350
- valueSideChannel.set(sentinel, sideChannel);
2351
- pushToArray(values, stringify(
2352
- value,
2353
- keyPrefix,
2354
- generateArrayPrefix,
2355
- commaRoundTrip,
2356
- strictNullHandling,
2357
- skipNulls,
2358
- generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
2359
- filter,
2360
- sort,
2361
- allowDots,
2362
- serializeDate,
2363
- format,
2364
- formatter,
2365
- encodeValuesOnly,
2366
- charset,
2367
- valueSideChannel
2368
- ));
2369
- }
2370
-
2371
- return values;
2372
- };
2373
-
2374
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2375
- if (!opts) {
2376
- return defaults$1;
2377
- }
2378
-
2379
- if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
2380
- throw new TypeError('Encoder has to be a function.');
2381
- }
2382
-
2383
- var charset = opts.charset || defaults$1.charset;
2384
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2385
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2386
- }
2387
-
2388
- var format = formats$1['default'];
2389
- if (typeof opts.format !== 'undefined') {
2390
- if (!has$1.call(formats$1.formatters, opts.format)) {
2391
- throw new TypeError('Unknown format option provided.');
2392
- }
2393
- format = opts.format;
2394
- }
2395
- var formatter = formats$1.formatters[format];
2396
-
2397
- var filter = defaults$1.filter;
2398
- if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
2399
- filter = opts.filter;
2400
- }
2401
-
2402
- return {
2403
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
2404
- allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
2405
- charset: charset,
2406
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
2407
- delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
2408
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
2409
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
2410
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
2411
- filter: filter,
2412
- format: format,
2413
- formatter: formatter,
2414
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
2415
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
2416
- sort: typeof opts.sort === 'function' ? opts.sort : null,
2417
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2418
- };
2419
- };
2420
-
2421
- var stringify_1 = function (object, opts) {
2422
- var obj = object;
2423
- var options = normalizeStringifyOptions(opts);
2424
-
2425
- var objKeys;
2426
- var filter;
2427
-
2428
- if (typeof options.filter === 'function') {
2429
- filter = options.filter;
2430
- obj = filter('', obj);
2431
- } else if (isArray$1(options.filter)) {
2432
- filter = options.filter;
2433
- objKeys = filter;
2434
- }
2435
-
2436
- var keys = [];
2437
-
2438
- if (typeof obj !== 'object' || obj === null) {
2439
- return '';
2440
- }
2441
-
2442
- var arrayFormat;
2443
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
2444
- arrayFormat = opts.arrayFormat;
2445
- } else if (opts && 'indices' in opts) {
2446
- arrayFormat = opts.indices ? 'indices' : 'repeat';
2447
- } else {
2448
- arrayFormat = 'indices';
2449
- }
2450
-
2451
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
2452
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
2453
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
2454
- }
2455
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
2456
-
2457
- if (!objKeys) {
2458
- objKeys = Object.keys(obj);
2459
- }
2460
-
2461
- if (options.sort) {
2462
- objKeys.sort(options.sort);
2463
- }
2464
-
2465
- var sideChannel = getSideChannel();
2466
- for (var i = 0; i < objKeys.length; ++i) {
2467
- var key = objKeys[i];
2468
-
2469
- if (options.skipNulls && obj[key] === null) {
2470
- continue;
2471
- }
2472
- pushToArray(keys, stringify$1(
2473
- obj[key],
2474
- key,
2475
- generateArrayPrefix,
2476
- commaRoundTrip,
2477
- options.strictNullHandling,
2478
- options.skipNulls,
2479
- options.encode ? options.encoder : null,
2480
- options.filter,
2481
- options.sort,
2482
- options.allowDots,
2483
- options.serializeDate,
2484
- options.format,
2485
- options.formatter,
2486
- options.encodeValuesOnly,
2487
- options.charset,
2488
- sideChannel
2489
- ));
2490
- }
2491
-
2492
- var joined = keys.join(options.delimiter);
2493
- var prefix = options.addQueryPrefix === true ? '?' : '';
2494
-
2495
- if (options.charsetSentinel) {
2496
- if (options.charset === 'iso-8859-1') {
2497
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
2498
- prefix += 'utf8=%26%2310003%3B&';
2499
- } else {
2500
- // encodeURIComponent('✓')
2501
- prefix += 'utf8=%E2%9C%93&';
2502
- }
2503
- }
2504
-
2505
- return joined.length > 0 ? prefix + joined : '';
2506
- };
2507
-
2508
- var utils = utils$2;
2509
-
2510
- var has = Object.prototype.hasOwnProperty;
2511
- var isArray = Array.isArray;
2512
-
2513
- var defaults = {
2514
- allowDots: false,
2515
- allowPrototypes: false,
2516
- allowSparse: false,
2517
- arrayLimit: 20,
2518
- charset: 'utf-8',
2519
- charsetSentinel: false,
2520
- comma: false,
2521
- decoder: utils.decode,
2522
- delimiter: '&',
2523
- depth: 5,
2524
- ignoreQueryPrefix: false,
2525
- interpretNumericEntities: false,
2526
- parameterLimit: 1000,
2527
- parseArrays: true,
2528
- plainObjects: false,
2529
- strictNullHandling: false
2530
- };
2531
-
2532
- var interpretNumericEntities = function (str) {
2533
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
2534
- return String.fromCharCode(parseInt(numberStr, 10));
2535
- });
2536
- };
2537
-
2538
- var parseArrayValue = function (val, options) {
2539
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2540
- return val.split(',');
2541
- }
2542
-
2543
- return val;
2544
- };
2545
-
2546
- // This is what browsers will submit when the ✓ character occurs in an
2547
- // application/x-www-form-urlencoded body and the encoding of the page containing
2548
- // the form is iso-8859-1, or when the submitted form has an accept-charset
2549
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
2550
- // the ✓ character, such as us-ascii.
2551
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
2552
-
2553
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
2554
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
2555
-
2556
- var parseValues = function parseQueryStringValues(str, options) {
2557
- var obj = { __proto__: null };
2558
-
2559
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2560
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2561
- var parts = cleanStr.split(options.delimiter, limit);
2562
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2563
- var i;
2564
-
2565
- var charset = options.charset;
2566
- if (options.charsetSentinel) {
2567
- for (i = 0; i < parts.length; ++i) {
2568
- if (parts[i].indexOf('utf8=') === 0) {
2569
- if (parts[i] === charsetSentinel) {
2570
- charset = 'utf-8';
2571
- } else if (parts[i] === isoSentinel) {
2572
- charset = 'iso-8859-1';
2573
- }
2574
- skipIndex = i;
2575
- i = parts.length; // The eslint settings do not allow break;
2576
- }
2577
- }
2578
- }
2579
-
2580
- for (i = 0; i < parts.length; ++i) {
2581
- if (i === skipIndex) {
2582
- continue;
2583
- }
2584
- var part = parts[i];
2585
-
2586
- var bracketEqualsPos = part.indexOf(']=');
2587
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2588
-
2589
- var key, val;
2590
- if (pos === -1) {
2591
- key = options.decoder(part, defaults.decoder, charset, 'key');
2592
- val = options.strictNullHandling ? null : '';
2593
- } else {
2594
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
2595
- val = utils.maybeMap(
2596
- parseArrayValue(part.slice(pos + 1), options),
2597
- function (encodedVal) {
2598
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
2599
- }
2600
- );
2601
- }
2602
-
2603
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2604
- val = interpretNumericEntities(val);
2605
- }
2606
-
2607
- if (part.indexOf('[]=') > -1) {
2608
- val = isArray(val) ? [val] : val;
2609
- }
2610
-
2611
- if (has.call(obj, key)) {
2612
- obj[key] = utils.combine(obj[key], val);
2613
- } else {
2614
- obj[key] = val;
2615
- }
2616
- }
2617
-
2618
- return obj;
2619
- };
2620
-
2621
- var parseObject = function (chain, val, options, valuesParsed) {
2622
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2623
-
2624
- for (var i = chain.length - 1; i >= 0; --i) {
2625
- var obj;
2626
- var root = chain[i];
2627
-
2628
- if (root === '[]' && options.parseArrays) {
2629
- obj = [].concat(leaf);
2630
- } else {
2631
- obj = options.plainObjects ? Object.create(null) : {};
2632
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2633
- var index = parseInt(cleanRoot, 10);
2634
- if (!options.parseArrays && cleanRoot === '') {
2635
- obj = { 0: leaf };
2636
- } else if (
2637
- !isNaN(index)
2638
- && root !== cleanRoot
2639
- && String(index) === cleanRoot
2640
- && index >= 0
2641
- && (options.parseArrays && index <= options.arrayLimit)
2642
- ) {
2643
- obj = [];
2644
- obj[index] = leaf;
2645
- } else if (cleanRoot !== '__proto__') {
2646
- obj[cleanRoot] = leaf;
2647
- }
2648
- }
2649
-
2650
- leaf = obj;
2651
- }
2652
-
2653
- return leaf;
2654
- };
2655
-
2656
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2657
- if (!givenKey) {
2658
- return;
2659
- }
2660
-
2661
- // Transform dot notation to bracket notation
2662
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
2663
-
2664
- // The regex chunks
2665
-
2666
- var brackets = /(\[[^[\]]*])/;
2667
- var child = /(\[[^[\]]*])/g;
2668
-
2669
- // Get the parent
2670
-
2671
- var segment = options.depth > 0 && brackets.exec(key);
2672
- var parent = segment ? key.slice(0, segment.index) : key;
2673
-
2674
- // Stash the parent if it exists
2675
-
2676
- var keys = [];
2677
- if (parent) {
2678
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2679
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
2680
- if (!options.allowPrototypes) {
2681
- return;
2682
- }
2683
- }
2684
-
2685
- keys.push(parent);
2686
- }
2687
-
2688
- // Loop through children appending to the array until we hit depth
2689
-
2690
- var i = 0;
2691
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2692
- i += 1;
2693
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2694
- if (!options.allowPrototypes) {
2695
- return;
2696
- }
2697
- }
2698
- keys.push(segment[1]);
2699
- }
2700
-
2701
- // If there's a remainder, just add whatever is left
2702
-
2703
- if (segment) {
2704
- keys.push('[' + key.slice(segment.index) + ']');
2705
- }
2706
-
2707
- return parseObject(keys, val, options, valuesParsed);
2708
- };
2709
-
2710
- var normalizeParseOptions = function normalizeParseOptions(opts) {
2711
- if (!opts) {
2712
- return defaults;
2713
- }
2714
-
2715
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
2716
- throw new TypeError('Decoder has to be a function.');
2717
- }
2718
-
2719
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2720
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2721
- }
2722
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
2723
-
2724
- return {
2725
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
2726
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
2727
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
2728
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
2729
- charset: charset,
2730
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
2731
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
2732
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
2733
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
2734
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2735
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
2736
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
2737
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
2738
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
2739
- parseArrays: opts.parseArrays !== false,
2740
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
2741
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2742
- };
2743
- };
2744
-
2745
- var parse$1 = function (str, opts) {
2746
- var options = normalizeParseOptions(opts);
2747
-
2748
- if (str === '' || str === null || typeof str === 'undefined') {
2749
- return options.plainObjects ? Object.create(null) : {};
2750
- }
2751
-
2752
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2753
- var obj = options.plainObjects ? Object.create(null) : {};
2754
-
2755
- // Iterate over the keys and setup the new object
2756
-
2757
- var keys = Object.keys(tempObj);
2758
- for (var i = 0; i < keys.length; ++i) {
2759
- var key = keys[i];
2760
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
2761
- obj = utils.merge(obj, newObj, options);
2762
- }
2763
-
2764
- if (options.allowSparse === true) {
2765
- return obj;
2766
- }
2767
-
2768
- return utils.compact(obj);
2769
- };
2770
-
2771
- var stringify = stringify_1;
2772
- var parse = parse$1;
2773
- var formats = formats$3;
2774
-
2775
- var lib = {
2776
- formats: formats,
2777
- parse: parse,
2778
- stringify: stringify
2779
- };
2780
-
2781
- var _globalProps$organiza;
2782
- var newInstallationParams = lib.stringify({
2783
- integrator_id: globalProps === null || globalProps === void 0 || (_globalProps$organiza = globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
2784
- integrator_type: "Organization",
2785
- redirect_path: "/projects/new"
2786
- });
2787
- var NEW_INSTALLATION_URL = "/github_integrations/app_installations/new?".concat(newInstallationParams);
2788
- var TROUBLESHOOT_URL = "https://render.com/docs/github#troubleshooting";
2789
-
2790
- var NeetoGithubNanoPane = function NeetoGithubNanoPane(_ref) {
2791
- var isOpen = _ref.isOpen,
2792
- onClose = _ref.onClose,
2793
- _ref$isConnecting = _ref.isConnecting,
2794
- isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
2795
- _ref$isConnected = _ref.isConnected,
2796
- isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
2797
- _ref$installationUrl = _ref.installationUrl,
2798
- installationUrl = _ref$installationUrl === void 0 ? NEW_INSTALLATION_URL : _ref$installationUrl,
2799
- _ref$troubleshootUrl = _ref.troubleshootUrl,
2800
- troubleshootUrl = _ref$troubleshootUrl === void 0 ? TROUBLESHOOT_URL : _ref$troubleshootUrl,
2801
- _ref$onConnect = _ref.onConnect,
2802
- onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
2803
- _ref$projects = _ref.projects,
2804
- projects = _ref$projects === void 0 ? [] : _ref$projects,
2805
- _ref$title = _ref.title,
2806
- title = _ref$title === void 0 ? "" : _ref$title;
2807
- var _useTranslation = useTranslation(),
2808
- t = _useTranslation.t;
2809
- var initialFocusRef = useRef(null);
2810
- var _useFetchGithubReposi = useFetchGithubRepositories({
2811
- isConnected: isOpen && isConnected
2812
- }),
2813
- _useFetchGithubReposi2 = _useFetchGithubReposi.data,
2814
- _useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
2815
- _useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
2816
- repositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
2817
- _useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
2818
- accounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
2819
- isPaneLoading = _useFetchGithubReposi.isLoading;
2820
- var paneRepositories = repositories.filter(function (repository) {
2821
- return !findBy({
2822
- repository: repository.fullName
2823
- }, projects);
2824
- });
2825
- var paneAccounts = isConnected ? accounts : [];
2826
- return /*#__PURE__*/jsxs(Pane, {
2827
- initialFocusRef: initialFocusRef,
2828
- isOpen: isOpen,
2829
- onClose: onClose,
2830
- className: "neeto-github-modal-pane-wrapper",
2831
- size: "large",
2832
- children: [/*#__PURE__*/jsx(Pane.Header, {
2833
- children: /*#__PURE__*/jsx(Typography, {
2834
- style: "h2",
2835
- children: isPresent(title) ? title : t("neetoGithub.modal.title")
2836
- })
2837
- }), /*#__PURE__*/jsx(Pane.Body, {
2838
- children: /*#__PURE__*/jsx(NeetoGithubNanoContainer, {
2839
- installationUrl: installationUrl,
2840
- isConnected: isConnected,
2841
- isConnecting: isConnecting,
2842
- isPaneLoading: isPaneLoading,
2843
- onConnect: onConnect,
2844
- paneAccounts: paneAccounts,
2845
- paneRepositories: paneRepositories,
2846
- troubleshootUrl: troubleshootUrl,
2847
- isPane: true,
2848
- shouldFetchRepositories: false
2849
- })
2850
- })]
2851
- });
2852
- };
2853
-
2854
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
2855
-
2856
- var css = ".width-calc{width:100%}@media (min-width:768px){.width-calc{width:calc(100% - 82px)}}.neeto-github-modal-pane-wrapper{width:min(100%,1280px)}@media (min-width:768px){.neeto-github-modal-pane-wrapper{width:min(90%,1280px)}}@media (min-width:1024px){.neeto-github-modal-pane-wrapper{width:min(60%,1280px)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3JlcG9zaXRvcnktdGlsZS5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvYXBwbGljYXRpb24uc2NzcyIsImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3BhbmUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUNFLFVDQ0YsQ0RDRSx5QkFIRixZQUlJLHVCQ0VGLENBQ0YsQ0NQQSxpQ0FDRSxzQkRVRixDQ1JFLHlCQUhGLGlDQUlJLHFCRFdGLENBQ0YsQ0NURSwwQkFQRixpQ0FRSSxxQkRZRixDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLndpZHRoLWNhbGMge1xuICB3aWR0aDogMTAwJTtcblxuICBAc2NyZWVuIG1kIHtcbiAgICB3aWR0aDogY2FsYygxMDAlIC0gODJweCk7XG4gIH1cbn1cbiIsIi53aWR0aC1jYWxjIHtcbiAgd2lkdGg6IDEwMCU7XG59XG5Ac2NyZWVuIG1kIHtcbiAgLndpZHRoLWNhbGMge1xuICAgIHdpZHRoOiBjYWxjKDEwMCUgLSA4MnB4KTtcbiAgfVxufVxuXG4ubmVldG8tZ2l0aHViLW1vZGFsLXBhbmUtd3JhcHBlciB7XG4gIHdpZHRoOiBtaW4oMTAwJSwgMTI4MHB4KTtcbn1cbkBzY3JlZW4gbWQge1xuICAubmVldG8tZ2l0aHViLW1vZGFsLXBhbmUtd3JhcHBlciB7XG4gICAgd2lkdGg6IG1pbig5MCUsIDEyODBweCk7XG4gIH1cbn1cbkBzY3JlZW4gbGcge1xuICAubmVldG8tZ2l0aHViLW1vZGFsLXBhbmUtd3JhcHBlciB7XG4gICAgd2lkdGg6IG1pbig2MCUsIDEyODBweCk7XG4gIH1cbn0iLCIubmVldG8tZ2l0aHViLW1vZGFsLXBhbmUtd3JhcHBlciB7XG4gIHdpZHRoOiBtaW4oMTAwJSwgMTI4MHB4KTtcblxuICBAc2NyZWVuIG1kIHtcbiAgICB3aWR0aDogbWluKDkwJSwgMTI4MHB4KTtcbiAgfVxuXG4gIEBzY3JlZW4gbGcge1xuICAgIHdpZHRoOiBtaW4oNjAlLCAxMjgwcHgpO1xuICB9XG59XG4iXX0= */";
2857
- n(css,{});
2858
-
2859
- export { NeetoGithubNanoContainer, NeetoGithubNanoPane };
1
+ export { N as NeetoGithubNanoContainer } from './index-af6329fc.js';
2
+ export { default as NeetoGithubNanoPane } from './NeetoGithubNanoPane.js';
3
+ import 'classnames';
4
+ import '@bigbinary/neeto-commons-frontend/initializers';
5
+ import '@bigbinary/neeto-molecules/PageLoader';
6
+ import 'react-i18next';
7
+ import '@tanstack/react-query';
8
+ import 'ramda';
9
+ import 'axios';
10
+ import '@bigbinary/neeto-commons-frontend/constants';
11
+ import '@bigbinary/neeto-commons-frontend/react-utils';
12
+ import '@bigbinary/neeto-icons/misc/Github';
13
+ import '@bigbinary/neetoui/Typography';
14
+ import 'react/jsx-runtime';
15
+ import '@bigbinary/neeto-icons/Building';
16
+ import '@bigbinary/neetoui/Avatar';
17
+ import '@bigbinary/neetoui/Button';
18
+ import '@bigbinary/neeto-icons/Plus';
19
+ import '@bigbinary/neeto-icons/Settings';
20
+ import 'react';
21
+ import '@bigbinary/neeto-cist';
22
+ import '@bigbinary/neeto-molecules/Search';
23
+ import '@bigbinary/neeto-icons/Lock';
24
+ import '@bigbinary/neeto-molecules/DateFormat';
25
+ import '@bigbinary/neetoui/Pane';
26
+ import 'util';
2860
27
  //# sourceMappingURL=index.js.map