@zengenti/contensis-react-base 3.2.2-beta.1 → 3.2.2-beta.10
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/cjs/{App-99dbd33c.js → App-D2_FqsUD.js} +34 -34
- package/cjs/App-D2_FqsUD.js.map +1 -0
- package/cjs/{ChangePassword.container-98448cf3.js → ChangePassword.container-DrO8p-7S.js} +17 -34
- package/cjs/{ChangePassword.container-98448cf3.js.map → ChangePassword.container-DrO8p-7S.js.map} +1 -1
- package/cjs/{CookieHelper.class-34994aa1.js → CookieHelper.class-CNL3lC5D.js} +239 -145
- package/cjs/CookieHelper.class-CNL3lC5D.js.map +1 -0
- package/cjs/{RouteLoader-bf91b09e.js → RouteLoader-BrUuhdcK.js} +14 -14
- package/cjs/{RouteLoader-bf91b09e.js.map → RouteLoader-BrUuhdcK.js.map} +1 -1
- package/cjs/{SSRContext-5360635c.js → SSRContext-CmXDzwPL.js} +46 -20
- package/cjs/SSRContext-CmXDzwPL.js.map +1 -0
- package/cjs/{ToJs-7f965106.js → ToJs-C9jwV7YB.js} +25 -24
- package/cjs/{ToJs-7f965106.js.map → ToJs-C9jwV7YB.js.map} +1 -1
- package/cjs/{_commonjsHelpers-b3309d7b.js → _commonjsHelpers-BJu3ubxk.js} +1 -1
- package/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
- package/cjs/client.js +16 -16
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +178 -185
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +2478 -2482
- package/cjs/forms.js.map +1 -1
- package/cjs/{fromJSLeaveImmer-7c363211.js → fromJSLeaveImmer-Drk6JyYs.js} +2 -2
- package/{esm/fromJSLeaveImmer-e2dacd63.js.map → cjs/fromJSLeaveImmer-Drk6JyYs.js.map} +1 -1
- package/cjs/redux.js +5 -7
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +6 -8
- package/cjs/routing.js.map +1 -1
- package/cjs/{sagas-497c6e94.js → sagas-DFdRjqSX.js} +54 -56
- package/cjs/{sagas-497c6e94.js.map → sagas-DFdRjqSX.js.map} +1 -1
- package/cjs/search.js +24 -23
- package/cjs/search.js.map +1 -1
- package/cjs/{selectors-e3f1fd85.js → selectors-wCs5fHD4.js} +43 -44
- package/{esm/selectors-d2bdfe22.js.map → cjs/selectors-wCs5fHD4.js.map} +1 -1
- package/cjs/{store-665c229b.js → store-D8dJBaFw.js} +16 -34
- package/cjs/{store-665c229b.js.map → store-D8dJBaFw.js.map} +1 -1
- package/cjs/{urls-6fcaf4c6.js → urls-DVIwGZmd.js} +1 -1
- package/cjs/{urls-6fcaf4c6.js.map → urls-DVIwGZmd.js.map} +1 -1
- package/cjs/user.js +7 -9
- package/cjs/user.js.map +1 -1
- package/cjs/util.js +46 -46
- package/cjs/util.js.map +1 -1
- package/cjs/{version-7b43af3e.js → version-CM-bJ62L.js} +3 -3
- package/cjs/{version-7b43af3e.js.map → version-CM-bJ62L.js.map} +1 -1
- package/cjs/{version-3b05d6c8.js → version-DSW6Roy9.js} +5 -5
- package/cjs/{version-3b05d6c8.js.map → version-DSW6Roy9.js.map} +1 -1
- package/esm/{App-d7d8f594.js → App-BE7fh-wb.js} +28 -28
- package/esm/App-BE7fh-wb.js.map +1 -0
- package/esm/{ChangePassword.container-ab6cc22d.js → ChangePassword.container-6fQXhkzW.js} +14 -13
- package/esm/{ChangePassword.container-ab6cc22d.js.map → ChangePassword.container-6fQXhkzW.js.map} +1 -1
- package/esm/{CookieHelper.class-6d649751.js → CookieHelper.class-DqJ_o1jL.js} +239 -145
- package/esm/CookieHelper.class-DqJ_o1jL.js.map +1 -0
- package/esm/{RouteLoader-be1b907d.js → RouteLoader-BNKfOnU8.js} +5 -5
- package/esm/{RouteLoader-be1b907d.js.map → RouteLoader-BNKfOnU8.js.map} +1 -1
- package/esm/{SSRContext-42cc028d.js → SSRContext-BoisoiyV.js} +43 -17
- package/esm/SSRContext-BoisoiyV.js.map +1 -0
- package/esm/{ToJs-67b34be1.js → ToJs-B4MH53fx.js} +23 -22
- package/esm/{ToJs-67b34be1.js.map → ToJs-B4MH53fx.js.map} +1 -1
- package/esm/{_commonjsHelpers-1789f0cf.js → _commonjsHelpers-BFTU3MAI.js} +1 -1
- package/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
- package/esm/client.js +11 -11
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +136 -143
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +2224 -2226
- package/esm/forms.js.map +1 -1
- package/esm/{fromJSLeaveImmer-e2dacd63.js → fromJSLeaveImmer-DfnbPBKC.js} +1 -1
- package/{cjs/fromJSLeaveImmer-7c363211.js.map → esm/fromJSLeaveImmer-DfnbPBKC.js.map} +1 -1
- package/esm/redux.js +8 -8
- package/esm/routing.js +6 -6
- package/esm/{sagas-b654d1a6.js → sagas-waBQR0Ek.js} +43 -45
- package/esm/{sagas-b654d1a6.js.map → sagas-waBQR0Ek.js.map} +1 -1
- package/esm/search.js +14 -11
- package/esm/search.js.map +1 -1
- package/esm/{selectors-d2bdfe22.js → selectors-BRzliwbK.js} +41 -41
- package/{cjs/selectors-e3f1fd85.js.map → esm/selectors-BRzliwbK.js.map} +1 -1
- package/esm/{store-f524c50d.js → store-Cr0lmZNr.js} +12 -12
- package/esm/{store-f524c50d.js.map → store-Cr0lmZNr.js.map} +1 -1
- package/esm/{urls-eac9a747.js → urls-DfCisos-.js} +1 -1
- package/esm/{urls-eac9a747.js.map → urls-DfCisos-.js.map} +1 -1
- package/esm/user.js +6 -6
- package/esm/user.js.map +1 -1
- package/esm/util.js +10 -8
- package/esm/util.js.map +1 -1
- package/esm/{version-7f50b694.js → version-78jjDnHU.js} +3 -3
- package/esm/{version-7f50b694.js.map → version-78jjDnHU.js.map} +1 -1
- package/esm/{version-dcc28b32.js → version-CB7rIyoF.js} +6 -6
- package/esm/{version-dcc28b32.js.map → version-CB7rIyoF.js.map} +1 -1
- package/models/models/ContentTypeMapping.d.ts +60 -0
- package/models/models/StaticRoute.d.ts +29 -0
- package/models/models/WithEvents.d.ts +29 -0
- package/models/routing/util/queries.d.ts +1 -1
- package/models/user/util/CookieHelper.class.d.ts +2 -1
- package/package.json +23 -34
- package/cjs/App-99dbd33c.js.map +0 -1
- package/cjs/CookieHelper.class-34994aa1.js.map +0 -1
- package/cjs/SSRContext-5360635c.js.map +0 -1
- package/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
- package/esm/App-d7d8f594.js.map +0 -1
- package/esm/CookieHelper.class-6d649751.js.map +0 -1
- package/esm/SSRContext-42cc028d.js.map +0 -1
- package/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
package/esm/forms.js
CHANGED
|
@@ -6,7 +6,7 @@ import React, { createContext, useState, useEffect, useRef } from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { useSelector, useDispatch } from 'react-redux';
|
|
8
8
|
import styled, { ThemeProvider as ThemeProvider$1, css } from 'styled-components';
|
|
9
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
9
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
10
10
|
|
|
11
11
|
const ACTION_PREFIX = '@FORM2/';
|
|
12
12
|
const SET_FORM_DATA = `${ACTION_PREFIX}SET_FORM_DATA`;
|
|
@@ -257,70 +257,70 @@ const selectForms = state => state.forms;
|
|
|
257
257
|
const makeSelectPagedFields = formId => createSelector(selectForms, forms => {
|
|
258
258
|
if (forms !== null && forms !== void 0 && forms[formId]) {
|
|
259
259
|
var _forms$formId, _forms$formId2;
|
|
260
|
-
const pagingInfo = forms === null || forms === void 0
|
|
261
|
-
const fields = forms === null || forms === void 0
|
|
260
|
+
const pagingInfo = forms === null || forms === void 0 || (_forms$formId = forms[formId]) === null || _forms$formId === void 0 ? void 0 : _forms$formId.pagingInfo;
|
|
261
|
+
const fields = forms === null || forms === void 0 || (_forms$formId2 = forms[formId]) === null || _forms$formId2 === void 0 ? void 0 : _forms$formId2.fields;
|
|
262
262
|
if ((fields === null || fields === void 0 ? void 0 : fields.length) > 0 && pagingInfo.pageCount > 1) return fields.filter(f => f.groupId == pagingInfo.currentPageId);else return fields;
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
const makeSelectFormStatus = formId => createSelector(selectForms, forms => {
|
|
266
266
|
var _forms$formId3;
|
|
267
|
-
return forms === null || forms === void 0
|
|
267
|
+
return forms === null || forms === void 0 || (_forms$formId3 = forms[formId]) === null || _forms$formId3 === void 0 ? void 0 : _forms$formId3.status;
|
|
268
268
|
});
|
|
269
269
|
const makeSelectPagingInfo = formId => createSelector(selectForms, forms => {
|
|
270
270
|
var _forms$formId4;
|
|
271
|
-
return forms === null || forms === void 0
|
|
271
|
+
return forms === null || forms === void 0 || (_forms$formId4 = forms[formId]) === null || _forms$formId4 === void 0 ? void 0 : _forms$formId4.pagingInfo;
|
|
272
272
|
});
|
|
273
273
|
const makeSelectFormSettings = formId => createSelector(selectForms, forms => {
|
|
274
274
|
var _forms$formId5;
|
|
275
|
-
return forms === null || forms === void 0
|
|
275
|
+
return forms === null || forms === void 0 || (_forms$formId5 = forms[formId]) === null || _forms$formId5 === void 0 ? void 0 : _forms$formId5.settings;
|
|
276
276
|
});
|
|
277
277
|
const makeSelectFormFieldErrors = formId => createSelector(selectForms, forms => {
|
|
278
278
|
var _forms$formId6;
|
|
279
|
-
return forms === null || forms === void 0
|
|
279
|
+
return forms === null || forms === void 0 || (_forms$formId6 = forms[formId]) === null || _forms$formId6 === void 0 ? void 0 : _forms$formId6.fieldErrors;
|
|
280
280
|
});
|
|
281
281
|
const makeSelectFormEntries = formId => createSelector(selectForms, forms => {
|
|
282
282
|
var _forms$formId7;
|
|
283
|
-
return forms === null || forms === void 0
|
|
283
|
+
return forms === null || forms === void 0 || (_forms$formId7 = forms[formId]) === null || _forms$formId7 === void 0 ? void 0 : _forms$formId7.entries;
|
|
284
284
|
});
|
|
285
285
|
const makeSelectFormPostData = formId => createSelector(selectForms, forms => {
|
|
286
286
|
var _forms$formId8;
|
|
287
|
-
return forms === null || forms === void 0
|
|
287
|
+
return forms === null || forms === void 0 || (_forms$formId8 = forms[formId]) === null || _forms$formId8 === void 0 ? void 0 : _forms$formId8.data;
|
|
288
288
|
});
|
|
289
289
|
const makeSelectIsLoading = formId => createSelector(selectForms, forms => {
|
|
290
290
|
var _forms$formId9;
|
|
291
|
-
return forms === null || forms === void 0
|
|
291
|
+
return forms === null || forms === void 0 || (_forms$formId9 = forms[formId]) === null || _forms$formId9 === void 0 ? void 0 : _forms$formId9.status.isLoading;
|
|
292
292
|
});
|
|
293
293
|
const makeSelectIsSubmitting = formId => createSelector(selectForms, forms => {
|
|
294
294
|
var _forms$formId10;
|
|
295
|
-
return forms === null || forms === void 0
|
|
295
|
+
return forms === null || forms === void 0 || (_forms$formId10 = forms[formId]) === null || _forms$formId10 === void 0 ? void 0 : _forms$formId10.status.isSubmitting;
|
|
296
296
|
});
|
|
297
297
|
const makeSelectHasSuccess = formId => createSelector(selectForms, forms => {
|
|
298
298
|
var _forms$formId11;
|
|
299
|
-
return forms === null || forms === void 0
|
|
299
|
+
return forms === null || forms === void 0 || (_forms$formId11 = forms[formId]) === null || _forms$formId11 === void 0 ? void 0 : _forms$formId11.status.hasSuccess;
|
|
300
300
|
});
|
|
301
301
|
const makeSelectHasError = formId => createSelector(selectForms, forms => {
|
|
302
302
|
var _forms$formId12;
|
|
303
|
-
return forms === null || forms === void 0
|
|
303
|
+
return forms === null || forms === void 0 || (_forms$formId12 = forms[formId]) === null || _forms$formId12 === void 0 ? void 0 : _forms$formId12.status.hasError;
|
|
304
304
|
});
|
|
305
305
|
const makeSelectFormFields = formId => createSelector(selectForms, forms => {
|
|
306
306
|
var _forms$formId13;
|
|
307
|
-
return forms === null || forms === void 0
|
|
307
|
+
return forms === null || forms === void 0 || (_forms$formId13 = forms[formId]) === null || _forms$formId13 === void 0 ? void 0 : _forms$formId13.fields;
|
|
308
308
|
});
|
|
309
309
|
const makeSelectDefaultLang = formId => createSelector(selectForms, forms => {
|
|
310
310
|
var _forms$formId14;
|
|
311
|
-
return forms === null || forms === void 0
|
|
311
|
+
return forms === null || forms === void 0 || (_forms$formId14 = forms[formId]) === null || _forms$formId14 === void 0 ? void 0 : _forms$formId14.defaultLanguage;
|
|
312
312
|
});
|
|
313
313
|
const makeSelectFormSuccessMessage = formId => createSelector(selectForms, forms => {
|
|
314
314
|
var _forms$formId15;
|
|
315
|
-
return forms === null || forms === void 0
|
|
315
|
+
return forms === null || forms === void 0 || (_forms$formId15 = forms[formId]) === null || _forms$formId15 === void 0 ? void 0 : _forms$formId15.status.messages.success;
|
|
316
316
|
});
|
|
317
317
|
const makeSelectFormValidationSent = formId => createSelector(selectForms, forms => {
|
|
318
318
|
var _forms$formId16;
|
|
319
|
-
return forms === null || forms === void 0
|
|
319
|
+
return forms === null || forms === void 0 || (_forms$formId16 = forms[formId]) === null || _forms$formId16 === void 0 ? void 0 : _forms$formId16.status.validation.sent;
|
|
320
320
|
});
|
|
321
321
|
const makeSelectFormGroup = formId => createSelector(selectForms, forms => {
|
|
322
322
|
var _forms$formId17;
|
|
323
|
-
return forms === null || forms === void 0
|
|
323
|
+
return forms === null || forms === void 0 || (_forms$formId17 = forms[formId]) === null || _forms$formId17 === void 0 ? void 0 : _forms$formId17.groups;
|
|
324
324
|
});
|
|
325
325
|
const selectors = {
|
|
326
326
|
selectForms,
|
|
@@ -399,17 +399,17 @@ const doA11yValidation = (v, field, formValidationSent) => {
|
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
const doValidateField = (field, value) => {
|
|
402
|
-
var _field$validations
|
|
402
|
+
var _field$validations;
|
|
403
403
|
const isRequired = field.validations && field.validations.required;
|
|
404
404
|
const minLength = field.validations && field.validations.minLength;
|
|
405
405
|
const maxLength = field.validations && field.validations.maxLength;
|
|
406
|
-
const hasRegex = field !== null && field !== void 0 && (_field$validations = field.validations) !== null && _field$validations !== void 0 && (_field$validations
|
|
406
|
+
const hasRegex = field !== null && field !== void 0 && (_field$validations = field.validations) !== null && _field$validations !== void 0 && (_field$validations = _field$validations.regex) !== null && _field$validations !== void 0 && _field$validations.pattern ? true : false;
|
|
407
407
|
const integer = field.dataType === 'integer';
|
|
408
408
|
const decimal = field.dataType === 'decimal';
|
|
409
409
|
const isBusinessEmail = field.id === 'businessEmail';
|
|
410
410
|
if (isRequired && (value === null || value === void 0 ? void 0 : value.length) <= 0) {
|
|
411
411
|
var _isRequired$message, _field$name;
|
|
412
|
-
const errorMessage = (isRequired === null || isRequired === void 0
|
|
412
|
+
const errorMessage = (isRequired === null || isRequired === void 0 || (_isRequired$message = isRequired.message) === null || _isRequired$message === void 0 ? void 0 : _isRequired$message['en-GB']) || `${(_field$name = field.name) === null || _field$name === void 0 ? void 0 : _field$name['en-GB']} is required`;
|
|
413
413
|
return {
|
|
414
414
|
fieldId: field.id,
|
|
415
415
|
groupId: field.groupId,
|
|
@@ -436,7 +436,7 @@ const doValidateField = (field, value) => {
|
|
|
436
436
|
if (hasRegex && value.length >= 1) {
|
|
437
437
|
var _r$message;
|
|
438
438
|
const r = field.validations.regex;
|
|
439
|
-
const msg = (r === null || r === void 0
|
|
439
|
+
const msg = (r === null || r === void 0 || (_r$message = r.message) === null || _r$message === void 0 ? void 0 : _r$message['en-GB']) || `${field.name['en-GB']} is invalid`;
|
|
440
440
|
if (isValidRegex(field, value) && isBusinessEmail) {
|
|
441
441
|
if (!isBusinessEmailValid(field, value)) {
|
|
442
442
|
return {
|
|
@@ -477,8 +477,8 @@ const doValidateField = (field, value) => {
|
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
479
|
const isValidRegex = (field, value) => {
|
|
480
|
-
var _field$validations2
|
|
481
|
-
const regexPattern = field === null || field === void 0
|
|
480
|
+
var _field$validations2;
|
|
481
|
+
const regexPattern = field === null || field === void 0 || (_field$validations2 = field.validations) === null || _field$validations2 === void 0 || (_field$validations2 = _field$validations2.regex) === null || _field$validations2 === void 0 ? void 0 : _field$validations2.pattern;
|
|
482
482
|
if (!regexPattern || regexPattern === '') return false;
|
|
483
483
|
try {
|
|
484
484
|
// Create RegExp object from string pattern
|
|
@@ -567,7 +567,6 @@ const getFieldType = field => {
|
|
|
567
567
|
if (id === 'country') return 'country';
|
|
568
568
|
return 'textfield'; // Default string type
|
|
569
569
|
}
|
|
570
|
-
|
|
571
570
|
if (dataType === 'stringArray' || dataType === 'boolean') return 'checkbox';
|
|
572
571
|
if (dataType === 'integer') return 'number';
|
|
573
572
|
if (dataType === 'dateTime') return 'date';
|
|
@@ -695,10 +694,10 @@ function* doFetchForm(action) {
|
|
|
695
694
|
var _schema$groups;
|
|
696
695
|
const formId = action.formId;
|
|
697
696
|
const schema = yield getFormSchema(formId);
|
|
698
|
-
const groups = schema === null || schema === void 0
|
|
697
|
+
const groups = schema === null || schema === void 0 || (_schema$groups = schema.groups) === null || _schema$groups === void 0 ? void 0 : _schema$groups.filter(group => group.id !== 'private' && group.id !== 'settings');
|
|
699
698
|
if (formId && schema) {
|
|
700
699
|
var _schema$groups2, _submitButtonText$def;
|
|
701
|
-
if ((schema === null || schema === void 0
|
|
700
|
+
if ((schema === null || schema === void 0 || (_schema$groups2 = schema.groups) === null || _schema$groups2 === void 0 ? void 0 : _schema$groups2.length) > 0) {
|
|
702
701
|
yield put({
|
|
703
702
|
type: SET_CURRENT_PAGE,
|
|
704
703
|
formId: formId,
|
|
@@ -721,7 +720,7 @@ function* doFetchForm(action) {
|
|
|
721
720
|
groups: groups,
|
|
722
721
|
defaultLanguage: schema.defaultLanguage,
|
|
723
722
|
settings: {
|
|
724
|
-
submitButtonText: submitButtonText === null || submitButtonText === void 0
|
|
723
|
+
submitButtonText: submitButtonText === null || submitButtonText === void 0 || (_submitButtonText$def = submitButtonText.default) === null || _submitButtonText$def === void 0 ? void 0 : _submitButtonText$def['en-GB']
|
|
725
724
|
}
|
|
726
725
|
});
|
|
727
726
|
}
|
|
@@ -1060,10 +1059,8 @@ const doParse = markdown => {
|
|
|
1060
1059
|
} else if (inList) {
|
|
1061
1060
|
ELEMENTS.push('</ul>'); // Close the outermost list
|
|
1062
1061
|
}
|
|
1063
|
-
|
|
1064
1062
|
return ELEMENTS.join(''); // Join all elements into a single string
|
|
1065
1063
|
};
|
|
1066
|
-
|
|
1067
1064
|
const MarkdownRenderer = ({
|
|
1068
1065
|
className,
|
|
1069
1066
|
markdown
|
|
@@ -1843,2223 +1840,2224 @@ EntryPicker.propTypes = {
|
|
|
1843
1840
|
var dist = {exports: {}};
|
|
1844
1841
|
|
|
1845
1842
|
(function (module, exports) {
|
|
1846
|
-
!function (t, e) {
|
|
1847
|
-
|
|
1848
|
-
}("undefined" != typeof self ? self : commonjsGlobal, function () {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1843
|
+
!function (t, e) {
|
|
1844
|
+
module.exports = e() ;
|
|
1845
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function () {
|
|
1846
|
+
return function (t) {
|
|
1847
|
+
var e = {};
|
|
1848
|
+
function n(r) {
|
|
1849
|
+
if (e[r]) return e[r].exports;
|
|
1850
|
+
var i = e[r] = {
|
|
1851
|
+
i: r,
|
|
1852
|
+
l: !1,
|
|
1853
|
+
exports: {}
|
|
1854
|
+
};
|
|
1855
|
+
return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
|
|
1856
|
+
}
|
|
1857
|
+
return n.m = t, n.c = e, n.d = function (t, e, r) {
|
|
1858
|
+
n.o(t, e) || Object.defineProperty(t, e, {
|
|
1859
|
+
configurable: !1,
|
|
1860
|
+
enumerable: !0,
|
|
1861
|
+
get: r
|
|
1862
|
+
});
|
|
1863
|
+
}, n.n = function (t) {
|
|
1864
|
+
var e = t && t.__esModule ? function () {
|
|
1865
|
+
return t.default;
|
|
1866
|
+
} : function () {
|
|
1867
|
+
return t;
|
|
1868
|
+
};
|
|
1869
|
+
return n.d(e, "a", e), e;
|
|
1870
|
+
}, n.o = function (t, e) {
|
|
1871
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
1872
|
+
}, n.p = "", n(n.s = 2);
|
|
1873
|
+
}([function (t, e) {
|
|
1874
|
+
var n;
|
|
1875
|
+
n = function () {
|
|
1876
|
+
return this;
|
|
1877
|
+
}();
|
|
1878
|
+
try {
|
|
1879
|
+
n = n || Function("return this")() || (0, eval)("this");
|
|
1880
|
+
} catch (t) {
|
|
1881
|
+
"object" == typeof window && (n = window);
|
|
1882
|
+
}
|
|
1883
|
+
t.exports = n;
|
|
1884
|
+
}, function (t, e, n) {
|
|
1888
1885
|
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1886
|
+
t.exports = u;
|
|
1887
|
+
var r = n(3),
|
|
1888
|
+
i = n(4),
|
|
1889
|
+
o = Array.prototype;
|
|
1890
|
+
function u(t) {
|
|
1891
|
+
if (!(this instanceof u)) return new u(t);
|
|
1892
|
+
var e,
|
|
1893
|
+
n = i(t.className).split(/\s+/);
|
|
1894
|
+
for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
|
|
1895
|
+
}
|
|
1896
|
+
u.prototype.add = function () {
|
|
1897
|
+
var t, e;
|
|
1898
|
+
for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
|
|
1899
|
+
return this._elem.className = this.toString(), this;
|
|
1900
|
+
}, u.prototype.remove = function () {
|
|
1901
|
+
var t, e, n;
|
|
1902
|
+
for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
|
|
1903
|
+
return this._elem.className = this.toString(), this;
|
|
1904
|
+
}, u.prototype.contains = function (t) {
|
|
1905
|
+
return r(this, t += "") >= 0;
|
|
1906
|
+
}, u.prototype.toggle = function (t, e) {
|
|
1907
|
+
return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
|
|
1908
|
+
}, u.prototype.toString = function () {
|
|
1909
|
+
return o.join.call(this, " ");
|
|
1910
|
+
};
|
|
1911
|
+
}, function (t, e, n) {
|
|
1915
1912
|
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
1913
|
+
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
|
|
1914
|
+
return typeof t;
|
|
1915
|
+
} : function (t) {
|
|
1916
|
+
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1917
|
+
},
|
|
1918
|
+
i = function () {
|
|
1919
|
+
function t(t, e) {
|
|
1920
|
+
for (var n = 0; n < e.length; n++) {
|
|
1921
|
+
var r = e[n];
|
|
1922
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
return function (e, n, r) {
|
|
1926
|
+
return n && t(e.prototype, n), r && t(e, r), e;
|
|
1927
|
+
};
|
|
1928
|
+
}(),
|
|
1929
|
+
o = E(n(1)),
|
|
1930
|
+
u = E(n(5)),
|
|
1931
|
+
s = E(n(6)),
|
|
1932
|
+
a = E(n(7)),
|
|
1933
|
+
c = E(n(8)),
|
|
1934
|
+
f = E(n(9)),
|
|
1935
|
+
l = E(n(10)),
|
|
1936
|
+
h = E(n(12)),
|
|
1937
|
+
p = E(n(14)),
|
|
1938
|
+
d = E(n(15)),
|
|
1939
|
+
g = E(n(17)),
|
|
1940
|
+
y = E(n(18)),
|
|
1941
|
+
v = E(n(19)),
|
|
1942
|
+
m = E(n(31)),
|
|
1943
|
+
b = E(n(32)),
|
|
1944
|
+
w = E(n(35));
|
|
1945
|
+
function E(t) {
|
|
1946
|
+
return t && t.__esModule ? t : {
|
|
1947
|
+
default: t
|
|
1948
|
+
};
|
|
1949
|
+
}
|
|
1950
|
+
t.exports = function () {
|
|
1951
|
+
function t(e) {
|
|
1952
|
+
var n = this;
|
|
1953
|
+
if (function (t, e) {
|
|
1954
|
+
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
1955
|
+
}(this, t), e = e || {}, this.config = (0, b.default)(e), this.input = (0, d.default)(this.config.input), this.list = (0, d.default)(this.config.list), this.cachedOpts = this.currentOpts = (0, d.default)(this.config.options, !0, this.list), this.isOpen = !1, this.currentOption = null, this.selected = [], this.groups = [], this.isHovering = !1, this.autoFilter = this.config.autoFilter, this.optionsWithEventHandlers = new Set(), this.optionsWithKeyEventHandlers = new Set(), this.config.groups) {
|
|
1956
|
+
var r = (0, d.default)(this.config.groups, !0, this.list);
|
|
1957
|
+
this.groups = r.map(function (t) {
|
|
1958
|
+
return {
|
|
1959
|
+
element: t,
|
|
1960
|
+
options: n.cachedOpts.filter(function (e) {
|
|
1961
|
+
return t.contains(e);
|
|
1962
|
+
})
|
|
1963
|
+
};
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
|
|
1967
|
+
(0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
|
|
1968
|
+
ariaLive: "assertive"
|
|
1969
|
+
})), this.initEvents();
|
|
1970
|
+
}
|
|
1971
|
+
return i(t, [{
|
|
1972
|
+
key: "initEvents",
|
|
1973
|
+
value: function () {
|
|
1974
|
+
var t = this;
|
|
1975
|
+
(0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
|
|
1976
|
+
t.openList().goTo(t.getOptIndex() || 0);
|
|
1977
|
+
}), this.input.addEventListener("blur", function () {
|
|
1978
|
+
t.isHovering || t.closeList();
|
|
1979
|
+
}), this.input.addEventListener("focus", function () {
|
|
1980
|
+
t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
|
|
1981
|
+
}), document.addEventListener("click", function (e) {
|
|
1982
|
+
!(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
|
|
1983
|
+
})), this.optionEvents(), this.initKeys();
|
|
1984
|
+
}
|
|
1985
|
+
}, {
|
|
1986
|
+
key: "getOptIndex",
|
|
1987
|
+
value: function () {
|
|
1988
|
+
return this.currentOption && this.currentOpts.indexOf(this.currentOption);
|
|
1989
|
+
}
|
|
1990
|
+
}, {
|
|
1991
|
+
key: "optionEvents",
|
|
1992
|
+
value: function () {
|
|
1993
|
+
var t = this;
|
|
1994
|
+
this.cachedOpts.forEach(function (e) {
|
|
1995
|
+
t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
|
|
1996
|
+
t.goTo(t.currentOpts.indexOf(e)).select();
|
|
1997
|
+
}), e.addEventListener("mouseover", function () {
|
|
1998
|
+
var n = t.currentOption;
|
|
1999
|
+
n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
|
|
2000
|
+
}), e.addEventListener("mouseout", function () {
|
|
2001
|
+
(0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
|
|
2002
|
+
}), t.optionsWithEventHandlers.add(e.id));
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
}, {
|
|
2006
|
+
key: "openList",
|
|
2007
|
+
value: function () {
|
|
2008
|
+
(0, o.default)(this.list).add(this.config.openClass), this.input.setAttribute("aria-expanded", "true"), this.isOpen || this.announceCount(), this.isOpen = !0, this.emit("list:open");
|
|
2009
|
+
var t = (0, f.default)(this.list);
|
|
2010
|
+
if (!t.visible) {
|
|
2011
|
+
var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
|
|
2012
|
+
(0, a.default)({
|
|
2013
|
+
element: this.input,
|
|
2014
|
+
offset: e,
|
|
2015
|
+
bezier: [.19, 1, .22, 1],
|
|
2016
|
+
duration: 100
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
return this;
|
|
2020
|
+
}
|
|
2021
|
+
}, {
|
|
2022
|
+
key: "closeList",
|
|
2023
|
+
value: function (t, e) {
|
|
2024
|
+
return (0, o.default)(this.list).remove(this.config.openClass), this.input.setAttribute("aria-expanded", "false"), this.isOpen = !1, t && this.input.focus(), !this.multiselect && this.selected.length && (this.input.value = this.config.selectionValue(this.selected)), e && this.input.select(), this.emit("list:close"), this;
|
|
2025
|
+
}
|
|
2026
|
+
}, {
|
|
2027
|
+
key: "initKeys",
|
|
2028
|
+
value: function () {
|
|
2029
|
+
var t = this;
|
|
2030
|
+
if (!this.optionsWithKeyEventHandlers.has(this.input)) {
|
|
2031
|
+
this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
|
|
2032
|
+
keys: ["up", "down"],
|
|
2033
|
+
callback: function (e, n) {
|
|
2034
|
+
if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
|
|
2035
|
+
var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
|
|
2036
|
+
t.goTo(r, !0).openList();
|
|
2037
|
+
},
|
|
2038
|
+
preventDefault: !0
|
|
2039
|
+
}, {
|
|
2040
|
+
keys: ["enter"],
|
|
2041
|
+
callback: function (e) {
|
|
2042
|
+
t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
|
|
2043
|
+
}
|
|
2044
|
+
}, {
|
|
2045
|
+
keys: ["escape"],
|
|
2046
|
+
callback: function (e) {
|
|
2047
|
+
t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
|
|
2048
|
+
}
|
|
2049
|
+
}, {
|
|
2050
|
+
keys: ["backspace"],
|
|
2051
|
+
callback: function () {
|
|
2052
|
+
t.selected.length >= 2 && (t.input.value = "");
|
|
2053
|
+
}
|
|
2054
|
+
}]);
|
|
2055
|
+
var e = [9, 13, 27, 16];
|
|
2056
|
+
h.default.up(this.input, function (n) {
|
|
2057
|
+
if (t.autoFilter) {
|
|
2058
|
+
var r = t.config.filter,
|
|
2059
|
+
i = t.cachedInputValue;
|
|
2060
|
+
e.indexOf(n.which) > -1 || !r || (t.freshSelection ? (t.clearFilters(), i && i.trim() !== t.input.value.trim() && (t.filter().openList(), t.freshSelection = !1)) : t.filter().openList(), (0, y.default)(t.list, t.currentOpts, t.config.noResultsText));
|
|
2061
|
+
}
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}, {
|
|
2066
|
+
key: "clearFilters",
|
|
2067
|
+
value: function () {
|
|
2068
|
+
return this.cachedOpts.forEach(function (t) {
|
|
2069
|
+
return t.style.display = "";
|
|
2070
|
+
}), this.groups.forEach(function (t) {
|
|
2071
|
+
return t.element.style.display = "";
|
|
2072
|
+
}), this.currentOpts = this.cachedOpts, this;
|
|
2073
|
+
}
|
|
2074
|
+
}, {
|
|
2075
|
+
key: "filter",
|
|
2076
|
+
value: function (t) {
|
|
2077
|
+
var e = this,
|
|
2078
|
+
n = this.config.filter,
|
|
2079
|
+
r = this.currentOpts;
|
|
2080
|
+
return this.currentOpts = "function" == typeof n ? n(this.input.value.trim(), this.cachedOpts) : l.default[n](this.input.value.trim(), this.cachedOpts), this.currentOpts = this.currentOpts || [], this.updateOpts(), r.every(function (t) {
|
|
2081
|
+
return e.currentOpts.indexOf(t) > -1;
|
|
2082
|
+
}) || t || this.announceCount(), this;
|
|
2083
|
+
}
|
|
2084
|
+
}, {
|
|
2085
|
+
key: "announceCount",
|
|
2086
|
+
value: function () {
|
|
2087
|
+
var t = this.config.announcement && this.config.announcement.count;
|
|
2088
|
+
return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
|
|
2089
|
+
}
|
|
2090
|
+
}, {
|
|
2091
|
+
key: "updateOpts",
|
|
2092
|
+
value: function () {
|
|
2093
|
+
var t = this,
|
|
2094
|
+
e = this.config.optionValue;
|
|
2095
|
+
return this.cachedOpts.forEach(function (n) {
|
|
2096
|
+
n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
|
|
2097
|
+
}), this.updateGroups(), this;
|
|
2098
|
+
}
|
|
2099
|
+
}, {
|
|
2100
|
+
key: "updateGroups",
|
|
2101
|
+
value: function () {
|
|
2102
|
+
return this.groups.forEach(function (t) {
|
|
2103
|
+
var e = t.options.filter(function (t) {
|
|
2104
|
+
return "" === t.style.display;
|
|
2105
|
+
});
|
|
2106
|
+
t.element.style.display = e.length ? "" : "none";
|
|
2107
|
+
}), this;
|
|
2108
|
+
}
|
|
2109
|
+
}, {
|
|
2110
|
+
key: "select",
|
|
2111
|
+
value: function () {
|
|
2112
|
+
var t = this,
|
|
2113
|
+
e = this.currentOption;
|
|
2114
|
+
if (e) {
|
|
2115
|
+
!this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
|
|
2116
|
+
var n = this.selected.indexOf(e),
|
|
2117
|
+
r = n > -1;
|
|
2118
|
+
return this.config.multiselect ? r ? this.selected.splice(n, 1) : this.selected.push(e) : this.selected = this.config.allowEmpty && r ? [] : [e], this.cachedOpts.forEach(function (e) {
|
|
2119
|
+
e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
|
|
2120
|
+
}), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
|
|
2121
|
+
text: this.input.value,
|
|
2122
|
+
option: e
|
|
2123
|
+
})) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
|
|
2124
|
+
text: this.input.value,
|
|
2125
|
+
option: e
|
|
2126
|
+
})), this.freshSelection = !0, this.input.value = this.selected.length ? this.config.selectionValue(this.selected) : "", this.cachedInputValue = this.input.value, this.filter(!0).clearFilters(), this.config.multiselect || (this.closeList(), this.input.select()), this;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
}, {
|
|
2130
|
+
key: "reset",
|
|
2131
|
+
value: function () {
|
|
2132
|
+
var t = this;
|
|
2133
|
+
return this.clearFilters(), this.input.value = "", this.updateOpts(), this.input.removeAttribute("aria-activedescendant"), this.input.removeAttribute("data-active-option"), this.currentOption = null, this.selected = [], this.cachedOpts.forEach(function (e) {
|
|
2134
|
+
(0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
|
|
2135
|
+
}), this;
|
|
2136
|
+
}
|
|
2137
|
+
}, {
|
|
2138
|
+
key: "goTo",
|
|
2139
|
+
value: function (t, e) {
|
|
2140
|
+
var n = this;
|
|
2141
|
+
if ("string" == typeof t) {
|
|
2142
|
+
var r = this.getOptIndex();
|
|
2143
|
+
return this.goTo("next" === t ? r + 1 : r - 1, e);
|
|
2144
|
+
}
|
|
2145
|
+
var i = this.currentOpts[t],
|
|
2146
|
+
o = !1;
|
|
2147
|
+
if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
|
|
2148
|
+
if (this.groups.length) {
|
|
2149
|
+
var u = (0, g.default)(this.groups, i);
|
|
2150
|
+
o = u && u !== this.currentGroup, this.currentGroup = u;
|
|
2151
|
+
}
|
|
2152
|
+
return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
|
|
2153
|
+
t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
|
|
2154
|
+
}), this;
|
|
2155
|
+
}
|
|
2156
|
+
}, {
|
|
2157
|
+
key: "pseudoFocus",
|
|
2158
|
+
value: function (t) {
|
|
2159
|
+
var e = this.currentOption,
|
|
2160
|
+
n = this.config.activeClass,
|
|
2161
|
+
r = this.input.getAttribute("data-active-option"),
|
|
2162
|
+
i = r && document.getElementById(r);
|
|
2163
|
+
return i && n && (0, o.default)(i).remove(n), e && (this.input.setAttribute("data-active-option", e.id), n && (0, o.default)(e).add(n), this.liveRegion && (0, w.default)(e, this.config, this.liveRegion.announce.bind(this.liveRegion), t, this.currentGroup && this.currentGroup.element), this.input.setAttribute("aria-activedescendant", e.id), this.currentOption = e, this.emit("change")), this;
|
|
2164
|
+
}
|
|
2165
|
+
}, {
|
|
2166
|
+
key: "setOptions",
|
|
2167
|
+
value: function (t) {
|
|
2168
|
+
return "object" === (void 0 === t ? "undefined" : r(t)) && this.config.list.append(t), this.cachedOpts.push(t), -1 === this.currentOpts.indexOf(t) && this.currentOpts.push(t), this;
|
|
2169
|
+
}
|
|
2170
|
+
}, {
|
|
2171
|
+
key: "setCurrentOptions",
|
|
2172
|
+
value: function () {
|
|
2173
|
+
return this.currentOption = this.currentOpts[0], this;
|
|
2174
|
+
}
|
|
2175
|
+
}, {
|
|
2176
|
+
key: "updateSelectedOptions",
|
|
2177
|
+
value: function () {
|
|
2178
|
+
var t = this,
|
|
2179
|
+
e = document.getElementById(this.config.list.id),
|
|
2180
|
+
n = this.selected;
|
|
2181
|
+
for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
|
|
2182
|
+
return n.length > 0 && n.forEach(function (e) {
|
|
2183
|
+
t.setOptions(e);
|
|
2184
|
+
}), this;
|
|
2185
|
+
}
|
|
2186
|
+
}, {
|
|
2187
|
+
key: "emptyDropdownList",
|
|
2188
|
+
value: function () {
|
|
2189
|
+
return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
|
|
2190
|
+
}
|
|
2191
|
+
}, {
|
|
2192
|
+
key: "setNoResultFound",
|
|
2193
|
+
value: function () {
|
|
2194
|
+
(0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
|
|
2195
|
+
}
|
|
2196
|
+
}]), t;
|
|
2197
|
+
}();
|
|
2198
|
+
}, function (t, e) {
|
|
2199
|
+
t.exports = function (t, e) {
|
|
2200
|
+
if (t.indexOf) return t.indexOf(e);
|
|
2201
|
+
for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
|
|
2202
|
+
return -1;
|
|
2203
|
+
};
|
|
2204
|
+
}, function (t, e) {
|
|
2205
|
+
(e = t.exports = function (t) {
|
|
2206
|
+
return t.replace(/^\s*|\s*$/g, "");
|
|
2207
|
+
}).left = function (t) {
|
|
2208
|
+
return t.replace(/^\s*/, "");
|
|
2209
|
+
}, e.right = function (t) {
|
|
2210
|
+
return t.replace(/\s*$/, "");
|
|
2211
|
+
};
|
|
2212
|
+
}, function (t, e, n) {
|
|
2213
|
+
function r(t) {
|
|
2214
|
+
if (t) return function (t) {
|
|
2215
|
+
for (var e in r.prototype) t[e] = r.prototype[e];
|
|
2216
|
+
return t;
|
|
2217
|
+
}(t);
|
|
2218
|
+
}
|
|
2219
|
+
t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
|
|
2220
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
|
|
2221
|
+
}, r.prototype.once = function (t, e) {
|
|
2222
|
+
function n() {
|
|
2223
|
+
this.off(t, n), e.apply(this, arguments);
|
|
2224
|
+
}
|
|
2225
|
+
return n.fn = e, this.on(t, n), this;
|
|
2226
|
+
}, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
|
|
2227
|
+
if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
|
|
2228
|
+
var n,
|
|
2229
|
+
r = this._callbacks["$" + t];
|
|
2230
|
+
if (!r) return this;
|
|
2231
|
+
if (1 == arguments.length) return delete this._callbacks["$" + t], this;
|
|
2232
|
+
for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
|
|
2233
|
+
r.splice(i, 1);
|
|
2234
|
+
break;
|
|
2235
|
+
}
|
|
2236
|
+
return this;
|
|
2237
|
+
}, r.prototype.emit = function (t) {
|
|
2238
|
+
this._callbacks = this._callbacks || {};
|
|
2239
|
+
var e = [].slice.call(arguments, 1),
|
|
2240
|
+
n = this._callbacks["$" + t];
|
|
2241
|
+
if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
|
|
2242
|
+
return this;
|
|
2243
|
+
}, r.prototype.listeners = function (t) {
|
|
2244
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
|
|
2245
|
+
}, r.prototype.hasListeners = function (t) {
|
|
2246
|
+
return !!this.listeners(t).length;
|
|
2247
|
+
};
|
|
2248
|
+
}, function (t, e, n) {
|
|
2252
2249
|
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2250
|
+
function r(t) {
|
|
2251
|
+
this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
|
|
2252
|
+
}
|
|
2253
|
+
r.prototype.configure = function () {
|
|
2254
|
+
var t = this.options,
|
|
2255
|
+
e = this.region;
|
|
2256
|
+
e.setAttribute("aria-live", t.ariaLive || "polite"), e.setAttribute("role", t.role || "log"), e.setAttribute("aria-relevant", t.ariaRelevant || "additions"), e.setAttribute("aria-atomic", t.ariaAtomic || "false"), this.region.style.position = "absolute", this.region.style.width = "1px", this.region.style.height = "1px", this.region.style.marginTop = "-1px", this.region.style.clip = "rect(1px, 1px, 1px, 1px)", this.region.style.overflow = "hidden";
|
|
2257
|
+
}, r.prototype.announce = function (t, e) {
|
|
2258
|
+
var n = document.createElement("div");
|
|
2259
|
+
n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
|
|
2260
|
+
this.region.removeChild(n);
|
|
2261
|
+
}.bind(this), e || 7e3);
|
|
2262
|
+
}, t.exports = r;
|
|
2263
|
+
}, function (t, e, n) {
|
|
2264
|
+
var r;
|
|
2265
|
+
r = function () {
|
|
2266
|
+
return function (t) {
|
|
2267
|
+
function e(r) {
|
|
2268
|
+
if (n[r]) return n[r].exports;
|
|
2269
|
+
var i = n[r] = {
|
|
2270
|
+
i: r,
|
|
2271
|
+
l: !1,
|
|
2272
|
+
exports: {}
|
|
2273
|
+
};
|
|
2274
|
+
return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
|
|
2275
|
+
}
|
|
2276
|
+
var n = {};
|
|
2277
|
+
return e.m = t, e.c = n, e.i = function (t) {
|
|
2278
|
+
return t;
|
|
2279
|
+
}, e.d = function (t, n, r) {
|
|
2280
|
+
e.o(t, n) || Object.defineProperty(t, n, {
|
|
2281
|
+
configurable: !1,
|
|
2282
|
+
enumerable: !0,
|
|
2283
|
+
get: r
|
|
2284
|
+
});
|
|
2285
|
+
}, e.n = function (t) {
|
|
2286
|
+
var n = t && t.__esModule ? function () {
|
|
2287
|
+
return t.default;
|
|
2288
|
+
} : function () {
|
|
2289
|
+
return t;
|
|
2290
|
+
};
|
|
2291
|
+
return e.d(n, "a", n), n;
|
|
2292
|
+
}, e.o = function (t, e) {
|
|
2293
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
2294
|
+
}, e.p = "", e(e.s = 1);
|
|
2295
|
+
}([function (t, e, n) {
|
|
2299
2296
|
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2297
|
+
function r(t) {
|
|
2298
|
+
return t && t.__esModule ? t : {
|
|
2299
|
+
default: t
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
function i() {}
|
|
2303
|
+
Object.defineProperty(e, "__esModule", {
|
|
2304
|
+
value: !0
|
|
2305
|
+
});
|
|
2306
|
+
var o = r(n(4)),
|
|
2307
|
+
u = r(n(7)),
|
|
2308
|
+
s = n(2),
|
|
2309
|
+
a = r(n(3)),
|
|
2310
|
+
c = [.19, 1, .22, 1];
|
|
2311
|
+
e.default = function (t) {
|
|
2312
|
+
var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
|
|
2313
|
+
n = 0,
|
|
2314
|
+
r = void 0,
|
|
2315
|
+
f = void 0;
|
|
2316
|
+
if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
|
|
2317
|
+
if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
|
|
2318
|
+
if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
|
|
2319
|
+
n = (0, s.isNumeric)(t.offset) ? t.offset : 0, r = (0, s.isArray)(t.bezier) && 4 === t.bezier.length ? o.default.apply(void 0, function (t) {
|
|
2320
|
+
if (Array.isArray(t)) {
|
|
2321
|
+
for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
|
|
2322
|
+
return n;
|
|
2323
|
+
}
|
|
2324
|
+
return Array.from(t);
|
|
2325
|
+
}(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
|
|
2326
|
+
}
|
|
2327
|
+
(!(0, s.isNumeric)(e) || e < 0) && (e = 100);
|
|
2328
|
+
var l = (0, a.default)(t),
|
|
2329
|
+
h = l.scrollTop,
|
|
2330
|
+
p = l.offsetTop,
|
|
2331
|
+
d = null,
|
|
2332
|
+
g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
|
|
2333
|
+
(0, u.default)(function t(n) {
|
|
2334
|
+
null === d && (d = n);
|
|
2335
|
+
var i = n - d,
|
|
2336
|
+
o = r(i / e) * g;
|
|
2337
|
+
l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
|
|
2338
|
+
});
|
|
2339
|
+
};
|
|
2340
|
+
}, function (t, e, n) {
|
|
2344
2341
|
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2342
|
+
var r = function (t) {
|
|
2343
|
+
return t && t.__esModule ? t : {
|
|
2344
|
+
default: t
|
|
2345
|
+
};
|
|
2346
|
+
}(n(0));
|
|
2347
|
+
t.exports = r.default;
|
|
2348
|
+
}, function (t, e, n) {
|
|
2352
2349
|
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2350
|
+
function r(t) {
|
|
2351
|
+
return Object.prototype.toString.call(t);
|
|
2352
|
+
}
|
|
2353
|
+
function i(t) {
|
|
2354
|
+
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
2355
|
+
}
|
|
2356
|
+
Object.defineProperty(e, "__esModule", {
|
|
2357
|
+
value: !0
|
|
2358
|
+
});
|
|
2359
|
+
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
|
|
2360
|
+
return typeof t;
|
|
2361
|
+
} : function (t) {
|
|
2362
|
+
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2363
|
+
};
|
|
2364
|
+
e.isObject = function (t) {
|
|
2365
|
+
return "[object Object]" === r(t);
|
|
2366
|
+
}, e.isArray = function (t) {
|
|
2367
|
+
return null != t && "[object Array]" === r(t);
|
|
2368
|
+
}, e.isNumeric = i, e.isPositive = function (t) {
|
|
2369
|
+
return i(t) && t >= 0;
|
|
2370
|
+
}, e.isFunction = function (t) {
|
|
2371
|
+
return null != t && "[object Function]" === r(t);
|
|
2372
|
+
}, e.isElement = function (t) {
|
|
2373
|
+
return "object" === o(window.HTMLElement) ? t instanceof window.HTMLElement : !!t && "object" === (void 0 === t ? "undefined" : o(t)) && null !== t && 1 === t.nodeType && "string" == typeof t.nodeName;
|
|
2374
|
+
};
|
|
2375
|
+
}, function (t, e, n) {
|
|
2379
2376
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2377
|
+
function r(t, e) {
|
|
2378
|
+
return window.getComputedStyle(t, null).getPropertyValue(e);
|
|
2379
|
+
}
|
|
2380
|
+
function i(t) {
|
|
2381
|
+
if (1 === t.nodeType) return o.test(function (t) {
|
|
2382
|
+
return r(t, "overflow") + r(t, "overflow-y");
|
|
2383
|
+
}(t)) && t.scrollHeight > t.clientHeight;
|
|
2384
|
+
}
|
|
2385
|
+
Object.defineProperty(e, "__esModule", {
|
|
2386
|
+
value: !0
|
|
2387
|
+
});
|
|
2388
|
+
var o = /(auto|scroll)/;
|
|
2389
|
+
e.default = function (t) {
|
|
2390
|
+
for (var e = function t(e) {
|
|
2391
|
+
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
|
|
2392
|
+
r = e.parentNode;
|
|
2393
|
+
return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
|
|
2394
|
+
}(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
|
|
2395
|
+
n = e[r];
|
|
2396
|
+
break;
|
|
2397
|
+
}
|
|
2398
|
+
return n;
|
|
2399
|
+
};
|
|
2400
|
+
}, function (t, e) {
|
|
2401
|
+
function n(t, e) {
|
|
2402
|
+
return 1 - 3 * e + 3 * t;
|
|
2403
|
+
}
|
|
2404
|
+
function r(t, e) {
|
|
2405
|
+
return 3 * e - 6 * t;
|
|
2406
|
+
}
|
|
2407
|
+
function i(t) {
|
|
2408
|
+
return 3 * t;
|
|
2409
|
+
}
|
|
2410
|
+
function o(t, e, o) {
|
|
2411
|
+
return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
|
|
2412
|
+
}
|
|
2413
|
+
function u(t, e, o) {
|
|
2414
|
+
return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
|
|
2415
|
+
}
|
|
2416
|
+
function s(t, e, n, r, i) {
|
|
2417
|
+
var u,
|
|
2418
|
+
s,
|
|
2419
|
+
a = 0;
|
|
2420
|
+
do {
|
|
2421
|
+
(u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
|
|
2422
|
+
} while (Math.abs(u) > f && ++a < l);
|
|
2423
|
+
return s;
|
|
2424
|
+
}
|
|
2425
|
+
function a(t, e, n, r) {
|
|
2426
|
+
for (var i = 0; i < c; ++i) {
|
|
2427
|
+
var s = u(e, n, r);
|
|
2428
|
+
if (0 === s) return e;
|
|
2429
|
+
e -= (o(e, n, r) - t) / s;
|
|
2430
|
+
}
|
|
2431
|
+
return e;
|
|
2432
|
+
}
|
|
2433
|
+
var c = 4,
|
|
2434
|
+
f = 1e-7,
|
|
2435
|
+
l = 10,
|
|
2436
|
+
h = 11,
|
|
2437
|
+
p = 1 / (h - 1),
|
|
2438
|
+
d = "function" == typeof Float32Array;
|
|
2439
|
+
t.exports = function (t, e, n, r) {
|
|
2440
|
+
function i(e) {
|
|
2441
|
+
for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
|
|
2442
|
+
var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
|
|
2443
|
+
l = u(f, t, n);
|
|
2444
|
+
return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
|
|
2445
|
+
}
|
|
2446
|
+
if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
|
|
2447
|
+
var c = d ? new Float32Array(h) : new Array(h);
|
|
2448
|
+
if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
|
|
2449
|
+
return function (u) {
|
|
2450
|
+
return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
|
|
2451
|
+
};
|
|
2452
|
+
};
|
|
2453
|
+
}, function (t, e, n) {
|
|
2454
|
+
(function (e) {
|
|
2455
|
+
(function () {
|
|
2456
|
+
var n, r, i, o, u, s;
|
|
2457
|
+
"undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
|
|
2458
|
+
return performance.now();
|
|
2459
|
+
} : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
|
|
2460
|
+
return (n() - u) / 1e6;
|
|
2461
|
+
}, r = e.hrtime, o = (n = function () {
|
|
2462
|
+
var t;
|
|
2463
|
+
return 1e9 * (t = r())[0] + t[1];
|
|
2464
|
+
})(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
|
|
2465
|
+
return Date.now() - i;
|
|
2466
|
+
}, i = Date.now()) : (t.exports = function () {
|
|
2467
|
+
return new Date().getTime() - i;
|
|
2468
|
+
}, i = new Date().getTime());
|
|
2469
|
+
}).call(this);
|
|
2470
|
+
}).call(e, n(6));
|
|
2471
|
+
}, function (t, e) {
|
|
2472
|
+
function n() {
|
|
2473
|
+
throw new Error("setTimeout has not been defined");
|
|
2474
|
+
}
|
|
2475
|
+
function r() {
|
|
2476
|
+
throw new Error("clearTimeout has not been defined");
|
|
2477
|
+
}
|
|
2478
|
+
function i(t) {
|
|
2479
|
+
if (c === setTimeout) return setTimeout(t, 0);
|
|
2480
|
+
if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
|
|
2481
|
+
try {
|
|
2482
|
+
return c(t, 0);
|
|
2483
|
+
} catch (e) {
|
|
2484
|
+
try {
|
|
2485
|
+
return c.call(null, t, 0);
|
|
2486
|
+
} catch (e) {
|
|
2487
|
+
return c.call(this, t, 0);
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
function o() {
|
|
2492
|
+
d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
|
|
2493
|
+
}
|
|
2494
|
+
function u() {
|
|
2495
|
+
if (!d) {
|
|
2496
|
+
var t = i(o);
|
|
2497
|
+
d = !0;
|
|
2498
|
+
for (var e = p.length; e;) {
|
|
2499
|
+
for (h = p, p = []; ++g < e;) h && h[g].run();
|
|
2500
|
+
g = -1, e = p.length;
|
|
2501
|
+
}
|
|
2502
|
+
h = null, d = !1, function (t) {
|
|
2503
|
+
if (f === clearTimeout) return clearTimeout(t);
|
|
2504
|
+
if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
|
|
2505
|
+
try {
|
|
2506
|
+
f(t);
|
|
2507
|
+
} catch (e) {
|
|
2508
|
+
try {
|
|
2509
|
+
return f.call(null, t);
|
|
2510
|
+
} catch (e) {
|
|
2511
|
+
return f.call(this, t);
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
}(t);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
function s(t, e) {
|
|
2518
|
+
this.fun = t, this.array = e;
|
|
2519
|
+
}
|
|
2520
|
+
function a() {}
|
|
2521
|
+
var c,
|
|
2522
|
+
f,
|
|
2523
|
+
l = t.exports = {};
|
|
2524
|
+
!function () {
|
|
2525
|
+
try {
|
|
2526
|
+
c = "function" == typeof setTimeout ? setTimeout : n;
|
|
2527
|
+
} catch (t) {
|
|
2528
|
+
c = n;
|
|
2529
|
+
}
|
|
2530
|
+
try {
|
|
2531
|
+
f = "function" == typeof clearTimeout ? clearTimeout : r;
|
|
2532
|
+
} catch (t) {
|
|
2533
|
+
f = r;
|
|
2534
|
+
}
|
|
2535
|
+
}();
|
|
2536
|
+
var h,
|
|
2537
|
+
p = [],
|
|
2538
|
+
d = !1,
|
|
2539
|
+
g = -1;
|
|
2540
|
+
l.nextTick = function (t) {
|
|
2541
|
+
var e = new Array(arguments.length - 1);
|
|
2542
|
+
if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
2543
|
+
p.push(new s(t, e)), 1 !== p.length || d || i(u);
|
|
2544
|
+
}, s.prototype.run = function () {
|
|
2545
|
+
this.fun.apply(null, this.array);
|
|
2546
|
+
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {}, l.on = a, l.addListener = a, l.once = a, l.off = a, l.removeListener = a, l.removeAllListeners = a, l.emit = a, l.binding = function (t) {
|
|
2547
|
+
throw new Error("process.binding is not supported");
|
|
2548
|
+
}, l.cwd = function () {
|
|
2549
|
+
return "/";
|
|
2550
|
+
}, l.chdir = function (t) {
|
|
2551
|
+
throw new Error("process.chdir is not supported");
|
|
2552
|
+
}, l.umask = function () {
|
|
2553
|
+
return 0;
|
|
2554
|
+
};
|
|
2555
|
+
}, function (t, e, n) {
|
|
2556
|
+
(function (e) {
|
|
2557
|
+
for (var r = n(5), i = "undefined" == typeof window ? e : window, o = ["moz", "webkit"], u = "AnimationFrame", s = i["request" + u], a = i["cancel" + u] || i["cancelRequest" + u], c = 0; !s && c < o.length; c++) s = i[o[c] + "Request" + u], a = i[o[c] + "Cancel" + u] || i[o[c] + "CancelRequest" + u];
|
|
2558
|
+
if (!s || !a) {
|
|
2559
|
+
var f = 0,
|
|
2560
|
+
l = 0,
|
|
2561
|
+
h = [];
|
|
2562
|
+
s = function (t) {
|
|
2563
|
+
if (0 === h.length) {
|
|
2564
|
+
var e = r(),
|
|
2565
|
+
n = Math.max(0, 1e3 / 60 - (e - f));
|
|
2566
|
+
f = n + e, setTimeout(function () {
|
|
2567
|
+
var t = h.slice(0);
|
|
2568
|
+
h.length = 0;
|
|
2569
|
+
for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
|
|
2570
|
+
t[e].callback(f);
|
|
2571
|
+
} catch (t) {
|
|
2572
|
+
setTimeout(function () {
|
|
2573
|
+
throw t;
|
|
2574
|
+
}, 0);
|
|
2575
|
+
}
|
|
2576
|
+
}, Math.round(n));
|
|
2577
|
+
}
|
|
2578
|
+
return h.push({
|
|
2579
|
+
handle: ++l,
|
|
2580
|
+
callback: t,
|
|
2581
|
+
cancelled: !1
|
|
2582
|
+
}), l;
|
|
2583
|
+
}, a = function (t) {
|
|
2584
|
+
for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
|
|
2585
|
+
};
|
|
2586
|
+
}
|
|
2587
|
+
t.exports = function (t) {
|
|
2588
|
+
return s.call(i, t);
|
|
2589
|
+
}, t.exports.cancel = function () {
|
|
2590
|
+
a.apply(i, arguments);
|
|
2591
|
+
}, t.exports.polyfill = function () {
|
|
2592
|
+
i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
|
|
2593
|
+
};
|
|
2594
|
+
}).call(e, n(8));
|
|
2595
|
+
}, function (t, e) {
|
|
2596
|
+
var n;
|
|
2597
|
+
n = function () {
|
|
2598
|
+
return this;
|
|
2599
|
+
}();
|
|
2600
|
+
try {
|
|
2601
|
+
n = n || Function("return this")() || (0, eval)("this");
|
|
2602
|
+
} catch (t) {
|
|
2603
|
+
"object" == typeof window && (n = window);
|
|
2604
|
+
}
|
|
2605
|
+
t.exports = n;
|
|
2606
|
+
}]);
|
|
2607
|
+
}, t.exports = r();
|
|
2608
|
+
}, function (t, e, n) {
|
|
2612
2609
|
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2610
|
+
t.exports = function (t, e) {
|
|
2611
|
+
var n = t.clientHeight,
|
|
2612
|
+
r = e.clientHeight,
|
|
2613
|
+
i = t.scrollTop,
|
|
2614
|
+
o = e.offsetTop;
|
|
2615
|
+
return !(i > o) && !(i + n - r < o);
|
|
2616
|
+
};
|
|
2617
|
+
}, function (t, e, n) {
|
|
2621
2618
|
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2619
|
+
t.exports = function (t) {
|
|
2620
|
+
var e = window.innerHeight,
|
|
2621
|
+
n = t.getBoundingClientRect(),
|
|
2622
|
+
r = n.top < 0,
|
|
2623
|
+
i = n.bottom > e,
|
|
2624
|
+
o = !r && !i,
|
|
2625
|
+
u = {
|
|
2626
|
+
visible: o
|
|
2627
|
+
};
|
|
2628
|
+
return o || (u.position = r ? "top" : "bottom"), u;
|
|
2629
|
+
};
|
|
2630
|
+
}, function (t, e, n) {
|
|
2634
2631
|
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2632
|
+
var r,
|
|
2633
|
+
i = n(11),
|
|
2634
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2635
|
+
default: r
|
|
2636
|
+
};
|
|
2637
|
+
t.exports = {
|
|
2638
|
+
contains: function (t, e) {
|
|
2639
|
+
return e.filter(function (e) {
|
|
2640
|
+
return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
|
|
2641
|
+
});
|
|
2642
|
+
},
|
|
2643
|
+
equals: function (t, e) {
|
|
2644
|
+
return e.filter(function (e) {
|
|
2645
|
+
return (0, o.default)(e).toLowerCase() === t.toLowerCase();
|
|
2646
|
+
});
|
|
2647
|
+
},
|
|
2648
|
+
"starts-with": function (t, e) {
|
|
2649
|
+
return e.filter(function (e) {
|
|
2650
|
+
return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
};
|
|
2654
|
+
}, function (t, e, n) {
|
|
2658
2655
|
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2656
|
+
t.exports = function (t) {
|
|
2657
|
+
return t.getAttribute("data-value") || t.innerText;
|
|
2658
|
+
};
|
|
2659
|
+
}, function (t, e, n) {
|
|
2663
2660
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2661
|
+
var r,
|
|
2662
|
+
i = n(13),
|
|
2663
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2664
|
+
default: r
|
|
2665
|
+
};
|
|
2666
|
+
e.attach = function (t, e, n) {
|
|
2667
|
+
if ("function" == typeof n) return e.addEventListener(t, n);
|
|
2668
|
+
n && n.length && e.addEventListener(t, function (t) {
|
|
2669
|
+
var e = o.default[t.which];
|
|
2670
|
+
n.forEach(function (n) {
|
|
2671
|
+
n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
|
|
2672
|
+
});
|
|
2673
|
+
});
|
|
2674
|
+
}, e.up = function (t, n) {
|
|
2675
|
+
return e.attach("keyup", t, n);
|
|
2676
|
+
}, e.down = function (t, n) {
|
|
2677
|
+
return e.attach("keydown", t, n);
|
|
2678
|
+
}, e.press = function (t, n) {
|
|
2679
|
+
return e.attach("keypress", t, n);
|
|
2680
|
+
};
|
|
2681
|
+
}, function (t, e, n) {
|
|
2685
2682
|
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2683
|
+
t.exports = {
|
|
2684
|
+
8: "backspace",
|
|
2685
|
+
9: "tab",
|
|
2686
|
+
13: "enter",
|
|
2687
|
+
27: "escape",
|
|
2688
|
+
32: "space",
|
|
2689
|
+
37: "left",
|
|
2690
|
+
38: "up",
|
|
2691
|
+
39: "right",
|
|
2692
|
+
40: "down"
|
|
2693
|
+
};
|
|
2694
|
+
}, function (t, e, n) {
|
|
2698
2695
|
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2696
|
+
t.exports = function (t, e, n) {
|
|
2697
|
+
if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
|
|
2698
|
+
for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
|
|
2699
|
+
if (e.indexOf(r) > -1) return !0;
|
|
2700
|
+
r = r.parentNode;
|
|
2701
|
+
}
|
|
2702
|
+
return !1;
|
|
2703
|
+
};
|
|
2704
|
+
}, function (t, e, n) {
|
|
2708
2705
|
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2706
|
+
var r,
|
|
2707
|
+
i = n(16),
|
|
2708
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2709
|
+
default: r
|
|
2710
|
+
};
|
|
2711
|
+
t.exports = function (t, e, n) {
|
|
2712
|
+
return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
|
|
2713
|
+
};
|
|
2714
|
+
}, function (t, e, n) {
|
|
2718
2715
|
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2716
|
+
(t.exports = function (t, e) {
|
|
2717
|
+
return (e = e || document).querySelector(t);
|
|
2718
|
+
}).all = function (t, e) {
|
|
2719
|
+
return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
|
|
2720
|
+
};
|
|
2721
|
+
}, function (t, e, n) {
|
|
2725
2722
|
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2723
|
+
t.exports = function (t, e) {
|
|
2724
|
+
var n = t.filter(function (t) {
|
|
2725
|
+
return t.options.indexOf(e) > -1;
|
|
2726
|
+
});
|
|
2727
|
+
return n.length && n[0];
|
|
2728
|
+
};
|
|
2729
|
+
}, function (t, e, n) {
|
|
2733
2730
|
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2731
|
+
var r,
|
|
2732
|
+
i = n(1),
|
|
2733
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2734
|
+
default: r
|
|
2735
|
+
};
|
|
2736
|
+
t.exports = function (t, e, n) {
|
|
2737
|
+
var r = t.querySelector(".combobo-no-results");
|
|
2738
|
+
!n || e.length || r ? r && e.length && t.removeChild(r) : (r = document.createElement("div"), (0, o.default)(r).add("combobo-no-results"), r.innerHTML = n, t.appendChild(r));
|
|
2739
|
+
};
|
|
2740
|
+
}, function (t, e, n) {
|
|
2744
2741
|
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2742
|
+
var r,
|
|
2743
|
+
i = n(20),
|
|
2744
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2745
|
+
default: r
|
|
2746
|
+
};
|
|
2747
|
+
t.exports = function (t, e, n) {
|
|
2748
|
+
e.id = e.id || (0, o.default)(), t.setAttribute("role", "combobox"), e.setAttribute("role", "listbox"), t.setAttribute("aria-controls", e.id), t.setAttribute("aria-autocomplete", "list"), t.setAttribute("aria-expanded", "false"), n.forEach(function (t) {
|
|
2749
|
+
t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
|
|
2750
|
+
});
|
|
2751
|
+
};
|
|
2752
|
+
}, function (t, e, n) {
|
|
2756
2753
|
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2754
|
+
var r,
|
|
2755
|
+
i = n(21),
|
|
2756
|
+
o = (r = i) && r.__esModule ? r : {
|
|
2757
|
+
default: r
|
|
2758
|
+
};
|
|
2759
|
+
t.exports = function t(e) {
|
|
2760
|
+
e = e || 8;
|
|
2761
|
+
var n = (0, o.default)(e);
|
|
2762
|
+
if (document.getElementById(n)) return t(e);
|
|
2763
|
+
return n;
|
|
2764
|
+
};
|
|
2765
|
+
}, function (t, e, n) {
|
|
2766
|
+
(function (r) {
|
|
2767
|
+
var i = n(26);
|
|
2768
|
+
function o(t) {
|
|
2769
|
+
i("string" == typeof t, "the list of characters must be a string!");
|
|
2770
|
+
var e = r.byteLength(t);
|
|
2771
|
+
return function (n) {
|
|
2772
|
+
i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
|
|
2773
|
+
for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
|
|
2774
|
+
return r;
|
|
2775
|
+
};
|
|
2776
|
+
}
|
|
2777
|
+
(e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
|
|
2778
|
+
}).call(e, n(22).Buffer);
|
|
2779
|
+
}, function (t, e, n) {
|
|
2783
2780
|
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
2781
|
+
(function (t) {
|
|
2782
|
+
var r = n(23),
|
|
2783
|
+
i = n(24),
|
|
2784
|
+
o = n(25);
|
|
2785
|
+
function u() {
|
|
2786
|
+
return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
2787
|
+
}
|
|
2788
|
+
function s(t, e) {
|
|
2789
|
+
if (u() < e) throw new RangeError("Invalid typed array length");
|
|
2790
|
+
return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
|
|
2791
|
+
}
|
|
2792
|
+
function a(t, e, n) {
|
|
2793
|
+
if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
|
|
2794
|
+
if ("number" == typeof t) {
|
|
2795
|
+
if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
|
|
2796
|
+
return l(this, t);
|
|
2797
|
+
}
|
|
2798
|
+
return c(this, t, e, n);
|
|
2799
|
+
}
|
|
2800
|
+
function c(t, e, n, r) {
|
|
2801
|
+
if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
|
|
2802
|
+
return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
|
|
2803
|
+
if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
|
|
2804
|
+
if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
|
|
2805
|
+
e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
|
|
2806
|
+
a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
|
|
2807
|
+
return t;
|
|
2808
|
+
}(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
|
|
2809
|
+
"string" == typeof n && "" !== n || (n = "utf8");
|
|
2810
|
+
if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
|
|
2811
|
+
var r = 0 | d(e, n),
|
|
2812
|
+
i = (t = s(t, r)).write(e, n);
|
|
2813
|
+
i !== r && (t = t.slice(0, i));
|
|
2814
|
+
return t;
|
|
2815
|
+
}(t, e, n) : function (t, e) {
|
|
2816
|
+
if (a.isBuffer(e)) {
|
|
2817
|
+
var n = 0 | p(e.length);
|
|
2818
|
+
return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
|
|
2819
|
+
}
|
|
2820
|
+
if (e) {
|
|
2821
|
+
if ("undefined" != typeof ArrayBuffer && e.buffer instanceof ArrayBuffer || "length" in e) return "number" != typeof e.length || (r = e.length) != r ? s(t, 0) : h(t, e);
|
|
2822
|
+
if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
|
|
2823
|
+
}
|
|
2824
|
+
var r;
|
|
2825
|
+
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
2826
|
+
}(t, e);
|
|
2827
|
+
}
|
|
2828
|
+
function f(t) {
|
|
2829
|
+
if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
|
|
2830
|
+
if (t < 0) throw new RangeError('"size" argument must not be negative');
|
|
2831
|
+
}
|
|
2832
|
+
function l(t, e) {
|
|
2833
|
+
if (f(e), t = s(t, e < 0 ? 0 : 0 | p(e)), !a.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
|
|
2834
|
+
return t;
|
|
2835
|
+
}
|
|
2836
|
+
function h(t, e) {
|
|
2837
|
+
var n = e.length < 0 ? 0 : 0 | p(e.length);
|
|
2838
|
+
t = s(t, n);
|
|
2839
|
+
for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
|
|
2840
|
+
return t;
|
|
2841
|
+
}
|
|
2842
|
+
function p(t) {
|
|
2843
|
+
if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
|
|
2844
|
+
return 0 | t;
|
|
2845
|
+
}
|
|
2846
|
+
function d(t, e) {
|
|
2847
|
+
if (a.isBuffer(t)) return t.length;
|
|
2848
|
+
if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
|
|
2849
|
+
"string" != typeof t && (t = "" + t);
|
|
2850
|
+
var n = t.length;
|
|
2851
|
+
if (0 === n) return 0;
|
|
2852
|
+
for (var r = !1;;) switch (e) {
|
|
2853
|
+
case "ascii":
|
|
2854
|
+
case "latin1":
|
|
2855
|
+
case "binary":
|
|
2856
|
+
return n;
|
|
2857
|
+
case "utf8":
|
|
2858
|
+
case "utf-8":
|
|
2859
|
+
case void 0:
|
|
2860
|
+
return N(t).length;
|
|
2861
|
+
case "ucs2":
|
|
2862
|
+
case "ucs-2":
|
|
2863
|
+
case "utf16le":
|
|
2864
|
+
case "utf-16le":
|
|
2865
|
+
return 2 * n;
|
|
2866
|
+
case "hex":
|
|
2867
|
+
return n >>> 1;
|
|
2868
|
+
case "base64":
|
|
2869
|
+
return F(t).length;
|
|
2870
|
+
default:
|
|
2871
|
+
if (r) return N(t).length;
|
|
2872
|
+
e = ("" + e).toLowerCase(), r = !0;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
function g(t, e, n) {
|
|
2876
|
+
var r = t[e];
|
|
2877
|
+
t[e] = t[n], t[n] = r;
|
|
2878
|
+
}
|
|
2879
|
+
function y(t, e, n, r, i) {
|
|
2880
|
+
if (0 === t.length) return -1;
|
|
2881
|
+
if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : t.length - 1), n < 0 && (n = t.length + n), n >= t.length) {
|
|
2882
|
+
if (i) return -1;
|
|
2883
|
+
n = t.length - 1;
|
|
2884
|
+
} else if (n < 0) {
|
|
2885
|
+
if (!i) return -1;
|
|
2886
|
+
n = 0;
|
|
2887
|
+
}
|
|
2888
|
+
if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
|
|
2889
|
+
if ("number" == typeof e) return e &= 255, a.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : v(t, [e], n, r, i);
|
|
2890
|
+
throw new TypeError("val must be string, number or Buffer");
|
|
2891
|
+
}
|
|
2892
|
+
function v(t, e, n, r, i) {
|
|
2893
|
+
var o,
|
|
2894
|
+
u = 1,
|
|
2895
|
+
s = t.length,
|
|
2896
|
+
a = e.length;
|
|
2897
|
+
if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
|
|
2898
|
+
if (t.length < 2 || e.length < 2) return -1;
|
|
2899
|
+
u = 2, s /= 2, a /= 2, n /= 2;
|
|
2900
|
+
}
|
|
2901
|
+
function c(t, e) {
|
|
2902
|
+
return 1 === u ? t[e] : t.readUInt16BE(e * u);
|
|
2903
|
+
}
|
|
2904
|
+
if (i) {
|
|
2905
|
+
var f = -1;
|
|
2906
|
+
for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
|
|
2907
|
+
if (-1 === f && (f = o), o - f + 1 === a) return f * u;
|
|
2908
|
+
} else -1 !== f && (o -= o - f), f = -1;
|
|
2909
|
+
} else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
|
|
2910
|
+
for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
|
|
2911
|
+
l = !1;
|
|
2912
|
+
break;
|
|
2913
|
+
}
|
|
2914
|
+
if (l) return o;
|
|
2915
|
+
}
|
|
2916
|
+
return -1;
|
|
2917
|
+
}
|
|
2918
|
+
function m(t, e, n, r) {
|
|
2919
|
+
n = Number(n) || 0;
|
|
2920
|
+
var i = t.length - n;
|
|
2921
|
+
r ? (r = Number(r)) > i && (r = i) : r = i;
|
|
2922
|
+
var o = e.length;
|
|
2923
|
+
if (o % 2 != 0) throw new TypeError("Invalid hex string");
|
|
2924
|
+
r > o / 2 && (r = o / 2);
|
|
2925
|
+
for (var u = 0; u < r; ++u) {
|
|
2926
|
+
var s = parseInt(e.substr(2 * u, 2), 16);
|
|
2927
|
+
if (isNaN(s)) return u;
|
|
2928
|
+
t[n + u] = s;
|
|
2929
|
+
}
|
|
2930
|
+
return u;
|
|
2931
|
+
}
|
|
2932
|
+
function b(t, e, n, r) {
|
|
2933
|
+
return z(N(e, t.length - n), t, n, r);
|
|
2934
|
+
}
|
|
2935
|
+
function w(t, e, n, r) {
|
|
2936
|
+
return z(function (t) {
|
|
2937
|
+
for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
|
|
2938
|
+
return e;
|
|
2939
|
+
}(e), t, n, r);
|
|
2940
|
+
}
|
|
2941
|
+
function E(t, e, n, r) {
|
|
2942
|
+
return w(t, e, n, r);
|
|
2943
|
+
}
|
|
2944
|
+
function O(t, e, n, r) {
|
|
2945
|
+
return z(F(e), t, n, r);
|
|
2946
|
+
}
|
|
2947
|
+
function A(t, e, n, r) {
|
|
2948
|
+
return z(function (t, e) {
|
|
2949
|
+
for (var n, r, i, o = [], u = 0; u < t.length && !((e -= 2) < 0); ++u) n = t.charCodeAt(u), r = n >> 8, i = n % 256, o.push(i), o.push(r);
|
|
2950
|
+
return o;
|
|
2951
|
+
}(e, t.length - n), t, n, r);
|
|
2952
|
+
}
|
|
2953
|
+
function x(t, e, n) {
|
|
2954
|
+
return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
|
|
2955
|
+
}
|
|
2956
|
+
function T(t, e, n) {
|
|
2957
|
+
n = Math.min(t.length, n);
|
|
2958
|
+
for (var r = [], i = e; i < n;) {
|
|
2959
|
+
var o,
|
|
2960
|
+
u,
|
|
2961
|
+
s,
|
|
2962
|
+
a,
|
|
2963
|
+
c = t[i],
|
|
2964
|
+
f = null,
|
|
2965
|
+
l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
|
|
2966
|
+
if (i + l <= n) switch (l) {
|
|
2967
|
+
case 1:
|
|
2968
|
+
c < 128 && (f = c);
|
|
2969
|
+
break;
|
|
2970
|
+
case 2:
|
|
2971
|
+
128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
|
|
2972
|
+
break;
|
|
2973
|
+
case 3:
|
|
2974
|
+
o = t[i + 1], u = t[i + 2], 128 == (192 & o) && 128 == (192 & u) && (a = (15 & c) << 12 | (63 & o) << 6 | 63 & u) > 2047 && (a < 55296 || a > 57343) && (f = a);
|
|
2975
|
+
break;
|
|
2976
|
+
case 4:
|
|
2977
|
+
o = t[i + 1], u = t[i + 2], s = t[i + 3], 128 == (192 & o) && 128 == (192 & u) && 128 == (192 & s) && (a = (15 & c) << 18 | (63 & o) << 12 | (63 & u) << 6 | 63 & s) > 65535 && a < 1114112 && (f = a);
|
|
2978
|
+
}
|
|
2979
|
+
null === f ? (f = 65533, l = 1) : f > 65535 && (f -= 65536, r.push(f >>> 10 & 1023 | 55296), f = 56320 | 1023 & f), r.push(f), i += l;
|
|
2980
|
+
}
|
|
2981
|
+
return function (t) {
|
|
2982
|
+
var e = t.length;
|
|
2983
|
+
if (e <= _) return String.fromCharCode.apply(String, t);
|
|
2984
|
+
var n = "",
|
|
2985
|
+
r = 0;
|
|
2986
|
+
for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
|
|
2987
|
+
return n;
|
|
2988
|
+
}(r);
|
|
2989
|
+
}
|
|
2990
|
+
e.Buffer = a, e.SlowBuffer = function (t) {
|
|
2991
|
+
+t != t && (t = 0);
|
|
2992
|
+
return a.alloc(+t);
|
|
2993
|
+
}, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
|
|
2994
|
+
try {
|
|
2995
|
+
var t = new Uint8Array(1);
|
|
2996
|
+
return t.__proto__ = {
|
|
2997
|
+
__proto__: Uint8Array.prototype,
|
|
2998
|
+
foo: function () {
|
|
2999
|
+
return 42;
|
|
3000
|
+
}
|
|
3001
|
+
}, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
|
|
3002
|
+
} catch (t) {
|
|
3003
|
+
return !1;
|
|
3004
|
+
}
|
|
3005
|
+
}(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
|
|
3006
|
+
return t.__proto__ = a.prototype, t;
|
|
3007
|
+
}, a.from = function (t, e, n) {
|
|
3008
|
+
return c(null, t, e, n);
|
|
3009
|
+
}, a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, {
|
|
3010
|
+
value: null,
|
|
3011
|
+
configurable: !0
|
|
3012
|
+
})), a.alloc = function (t, e, n) {
|
|
3013
|
+
return function (t, e, n, r) {
|
|
3014
|
+
return f(e), e <= 0 ? s(t, e) : void 0 !== n ? "string" == typeof r ? s(t, e).fill(n, r) : s(t, e).fill(n) : s(t, e);
|
|
3015
|
+
}(null, t, e, n);
|
|
3016
|
+
}, a.allocUnsafe = function (t) {
|
|
3017
|
+
return l(null, t);
|
|
3018
|
+
}, a.allocUnsafeSlow = function (t) {
|
|
3019
|
+
return l(null, t);
|
|
3020
|
+
}, a.isBuffer = function (t) {
|
|
3021
|
+
return !(null == t || !t._isBuffer);
|
|
3022
|
+
}, a.compare = function (t, e) {
|
|
3023
|
+
if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
|
|
3024
|
+
if (t === e) return 0;
|
|
3025
|
+
for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
|
|
3026
|
+
n = t[i], r = e[i];
|
|
3027
|
+
break;
|
|
3028
|
+
}
|
|
3029
|
+
return n < r ? -1 : r < n ? 1 : 0;
|
|
3030
|
+
}, a.isEncoding = function (t) {
|
|
3031
|
+
switch (String(t).toLowerCase()) {
|
|
3032
|
+
case "hex":
|
|
3033
|
+
case "utf8":
|
|
3034
|
+
case "utf-8":
|
|
3035
|
+
case "ascii":
|
|
3036
|
+
case "latin1":
|
|
3037
|
+
case "binary":
|
|
3038
|
+
case "base64":
|
|
3039
|
+
case "ucs2":
|
|
3040
|
+
case "ucs-2":
|
|
3041
|
+
case "utf16le":
|
|
3042
|
+
case "utf-16le":
|
|
3043
|
+
return !0;
|
|
3044
|
+
default:
|
|
3045
|
+
return !1;
|
|
3046
|
+
}
|
|
3047
|
+
}, a.concat = function (t, e) {
|
|
3048
|
+
if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
3049
|
+
if (0 === t.length) return a.alloc(0);
|
|
3050
|
+
var n;
|
|
3051
|
+
if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
|
|
3052
|
+
var r = a.allocUnsafe(e),
|
|
3053
|
+
i = 0;
|
|
3054
|
+
for (n = 0; n < t.length; ++n) {
|
|
3055
|
+
var u = t[n];
|
|
3056
|
+
if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
3057
|
+
u.copy(r, i), i += u.length;
|
|
3058
|
+
}
|
|
3059
|
+
return r;
|
|
3060
|
+
}, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
|
|
3061
|
+
var t = this.length;
|
|
3062
|
+
if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
3063
|
+
for (var e = 0; e < t; e += 2) g(this, e, e + 1);
|
|
3064
|
+
return this;
|
|
3065
|
+
}, a.prototype.swap32 = function () {
|
|
3066
|
+
var t = this.length;
|
|
3067
|
+
if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
3068
|
+
for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
|
|
3069
|
+
return this;
|
|
3070
|
+
}, a.prototype.swap64 = function () {
|
|
3071
|
+
var t = this.length;
|
|
3072
|
+
if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
3073
|
+
for (var e = 0; e < t; e += 8) g(this, e, e + 7), g(this, e + 1, e + 6), g(this, e + 2, e + 5), g(this, e + 3, e + 4);
|
|
3074
|
+
return this;
|
|
3075
|
+
}, a.prototype.toString = function () {
|
|
3076
|
+
var t = 0 | this.length;
|
|
3077
|
+
return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
|
|
3078
|
+
var r = !1;
|
|
3079
|
+
if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
|
|
3080
|
+
if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
|
|
3081
|
+
if ((n >>>= 0) <= (e >>>= 0)) return "";
|
|
3082
|
+
for (t || (t = "utf8");;) switch (t) {
|
|
3083
|
+
case "hex":
|
|
3084
|
+
return k(this, e, n);
|
|
3085
|
+
case "utf8":
|
|
3086
|
+
case "utf-8":
|
|
3087
|
+
return T(this, e, n);
|
|
3088
|
+
case "ascii":
|
|
3089
|
+
return S(this, e, n);
|
|
3090
|
+
case "latin1":
|
|
3091
|
+
case "binary":
|
|
3092
|
+
return R(this, e, n);
|
|
3093
|
+
case "base64":
|
|
3094
|
+
return x(this, e, n);
|
|
3095
|
+
case "ucs2":
|
|
3096
|
+
case "ucs-2":
|
|
3097
|
+
case "utf16le":
|
|
3098
|
+
case "utf-16le":
|
|
3099
|
+
return P(this, e, n);
|
|
3100
|
+
default:
|
|
3101
|
+
if (r) throw new TypeError("Unknown encoding: " + t);
|
|
3102
|
+
t = (t + "").toLowerCase(), r = !0;
|
|
3103
|
+
}
|
|
3104
|
+
}.apply(this, arguments);
|
|
3105
|
+
}, a.prototype.equals = function (t) {
|
|
3106
|
+
if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
|
|
3107
|
+
return this === t || 0 === a.compare(this, t);
|
|
3108
|
+
}, a.prototype.inspect = function () {
|
|
3109
|
+
var t = "",
|
|
3110
|
+
n = e.INSPECT_MAX_BYTES;
|
|
3111
|
+
return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
|
|
3112
|
+
}, a.prototype.compare = function (t, e, n, r, i) {
|
|
3113
|
+
if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
|
|
3114
|
+
if (void 0 === e && (e = 0), void 0 === n && (n = t ? t.length : 0), void 0 === r && (r = 0), void 0 === i && (i = this.length), e < 0 || n > t.length || r < 0 || i > this.length) throw new RangeError("out of range index");
|
|
3115
|
+
if (r >= i && e >= n) return 0;
|
|
3116
|
+
if (r >= i) return -1;
|
|
3117
|
+
if (e >= n) return 1;
|
|
3118
|
+
if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
|
|
3119
|
+
for (var o = i - r, u = n - e, s = Math.min(o, u), c = this.slice(r, i), f = t.slice(e, n), l = 0; l < s; ++l) if (c[l] !== f[l]) {
|
|
3120
|
+
o = c[l], u = f[l];
|
|
3121
|
+
break;
|
|
3122
|
+
}
|
|
3123
|
+
return o < u ? -1 : u < o ? 1 : 0;
|
|
3124
|
+
}, a.prototype.includes = function (t, e, n) {
|
|
3125
|
+
return -1 !== this.indexOf(t, e, n);
|
|
3126
|
+
}, a.prototype.indexOf = function (t, e, n) {
|
|
3127
|
+
return y(this, t, e, n, !0);
|
|
3128
|
+
}, a.prototype.lastIndexOf = function (t, e, n) {
|
|
3129
|
+
return y(this, t, e, n, !1);
|
|
3130
|
+
}, a.prototype.write = function (t, e, n, r) {
|
|
3131
|
+
if (void 0 === e) r = "utf8", n = this.length, e = 0;else if (void 0 === n && "string" == typeof e) r = e, n = this.length, e = 0;else {
|
|
3132
|
+
if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
|
3133
|
+
e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
|
|
3134
|
+
}
|
|
3135
|
+
var i = this.length - e;
|
|
3136
|
+
if ((void 0 === n || n > i) && (n = i), t.length > 0 && (n < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds");
|
|
3137
|
+
r || (r = "utf8");
|
|
3138
|
+
for (var o = !1;;) switch (r) {
|
|
3139
|
+
case "hex":
|
|
3140
|
+
return m(this, t, e, n);
|
|
3141
|
+
case "utf8":
|
|
3142
|
+
case "utf-8":
|
|
3143
|
+
return b(this, t, e, n);
|
|
3144
|
+
case "ascii":
|
|
3145
|
+
return w(this, t, e, n);
|
|
3146
|
+
case "latin1":
|
|
3147
|
+
case "binary":
|
|
3148
|
+
return E(this, t, e, n);
|
|
3149
|
+
case "base64":
|
|
3150
|
+
return O(this, t, e, n);
|
|
3151
|
+
case "ucs2":
|
|
3152
|
+
case "ucs-2":
|
|
3153
|
+
case "utf16le":
|
|
3154
|
+
case "utf-16le":
|
|
3155
|
+
return A(this, t, e, n);
|
|
3156
|
+
default:
|
|
3157
|
+
if (o) throw new TypeError("Unknown encoding: " + r);
|
|
3158
|
+
r = ("" + r).toLowerCase(), o = !0;
|
|
3159
|
+
}
|
|
3160
|
+
}, a.prototype.toJSON = function () {
|
|
3161
|
+
return {
|
|
3162
|
+
type: "Buffer",
|
|
3163
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
3166
|
+
var _ = 4096;
|
|
3167
|
+
function S(t, e, n) {
|
|
3168
|
+
var r = "";
|
|
3169
|
+
n = Math.min(t.length, n);
|
|
3170
|
+
for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
|
|
3171
|
+
return r;
|
|
3172
|
+
}
|
|
3173
|
+
function R(t, e, n) {
|
|
3174
|
+
var r = "";
|
|
3175
|
+
n = Math.min(t.length, n);
|
|
3176
|
+
for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
|
|
3177
|
+
return r;
|
|
3178
|
+
}
|
|
3179
|
+
function k(t, e, n) {
|
|
3180
|
+
var r = t.length;
|
|
3181
|
+
(!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
|
|
3182
|
+
for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
|
|
3183
|
+
return i;
|
|
3184
|
+
}
|
|
3185
|
+
function P(t, e, n) {
|
|
3186
|
+
for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
|
|
3187
|
+
return i;
|
|
3188
|
+
}
|
|
3189
|
+
function L(t, e, n) {
|
|
3190
|
+
if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
|
|
3191
|
+
if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
|
|
3192
|
+
}
|
|
3193
|
+
function B(t, e, n, r, i, o) {
|
|
3194
|
+
if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
3195
|
+
if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
|
|
3196
|
+
if (n + r > t.length) throw new RangeError("Index out of range");
|
|
3197
|
+
}
|
|
3198
|
+
function C(t, e, n, r) {
|
|
3199
|
+
e < 0 && (e = 65535 + e + 1);
|
|
3200
|
+
for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = (e & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i);
|
|
3201
|
+
}
|
|
3202
|
+
function j(t, e, n, r) {
|
|
3203
|
+
e < 0 && (e = 4294967295 + e + 1);
|
|
3204
|
+
for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
|
|
3205
|
+
}
|
|
3206
|
+
function M(t, e, n, r, i, o) {
|
|
3207
|
+
if (n + r > t.length) throw new RangeError("Index out of range");
|
|
3208
|
+
if (n < 0) throw new RangeError("Index out of range");
|
|
3209
|
+
}
|
|
3210
|
+
function U(t, e, n, r, o) {
|
|
3211
|
+
return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
|
|
3212
|
+
}
|
|
3213
|
+
function D(t, e, n, r, o) {
|
|
3214
|
+
return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
|
|
3215
|
+
}
|
|
3216
|
+
a.prototype.slice = function (t, e) {
|
|
3217
|
+
var n,
|
|
3218
|
+
r = this.length;
|
|
3219
|
+
if (t = ~~t, e = void 0 === e ? r : ~~e, t < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), e < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), e < t && (e = t), a.TYPED_ARRAY_SUPPORT) (n = this.subarray(t, e)).__proto__ = a.prototype;else {
|
|
3220
|
+
var i = e - t;
|
|
3221
|
+
n = new a(i, void 0);
|
|
3222
|
+
for (var o = 0; o < i; ++o) n[o] = this[o + t];
|
|
3223
|
+
}
|
|
3224
|
+
return n;
|
|
3225
|
+
}, a.prototype.readUIntLE = function (t, e, n) {
|
|
3226
|
+
t |= 0, e |= 0, n || L(t, e, this.length);
|
|
3227
|
+
for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
|
|
3228
|
+
return r;
|
|
3229
|
+
}, a.prototype.readUIntBE = function (t, e, n) {
|
|
3230
|
+
t |= 0, e |= 0, n || L(t, e, this.length);
|
|
3231
|
+
for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
|
|
3232
|
+
return r;
|
|
3233
|
+
}, a.prototype.readUInt8 = function (t, e) {
|
|
3234
|
+
return e || L(t, 1, this.length), this[t];
|
|
3235
|
+
}, a.prototype.readUInt16LE = function (t, e) {
|
|
3236
|
+
return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
|
|
3237
|
+
}, a.prototype.readUInt16BE = function (t, e) {
|
|
3238
|
+
return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
|
|
3239
|
+
}, a.prototype.readUInt32LE = function (t, e) {
|
|
3240
|
+
return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
|
|
3241
|
+
}, a.prototype.readUInt32BE = function (t, e) {
|
|
3242
|
+
return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
|
|
3243
|
+
}, a.prototype.readIntLE = function (t, e, n) {
|
|
3244
|
+
t |= 0, e |= 0, n || L(t, e, this.length);
|
|
3245
|
+
for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
|
|
3246
|
+
return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
|
|
3247
|
+
}, a.prototype.readIntBE = function (t, e, n) {
|
|
3248
|
+
t |= 0, e |= 0, n || L(t, e, this.length);
|
|
3249
|
+
for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
|
|
3250
|
+
return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
|
|
3251
|
+
}, a.prototype.readInt8 = function (t, e) {
|
|
3252
|
+
return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
|
|
3253
|
+
}, a.prototype.readInt16LE = function (t, e) {
|
|
3254
|
+
e || L(t, 2, this.length);
|
|
3255
|
+
var n = this[t] | this[t + 1] << 8;
|
|
3256
|
+
return 32768 & n ? 4294901760 | n : n;
|
|
3257
|
+
}, a.prototype.readInt16BE = function (t, e) {
|
|
3258
|
+
e || L(t, 2, this.length);
|
|
3259
|
+
var n = this[t + 1] | this[t] << 8;
|
|
3260
|
+
return 32768 & n ? 4294901760 | n : n;
|
|
3261
|
+
}, a.prototype.readInt32LE = function (t, e) {
|
|
3262
|
+
return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
|
|
3263
|
+
}, a.prototype.readInt32BE = function (t, e) {
|
|
3264
|
+
return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
|
|
3265
|
+
}, a.prototype.readFloatLE = function (t, e) {
|
|
3266
|
+
return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
|
|
3267
|
+
}, a.prototype.readFloatBE = function (t, e) {
|
|
3268
|
+
return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
|
|
3269
|
+
}, a.prototype.readDoubleLE = function (t, e) {
|
|
3270
|
+
return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
|
|
3271
|
+
}, a.prototype.readDoubleBE = function (t, e) {
|
|
3272
|
+
return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
|
|
3273
|
+
}, a.prototype.writeUIntLE = function (t, e, n, r) {
|
|
3274
|
+
(t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
|
|
3275
|
+
var i = 1,
|
|
3276
|
+
o = 0;
|
|
3277
|
+
for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
|
|
3278
|
+
return e + n;
|
|
3279
|
+
}, a.prototype.writeUIntBE = function (t, e, n, r) {
|
|
3280
|
+
(t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
|
|
3281
|
+
var i = n - 1,
|
|
3282
|
+
o = 1;
|
|
3283
|
+
for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
|
|
3284
|
+
return e + n;
|
|
3285
|
+
}, a.prototype.writeUInt8 = function (t, e, n) {
|
|
3286
|
+
return t = +t, e |= 0, n || B(this, t, e, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), this[e] = 255 & t, e + 1;
|
|
3287
|
+
}, a.prototype.writeUInt16LE = function (t, e, n) {
|
|
3288
|
+
return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
|
|
3289
|
+
}, a.prototype.writeUInt16BE = function (t, e, n) {
|
|
3290
|
+
return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
|
|
3291
|
+
}, a.prototype.writeUInt32LE = function (t, e, n) {
|
|
3292
|
+
return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t) : j(this, t, e, !0), e + 4;
|
|
3293
|
+
}, a.prototype.writeUInt32BE = function (t, e, n) {
|
|
3294
|
+
return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
|
|
3295
|
+
}, a.prototype.writeIntLE = function (t, e, n, r) {
|
|
3296
|
+
if (t = +t, e |= 0, !r) {
|
|
3297
|
+
var i = Math.pow(2, 8 * n - 1);
|
|
3298
|
+
B(this, t, e, n, i - 1, -i);
|
|
3299
|
+
}
|
|
3300
|
+
var o = 0,
|
|
3301
|
+
u = 1,
|
|
3302
|
+
s = 0;
|
|
3303
|
+
for (this[e] = 255 & t; ++o < n && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
|
|
3304
|
+
return e + n;
|
|
3305
|
+
}, a.prototype.writeIntBE = function (t, e, n, r) {
|
|
3306
|
+
if (t = +t, e |= 0, !r) {
|
|
3307
|
+
var i = Math.pow(2, 8 * n - 1);
|
|
3308
|
+
B(this, t, e, n, i - 1, -i);
|
|
3309
|
+
}
|
|
3310
|
+
var o = n - 1,
|
|
3311
|
+
u = 1,
|
|
3312
|
+
s = 0;
|
|
3313
|
+
for (this[e + o] = 255 & t; --o >= 0 && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
|
|
3314
|
+
return e + n;
|
|
3315
|
+
}, a.prototype.writeInt8 = function (t, e, n) {
|
|
3316
|
+
return t = +t, e |= 0, n || B(this, t, e, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1;
|
|
3317
|
+
}, a.prototype.writeInt16LE = function (t, e, n) {
|
|
3318
|
+
return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
|
|
3319
|
+
}, a.prototype.writeInt16BE = function (t, e, n) {
|
|
3320
|
+
return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
|
|
3321
|
+
}, a.prototype.writeInt32LE = function (t, e, n) {
|
|
3322
|
+
return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24) : j(this, t, e, !0), e + 4;
|
|
3323
|
+
}, a.prototype.writeInt32BE = function (t, e, n) {
|
|
3324
|
+
return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
|
|
3325
|
+
}, a.prototype.writeFloatLE = function (t, e, n) {
|
|
3326
|
+
return U(this, t, e, !0, n);
|
|
3327
|
+
}, a.prototype.writeFloatBE = function (t, e, n) {
|
|
3328
|
+
return U(this, t, e, !1, n);
|
|
3329
|
+
}, a.prototype.writeDoubleLE = function (t, e, n) {
|
|
3330
|
+
return D(this, t, e, !0, n);
|
|
3331
|
+
}, a.prototype.writeDoubleBE = function (t, e, n) {
|
|
3332
|
+
return D(this, t, e, !1, n);
|
|
3333
|
+
}, a.prototype.copy = function (t, e, n, r) {
|
|
3334
|
+
if (n || (n = 0), r || 0 === r || (r = this.length), e >= t.length && (e = t.length), e || (e = 0), r > 0 && r < n && (r = n), r === n) return 0;
|
|
3335
|
+
if (0 === t.length || 0 === this.length) return 0;
|
|
3336
|
+
if (e < 0) throw new RangeError("targetStart out of bounds");
|
|
3337
|
+
if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
|
|
3338
|
+
if (r < 0) throw new RangeError("sourceEnd out of bounds");
|
|
3339
|
+
r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
|
|
3340
|
+
var i,
|
|
3341
|
+
o = r - n;
|
|
3342
|
+
if (this === t && n < e && e < r) for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n];else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) for (i = 0; i < o; ++i) t[i + e] = this[i + n];else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e);
|
|
3343
|
+
return o;
|
|
3344
|
+
}, a.prototype.fill = function (t, e, n, r) {
|
|
3345
|
+
if ("string" == typeof t) {
|
|
3346
|
+
if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
|
|
3347
|
+
var i = t.charCodeAt(0);
|
|
3348
|
+
i < 256 && (t = i);
|
|
3349
|
+
}
|
|
3350
|
+
if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
|
|
3351
|
+
if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
|
|
3352
|
+
} else "number" == typeof t && (t &= 255);
|
|
3353
|
+
if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
|
|
3354
|
+
if (n <= e) return this;
|
|
3355
|
+
var o;
|
|
3356
|
+
if (e >>>= 0, n = void 0 === n ? this.length : n >>> 0, t || (t = 0), "number" == typeof t) for (o = e; o < n; ++o) this[o] = t;else {
|
|
3357
|
+
var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
|
|
3358
|
+
s = u.length;
|
|
3359
|
+
for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
|
|
3360
|
+
}
|
|
3361
|
+
return this;
|
|
3362
|
+
};
|
|
3363
|
+
var I = /[^+\/0-9A-Za-z-_]/g;
|
|
3364
|
+
function Y(t) {
|
|
3365
|
+
return t < 16 ? "0" + t.toString(16) : t.toString(16);
|
|
3366
|
+
}
|
|
3367
|
+
function N(t, e) {
|
|
3368
|
+
var n;
|
|
3369
|
+
e = e || 1 / 0;
|
|
3370
|
+
for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
|
|
3371
|
+
if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
|
|
3372
|
+
if (!i) {
|
|
3373
|
+
if (n > 56319) {
|
|
3374
|
+
(e -= 3) > -1 && o.push(239, 191, 189);
|
|
3375
|
+
continue;
|
|
3376
|
+
}
|
|
3377
|
+
if (u + 1 === r) {
|
|
3378
|
+
(e -= 3) > -1 && o.push(239, 191, 189);
|
|
3379
|
+
continue;
|
|
3380
|
+
}
|
|
3381
|
+
i = n;
|
|
3382
|
+
continue;
|
|
3383
|
+
}
|
|
3384
|
+
if (n < 56320) {
|
|
3385
|
+
(e -= 3) > -1 && o.push(239, 191, 189), i = n;
|
|
3386
|
+
continue;
|
|
3387
|
+
}
|
|
3388
|
+
n = 65536 + (i - 55296 << 10 | n - 56320);
|
|
3389
|
+
} else i && (e -= 3) > -1 && o.push(239, 191, 189);
|
|
3390
|
+
if (i = null, n < 128) {
|
|
3391
|
+
if ((e -= 1) < 0) break;
|
|
3392
|
+
o.push(n);
|
|
3393
|
+
} else if (n < 2048) {
|
|
3394
|
+
if ((e -= 2) < 0) break;
|
|
3395
|
+
o.push(n >> 6 | 192, 63 & n | 128);
|
|
3396
|
+
} else if (n < 65536) {
|
|
3397
|
+
if ((e -= 3) < 0) break;
|
|
3398
|
+
o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
|
|
3399
|
+
} else {
|
|
3400
|
+
if (!(n < 1114112)) throw new Error("Invalid code point");
|
|
3401
|
+
if ((e -= 4) < 0) break;
|
|
3402
|
+
o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
return o;
|
|
3406
|
+
}
|
|
3407
|
+
function F(t) {
|
|
3408
|
+
return r.toByteArray(function (t) {
|
|
3409
|
+
if ((t = function (t) {
|
|
3410
|
+
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
|
3411
|
+
}(t).replace(I, "")).length < 2) return "";
|
|
3412
|
+
for (; t.length % 4 != 0;) t += "=";
|
|
3413
|
+
return t;
|
|
3414
|
+
}(t));
|
|
3415
|
+
}
|
|
3416
|
+
function z(t, e, n, r) {
|
|
3417
|
+
for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
|
|
3418
|
+
return i;
|
|
3419
|
+
}
|
|
3420
|
+
}).call(e, n(0));
|
|
3421
|
+
}, function (t, e, n) {
|
|
3425
3422
|
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3423
|
+
e.byteLength = function (t) {
|
|
3424
|
+
return 3 * t.length / 4 - c(t);
|
|
3425
|
+
}, e.toByteArray = function (t) {
|
|
3426
|
+
var e,
|
|
3427
|
+
n,
|
|
3428
|
+
r,
|
|
3429
|
+
u,
|
|
3430
|
+
s,
|
|
3431
|
+
a = t.length;
|
|
3432
|
+
u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
|
|
3433
|
+
var f = 0;
|
|
3434
|
+
for (e = 0; e < n; e += 4) r = i[t.charCodeAt(e)] << 18 | i[t.charCodeAt(e + 1)] << 12 | i[t.charCodeAt(e + 2)] << 6 | i[t.charCodeAt(e + 3)], s[f++] = r >> 16 & 255, s[f++] = r >> 8 & 255, s[f++] = 255 & r;
|
|
3435
|
+
2 === u ? (r = i[t.charCodeAt(e)] << 2 | i[t.charCodeAt(e + 1)] >> 4, s[f++] = 255 & r) : 1 === u && (r = i[t.charCodeAt(e)] << 10 | i[t.charCodeAt(e + 1)] << 4 | i[t.charCodeAt(e + 2)] >> 2, s[f++] = r >> 8 & 255, s[f++] = 255 & r);
|
|
3436
|
+
return s;
|
|
3437
|
+
}, e.fromByteArray = function (t) {
|
|
3438
|
+
for (var e, n = t.length, i = n % 3, o = "", u = [], s = 0, a = n - i; s < a; s += 16383) u.push(f(t, s, s + 16383 > a ? a : s + 16383));
|
|
3439
|
+
1 === i ? (e = t[n - 1], o += r[e >> 2], o += r[e << 4 & 63], o += "==") : 2 === i && (e = (t[n - 2] << 8) + t[n - 1], o += r[e >> 10], o += r[e >> 4 & 63], o += r[e << 2 & 63], o += "=");
|
|
3440
|
+
return u.push(o), u.join("");
|
|
3441
|
+
};
|
|
3442
|
+
for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, a = u.length; s < a; ++s) r[s] = u[s], i[u.charCodeAt(s)] = s;
|
|
3443
|
+
function c(t) {
|
|
3444
|
+
var e = t.length;
|
|
3445
|
+
if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
3446
|
+
return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
|
|
3447
|
+
}
|
|
3448
|
+
function f(t, e, n) {
|
|
3449
|
+
for (var i, o, u = [], s = e; s < n; s += 3) i = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2]), u.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
|
|
3450
|
+
return u.join("");
|
|
3451
|
+
}
|
|
3452
|
+
i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
|
|
3453
|
+
}, function (t, e) {
|
|
3454
|
+
e.read = function (t, e, n, r, i) {
|
|
3455
|
+
var o,
|
|
3456
|
+
u,
|
|
3457
|
+
s = 8 * i - r - 1,
|
|
3458
|
+
a = (1 << s) - 1,
|
|
3459
|
+
c = a >> 1,
|
|
3460
|
+
f = -7,
|
|
3461
|
+
l = n ? i - 1 : 0,
|
|
3462
|
+
h = n ? -1 : 1,
|
|
3463
|
+
p = t[e + l];
|
|
3464
|
+
for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
|
|
3465
|
+
for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
|
|
3466
|
+
if (0 === o) o = 1 - c;else {
|
|
3467
|
+
if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
|
|
3468
|
+
u += Math.pow(2, r), o -= c;
|
|
3469
|
+
}
|
|
3470
|
+
return (p ? -1 : 1) * u * Math.pow(2, o - r);
|
|
3471
|
+
}, e.write = function (t, e, n, r, i, o) {
|
|
3472
|
+
var u,
|
|
3473
|
+
s,
|
|
3474
|
+
a,
|
|
3475
|
+
c = 8 * o - i - 1,
|
|
3476
|
+
f = (1 << c) - 1,
|
|
3477
|
+
l = f >> 1,
|
|
3478
|
+
h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
|
|
3479
|
+
p = r ? 0 : o - 1,
|
|
3480
|
+
d = r ? 1 : -1,
|
|
3481
|
+
g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
|
|
3482
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, u = f) : (u = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -u)) < 1 && (u--, a *= 2), (e += u + l >= 1 ? h / a : h * Math.pow(2, 1 - l)) * a >= 2 && (u++, a /= 2), u + l >= f ? (s = 0, u = f) : u + l >= 1 ? (s = (e * a - 1) * Math.pow(2, i), u += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, i), u = 0)); i >= 8; t[n + p] = 255 & s, p += d, s /= 256, i -= 8);
|
|
3483
|
+
for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
|
|
3484
|
+
t[n + p - d] |= 128 * g;
|
|
3485
|
+
};
|
|
3486
|
+
}, function (t, e) {
|
|
3487
|
+
var n = {}.toString;
|
|
3488
|
+
t.exports = Array.isArray || function (t) {
|
|
3489
|
+
return "[object Array]" == n.call(t);
|
|
3490
|
+
};
|
|
3491
|
+
}, function (t, e, n) {
|
|
3495
3492
|
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3493
|
+
(function (e) {
|
|
3494
|
+
function r(t, e) {
|
|
3495
|
+
if (t === e) return 0;
|
|
3496
|
+
for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
|
|
3497
|
+
n = t[i], r = e[i];
|
|
3498
|
+
break;
|
|
3499
|
+
}
|
|
3500
|
+
return n < r ? -1 : r < n ? 1 : 0;
|
|
3501
|
+
}
|
|
3502
|
+
function i(t) {
|
|
3503
|
+
return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
|
|
3504
|
+
}
|
|
3505
|
+
var o = n(27),
|
|
3506
|
+
u = Object.prototype.hasOwnProperty,
|
|
3507
|
+
s = Array.prototype.slice,
|
|
3508
|
+
a = "foo" === function () {}.name;
|
|
3509
|
+
function c(t) {
|
|
3510
|
+
return Object.prototype.toString.call(t);
|
|
3511
|
+
}
|
|
3512
|
+
function f(t) {
|
|
3513
|
+
return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
|
|
3514
|
+
}
|
|
3515
|
+
var l = t.exports = v,
|
|
3516
|
+
h = /\s*function\s+([^\(\s]*)\s*/;
|
|
3517
|
+
function p(t) {
|
|
3518
|
+
if (o.isFunction(t)) {
|
|
3519
|
+
if (a) return t.name;
|
|
3520
|
+
var e = t.toString().match(h);
|
|
3521
|
+
return e && e[1];
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
function d(t, e) {
|
|
3525
|
+
return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
|
|
3526
|
+
}
|
|
3527
|
+
function g(t) {
|
|
3528
|
+
if (a || !o.isFunction(t)) return o.inspect(t);
|
|
3529
|
+
var e = p(t);
|
|
3530
|
+
return "[Function" + (e ? ": " + e : "") + "]";
|
|
3531
|
+
}
|
|
3532
|
+
function y(t, e, n, r, i) {
|
|
3533
|
+
throw new l.AssertionError({
|
|
3534
|
+
message: n,
|
|
3535
|
+
actual: t,
|
|
3536
|
+
expected: e,
|
|
3537
|
+
operator: r,
|
|
3538
|
+
stackStartFunction: i
|
|
3539
|
+
});
|
|
3540
|
+
}
|
|
3541
|
+
function v(t, e) {
|
|
3542
|
+
t || y(t, !0, e, "==", l.ok);
|
|
3543
|
+
}
|
|
3544
|
+
function m(t, e, n, u) {
|
|
3545
|
+
if (t === e) return !0;
|
|
3546
|
+
if (i(t) && i(e)) return 0 === r(t, e);
|
|
3547
|
+
if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
|
|
3548
|
+
if (o.isRegExp(t) && o.isRegExp(e)) return t.source === e.source && t.global === e.global && t.multiline === e.multiline && t.lastIndex === e.lastIndex && t.ignoreCase === e.ignoreCase;
|
|
3549
|
+
if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
|
|
3550
|
+
if (f(t) && f(e) && c(t) === c(e) && !(t instanceof Float32Array || t instanceof Float64Array)) return 0 === r(new Uint8Array(t.buffer), new Uint8Array(e.buffer));
|
|
3551
|
+
if (i(t) !== i(e)) return !1;
|
|
3552
|
+
var a = (u = u || {
|
|
3553
|
+
actual: [],
|
|
3554
|
+
expected: []
|
|
3555
|
+
}).actual.indexOf(t);
|
|
3556
|
+
return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
|
|
3557
|
+
if (null === t || void 0 === t || null === e || void 0 === e) return !1;
|
|
3558
|
+
if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
|
|
3559
|
+
if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
|
|
3560
|
+
var i = b(t),
|
|
3561
|
+
u = b(e);
|
|
3562
|
+
if (i && !u || !i && u) return !1;
|
|
3563
|
+
if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
|
|
3564
|
+
var a,
|
|
3565
|
+
c,
|
|
3566
|
+
f = O(t),
|
|
3567
|
+
l = O(e);
|
|
3568
|
+
if (f.length !== l.length) return !1;
|
|
3569
|
+
for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
|
|
3570
|
+
for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
|
|
3571
|
+
return !0;
|
|
3572
|
+
}(t, e, n, u));
|
|
3573
|
+
}
|
|
3574
|
+
return n ? t === e : t == e;
|
|
3575
|
+
}
|
|
3576
|
+
function b(t) {
|
|
3577
|
+
return "[object Arguments]" == Object.prototype.toString.call(t);
|
|
3578
|
+
}
|
|
3579
|
+
function w(t, e) {
|
|
3580
|
+
if (!t || !e) return !1;
|
|
3581
|
+
if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
|
|
3582
|
+
try {
|
|
3583
|
+
if (t instanceof e) return !0;
|
|
3584
|
+
} catch (t) {}
|
|
3585
|
+
return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
|
|
3586
|
+
}
|
|
3587
|
+
function E(t, e, n, r) {
|
|
3588
|
+
var i;
|
|
3589
|
+
if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
|
|
3590
|
+
"string" == typeof n && (r = n, n = null), i = function (t) {
|
|
3591
|
+
var e;
|
|
3592
|
+
try {
|
|
3593
|
+
t();
|
|
3594
|
+
} catch (t) {
|
|
3595
|
+
e = t;
|
|
3596
|
+
}
|
|
3597
|
+
return e;
|
|
3598
|
+
}(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
|
|
3599
|
+
var u = "string" == typeof r,
|
|
3600
|
+
s = !t && o.isError(i),
|
|
3601
|
+
a = !t && i && !n;
|
|
3602
|
+
if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
|
|
3603
|
+
}
|
|
3604
|
+
l.AssertionError = function (t) {
|
|
3605
|
+
var e;
|
|
3606
|
+
this.name = "AssertionError", this.actual = t.actual, this.expected = t.expected, this.operator = t.operator, t.message ? (this.message = t.message, this.generatedMessage = !1) : (this.message = d(g((e = this).actual), 128) + " " + e.operator + " " + d(g(e.expected), 128), this.generatedMessage = !0);
|
|
3607
|
+
var n = t.stackStartFunction || y;
|
|
3608
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
|
|
3609
|
+
var r = new Error();
|
|
3610
|
+
if (r.stack) {
|
|
3611
|
+
var i = r.stack,
|
|
3612
|
+
o = p(n),
|
|
3613
|
+
u = i.indexOf("\n" + o);
|
|
3614
|
+
if (u >= 0) {
|
|
3615
|
+
var s = i.indexOf("\n", u + 1);
|
|
3616
|
+
i = i.substring(s + 1);
|
|
3617
|
+
}
|
|
3618
|
+
this.stack = i;
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
}, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
|
|
3622
|
+
t != e && y(t, e, n, "==", l.equal);
|
|
3623
|
+
}, l.notEqual = function (t, e, n) {
|
|
3624
|
+
t == e && y(t, e, n, "!=", l.notEqual);
|
|
3625
|
+
}, l.deepEqual = function (t, e, n) {
|
|
3626
|
+
m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
|
|
3627
|
+
}, l.deepStrictEqual = function (t, e, n) {
|
|
3628
|
+
m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
|
|
3629
|
+
}, l.notDeepEqual = function (t, e, n) {
|
|
3630
|
+
m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
|
|
3631
|
+
}, l.notDeepStrictEqual = function t(e, n, r) {
|
|
3632
|
+
m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
|
|
3633
|
+
}, l.strictEqual = function (t, e, n) {
|
|
3634
|
+
t !== e && y(t, e, n, "===", l.strictEqual);
|
|
3635
|
+
}, l.notStrictEqual = function (t, e, n) {
|
|
3636
|
+
t === e && y(t, e, n, "!==", l.notStrictEqual);
|
|
3637
|
+
}, l.throws = function (t, e, n) {
|
|
3638
|
+
E(!0, t, e, n);
|
|
3639
|
+
}, l.doesNotThrow = function (t, e, n) {
|
|
3640
|
+
E(!1, t, e, n);
|
|
3641
|
+
}, l.ifError = function (t) {
|
|
3642
|
+
if (t) throw t;
|
|
3643
|
+
};
|
|
3644
|
+
var O = Object.keys || function (t) {
|
|
3645
|
+
var e = [];
|
|
3646
|
+
for (var n in t) u.call(t, n) && e.push(n);
|
|
3647
|
+
return e;
|
|
3648
|
+
};
|
|
3649
|
+
}).call(e, n(0));
|
|
3650
|
+
}, function (t, e, n) {
|
|
3651
|
+
(function (t, r) {
|
|
3652
|
+
var i = /%[sdj%]/g;
|
|
3653
|
+
e.format = function (t) {
|
|
3654
|
+
if (!v(t)) {
|
|
3655
|
+
for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
|
|
3656
|
+
return e.join(" ");
|
|
3657
|
+
}
|
|
3658
|
+
n = 1;
|
|
3659
|
+
for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
|
|
3660
|
+
if ("%%" === t) return "%";
|
|
3661
|
+
if (n >= o) return t;
|
|
3662
|
+
switch (t) {
|
|
3663
|
+
case "%s":
|
|
3664
|
+
return String(r[n++]);
|
|
3665
|
+
case "%d":
|
|
3666
|
+
return Number(r[n++]);
|
|
3667
|
+
case "%j":
|
|
3668
|
+
try {
|
|
3669
|
+
return JSON.stringify(r[n++]);
|
|
3670
|
+
} catch (t) {
|
|
3671
|
+
return "[Circular]";
|
|
3672
|
+
}
|
|
3673
|
+
default:
|
|
3674
|
+
return t;
|
|
3675
|
+
}
|
|
3676
|
+
}), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
|
|
3677
|
+
return u;
|
|
3678
|
+
}, e.deprecate = function (n, i) {
|
|
3679
|
+
if (m(t.process)) return function () {
|
|
3680
|
+
return e.deprecate(n, i).apply(this, arguments);
|
|
3681
|
+
};
|
|
3682
|
+
if (!0 === r.noDeprecation) return n;
|
|
3683
|
+
var o = !1;
|
|
3684
|
+
return function () {
|
|
3685
|
+
if (!o) {
|
|
3686
|
+
if (r.throwDeprecation) throw new Error(i);
|
|
3687
|
+
r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
|
|
3688
|
+
}
|
|
3689
|
+
return n.apply(this, arguments);
|
|
3690
|
+
};
|
|
3691
|
+
};
|
|
3692
|
+
var o,
|
|
3693
|
+
u = {};
|
|
3694
|
+
function s(t, n) {
|
|
3695
|
+
var r = {
|
|
3696
|
+
seen: [],
|
|
3697
|
+
stylize: c
|
|
3698
|
+
};
|
|
3699
|
+
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), d(n) ? r.showHidden = n : n && e._extend(r, n), m(r.showHidden) && (r.showHidden = !1), m(r.depth) && (r.depth = 2), m(r.colors) && (r.colors = !1), m(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = a), f(r, t, r.depth);
|
|
3700
|
+
}
|
|
3701
|
+
function a(t, e) {
|
|
3702
|
+
var n = s.styles[e];
|
|
3703
|
+
return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
|
|
3704
|
+
}
|
|
3705
|
+
function c(t, e) {
|
|
3706
|
+
return t;
|
|
3707
|
+
}
|
|
3708
|
+
function f(t, n, r) {
|
|
3709
|
+
if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
|
|
3710
|
+
var i = n.inspect(r, t);
|
|
3711
|
+
return v(i) || (i = f(t, i, r)), i;
|
|
3712
|
+
}
|
|
3713
|
+
var o = function (t, e) {
|
|
3714
|
+
if (m(e)) return t.stylize("undefined", "undefined");
|
|
3715
|
+
if (v(e)) {
|
|
3716
|
+
var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3717
|
+
return t.stylize(n, "string");
|
|
3718
|
+
}
|
|
3719
|
+
if (y(e)) return t.stylize("" + e, "number");
|
|
3720
|
+
if (d(e)) return t.stylize("" + e, "boolean");
|
|
3721
|
+
if (g(e)) return t.stylize("null", "null");
|
|
3722
|
+
}(t, n);
|
|
3723
|
+
if (o) return o;
|
|
3724
|
+
var u = Object.keys(n),
|
|
3725
|
+
s = function (t) {
|
|
3726
|
+
var e = {};
|
|
3727
|
+
return t.forEach(function (t, n) {
|
|
3728
|
+
e[t] = !0;
|
|
3729
|
+
}), e;
|
|
3730
|
+
}(u);
|
|
3731
|
+
if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
|
|
3732
|
+
if (0 === u.length) {
|
|
3733
|
+
if (A(n)) {
|
|
3734
|
+
var a = n.name ? ": " + n.name : "";
|
|
3735
|
+
return t.stylize("[Function" + a + "]", "special");
|
|
3736
|
+
}
|
|
3737
|
+
if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
|
|
3738
|
+
if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
|
|
3739
|
+
if (O(n)) return l(n);
|
|
3740
|
+
}
|
|
3741
|
+
var c,
|
|
3742
|
+
w = "",
|
|
3743
|
+
x = !1,
|
|
3744
|
+
T = ["{", "}"];
|
|
3745
|
+
(p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
|
|
3746
|
+
return b(n) && (w = " " + RegExp.prototype.toString.call(n)), E(n) && (w = " " + Date.prototype.toUTCString.call(n)), O(n) && (w = " " + l(n)), 0 !== u.length || x && 0 != n.length ? r < 0 ? b(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(n), c = x ? function (t, e, n, r, i) {
|
|
3747
|
+
for (var o = [], u = 0, s = e.length; u < s; ++u) S(e, String(u)) ? o.push(h(t, e, n, r, String(u), !0)) : o.push("");
|
|
3748
|
+
return i.forEach(function (i) {
|
|
3749
|
+
i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
|
|
3750
|
+
}), o;
|
|
3751
|
+
}(t, n, r, s, u) : u.map(function (e) {
|
|
3752
|
+
return h(t, n, r, s, e, x);
|
|
3753
|
+
}), t.seen.pop(), function (t, e, n) {
|
|
3754
|
+
if (t.reduce(function (t, e) {
|
|
3755
|
+
return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3756
|
+
}, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
|
|
3757
|
+
return n[0] + e + " " + t.join(", ") + " " + n[1];
|
|
3758
|
+
}(c, w, T)) : T[0] + w + T[1];
|
|
3759
|
+
}
|
|
3760
|
+
function l(t) {
|
|
3761
|
+
return "[" + Error.prototype.toString.call(t) + "]";
|
|
3762
|
+
}
|
|
3763
|
+
function h(t, e, n, r, i, o) {
|
|
3764
|
+
var u, s, a;
|
|
3765
|
+
if ((a = Object.getOwnPropertyDescriptor(e, i) || {
|
|
3766
|
+
value: e[i]
|
|
3767
|
+
}).get ? s = a.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : a.set && (s = t.stylize("[Setter]", "special")), S(r, i) || (u = "[" + i + "]"), s || (t.seen.indexOf(a.value) < 0 ? (s = g(n) ? f(t, a.value, null) : f(t, a.value, n - 1)).indexOf("\n") > -1 && (s = o ? s.split("\n").map(function (t) {
|
|
3768
|
+
return " " + t;
|
|
3769
|
+
}).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
|
|
3770
|
+
return " " + t;
|
|
3771
|
+
}).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
|
|
3772
|
+
if (o && i.match(/^\d+$/)) return s;
|
|
3773
|
+
(u = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u = u.substr(1, u.length - 2), u = t.stylize(u, "name")) : (u = u.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u = t.stylize(u, "string"));
|
|
3774
|
+
}
|
|
3775
|
+
return u + ": " + s;
|
|
3776
|
+
}
|
|
3777
|
+
function p(t) {
|
|
3778
|
+
return Array.isArray(t);
|
|
3779
|
+
}
|
|
3780
|
+
function d(t) {
|
|
3781
|
+
return "boolean" == typeof t;
|
|
3782
|
+
}
|
|
3783
|
+
function g(t) {
|
|
3784
|
+
return null === t;
|
|
3785
|
+
}
|
|
3786
|
+
function y(t) {
|
|
3787
|
+
return "number" == typeof t;
|
|
3788
|
+
}
|
|
3789
|
+
function v(t) {
|
|
3790
|
+
return "string" == typeof t;
|
|
3791
|
+
}
|
|
3792
|
+
function m(t) {
|
|
3793
|
+
return void 0 === t;
|
|
3794
|
+
}
|
|
3795
|
+
function b(t) {
|
|
3796
|
+
return w(t) && "[object RegExp]" === x(t);
|
|
3797
|
+
}
|
|
3798
|
+
function w(t) {
|
|
3799
|
+
return "object" == typeof t && null !== t;
|
|
3800
|
+
}
|
|
3801
|
+
function E(t) {
|
|
3802
|
+
return w(t) && "[object Date]" === x(t);
|
|
3803
|
+
}
|
|
3804
|
+
function O(t) {
|
|
3805
|
+
return w(t) && ("[object Error]" === x(t) || t instanceof Error);
|
|
3806
|
+
}
|
|
3807
|
+
function A(t) {
|
|
3808
|
+
return "function" == typeof t;
|
|
3809
|
+
}
|
|
3810
|
+
function x(t) {
|
|
3811
|
+
return Object.prototype.toString.call(t);
|
|
3812
|
+
}
|
|
3813
|
+
function T(t) {
|
|
3814
|
+
return t < 10 ? "0" + t.toString(10) : t.toString(10);
|
|
3815
|
+
}
|
|
3816
|
+
e.debuglog = function (t) {
|
|
3817
|
+
if (m(o) && (o = Object({
|
|
3818
|
+
NODE_ENV: "production"
|
|
3819
|
+
}).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
|
|
3820
|
+
var n = r.pid;
|
|
3821
|
+
u[t] = function () {
|
|
3822
|
+
var r = e.format.apply(e, arguments);
|
|
3823
|
+
console.error("%s %d: %s", t, n, r);
|
|
3824
|
+
};
|
|
3825
|
+
} else u[t] = function () {};
|
|
3826
|
+
return u[t];
|
|
3827
|
+
}, e.inspect = s, s.colors = {
|
|
3828
|
+
bold: [1, 22],
|
|
3829
|
+
italic: [3, 23],
|
|
3830
|
+
underline: [4, 24],
|
|
3831
|
+
inverse: [7, 27],
|
|
3832
|
+
white: [37, 39],
|
|
3833
|
+
grey: [90, 39],
|
|
3834
|
+
black: [30, 39],
|
|
3835
|
+
blue: [34, 39],
|
|
3836
|
+
cyan: [36, 39],
|
|
3837
|
+
green: [32, 39],
|
|
3838
|
+
magenta: [35, 39],
|
|
3839
|
+
red: [31, 39],
|
|
3840
|
+
yellow: [33, 39]
|
|
3841
|
+
}, s.styles = {
|
|
3842
|
+
special: "cyan",
|
|
3843
|
+
number: "yellow",
|
|
3844
|
+
boolean: "yellow",
|
|
3845
|
+
undefined: "grey",
|
|
3846
|
+
null: "bold",
|
|
3847
|
+
string: "green",
|
|
3848
|
+
date: "magenta",
|
|
3849
|
+
regexp: "red"
|
|
3850
|
+
}, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
|
|
3851
|
+
return null == t;
|
|
3852
|
+
}, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
|
|
3853
|
+
return "symbol" == typeof t;
|
|
3854
|
+
}, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
|
|
3855
|
+
return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
|
|
3856
|
+
}, e.isBuffer = n(29);
|
|
3857
|
+
var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
3858
|
+
function S(t, e) {
|
|
3859
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
3860
|
+
}
|
|
3861
|
+
e.log = function () {
|
|
3862
|
+
var t, n;
|
|
3863
|
+
console.log("%s - %s", (t = new Date(), n = [T(t.getHours()), T(t.getMinutes()), T(t.getSeconds())].join(":"), [t.getDate(), _[t.getMonth()], n].join(" ")), e.format.apply(e, arguments));
|
|
3864
|
+
}, e.inherits = n(30), e._extend = function (t, e) {
|
|
3865
|
+
if (!e || !w(e)) return t;
|
|
3866
|
+
for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
|
|
3867
|
+
return t;
|
|
3868
|
+
};
|
|
3869
|
+
}).call(e, n(0), n(28));
|
|
3870
|
+
}, function (t, e) {
|
|
3871
|
+
var n,
|
|
3872
|
+
r,
|
|
3873
|
+
i = t.exports = {};
|
|
3874
|
+
function o() {
|
|
3875
|
+
throw new Error("setTimeout has not been defined");
|
|
3876
|
+
}
|
|
3877
|
+
function u() {
|
|
3878
|
+
throw new Error("clearTimeout has not been defined");
|
|
3879
|
+
}
|
|
3880
|
+
function s(t) {
|
|
3881
|
+
if (n === setTimeout) return setTimeout(t, 0);
|
|
3882
|
+
if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
|
|
3883
|
+
try {
|
|
3884
|
+
return n(t, 0);
|
|
3885
|
+
} catch (e) {
|
|
3886
|
+
try {
|
|
3887
|
+
return n.call(null, t, 0);
|
|
3888
|
+
} catch (e) {
|
|
3889
|
+
return n.call(this, t, 0);
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
!function () {
|
|
3894
|
+
try {
|
|
3895
|
+
n = "function" == typeof setTimeout ? setTimeout : o;
|
|
3896
|
+
} catch (t) {
|
|
3897
|
+
n = o;
|
|
3898
|
+
}
|
|
3899
|
+
try {
|
|
3900
|
+
r = "function" == typeof clearTimeout ? clearTimeout : u;
|
|
3901
|
+
} catch (t) {
|
|
3902
|
+
r = u;
|
|
3903
|
+
}
|
|
3904
|
+
}();
|
|
3905
|
+
var a,
|
|
3906
|
+
c = [],
|
|
3907
|
+
f = !1,
|
|
3908
|
+
l = -1;
|
|
3909
|
+
function h() {
|
|
3910
|
+
f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
|
|
3911
|
+
}
|
|
3912
|
+
function p() {
|
|
3913
|
+
if (!f) {
|
|
3914
|
+
var t = s(h);
|
|
3915
|
+
f = !0;
|
|
3916
|
+
for (var e = c.length; e;) {
|
|
3917
|
+
for (a = c, c = []; ++l < e;) a && a[l].run();
|
|
3918
|
+
l = -1, e = c.length;
|
|
3919
|
+
}
|
|
3920
|
+
a = null, f = !1, function (t) {
|
|
3921
|
+
if (r === clearTimeout) return clearTimeout(t);
|
|
3922
|
+
if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
|
|
3923
|
+
try {
|
|
3924
|
+
r(t);
|
|
3925
|
+
} catch (e) {
|
|
3926
|
+
try {
|
|
3927
|
+
return r.call(null, t);
|
|
3928
|
+
} catch (e) {
|
|
3929
|
+
return r.call(this, t);
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
}(t);
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
function d(t, e) {
|
|
3936
|
+
this.fun = t, this.array = e;
|
|
3937
|
+
}
|
|
3938
|
+
function g() {}
|
|
3939
|
+
i.nextTick = function (t) {
|
|
3940
|
+
var e = new Array(arguments.length - 1);
|
|
3941
|
+
if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
3942
|
+
c.push(new d(t, e)), 1 !== c.length || f || s(p);
|
|
3943
|
+
}, d.prototype.run = function () {
|
|
3944
|
+
this.fun.apply(null, this.array);
|
|
3945
|
+
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = g, i.addListener = g, i.once = g, i.off = g, i.removeListener = g, i.removeAllListeners = g, i.emit = g, i.prependListener = g, i.prependOnceListener = g, i.listeners = function (t) {
|
|
3946
|
+
return [];
|
|
3947
|
+
}, i.binding = function (t) {
|
|
3948
|
+
throw new Error("process.binding is not supported");
|
|
3949
|
+
}, i.cwd = function () {
|
|
3950
|
+
return "/";
|
|
3951
|
+
}, i.chdir = function (t) {
|
|
3952
|
+
throw new Error("process.chdir is not supported");
|
|
3953
|
+
}, i.umask = function () {
|
|
3954
|
+
return 0;
|
|
3955
|
+
};
|
|
3956
|
+
}, function (t, e) {
|
|
3957
|
+
t.exports = function (t) {
|
|
3958
|
+
return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
|
|
3959
|
+
};
|
|
3960
|
+
}, function (t, e) {
|
|
3961
|
+
"function" == typeof Object.create ? t.exports = function (t, e) {
|
|
3962
|
+
t.super_ = e, t.prototype = Object.create(e.prototype, {
|
|
3963
|
+
constructor: {
|
|
3964
|
+
value: t,
|
|
3965
|
+
enumerable: !1,
|
|
3966
|
+
writable: !0,
|
|
3967
|
+
configurable: !0
|
|
3968
|
+
}
|
|
3969
|
+
});
|
|
3970
|
+
} : t.exports = function (t, e) {
|
|
3971
|
+
t.super_ = e;
|
|
3972
|
+
var n = function () {};
|
|
3973
|
+
n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
|
|
3974
|
+
};
|
|
3975
|
+
}, function (t, e, n) {
|
|
3979
3976
|
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3977
|
+
t.exports = function (t, e, n) {
|
|
3978
|
+
var r = e.value,
|
|
3979
|
+
i = t.innerText,
|
|
3980
|
+
o = i.toLowerCase().indexOf(r.toLowerCase()),
|
|
3981
|
+
u = r.length;
|
|
3982
|
+
return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
|
|
3983
|
+
};
|
|
3984
|
+
}, function (t, e, n) {
|
|
3988
3985
|
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
3986
|
+
var r,
|
|
3987
|
+
i = n(33),
|
|
3988
|
+
o = (r = i) && r.__esModule ? r : {
|
|
3989
|
+
default: r
|
|
3990
|
+
};
|
|
3991
|
+
var u = {
|
|
3992
|
+
input: ".combobox",
|
|
3993
|
+
list: ".listbox",
|
|
3994
|
+
options: ".option",
|
|
3995
|
+
groups: null,
|
|
3996
|
+
openClass: "open",
|
|
3997
|
+
activeClass: "active",
|
|
3998
|
+
selectedClass: "selected",
|
|
3999
|
+
useLiveRegion: !0,
|
|
4000
|
+
allowEmpty: !0,
|
|
4001
|
+
multiselect: !1,
|
|
4002
|
+
noResultsText: null,
|
|
4003
|
+
selectionValue: function (t) {
|
|
4004
|
+
return t.map(function (t) {
|
|
4005
|
+
return t.innerText.trim();
|
|
4006
|
+
}).join(" - ");
|
|
4007
|
+
},
|
|
4008
|
+
optionValue: function (t) {
|
|
4009
|
+
return t.innerHTML;
|
|
4010
|
+
},
|
|
4011
|
+
announcement: {
|
|
4012
|
+
count: function (t) {
|
|
4013
|
+
return t + " options available";
|
|
4014
|
+
},
|
|
4015
|
+
selected: "Selected."
|
|
4016
|
+
},
|
|
4017
|
+
filter: "contains",
|
|
4018
|
+
autoFilter: !0
|
|
4019
|
+
};
|
|
4020
|
+
t.exports = function (t) {
|
|
4021
|
+
var e = {},
|
|
4022
|
+
n = {};
|
|
4023
|
+
return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
|
|
4024
|
+
};
|
|
4025
|
+
}, function (t, e, n) {
|
|
4029
4026
|
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4027
|
+
var r = n(34);
|
|
4028
|
+
function i(t, e) {
|
|
4029
|
+
for (var n in e) o(e, n) && (t[n] = e[n]);
|
|
4030
|
+
}
|
|
4031
|
+
function o(t, e) {
|
|
4032
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
4033
|
+
}
|
|
4034
|
+
t.exports = function (t) {
|
|
4035
|
+
r(t) || (t = {});
|
|
4036
|
+
for (var e = arguments.length, n = 1; n < e; n++) {
|
|
4037
|
+
var o = arguments[n];
|
|
4038
|
+
r(o) && i(t, o);
|
|
4039
|
+
}
|
|
4040
|
+
return t;
|
|
4041
|
+
};
|
|
4042
|
+
}, function (t, e, n) {
|
|
4046
4043
|
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4044
|
+
t.exports = function (t) {
|
|
4045
|
+
return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
|
|
4046
|
+
};
|
|
4047
|
+
}, function (t, e, n) {
|
|
4051
4048
|
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
});
|
|
4060
|
-
}(dist));
|
|
4049
|
+
t.exports = function (t, e, n, r, i) {
|
|
4050
|
+
var o = "true" === t.getAttribute("aria-selected"),
|
|
4051
|
+
u = e.announcement.selected,
|
|
4052
|
+
s = t.innerText;
|
|
4053
|
+
s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
|
|
4054
|
+
};
|
|
4055
|
+
}]);
|
|
4056
|
+
});
|
|
4057
|
+
} (dist));
|
|
4061
4058
|
|
|
4062
|
-
var
|
|
4059
|
+
var distExports = dist.exports;
|
|
4060
|
+
var Combobo = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
4063
4061
|
|
|
4064
4062
|
const countries = [{
|
|
4065
4063
|
"name": "Afghanistan",
|
|
@@ -5105,10 +5103,10 @@ const CountrySelect = ({
|
|
|
5105
5103
|
if (evt.key === 'Escape') combo.close();
|
|
5106
5104
|
}
|
|
5107
5105
|
});
|
|
5108
|
-
elInputRef === null || elInputRef === void 0
|
|
5106
|
+
elInputRef === null || elInputRef === void 0 || (_elInputRef$current = elInputRef.current) === null || _elInputRef$current === void 0 || _elInputRef$current.addEventListener('keydown', onKeyDown);
|
|
5109
5107
|
return () => {
|
|
5110
5108
|
var _elInputRef$current2;
|
|
5111
|
-
elInputRef === null || elInputRef === void 0
|
|
5109
|
+
elInputRef === null || elInputRef === void 0 || (_elInputRef$current2 = elInputRef.current) === null || _elInputRef$current2 === void 0 || _elInputRef$current2.removeEventListener('keydown', onKeyDown);
|
|
5112
5110
|
if (combo && typeof combo.destroy === 'function') combo.destroy();
|
|
5113
5111
|
};
|
|
5114
5112
|
}
|
|
@@ -5206,8 +5204,8 @@ const FormComposer = ({
|
|
|
5206
5204
|
case 'number':
|
|
5207
5205
|
case 'textfield':
|
|
5208
5206
|
{
|
|
5209
|
-
var _field$editor
|
|
5210
|
-
const instructions = field === null || field === void 0
|
|
5207
|
+
var _field$editor;
|
|
5208
|
+
const instructions = field === null || field === void 0 || (_field$editor = field.editor) === null || _field$editor === void 0 || (_field$editor = _field$editor.instructions) === null || _field$editor === void 0 ? void 0 : _field$editor[defaultLanguage];
|
|
5211
5209
|
return /*#__PURE__*/React.createElement(Textfield, {
|
|
5212
5210
|
key: `${field.id}-${idx}`,
|
|
5213
5211
|
field: field,
|
|
@@ -5344,7 +5342,7 @@ const FormComposer = ({
|
|
|
5344
5342
|
}
|
|
5345
5343
|
case 'country':
|
|
5346
5344
|
{
|
|
5347
|
-
var _field$default, _field$editor2
|
|
5345
|
+
var _field$default, _field$editor2;
|
|
5348
5346
|
return /*#__PURE__*/React.createElement(CountrySelect, {
|
|
5349
5347
|
key: `${field.id}-${idx}`,
|
|
5350
5348
|
formId: formId,
|
|
@@ -5352,8 +5350,8 @@ const FormComposer = ({
|
|
|
5352
5350
|
id: field.id,
|
|
5353
5351
|
label: field.name && field.name[defaultLanguage],
|
|
5354
5352
|
validations: field.validations,
|
|
5355
|
-
defaultValue: formData && formData[field.id] || (field === null || field === void 0
|
|
5356
|
-
placeholder: field === null || field === void 0
|
|
5353
|
+
defaultValue: formData && formData[field.id] || (field === null || field === void 0 || (_field$default = field.default) === null || _field$default === void 0 ? void 0 : _field$default[defaultLanguage]),
|
|
5354
|
+
placeholder: field === null || field === void 0 || (_field$editor2 = field.editor) === null || _field$editor2 === void 0 || (_field$editor2 = _field$editor2.properties) === null || _field$editor2 === void 0 || (_field$editor2 = _field$editor2.placeholderText) === null || _field$editor2 === void 0 ? void 0 : _field$editor2[defaultLanguage]
|
|
5357
5355
|
});
|
|
5358
5356
|
}
|
|
5359
5357
|
case 'content':
|
|
@@ -5363,7 +5361,7 @@ const FormComposer = ({
|
|
|
5363
5361
|
name,
|
|
5364
5362
|
editor
|
|
5365
5363
|
} = field || {};
|
|
5366
|
-
const instructions = editor === null || editor === void 0
|
|
5364
|
+
const instructions = editor === null || editor === void 0 || (_editor$instructions = editor.instructions) === null || _editor$instructions === void 0 ? void 0 : _editor$instructions[defaultLanguage];
|
|
5367
5365
|
return /*#__PURE__*/React.createElement("span", {
|
|
5368
5366
|
className: "form__content",
|
|
5369
5367
|
"data-form": "title",
|