@weni/unnnic-system 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/unnnic.common.js +4319 -160
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +4319 -160
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +74 -74
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/delete-2-1.svg +3 -0
- package/src/assets/sample-3s.mp3 +0 -0
- package/src/components/AudioRecorder/AudioHandler.vue +85 -0
- package/src/components/AudioRecorder/AudioPlayer.vue +121 -0
- package/src/components/AudioRecorder/AudioRecorder.vue +292 -0
- package/src/components/CircleProgressBar/CircleProgressBar.vue +146 -0
- package/src/components/index.js +185 -179
- package/src/stories/AudioRecorder.stories.js +42 -0
- package/src/stories/CircleProgressBar.stories.js +36 -0
- package/src/utils/icons.js +313 -311
- package/src/assets/img/emoji/u1F601.png +0 -0
- package/src/assets/img/emoji/u1F610.png +0 -0
- package/src/assets/img/emoji/u1F625.png +0 -0
- package/src/assets/img/emoji/u1F641.png +0 -0
- package/src/assets/img/emoji/u1F645.png +0 -0
package/dist/unnnic.common.js
CHANGED
|
@@ -1245,6 +1245,44 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
1245
1245
|
|
|
1246
1246
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 13.1255C22.2437 13.1255 24.0625 11.3066 24.0625 9.06299C24.0625 6.81933 22.2437 5.00049 20 5.00049C17.7563 5.00049 15.9375 6.81933 15.9375 9.06299C15.9375 11.3066 17.7563 13.1255 20 13.1255Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M20 24.063C22.2437 24.063 24.0625 22.2441 24.0625 20.0005C24.0625 17.7568 22.2437 15.938 20 15.938C17.7563 15.938 15.9375 17.7568 15.9375 20.0005C15.9375 22.2441 17.7563 24.063 20 24.063Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M20 35.0005C22.2437 35.0005 24.0625 33.1816 24.0625 30.938C24.0625 28.6943 22.2437 26.8755 20 26.8755C17.7563 26.8755 15.9375 28.6943 15.9375 30.938C15.9375 33.1816 17.7563 35.0005 20 35.0005Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
1247
1247
|
|
|
1248
|
+
/***/ }),
|
|
1249
|
+
|
|
1250
|
+
/***/ "0ccb":
|
|
1251
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1252
|
+
|
|
1253
|
+
// https://github.com/tc39/proposal-string-pad-start-end
|
|
1254
|
+
var toLength = __webpack_require__("50c4");
|
|
1255
|
+
var repeat = __webpack_require__("1148");
|
|
1256
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
1257
|
+
|
|
1258
|
+
var ceil = Math.ceil;
|
|
1259
|
+
|
|
1260
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
1261
|
+
var createMethod = function (IS_END) {
|
|
1262
|
+
return function ($this, maxLength, fillString) {
|
|
1263
|
+
var S = String(requireObjectCoercible($this));
|
|
1264
|
+
var stringLength = S.length;
|
|
1265
|
+
var fillStr = fillString === undefined ? ' ' : String(fillString);
|
|
1266
|
+
var intMaxLength = toLength(maxLength);
|
|
1267
|
+
var fillLen, stringFiller;
|
|
1268
|
+
if (intMaxLength <= stringLength || fillStr == '') return S;
|
|
1269
|
+
fillLen = intMaxLength - stringLength;
|
|
1270
|
+
stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
|
|
1271
|
+
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
|
|
1272
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
module.exports = {
|
|
1277
|
+
// `String.prototype.padStart` method
|
|
1278
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padstart
|
|
1279
|
+
start: createMethod(false),
|
|
1280
|
+
// `String.prototype.padEnd` method
|
|
1281
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padend
|
|
1282
|
+
end: createMethod(true)
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
|
|
1248
1286
|
/***/ }),
|
|
1249
1287
|
|
|
1250
1288
|
/***/ "0cfb":
|
|
@@ -1262,6 +1300,46 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
1262
1300
|
});
|
|
1263
1301
|
|
|
1264
1302
|
|
|
1303
|
+
/***/ }),
|
|
1304
|
+
|
|
1305
|
+
/***/ "0d3b":
|
|
1306
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1307
|
+
|
|
1308
|
+
var fails = __webpack_require__("d039");
|
|
1309
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
1310
|
+
var IS_PURE = __webpack_require__("c430");
|
|
1311
|
+
|
|
1312
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1313
|
+
|
|
1314
|
+
module.exports = !fails(function () {
|
|
1315
|
+
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
1316
|
+
var searchParams = url.searchParams;
|
|
1317
|
+
var result = '';
|
|
1318
|
+
url.pathname = 'c%20d';
|
|
1319
|
+
searchParams.forEach(function (value, key) {
|
|
1320
|
+
searchParams['delete']('b');
|
|
1321
|
+
result += key + value;
|
|
1322
|
+
});
|
|
1323
|
+
return (IS_PURE && !url.toJSON)
|
|
1324
|
+
|| !searchParams.sort
|
|
1325
|
+
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
1326
|
+
|| searchParams.get('c') !== '3'
|
|
1327
|
+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
1328
|
+
|| !searchParams[ITERATOR]
|
|
1329
|
+
// throws in Edge
|
|
1330
|
+
|| new URL('https://a@b').username !== 'a'
|
|
1331
|
+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
1332
|
+
// not punycoded in Edge
|
|
1333
|
+
|| new URL('http://тест').host !== 'xn--e1aybc'
|
|
1334
|
+
// not escaped in Chrome 62-
|
|
1335
|
+
|| new URL('http://a#б').hash !== '#%D0%B1'
|
|
1336
|
+
// fails in Chrome 66-
|
|
1337
|
+
|| result !== 'a1c3'
|
|
1338
|
+
// throws in Safari
|
|
1339
|
+
|| new URL('http://x', undefined).host !== 'x';
|
|
1340
|
+
});
|
|
1341
|
+
|
|
1342
|
+
|
|
1265
1343
|
/***/ }),
|
|
1266
1344
|
|
|
1267
1345
|
/***/ "0dae":
|
|
@@ -2421,6 +2499,18 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
|
|
|
2421
2499
|
} : [].forEach;
|
|
2422
2500
|
|
|
2423
2501
|
|
|
2502
|
+
/***/ }),
|
|
2503
|
+
|
|
2504
|
+
/***/ "19aa":
|
|
2505
|
+
/***/ (function(module, exports) {
|
|
2506
|
+
|
|
2507
|
+
module.exports = function (it, Constructor, name) {
|
|
2508
|
+
if (!(it instanceof Constructor)) {
|
|
2509
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
2510
|
+
} return it;
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
|
|
2424
2514
|
/***/ }),
|
|
2425
2515
|
|
|
2426
2516
|
/***/ "19c9":
|
|
@@ -2589,6 +2679,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
2589
2679
|
// extracted by mini-css-extract-plugin
|
|
2590
2680
|
module.exports = {"unnnicColorBackgroundSolo":"#E8F4F4"};
|
|
2591
2681
|
|
|
2682
|
+
/***/ }),
|
|
2683
|
+
|
|
2684
|
+
/***/ "1cdc":
|
|
2685
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2686
|
+
|
|
2687
|
+
var userAgent = __webpack_require__("342f");
|
|
2688
|
+
|
|
2689
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
2690
|
+
|
|
2691
|
+
|
|
2592
2692
|
/***/ }),
|
|
2593
2693
|
|
|
2594
2694
|
/***/ "1cfd":
|
|
@@ -3120,6 +3220,71 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
3120
3220
|
|
|
3121
3221
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.81227 31.2515C6.26115 31.2515 5 29.9903 5 28.4392V7.81593C5 6.26481 6.26115 5.00366 7.81227 5.00366H30.3104C31.8615 5.00366 33.1227 6.26481 33.1227 7.81593V15.3153C33.1227 15.8328 32.7027 16.2527 32.1852 16.2527C31.6678 16.2527 31.2478 15.8328 31.2478 15.3153V12.503H6.87484V28.4392C6.87484 28.9567 7.29481 29.3766 7.81227 29.3766H15.3116C15.8291 29.3766 16.2491 29.7966 16.2491 30.314C16.2491 30.8315 15.8291 31.2515 15.3116 31.2515H7.81227ZM31.2478 10.6282V7.81593C31.2478 7.29847 30.8279 6.87851 30.3104 6.87851H7.81227C7.29481 6.87851 6.87484 7.29847 6.87484 7.81593V10.6282H31.2478Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M19.0601 34.9976C18.8101 34.9976 18.5739 34.9001 18.3977 34.7226C18.1752 34.5014 18.079 34.1839 18.1415 33.8765L19.0789 29.1894C19.1151 29.0069 19.2039 28.8406 19.3351 28.7094L28.8731 19.1727C29.5492 18.4965 30.4479 18.124 31.4053 18.124C32.3628 18.124 33.2614 18.4965 33.9376 19.1727C34.6213 19.8551 34.9988 20.7576 35 21.7137C35 22.6711 34.6288 23.5698 33.9539 24.2473L24.4122 33.784C24.2809 33.9152 24.1147 34.004 23.9322 34.0402L19.2451 34.9776C19.1826 34.9914 19.1214 34.9976 19.0601 34.9976ZM20.255 32.8653L23.2848 32.2591L32.6252 22.9236C32.9465 22.6012 33.1239 22.1737 33.1227 21.7175C33.1227 21.2613 32.944 20.8338 32.6215 20.5113C32.2928 20.1826 31.8591 20.0026 31.3991 20.0026C30.9441 20.0026 30.5179 20.1789 30.1967 20.5001L20.86 29.8356L20.255 32.8653Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
3122
3222
|
|
|
3223
|
+
/***/ }),
|
|
3224
|
+
|
|
3225
|
+
/***/ "2266":
|
|
3226
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3227
|
+
|
|
3228
|
+
var anObject = __webpack_require__("825a");
|
|
3229
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
3230
|
+
var toLength = __webpack_require__("50c4");
|
|
3231
|
+
var bind = __webpack_require__("0366");
|
|
3232
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
3233
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
3234
|
+
|
|
3235
|
+
var Result = function (stopped, result) {
|
|
3236
|
+
this.stopped = stopped;
|
|
3237
|
+
this.result = result;
|
|
3238
|
+
};
|
|
3239
|
+
|
|
3240
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
3241
|
+
var that = options && options.that;
|
|
3242
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
3243
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
3244
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
3245
|
+
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
|
3246
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
3247
|
+
|
|
3248
|
+
var stop = function (condition) {
|
|
3249
|
+
if (iterator) iteratorClose(iterator);
|
|
3250
|
+
return new Result(true, condition);
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
var callFn = function (value) {
|
|
3254
|
+
if (AS_ENTRIES) {
|
|
3255
|
+
anObject(value);
|
|
3256
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
3257
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
if (IS_ITERATOR) {
|
|
3261
|
+
iterator = iterable;
|
|
3262
|
+
} else {
|
|
3263
|
+
iterFn = getIteratorMethod(iterable);
|
|
3264
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
3265
|
+
// optimisation for array iterators
|
|
3266
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
3267
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
3268
|
+
result = callFn(iterable[index]);
|
|
3269
|
+
if (result && result instanceof Result) return result;
|
|
3270
|
+
} return new Result(false);
|
|
3271
|
+
}
|
|
3272
|
+
iterator = iterFn.call(iterable);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
next = iterator.next;
|
|
3276
|
+
while (!(step = next.call(iterator)).done) {
|
|
3277
|
+
try {
|
|
3278
|
+
result = callFn(step.value);
|
|
3279
|
+
} catch (error) {
|
|
3280
|
+
iteratorClose(iterator);
|
|
3281
|
+
throw error;
|
|
3282
|
+
}
|
|
3283
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
3284
|
+
} return new Result(false);
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
|
|
3123
3288
|
/***/ }),
|
|
3124
3289
|
|
|
3125
3290
|
/***/ "2281":
|
|
@@ -3712,6 +3877,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
3712
3877
|
}
|
|
3713
3878
|
|
|
3714
3879
|
|
|
3880
|
+
/***/ }),
|
|
3881
|
+
|
|
3882
|
+
/***/ "2626":
|
|
3883
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3884
|
+
|
|
3885
|
+
"use strict";
|
|
3886
|
+
|
|
3887
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
3888
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
3889
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
3890
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
3891
|
+
|
|
3892
|
+
var SPECIES = wellKnownSymbol('species');
|
|
3893
|
+
|
|
3894
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
3895
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
3896
|
+
var defineProperty = definePropertyModule.f;
|
|
3897
|
+
|
|
3898
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
3899
|
+
defineProperty(Constructor, SPECIES, {
|
|
3900
|
+
configurable: true,
|
|
3901
|
+
get: function () { return this; }
|
|
3902
|
+
});
|
|
3903
|
+
}
|
|
3904
|
+
};
|
|
3905
|
+
|
|
3906
|
+
|
|
3715
3907
|
/***/ }),
|
|
3716
3908
|
|
|
3717
3909
|
/***/ "267f":
|
|
@@ -4153,6 +4345,1021 @@ module.exports = function (iterator) {
|
|
|
4153
4345
|
};
|
|
4154
4346
|
|
|
4155
4347
|
|
|
4348
|
+
/***/ }),
|
|
4349
|
+
|
|
4350
|
+
/***/ "2b3d":
|
|
4351
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4352
|
+
|
|
4353
|
+
"use strict";
|
|
4354
|
+
|
|
4355
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
4356
|
+
__webpack_require__("3ca3");
|
|
4357
|
+
var $ = __webpack_require__("23e7");
|
|
4358
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4359
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
4360
|
+
var global = __webpack_require__("da84");
|
|
4361
|
+
var defineProperties = __webpack_require__("37e8");
|
|
4362
|
+
var redefine = __webpack_require__("6eeb");
|
|
4363
|
+
var anInstance = __webpack_require__("19aa");
|
|
4364
|
+
var has = __webpack_require__("5135");
|
|
4365
|
+
var assign = __webpack_require__("60da");
|
|
4366
|
+
var arrayFrom = __webpack_require__("4df4");
|
|
4367
|
+
var codeAt = __webpack_require__("6547").codeAt;
|
|
4368
|
+
var toASCII = __webpack_require__("5fb2");
|
|
4369
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
4370
|
+
var URLSearchParamsModule = __webpack_require__("9861");
|
|
4371
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
4372
|
+
|
|
4373
|
+
var NativeURL = global.URL;
|
|
4374
|
+
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
|
|
4375
|
+
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
4376
|
+
var setInternalState = InternalStateModule.set;
|
|
4377
|
+
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
4378
|
+
var floor = Math.floor;
|
|
4379
|
+
var pow = Math.pow;
|
|
4380
|
+
|
|
4381
|
+
var INVALID_AUTHORITY = 'Invalid authority';
|
|
4382
|
+
var INVALID_SCHEME = 'Invalid scheme';
|
|
4383
|
+
var INVALID_HOST = 'Invalid host';
|
|
4384
|
+
var INVALID_PORT = 'Invalid port';
|
|
4385
|
+
|
|
4386
|
+
var ALPHA = /[A-Za-z]/;
|
|
4387
|
+
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
|
|
4388
|
+
var DIGIT = /\d/;
|
|
4389
|
+
var HEX_START = /^(0x|0X)/;
|
|
4390
|
+
var OCT = /^[0-7]+$/;
|
|
4391
|
+
var DEC = /^\d+$/;
|
|
4392
|
+
var HEX = /^[\dA-Fa-f]+$/;
|
|
4393
|
+
// eslint-disable-next-line no-control-regex
|
|
4394
|
+
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/;
|
|
4395
|
+
// eslint-disable-next-line no-control-regex
|
|
4396
|
+
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/;
|
|
4397
|
+
// eslint-disable-next-line no-control-regex
|
|
4398
|
+
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
|
|
4399
|
+
// eslint-disable-next-line no-control-regex
|
|
4400
|
+
var TAB_AND_NEW_LINE = /[\u0009\u000A\u000D]/g;
|
|
4401
|
+
var EOF;
|
|
4402
|
+
|
|
4403
|
+
var parseHost = function (url, input) {
|
|
4404
|
+
var result, codePoints, index;
|
|
4405
|
+
if (input.charAt(0) == '[') {
|
|
4406
|
+
if (input.charAt(input.length - 1) != ']') return INVALID_HOST;
|
|
4407
|
+
result = parseIPv6(input.slice(1, -1));
|
|
4408
|
+
if (!result) return INVALID_HOST;
|
|
4409
|
+
url.host = result;
|
|
4410
|
+
// opaque host
|
|
4411
|
+
} else if (!isSpecial(url)) {
|
|
4412
|
+
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
|
|
4413
|
+
result = '';
|
|
4414
|
+
codePoints = arrayFrom(input);
|
|
4415
|
+
for (index = 0; index < codePoints.length; index++) {
|
|
4416
|
+
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
|
|
4417
|
+
}
|
|
4418
|
+
url.host = result;
|
|
4419
|
+
} else {
|
|
4420
|
+
input = toASCII(input);
|
|
4421
|
+
if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
|
|
4422
|
+
result = parseIPv4(input);
|
|
4423
|
+
if (result === null) return INVALID_HOST;
|
|
4424
|
+
url.host = result;
|
|
4425
|
+
}
|
|
4426
|
+
};
|
|
4427
|
+
|
|
4428
|
+
var parseIPv4 = function (input) {
|
|
4429
|
+
var parts = input.split('.');
|
|
4430
|
+
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
4431
|
+
if (parts.length && parts[parts.length - 1] == '') {
|
|
4432
|
+
parts.pop();
|
|
4433
|
+
}
|
|
4434
|
+
partsLength = parts.length;
|
|
4435
|
+
if (partsLength > 4) return input;
|
|
4436
|
+
numbers = [];
|
|
4437
|
+
for (index = 0; index < partsLength; index++) {
|
|
4438
|
+
part = parts[index];
|
|
4439
|
+
if (part == '') return input;
|
|
4440
|
+
radix = 10;
|
|
4441
|
+
if (part.length > 1 && part.charAt(0) == '0') {
|
|
4442
|
+
radix = HEX_START.test(part) ? 16 : 8;
|
|
4443
|
+
part = part.slice(radix == 8 ? 1 : 2);
|
|
4444
|
+
}
|
|
4445
|
+
if (part === '') {
|
|
4446
|
+
number = 0;
|
|
4447
|
+
} else {
|
|
4448
|
+
if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;
|
|
4449
|
+
number = parseInt(part, radix);
|
|
4450
|
+
}
|
|
4451
|
+
numbers.push(number);
|
|
4452
|
+
}
|
|
4453
|
+
for (index = 0; index < partsLength; index++) {
|
|
4454
|
+
number = numbers[index];
|
|
4455
|
+
if (index == partsLength - 1) {
|
|
4456
|
+
if (number >= pow(256, 5 - partsLength)) return null;
|
|
4457
|
+
} else if (number > 255) return null;
|
|
4458
|
+
}
|
|
4459
|
+
ipv4 = numbers.pop();
|
|
4460
|
+
for (index = 0; index < numbers.length; index++) {
|
|
4461
|
+
ipv4 += numbers[index] * pow(256, 3 - index);
|
|
4462
|
+
}
|
|
4463
|
+
return ipv4;
|
|
4464
|
+
};
|
|
4465
|
+
|
|
4466
|
+
// eslint-disable-next-line max-statements
|
|
4467
|
+
var parseIPv6 = function (input) {
|
|
4468
|
+
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
4469
|
+
var pieceIndex = 0;
|
|
4470
|
+
var compress = null;
|
|
4471
|
+
var pointer = 0;
|
|
4472
|
+
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
|
|
4473
|
+
|
|
4474
|
+
var char = function () {
|
|
4475
|
+
return input.charAt(pointer);
|
|
4476
|
+
};
|
|
4477
|
+
|
|
4478
|
+
if (char() == ':') {
|
|
4479
|
+
if (input.charAt(1) != ':') return;
|
|
4480
|
+
pointer += 2;
|
|
4481
|
+
pieceIndex++;
|
|
4482
|
+
compress = pieceIndex;
|
|
4483
|
+
}
|
|
4484
|
+
while (char()) {
|
|
4485
|
+
if (pieceIndex == 8) return;
|
|
4486
|
+
if (char() == ':') {
|
|
4487
|
+
if (compress !== null) return;
|
|
4488
|
+
pointer++;
|
|
4489
|
+
pieceIndex++;
|
|
4490
|
+
compress = pieceIndex;
|
|
4491
|
+
continue;
|
|
4492
|
+
}
|
|
4493
|
+
value = length = 0;
|
|
4494
|
+
while (length < 4 && HEX.test(char())) {
|
|
4495
|
+
value = value * 16 + parseInt(char(), 16);
|
|
4496
|
+
pointer++;
|
|
4497
|
+
length++;
|
|
4498
|
+
}
|
|
4499
|
+
if (char() == '.') {
|
|
4500
|
+
if (length == 0) return;
|
|
4501
|
+
pointer -= length;
|
|
4502
|
+
if (pieceIndex > 6) return;
|
|
4503
|
+
numbersSeen = 0;
|
|
4504
|
+
while (char()) {
|
|
4505
|
+
ipv4Piece = null;
|
|
4506
|
+
if (numbersSeen > 0) {
|
|
4507
|
+
if (char() == '.' && numbersSeen < 4) pointer++;
|
|
4508
|
+
else return;
|
|
4509
|
+
}
|
|
4510
|
+
if (!DIGIT.test(char())) return;
|
|
4511
|
+
while (DIGIT.test(char())) {
|
|
4512
|
+
number = parseInt(char(), 10);
|
|
4513
|
+
if (ipv4Piece === null) ipv4Piece = number;
|
|
4514
|
+
else if (ipv4Piece == 0) return;
|
|
4515
|
+
else ipv4Piece = ipv4Piece * 10 + number;
|
|
4516
|
+
if (ipv4Piece > 255) return;
|
|
4517
|
+
pointer++;
|
|
4518
|
+
}
|
|
4519
|
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
4520
|
+
numbersSeen++;
|
|
4521
|
+
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
|
|
4522
|
+
}
|
|
4523
|
+
if (numbersSeen != 4) return;
|
|
4524
|
+
break;
|
|
4525
|
+
} else if (char() == ':') {
|
|
4526
|
+
pointer++;
|
|
4527
|
+
if (!char()) return;
|
|
4528
|
+
} else if (char()) return;
|
|
4529
|
+
address[pieceIndex++] = value;
|
|
4530
|
+
}
|
|
4531
|
+
if (compress !== null) {
|
|
4532
|
+
swaps = pieceIndex - compress;
|
|
4533
|
+
pieceIndex = 7;
|
|
4534
|
+
while (pieceIndex != 0 && swaps > 0) {
|
|
4535
|
+
swap = address[pieceIndex];
|
|
4536
|
+
address[pieceIndex--] = address[compress + swaps - 1];
|
|
4537
|
+
address[compress + --swaps] = swap;
|
|
4538
|
+
}
|
|
4539
|
+
} else if (pieceIndex != 8) return;
|
|
4540
|
+
return address;
|
|
4541
|
+
};
|
|
4542
|
+
|
|
4543
|
+
var findLongestZeroSequence = function (ipv6) {
|
|
4544
|
+
var maxIndex = null;
|
|
4545
|
+
var maxLength = 1;
|
|
4546
|
+
var currStart = null;
|
|
4547
|
+
var currLength = 0;
|
|
4548
|
+
var index = 0;
|
|
4549
|
+
for (; index < 8; index++) {
|
|
4550
|
+
if (ipv6[index] !== 0) {
|
|
4551
|
+
if (currLength > maxLength) {
|
|
4552
|
+
maxIndex = currStart;
|
|
4553
|
+
maxLength = currLength;
|
|
4554
|
+
}
|
|
4555
|
+
currStart = null;
|
|
4556
|
+
currLength = 0;
|
|
4557
|
+
} else {
|
|
4558
|
+
if (currStart === null) currStart = index;
|
|
4559
|
+
++currLength;
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
if (currLength > maxLength) {
|
|
4563
|
+
maxIndex = currStart;
|
|
4564
|
+
maxLength = currLength;
|
|
4565
|
+
}
|
|
4566
|
+
return maxIndex;
|
|
4567
|
+
};
|
|
4568
|
+
|
|
4569
|
+
var serializeHost = function (host) {
|
|
4570
|
+
var result, index, compress, ignore0;
|
|
4571
|
+
// ipv4
|
|
4572
|
+
if (typeof host == 'number') {
|
|
4573
|
+
result = [];
|
|
4574
|
+
for (index = 0; index < 4; index++) {
|
|
4575
|
+
result.unshift(host % 256);
|
|
4576
|
+
host = floor(host / 256);
|
|
4577
|
+
} return result.join('.');
|
|
4578
|
+
// ipv6
|
|
4579
|
+
} else if (typeof host == 'object') {
|
|
4580
|
+
result = '';
|
|
4581
|
+
compress = findLongestZeroSequence(host);
|
|
4582
|
+
for (index = 0; index < 8; index++) {
|
|
4583
|
+
if (ignore0 && host[index] === 0) continue;
|
|
4584
|
+
if (ignore0) ignore0 = false;
|
|
4585
|
+
if (compress === index) {
|
|
4586
|
+
result += index ? ':' : '::';
|
|
4587
|
+
ignore0 = true;
|
|
4588
|
+
} else {
|
|
4589
|
+
result += host[index].toString(16);
|
|
4590
|
+
if (index < 7) result += ':';
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
return '[' + result + ']';
|
|
4594
|
+
} return host;
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
var C0ControlPercentEncodeSet = {};
|
|
4598
|
+
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
4599
|
+
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
|
4600
|
+
});
|
|
4601
|
+
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
|
4602
|
+
'#': 1, '?': 1, '{': 1, '}': 1
|
|
4603
|
+
});
|
|
4604
|
+
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
4605
|
+
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
|
4606
|
+
});
|
|
4607
|
+
|
|
4608
|
+
var percentEncode = function (char, set) {
|
|
4609
|
+
var code = codeAt(char, 0);
|
|
4610
|
+
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
|
|
4611
|
+
};
|
|
4612
|
+
|
|
4613
|
+
var specialSchemes = {
|
|
4614
|
+
ftp: 21,
|
|
4615
|
+
file: null,
|
|
4616
|
+
http: 80,
|
|
4617
|
+
https: 443,
|
|
4618
|
+
ws: 80,
|
|
4619
|
+
wss: 443
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
var isSpecial = function (url) {
|
|
4623
|
+
return has(specialSchemes, url.scheme);
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4626
|
+
var includesCredentials = function (url) {
|
|
4627
|
+
return url.username != '' || url.password != '';
|
|
4628
|
+
};
|
|
4629
|
+
|
|
4630
|
+
var cannotHaveUsernamePasswordPort = function (url) {
|
|
4631
|
+
return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
var isWindowsDriveLetter = function (string, normalized) {
|
|
4635
|
+
var second;
|
|
4636
|
+
return string.length == 2 && ALPHA.test(string.charAt(0))
|
|
4637
|
+
&& ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));
|
|
4638
|
+
};
|
|
4639
|
+
|
|
4640
|
+
var startsWithWindowsDriveLetter = function (string) {
|
|
4641
|
+
var third;
|
|
4642
|
+
return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (
|
|
4643
|
+
string.length == 2 ||
|
|
4644
|
+
((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
4645
|
+
);
|
|
4646
|
+
};
|
|
4647
|
+
|
|
4648
|
+
var shortenURLsPath = function (url) {
|
|
4649
|
+
var path = url.path;
|
|
4650
|
+
var pathSize = path.length;
|
|
4651
|
+
if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
4652
|
+
path.pop();
|
|
4653
|
+
}
|
|
4654
|
+
};
|
|
4655
|
+
|
|
4656
|
+
var isSingleDot = function (segment) {
|
|
4657
|
+
return segment === '.' || segment.toLowerCase() === '%2e';
|
|
4658
|
+
};
|
|
4659
|
+
|
|
4660
|
+
var isDoubleDot = function (segment) {
|
|
4661
|
+
segment = segment.toLowerCase();
|
|
4662
|
+
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
|
|
4663
|
+
};
|
|
4664
|
+
|
|
4665
|
+
// States:
|
|
4666
|
+
var SCHEME_START = {};
|
|
4667
|
+
var SCHEME = {};
|
|
4668
|
+
var NO_SCHEME = {};
|
|
4669
|
+
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
|
|
4670
|
+
var PATH_OR_AUTHORITY = {};
|
|
4671
|
+
var RELATIVE = {};
|
|
4672
|
+
var RELATIVE_SLASH = {};
|
|
4673
|
+
var SPECIAL_AUTHORITY_SLASHES = {};
|
|
4674
|
+
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
|
|
4675
|
+
var AUTHORITY = {};
|
|
4676
|
+
var HOST = {};
|
|
4677
|
+
var HOSTNAME = {};
|
|
4678
|
+
var PORT = {};
|
|
4679
|
+
var FILE = {};
|
|
4680
|
+
var FILE_SLASH = {};
|
|
4681
|
+
var FILE_HOST = {};
|
|
4682
|
+
var PATH_START = {};
|
|
4683
|
+
var PATH = {};
|
|
4684
|
+
var CANNOT_BE_A_BASE_URL_PATH = {};
|
|
4685
|
+
var QUERY = {};
|
|
4686
|
+
var FRAGMENT = {};
|
|
4687
|
+
|
|
4688
|
+
// eslint-disable-next-line max-statements
|
|
4689
|
+
var parseURL = function (url, input, stateOverride, base) {
|
|
4690
|
+
var state = stateOverride || SCHEME_START;
|
|
4691
|
+
var pointer = 0;
|
|
4692
|
+
var buffer = '';
|
|
4693
|
+
var seenAt = false;
|
|
4694
|
+
var seenBracket = false;
|
|
4695
|
+
var seenPasswordToken = false;
|
|
4696
|
+
var codePoints, char, bufferCodePoints, failure;
|
|
4697
|
+
|
|
4698
|
+
if (!stateOverride) {
|
|
4699
|
+
url.scheme = '';
|
|
4700
|
+
url.username = '';
|
|
4701
|
+
url.password = '';
|
|
4702
|
+
url.host = null;
|
|
4703
|
+
url.port = null;
|
|
4704
|
+
url.path = [];
|
|
4705
|
+
url.query = null;
|
|
4706
|
+
url.fragment = null;
|
|
4707
|
+
url.cannotBeABaseURL = false;
|
|
4708
|
+
input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4711
|
+
input = input.replace(TAB_AND_NEW_LINE, '');
|
|
4712
|
+
|
|
4713
|
+
codePoints = arrayFrom(input);
|
|
4714
|
+
|
|
4715
|
+
while (pointer <= codePoints.length) {
|
|
4716
|
+
char = codePoints[pointer];
|
|
4717
|
+
switch (state) {
|
|
4718
|
+
case SCHEME_START:
|
|
4719
|
+
if (char && ALPHA.test(char)) {
|
|
4720
|
+
buffer += char.toLowerCase();
|
|
4721
|
+
state = SCHEME;
|
|
4722
|
+
} else if (!stateOverride) {
|
|
4723
|
+
state = NO_SCHEME;
|
|
4724
|
+
continue;
|
|
4725
|
+
} else return INVALID_SCHEME;
|
|
4726
|
+
break;
|
|
4727
|
+
|
|
4728
|
+
case SCHEME:
|
|
4729
|
+
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
|
|
4730
|
+
buffer += char.toLowerCase();
|
|
4731
|
+
} else if (char == ':') {
|
|
4732
|
+
if (stateOverride && (
|
|
4733
|
+
(isSpecial(url) != has(specialSchemes, buffer)) ||
|
|
4734
|
+
(buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||
|
|
4735
|
+
(url.scheme == 'file' && !url.host)
|
|
4736
|
+
)) return;
|
|
4737
|
+
url.scheme = buffer;
|
|
4738
|
+
if (stateOverride) {
|
|
4739
|
+
if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;
|
|
4740
|
+
return;
|
|
4741
|
+
}
|
|
4742
|
+
buffer = '';
|
|
4743
|
+
if (url.scheme == 'file') {
|
|
4744
|
+
state = FILE;
|
|
4745
|
+
} else if (isSpecial(url) && base && base.scheme == url.scheme) {
|
|
4746
|
+
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
4747
|
+
} else if (isSpecial(url)) {
|
|
4748
|
+
state = SPECIAL_AUTHORITY_SLASHES;
|
|
4749
|
+
} else if (codePoints[pointer + 1] == '/') {
|
|
4750
|
+
state = PATH_OR_AUTHORITY;
|
|
4751
|
+
pointer++;
|
|
4752
|
+
} else {
|
|
4753
|
+
url.cannotBeABaseURL = true;
|
|
4754
|
+
url.path.push('');
|
|
4755
|
+
state = CANNOT_BE_A_BASE_URL_PATH;
|
|
4756
|
+
}
|
|
4757
|
+
} else if (!stateOverride) {
|
|
4758
|
+
buffer = '';
|
|
4759
|
+
state = NO_SCHEME;
|
|
4760
|
+
pointer = 0;
|
|
4761
|
+
continue;
|
|
4762
|
+
} else return INVALID_SCHEME;
|
|
4763
|
+
break;
|
|
4764
|
+
|
|
4765
|
+
case NO_SCHEME:
|
|
4766
|
+
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
|
|
4767
|
+
if (base.cannotBeABaseURL && char == '#') {
|
|
4768
|
+
url.scheme = base.scheme;
|
|
4769
|
+
url.path = base.path.slice();
|
|
4770
|
+
url.query = base.query;
|
|
4771
|
+
url.fragment = '';
|
|
4772
|
+
url.cannotBeABaseURL = true;
|
|
4773
|
+
state = FRAGMENT;
|
|
4774
|
+
break;
|
|
4775
|
+
}
|
|
4776
|
+
state = base.scheme == 'file' ? FILE : RELATIVE;
|
|
4777
|
+
continue;
|
|
4778
|
+
|
|
4779
|
+
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
4780
|
+
if (char == '/' && codePoints[pointer + 1] == '/') {
|
|
4781
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4782
|
+
pointer++;
|
|
4783
|
+
} else {
|
|
4784
|
+
state = RELATIVE;
|
|
4785
|
+
continue;
|
|
4786
|
+
} break;
|
|
4787
|
+
|
|
4788
|
+
case PATH_OR_AUTHORITY:
|
|
4789
|
+
if (char == '/') {
|
|
4790
|
+
state = AUTHORITY;
|
|
4791
|
+
break;
|
|
4792
|
+
} else {
|
|
4793
|
+
state = PATH;
|
|
4794
|
+
continue;
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4797
|
+
case RELATIVE:
|
|
4798
|
+
url.scheme = base.scheme;
|
|
4799
|
+
if (char == EOF) {
|
|
4800
|
+
url.username = base.username;
|
|
4801
|
+
url.password = base.password;
|
|
4802
|
+
url.host = base.host;
|
|
4803
|
+
url.port = base.port;
|
|
4804
|
+
url.path = base.path.slice();
|
|
4805
|
+
url.query = base.query;
|
|
4806
|
+
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
|
|
4807
|
+
state = RELATIVE_SLASH;
|
|
4808
|
+
} else if (char == '?') {
|
|
4809
|
+
url.username = base.username;
|
|
4810
|
+
url.password = base.password;
|
|
4811
|
+
url.host = base.host;
|
|
4812
|
+
url.port = base.port;
|
|
4813
|
+
url.path = base.path.slice();
|
|
4814
|
+
url.query = '';
|
|
4815
|
+
state = QUERY;
|
|
4816
|
+
} else if (char == '#') {
|
|
4817
|
+
url.username = base.username;
|
|
4818
|
+
url.password = base.password;
|
|
4819
|
+
url.host = base.host;
|
|
4820
|
+
url.port = base.port;
|
|
4821
|
+
url.path = base.path.slice();
|
|
4822
|
+
url.query = base.query;
|
|
4823
|
+
url.fragment = '';
|
|
4824
|
+
state = FRAGMENT;
|
|
4825
|
+
} else {
|
|
4826
|
+
url.username = base.username;
|
|
4827
|
+
url.password = base.password;
|
|
4828
|
+
url.host = base.host;
|
|
4829
|
+
url.port = base.port;
|
|
4830
|
+
url.path = base.path.slice();
|
|
4831
|
+
url.path.pop();
|
|
4832
|
+
state = PATH;
|
|
4833
|
+
continue;
|
|
4834
|
+
} break;
|
|
4835
|
+
|
|
4836
|
+
case RELATIVE_SLASH:
|
|
4837
|
+
if (isSpecial(url) && (char == '/' || char == '\\')) {
|
|
4838
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4839
|
+
} else if (char == '/') {
|
|
4840
|
+
state = AUTHORITY;
|
|
4841
|
+
} else {
|
|
4842
|
+
url.username = base.username;
|
|
4843
|
+
url.password = base.password;
|
|
4844
|
+
url.host = base.host;
|
|
4845
|
+
url.port = base.port;
|
|
4846
|
+
state = PATH;
|
|
4847
|
+
continue;
|
|
4848
|
+
} break;
|
|
4849
|
+
|
|
4850
|
+
case SPECIAL_AUTHORITY_SLASHES:
|
|
4851
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4852
|
+
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
|
|
4853
|
+
pointer++;
|
|
4854
|
+
break;
|
|
4855
|
+
|
|
4856
|
+
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
4857
|
+
if (char != '/' && char != '\\') {
|
|
4858
|
+
state = AUTHORITY;
|
|
4859
|
+
continue;
|
|
4860
|
+
} break;
|
|
4861
|
+
|
|
4862
|
+
case AUTHORITY:
|
|
4863
|
+
if (char == '@') {
|
|
4864
|
+
if (seenAt) buffer = '%40' + buffer;
|
|
4865
|
+
seenAt = true;
|
|
4866
|
+
bufferCodePoints = arrayFrom(buffer);
|
|
4867
|
+
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
4868
|
+
var codePoint = bufferCodePoints[i];
|
|
4869
|
+
if (codePoint == ':' && !seenPasswordToken) {
|
|
4870
|
+
seenPasswordToken = true;
|
|
4871
|
+
continue;
|
|
4872
|
+
}
|
|
4873
|
+
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
|
|
4874
|
+
if (seenPasswordToken) url.password += encodedCodePoints;
|
|
4875
|
+
else url.username += encodedCodePoints;
|
|
4876
|
+
}
|
|
4877
|
+
buffer = '';
|
|
4878
|
+
} else if (
|
|
4879
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4880
|
+
(char == '\\' && isSpecial(url))
|
|
4881
|
+
) {
|
|
4882
|
+
if (seenAt && buffer == '') return INVALID_AUTHORITY;
|
|
4883
|
+
pointer -= arrayFrom(buffer).length + 1;
|
|
4884
|
+
buffer = '';
|
|
4885
|
+
state = HOST;
|
|
4886
|
+
} else buffer += char;
|
|
4887
|
+
break;
|
|
4888
|
+
|
|
4889
|
+
case HOST:
|
|
4890
|
+
case HOSTNAME:
|
|
4891
|
+
if (stateOverride && url.scheme == 'file') {
|
|
4892
|
+
state = FILE_HOST;
|
|
4893
|
+
continue;
|
|
4894
|
+
} else if (char == ':' && !seenBracket) {
|
|
4895
|
+
if (buffer == '') return INVALID_HOST;
|
|
4896
|
+
failure = parseHost(url, buffer);
|
|
4897
|
+
if (failure) return failure;
|
|
4898
|
+
buffer = '';
|
|
4899
|
+
state = PORT;
|
|
4900
|
+
if (stateOverride == HOSTNAME) return;
|
|
4901
|
+
} else if (
|
|
4902
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4903
|
+
(char == '\\' && isSpecial(url))
|
|
4904
|
+
) {
|
|
4905
|
+
if (isSpecial(url) && buffer == '') return INVALID_HOST;
|
|
4906
|
+
if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;
|
|
4907
|
+
failure = parseHost(url, buffer);
|
|
4908
|
+
if (failure) return failure;
|
|
4909
|
+
buffer = '';
|
|
4910
|
+
state = PATH_START;
|
|
4911
|
+
if (stateOverride) return;
|
|
4912
|
+
continue;
|
|
4913
|
+
} else {
|
|
4914
|
+
if (char == '[') seenBracket = true;
|
|
4915
|
+
else if (char == ']') seenBracket = false;
|
|
4916
|
+
buffer += char;
|
|
4917
|
+
} break;
|
|
4918
|
+
|
|
4919
|
+
case PORT:
|
|
4920
|
+
if (DIGIT.test(char)) {
|
|
4921
|
+
buffer += char;
|
|
4922
|
+
} else if (
|
|
4923
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4924
|
+
(char == '\\' && isSpecial(url)) ||
|
|
4925
|
+
stateOverride
|
|
4926
|
+
) {
|
|
4927
|
+
if (buffer != '') {
|
|
4928
|
+
var port = parseInt(buffer, 10);
|
|
4929
|
+
if (port > 0xFFFF) return INVALID_PORT;
|
|
4930
|
+
url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;
|
|
4931
|
+
buffer = '';
|
|
4932
|
+
}
|
|
4933
|
+
if (stateOverride) return;
|
|
4934
|
+
state = PATH_START;
|
|
4935
|
+
continue;
|
|
4936
|
+
} else return INVALID_PORT;
|
|
4937
|
+
break;
|
|
4938
|
+
|
|
4939
|
+
case FILE:
|
|
4940
|
+
url.scheme = 'file';
|
|
4941
|
+
if (char == '/' || char == '\\') state = FILE_SLASH;
|
|
4942
|
+
else if (base && base.scheme == 'file') {
|
|
4943
|
+
if (char == EOF) {
|
|
4944
|
+
url.host = base.host;
|
|
4945
|
+
url.path = base.path.slice();
|
|
4946
|
+
url.query = base.query;
|
|
4947
|
+
} else if (char == '?') {
|
|
4948
|
+
url.host = base.host;
|
|
4949
|
+
url.path = base.path.slice();
|
|
4950
|
+
url.query = '';
|
|
4951
|
+
state = QUERY;
|
|
4952
|
+
} else if (char == '#') {
|
|
4953
|
+
url.host = base.host;
|
|
4954
|
+
url.path = base.path.slice();
|
|
4955
|
+
url.query = base.query;
|
|
4956
|
+
url.fragment = '';
|
|
4957
|
+
state = FRAGMENT;
|
|
4958
|
+
} else {
|
|
4959
|
+
if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
|
4960
|
+
url.host = base.host;
|
|
4961
|
+
url.path = base.path.slice();
|
|
4962
|
+
shortenURLsPath(url);
|
|
4963
|
+
}
|
|
4964
|
+
state = PATH;
|
|
4965
|
+
continue;
|
|
4966
|
+
}
|
|
4967
|
+
} else {
|
|
4968
|
+
state = PATH;
|
|
4969
|
+
continue;
|
|
4970
|
+
} break;
|
|
4971
|
+
|
|
4972
|
+
case FILE_SLASH:
|
|
4973
|
+
if (char == '/' || char == '\\') {
|
|
4974
|
+
state = FILE_HOST;
|
|
4975
|
+
break;
|
|
4976
|
+
}
|
|
4977
|
+
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
|
4978
|
+
if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);
|
|
4979
|
+
else url.host = base.host;
|
|
4980
|
+
}
|
|
4981
|
+
state = PATH;
|
|
4982
|
+
continue;
|
|
4983
|
+
|
|
4984
|
+
case FILE_HOST:
|
|
4985
|
+
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
|
|
4986
|
+
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
4987
|
+
state = PATH;
|
|
4988
|
+
} else if (buffer == '') {
|
|
4989
|
+
url.host = '';
|
|
4990
|
+
if (stateOverride) return;
|
|
4991
|
+
state = PATH_START;
|
|
4992
|
+
} else {
|
|
4993
|
+
failure = parseHost(url, buffer);
|
|
4994
|
+
if (failure) return failure;
|
|
4995
|
+
if (url.host == 'localhost') url.host = '';
|
|
4996
|
+
if (stateOverride) return;
|
|
4997
|
+
buffer = '';
|
|
4998
|
+
state = PATH_START;
|
|
4999
|
+
} continue;
|
|
5000
|
+
} else buffer += char;
|
|
5001
|
+
break;
|
|
5002
|
+
|
|
5003
|
+
case PATH_START:
|
|
5004
|
+
if (isSpecial(url)) {
|
|
5005
|
+
state = PATH;
|
|
5006
|
+
if (char != '/' && char != '\\') continue;
|
|
5007
|
+
} else if (!stateOverride && char == '?') {
|
|
5008
|
+
url.query = '';
|
|
5009
|
+
state = QUERY;
|
|
5010
|
+
} else if (!stateOverride && char == '#') {
|
|
5011
|
+
url.fragment = '';
|
|
5012
|
+
state = FRAGMENT;
|
|
5013
|
+
} else if (char != EOF) {
|
|
5014
|
+
state = PATH;
|
|
5015
|
+
if (char != '/') continue;
|
|
5016
|
+
} break;
|
|
5017
|
+
|
|
5018
|
+
case PATH:
|
|
5019
|
+
if (
|
|
5020
|
+
char == EOF || char == '/' ||
|
|
5021
|
+
(char == '\\' && isSpecial(url)) ||
|
|
5022
|
+
(!stateOverride && (char == '?' || char == '#'))
|
|
5023
|
+
) {
|
|
5024
|
+
if (isDoubleDot(buffer)) {
|
|
5025
|
+
shortenURLsPath(url);
|
|
5026
|
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
|
5027
|
+
url.path.push('');
|
|
5028
|
+
}
|
|
5029
|
+
} else if (isSingleDot(buffer)) {
|
|
5030
|
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
|
5031
|
+
url.path.push('');
|
|
5032
|
+
}
|
|
5033
|
+
} else {
|
|
5034
|
+
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
5035
|
+
if (url.host) url.host = '';
|
|
5036
|
+
buffer = buffer.charAt(0) + ':'; // normalize windows drive letter
|
|
5037
|
+
}
|
|
5038
|
+
url.path.push(buffer);
|
|
5039
|
+
}
|
|
5040
|
+
buffer = '';
|
|
5041
|
+
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
|
|
5042
|
+
while (url.path.length > 1 && url.path[0] === '') {
|
|
5043
|
+
url.path.shift();
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
if (char == '?') {
|
|
5047
|
+
url.query = '';
|
|
5048
|
+
state = QUERY;
|
|
5049
|
+
} else if (char == '#') {
|
|
5050
|
+
url.fragment = '';
|
|
5051
|
+
state = FRAGMENT;
|
|
5052
|
+
}
|
|
5053
|
+
} else {
|
|
5054
|
+
buffer += percentEncode(char, pathPercentEncodeSet);
|
|
5055
|
+
} break;
|
|
5056
|
+
|
|
5057
|
+
case CANNOT_BE_A_BASE_URL_PATH:
|
|
5058
|
+
if (char == '?') {
|
|
5059
|
+
url.query = '';
|
|
5060
|
+
state = QUERY;
|
|
5061
|
+
} else if (char == '#') {
|
|
5062
|
+
url.fragment = '';
|
|
5063
|
+
state = FRAGMENT;
|
|
5064
|
+
} else if (char != EOF) {
|
|
5065
|
+
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
|
|
5066
|
+
} break;
|
|
5067
|
+
|
|
5068
|
+
case QUERY:
|
|
5069
|
+
if (!stateOverride && char == '#') {
|
|
5070
|
+
url.fragment = '';
|
|
5071
|
+
state = FRAGMENT;
|
|
5072
|
+
} else if (char != EOF) {
|
|
5073
|
+
if (char == "'" && isSpecial(url)) url.query += '%27';
|
|
5074
|
+
else if (char == '#') url.query += '%23';
|
|
5075
|
+
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
|
|
5076
|
+
} break;
|
|
5077
|
+
|
|
5078
|
+
case FRAGMENT:
|
|
5079
|
+
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
|
|
5080
|
+
break;
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
pointer++;
|
|
5084
|
+
}
|
|
5085
|
+
};
|
|
5086
|
+
|
|
5087
|
+
// `URL` constructor
|
|
5088
|
+
// https://url.spec.whatwg.org/#url-class
|
|
5089
|
+
var URLConstructor = function URL(url /* , base */) {
|
|
5090
|
+
var that = anInstance(this, URLConstructor, 'URL');
|
|
5091
|
+
var base = arguments.length > 1 ? arguments[1] : undefined;
|
|
5092
|
+
var urlString = String(url);
|
|
5093
|
+
var state = setInternalState(that, { type: 'URL' });
|
|
5094
|
+
var baseState, failure;
|
|
5095
|
+
if (base !== undefined) {
|
|
5096
|
+
if (base instanceof URLConstructor) baseState = getInternalURLState(base);
|
|
5097
|
+
else {
|
|
5098
|
+
failure = parseURL(baseState = {}, String(base));
|
|
5099
|
+
if (failure) throw TypeError(failure);
|
|
5100
|
+
}
|
|
5101
|
+
}
|
|
5102
|
+
failure = parseURL(state, urlString, null, baseState);
|
|
5103
|
+
if (failure) throw TypeError(failure);
|
|
5104
|
+
var searchParams = state.searchParams = new URLSearchParams();
|
|
5105
|
+
var searchParamsState = getInternalSearchParamsState(searchParams);
|
|
5106
|
+
searchParamsState.updateSearchParams(state.query);
|
|
5107
|
+
searchParamsState.updateURL = function () {
|
|
5108
|
+
state.query = String(searchParams) || null;
|
|
5109
|
+
};
|
|
5110
|
+
if (!DESCRIPTORS) {
|
|
5111
|
+
that.href = serializeURL.call(that);
|
|
5112
|
+
that.origin = getOrigin.call(that);
|
|
5113
|
+
that.protocol = getProtocol.call(that);
|
|
5114
|
+
that.username = getUsername.call(that);
|
|
5115
|
+
that.password = getPassword.call(that);
|
|
5116
|
+
that.host = getHost.call(that);
|
|
5117
|
+
that.hostname = getHostname.call(that);
|
|
5118
|
+
that.port = getPort.call(that);
|
|
5119
|
+
that.pathname = getPathname.call(that);
|
|
5120
|
+
that.search = getSearch.call(that);
|
|
5121
|
+
that.searchParams = getSearchParams.call(that);
|
|
5122
|
+
that.hash = getHash.call(that);
|
|
5123
|
+
}
|
|
5124
|
+
};
|
|
5125
|
+
|
|
5126
|
+
var URLPrototype = URLConstructor.prototype;
|
|
5127
|
+
|
|
5128
|
+
var serializeURL = function () {
|
|
5129
|
+
var url = getInternalURLState(this);
|
|
5130
|
+
var scheme = url.scheme;
|
|
5131
|
+
var username = url.username;
|
|
5132
|
+
var password = url.password;
|
|
5133
|
+
var host = url.host;
|
|
5134
|
+
var port = url.port;
|
|
5135
|
+
var path = url.path;
|
|
5136
|
+
var query = url.query;
|
|
5137
|
+
var fragment = url.fragment;
|
|
5138
|
+
var output = scheme + ':';
|
|
5139
|
+
if (host !== null) {
|
|
5140
|
+
output += '//';
|
|
5141
|
+
if (includesCredentials(url)) {
|
|
5142
|
+
output += username + (password ? ':' + password : '') + '@';
|
|
5143
|
+
}
|
|
5144
|
+
output += serializeHost(host);
|
|
5145
|
+
if (port !== null) output += ':' + port;
|
|
5146
|
+
} else if (scheme == 'file') output += '//';
|
|
5147
|
+
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
|
5148
|
+
if (query !== null) output += '?' + query;
|
|
5149
|
+
if (fragment !== null) output += '#' + fragment;
|
|
5150
|
+
return output;
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
var getOrigin = function () {
|
|
5154
|
+
var url = getInternalURLState(this);
|
|
5155
|
+
var scheme = url.scheme;
|
|
5156
|
+
var port = url.port;
|
|
5157
|
+
if (scheme == 'blob') try {
|
|
5158
|
+
return new URL(scheme.path[0]).origin;
|
|
5159
|
+
} catch (error) {
|
|
5160
|
+
return 'null';
|
|
5161
|
+
}
|
|
5162
|
+
if (scheme == 'file' || !isSpecial(url)) return 'null';
|
|
5163
|
+
return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
var getProtocol = function () {
|
|
5167
|
+
return getInternalURLState(this).scheme + ':';
|
|
5168
|
+
};
|
|
5169
|
+
|
|
5170
|
+
var getUsername = function () {
|
|
5171
|
+
return getInternalURLState(this).username;
|
|
5172
|
+
};
|
|
5173
|
+
|
|
5174
|
+
var getPassword = function () {
|
|
5175
|
+
return getInternalURLState(this).password;
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5178
|
+
var getHost = function () {
|
|
5179
|
+
var url = getInternalURLState(this);
|
|
5180
|
+
var host = url.host;
|
|
5181
|
+
var port = url.port;
|
|
5182
|
+
return host === null ? ''
|
|
5183
|
+
: port === null ? serializeHost(host)
|
|
5184
|
+
: serializeHost(host) + ':' + port;
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
var getHostname = function () {
|
|
5188
|
+
var host = getInternalURLState(this).host;
|
|
5189
|
+
return host === null ? '' : serializeHost(host);
|
|
5190
|
+
};
|
|
5191
|
+
|
|
5192
|
+
var getPort = function () {
|
|
5193
|
+
var port = getInternalURLState(this).port;
|
|
5194
|
+
return port === null ? '' : String(port);
|
|
5195
|
+
};
|
|
5196
|
+
|
|
5197
|
+
var getPathname = function () {
|
|
5198
|
+
var url = getInternalURLState(this);
|
|
5199
|
+
var path = url.path;
|
|
5200
|
+
return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
var getSearch = function () {
|
|
5204
|
+
var query = getInternalURLState(this).query;
|
|
5205
|
+
return query ? '?' + query : '';
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
var getSearchParams = function () {
|
|
5209
|
+
return getInternalURLState(this).searchParams;
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
var getHash = function () {
|
|
5213
|
+
var fragment = getInternalURLState(this).fragment;
|
|
5214
|
+
return fragment ? '#' + fragment : '';
|
|
5215
|
+
};
|
|
5216
|
+
|
|
5217
|
+
var accessorDescriptor = function (getter, setter) {
|
|
5218
|
+
return { get: getter, set: setter, configurable: true, enumerable: true };
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
if (DESCRIPTORS) {
|
|
5222
|
+
defineProperties(URLPrototype, {
|
|
5223
|
+
// `URL.prototype.href` accessors pair
|
|
5224
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
5225
|
+
href: accessorDescriptor(serializeURL, function (href) {
|
|
5226
|
+
var url = getInternalURLState(this);
|
|
5227
|
+
var urlString = String(href);
|
|
5228
|
+
var failure = parseURL(url, urlString);
|
|
5229
|
+
if (failure) throw TypeError(failure);
|
|
5230
|
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
|
5231
|
+
}),
|
|
5232
|
+
// `URL.prototype.origin` getter
|
|
5233
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
5234
|
+
origin: accessorDescriptor(getOrigin),
|
|
5235
|
+
// `URL.prototype.protocol` accessors pair
|
|
5236
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
5237
|
+
protocol: accessorDescriptor(getProtocol, function (protocol) {
|
|
5238
|
+
var url = getInternalURLState(this);
|
|
5239
|
+
parseURL(url, String(protocol) + ':', SCHEME_START);
|
|
5240
|
+
}),
|
|
5241
|
+
// `URL.prototype.username` accessors pair
|
|
5242
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
5243
|
+
username: accessorDescriptor(getUsername, function (username) {
|
|
5244
|
+
var url = getInternalURLState(this);
|
|
5245
|
+
var codePoints = arrayFrom(String(username));
|
|
5246
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5247
|
+
url.username = '';
|
|
5248
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
5249
|
+
url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
5250
|
+
}
|
|
5251
|
+
}),
|
|
5252
|
+
// `URL.prototype.password` accessors pair
|
|
5253
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
5254
|
+
password: accessorDescriptor(getPassword, function (password) {
|
|
5255
|
+
var url = getInternalURLState(this);
|
|
5256
|
+
var codePoints = arrayFrom(String(password));
|
|
5257
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5258
|
+
url.password = '';
|
|
5259
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
5260
|
+
url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
5261
|
+
}
|
|
5262
|
+
}),
|
|
5263
|
+
// `URL.prototype.host` accessors pair
|
|
5264
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
5265
|
+
host: accessorDescriptor(getHost, function (host) {
|
|
5266
|
+
var url = getInternalURLState(this);
|
|
5267
|
+
if (url.cannotBeABaseURL) return;
|
|
5268
|
+
parseURL(url, String(host), HOST);
|
|
5269
|
+
}),
|
|
5270
|
+
// `URL.prototype.hostname` accessors pair
|
|
5271
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
5272
|
+
hostname: accessorDescriptor(getHostname, function (hostname) {
|
|
5273
|
+
var url = getInternalURLState(this);
|
|
5274
|
+
if (url.cannotBeABaseURL) return;
|
|
5275
|
+
parseURL(url, String(hostname), HOSTNAME);
|
|
5276
|
+
}),
|
|
5277
|
+
// `URL.prototype.port` accessors pair
|
|
5278
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
5279
|
+
port: accessorDescriptor(getPort, function (port) {
|
|
5280
|
+
var url = getInternalURLState(this);
|
|
5281
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5282
|
+
port = String(port);
|
|
5283
|
+
if (port == '') url.port = null;
|
|
5284
|
+
else parseURL(url, port, PORT);
|
|
5285
|
+
}),
|
|
5286
|
+
// `URL.prototype.pathname` accessors pair
|
|
5287
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
5288
|
+
pathname: accessorDescriptor(getPathname, function (pathname) {
|
|
5289
|
+
var url = getInternalURLState(this);
|
|
5290
|
+
if (url.cannotBeABaseURL) return;
|
|
5291
|
+
url.path = [];
|
|
5292
|
+
parseURL(url, pathname + '', PATH_START);
|
|
5293
|
+
}),
|
|
5294
|
+
// `URL.prototype.search` accessors pair
|
|
5295
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
5296
|
+
search: accessorDescriptor(getSearch, function (search) {
|
|
5297
|
+
var url = getInternalURLState(this);
|
|
5298
|
+
search = String(search);
|
|
5299
|
+
if (search == '') {
|
|
5300
|
+
url.query = null;
|
|
5301
|
+
} else {
|
|
5302
|
+
if ('?' == search.charAt(0)) search = search.slice(1);
|
|
5303
|
+
url.query = '';
|
|
5304
|
+
parseURL(url, search, QUERY);
|
|
5305
|
+
}
|
|
5306
|
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
|
5307
|
+
}),
|
|
5308
|
+
// `URL.prototype.searchParams` getter
|
|
5309
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
5310
|
+
searchParams: accessorDescriptor(getSearchParams),
|
|
5311
|
+
// `URL.prototype.hash` accessors pair
|
|
5312
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
5313
|
+
hash: accessorDescriptor(getHash, function (hash) {
|
|
5314
|
+
var url = getInternalURLState(this);
|
|
5315
|
+
hash = String(hash);
|
|
5316
|
+
if (hash == '') {
|
|
5317
|
+
url.fragment = null;
|
|
5318
|
+
return;
|
|
5319
|
+
}
|
|
5320
|
+
if ('#' == hash.charAt(0)) hash = hash.slice(1);
|
|
5321
|
+
url.fragment = '';
|
|
5322
|
+
parseURL(url, hash, FRAGMENT);
|
|
5323
|
+
})
|
|
5324
|
+
});
|
|
5325
|
+
}
|
|
5326
|
+
|
|
5327
|
+
// `URL.prototype.toJSON` method
|
|
5328
|
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
5329
|
+
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
5330
|
+
return serializeURL.call(this);
|
|
5331
|
+
}, { enumerable: true });
|
|
5332
|
+
|
|
5333
|
+
// `URL.prototype.toString` method
|
|
5334
|
+
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
5335
|
+
redefine(URLPrototype, 'toString', function toString() {
|
|
5336
|
+
return serializeURL.call(this);
|
|
5337
|
+
}, { enumerable: true });
|
|
5338
|
+
|
|
5339
|
+
if (NativeURL) {
|
|
5340
|
+
var nativeCreateObjectURL = NativeURL.createObjectURL;
|
|
5341
|
+
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
5342
|
+
// `URL.createObjectURL` method
|
|
5343
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
5344
|
+
// eslint-disable-next-line no-unused-vars
|
|
5345
|
+
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
|
|
5346
|
+
return nativeCreateObjectURL.apply(NativeURL, arguments);
|
|
5347
|
+
});
|
|
5348
|
+
// `URL.revokeObjectURL` method
|
|
5349
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
5350
|
+
// eslint-disable-next-line no-unused-vars
|
|
5351
|
+
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
|
|
5352
|
+
return nativeRevokeObjectURL.apply(NativeURL, arguments);
|
|
5353
|
+
});
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
setToStringTag(URLConstructor, 'URL');
|
|
5357
|
+
|
|
5358
|
+
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
5359
|
+
URL: URLConstructor
|
|
5360
|
+
});
|
|
5361
|
+
|
|
5362
|
+
|
|
4156
5363
|
/***/ }),
|
|
4157
5364
|
|
|
4158
5365
|
/***/ "2bfb":
|
|
@@ -4294,6 +5501,120 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
|
|
|
4294
5501
|
|
|
4295
5502
|
module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.46875 17.5C3.21 17.5 3 17.29 3 17.0312C3 16.7725 3.21 16.5625 3.46875 16.5625H17.5312C17.79 16.5625 18 16.7725 18 17.0312C18 17.29 17.79 17.5 17.5312 17.5H3.46875Z\" fill=\"#9CACCC\"></path><path d=\"M10.5 14.6888C7.91562 14.6888 5.8125 12.5856 5.8125 10.0012V3.4375H5.34375C5.085 3.4375 4.875 3.2275 4.875 2.96875C4.875 2.71 5.085 2.5 5.34375 2.5H7.21875C7.4775 2.5 7.6875 2.71 7.6875 2.96875C7.6875 3.2275 7.4775 3.4375 7.21875 3.4375H6.75V10.0012C6.75 12.0688 8.4325 13.7513 10.5 13.7513C12.5675 13.7513 14.25 12.0688 14.25 10.0012V3.4375H13.7812C13.5225 3.4375 13.3125 3.2275 13.3125 2.96875C13.3125 2.71 13.5225 2.5 13.7812 2.5H15.6562C15.915 2.5 16.125 2.71 16.125 2.96875C16.125 3.2275 15.915 3.4375 15.6562 3.4375H15.1875V10.0012C15.1875 12.5856 13.0844 14.6888 10.5 14.6888Z\" fill=\"#9CACCC\"></path></svg>"
|
|
4296
5503
|
|
|
5504
|
+
/***/ }),
|
|
5505
|
+
|
|
5506
|
+
/***/ "2cf4":
|
|
5507
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5508
|
+
|
|
5509
|
+
var global = __webpack_require__("da84");
|
|
5510
|
+
var fails = __webpack_require__("d039");
|
|
5511
|
+
var bind = __webpack_require__("0366");
|
|
5512
|
+
var html = __webpack_require__("1be4");
|
|
5513
|
+
var createElement = __webpack_require__("cc12");
|
|
5514
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
5515
|
+
var IS_NODE = __webpack_require__("605d");
|
|
5516
|
+
|
|
5517
|
+
var location = global.location;
|
|
5518
|
+
var set = global.setImmediate;
|
|
5519
|
+
var clear = global.clearImmediate;
|
|
5520
|
+
var process = global.process;
|
|
5521
|
+
var MessageChannel = global.MessageChannel;
|
|
5522
|
+
var Dispatch = global.Dispatch;
|
|
5523
|
+
var counter = 0;
|
|
5524
|
+
var queue = {};
|
|
5525
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
5526
|
+
var defer, channel, port;
|
|
5527
|
+
|
|
5528
|
+
var run = function (id) {
|
|
5529
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
5530
|
+
if (queue.hasOwnProperty(id)) {
|
|
5531
|
+
var fn = queue[id];
|
|
5532
|
+
delete queue[id];
|
|
5533
|
+
fn();
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5536
|
+
|
|
5537
|
+
var runner = function (id) {
|
|
5538
|
+
return function () {
|
|
5539
|
+
run(id);
|
|
5540
|
+
};
|
|
5541
|
+
};
|
|
5542
|
+
|
|
5543
|
+
var listener = function (event) {
|
|
5544
|
+
run(event.data);
|
|
5545
|
+
};
|
|
5546
|
+
|
|
5547
|
+
var post = function (id) {
|
|
5548
|
+
// old engines have not location.origin
|
|
5549
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
5550
|
+
};
|
|
5551
|
+
|
|
5552
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5553
|
+
if (!set || !clear) {
|
|
5554
|
+
set = function setImmediate(fn) {
|
|
5555
|
+
var args = [];
|
|
5556
|
+
var i = 1;
|
|
5557
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
5558
|
+
queue[++counter] = function () {
|
|
5559
|
+
// eslint-disable-next-line no-new-func
|
|
5560
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
5561
|
+
};
|
|
5562
|
+
defer(counter);
|
|
5563
|
+
return counter;
|
|
5564
|
+
};
|
|
5565
|
+
clear = function clearImmediate(id) {
|
|
5566
|
+
delete queue[id];
|
|
5567
|
+
};
|
|
5568
|
+
// Node.js 0.8-
|
|
5569
|
+
if (IS_NODE) {
|
|
5570
|
+
defer = function (id) {
|
|
5571
|
+
process.nextTick(runner(id));
|
|
5572
|
+
};
|
|
5573
|
+
// Sphere (JS game engine) Dispatch API
|
|
5574
|
+
} else if (Dispatch && Dispatch.now) {
|
|
5575
|
+
defer = function (id) {
|
|
5576
|
+
Dispatch.now(runner(id));
|
|
5577
|
+
};
|
|
5578
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
5579
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
5580
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
5581
|
+
channel = new MessageChannel();
|
|
5582
|
+
port = channel.port2;
|
|
5583
|
+
channel.port1.onmessage = listener;
|
|
5584
|
+
defer = bind(port.postMessage, port, 1);
|
|
5585
|
+
// Browsers with postMessage, skip WebWorkers
|
|
5586
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5587
|
+
} else if (
|
|
5588
|
+
global.addEventListener &&
|
|
5589
|
+
typeof postMessage == 'function' &&
|
|
5590
|
+
!global.importScripts &&
|
|
5591
|
+
location && location.protocol !== 'file:' &&
|
|
5592
|
+
!fails(post)
|
|
5593
|
+
) {
|
|
5594
|
+
defer = post;
|
|
5595
|
+
global.addEventListener('message', listener, false);
|
|
5596
|
+
// IE8-
|
|
5597
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5598
|
+
defer = function (id) {
|
|
5599
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
5600
|
+
html.removeChild(this);
|
|
5601
|
+
run(id);
|
|
5602
|
+
};
|
|
5603
|
+
};
|
|
5604
|
+
// Rest old browsers
|
|
5605
|
+
} else {
|
|
5606
|
+
defer = function (id) {
|
|
5607
|
+
setTimeout(runner(id), 0);
|
|
5608
|
+
};
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
|
|
5612
|
+
module.exports = {
|
|
5613
|
+
set: set,
|
|
5614
|
+
clear: clear
|
|
5615
|
+
};
|
|
5616
|
+
|
|
5617
|
+
|
|
4297
5618
|
/***/ }),
|
|
4298
5619
|
|
|
4299
5620
|
/***/ "2d00":
|
|
@@ -6276,6 +7597,21 @@ module.exports = function (key) {
|
|
|
6276
7597
|
};
|
|
6277
7598
|
|
|
6278
7599
|
|
|
7600
|
+
/***/ }),
|
|
7601
|
+
|
|
7602
|
+
/***/ "44de":
|
|
7603
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7604
|
+
|
|
7605
|
+
var global = __webpack_require__("da84");
|
|
7606
|
+
|
|
7607
|
+
module.exports = function (a, b) {
|
|
7608
|
+
var console = global.console;
|
|
7609
|
+
if (console && console.error) {
|
|
7610
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
7611
|
+
}
|
|
7612
|
+
};
|
|
7613
|
+
|
|
7614
|
+
|
|
6279
7615
|
/***/ }),
|
|
6280
7616
|
|
|
6281
7617
|
/***/ "44e7":
|
|
@@ -7217,6 +8553,26 @@ module.exports = {
|
|
|
7217
8553
|
};
|
|
7218
8554
|
|
|
7219
8555
|
|
|
8556
|
+
/***/ }),
|
|
8557
|
+
|
|
8558
|
+
/***/ "4d90":
|
|
8559
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8560
|
+
|
|
8561
|
+
"use strict";
|
|
8562
|
+
|
|
8563
|
+
var $ = __webpack_require__("23e7");
|
|
8564
|
+
var $padStart = __webpack_require__("0ccb").start;
|
|
8565
|
+
var WEBKIT_BUG = __webpack_require__("9a0c");
|
|
8566
|
+
|
|
8567
|
+
// `String.prototype.padStart` method
|
|
8568
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padstart
|
|
8569
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
8570
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
8571
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
8572
|
+
}
|
|
8573
|
+
});
|
|
8574
|
+
|
|
8575
|
+
|
|
7220
8576
|
/***/ }),
|
|
7221
8577
|
|
|
7222
8578
|
/***/ "4de1":
|
|
@@ -9061,6 +10417,182 @@ module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9061
10417
|
/* unused harmony reexport * */
|
|
9062
10418
|
|
|
9063
10419
|
|
|
10420
|
+
/***/ }),
|
|
10421
|
+
|
|
10422
|
+
/***/ "5fb2":
|
|
10423
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10424
|
+
|
|
10425
|
+
"use strict";
|
|
10426
|
+
|
|
10427
|
+
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
10428
|
+
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
10429
|
+
var base = 36;
|
|
10430
|
+
var tMin = 1;
|
|
10431
|
+
var tMax = 26;
|
|
10432
|
+
var skew = 38;
|
|
10433
|
+
var damp = 700;
|
|
10434
|
+
var initialBias = 72;
|
|
10435
|
+
var initialN = 128; // 0x80
|
|
10436
|
+
var delimiter = '-'; // '\x2D'
|
|
10437
|
+
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
|
|
10438
|
+
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
10439
|
+
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
10440
|
+
var baseMinusTMin = base - tMin;
|
|
10441
|
+
var floor = Math.floor;
|
|
10442
|
+
var stringFromCharCode = String.fromCharCode;
|
|
10443
|
+
|
|
10444
|
+
/**
|
|
10445
|
+
* Creates an array containing the numeric code points of each Unicode
|
|
10446
|
+
* character in the string. While JavaScript uses UCS-2 internally,
|
|
10447
|
+
* this function will convert a pair of surrogate halves (each of which
|
|
10448
|
+
* UCS-2 exposes as separate characters) into a single code point,
|
|
10449
|
+
* matching UTF-16.
|
|
10450
|
+
*/
|
|
10451
|
+
var ucs2decode = function (string) {
|
|
10452
|
+
var output = [];
|
|
10453
|
+
var counter = 0;
|
|
10454
|
+
var length = string.length;
|
|
10455
|
+
while (counter < length) {
|
|
10456
|
+
var value = string.charCodeAt(counter++);
|
|
10457
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
10458
|
+
// It's a high surrogate, and there is a next character.
|
|
10459
|
+
var extra = string.charCodeAt(counter++);
|
|
10460
|
+
if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
|
|
10461
|
+
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
10462
|
+
} else {
|
|
10463
|
+
// It's an unmatched surrogate; only append this code unit, in case the
|
|
10464
|
+
// next code unit is the high surrogate of a surrogate pair.
|
|
10465
|
+
output.push(value);
|
|
10466
|
+
counter--;
|
|
10467
|
+
}
|
|
10468
|
+
} else {
|
|
10469
|
+
output.push(value);
|
|
10470
|
+
}
|
|
10471
|
+
}
|
|
10472
|
+
return output;
|
|
10473
|
+
};
|
|
10474
|
+
|
|
10475
|
+
/**
|
|
10476
|
+
* Converts a digit/integer into a basic code point.
|
|
10477
|
+
*/
|
|
10478
|
+
var digitToBasic = function (digit) {
|
|
10479
|
+
// 0..25 map to ASCII a..z or A..Z
|
|
10480
|
+
// 26..35 map to ASCII 0..9
|
|
10481
|
+
return digit + 22 + 75 * (digit < 26);
|
|
10482
|
+
};
|
|
10483
|
+
|
|
10484
|
+
/**
|
|
10485
|
+
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
10486
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
10487
|
+
*/
|
|
10488
|
+
var adapt = function (delta, numPoints, firstTime) {
|
|
10489
|
+
var k = 0;
|
|
10490
|
+
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
10491
|
+
delta += floor(delta / numPoints);
|
|
10492
|
+
for (; delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
10493
|
+
delta = floor(delta / baseMinusTMin);
|
|
10494
|
+
}
|
|
10495
|
+
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
10496
|
+
};
|
|
10497
|
+
|
|
10498
|
+
/**
|
|
10499
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
10500
|
+
* Punycode string of ASCII-only symbols.
|
|
10501
|
+
*/
|
|
10502
|
+
// eslint-disable-next-line max-statements
|
|
10503
|
+
var encode = function (input) {
|
|
10504
|
+
var output = [];
|
|
10505
|
+
|
|
10506
|
+
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
10507
|
+
input = ucs2decode(input);
|
|
10508
|
+
|
|
10509
|
+
// Cache the length.
|
|
10510
|
+
var inputLength = input.length;
|
|
10511
|
+
|
|
10512
|
+
// Initialize the state.
|
|
10513
|
+
var n = initialN;
|
|
10514
|
+
var delta = 0;
|
|
10515
|
+
var bias = initialBias;
|
|
10516
|
+
var i, currentValue;
|
|
10517
|
+
|
|
10518
|
+
// Handle the basic code points.
|
|
10519
|
+
for (i = 0; i < input.length; i++) {
|
|
10520
|
+
currentValue = input[i];
|
|
10521
|
+
if (currentValue < 0x80) {
|
|
10522
|
+
output.push(stringFromCharCode(currentValue));
|
|
10523
|
+
}
|
|
10524
|
+
}
|
|
10525
|
+
|
|
10526
|
+
var basicLength = output.length; // number of basic code points.
|
|
10527
|
+
var handledCPCount = basicLength; // number of code points that have been handled;
|
|
10528
|
+
|
|
10529
|
+
// Finish the basic string with a delimiter unless it's empty.
|
|
10530
|
+
if (basicLength) {
|
|
10531
|
+
output.push(delimiter);
|
|
10532
|
+
}
|
|
10533
|
+
|
|
10534
|
+
// Main encoding loop:
|
|
10535
|
+
while (handledCPCount < inputLength) {
|
|
10536
|
+
// All non-basic code points < n have been handled already. Find the next larger one:
|
|
10537
|
+
var m = maxInt;
|
|
10538
|
+
for (i = 0; i < input.length; i++) {
|
|
10539
|
+
currentValue = input[i];
|
|
10540
|
+
if (currentValue >= n && currentValue < m) {
|
|
10541
|
+
m = currentValue;
|
|
10542
|
+
}
|
|
10543
|
+
}
|
|
10544
|
+
|
|
10545
|
+
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
10546
|
+
var handledCPCountPlusOne = handledCPCount + 1;
|
|
10547
|
+
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
10548
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
10549
|
+
}
|
|
10550
|
+
|
|
10551
|
+
delta += (m - n) * handledCPCountPlusOne;
|
|
10552
|
+
n = m;
|
|
10553
|
+
|
|
10554
|
+
for (i = 0; i < input.length; i++) {
|
|
10555
|
+
currentValue = input[i];
|
|
10556
|
+
if (currentValue < n && ++delta > maxInt) {
|
|
10557
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
10558
|
+
}
|
|
10559
|
+
if (currentValue == n) {
|
|
10560
|
+
// Represent delta as a generalized variable-length integer.
|
|
10561
|
+
var q = delta;
|
|
10562
|
+
for (var k = base; /* no condition */; k += base) {
|
|
10563
|
+
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
10564
|
+
if (q < t) break;
|
|
10565
|
+
var qMinusT = q - t;
|
|
10566
|
+
var baseMinusT = base - t;
|
|
10567
|
+
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
|
|
10568
|
+
q = floor(qMinusT / baseMinusT);
|
|
10569
|
+
}
|
|
10570
|
+
|
|
10571
|
+
output.push(stringFromCharCode(digitToBasic(q)));
|
|
10572
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
10573
|
+
delta = 0;
|
|
10574
|
+
++handledCPCount;
|
|
10575
|
+
}
|
|
10576
|
+
}
|
|
10577
|
+
|
|
10578
|
+
++delta;
|
|
10579
|
+
++n;
|
|
10580
|
+
}
|
|
10581
|
+
return output.join('');
|
|
10582
|
+
};
|
|
10583
|
+
|
|
10584
|
+
module.exports = function (input) {
|
|
10585
|
+
var encoded = [];
|
|
10586
|
+
var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
|
|
10587
|
+
var i, label;
|
|
10588
|
+
for (i = 0; i < labels.length; i++) {
|
|
10589
|
+
label = labels[i];
|
|
10590
|
+
encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);
|
|
10591
|
+
}
|
|
10592
|
+
return encoded.join('.');
|
|
10593
|
+
};
|
|
10594
|
+
|
|
10595
|
+
|
|
9064
10596
|
/***/ }),
|
|
9065
10597
|
|
|
9066
10598
|
/***/ "5fbd":
|
|
@@ -9145,6 +10677,17 @@ module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9145
10677
|
})));
|
|
9146
10678
|
|
|
9147
10679
|
|
|
10680
|
+
/***/ }),
|
|
10681
|
+
|
|
10682
|
+
/***/ "5fc7":
|
|
10683
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10684
|
+
|
|
10685
|
+
"use strict";
|
|
10686
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cf20");
|
|
10687
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10688
|
+
/* unused harmony reexport * */
|
|
10689
|
+
|
|
10690
|
+
|
|
9148
10691
|
/***/ }),
|
|
9149
10692
|
|
|
9150
10693
|
/***/ "605d":
|
|
@@ -9174,6 +10717,66 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9174
10717
|
/* unused harmony reexport * */
|
|
9175
10718
|
|
|
9176
10719
|
|
|
10720
|
+
/***/ }),
|
|
10721
|
+
|
|
10722
|
+
/***/ "60da":
|
|
10723
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10724
|
+
|
|
10725
|
+
"use strict";
|
|
10726
|
+
|
|
10727
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
10728
|
+
var fails = __webpack_require__("d039");
|
|
10729
|
+
var objectKeys = __webpack_require__("df75");
|
|
10730
|
+
var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
|
10731
|
+
var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
|
10732
|
+
var toObject = __webpack_require__("7b0b");
|
|
10733
|
+
var IndexedObject = __webpack_require__("44ad");
|
|
10734
|
+
|
|
10735
|
+
var nativeAssign = Object.assign;
|
|
10736
|
+
var defineProperty = Object.defineProperty;
|
|
10737
|
+
|
|
10738
|
+
// `Object.assign` method
|
|
10739
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
10740
|
+
module.exports = !nativeAssign || fails(function () {
|
|
10741
|
+
// should have correct order of operations (Edge bug)
|
|
10742
|
+
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
|
|
10743
|
+
enumerable: true,
|
|
10744
|
+
get: function () {
|
|
10745
|
+
defineProperty(this, 'b', {
|
|
10746
|
+
value: 3,
|
|
10747
|
+
enumerable: false
|
|
10748
|
+
});
|
|
10749
|
+
}
|
|
10750
|
+
}), { b: 2 })).b !== 1) return true;
|
|
10751
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
10752
|
+
var A = {};
|
|
10753
|
+
var B = {};
|
|
10754
|
+
// eslint-disable-next-line no-undef
|
|
10755
|
+
var symbol = Symbol();
|
|
10756
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
10757
|
+
A[symbol] = 7;
|
|
10758
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
10759
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
|
10760
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
|
10761
|
+
var T = toObject(target);
|
|
10762
|
+
var argumentsLength = arguments.length;
|
|
10763
|
+
var index = 1;
|
|
10764
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
10765
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
10766
|
+
while (argumentsLength > index) {
|
|
10767
|
+
var S = IndexedObject(arguments[index++]);
|
|
10768
|
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
|
10769
|
+
var length = keys.length;
|
|
10770
|
+
var j = 0;
|
|
10771
|
+
var key;
|
|
10772
|
+
while (length > j) {
|
|
10773
|
+
key = keys[j++];
|
|
10774
|
+
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
|
10775
|
+
}
|
|
10776
|
+
} return T;
|
|
10777
|
+
} : nativeAssign;
|
|
10778
|
+
|
|
10779
|
+
|
|
9177
10780
|
/***/ }),
|
|
9178
10781
|
|
|
9179
10782
|
/***/ "6115":
|
|
@@ -9390,6 +10993,17 @@ module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9390
10993
|
/* unused harmony reexport * */
|
|
9391
10994
|
|
|
9392
10995
|
|
|
10996
|
+
/***/ }),
|
|
10997
|
+
|
|
10998
|
+
/***/ "6385":
|
|
10999
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11000
|
+
|
|
11001
|
+
"use strict";
|
|
11002
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1442a03d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fee5");
|
|
11003
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1442a03d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1442a03d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
11004
|
+
/* unused harmony reexport * */
|
|
11005
|
+
|
|
11006
|
+
|
|
9393
11007
|
/***/ }),
|
|
9394
11008
|
|
|
9395
11009
|
/***/ "6394":
|
|
@@ -11014,6 +12628,13 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
11014
12628
|
|
|
11015
12629
|
/***/ }),
|
|
11016
12630
|
|
|
12631
|
+
/***/ "72f6":
|
|
12632
|
+
/***/ (function(module, exports) {
|
|
12633
|
+
|
|
12634
|
+
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M30.6068 9.38894C28.5085 7.29255 25.8357 5.86533 22.9264 5.28769C20.017 4.71005 17.0018 5.00792 14.2617 6.14364C11.5216 7.27937 9.17977 9.20196 7.53217 11.6684C5.88457 14.1348 5.00519 17.0344 5.00519 20.0005C5.00519 22.9666 5.88457 25.8661 7.53217 28.3326C9.17977 30.799 11.5216 32.7216 14.2617 33.8573C17.0018 34.9931 20.017 35.2909 22.9264 34.7133C25.8357 34.1356 28.5085 32.7084 30.6068 30.612C33.4168 27.7953 34.9948 23.9791 34.9948 20.0005C34.9948 16.0218 33.4168 12.2056 30.6068 9.38894V9.38894ZM25.8807 24.1013C26.0942 24.3391 26.2086 24.6496 26.2003 24.9691C26.1921 25.2886 26.0618 25.5928 25.8363 25.8192C25.6108 26.0457 25.3072 26.1772 24.9877 26.1868C24.6683 26.1965 24.3573 26.0834 24.1186 25.8709L20.2291 21.9815C20.1702 21.9233 20.0906 21.8906 20.0078 21.8906C19.9249 21.8906 19.8454 21.9233 19.7864 21.9815L15.8982 25.8709C15.6607 26.1001 15.3435 26.2282 15.0134 26.2282C14.6833 26.2282 14.3661 26.1001 14.1286 25.8709C14.0123 25.7548 13.9201 25.6168 13.8571 25.465C13.7942 25.3132 13.7618 25.1505 13.7618 24.9861C13.7618 24.8218 13.7942 24.659 13.8571 24.5072C13.9201 24.3554 14.0123 24.2174 14.1286 24.1013L18.018 20.2131C18.0471 20.1842 18.0702 20.1498 18.0859 20.1119C18.1017 20.074 18.1098 20.0334 18.1098 19.9924C18.1098 19.9513 18.1017 19.9107 18.0859 19.8728C18.0702 19.835 18.0471 19.8006 18.018 19.7716L14.1286 15.8822C13.9126 15.6447 13.7962 15.3332 13.8035 15.0122C13.8109 14.6913 13.9414 14.3854 14.168 14.158C14.3946 13.9306 14.6999 13.7991 15.0209 13.7906C15.3418 13.7821 15.6537 13.8974 15.892 14.1125L19.7802 18.002C19.8092 18.0311 19.8437 18.0542 19.8817 18.07C19.9197 18.0857 19.9604 18.0938 20.0015 18.0938C20.0426 18.0938 20.0834 18.0857 20.1214 18.07C20.1593 18.0542 20.1938 18.0311 20.2229 18.002L24.1123 14.1125C24.347 13.878 24.6652 13.7464 24.997 13.7465C25.3287 13.7466 25.6468 13.8785 25.8813 14.1132C26.1158 14.3478 26.2475 14.6661 26.2474 14.9978C26.2473 15.3296 26.1154 15.6477 25.8807 15.8822L21.9913 19.7716C21.9328 19.8302 21.9 19.9096 21.9 19.9924C21.9 20.0751 21.9328 20.1545 21.9913 20.2131L25.8807 24.1013Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
12635
|
+
|
|
12636
|
+
/***/ }),
|
|
12637
|
+
|
|
11017
12638
|
/***/ "7323":
|
|
11018
12639
|
/***/ (function(module, exports, __webpack_require__) {
|
|
11019
12640
|
|
|
@@ -14738,6 +16359,761 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
14738
16359
|
|
|
14739
16360
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 5.00049C17.0333 5.00049 14.1332 5.88022 11.6665 7.52844C9.19971 9.17666 7.27713 11.5193 6.14181 14.2602C5.0065 17.0011 4.70945 20.0171 5.28823 22.9268C5.86701 25.8366 7.29562 28.5093 9.3934 30.6071C11.4912 32.7049 14.1639 34.1335 17.0737 34.7123C19.9834 35.291 22.9994 34.994 25.7403 33.8587C28.4811 32.7234 30.8238 30.8008 32.472 28.334C34.1203 25.8673 35 22.9672 35 20.0005C34.9957 16.0236 33.414 12.2107 30.6019 9.39864C27.7897 6.58652 23.9769 5.00479 20 5.00049V5.00049ZM20 28.7505C19.6292 28.7505 19.2667 28.6405 18.9583 28.4345C18.65 28.2285 18.4096 27.9356 18.2677 27.593C18.1258 27.2504 18.0887 26.8734 18.161 26.5097C18.2334 26.146 18.412 25.8119 18.6742 25.5497C18.9364 25.2874 19.2705 25.1089 19.6342 25.0365C19.9979 24.9642 20.3749 25.0013 20.7175 25.1432C21.0601 25.2851 21.353 25.5254 21.559 25.8338C21.765 26.1421 21.875 26.5046 21.875 26.8755C21.875 27.3728 21.6775 27.8497 21.3258 28.2013C20.9742 28.5529 20.4973 28.7505 20 28.7505ZM22 21.1505C21.777 21.2478 21.5872 21.4081 21.454 21.6117C21.3208 21.8153 21.2499 22.0534 21.25 22.2967C21.25 22.6283 21.1183 22.9462 20.8839 23.1806C20.6495 23.415 20.3315 23.5467 20 23.5467C19.6685 23.5467 19.3505 23.415 19.1161 23.1806C18.8817 22.9462 18.75 22.6283 18.75 22.2967C18.7499 21.567 18.9627 20.853 19.3624 20.2424C19.762 19.6319 20.3312 19.1511 21 18.8592C21.4132 18.6789 21.7699 18.3903 22.0324 18.0238C22.2949 17.6573 22.4534 17.2267 22.4912 16.7775C22.529 16.3283 22.4446 15.8773 22.247 15.4721C22.0494 15.067 21.746 14.7228 21.3688 14.4759C20.9916 14.2291 20.5546 14.0889 20.1042 14.0701C19.6539 14.0513 19.2068 14.1547 18.8103 14.3692C18.4138 14.5837 18.0828 14.9014 17.8521 15.2887C17.6214 15.676 17.4998 16.1185 17.5 16.5692C17.5 16.9008 17.3683 17.2187 17.1339 17.4531C16.8995 17.6875 16.5815 17.8192 16.25 17.8192C15.9185 17.8192 15.6005 17.6875 15.3661 17.4531C15.1317 17.2187 15 16.9008 15 16.5692C15 15.6678 15.2437 14.7831 15.7053 14.0088C16.1669 13.2345 16.8293 12.5994 17.6223 12.1707C18.4152 11.742 19.3094 11.5357 20.21 11.5736C21.1107 11.6114 21.9844 11.8921 22.7386 12.3858C23.4928 12.8796 24.0995 13.568 24.4945 14.3783C24.8895 15.1887 25.058 16.0907 24.9823 16.989C24.9067 17.8872 24.5895 18.7483 24.0645 19.4811C23.5395 20.2139 22.8262 20.7912 22 21.1517V21.1505Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
14740
16361
|
|
|
16362
|
+
/***/ }),
|
|
16363
|
+
|
|
16364
|
+
/***/ "96cf":
|
|
16365
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16366
|
+
|
|
16367
|
+
/**
|
|
16368
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
16369
|
+
*
|
|
16370
|
+
* This source code is licensed under the MIT license found in the
|
|
16371
|
+
* LICENSE file in the root directory of this source tree.
|
|
16372
|
+
*/
|
|
16373
|
+
|
|
16374
|
+
var runtime = (function (exports) {
|
|
16375
|
+
"use strict";
|
|
16376
|
+
|
|
16377
|
+
var Op = Object.prototype;
|
|
16378
|
+
var hasOwn = Op.hasOwnProperty;
|
|
16379
|
+
var undefined; // More compressible than void 0.
|
|
16380
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
16381
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
16382
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
16383
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
16384
|
+
|
|
16385
|
+
function define(obj, key, value) {
|
|
16386
|
+
Object.defineProperty(obj, key, {
|
|
16387
|
+
value: value,
|
|
16388
|
+
enumerable: true,
|
|
16389
|
+
configurable: true,
|
|
16390
|
+
writable: true
|
|
16391
|
+
});
|
|
16392
|
+
return obj[key];
|
|
16393
|
+
}
|
|
16394
|
+
try {
|
|
16395
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
16396
|
+
define({}, "");
|
|
16397
|
+
} catch (err) {
|
|
16398
|
+
define = function(obj, key, value) {
|
|
16399
|
+
return obj[key] = value;
|
|
16400
|
+
};
|
|
16401
|
+
}
|
|
16402
|
+
|
|
16403
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
16404
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
16405
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
16406
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
16407
|
+
var context = new Context(tryLocsList || []);
|
|
16408
|
+
|
|
16409
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
16410
|
+
// .throw, and .return methods.
|
|
16411
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
16412
|
+
|
|
16413
|
+
return generator;
|
|
16414
|
+
}
|
|
16415
|
+
exports.wrap = wrap;
|
|
16416
|
+
|
|
16417
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
16418
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
16419
|
+
// have been (and was previously) designed to take a closure to be
|
|
16420
|
+
// invoked without arguments, but in all the cases we care about we
|
|
16421
|
+
// already have an existing method we want to call, so there's no need
|
|
16422
|
+
// to create a new function object. We can even get away with assuming
|
|
16423
|
+
// the method takes exactly one argument, since that happens to be true
|
|
16424
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
16425
|
+
// only additional allocation required is the completion record, which
|
|
16426
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
16427
|
+
function tryCatch(fn, obj, arg) {
|
|
16428
|
+
try {
|
|
16429
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
16430
|
+
} catch (err) {
|
|
16431
|
+
return { type: "throw", arg: err };
|
|
16432
|
+
}
|
|
16433
|
+
}
|
|
16434
|
+
|
|
16435
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
16436
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
16437
|
+
var GenStateExecuting = "executing";
|
|
16438
|
+
var GenStateCompleted = "completed";
|
|
16439
|
+
|
|
16440
|
+
// Returning this object from the innerFn has the same effect as
|
|
16441
|
+
// breaking out of the dispatch switch statement.
|
|
16442
|
+
var ContinueSentinel = {};
|
|
16443
|
+
|
|
16444
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
16445
|
+
// .constructor.prototype properties for functions that return Generator
|
|
16446
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
16447
|
+
// minifier not to mangle the names of these two functions.
|
|
16448
|
+
function Generator() {}
|
|
16449
|
+
function GeneratorFunction() {}
|
|
16450
|
+
function GeneratorFunctionPrototype() {}
|
|
16451
|
+
|
|
16452
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
16453
|
+
// don't natively support it.
|
|
16454
|
+
var IteratorPrototype = {};
|
|
16455
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
16456
|
+
return this;
|
|
16457
|
+
};
|
|
16458
|
+
|
|
16459
|
+
var getProto = Object.getPrototypeOf;
|
|
16460
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
16461
|
+
if (NativeIteratorPrototype &&
|
|
16462
|
+
NativeIteratorPrototype !== Op &&
|
|
16463
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
16464
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
16465
|
+
// of the polyfill.
|
|
16466
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
16467
|
+
}
|
|
16468
|
+
|
|
16469
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
16470
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
16471
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
16472
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
16473
|
+
GeneratorFunction.displayName = define(
|
|
16474
|
+
GeneratorFunctionPrototype,
|
|
16475
|
+
toStringTagSymbol,
|
|
16476
|
+
"GeneratorFunction"
|
|
16477
|
+
);
|
|
16478
|
+
|
|
16479
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
16480
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
16481
|
+
function defineIteratorMethods(prototype) {
|
|
16482
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
16483
|
+
define(prototype, method, function(arg) {
|
|
16484
|
+
return this._invoke(method, arg);
|
|
16485
|
+
});
|
|
16486
|
+
});
|
|
16487
|
+
}
|
|
16488
|
+
|
|
16489
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
16490
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
16491
|
+
return ctor
|
|
16492
|
+
? ctor === GeneratorFunction ||
|
|
16493
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
16494
|
+
// do is to check its .name property.
|
|
16495
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
16496
|
+
: false;
|
|
16497
|
+
};
|
|
16498
|
+
|
|
16499
|
+
exports.mark = function(genFun) {
|
|
16500
|
+
if (Object.setPrototypeOf) {
|
|
16501
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
16502
|
+
} else {
|
|
16503
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
16504
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
16505
|
+
}
|
|
16506
|
+
genFun.prototype = Object.create(Gp);
|
|
16507
|
+
return genFun;
|
|
16508
|
+
};
|
|
16509
|
+
|
|
16510
|
+
// Within the body of any async function, `await x` is transformed to
|
|
16511
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
16512
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
16513
|
+
// meant to be awaited.
|
|
16514
|
+
exports.awrap = function(arg) {
|
|
16515
|
+
return { __await: arg };
|
|
16516
|
+
};
|
|
16517
|
+
|
|
16518
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
16519
|
+
function invoke(method, arg, resolve, reject) {
|
|
16520
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
16521
|
+
if (record.type === "throw") {
|
|
16522
|
+
reject(record.arg);
|
|
16523
|
+
} else {
|
|
16524
|
+
var result = record.arg;
|
|
16525
|
+
var value = result.value;
|
|
16526
|
+
if (value &&
|
|
16527
|
+
typeof value === "object" &&
|
|
16528
|
+
hasOwn.call(value, "__await")) {
|
|
16529
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
16530
|
+
invoke("next", value, resolve, reject);
|
|
16531
|
+
}, function(err) {
|
|
16532
|
+
invoke("throw", err, resolve, reject);
|
|
16533
|
+
});
|
|
16534
|
+
}
|
|
16535
|
+
|
|
16536
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
16537
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
16538
|
+
// the .value of the Promise<{value,done}> result for the
|
|
16539
|
+
// current iteration.
|
|
16540
|
+
result.value = unwrapped;
|
|
16541
|
+
resolve(result);
|
|
16542
|
+
}, function(error) {
|
|
16543
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
16544
|
+
// into the async generator function so it can be handled there.
|
|
16545
|
+
return invoke("throw", error, resolve, reject);
|
|
16546
|
+
});
|
|
16547
|
+
}
|
|
16548
|
+
}
|
|
16549
|
+
|
|
16550
|
+
var previousPromise;
|
|
16551
|
+
|
|
16552
|
+
function enqueue(method, arg) {
|
|
16553
|
+
function callInvokeWithMethodAndArg() {
|
|
16554
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
16555
|
+
invoke(method, arg, resolve, reject);
|
|
16556
|
+
});
|
|
16557
|
+
}
|
|
16558
|
+
|
|
16559
|
+
return previousPromise =
|
|
16560
|
+
// If enqueue has been called before, then we want to wait until
|
|
16561
|
+
// all previous Promises have been resolved before calling invoke,
|
|
16562
|
+
// so that results are always delivered in the correct order. If
|
|
16563
|
+
// enqueue has not been called before, then it is important to
|
|
16564
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
16565
|
+
// so that the async generator function has the opportunity to do
|
|
16566
|
+
// any necessary setup in a predictable way. This predictability
|
|
16567
|
+
// is why the Promise constructor synchronously invokes its
|
|
16568
|
+
// executor callback, and why async functions synchronously
|
|
16569
|
+
// execute code before the first await. Since we implement simple
|
|
16570
|
+
// async functions in terms of async generators, it is especially
|
|
16571
|
+
// important to get this right, even though it requires care.
|
|
16572
|
+
previousPromise ? previousPromise.then(
|
|
16573
|
+
callInvokeWithMethodAndArg,
|
|
16574
|
+
// Avoid propagating failures to Promises returned by later
|
|
16575
|
+
// invocations of the iterator.
|
|
16576
|
+
callInvokeWithMethodAndArg
|
|
16577
|
+
) : callInvokeWithMethodAndArg();
|
|
16578
|
+
}
|
|
16579
|
+
|
|
16580
|
+
// Define the unified helper method that is used to implement .next,
|
|
16581
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
16582
|
+
this._invoke = enqueue;
|
|
16583
|
+
}
|
|
16584
|
+
|
|
16585
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
16586
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
16587
|
+
return this;
|
|
16588
|
+
};
|
|
16589
|
+
exports.AsyncIterator = AsyncIterator;
|
|
16590
|
+
|
|
16591
|
+
// Note that simple async functions are implemented on top of
|
|
16592
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
16593
|
+
// the final result produced by the iterator.
|
|
16594
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
16595
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
16596
|
+
|
|
16597
|
+
var iter = new AsyncIterator(
|
|
16598
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
16599
|
+
PromiseImpl
|
|
16600
|
+
);
|
|
16601
|
+
|
|
16602
|
+
return exports.isGeneratorFunction(outerFn)
|
|
16603
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
16604
|
+
: iter.next().then(function(result) {
|
|
16605
|
+
return result.done ? result.value : iter.next();
|
|
16606
|
+
});
|
|
16607
|
+
};
|
|
16608
|
+
|
|
16609
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
16610
|
+
var state = GenStateSuspendedStart;
|
|
16611
|
+
|
|
16612
|
+
return function invoke(method, arg) {
|
|
16613
|
+
if (state === GenStateExecuting) {
|
|
16614
|
+
throw new Error("Generator is already running");
|
|
16615
|
+
}
|
|
16616
|
+
|
|
16617
|
+
if (state === GenStateCompleted) {
|
|
16618
|
+
if (method === "throw") {
|
|
16619
|
+
throw arg;
|
|
16620
|
+
}
|
|
16621
|
+
|
|
16622
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
16623
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
16624
|
+
return doneResult();
|
|
16625
|
+
}
|
|
16626
|
+
|
|
16627
|
+
context.method = method;
|
|
16628
|
+
context.arg = arg;
|
|
16629
|
+
|
|
16630
|
+
while (true) {
|
|
16631
|
+
var delegate = context.delegate;
|
|
16632
|
+
if (delegate) {
|
|
16633
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
16634
|
+
if (delegateResult) {
|
|
16635
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
16636
|
+
return delegateResult;
|
|
16637
|
+
}
|
|
16638
|
+
}
|
|
16639
|
+
|
|
16640
|
+
if (context.method === "next") {
|
|
16641
|
+
// Setting context._sent for legacy support of Babel's
|
|
16642
|
+
// function.sent implementation.
|
|
16643
|
+
context.sent = context._sent = context.arg;
|
|
16644
|
+
|
|
16645
|
+
} else if (context.method === "throw") {
|
|
16646
|
+
if (state === GenStateSuspendedStart) {
|
|
16647
|
+
state = GenStateCompleted;
|
|
16648
|
+
throw context.arg;
|
|
16649
|
+
}
|
|
16650
|
+
|
|
16651
|
+
context.dispatchException(context.arg);
|
|
16652
|
+
|
|
16653
|
+
} else if (context.method === "return") {
|
|
16654
|
+
context.abrupt("return", context.arg);
|
|
16655
|
+
}
|
|
16656
|
+
|
|
16657
|
+
state = GenStateExecuting;
|
|
16658
|
+
|
|
16659
|
+
var record = tryCatch(innerFn, self, context);
|
|
16660
|
+
if (record.type === "normal") {
|
|
16661
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
16662
|
+
// GenStateExecuting and loop back for another invocation.
|
|
16663
|
+
state = context.done
|
|
16664
|
+
? GenStateCompleted
|
|
16665
|
+
: GenStateSuspendedYield;
|
|
16666
|
+
|
|
16667
|
+
if (record.arg === ContinueSentinel) {
|
|
16668
|
+
continue;
|
|
16669
|
+
}
|
|
16670
|
+
|
|
16671
|
+
return {
|
|
16672
|
+
value: record.arg,
|
|
16673
|
+
done: context.done
|
|
16674
|
+
};
|
|
16675
|
+
|
|
16676
|
+
} else if (record.type === "throw") {
|
|
16677
|
+
state = GenStateCompleted;
|
|
16678
|
+
// Dispatch the exception by looping back around to the
|
|
16679
|
+
// context.dispatchException(context.arg) call above.
|
|
16680
|
+
context.method = "throw";
|
|
16681
|
+
context.arg = record.arg;
|
|
16682
|
+
}
|
|
16683
|
+
}
|
|
16684
|
+
};
|
|
16685
|
+
}
|
|
16686
|
+
|
|
16687
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
16688
|
+
// result, either by returning a { value, done } result from the
|
|
16689
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
16690
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
16691
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
16692
|
+
var method = delegate.iterator[context.method];
|
|
16693
|
+
if (method === undefined) {
|
|
16694
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
16695
|
+
// method always terminates the yield* loop.
|
|
16696
|
+
context.delegate = null;
|
|
16697
|
+
|
|
16698
|
+
if (context.method === "throw") {
|
|
16699
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
16700
|
+
if (delegate.iterator["return"]) {
|
|
16701
|
+
// If the delegate iterator has a return method, give it a
|
|
16702
|
+
// chance to clean up.
|
|
16703
|
+
context.method = "return";
|
|
16704
|
+
context.arg = undefined;
|
|
16705
|
+
maybeInvokeDelegate(delegate, context);
|
|
16706
|
+
|
|
16707
|
+
if (context.method === "throw") {
|
|
16708
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
16709
|
+
// "return" to "throw", let that override the TypeError below.
|
|
16710
|
+
return ContinueSentinel;
|
|
16711
|
+
}
|
|
16712
|
+
}
|
|
16713
|
+
|
|
16714
|
+
context.method = "throw";
|
|
16715
|
+
context.arg = new TypeError(
|
|
16716
|
+
"The iterator does not provide a 'throw' method");
|
|
16717
|
+
}
|
|
16718
|
+
|
|
16719
|
+
return ContinueSentinel;
|
|
16720
|
+
}
|
|
16721
|
+
|
|
16722
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
16723
|
+
|
|
16724
|
+
if (record.type === "throw") {
|
|
16725
|
+
context.method = "throw";
|
|
16726
|
+
context.arg = record.arg;
|
|
16727
|
+
context.delegate = null;
|
|
16728
|
+
return ContinueSentinel;
|
|
16729
|
+
}
|
|
16730
|
+
|
|
16731
|
+
var info = record.arg;
|
|
16732
|
+
|
|
16733
|
+
if (! info) {
|
|
16734
|
+
context.method = "throw";
|
|
16735
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
16736
|
+
context.delegate = null;
|
|
16737
|
+
return ContinueSentinel;
|
|
16738
|
+
}
|
|
16739
|
+
|
|
16740
|
+
if (info.done) {
|
|
16741
|
+
// Assign the result of the finished delegate to the temporary
|
|
16742
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
16743
|
+
context[delegate.resultName] = info.value;
|
|
16744
|
+
|
|
16745
|
+
// Resume execution at the desired location (see delegateYield).
|
|
16746
|
+
context.next = delegate.nextLoc;
|
|
16747
|
+
|
|
16748
|
+
// If context.method was "throw" but the delegate handled the
|
|
16749
|
+
// exception, let the outer generator proceed normally. If
|
|
16750
|
+
// context.method was "next", forget context.arg since it has been
|
|
16751
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
16752
|
+
// "return", allow the original .return call to continue in the
|
|
16753
|
+
// outer generator.
|
|
16754
|
+
if (context.method !== "return") {
|
|
16755
|
+
context.method = "next";
|
|
16756
|
+
context.arg = undefined;
|
|
16757
|
+
}
|
|
16758
|
+
|
|
16759
|
+
} else {
|
|
16760
|
+
// Re-yield the result returned by the delegate method.
|
|
16761
|
+
return info;
|
|
16762
|
+
}
|
|
16763
|
+
|
|
16764
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
16765
|
+
// the outer generator.
|
|
16766
|
+
context.delegate = null;
|
|
16767
|
+
return ContinueSentinel;
|
|
16768
|
+
}
|
|
16769
|
+
|
|
16770
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
16771
|
+
// unified ._invoke helper method.
|
|
16772
|
+
defineIteratorMethods(Gp);
|
|
16773
|
+
|
|
16774
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
16775
|
+
|
|
16776
|
+
// A Generator should always return itself as the iterator object when the
|
|
16777
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
16778
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
16779
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
16780
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
16781
|
+
Gp[iteratorSymbol] = function() {
|
|
16782
|
+
return this;
|
|
16783
|
+
};
|
|
16784
|
+
|
|
16785
|
+
Gp.toString = function() {
|
|
16786
|
+
return "[object Generator]";
|
|
16787
|
+
};
|
|
16788
|
+
|
|
16789
|
+
function pushTryEntry(locs) {
|
|
16790
|
+
var entry = { tryLoc: locs[0] };
|
|
16791
|
+
|
|
16792
|
+
if (1 in locs) {
|
|
16793
|
+
entry.catchLoc = locs[1];
|
|
16794
|
+
}
|
|
16795
|
+
|
|
16796
|
+
if (2 in locs) {
|
|
16797
|
+
entry.finallyLoc = locs[2];
|
|
16798
|
+
entry.afterLoc = locs[3];
|
|
16799
|
+
}
|
|
16800
|
+
|
|
16801
|
+
this.tryEntries.push(entry);
|
|
16802
|
+
}
|
|
16803
|
+
|
|
16804
|
+
function resetTryEntry(entry) {
|
|
16805
|
+
var record = entry.completion || {};
|
|
16806
|
+
record.type = "normal";
|
|
16807
|
+
delete record.arg;
|
|
16808
|
+
entry.completion = record;
|
|
16809
|
+
}
|
|
16810
|
+
|
|
16811
|
+
function Context(tryLocsList) {
|
|
16812
|
+
// The root entry object (effectively a try statement without a catch
|
|
16813
|
+
// or a finally block) gives us a place to store values thrown from
|
|
16814
|
+
// locations where there is no enclosing try statement.
|
|
16815
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
16816
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
16817
|
+
this.reset(true);
|
|
16818
|
+
}
|
|
16819
|
+
|
|
16820
|
+
exports.keys = function(object) {
|
|
16821
|
+
var keys = [];
|
|
16822
|
+
for (var key in object) {
|
|
16823
|
+
keys.push(key);
|
|
16824
|
+
}
|
|
16825
|
+
keys.reverse();
|
|
16826
|
+
|
|
16827
|
+
// Rather than returning an object with a next method, we keep
|
|
16828
|
+
// things simple and return the next function itself.
|
|
16829
|
+
return function next() {
|
|
16830
|
+
while (keys.length) {
|
|
16831
|
+
var key = keys.pop();
|
|
16832
|
+
if (key in object) {
|
|
16833
|
+
next.value = key;
|
|
16834
|
+
next.done = false;
|
|
16835
|
+
return next;
|
|
16836
|
+
}
|
|
16837
|
+
}
|
|
16838
|
+
|
|
16839
|
+
// To avoid creating an additional object, we just hang the .value
|
|
16840
|
+
// and .done properties off the next function object itself. This
|
|
16841
|
+
// also ensures that the minifier will not anonymize the function.
|
|
16842
|
+
next.done = true;
|
|
16843
|
+
return next;
|
|
16844
|
+
};
|
|
16845
|
+
};
|
|
16846
|
+
|
|
16847
|
+
function values(iterable) {
|
|
16848
|
+
if (iterable) {
|
|
16849
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
16850
|
+
if (iteratorMethod) {
|
|
16851
|
+
return iteratorMethod.call(iterable);
|
|
16852
|
+
}
|
|
16853
|
+
|
|
16854
|
+
if (typeof iterable.next === "function") {
|
|
16855
|
+
return iterable;
|
|
16856
|
+
}
|
|
16857
|
+
|
|
16858
|
+
if (!isNaN(iterable.length)) {
|
|
16859
|
+
var i = -1, next = function next() {
|
|
16860
|
+
while (++i < iterable.length) {
|
|
16861
|
+
if (hasOwn.call(iterable, i)) {
|
|
16862
|
+
next.value = iterable[i];
|
|
16863
|
+
next.done = false;
|
|
16864
|
+
return next;
|
|
16865
|
+
}
|
|
16866
|
+
}
|
|
16867
|
+
|
|
16868
|
+
next.value = undefined;
|
|
16869
|
+
next.done = true;
|
|
16870
|
+
|
|
16871
|
+
return next;
|
|
16872
|
+
};
|
|
16873
|
+
|
|
16874
|
+
return next.next = next;
|
|
16875
|
+
}
|
|
16876
|
+
}
|
|
16877
|
+
|
|
16878
|
+
// Return an iterator with no values.
|
|
16879
|
+
return { next: doneResult };
|
|
16880
|
+
}
|
|
16881
|
+
exports.values = values;
|
|
16882
|
+
|
|
16883
|
+
function doneResult() {
|
|
16884
|
+
return { value: undefined, done: true };
|
|
16885
|
+
}
|
|
16886
|
+
|
|
16887
|
+
Context.prototype = {
|
|
16888
|
+
constructor: Context,
|
|
16889
|
+
|
|
16890
|
+
reset: function(skipTempReset) {
|
|
16891
|
+
this.prev = 0;
|
|
16892
|
+
this.next = 0;
|
|
16893
|
+
// Resetting context._sent for legacy support of Babel's
|
|
16894
|
+
// function.sent implementation.
|
|
16895
|
+
this.sent = this._sent = undefined;
|
|
16896
|
+
this.done = false;
|
|
16897
|
+
this.delegate = null;
|
|
16898
|
+
|
|
16899
|
+
this.method = "next";
|
|
16900
|
+
this.arg = undefined;
|
|
16901
|
+
|
|
16902
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
16903
|
+
|
|
16904
|
+
if (!skipTempReset) {
|
|
16905
|
+
for (var name in this) {
|
|
16906
|
+
// Not sure about the optimal order of these conditions:
|
|
16907
|
+
if (name.charAt(0) === "t" &&
|
|
16908
|
+
hasOwn.call(this, name) &&
|
|
16909
|
+
!isNaN(+name.slice(1))) {
|
|
16910
|
+
this[name] = undefined;
|
|
16911
|
+
}
|
|
16912
|
+
}
|
|
16913
|
+
}
|
|
16914
|
+
},
|
|
16915
|
+
|
|
16916
|
+
stop: function() {
|
|
16917
|
+
this.done = true;
|
|
16918
|
+
|
|
16919
|
+
var rootEntry = this.tryEntries[0];
|
|
16920
|
+
var rootRecord = rootEntry.completion;
|
|
16921
|
+
if (rootRecord.type === "throw") {
|
|
16922
|
+
throw rootRecord.arg;
|
|
16923
|
+
}
|
|
16924
|
+
|
|
16925
|
+
return this.rval;
|
|
16926
|
+
},
|
|
16927
|
+
|
|
16928
|
+
dispatchException: function(exception) {
|
|
16929
|
+
if (this.done) {
|
|
16930
|
+
throw exception;
|
|
16931
|
+
}
|
|
16932
|
+
|
|
16933
|
+
var context = this;
|
|
16934
|
+
function handle(loc, caught) {
|
|
16935
|
+
record.type = "throw";
|
|
16936
|
+
record.arg = exception;
|
|
16937
|
+
context.next = loc;
|
|
16938
|
+
|
|
16939
|
+
if (caught) {
|
|
16940
|
+
// If the dispatched exception was caught by a catch block,
|
|
16941
|
+
// then let that catch block handle the exception normally.
|
|
16942
|
+
context.method = "next";
|
|
16943
|
+
context.arg = undefined;
|
|
16944
|
+
}
|
|
16945
|
+
|
|
16946
|
+
return !! caught;
|
|
16947
|
+
}
|
|
16948
|
+
|
|
16949
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16950
|
+
var entry = this.tryEntries[i];
|
|
16951
|
+
var record = entry.completion;
|
|
16952
|
+
|
|
16953
|
+
if (entry.tryLoc === "root") {
|
|
16954
|
+
// Exception thrown outside of any try block that could handle
|
|
16955
|
+
// it, so set the completion value of the entire function to
|
|
16956
|
+
// throw the exception.
|
|
16957
|
+
return handle("end");
|
|
16958
|
+
}
|
|
16959
|
+
|
|
16960
|
+
if (entry.tryLoc <= this.prev) {
|
|
16961
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
16962
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
16963
|
+
|
|
16964
|
+
if (hasCatch && hasFinally) {
|
|
16965
|
+
if (this.prev < entry.catchLoc) {
|
|
16966
|
+
return handle(entry.catchLoc, true);
|
|
16967
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
16968
|
+
return handle(entry.finallyLoc);
|
|
16969
|
+
}
|
|
16970
|
+
|
|
16971
|
+
} else if (hasCatch) {
|
|
16972
|
+
if (this.prev < entry.catchLoc) {
|
|
16973
|
+
return handle(entry.catchLoc, true);
|
|
16974
|
+
}
|
|
16975
|
+
|
|
16976
|
+
} else if (hasFinally) {
|
|
16977
|
+
if (this.prev < entry.finallyLoc) {
|
|
16978
|
+
return handle(entry.finallyLoc);
|
|
16979
|
+
}
|
|
16980
|
+
|
|
16981
|
+
} else {
|
|
16982
|
+
throw new Error("try statement without catch or finally");
|
|
16983
|
+
}
|
|
16984
|
+
}
|
|
16985
|
+
}
|
|
16986
|
+
},
|
|
16987
|
+
|
|
16988
|
+
abrupt: function(type, arg) {
|
|
16989
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16990
|
+
var entry = this.tryEntries[i];
|
|
16991
|
+
if (entry.tryLoc <= this.prev &&
|
|
16992
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
16993
|
+
this.prev < entry.finallyLoc) {
|
|
16994
|
+
var finallyEntry = entry;
|
|
16995
|
+
break;
|
|
16996
|
+
}
|
|
16997
|
+
}
|
|
16998
|
+
|
|
16999
|
+
if (finallyEntry &&
|
|
17000
|
+
(type === "break" ||
|
|
17001
|
+
type === "continue") &&
|
|
17002
|
+
finallyEntry.tryLoc <= arg &&
|
|
17003
|
+
arg <= finallyEntry.finallyLoc) {
|
|
17004
|
+
// Ignore the finally entry if control is not jumping to a
|
|
17005
|
+
// location outside the try/catch block.
|
|
17006
|
+
finallyEntry = null;
|
|
17007
|
+
}
|
|
17008
|
+
|
|
17009
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
17010
|
+
record.type = type;
|
|
17011
|
+
record.arg = arg;
|
|
17012
|
+
|
|
17013
|
+
if (finallyEntry) {
|
|
17014
|
+
this.method = "next";
|
|
17015
|
+
this.next = finallyEntry.finallyLoc;
|
|
17016
|
+
return ContinueSentinel;
|
|
17017
|
+
}
|
|
17018
|
+
|
|
17019
|
+
return this.complete(record);
|
|
17020
|
+
},
|
|
17021
|
+
|
|
17022
|
+
complete: function(record, afterLoc) {
|
|
17023
|
+
if (record.type === "throw") {
|
|
17024
|
+
throw record.arg;
|
|
17025
|
+
}
|
|
17026
|
+
|
|
17027
|
+
if (record.type === "break" ||
|
|
17028
|
+
record.type === "continue") {
|
|
17029
|
+
this.next = record.arg;
|
|
17030
|
+
} else if (record.type === "return") {
|
|
17031
|
+
this.rval = this.arg = record.arg;
|
|
17032
|
+
this.method = "return";
|
|
17033
|
+
this.next = "end";
|
|
17034
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
17035
|
+
this.next = afterLoc;
|
|
17036
|
+
}
|
|
17037
|
+
|
|
17038
|
+
return ContinueSentinel;
|
|
17039
|
+
},
|
|
17040
|
+
|
|
17041
|
+
finish: function(finallyLoc) {
|
|
17042
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
17043
|
+
var entry = this.tryEntries[i];
|
|
17044
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
17045
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
17046
|
+
resetTryEntry(entry);
|
|
17047
|
+
return ContinueSentinel;
|
|
17048
|
+
}
|
|
17049
|
+
}
|
|
17050
|
+
},
|
|
17051
|
+
|
|
17052
|
+
"catch": function(tryLoc) {
|
|
17053
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
17054
|
+
var entry = this.tryEntries[i];
|
|
17055
|
+
if (entry.tryLoc === tryLoc) {
|
|
17056
|
+
var record = entry.completion;
|
|
17057
|
+
if (record.type === "throw") {
|
|
17058
|
+
var thrown = record.arg;
|
|
17059
|
+
resetTryEntry(entry);
|
|
17060
|
+
}
|
|
17061
|
+
return thrown;
|
|
17062
|
+
}
|
|
17063
|
+
}
|
|
17064
|
+
|
|
17065
|
+
// The context.catch method must only be called with a location
|
|
17066
|
+
// argument that corresponds to a known catch block.
|
|
17067
|
+
throw new Error("illegal catch attempt");
|
|
17068
|
+
},
|
|
17069
|
+
|
|
17070
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
17071
|
+
this.delegate = {
|
|
17072
|
+
iterator: values(iterable),
|
|
17073
|
+
resultName: resultName,
|
|
17074
|
+
nextLoc: nextLoc
|
|
17075
|
+
};
|
|
17076
|
+
|
|
17077
|
+
if (this.method === "next") {
|
|
17078
|
+
// Deliberately forget the last sent value so that we don't
|
|
17079
|
+
// accidentally pass it on to the delegate.
|
|
17080
|
+
this.arg = undefined;
|
|
17081
|
+
}
|
|
17082
|
+
|
|
17083
|
+
return ContinueSentinel;
|
|
17084
|
+
}
|
|
17085
|
+
};
|
|
17086
|
+
|
|
17087
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
17088
|
+
// or not, return the runtime object so that we can declare the variable
|
|
17089
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
17090
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
17091
|
+
return exports;
|
|
17092
|
+
|
|
17093
|
+
}(
|
|
17094
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
17095
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
17096
|
+
// object. Either way, the resulting object will be used to initialize
|
|
17097
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
17098
|
+
true ? module.exports : undefined
|
|
17099
|
+
));
|
|
17100
|
+
|
|
17101
|
+
try {
|
|
17102
|
+
regeneratorRuntime = runtime;
|
|
17103
|
+
} catch (accidentalStrictMode) {
|
|
17104
|
+
// This module should not be running in strict mode, so the above
|
|
17105
|
+
// assignment should always work unless something is misconfigured. Just
|
|
17106
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
17107
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
17108
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
17109
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
17110
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
17111
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
17112
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
17113
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
17114
|
+
}
|
|
17115
|
+
|
|
17116
|
+
|
|
14741
17117
|
/***/ }),
|
|
14742
17118
|
|
|
14743
17119
|
/***/ "9727":
|
|
@@ -14963,6 +17339,361 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
14963
17339
|
|
|
14964
17340
|
// extracted by mini-css-extract-plugin
|
|
14965
17341
|
|
|
17342
|
+
/***/ }),
|
|
17343
|
+
|
|
17344
|
+
/***/ "9861":
|
|
17345
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17346
|
+
|
|
17347
|
+
"use strict";
|
|
17348
|
+
|
|
17349
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
17350
|
+
__webpack_require__("e260");
|
|
17351
|
+
var $ = __webpack_require__("23e7");
|
|
17352
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
17353
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
17354
|
+
var redefine = __webpack_require__("6eeb");
|
|
17355
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
17356
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
17357
|
+
var createIteratorConstructor = __webpack_require__("9ed3");
|
|
17358
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
17359
|
+
var anInstance = __webpack_require__("19aa");
|
|
17360
|
+
var hasOwn = __webpack_require__("5135");
|
|
17361
|
+
var bind = __webpack_require__("0366");
|
|
17362
|
+
var classof = __webpack_require__("f5df");
|
|
17363
|
+
var anObject = __webpack_require__("825a");
|
|
17364
|
+
var isObject = __webpack_require__("861d");
|
|
17365
|
+
var create = __webpack_require__("7c73");
|
|
17366
|
+
var createPropertyDescriptor = __webpack_require__("5c6c");
|
|
17367
|
+
var getIterator = __webpack_require__("9a1f");
|
|
17368
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
17369
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
17370
|
+
|
|
17371
|
+
var $fetch = getBuiltIn('fetch');
|
|
17372
|
+
var Headers = getBuiltIn('Headers');
|
|
17373
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
17374
|
+
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
17375
|
+
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
17376
|
+
var setInternalState = InternalStateModule.set;
|
|
17377
|
+
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
|
|
17378
|
+
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
17379
|
+
|
|
17380
|
+
var plus = /\+/g;
|
|
17381
|
+
var sequences = Array(4);
|
|
17382
|
+
|
|
17383
|
+
var percentSequence = function (bytes) {
|
|
17384
|
+
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
|
|
17385
|
+
};
|
|
17386
|
+
|
|
17387
|
+
var percentDecode = function (sequence) {
|
|
17388
|
+
try {
|
|
17389
|
+
return decodeURIComponent(sequence);
|
|
17390
|
+
} catch (error) {
|
|
17391
|
+
return sequence;
|
|
17392
|
+
}
|
|
17393
|
+
};
|
|
17394
|
+
|
|
17395
|
+
var deserialize = function (it) {
|
|
17396
|
+
var result = it.replace(plus, ' ');
|
|
17397
|
+
var bytes = 4;
|
|
17398
|
+
try {
|
|
17399
|
+
return decodeURIComponent(result);
|
|
17400
|
+
} catch (error) {
|
|
17401
|
+
while (bytes) {
|
|
17402
|
+
result = result.replace(percentSequence(bytes--), percentDecode);
|
|
17403
|
+
}
|
|
17404
|
+
return result;
|
|
17405
|
+
}
|
|
17406
|
+
};
|
|
17407
|
+
|
|
17408
|
+
var find = /[!'()~]|%20/g;
|
|
17409
|
+
|
|
17410
|
+
var replace = {
|
|
17411
|
+
'!': '%21',
|
|
17412
|
+
"'": '%27',
|
|
17413
|
+
'(': '%28',
|
|
17414
|
+
')': '%29',
|
|
17415
|
+
'~': '%7E',
|
|
17416
|
+
'%20': '+'
|
|
17417
|
+
};
|
|
17418
|
+
|
|
17419
|
+
var replacer = function (match) {
|
|
17420
|
+
return replace[match];
|
|
17421
|
+
};
|
|
17422
|
+
|
|
17423
|
+
var serialize = function (it) {
|
|
17424
|
+
return encodeURIComponent(it).replace(find, replacer);
|
|
17425
|
+
};
|
|
17426
|
+
|
|
17427
|
+
var parseSearchParams = function (result, query) {
|
|
17428
|
+
if (query) {
|
|
17429
|
+
var attributes = query.split('&');
|
|
17430
|
+
var index = 0;
|
|
17431
|
+
var attribute, entry;
|
|
17432
|
+
while (index < attributes.length) {
|
|
17433
|
+
attribute = attributes[index++];
|
|
17434
|
+
if (attribute.length) {
|
|
17435
|
+
entry = attribute.split('=');
|
|
17436
|
+
result.push({
|
|
17437
|
+
key: deserialize(entry.shift()),
|
|
17438
|
+
value: deserialize(entry.join('='))
|
|
17439
|
+
});
|
|
17440
|
+
}
|
|
17441
|
+
}
|
|
17442
|
+
}
|
|
17443
|
+
};
|
|
17444
|
+
|
|
17445
|
+
var updateSearchParams = function (query) {
|
|
17446
|
+
this.entries.length = 0;
|
|
17447
|
+
parseSearchParams(this.entries, query);
|
|
17448
|
+
};
|
|
17449
|
+
|
|
17450
|
+
var validateArgumentsLength = function (passed, required) {
|
|
17451
|
+
if (passed < required) throw TypeError('Not enough arguments');
|
|
17452
|
+
};
|
|
17453
|
+
|
|
17454
|
+
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
17455
|
+
setInternalState(this, {
|
|
17456
|
+
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
17457
|
+
iterator: getIterator(getInternalParamsState(params).entries),
|
|
17458
|
+
kind: kind
|
|
17459
|
+
});
|
|
17460
|
+
}, 'Iterator', function next() {
|
|
17461
|
+
var state = getInternalIteratorState(this);
|
|
17462
|
+
var kind = state.kind;
|
|
17463
|
+
var step = state.iterator.next();
|
|
17464
|
+
var entry = step.value;
|
|
17465
|
+
if (!step.done) {
|
|
17466
|
+
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
|
|
17467
|
+
} return step;
|
|
17468
|
+
});
|
|
17469
|
+
|
|
17470
|
+
// `URLSearchParams` constructor
|
|
17471
|
+
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
17472
|
+
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
17473
|
+
anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
17474
|
+
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
17475
|
+
var that = this;
|
|
17476
|
+
var entries = [];
|
|
17477
|
+
var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
|
|
17478
|
+
|
|
17479
|
+
setInternalState(that, {
|
|
17480
|
+
type: URL_SEARCH_PARAMS,
|
|
17481
|
+
entries: entries,
|
|
17482
|
+
updateURL: function () { /* empty */ },
|
|
17483
|
+
updateSearchParams: updateSearchParams
|
|
17484
|
+
});
|
|
17485
|
+
|
|
17486
|
+
if (init !== undefined) {
|
|
17487
|
+
if (isObject(init)) {
|
|
17488
|
+
iteratorMethod = getIteratorMethod(init);
|
|
17489
|
+
if (typeof iteratorMethod === 'function') {
|
|
17490
|
+
iterator = iteratorMethod.call(init);
|
|
17491
|
+
next = iterator.next;
|
|
17492
|
+
while (!(step = next.call(iterator)).done) {
|
|
17493
|
+
entryIterator = getIterator(anObject(step.value));
|
|
17494
|
+
entryNext = entryIterator.next;
|
|
17495
|
+
if (
|
|
17496
|
+
(first = entryNext.call(entryIterator)).done ||
|
|
17497
|
+
(second = entryNext.call(entryIterator)).done ||
|
|
17498
|
+
!entryNext.call(entryIterator).done
|
|
17499
|
+
) throw TypeError('Expected sequence with length 2');
|
|
17500
|
+
entries.push({ key: first.value + '', value: second.value + '' });
|
|
17501
|
+
}
|
|
17502
|
+
} else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' });
|
|
17503
|
+
} else {
|
|
17504
|
+
parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');
|
|
17505
|
+
}
|
|
17506
|
+
}
|
|
17507
|
+
};
|
|
17508
|
+
|
|
17509
|
+
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
17510
|
+
|
|
17511
|
+
redefineAll(URLSearchParamsPrototype, {
|
|
17512
|
+
// `URLSearchParams.prototype.append` method
|
|
17513
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
17514
|
+
append: function append(name, value) {
|
|
17515
|
+
validateArgumentsLength(arguments.length, 2);
|
|
17516
|
+
var state = getInternalParamsState(this);
|
|
17517
|
+
state.entries.push({ key: name + '', value: value + '' });
|
|
17518
|
+
state.updateURL();
|
|
17519
|
+
},
|
|
17520
|
+
// `URLSearchParams.prototype.delete` method
|
|
17521
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
17522
|
+
'delete': function (name) {
|
|
17523
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17524
|
+
var state = getInternalParamsState(this);
|
|
17525
|
+
var entries = state.entries;
|
|
17526
|
+
var key = name + '';
|
|
17527
|
+
var index = 0;
|
|
17528
|
+
while (index < entries.length) {
|
|
17529
|
+
if (entries[index].key === key) entries.splice(index, 1);
|
|
17530
|
+
else index++;
|
|
17531
|
+
}
|
|
17532
|
+
state.updateURL();
|
|
17533
|
+
},
|
|
17534
|
+
// `URLSearchParams.prototype.get` method
|
|
17535
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
17536
|
+
get: function get(name) {
|
|
17537
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17538
|
+
var entries = getInternalParamsState(this).entries;
|
|
17539
|
+
var key = name + '';
|
|
17540
|
+
var index = 0;
|
|
17541
|
+
for (; index < entries.length; index++) {
|
|
17542
|
+
if (entries[index].key === key) return entries[index].value;
|
|
17543
|
+
}
|
|
17544
|
+
return null;
|
|
17545
|
+
},
|
|
17546
|
+
// `URLSearchParams.prototype.getAll` method
|
|
17547
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
17548
|
+
getAll: function getAll(name) {
|
|
17549
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17550
|
+
var entries = getInternalParamsState(this).entries;
|
|
17551
|
+
var key = name + '';
|
|
17552
|
+
var result = [];
|
|
17553
|
+
var index = 0;
|
|
17554
|
+
for (; index < entries.length; index++) {
|
|
17555
|
+
if (entries[index].key === key) result.push(entries[index].value);
|
|
17556
|
+
}
|
|
17557
|
+
return result;
|
|
17558
|
+
},
|
|
17559
|
+
// `URLSearchParams.prototype.has` method
|
|
17560
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
17561
|
+
has: function has(name) {
|
|
17562
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17563
|
+
var entries = getInternalParamsState(this).entries;
|
|
17564
|
+
var key = name + '';
|
|
17565
|
+
var index = 0;
|
|
17566
|
+
while (index < entries.length) {
|
|
17567
|
+
if (entries[index++].key === key) return true;
|
|
17568
|
+
}
|
|
17569
|
+
return false;
|
|
17570
|
+
},
|
|
17571
|
+
// `URLSearchParams.prototype.set` method
|
|
17572
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
17573
|
+
set: function set(name, value) {
|
|
17574
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17575
|
+
var state = getInternalParamsState(this);
|
|
17576
|
+
var entries = state.entries;
|
|
17577
|
+
var found = false;
|
|
17578
|
+
var key = name + '';
|
|
17579
|
+
var val = value + '';
|
|
17580
|
+
var index = 0;
|
|
17581
|
+
var entry;
|
|
17582
|
+
for (; index < entries.length; index++) {
|
|
17583
|
+
entry = entries[index];
|
|
17584
|
+
if (entry.key === key) {
|
|
17585
|
+
if (found) entries.splice(index--, 1);
|
|
17586
|
+
else {
|
|
17587
|
+
found = true;
|
|
17588
|
+
entry.value = val;
|
|
17589
|
+
}
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
if (!found) entries.push({ key: key, value: val });
|
|
17593
|
+
state.updateURL();
|
|
17594
|
+
},
|
|
17595
|
+
// `URLSearchParams.prototype.sort` method
|
|
17596
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
17597
|
+
sort: function sort() {
|
|
17598
|
+
var state = getInternalParamsState(this);
|
|
17599
|
+
var entries = state.entries;
|
|
17600
|
+
// Array#sort is not stable in some engines
|
|
17601
|
+
var slice = entries.slice();
|
|
17602
|
+
var entry, entriesIndex, sliceIndex;
|
|
17603
|
+
entries.length = 0;
|
|
17604
|
+
for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
|
|
17605
|
+
entry = slice[sliceIndex];
|
|
17606
|
+
for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
|
|
17607
|
+
if (entries[entriesIndex].key > entry.key) {
|
|
17608
|
+
entries.splice(entriesIndex, 0, entry);
|
|
17609
|
+
break;
|
|
17610
|
+
}
|
|
17611
|
+
}
|
|
17612
|
+
if (entriesIndex === sliceIndex) entries.push(entry);
|
|
17613
|
+
}
|
|
17614
|
+
state.updateURL();
|
|
17615
|
+
},
|
|
17616
|
+
// `URLSearchParams.prototype.forEach` method
|
|
17617
|
+
forEach: function forEach(callback /* , thisArg */) {
|
|
17618
|
+
var entries = getInternalParamsState(this).entries;
|
|
17619
|
+
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
17620
|
+
var index = 0;
|
|
17621
|
+
var entry;
|
|
17622
|
+
while (index < entries.length) {
|
|
17623
|
+
entry = entries[index++];
|
|
17624
|
+
boundFunction(entry.value, entry.key, this);
|
|
17625
|
+
}
|
|
17626
|
+
},
|
|
17627
|
+
// `URLSearchParams.prototype.keys` method
|
|
17628
|
+
keys: function keys() {
|
|
17629
|
+
return new URLSearchParamsIterator(this, 'keys');
|
|
17630
|
+
},
|
|
17631
|
+
// `URLSearchParams.prototype.values` method
|
|
17632
|
+
values: function values() {
|
|
17633
|
+
return new URLSearchParamsIterator(this, 'values');
|
|
17634
|
+
},
|
|
17635
|
+
// `URLSearchParams.prototype.entries` method
|
|
17636
|
+
entries: function entries() {
|
|
17637
|
+
return new URLSearchParamsIterator(this, 'entries');
|
|
17638
|
+
}
|
|
17639
|
+
}, { enumerable: true });
|
|
17640
|
+
|
|
17641
|
+
// `URLSearchParams.prototype[@@iterator]` method
|
|
17642
|
+
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);
|
|
17643
|
+
|
|
17644
|
+
// `URLSearchParams.prototype.toString` method
|
|
17645
|
+
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
17646
|
+
redefine(URLSearchParamsPrototype, 'toString', function toString() {
|
|
17647
|
+
var entries = getInternalParamsState(this).entries;
|
|
17648
|
+
var result = [];
|
|
17649
|
+
var index = 0;
|
|
17650
|
+
var entry;
|
|
17651
|
+
while (index < entries.length) {
|
|
17652
|
+
entry = entries[index++];
|
|
17653
|
+
result.push(serialize(entry.key) + '=' + serialize(entry.value));
|
|
17654
|
+
} return result.join('&');
|
|
17655
|
+
}, { enumerable: true });
|
|
17656
|
+
|
|
17657
|
+
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
17658
|
+
|
|
17659
|
+
$({ global: true, forced: !USE_NATIVE_URL }, {
|
|
17660
|
+
URLSearchParams: URLSearchParamsConstructor
|
|
17661
|
+
});
|
|
17662
|
+
|
|
17663
|
+
// Wrap `fetch` for correct work with polyfilled `URLSearchParams`
|
|
17664
|
+
// https://github.com/zloirock/core-js/issues/674
|
|
17665
|
+
if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {
|
|
17666
|
+
$({ global: true, enumerable: true, forced: true }, {
|
|
17667
|
+
fetch: function fetch(input /* , init */) {
|
|
17668
|
+
var args = [input];
|
|
17669
|
+
var init, body, headers;
|
|
17670
|
+
if (arguments.length > 1) {
|
|
17671
|
+
init = arguments[1];
|
|
17672
|
+
if (isObject(init)) {
|
|
17673
|
+
body = init.body;
|
|
17674
|
+
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
17675
|
+
headers = init.headers ? new Headers(init.headers) : new Headers();
|
|
17676
|
+
if (!headers.has('content-type')) {
|
|
17677
|
+
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
17678
|
+
}
|
|
17679
|
+
init = create(init, {
|
|
17680
|
+
body: createPropertyDescriptor(0, String(body)),
|
|
17681
|
+
headers: createPropertyDescriptor(0, headers)
|
|
17682
|
+
});
|
|
17683
|
+
}
|
|
17684
|
+
}
|
|
17685
|
+
args.push(init);
|
|
17686
|
+
} return $fetch.apply(this, args);
|
|
17687
|
+
}
|
|
17688
|
+
});
|
|
17689
|
+
}
|
|
17690
|
+
|
|
17691
|
+
module.exports = {
|
|
17692
|
+
URLSearchParams: URLSearchParamsConstructor,
|
|
17693
|
+
getState: getInternalParamsState
|
|
17694
|
+
};
|
|
17695
|
+
|
|
17696
|
+
|
|
14966
17697
|
/***/ }),
|
|
14967
17698
|
|
|
14968
17699
|
/***/ "9932":
|
|
@@ -15045,6 +17776,34 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
15045
17776
|
});
|
|
15046
17777
|
|
|
15047
17778
|
|
|
17779
|
+
/***/ }),
|
|
17780
|
+
|
|
17781
|
+
/***/ "9a0c":
|
|
17782
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17783
|
+
|
|
17784
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
17785
|
+
var userAgent = __webpack_require__("342f");
|
|
17786
|
+
|
|
17787
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
17788
|
+
module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
|
|
17789
|
+
|
|
17790
|
+
|
|
17791
|
+
/***/ }),
|
|
17792
|
+
|
|
17793
|
+
/***/ "9a1f":
|
|
17794
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17795
|
+
|
|
17796
|
+
var anObject = __webpack_require__("825a");
|
|
17797
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
17798
|
+
|
|
17799
|
+
module.exports = function (it) {
|
|
17800
|
+
var iteratorMethod = getIteratorMethod(it);
|
|
17801
|
+
if (typeof iteratorMethod != 'function') {
|
|
17802
|
+
throw TypeError(String(it) + ' is not iterable');
|
|
17803
|
+
} return anObject(iteratorMethod.call(it));
|
|
17804
|
+
};
|
|
17805
|
+
|
|
17806
|
+
|
|
15048
17807
|
/***/ }),
|
|
15049
17808
|
|
|
15050
17809
|
/***/ "9a25":
|
|
@@ -17227,6 +19986,102 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
17227
19986
|
// extracted by mini-css-extract-plugin
|
|
17228
19987
|
module.exports = {"unnnicColorBackgroundSolo":"#E8F4F4"};
|
|
17229
19988
|
|
|
19989
|
+
/***/ }),
|
|
19990
|
+
|
|
19991
|
+
/***/ "b567":
|
|
19992
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19993
|
+
|
|
19994
|
+
"use strict";
|
|
19995
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_73ef528c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e446");
|
|
19996
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_73ef528c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_73ef528c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
19997
|
+
/* unused harmony reexport * */
|
|
19998
|
+
|
|
19999
|
+
|
|
20000
|
+
/***/ }),
|
|
20001
|
+
|
|
20002
|
+
/***/ "b575":
|
|
20003
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20004
|
+
|
|
20005
|
+
var global = __webpack_require__("da84");
|
|
20006
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
20007
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
20008
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
20009
|
+
var IS_NODE = __webpack_require__("605d");
|
|
20010
|
+
|
|
20011
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
20012
|
+
var document = global.document;
|
|
20013
|
+
var process = global.process;
|
|
20014
|
+
var Promise = global.Promise;
|
|
20015
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
20016
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
20017
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
20018
|
+
|
|
20019
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
20020
|
+
|
|
20021
|
+
// modern engines have queueMicrotask method
|
|
20022
|
+
if (!queueMicrotask) {
|
|
20023
|
+
flush = function () {
|
|
20024
|
+
var parent, fn;
|
|
20025
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
20026
|
+
while (head) {
|
|
20027
|
+
fn = head.fn;
|
|
20028
|
+
head = head.next;
|
|
20029
|
+
try {
|
|
20030
|
+
fn();
|
|
20031
|
+
} catch (error) {
|
|
20032
|
+
if (head) notify();
|
|
20033
|
+
else last = undefined;
|
|
20034
|
+
throw error;
|
|
20035
|
+
}
|
|
20036
|
+
} last = undefined;
|
|
20037
|
+
if (parent) parent.enter();
|
|
20038
|
+
};
|
|
20039
|
+
|
|
20040
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
20041
|
+
if (!IS_IOS && !IS_NODE && MutationObserver && document) {
|
|
20042
|
+
toggle = true;
|
|
20043
|
+
node = document.createTextNode('');
|
|
20044
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
20045
|
+
notify = function () {
|
|
20046
|
+
node.data = toggle = !toggle;
|
|
20047
|
+
};
|
|
20048
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
20049
|
+
} else if (Promise && Promise.resolve) {
|
|
20050
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
20051
|
+
promise = Promise.resolve(undefined);
|
|
20052
|
+
then = promise.then;
|
|
20053
|
+
notify = function () {
|
|
20054
|
+
then.call(promise, flush);
|
|
20055
|
+
};
|
|
20056
|
+
// Node.js without promises
|
|
20057
|
+
} else if (IS_NODE) {
|
|
20058
|
+
notify = function () {
|
|
20059
|
+
process.nextTick(flush);
|
|
20060
|
+
};
|
|
20061
|
+
// for other environments - macrotask based on:
|
|
20062
|
+
// - setImmediate
|
|
20063
|
+
// - MessageChannel
|
|
20064
|
+
// - window.postMessag
|
|
20065
|
+
// - onreadystatechange
|
|
20066
|
+
// - setTimeout
|
|
20067
|
+
} else {
|
|
20068
|
+
notify = function () {
|
|
20069
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
20070
|
+
macrotask.call(global, flush);
|
|
20071
|
+
};
|
|
20072
|
+
}
|
|
20073
|
+
}
|
|
20074
|
+
|
|
20075
|
+
module.exports = queueMicrotask || function (fn) {
|
|
20076
|
+
var task = { fn: fn, next: undefined };
|
|
20077
|
+
if (last) last.next = task;
|
|
20078
|
+
if (!head) {
|
|
20079
|
+
head = task;
|
|
20080
|
+
notify();
|
|
20081
|
+
} last = task;
|
|
20082
|
+
};
|
|
20083
|
+
|
|
20084
|
+
|
|
17230
20085
|
/***/ }),
|
|
17231
20086
|
|
|
17232
20087
|
/***/ "b577":
|
|
@@ -24409,6 +27264,25 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
24409
27264
|
|
|
24410
27265
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.75 35.0005C7.71625 35.0005 6.875 34.1592 6.875 33.1255V9.37549C6.875 8.34174 7.71625 7.50049 8.75 7.50049H11.875V5.62549C11.875 5.28049 12.155 5.00049 12.5 5.00049C12.845 5.00049 13.125 5.28049 13.125 5.62549V7.50049H16.875V5.62549C16.875 5.28049 17.155 5.00049 17.5 5.00049C17.845 5.00049 18.125 5.28049 18.125 5.62549V7.50049H21.875V5.62549C21.875 5.28049 22.155 5.00049 22.5 5.00049C22.845 5.00049 23.125 5.28049 23.125 5.62549V7.50049H26.875V5.62549C26.875 5.28049 27.155 5.00049 27.5 5.00049C27.845 5.00049 28.125 5.28049 28.125 5.62549V7.50049H31.25C32.2838 7.50049 33.125 8.34174 33.125 9.37549V33.1255C33.125 34.1592 32.2838 35.0005 31.25 35.0005H8.75ZM8.75 8.75049C8.405 8.75049 8.125 9.03049 8.125 9.37549V33.1255C8.125 33.4705 8.405 33.7505 8.75 33.7505H31.25C31.595 33.7505 31.875 33.4705 31.875 33.1255V9.37549C31.875 9.03049 31.595 8.75049 31.25 8.75049H28.125V10.6255C28.125 10.9705 27.845 11.2505 27.5 11.2505C27.155 11.2505 26.875 10.9705 26.875 10.6255V8.75049H23.125V10.6255C23.125 10.9705 22.845 11.2505 22.5 11.2505C22.155 11.2505 21.875 10.9705 21.875 10.6255V8.75049H18.125V10.6255C18.125 10.9705 17.845 11.2505 17.5 11.2505C17.155 11.2505 16.875 10.9705 16.875 10.6255V8.75049H13.125V10.6255C13.125 10.9705 12.845 11.2505 12.5 11.2505C12.155 11.2505 11.875 10.9705 11.875 10.6255V8.75049H8.75Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 17.5005C12.155 17.5005 11.875 17.2205 11.875 16.8755C11.875 16.5305 12.155 16.2505 12.5 16.2505H27.5C27.845 16.2505 28.125 16.5305 28.125 16.8755C28.125 17.2205 27.845 17.5005 27.5 17.5005H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 21.2505C12.155 21.2505 11.875 20.9705 11.875 20.6255C11.875 20.2805 12.155 20.0005 12.5 20.0005H27.5C27.845 20.0005 28.125 20.2805 28.125 20.6255C28.125 20.9705 27.845 21.2505 27.5 21.2505H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 25.0005C12.155 25.0005 11.875 24.7205 11.875 24.3755C11.875 24.0305 12.155 23.7505 12.5 23.7505H27.5C27.845 23.7505 28.125 24.0305 28.125 24.3755C28.125 24.7205 27.845 25.0005 27.5 25.0005H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 28.7505C12.155 28.7505 11.875 28.4705 11.875 28.1255C11.875 27.7805 12.155 27.5005 12.5 27.5005H21.25C21.595 27.5005 21.875 27.7805 21.875 28.1255C21.875 28.4705 21.595 28.7505 21.25 28.7505H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
24411
27266
|
|
|
27267
|
+
/***/ }),
|
|
27268
|
+
|
|
27269
|
+
/***/ "cdf9":
|
|
27270
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27271
|
+
|
|
27272
|
+
var anObject = __webpack_require__("825a");
|
|
27273
|
+
var isObject = __webpack_require__("861d");
|
|
27274
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
27275
|
+
|
|
27276
|
+
module.exports = function (C, x) {
|
|
27277
|
+
anObject(C);
|
|
27278
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
27279
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
27280
|
+
var resolve = promiseCapability.resolve;
|
|
27281
|
+
resolve(x);
|
|
27282
|
+
return promiseCapability.promise;
|
|
27283
|
+
};
|
|
27284
|
+
|
|
27285
|
+
|
|
24412
27286
|
/***/ }),
|
|
24413
27287
|
|
|
24414
27288
|
/***/ "ce2c":
|
|
@@ -24589,6 +27463,13 @@ module.exports = function (key, value) {
|
|
|
24589
27463
|
})));
|
|
24590
27464
|
|
|
24591
27465
|
|
|
27466
|
+
/***/ }),
|
|
27467
|
+
|
|
27468
|
+
/***/ "cf20":
|
|
27469
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27470
|
+
|
|
27471
|
+
// extracted by mini-css-extract-plugin
|
|
27472
|
+
|
|
24592
27473
|
/***/ }),
|
|
24593
27474
|
|
|
24594
27475
|
/***/ "cf51":
|
|
@@ -26734,6 +29615,17 @@ addToUnscopables('entries');
|
|
|
26734
29615
|
/* unused harmony reexport * */
|
|
26735
29616
|
|
|
26736
29617
|
|
|
29618
|
+
/***/ }),
|
|
29619
|
+
|
|
29620
|
+
/***/ "e291":
|
|
29621
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29622
|
+
|
|
29623
|
+
"use strict";
|
|
29624
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f01b");
|
|
29625
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
29626
|
+
/* unused harmony reexport * */
|
|
29627
|
+
|
|
29628
|
+
|
|
26737
29629
|
/***/ }),
|
|
26738
29630
|
|
|
26739
29631
|
/***/ "e2ae":
|
|
@@ -26741,6 +29633,19 @@ addToUnscopables('entries');
|
|
|
26741
29633
|
|
|
26742
29634
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9239 30.0593C20.8471 29.9825 20.7516 29.9269 20.6469 29.8982C20.5421 29.8695 20.4316 29.8686 20.3264 29.8956C20.2208 29.9228 20.1242 29.9771 20.0462 30.0532C19.9681 30.1293 19.9113 30.2245 19.8814 30.3293L18.7751 34.2043C18.7487 34.2972 18.7441 34.395 18.7618 34.49C18.7795 34.5849 18.8189 34.6745 18.8771 34.7517C18.9352 34.8288 19.0104 34.8915 19.0969 34.9346C19.1833 34.9778 19.2785 35.0004 19.3751 35.0006C19.4336 35.0008 19.4917 34.9924 19.5476 34.9756L23.4226 33.8693C23.5272 33.8393 23.6221 33.7826 23.698 33.7047C23.7739 33.6268 23.8282 33.5305 23.8555 33.4252C23.8827 33.3199 23.8821 33.2093 23.8535 33.1044C23.8249 32.9994 23.7695 32.9038 23.6926 32.8268L20.9239 30.0593Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M28.464 21.5365C28.3468 21.4193 28.1879 21.3535 28.0222 21.3535C27.8564 21.3535 27.6975 21.4193 27.5803 21.5365L21.3178 27.8002C21.2006 27.9174 21.1348 28.0764 21.1348 28.2421C21.1348 28.4078 21.2006 28.5668 21.3178 28.684L25.0678 32.434C25.185 32.5511 25.344 32.617 25.5097 32.617C25.6754 32.617 25.8343 32.5511 25.9516 32.434L32.214 26.1702C32.3312 26.053 32.397 25.8941 32.397 25.7284C32.397 25.5626 32.3312 25.4037 32.214 25.2865L28.464 21.5365Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M34.0401 19.7105C33.7293 19.4042 33.3609 19.1626 32.9562 18.9996C32.5515 18.8366 32.1185 18.7555 31.6822 18.761C31.2459 18.7665 30.815 18.8584 30.4145 19.0315C30.014 19.2045 29.6518 19.4553 29.3488 19.7693C29.2317 19.8865 29.1658 20.0454 29.1658 20.2111C29.1658 20.3769 29.2317 20.5358 29.3488 20.653L33.0988 24.403C33.1532 24.4548 33.2174 24.4953 33.2875 24.5221C33.3577 24.5489 33.4325 24.5616 33.5076 24.5593C33.7063 24.5596 33.8973 24.4825 34.0401 24.3443C34.6543 23.7297 34.9993 22.8963 34.9993 22.0274C34.9993 21.1585 34.6543 20.3251 34.0401 19.7105V19.7105Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M31.25 5.00049H8.75005C7.75549 5.00049 6.80167 5.39558 6.09841 6.09883C5.39515 6.80209 5.00006 7.75592 5.00006 8.75048L5.00006 26.8754C5.00006 27.87 5.39515 28.8238 6.09841 29.5271C6.80167 30.2303 7.75549 30.6254 8.75005 30.6254H16.25C16.5815 30.6254 16.8995 30.4937 17.1339 30.2593C17.3683 30.0249 17.5 29.7069 17.5 29.3754C17.5 29.0439 17.3683 28.726 17.1339 28.4915C16.8995 28.2571 16.5815 28.1254 16.25 28.1254H8.75005C8.41853 28.1254 8.10059 27.9937 7.86617 27.7593C7.63175 27.5249 7.50005 27.2069 7.50005 26.8754V11.5642C7.49989 11.5231 7.50785 11.4823 7.52348 11.4442C7.53911 11.4062 7.5621 11.3716 7.59114 11.3424C7.62017 11.3133 7.65468 11.2902 7.69268 11.2744C7.73067 11.2586 7.77141 11.2505 7.81255 11.2505H32.1875C32.2704 11.2505 32.3498 11.2834 32.4085 11.342C32.4671 11.4006 32.5 11.4801 32.5 11.563V15.6255C32.5 15.957 32.6317 16.2749 32.8661 16.5093C33.1005 16.7438 33.4185 16.8755 33.75 16.8755C34.0815 16.8755 34.3994 16.7438 34.6339 16.5093C34.8683 16.2749 35 15.957 35 15.6255V8.75048C35 7.75592 34.6049 6.80209 33.9016 6.09883C33.1984 5.39558 32.2445 5.00049 31.25 5.00049ZM10.4325 8.75048C10.3283 8.93967 10.1751 9.09742 9.98914 9.20728C9.80314 9.31714 9.59107 9.37509 9.37505 9.37509C9.15902 9.37509 8.94696 9.31714 8.76095 9.20728C8.57495 9.09742 8.42183 8.93967 8.31755 8.75048C8.19747 8.56365 8.13089 8.34749 8.12505 8.12548C8.12633 7.94879 8.16555 7.77445 8.24005 7.61423C8.33828 7.39507 8.69884 7.07784 8.69884 7.07784C8.90012 6.94683 9.13489 6.87657 9.37505 6.87548C9.59066 6.87772 9.80188 6.93665 9.9875 7.04635C10.1731 7.15606 10.3266 7.31268 10.4325 7.50048C10.5528 7.68722 10.6194 7.90344 10.625 8.12548C10.6192 8.34749 10.5526 8.56365 10.4325 8.75048ZM14.8075 8.75048C14.7033 8.93967 14.5501 9.09742 14.3641 9.20728C14.1781 9.31714 13.9661 9.37509 13.75 9.37509C13.534 9.37509 13.3219 9.31714 13.1359 9.20728C12.9499 9.09742 12.7968 8.93967 12.6925 8.75048C12.5725 8.56365 12.5059 8.34749 12.5 8.12548C12.5057 7.90344 12.5723 7.68722 12.6925 7.50048C12.7968 7.31129 12.9499 7.15354 13.1359 7.04368C13.3219 6.93382 13.534 6.87586 13.75 6.87586C13.9661 6.87586 14.1781 6.93382 14.3641 7.04368C14.5501 7.15354 14.7033 7.31129 14.8075 7.50048C14.9278 7.68722 14.9944 7.90344 15 8.12548C14.9942 8.34749 14.9276 8.56365 14.8075 8.75048ZM19.1825 8.75048C19.0782 8.93967 18.9251 9.09742 18.7391 9.20728C18.5531 9.31714 18.341 9.37509 18.125 9.37509C17.909 9.37509 17.6969 9.31714 17.5109 9.20728C17.3249 9.09742 17.1718 8.93967 17.0675 8.75048C16.9474 8.56365 16.8809 8.34749 16.875 8.12548C16.8807 7.90344 16.9473 7.68722 17.0675 7.50048C17.1718 7.31129 17.3249 7.15354 17.5109 7.04368C17.6969 6.93382 17.909 6.87586 18.125 6.87586C18.341 6.87586 18.5531 6.93382 18.7391 7.04368C18.9251 7.15354 19.0782 7.31129 19.1825 7.50048C19.3028 7.68722 19.3694 7.90344 19.375 8.12548C19.3692 8.34749 19.3026 8.56365 19.1825 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M10.4325 8.75048C10.3283 8.93967 10.1751 9.09742 9.98914 9.20728C9.80314 9.31714 9.59107 9.37509 9.37505 9.37509C9.15902 9.37509 8.94696 9.31714 8.76095 9.20728C8.57495 9.09742 8.42183 8.93967 8.31755 8.75048C8.19747 8.56365 8.13089 8.34749 8.12505 8.12548C8.12633 7.94879 8.16555 7.77445 8.24005 7.61423C8.33828 7.39507 8.69884 7.07784 8.69884 7.07784C8.90012 6.94683 9.13489 6.87657 9.37505 6.87548C9.59066 6.87772 9.80188 6.93665 9.9875 7.04635C10.1731 7.15606 10.3266 7.31268 10.4325 7.50048C10.5528 7.68722 10.6194 7.90344 10.625 8.12548C10.6192 8.34749 10.5526 8.56365 10.4325 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M14.8075 8.75048C14.7033 8.93967 14.5501 9.09742 14.3641 9.20728C14.1781 9.31714 13.9661 9.37509 13.75 9.37509C13.534 9.37509 13.3219 9.31714 13.1359 9.20728C12.9499 9.09742 12.7968 8.93967 12.6925 8.75048C12.5725 8.56365 12.5059 8.34749 12.5 8.12548C12.5057 7.90344 12.5723 7.68722 12.6925 7.50048C12.7968 7.31129 12.9499 7.15354 13.1359 7.04368C13.3219 6.93382 13.534 6.87586 13.75 6.87586C13.9661 6.87586 14.1781 6.93382 14.3641 7.04368C14.5501 7.15354 14.7033 7.31129 14.8075 7.50048C14.9278 7.68722 14.9944 7.90344 15 8.12548C14.9942 8.34749 14.9276 8.56365 14.8075 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M19.1825 8.75048C19.0782 8.93967 18.9251 9.09742 18.7391 9.20728C18.5531 9.31714 18.341 9.37509 18.125 9.37509C17.909 9.37509 17.6969 9.31714 17.5109 9.20728C17.3249 9.09742 17.1718 8.93967 17.0675 8.75048C16.9474 8.56365 16.8809 8.34749 16.875 8.12548C16.8807 7.90344 16.9473 7.68722 17.0675 7.50048C17.1718 7.31129 17.3249 7.15354 17.5109 7.04368C17.6969 6.93382 17.909 6.87586 18.125 6.87586C18.341 6.87586 18.5531 6.93382 18.7391 7.04368C18.9251 7.15354 19.0782 7.31129 19.1825 7.50048C19.3028 7.68722 19.3694 7.90344 19.375 8.12548C19.3692 8.34749 19.3026 8.56365 19.1825 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26743
29635
|
|
|
29636
|
+
/***/ }),
|
|
29637
|
+
|
|
29638
|
+
/***/ "e2cc":
|
|
29639
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29640
|
+
|
|
29641
|
+
var redefine = __webpack_require__("6eeb");
|
|
29642
|
+
|
|
29643
|
+
module.exports = function (target, src, options) {
|
|
29644
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
29645
|
+
return target;
|
|
29646
|
+
};
|
|
29647
|
+
|
|
29648
|
+
|
|
26744
29649
|
/***/ }),
|
|
26745
29650
|
|
|
26746
29651
|
/***/ "e3aa":
|
|
@@ -26771,6 +29676,13 @@ $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
|
|
26771
29676
|
});
|
|
26772
29677
|
|
|
26773
29678
|
|
|
29679
|
+
/***/ }),
|
|
29680
|
+
|
|
29681
|
+
/***/ "e446":
|
|
29682
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29683
|
+
|
|
29684
|
+
// extracted by mini-css-extract-plugin
|
|
29685
|
+
|
|
26774
29686
|
/***/ }),
|
|
26775
29687
|
|
|
26776
29688
|
/***/ "e45c":
|
|
@@ -26810,6 +29722,20 @@ exports.f = wellKnownSymbol;
|
|
|
26810
29722
|
|
|
26811
29723
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 5.00049C17.0333 5.00049 14.1332 5.88022 11.6665 7.52844C9.19971 9.17666 7.27713 11.5193 6.14181 14.2602C5.0065 17.0011 4.70945 20.0171 5.28823 22.9268C5.86701 25.8366 7.29562 28.5093 9.3934 30.6071C11.4912 32.7049 14.1639 34.1335 17.0737 34.7123C19.9834 35.291 22.9994 34.994 25.7403 33.8587C28.4811 32.7234 30.8238 30.8008 32.472 28.334C34.1203 25.8673 35 22.9672 35 20.0005C34.9957 16.0236 33.414 12.2107 30.6019 9.39864C27.7897 6.58652 23.9769 5.00479 20 5.00049V5.00049ZM20.3125 11.2505C20.6833 11.2505 21.0459 11.3605 21.3542 11.5665C21.6625 11.7725 21.9029 12.0653 22.0448 12.408C22.1867 12.7506 22.2238 13.1276 22.1515 13.4913C22.0791 13.855 21.9006 14.1891 21.6383 14.4513C21.3761 14.7135 21.042 14.8921 20.6783 14.9645C20.3146 15.0368 19.9376 14.9997 19.595 14.8578C19.2524 14.7158 18.9595 14.4755 18.7535 14.1672C18.5475 13.8588 18.4375 13.4963 18.4375 13.1255C18.4375 12.6282 18.635 12.1513 18.9867 11.7997C19.3383 11.448 19.8152 11.2505 20.3125 11.2505ZM23.125 28.1255H18.125C17.7935 28.1255 17.4755 27.9938 17.2411 27.7594C17.0067 27.5249 16.875 27.207 16.875 26.8755C16.875 26.544 17.0067 26.226 17.2411 25.9916C17.4755 25.7572 17.7935 25.6255 18.125 25.6255H19.0625C19.1454 25.6255 19.2249 25.5926 19.2835 25.534C19.3421 25.4753 19.375 25.3959 19.375 25.313V19.688C19.375 19.6051 19.3421 19.5256 19.2835 19.467C19.2249 19.4084 19.1454 19.3755 19.0625 19.3755H18.125C17.7935 19.3755 17.4755 19.2438 17.2411 19.0094C17.0067 18.7749 16.875 18.457 16.875 18.1255C16.875 17.794 17.0067 17.476 17.2411 17.2416C17.4755 17.0072 17.7935 16.8755 18.125 16.8755H19.375C20.038 16.8755 20.6739 17.1389 21.1428 17.6077C21.6116 18.0766 21.875 18.7124 21.875 19.3755V25.313C21.875 25.3959 21.9079 25.4753 21.9665 25.534C22.0251 25.5926 22.1046 25.6255 22.1875 25.6255H23.125C23.4565 25.6255 23.7745 25.7572 24.0089 25.9916C24.2433 26.226 24.375 26.544 24.375 26.8755C24.375 27.207 24.2433 27.5249 24.0089 27.7594C23.7745 27.9938 23.4565 28.1255 23.125 28.1255Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26812
29724
|
|
|
29725
|
+
/***/ }),
|
|
29726
|
+
|
|
29727
|
+
/***/ "e667":
|
|
29728
|
+
/***/ (function(module, exports) {
|
|
29729
|
+
|
|
29730
|
+
module.exports = function (exec) {
|
|
29731
|
+
try {
|
|
29732
|
+
return { error: false, value: exec() };
|
|
29733
|
+
} catch (error) {
|
|
29734
|
+
return { error: true, value: error };
|
|
29735
|
+
}
|
|
29736
|
+
};
|
|
29737
|
+
|
|
29738
|
+
|
|
26813
29739
|
/***/ }),
|
|
26814
29740
|
|
|
26815
29741
|
/***/ "e6a0":
|
|
@@ -26817,6 +29743,395 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
26817
29743
|
|
|
26818
29744
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.8222 31.9333C14.8875 31.9333 9.52286 30.5671 6.47305 28.5335C4.31694 27.0948 4.52567 22.9763 7.11301 15.943C7.93671 13.6919 9.12788 11.6133 10.654 9.7634C11.549 8.68472 12.8639 8.06726 14.2626 8.06726H18.1261C20.7109 8.06726 22.8133 10.1696 22.8133 12.7545C22.8133 15.3393 20.7109 17.4417 18.1261 17.4417H15.7437C15.135 18.1941 14.7075 19.0828 14.495 20.024C15.5312 19.3528 16.5937 19.0141 17.6623 19.0141C18.8548 19.0141 20.0372 19.4378 21.1859 20.274C22.0096 17.2742 24.7956 15.0943 27.9617 15.0918C29.8453 15.0918 31.609 15.8205 32.9351 17.1454C34.265 18.4716 34.9987 20.2365 35 22.1151C35.0012 23.82 34.3863 25.4624 33.2676 26.7461C33.2526 26.7661 33.2376 26.7861 33.2214 26.8048C30.409 30.1109 25.6493 31.9333 19.8222 31.9333ZM14.2651 9.94214C13.4251 9.94214 12.6352 10.3134 12.1002 10.9596C10.709 12.642 9.6241 14.5369 8.87415 16.588C6.4143 23.2738 6.5593 26.3361 7.51424 26.9723C10.3153 28.8397 15.0688 30.0584 19.6235 30.0759H19.731C24.9994 30.0759 29.2604 28.5072 31.7315 25.6599C31.754 25.6274 31.779 25.5962 31.8065 25.5662C32.6589 24.6175 33.1289 23.3913 33.1264 22.1151C33.1251 20.7377 32.5877 19.444 31.6127 18.4704C30.639 17.4992 29.3454 16.9642 27.9704 16.9642C25.1219 16.9679 22.812 19.2828 22.8145 22.1264C22.8145 22.5113 22.5845 22.8526 22.2283 22.9976C22.1158 23.0426 21.9983 23.0663 21.8771 23.0663C21.6233 23.0663 21.3771 22.9613 21.2009 22.7776C19.9972 21.5239 18.8073 20.8889 17.6636 20.8889C16.5149 20.8889 15.3212 21.5252 14.1151 22.7788C13.9388 22.9613 13.6926 23.0663 13.4401 23.0663C13.3351 23.0663 13.2314 23.0488 13.1326 23.0138C12.7902 22.8951 12.5439 22.5838 12.5077 22.2226C12.3014 20.184 12.8864 18.1104 14.1176 16.478C13.2826 15.0856 13.4851 13.2582 14.6525 12.0908C14.83 11.9133 15.065 11.8158 15.3162 11.8158C15.5662 11.8158 15.8012 11.9133 15.9787 12.0895C16.1562 12.267 16.2537 12.502 16.2537 12.7532C16.2537 13.0032 16.1562 13.2394 15.98 13.4157C15.405 13.9906 15.3237 14.8981 15.7587 15.5655H18.1286C19.6797 15.5655 20.9409 14.3044 20.9409 12.7532C20.9409 11.2021 19.6797 9.94089 18.1286 9.94089H14.2651V9.94214Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26819
29745
|
|
|
29746
|
+
/***/ }),
|
|
29747
|
+
|
|
29748
|
+
/***/ "e6cf":
|
|
29749
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29750
|
+
|
|
29751
|
+
"use strict";
|
|
29752
|
+
|
|
29753
|
+
var $ = __webpack_require__("23e7");
|
|
29754
|
+
var IS_PURE = __webpack_require__("c430");
|
|
29755
|
+
var global = __webpack_require__("da84");
|
|
29756
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
29757
|
+
var NativePromise = __webpack_require__("fea9");
|
|
29758
|
+
var redefine = __webpack_require__("6eeb");
|
|
29759
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
29760
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
29761
|
+
var setSpecies = __webpack_require__("2626");
|
|
29762
|
+
var isObject = __webpack_require__("861d");
|
|
29763
|
+
var aFunction = __webpack_require__("1c0b");
|
|
29764
|
+
var anInstance = __webpack_require__("19aa");
|
|
29765
|
+
var inspectSource = __webpack_require__("8925");
|
|
29766
|
+
var iterate = __webpack_require__("2266");
|
|
29767
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
29768
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
29769
|
+
var task = __webpack_require__("2cf4").set;
|
|
29770
|
+
var microtask = __webpack_require__("b575");
|
|
29771
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
29772
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
29773
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
29774
|
+
var perform = __webpack_require__("e667");
|
|
29775
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
29776
|
+
var isForced = __webpack_require__("94ca");
|
|
29777
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
29778
|
+
var IS_NODE = __webpack_require__("605d");
|
|
29779
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
29780
|
+
|
|
29781
|
+
var SPECIES = wellKnownSymbol('species');
|
|
29782
|
+
var PROMISE = 'Promise';
|
|
29783
|
+
var getInternalState = InternalStateModule.get;
|
|
29784
|
+
var setInternalState = InternalStateModule.set;
|
|
29785
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
29786
|
+
var PromiseConstructor = NativePromise;
|
|
29787
|
+
var TypeError = global.TypeError;
|
|
29788
|
+
var document = global.document;
|
|
29789
|
+
var process = global.process;
|
|
29790
|
+
var $fetch = getBuiltIn('fetch');
|
|
29791
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
29792
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
29793
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
29794
|
+
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
|
29795
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
29796
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
29797
|
+
var PENDING = 0;
|
|
29798
|
+
var FULFILLED = 1;
|
|
29799
|
+
var REJECTED = 2;
|
|
29800
|
+
var HANDLED = 1;
|
|
29801
|
+
var UNHANDLED = 2;
|
|
29802
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
29803
|
+
|
|
29804
|
+
var FORCED = isForced(PROMISE, function () {
|
|
29805
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
29806
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
29807
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
29808
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
29809
|
+
// We can't detect it synchronously, so just check versions
|
|
29810
|
+
if (V8_VERSION === 66) return true;
|
|
29811
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
29812
|
+
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
|
29813
|
+
}
|
|
29814
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
29815
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
29816
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
29817
|
+
// deoptimization and performance degradation
|
|
29818
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
29819
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
29820
|
+
// Detect correctness of subclassing with @@species support
|
|
29821
|
+
var promise = PromiseConstructor.resolve(1);
|
|
29822
|
+
var FakePromise = function (exec) {
|
|
29823
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
29824
|
+
};
|
|
29825
|
+
var constructor = promise.constructor = {};
|
|
29826
|
+
constructor[SPECIES] = FakePromise;
|
|
29827
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
29828
|
+
});
|
|
29829
|
+
|
|
29830
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
29831
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
29832
|
+
});
|
|
29833
|
+
|
|
29834
|
+
// helpers
|
|
29835
|
+
var isThenable = function (it) {
|
|
29836
|
+
var then;
|
|
29837
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
29838
|
+
};
|
|
29839
|
+
|
|
29840
|
+
var notify = function (state, isReject) {
|
|
29841
|
+
if (state.notified) return;
|
|
29842
|
+
state.notified = true;
|
|
29843
|
+
var chain = state.reactions;
|
|
29844
|
+
microtask(function () {
|
|
29845
|
+
var value = state.value;
|
|
29846
|
+
var ok = state.state == FULFILLED;
|
|
29847
|
+
var index = 0;
|
|
29848
|
+
// variable length - can't use forEach
|
|
29849
|
+
while (chain.length > index) {
|
|
29850
|
+
var reaction = chain[index++];
|
|
29851
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
29852
|
+
var resolve = reaction.resolve;
|
|
29853
|
+
var reject = reaction.reject;
|
|
29854
|
+
var domain = reaction.domain;
|
|
29855
|
+
var result, then, exited;
|
|
29856
|
+
try {
|
|
29857
|
+
if (handler) {
|
|
29858
|
+
if (!ok) {
|
|
29859
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
29860
|
+
state.rejection = HANDLED;
|
|
29861
|
+
}
|
|
29862
|
+
if (handler === true) result = value;
|
|
29863
|
+
else {
|
|
29864
|
+
if (domain) domain.enter();
|
|
29865
|
+
result = handler(value); // can throw
|
|
29866
|
+
if (domain) {
|
|
29867
|
+
domain.exit();
|
|
29868
|
+
exited = true;
|
|
29869
|
+
}
|
|
29870
|
+
}
|
|
29871
|
+
if (result === reaction.promise) {
|
|
29872
|
+
reject(TypeError('Promise-chain cycle'));
|
|
29873
|
+
} else if (then = isThenable(result)) {
|
|
29874
|
+
then.call(result, resolve, reject);
|
|
29875
|
+
} else resolve(result);
|
|
29876
|
+
} else reject(value);
|
|
29877
|
+
} catch (error) {
|
|
29878
|
+
if (domain && !exited) domain.exit();
|
|
29879
|
+
reject(error);
|
|
29880
|
+
}
|
|
29881
|
+
}
|
|
29882
|
+
state.reactions = [];
|
|
29883
|
+
state.notified = false;
|
|
29884
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
29885
|
+
});
|
|
29886
|
+
};
|
|
29887
|
+
|
|
29888
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
29889
|
+
var event, handler;
|
|
29890
|
+
if (DISPATCH_EVENT) {
|
|
29891
|
+
event = document.createEvent('Event');
|
|
29892
|
+
event.promise = promise;
|
|
29893
|
+
event.reason = reason;
|
|
29894
|
+
event.initEvent(name, false, true);
|
|
29895
|
+
global.dispatchEvent(event);
|
|
29896
|
+
} else event = { promise: promise, reason: reason };
|
|
29897
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
29898
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
29899
|
+
};
|
|
29900
|
+
|
|
29901
|
+
var onUnhandled = function (state) {
|
|
29902
|
+
task.call(global, function () {
|
|
29903
|
+
var promise = state.facade;
|
|
29904
|
+
var value = state.value;
|
|
29905
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
29906
|
+
var result;
|
|
29907
|
+
if (IS_UNHANDLED) {
|
|
29908
|
+
result = perform(function () {
|
|
29909
|
+
if (IS_NODE) {
|
|
29910
|
+
process.emit('unhandledRejection', value, promise);
|
|
29911
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
29912
|
+
});
|
|
29913
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
29914
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
29915
|
+
if (result.error) throw result.value;
|
|
29916
|
+
}
|
|
29917
|
+
});
|
|
29918
|
+
};
|
|
29919
|
+
|
|
29920
|
+
var isUnhandled = function (state) {
|
|
29921
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
29922
|
+
};
|
|
29923
|
+
|
|
29924
|
+
var onHandleUnhandled = function (state) {
|
|
29925
|
+
task.call(global, function () {
|
|
29926
|
+
var promise = state.facade;
|
|
29927
|
+
if (IS_NODE) {
|
|
29928
|
+
process.emit('rejectionHandled', promise);
|
|
29929
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
29930
|
+
});
|
|
29931
|
+
};
|
|
29932
|
+
|
|
29933
|
+
var bind = function (fn, state, unwrap) {
|
|
29934
|
+
return function (value) {
|
|
29935
|
+
fn(state, value, unwrap);
|
|
29936
|
+
};
|
|
29937
|
+
};
|
|
29938
|
+
|
|
29939
|
+
var internalReject = function (state, value, unwrap) {
|
|
29940
|
+
if (state.done) return;
|
|
29941
|
+
state.done = true;
|
|
29942
|
+
if (unwrap) state = unwrap;
|
|
29943
|
+
state.value = value;
|
|
29944
|
+
state.state = REJECTED;
|
|
29945
|
+
notify(state, true);
|
|
29946
|
+
};
|
|
29947
|
+
|
|
29948
|
+
var internalResolve = function (state, value, unwrap) {
|
|
29949
|
+
if (state.done) return;
|
|
29950
|
+
state.done = true;
|
|
29951
|
+
if (unwrap) state = unwrap;
|
|
29952
|
+
try {
|
|
29953
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
29954
|
+
var then = isThenable(value);
|
|
29955
|
+
if (then) {
|
|
29956
|
+
microtask(function () {
|
|
29957
|
+
var wrapper = { done: false };
|
|
29958
|
+
try {
|
|
29959
|
+
then.call(value,
|
|
29960
|
+
bind(internalResolve, wrapper, state),
|
|
29961
|
+
bind(internalReject, wrapper, state)
|
|
29962
|
+
);
|
|
29963
|
+
} catch (error) {
|
|
29964
|
+
internalReject(wrapper, error, state);
|
|
29965
|
+
}
|
|
29966
|
+
});
|
|
29967
|
+
} else {
|
|
29968
|
+
state.value = value;
|
|
29969
|
+
state.state = FULFILLED;
|
|
29970
|
+
notify(state, false);
|
|
29971
|
+
}
|
|
29972
|
+
} catch (error) {
|
|
29973
|
+
internalReject({ done: false }, error, state);
|
|
29974
|
+
}
|
|
29975
|
+
};
|
|
29976
|
+
|
|
29977
|
+
// constructor polyfill
|
|
29978
|
+
if (FORCED) {
|
|
29979
|
+
// 25.4.3.1 Promise(executor)
|
|
29980
|
+
PromiseConstructor = function Promise(executor) {
|
|
29981
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
29982
|
+
aFunction(executor);
|
|
29983
|
+
Internal.call(this);
|
|
29984
|
+
var state = getInternalState(this);
|
|
29985
|
+
try {
|
|
29986
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
29987
|
+
} catch (error) {
|
|
29988
|
+
internalReject(state, error);
|
|
29989
|
+
}
|
|
29990
|
+
};
|
|
29991
|
+
// eslint-disable-next-line no-unused-vars
|
|
29992
|
+
Internal = function Promise(executor) {
|
|
29993
|
+
setInternalState(this, {
|
|
29994
|
+
type: PROMISE,
|
|
29995
|
+
done: false,
|
|
29996
|
+
notified: false,
|
|
29997
|
+
parent: false,
|
|
29998
|
+
reactions: [],
|
|
29999
|
+
rejection: false,
|
|
30000
|
+
state: PENDING,
|
|
30001
|
+
value: undefined
|
|
30002
|
+
});
|
|
30003
|
+
};
|
|
30004
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
30005
|
+
// `Promise.prototype.then` method
|
|
30006
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
30007
|
+
then: function then(onFulfilled, onRejected) {
|
|
30008
|
+
var state = getInternalPromiseState(this);
|
|
30009
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
30010
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
30011
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
30012
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
30013
|
+
state.parent = true;
|
|
30014
|
+
state.reactions.push(reaction);
|
|
30015
|
+
if (state.state != PENDING) notify(state, false);
|
|
30016
|
+
return reaction.promise;
|
|
30017
|
+
},
|
|
30018
|
+
// `Promise.prototype.catch` method
|
|
30019
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
|
|
30020
|
+
'catch': function (onRejected) {
|
|
30021
|
+
return this.then(undefined, onRejected);
|
|
30022
|
+
}
|
|
30023
|
+
});
|
|
30024
|
+
OwnPromiseCapability = function () {
|
|
30025
|
+
var promise = new Internal();
|
|
30026
|
+
var state = getInternalState(promise);
|
|
30027
|
+
this.promise = promise;
|
|
30028
|
+
this.resolve = bind(internalResolve, state);
|
|
30029
|
+
this.reject = bind(internalReject, state);
|
|
30030
|
+
};
|
|
30031
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
30032
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
30033
|
+
? new OwnPromiseCapability(C)
|
|
30034
|
+
: newGenericPromiseCapability(C);
|
|
30035
|
+
};
|
|
30036
|
+
|
|
30037
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
30038
|
+
nativeThen = NativePromise.prototype.then;
|
|
30039
|
+
|
|
30040
|
+
// wrap native Promise#then for native async functions
|
|
30041
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
30042
|
+
var that = this;
|
|
30043
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
30044
|
+
nativeThen.call(that, resolve, reject);
|
|
30045
|
+
}).then(onFulfilled, onRejected);
|
|
30046
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
30047
|
+
}, { unsafe: true });
|
|
30048
|
+
|
|
30049
|
+
// wrap fetch result
|
|
30050
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
30051
|
+
// eslint-disable-next-line no-unused-vars
|
|
30052
|
+
fetch: function fetch(input /* , init */) {
|
|
30053
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
30054
|
+
}
|
|
30055
|
+
});
|
|
30056
|
+
}
|
|
30057
|
+
}
|
|
30058
|
+
|
|
30059
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
30060
|
+
Promise: PromiseConstructor
|
|
30061
|
+
});
|
|
30062
|
+
|
|
30063
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
30064
|
+
setSpecies(PROMISE);
|
|
30065
|
+
|
|
30066
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
30067
|
+
|
|
30068
|
+
// statics
|
|
30069
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
30070
|
+
// `Promise.reject` method
|
|
30071
|
+
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
30072
|
+
reject: function reject(r) {
|
|
30073
|
+
var capability = newPromiseCapability(this);
|
|
30074
|
+
capability.reject.call(undefined, r);
|
|
30075
|
+
return capability.promise;
|
|
30076
|
+
}
|
|
30077
|
+
});
|
|
30078
|
+
|
|
30079
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
30080
|
+
// `Promise.resolve` method
|
|
30081
|
+
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
30082
|
+
resolve: function resolve(x) {
|
|
30083
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
30084
|
+
}
|
|
30085
|
+
});
|
|
30086
|
+
|
|
30087
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
30088
|
+
// `Promise.all` method
|
|
30089
|
+
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
30090
|
+
all: function all(iterable) {
|
|
30091
|
+
var C = this;
|
|
30092
|
+
var capability = newPromiseCapability(C);
|
|
30093
|
+
var resolve = capability.resolve;
|
|
30094
|
+
var reject = capability.reject;
|
|
30095
|
+
var result = perform(function () {
|
|
30096
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
30097
|
+
var values = [];
|
|
30098
|
+
var counter = 0;
|
|
30099
|
+
var remaining = 1;
|
|
30100
|
+
iterate(iterable, function (promise) {
|
|
30101
|
+
var index = counter++;
|
|
30102
|
+
var alreadyCalled = false;
|
|
30103
|
+
values.push(undefined);
|
|
30104
|
+
remaining++;
|
|
30105
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
30106
|
+
if (alreadyCalled) return;
|
|
30107
|
+
alreadyCalled = true;
|
|
30108
|
+
values[index] = value;
|
|
30109
|
+
--remaining || resolve(values);
|
|
30110
|
+
}, reject);
|
|
30111
|
+
});
|
|
30112
|
+
--remaining || resolve(values);
|
|
30113
|
+
});
|
|
30114
|
+
if (result.error) reject(result.value);
|
|
30115
|
+
return capability.promise;
|
|
30116
|
+
},
|
|
30117
|
+
// `Promise.race` method
|
|
30118
|
+
// https://tc39.github.io/ecma262/#sec-promise.race
|
|
30119
|
+
race: function race(iterable) {
|
|
30120
|
+
var C = this;
|
|
30121
|
+
var capability = newPromiseCapability(C);
|
|
30122
|
+
var reject = capability.reject;
|
|
30123
|
+
var result = perform(function () {
|
|
30124
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
30125
|
+
iterate(iterable, function (promise) {
|
|
30126
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
30127
|
+
});
|
|
30128
|
+
});
|
|
30129
|
+
if (result.error) reject(result.value);
|
|
30130
|
+
return capability.promise;
|
|
30131
|
+
}
|
|
30132
|
+
});
|
|
30133
|
+
|
|
30134
|
+
|
|
26820
30135
|
/***/ }),
|
|
26821
30136
|
|
|
26822
30137
|
/***/ "e759":
|
|
@@ -27447,6 +30762,39 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
27447
30762
|
/* unused harmony reexport * */
|
|
27448
30763
|
|
|
27449
30764
|
|
|
30765
|
+
/***/ }),
|
|
30766
|
+
|
|
30767
|
+
/***/ "f01b":
|
|
30768
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30769
|
+
|
|
30770
|
+
// extracted by mini-css-extract-plugin
|
|
30771
|
+
|
|
30772
|
+
/***/ }),
|
|
30773
|
+
|
|
30774
|
+
/***/ "f069":
|
|
30775
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30776
|
+
|
|
30777
|
+
"use strict";
|
|
30778
|
+
|
|
30779
|
+
var aFunction = __webpack_require__("1c0b");
|
|
30780
|
+
|
|
30781
|
+
var PromiseCapability = function (C) {
|
|
30782
|
+
var resolve, reject;
|
|
30783
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
30784
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
30785
|
+
resolve = $$resolve;
|
|
30786
|
+
reject = $$reject;
|
|
30787
|
+
});
|
|
30788
|
+
this.resolve = aFunction(resolve);
|
|
30789
|
+
this.reject = aFunction(reject);
|
|
30790
|
+
};
|
|
30791
|
+
|
|
30792
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
30793
|
+
module.exports.f = function (C) {
|
|
30794
|
+
return new PromiseCapability(C);
|
|
30795
|
+
};
|
|
30796
|
+
|
|
30797
|
+
|
|
27450
30798
|
/***/ }),
|
|
27451
30799
|
|
|
27452
30800
|
/***/ "f1ca":
|
|
@@ -28109,6 +31457,8 @@ __webpack_require__.d(__webpack_exports__, "unnnicChartRainbow", function() { re
|
|
|
28109
31457
|
__webpack_require__.d(__webpack_exports__, "unnnicTextEditor", function() { return /* reexport */ unnnicTextEditor; });
|
|
28110
31458
|
__webpack_require__.d(__webpack_exports__, "unnnicMoodRating", function() { return /* reexport */ unnnicMoodRating; });
|
|
28111
31459
|
__webpack_require__.d(__webpack_exports__, "unnnicStarRating", function() { return /* reexport */ unnnicStarRating; });
|
|
31460
|
+
__webpack_require__.d(__webpack_exports__, "unnnicAudioRecorder", function() { return /* reexport */ unnnicAudioRecorder; });
|
|
31461
|
+
__webpack_require__.d(__webpack_exports__, "unnnicCircleProgressBar", function() { return /* reexport */ unnnicCircleProgressBar; });
|
|
28112
31462
|
|
|
28113
31463
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
28114
31464
|
// This file is imported into lib/wc client bundles.
|
|
@@ -28125,9 +31475,9 @@ if (typeof window !== 'undefined') {
|
|
|
28125
31475
|
}
|
|
28126
31476
|
}
|
|
28127
31477
|
|
|
28128
|
-
var
|
|
28129
|
-
if (
|
|
28130
|
-
__webpack_require__.p =
|
|
31478
|
+
var setPublicPath_src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
31479
|
+
if (setPublicPath_src) {
|
|
31480
|
+
__webpack_require__.p = setPublicPath_src[1] // eslint-disable-line
|
|
28131
31481
|
}
|
|
28132
31482
|
}
|
|
28133
31483
|
|
|
@@ -28773,6 +32123,10 @@ var delete_1_default = /*#__PURE__*/__webpack_require__.n(delete_1);
|
|
|
28773
32123
|
var delete_1_1 = __webpack_require__("e117");
|
|
28774
32124
|
var delete_1_1_default = /*#__PURE__*/__webpack_require__.n(delete_1_1);
|
|
28775
32125
|
|
|
32126
|
+
// EXTERNAL MODULE: ./node_modules/svg-inline-loader!./src/assets/icons/delete-2-1.svg
|
|
32127
|
+
var delete_2_1 = __webpack_require__("72f6");
|
|
32128
|
+
var delete_2_1_default = /*#__PURE__*/__webpack_require__.n(delete_2_1);
|
|
32129
|
+
|
|
28776
32130
|
// EXTERNAL MODULE: ./node_modules/svg-inline-loader!./src/assets/icons/arrow-left-1-1.svg
|
|
28777
32131
|
var arrow_left_1_1 = __webpack_require__("117b");
|
|
28778
32132
|
var arrow_left_1_1_default = /*#__PURE__*/__webpack_require__.n(arrow_left_1_1);
|
|
@@ -29239,6 +32593,7 @@ var controls_play_1_default = /*#__PURE__*/__webpack_require__.n(controls_play_1
|
|
|
29239
32593
|
|
|
29240
32594
|
|
|
29241
32595
|
|
|
32596
|
+
|
|
29242
32597
|
|
|
29243
32598
|
|
|
29244
32599
|
/* harmony default export */ var icons = ({
|
|
@@ -29320,6 +32675,7 @@ var controls_play_1_default = /*#__PURE__*/__webpack_require__.n(controls_play_1
|
|
|
29320
32675
|
'book-address-1-2': book_address_1_2_default.a,
|
|
29321
32676
|
'delete-1': delete_1_default.a,
|
|
29322
32677
|
'delete-1-1': delete_1_1_default.a,
|
|
32678
|
+
'delete-2-1': delete_2_1_default.a,
|
|
29323
32679
|
'arrow-left-1-1': arrow_left_1_1_default.a,
|
|
29324
32680
|
'add-1': add_1_default.a,
|
|
29325
32681
|
'checkbox-default': checkbox_default_default.a,
|
|
@@ -38569,167 +41925,910 @@ var TextEditorvue_type_template_id_a02eb13e_scoped_true_staticRenderFns = []
|
|
|
38569
41925
|
|
|
38570
41926
|
|
|
38571
41927
|
|
|
38572
|
-
/* harmony default export */ var TextEditorvue_type_script_lang_js_ = ({
|
|
41928
|
+
/* harmony default export */ var TextEditorvue_type_script_lang_js_ = ({
|
|
41929
|
+
components: {
|
|
41930
|
+
UnnnicButtonIcon: ButtonIcon,
|
|
41931
|
+
UnnnicToolTip: ToolTip,
|
|
41932
|
+
UnnnicIcon: Icon
|
|
41933
|
+
},
|
|
41934
|
+
props: {
|
|
41935
|
+
value: {
|
|
41936
|
+
type: String,
|
|
41937
|
+
default: ''
|
|
41938
|
+
}
|
|
41939
|
+
},
|
|
41940
|
+
data: function data() {
|
|
41941
|
+
return {
|
|
41942
|
+
initialContent: ''
|
|
41943
|
+
};
|
|
41944
|
+
},
|
|
41945
|
+
created: function created() {
|
|
41946
|
+
this.initialContent = this.value;
|
|
41947
|
+
},
|
|
41948
|
+
methods: {
|
|
41949
|
+
formatDoc: function formatDoc(sCmd, sValue) {
|
|
41950
|
+
this.$refs.oDoc.focus();
|
|
41951
|
+
document.execCommand(sCmd, false, sValue);
|
|
41952
|
+
this.$refs.oDoc.focus();
|
|
41953
|
+
},
|
|
41954
|
+
validateMode: function validateMode() {
|
|
41955
|
+
return this.$refs.oDoc.focus();
|
|
41956
|
+
},
|
|
41957
|
+
onInput: function onInput(event) {
|
|
41958
|
+
this.$emit('input', event.srcElement.innerHTML);
|
|
41959
|
+
}
|
|
41960
|
+
}
|
|
41961
|
+
});
|
|
41962
|
+
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=script&lang=js&
|
|
41963
|
+
/* harmony default export */ var TextEditor_TextEditorvue_type_script_lang_js_ = (TextEditorvue_type_script_lang_js_);
|
|
41964
|
+
// EXTERNAL MODULE: ./src/components/TextEditor/TextEditor.vue?vue&type=style&index=0&id=a02eb13e&lang=scss&scoped=true&
|
|
41965
|
+
var TextEditorvue_type_style_index_0_id_a02eb13e_lang_scss_scoped_true_ = __webpack_require__("267f");
|
|
41966
|
+
|
|
41967
|
+
// CONCATENATED MODULE: ./src/components/TextEditor/TextEditor.vue
|
|
41968
|
+
|
|
41969
|
+
|
|
41970
|
+
|
|
41971
|
+
|
|
41972
|
+
|
|
41973
|
+
|
|
41974
|
+
/* normalize component */
|
|
41975
|
+
|
|
41976
|
+
var TextEditor_component = normalizeComponent(
|
|
41977
|
+
TextEditor_TextEditorvue_type_script_lang_js_,
|
|
41978
|
+
TextEditorvue_type_template_id_a02eb13e_scoped_true_render,
|
|
41979
|
+
TextEditorvue_type_template_id_a02eb13e_scoped_true_staticRenderFns,
|
|
41980
|
+
false,
|
|
41981
|
+
null,
|
|
41982
|
+
"a02eb13e",
|
|
41983
|
+
null
|
|
41984
|
+
|
|
41985
|
+
)
|
|
41986
|
+
|
|
41987
|
+
/* harmony default export */ var TextEditor = (TextEditor_component.exports);
|
|
41988
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MoodRating/MoodRating.vue?vue&type=template&id=f25087d0&scoped=true&
|
|
41989
|
+
var MoodRatingvue_type_template_id_f25087d0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-mood-rating"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.title))]),_c('div',{class:['moods', { selected: _vm.value !== null }]},_vm._l((_vm.moods),function(mood,index){return _c('div',{key:index,staticClass:"mood"},[_c('unnnic-tool-tip',{attrs:{"side":"bottom","text":_vm.titlesMoods[index],"enabled":""}},[_c('img',{class:{
|
|
41990
|
+
active: _vm.value && index === _vm.value - 1
|
|
41991
|
+
},attrs:{"src":mood.image},on:{"click":function($event){_vm.value && index === _vm.value - 1 ? _vm.$emit('input', null) : _vm.$emit('input', index + 1)}}})])],1)}),0)])}
|
|
41992
|
+
var MoodRatingvue_type_template_id_f25087d0_scoped_true_staticRenderFns = []
|
|
41993
|
+
|
|
41994
|
+
|
|
41995
|
+
// CONCATENATED MODULE: ./src/components/MoodRating/MoodRating.vue?vue&type=template&id=f25087d0&scoped=true&
|
|
41996
|
+
|
|
41997
|
+
// EXTERNAL MODULE: ./src/assets/emoji/u1F625.png
|
|
41998
|
+
var u1F625 = __webpack_require__("88f6");
|
|
41999
|
+
var u1F625_default = /*#__PURE__*/__webpack_require__.n(u1F625);
|
|
42000
|
+
|
|
42001
|
+
// EXTERNAL MODULE: ./src/assets/emoji/u1F641.png
|
|
42002
|
+
var u1F641 = __webpack_require__("26d9");
|
|
42003
|
+
var u1F641_default = /*#__PURE__*/__webpack_require__.n(u1F641);
|
|
42004
|
+
|
|
42005
|
+
// EXTERNAL MODULE: ./src/assets/emoji/u1F610.png
|
|
42006
|
+
var u1F610 = __webpack_require__("1093");
|
|
42007
|
+
var u1F610_default = /*#__PURE__*/__webpack_require__.n(u1F610);
|
|
42008
|
+
|
|
42009
|
+
// EXTERNAL MODULE: ./src/assets/emoji/u1F645.png
|
|
42010
|
+
var u1F645 = __webpack_require__("c17f");
|
|
42011
|
+
var u1F645_default = /*#__PURE__*/__webpack_require__.n(u1F645);
|
|
42012
|
+
|
|
42013
|
+
// EXTERNAL MODULE: ./src/assets/emoji/u1F601.png
|
|
42014
|
+
var u1F601 = __webpack_require__("50fe");
|
|
42015
|
+
var u1F601_default = /*#__PURE__*/__webpack_require__.n(u1F601);
|
|
42016
|
+
|
|
42017
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MoodRating/MoodRating.vue?vue&type=script&lang=js&
|
|
42018
|
+
|
|
42019
|
+
//
|
|
42020
|
+
//
|
|
42021
|
+
//
|
|
42022
|
+
//
|
|
42023
|
+
//
|
|
42024
|
+
//
|
|
42025
|
+
//
|
|
42026
|
+
//
|
|
42027
|
+
//
|
|
42028
|
+
//
|
|
42029
|
+
//
|
|
42030
|
+
//
|
|
42031
|
+
//
|
|
42032
|
+
//
|
|
42033
|
+
//
|
|
42034
|
+
//
|
|
42035
|
+
//
|
|
42036
|
+
//
|
|
42037
|
+
//
|
|
42038
|
+
//
|
|
42039
|
+
//
|
|
42040
|
+
//
|
|
42041
|
+
//
|
|
42042
|
+
//
|
|
42043
|
+
|
|
42044
|
+
|
|
42045
|
+
|
|
42046
|
+
|
|
42047
|
+
|
|
42048
|
+
|
|
42049
|
+
/* harmony default export */ var MoodRatingvue_type_script_lang_js_ = ({
|
|
42050
|
+
components: {
|
|
42051
|
+
UnnnicToolTip: ToolTip
|
|
42052
|
+
},
|
|
42053
|
+
props: {
|
|
42054
|
+
value: {
|
|
42055
|
+
type: Number
|
|
42056
|
+
},
|
|
42057
|
+
title: {
|
|
42058
|
+
type: String
|
|
42059
|
+
},
|
|
42060
|
+
titlesMoods: {
|
|
42061
|
+
type: Array,
|
|
42062
|
+
default: function _default() {
|
|
42063
|
+
return ['Decepcionado', 'Insatisfeito', 'Neutro', 'Feliz', 'Produtivo'];
|
|
42064
|
+
}
|
|
42065
|
+
}
|
|
42066
|
+
},
|
|
42067
|
+
data: function data() {
|
|
42068
|
+
return {
|
|
42069
|
+
moods: [{
|
|
42070
|
+
image: u1F625_default.a
|
|
42071
|
+
}, {
|
|
42072
|
+
image: u1F641_default.a
|
|
42073
|
+
}, {
|
|
42074
|
+
image: u1F610_default.a
|
|
42075
|
+
}, {
|
|
42076
|
+
image: u1F645_default.a
|
|
42077
|
+
}, {
|
|
42078
|
+
image: u1F601_default.a
|
|
42079
|
+
}]
|
|
42080
|
+
};
|
|
42081
|
+
}
|
|
42082
|
+
});
|
|
42083
|
+
// CONCATENATED MODULE: ./src/components/MoodRating/MoodRating.vue?vue&type=script&lang=js&
|
|
42084
|
+
/* harmony default export */ var MoodRating_MoodRatingvue_type_script_lang_js_ = (MoodRatingvue_type_script_lang_js_);
|
|
42085
|
+
// EXTERNAL MODULE: ./src/components/MoodRating/MoodRating.vue?vue&type=style&index=0&id=f25087d0&lang=scss&scoped=true&
|
|
42086
|
+
var MoodRatingvue_type_style_index_0_id_f25087d0_lang_scss_scoped_true_ = __webpack_require__("73f7");
|
|
42087
|
+
|
|
42088
|
+
// CONCATENATED MODULE: ./src/components/MoodRating/MoodRating.vue
|
|
42089
|
+
|
|
42090
|
+
|
|
42091
|
+
|
|
42092
|
+
|
|
42093
|
+
|
|
42094
|
+
|
|
42095
|
+
/* normalize component */
|
|
42096
|
+
|
|
42097
|
+
var MoodRating_component = normalizeComponent(
|
|
42098
|
+
MoodRating_MoodRatingvue_type_script_lang_js_,
|
|
42099
|
+
MoodRatingvue_type_template_id_f25087d0_scoped_true_render,
|
|
42100
|
+
MoodRatingvue_type_template_id_f25087d0_scoped_true_staticRenderFns,
|
|
42101
|
+
false,
|
|
42102
|
+
null,
|
|
42103
|
+
"f25087d0",
|
|
42104
|
+
null
|
|
42105
|
+
|
|
42106
|
+
)
|
|
42107
|
+
|
|
42108
|
+
/* harmony default export */ var MoodRating = (MoodRating_component.exports);
|
|
42109
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/StarRating/StarRating.vue?vue&type=template&id=e283ca2a&scoped=true&
|
|
42110
|
+
var StarRatingvue_type_template_id_e283ca2a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-star-rating"},[_vm._l((5),function(index){return _c('unnnic-icon',{key:index,attrs:{"scheme":_vm.starScheme(index),"icon":"rating-star-1","size":"ant"}})}),(_vm.showValue)?_c('div',{staticClass:"rating-title"},[_c('span',{staticClass:"highlight"},[_vm._v(_vm._s(_vm.value.toFixed(1)))]),_vm._v("/5.0 ")]):_vm._e()],2)}
|
|
42111
|
+
var StarRatingvue_type_template_id_e283ca2a_scoped_true_staticRenderFns = []
|
|
42112
|
+
|
|
42113
|
+
|
|
42114
|
+
// CONCATENATED MODULE: ./src/components/StarRating/StarRating.vue?vue&type=template&id=e283ca2a&scoped=true&
|
|
42115
|
+
|
|
42116
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/StarRating/StarRating.vue?vue&type=script&lang=js&
|
|
42117
|
+
|
|
42118
|
+
//
|
|
42119
|
+
//
|
|
42120
|
+
//
|
|
42121
|
+
//
|
|
42122
|
+
//
|
|
42123
|
+
//
|
|
42124
|
+
//
|
|
42125
|
+
//
|
|
42126
|
+
//
|
|
42127
|
+
//
|
|
42128
|
+
//
|
|
42129
|
+
//
|
|
42130
|
+
//
|
|
42131
|
+
//
|
|
42132
|
+
//
|
|
42133
|
+
//
|
|
42134
|
+
|
|
42135
|
+
/* harmony default export */ var StarRatingvue_type_script_lang_js_ = ({
|
|
42136
|
+
components: {
|
|
42137
|
+
UnnnicIcon: Icon
|
|
42138
|
+
},
|
|
42139
|
+
props: {
|
|
42140
|
+
value: {
|
|
42141
|
+
type: Number
|
|
42142
|
+
},
|
|
42143
|
+
showValue: {
|
|
42144
|
+
type: Boolean
|
|
42145
|
+
},
|
|
42146
|
+
readonly: {
|
|
42147
|
+
type: Boolean
|
|
42148
|
+
}
|
|
42149
|
+
},
|
|
42150
|
+
data: function data() {
|
|
42151
|
+
return {};
|
|
42152
|
+
},
|
|
42153
|
+
methods: {
|
|
42154
|
+
starScheme: function starScheme(star) {
|
|
42155
|
+
return star <= this.value ? 'feedback-yellow' : 'neutral-clean';
|
|
42156
|
+
}
|
|
42157
|
+
}
|
|
42158
|
+
});
|
|
42159
|
+
// CONCATENATED MODULE: ./src/components/StarRating/StarRating.vue?vue&type=script&lang=js&
|
|
42160
|
+
/* harmony default export */ var StarRating_StarRatingvue_type_script_lang_js_ = (StarRatingvue_type_script_lang_js_);
|
|
42161
|
+
// EXTERNAL MODULE: ./src/components/StarRating/StarRating.vue?vue&type=style&index=0&id=e283ca2a&lang=scss&scoped=true&
|
|
42162
|
+
var StarRatingvue_type_style_index_0_id_e283ca2a_lang_scss_scoped_true_ = __webpack_require__("5a1f");
|
|
42163
|
+
|
|
42164
|
+
// CONCATENATED MODULE: ./src/components/StarRating/StarRating.vue
|
|
42165
|
+
|
|
42166
|
+
|
|
42167
|
+
|
|
42168
|
+
|
|
42169
|
+
|
|
42170
|
+
|
|
42171
|
+
/* normalize component */
|
|
42172
|
+
|
|
42173
|
+
var StarRating_component = normalizeComponent(
|
|
42174
|
+
StarRating_StarRatingvue_type_script_lang_js_,
|
|
42175
|
+
StarRatingvue_type_template_id_e283ca2a_scoped_true_render,
|
|
42176
|
+
StarRatingvue_type_template_id_e283ca2a_scoped_true_staticRenderFns,
|
|
42177
|
+
false,
|
|
42178
|
+
null,
|
|
42179
|
+
"e283ca2a",
|
|
42180
|
+
null
|
|
42181
|
+
|
|
42182
|
+
)
|
|
42183
|
+
|
|
42184
|
+
/* harmony default export */ var StarRating = (StarRating_component.exports);
|
|
42185
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioRecorder.vue?vue&type=template&id=73ef528c&scoped=true&
|
|
42186
|
+
var AudioRecordervue_type_template_id_73ef528c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hasAudio || _vm.src)?_c('section',{staticClass:"unnnic-audio-recorder"},[(_vm.isRecording || _vm.isRecorded)?_c('audio-handler',{attrs:{"is-recording":_vm.isRecording,"time":_vm.numberToTimeString(_vm.duration)},on:{"discard":_vm.discard,"save":_vm.save}}):_c('audio-player',{attrs:{"time":_vm.numberToTimeString(_vm.isIdle ? _vm.duration : _vm.currentTime),"progress-bar-percentual-value":_vm.playedPercentual,"is-playing":_vm.isPlaying,"bars":_vm.bars},on:{"pause":_vm.pause,"play":_vm.play}}),(_vm.canDelete && (['idle', 'playing', 'paused'].includes(_vm.status)))?_c('div',{staticClass:"delete-button"},[_c('unnnic-icon',{attrs:{"icon":"delete-2-1","clickable":""},on:{"click":_vm.discard}})],1):_vm._e()],1):_vm._e()}
|
|
42187
|
+
var AudioRecordervue_type_template_id_73ef528c_scoped_true_staticRenderFns = []
|
|
42188
|
+
|
|
42189
|
+
|
|
42190
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=template&id=73ef528c&scoped=true&
|
|
42191
|
+
|
|
42192
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
42193
|
+
var es_promise = __webpack_require__("e6cf");
|
|
42194
|
+
|
|
42195
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
42196
|
+
var es_string_pad_start = __webpack_require__("4d90");
|
|
42197
|
+
|
|
42198
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
|
42199
|
+
var web_url = __webpack_require__("2b3d");
|
|
42200
|
+
|
|
42201
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
42202
|
+
var runtime = __webpack_require__("96cf");
|
|
42203
|
+
|
|
42204
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
42205
|
+
|
|
42206
|
+
|
|
42207
|
+
|
|
42208
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
42209
|
+
try {
|
|
42210
|
+
var info = gen[key](arg);
|
|
42211
|
+
var value = info.value;
|
|
42212
|
+
} catch (error) {
|
|
42213
|
+
reject(error);
|
|
42214
|
+
return;
|
|
42215
|
+
}
|
|
42216
|
+
|
|
42217
|
+
if (info.done) {
|
|
42218
|
+
resolve(value);
|
|
42219
|
+
} else {
|
|
42220
|
+
Promise.resolve(value).then(_next, _throw);
|
|
42221
|
+
}
|
|
42222
|
+
}
|
|
42223
|
+
|
|
42224
|
+
function _asyncToGenerator(fn) {
|
|
42225
|
+
return function () {
|
|
42226
|
+
var self = this,
|
|
42227
|
+
args = arguments;
|
|
42228
|
+
return new Promise(function (resolve, reject) {
|
|
42229
|
+
var gen = fn.apply(self, args);
|
|
42230
|
+
|
|
42231
|
+
function _next(value) {
|
|
42232
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
42233
|
+
}
|
|
42234
|
+
|
|
42235
|
+
function _throw(err) {
|
|
42236
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
42237
|
+
}
|
|
42238
|
+
|
|
42239
|
+
_next(undefined);
|
|
42240
|
+
});
|
|
42241
|
+
};
|
|
42242
|
+
}
|
|
42243
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioHandler.vue?vue&type=template&id=95c1d466&scoped=true&
|
|
42244
|
+
var AudioHandlervue_type_template_id_95c1d466_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"audio-handler"},[_c('unnnic-tool-tip',{attrs:{"enabled":"","text":"Descartar","side":"top"}},[_c('span',{staticClass:"clickable",on:{"click":_vm.discard,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.discard($event)}}},[_c('unnnic-icon',{attrs:{"icon":"delete-1-1","scheme":"feedback-red"}})],1)]),_c('div',{staticClass:"audio-handler__progress-bar"},[_c('div',{ref:"progressBar",staticClass:"audio-recorder__progress-bar__bar"})]),_c('span',{staticClass:"audio-handler__time"},[_vm._v(" "+_vm._s(_vm.time)+" ")]),_c('unnnic-icon',{attrs:{"icon":"indicator","scheme":_vm.isRecording ? 'feedback-red' : 'neutral-clean'}}),_c('unnnic-tool-tip',{attrs:{"enabled":"","text":"Salvar","side":"top"}},[_c('span',{staticClass:"clickable",on:{"click":_vm.save,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.save($event)}}},[_c('unnnic-icon',{attrs:{"icon":"check-circle-1-1","scheme":"feedback-green"}})],1)])],1)}
|
|
42245
|
+
var AudioHandlervue_type_template_id_95c1d466_scoped_true_staticRenderFns = []
|
|
42246
|
+
|
|
42247
|
+
|
|
42248
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=template&id=95c1d466&scoped=true&
|
|
42249
|
+
|
|
42250
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioHandler.vue?vue&type=script&lang=js&
|
|
42251
|
+
//
|
|
42252
|
+
//
|
|
42253
|
+
//
|
|
42254
|
+
//
|
|
42255
|
+
//
|
|
42256
|
+
//
|
|
42257
|
+
//
|
|
42258
|
+
//
|
|
42259
|
+
//
|
|
42260
|
+
//
|
|
42261
|
+
//
|
|
42262
|
+
//
|
|
42263
|
+
//
|
|
42264
|
+
//
|
|
42265
|
+
//
|
|
42266
|
+
//
|
|
42267
|
+
//
|
|
42268
|
+
//
|
|
42269
|
+
//
|
|
42270
|
+
//
|
|
42271
|
+
//
|
|
42272
|
+
//
|
|
42273
|
+
//
|
|
42274
|
+
//
|
|
42275
|
+
//
|
|
42276
|
+
//
|
|
42277
|
+
|
|
42278
|
+
|
|
42279
|
+
/* harmony default export */ var AudioHandlervue_type_script_lang_js_ = ({
|
|
42280
|
+
components: {
|
|
42281
|
+
UnnnicIcon: Icon,
|
|
42282
|
+
UnnnicToolTip: ToolTip
|
|
42283
|
+
},
|
|
42284
|
+
props: {
|
|
42285
|
+
isRecording: {
|
|
42286
|
+
type: Boolean,
|
|
42287
|
+
default: false
|
|
42288
|
+
},
|
|
42289
|
+
time: {
|
|
42290
|
+
type: String,
|
|
42291
|
+
default: ''
|
|
42292
|
+
}
|
|
42293
|
+
},
|
|
42294
|
+
methods: {
|
|
42295
|
+
discard: function discard() {
|
|
42296
|
+
this.$emit('discard');
|
|
42297
|
+
},
|
|
42298
|
+
save: function save() {
|
|
42299
|
+
this.$emit('save');
|
|
42300
|
+
}
|
|
42301
|
+
}
|
|
42302
|
+
});
|
|
42303
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=script&lang=js&
|
|
42304
|
+
/* harmony default export */ var AudioRecorder_AudioHandlervue_type_script_lang_js_ = (AudioHandlervue_type_script_lang_js_);
|
|
42305
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=style&index=0&id=95c1d466&lang=scss&scoped=true&
|
|
42306
|
+
var AudioHandlervue_type_style_index_0_id_95c1d466_lang_scss_scoped_true_ = __webpack_require__("5fc7");
|
|
42307
|
+
|
|
42308
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue
|
|
42309
|
+
|
|
42310
|
+
|
|
42311
|
+
|
|
42312
|
+
|
|
42313
|
+
|
|
42314
|
+
|
|
42315
|
+
/* normalize component */
|
|
42316
|
+
|
|
42317
|
+
var AudioHandler_component = normalizeComponent(
|
|
42318
|
+
AudioRecorder_AudioHandlervue_type_script_lang_js_,
|
|
42319
|
+
AudioHandlervue_type_template_id_95c1d466_scoped_true_render,
|
|
42320
|
+
AudioHandlervue_type_template_id_95c1d466_scoped_true_staticRenderFns,
|
|
42321
|
+
false,
|
|
42322
|
+
null,
|
|
42323
|
+
"95c1d466",
|
|
42324
|
+
null
|
|
42325
|
+
|
|
42326
|
+
)
|
|
42327
|
+
|
|
42328
|
+
/* harmony default export */ var AudioHandler = (AudioHandler_component.exports);
|
|
42329
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioPlayer.vue?vue&type=template&id=1442a03d&scoped=true&
|
|
42330
|
+
var AudioPlayervue_type_template_id_1442a03d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"audio-player"},[(_vm.isPlaying)?_c('span',{staticClass:"clickable",on:{"click":_vm.pause,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.pause($event)}}},[_c('unnnic-icon',{attrs:{"icon":"controls-pause-1","scheme":"neutral-darkest"}})],1):_c('span',{staticClass:"clickable",on:{"click":_vm.play,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.play($event)}}},[_c('unnnic-icon',{attrs:{"icon":"controls-play-1","scheme":"neutral-darkest"}})],1),(_vm.bars.length === 0)?_c('div',{staticClass:"audio-player__progress-bar"},[_c('div',{staticClass:"audio-player__progress-bar__bar",style:({ width: (_vm.progressBarPercentualValue + "%") })})]):_c('div',{staticClass:"audio-player__progress-bar-bars"},_vm._l((_vm.bars),function(bar,index){return _c('div',{key:index,class:['bar', { active: _vm.isBarActive(index) }],style:({ height: ((bar * 100) + "%") })})}),0),_c('span',{staticClass:"audio-player__time"},[_vm._v(" "+_vm._s(_vm.time)+" ")])])}
|
|
42331
|
+
var AudioPlayervue_type_template_id_1442a03d_scoped_true_staticRenderFns = []
|
|
42332
|
+
|
|
42333
|
+
|
|
42334
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=template&id=1442a03d&scoped=true&
|
|
42335
|
+
|
|
42336
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioPlayer.vue?vue&type=script&lang=js&
|
|
42337
|
+
|
|
42338
|
+
//
|
|
42339
|
+
//
|
|
42340
|
+
//
|
|
42341
|
+
//
|
|
42342
|
+
//
|
|
42343
|
+
//
|
|
42344
|
+
//
|
|
42345
|
+
//
|
|
42346
|
+
//
|
|
42347
|
+
//
|
|
42348
|
+
//
|
|
42349
|
+
//
|
|
42350
|
+
//
|
|
42351
|
+
//
|
|
42352
|
+
//
|
|
42353
|
+
//
|
|
42354
|
+
//
|
|
42355
|
+
//
|
|
42356
|
+
//
|
|
42357
|
+
//
|
|
42358
|
+
//
|
|
42359
|
+
//
|
|
42360
|
+
//
|
|
42361
|
+
//
|
|
42362
|
+
//
|
|
42363
|
+
//
|
|
42364
|
+
//
|
|
42365
|
+
//
|
|
42366
|
+
//
|
|
42367
|
+
//
|
|
42368
|
+
//
|
|
42369
|
+
|
|
42370
|
+
/* harmony default export */ var AudioPlayervue_type_script_lang_js_ = ({
|
|
42371
|
+
components: {
|
|
42372
|
+
UnnnicIcon: Icon
|
|
42373
|
+
},
|
|
42374
|
+
props: {
|
|
42375
|
+
time: {
|
|
42376
|
+
type: String,
|
|
42377
|
+
default: ''
|
|
42378
|
+
},
|
|
42379
|
+
duration: {
|
|
42380
|
+
type: String,
|
|
42381
|
+
default: ''
|
|
42382
|
+
},
|
|
42383
|
+
isPlaying: {
|
|
42384
|
+
type: Boolean,
|
|
42385
|
+
default: false
|
|
42386
|
+
},
|
|
42387
|
+
progressBarPercentualValue: {
|
|
42388
|
+
type: Number,
|
|
42389
|
+
default: 0
|
|
42390
|
+
},
|
|
42391
|
+
bars: {
|
|
42392
|
+
type: Array
|
|
42393
|
+
}
|
|
42394
|
+
},
|
|
42395
|
+
methods: {
|
|
42396
|
+
play: function play() {
|
|
42397
|
+
this.$emit('play');
|
|
42398
|
+
},
|
|
42399
|
+
pause: function pause() {
|
|
42400
|
+
this.$emit('pause');
|
|
42401
|
+
},
|
|
42402
|
+
isBarActive: function isBarActive(index) {
|
|
42403
|
+
return this.progressBarPercentualValue / 100 * 22 > index;
|
|
42404
|
+
}
|
|
42405
|
+
}
|
|
42406
|
+
});
|
|
42407
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=script&lang=js&
|
|
42408
|
+
/* harmony default export */ var AudioRecorder_AudioPlayervue_type_script_lang_js_ = (AudioPlayervue_type_script_lang_js_);
|
|
42409
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=style&index=0&id=1442a03d&lang=scss&scoped=true&
|
|
42410
|
+
var AudioPlayervue_type_style_index_0_id_1442a03d_lang_scss_scoped_true_ = __webpack_require__("6385");
|
|
42411
|
+
|
|
42412
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue
|
|
42413
|
+
|
|
42414
|
+
|
|
42415
|
+
|
|
42416
|
+
|
|
42417
|
+
|
|
42418
|
+
|
|
42419
|
+
/* normalize component */
|
|
42420
|
+
|
|
42421
|
+
var AudioPlayer_component = normalizeComponent(
|
|
42422
|
+
AudioRecorder_AudioPlayervue_type_script_lang_js_,
|
|
42423
|
+
AudioPlayervue_type_template_id_1442a03d_scoped_true_render,
|
|
42424
|
+
AudioPlayervue_type_template_id_1442a03d_scoped_true_staticRenderFns,
|
|
42425
|
+
false,
|
|
42426
|
+
null,
|
|
42427
|
+
"1442a03d",
|
|
42428
|
+
null
|
|
42429
|
+
|
|
42430
|
+
)
|
|
42431
|
+
|
|
42432
|
+
/* harmony default export */ var AudioPlayer = (AudioPlayer_component.exports);
|
|
42433
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioRecorder.vue?vue&type=script&lang=js&
|
|
42434
|
+
|
|
42435
|
+
|
|
42436
|
+
|
|
42437
|
+
|
|
42438
|
+
|
|
42439
|
+
|
|
42440
|
+
|
|
42441
|
+
|
|
42442
|
+
|
|
42443
|
+
|
|
42444
|
+
|
|
42445
|
+
|
|
42446
|
+
|
|
42447
|
+
|
|
42448
|
+
|
|
42449
|
+
//
|
|
42450
|
+
//
|
|
42451
|
+
//
|
|
42452
|
+
//
|
|
42453
|
+
//
|
|
42454
|
+
//
|
|
42455
|
+
//
|
|
42456
|
+
//
|
|
42457
|
+
//
|
|
42458
|
+
//
|
|
42459
|
+
//
|
|
42460
|
+
//
|
|
42461
|
+
//
|
|
42462
|
+
//
|
|
42463
|
+
//
|
|
42464
|
+
//
|
|
42465
|
+
//
|
|
42466
|
+
//
|
|
42467
|
+
//
|
|
42468
|
+
//
|
|
42469
|
+
//
|
|
42470
|
+
//
|
|
42471
|
+
//
|
|
42472
|
+
//
|
|
42473
|
+
//
|
|
42474
|
+
|
|
42475
|
+
|
|
42476
|
+
|
|
42477
|
+
|
|
42478
|
+
var filterData = function filterData(audioBuffer) {
|
|
42479
|
+
var rawData = audioBuffer.getChannelData(0); // We only need to work with one channel of data
|
|
42480
|
+
|
|
42481
|
+
var samples = 22; // Number of samples we want to have in our final data set
|
|
42482
|
+
|
|
42483
|
+
var blockSize = Math.floor(rawData.length / samples); // the number of samples in each subdivision
|
|
42484
|
+
|
|
42485
|
+
var filteredData = [];
|
|
42486
|
+
|
|
42487
|
+
for (var i = 0; i < samples; i += 1) {
|
|
42488
|
+
var blockStart = blockSize * i; // the location of the first sample in the block
|
|
42489
|
+
|
|
42490
|
+
var sum = 0;
|
|
42491
|
+
|
|
42492
|
+
for (var j = 0; j < blockSize; j += 1) {
|
|
42493
|
+
sum += Math.abs(rawData[blockStart + j]); // find the sum of all the samples in the block
|
|
42494
|
+
}
|
|
42495
|
+
|
|
42496
|
+
filteredData.push(sum / blockSize); // divide the sum by the block size to get the average
|
|
42497
|
+
}
|
|
42498
|
+
|
|
42499
|
+
return filteredData;
|
|
42500
|
+
};
|
|
42501
|
+
|
|
42502
|
+
var AudioRecordervue_type_script_lang_js_normalizeData = function normalizeData(filteredData) {
|
|
42503
|
+
// eslint-disable-next-line no-restricted-properties
|
|
42504
|
+
var multiplier = Math.pow(Math.max.apply(Math, _toConsumableArray(filteredData)), -1);
|
|
42505
|
+
return filteredData.map(function (n) {
|
|
42506
|
+
return n * multiplier;
|
|
42507
|
+
});
|
|
42508
|
+
};
|
|
42509
|
+
|
|
42510
|
+
/* harmony default export */ var AudioRecordervue_type_script_lang_js_ = ({
|
|
42511
|
+
name: 'AudioRecorder',
|
|
38573
42512
|
components: {
|
|
38574
|
-
|
|
38575
|
-
|
|
42513
|
+
AudioHandler: AudioHandler,
|
|
42514
|
+
AudioPlayer: AudioPlayer,
|
|
38576
42515
|
UnnnicIcon: Icon
|
|
38577
42516
|
},
|
|
38578
42517
|
props: {
|
|
38579
|
-
|
|
38580
|
-
type:
|
|
38581
|
-
|
|
42518
|
+
canDelete: {
|
|
42519
|
+
type: Boolean
|
|
42520
|
+
},
|
|
42521
|
+
src: {
|
|
42522
|
+
type: String
|
|
38582
42523
|
}
|
|
38583
42524
|
},
|
|
38584
42525
|
data: function data() {
|
|
38585
42526
|
return {
|
|
38586
|
-
|
|
42527
|
+
/**
|
|
42528
|
+
* @type MediaRecorder
|
|
42529
|
+
*/
|
|
42530
|
+
recorder: null,
|
|
42531
|
+
|
|
42532
|
+
/**
|
|
42533
|
+
* @type HTMLAudioElement
|
|
42534
|
+
*/
|
|
42535
|
+
audio: null,
|
|
42536
|
+
|
|
42537
|
+
/**
|
|
42538
|
+
* @type MediaStream
|
|
42539
|
+
*/
|
|
42540
|
+
stream: null,
|
|
42541
|
+
audioChunks: [],
|
|
42542
|
+
duration: 0,
|
|
42543
|
+
currentTime: 0,
|
|
42544
|
+
|
|
42545
|
+
/**
|
|
42546
|
+
* @type {('idle'|'recording'|'recorded'|'playing'|'paused')}
|
|
42547
|
+
*/
|
|
42548
|
+
status: 'idle',
|
|
42549
|
+
bars: []
|
|
38587
42550
|
};
|
|
38588
42551
|
},
|
|
38589
|
-
|
|
38590
|
-
|
|
38591
|
-
|
|
38592
|
-
methods: {
|
|
38593
|
-
formatDoc: function formatDoc(sCmd, sValue) {
|
|
38594
|
-
this.$refs.oDoc.focus();
|
|
38595
|
-
document.execCommand(sCmd, false, sValue);
|
|
38596
|
-
this.$refs.oDoc.focus();
|
|
42552
|
+
computed: {
|
|
42553
|
+
hasAudio: function hasAudio() {
|
|
42554
|
+
return !!this.audio;
|
|
38597
42555
|
},
|
|
38598
|
-
|
|
38599
|
-
return this
|
|
42556
|
+
isIdle: function isIdle() {
|
|
42557
|
+
return this.status === 'idle';
|
|
38600
42558
|
},
|
|
38601
|
-
|
|
38602
|
-
this
|
|
42559
|
+
isPlaying: function isPlaying() {
|
|
42560
|
+
return this.status === 'playing';
|
|
42561
|
+
},
|
|
42562
|
+
isRecording: function isRecording() {
|
|
42563
|
+
return this.status === 'recording';
|
|
42564
|
+
},
|
|
42565
|
+
isRecorded: function isRecorded() {
|
|
42566
|
+
return this.status === 'recorded';
|
|
42567
|
+
},
|
|
42568
|
+
playedPercentual: function playedPercentual() {
|
|
42569
|
+
return this.currentTime * 100 / this.duration;
|
|
38603
42570
|
}
|
|
38604
|
-
}
|
|
38605
|
-
|
|
38606
|
-
|
|
38607
|
-
|
|
38608
|
-
|
|
38609
|
-
var
|
|
42571
|
+
},
|
|
42572
|
+
watch: {
|
|
42573
|
+
src: {
|
|
42574
|
+
immediate: true,
|
|
42575
|
+
handler: function handler() {
|
|
42576
|
+
var _this = this;
|
|
38610
42577
|
|
|
38611
|
-
|
|
42578
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
42579
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
42580
|
+
while (1) {
|
|
42581
|
+
switch (_context.prev = _context.next) {
|
|
42582
|
+
case 0:
|
|
42583
|
+
if (_this.src) {
|
|
42584
|
+
_context.next = 2;
|
|
42585
|
+
break;
|
|
42586
|
+
}
|
|
38612
42587
|
|
|
42588
|
+
return _context.abrupt("return");
|
|
38613
42589
|
|
|
42590
|
+
case 2:
|
|
42591
|
+
_this.audio = new Audio();
|
|
38614
42592
|
|
|
42593
|
+
_this.audio.setAttribute('src', _this.src);
|
|
38615
42594
|
|
|
42595
|
+
_this.addAudioEventListeners();
|
|
38616
42596
|
|
|
42597
|
+
_context.next = 7;
|
|
42598
|
+
return _this.srcToBars(_this.src);
|
|
38617
42599
|
|
|
38618
|
-
|
|
42600
|
+
case 7:
|
|
42601
|
+
_this.bars = _context.sent;
|
|
38619
42602
|
|
|
38620
|
-
|
|
38621
|
-
|
|
38622
|
-
|
|
38623
|
-
|
|
38624
|
-
|
|
38625
|
-
|
|
38626
|
-
|
|
38627
|
-
|
|
38628
|
-
|
|
38629
|
-
|
|
42603
|
+
case 8:
|
|
42604
|
+
case "end":
|
|
42605
|
+
return _context.stop();
|
|
42606
|
+
}
|
|
42607
|
+
}
|
|
42608
|
+
}, _callee);
|
|
42609
|
+
}))();
|
|
42610
|
+
}
|
|
42611
|
+
}
|
|
42612
|
+
},
|
|
42613
|
+
methods: {
|
|
42614
|
+
// entry point; accessed by external components
|
|
42615
|
+
record: function record() {
|
|
42616
|
+
var _this2 = this;
|
|
38630
42617
|
|
|
38631
|
-
|
|
38632
|
-
|
|
38633
|
-
|
|
38634
|
-
|
|
38635
|
-
|
|
38636
|
-
|
|
42618
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
42619
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
42620
|
+
while (1) {
|
|
42621
|
+
switch (_context2.prev = _context2.next) {
|
|
42622
|
+
case 0:
|
|
42623
|
+
if (!_this2.hasInUseRecordDevice()) {
|
|
42624
|
+
_context2.next = 2;
|
|
42625
|
+
break;
|
|
42626
|
+
}
|
|
38637
42627
|
|
|
42628
|
+
return _context2.abrupt("return");
|
|
38638
42629
|
|
|
38639
|
-
|
|
42630
|
+
case 2:
|
|
42631
|
+
_context2.next = 4;
|
|
42632
|
+
return _this2.getAudioRecordDevice();
|
|
38640
42633
|
|
|
38641
|
-
|
|
38642
|
-
|
|
38643
|
-
var u1F625_default = /*#__PURE__*/__webpack_require__.n(u1F625);
|
|
42634
|
+
case 4:
|
|
42635
|
+
_this2.setupRecorderAndAudio();
|
|
38644
42636
|
|
|
38645
|
-
|
|
38646
|
-
var u1F641 = __webpack_require__("26d9");
|
|
38647
|
-
var u1F641_default = /*#__PURE__*/__webpack_require__.n(u1F641);
|
|
42637
|
+
_this2.addListeners();
|
|
38648
42638
|
|
|
38649
|
-
|
|
38650
|
-
var u1F610 = __webpack_require__("1093");
|
|
38651
|
-
var u1F610_default = /*#__PURE__*/__webpack_require__.n(u1F610);
|
|
42639
|
+
_this2.startRecord();
|
|
38652
42640
|
|
|
38653
|
-
|
|
38654
|
-
|
|
38655
|
-
|
|
42641
|
+
case 7:
|
|
42642
|
+
case "end":
|
|
42643
|
+
return _context2.stop();
|
|
42644
|
+
}
|
|
42645
|
+
}
|
|
42646
|
+
}, _callee2);
|
|
42647
|
+
}))();
|
|
42648
|
+
},
|
|
42649
|
+
hasInUseRecordDevice: function hasInUseRecordDevice() {
|
|
42650
|
+
return !!this.recorder;
|
|
42651
|
+
},
|
|
42652
|
+
getAudioRecordDevice: function getAudioRecordDevice() {
|
|
42653
|
+
var _this3 = this;
|
|
38656
42654
|
|
|
38657
|
-
|
|
38658
|
-
|
|
38659
|
-
|
|
42655
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
42656
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
42657
|
+
while (1) {
|
|
42658
|
+
switch (_context3.prev = _context3.next) {
|
|
42659
|
+
case 0:
|
|
42660
|
+
_context3.next = 2;
|
|
42661
|
+
return navigator.mediaDevices.getUserMedia({
|
|
42662
|
+
audio: true
|
|
42663
|
+
});
|
|
38660
42664
|
|
|
38661
|
-
|
|
42665
|
+
case 2:
|
|
42666
|
+
_this3.stream = _context3.sent;
|
|
42667
|
+
_this3.recorder = new MediaRecorder(_this3.stream);
|
|
38662
42668
|
|
|
38663
|
-
|
|
38664
|
-
|
|
38665
|
-
|
|
38666
|
-
|
|
38667
|
-
|
|
38668
|
-
|
|
38669
|
-
|
|
38670
|
-
|
|
38671
|
-
|
|
38672
|
-
|
|
38673
|
-
//
|
|
38674
|
-
//
|
|
38675
|
-
//
|
|
38676
|
-
//
|
|
38677
|
-
//
|
|
38678
|
-
//
|
|
38679
|
-
//
|
|
38680
|
-
//
|
|
38681
|
-
//
|
|
38682
|
-
//
|
|
38683
|
-
//
|
|
38684
|
-
//
|
|
38685
|
-
//
|
|
38686
|
-
//
|
|
42669
|
+
case 4:
|
|
42670
|
+
case "end":
|
|
42671
|
+
return _context3.stop();
|
|
42672
|
+
}
|
|
42673
|
+
}
|
|
42674
|
+
}, _callee3);
|
|
42675
|
+
}))();
|
|
42676
|
+
},
|
|
42677
|
+
setupRecorderAndAudio: function setupRecorderAndAudio() {
|
|
42678
|
+
var _this4 = this;
|
|
38687
42679
|
|
|
42680
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
42681
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
42682
|
+
while (1) {
|
|
42683
|
+
switch (_context4.prev = _context4.next) {
|
|
42684
|
+
case 0:
|
|
42685
|
+
_this4.audio = new Audio();
|
|
42686
|
+
_this4.audioChunks = [];
|
|
42687
|
+
_this4.duration = 0;
|
|
42688
|
+
_this4.currentTime = 0;
|
|
38688
42689
|
|
|
42690
|
+
case 4:
|
|
42691
|
+
case "end":
|
|
42692
|
+
return _context4.stop();
|
|
42693
|
+
}
|
|
42694
|
+
}
|
|
42695
|
+
}, _callee4);
|
|
42696
|
+
}))();
|
|
42697
|
+
},
|
|
42698
|
+
addListeners: function addListeners() {
|
|
42699
|
+
var _this5 = this;
|
|
38689
42700
|
|
|
42701
|
+
this.recorder.addEventListener('dataavailable', function (event) {
|
|
42702
|
+
_this5.audioChunks.push(event.data);
|
|
38690
42703
|
|
|
42704
|
+
var blob = new Blob(_this5.audioChunks);
|
|
42705
|
+
var src = URL.createObjectURL(blob);
|
|
42706
|
+
_this5.audio.src = src; // necessary to have the audio duration correctly
|
|
38691
42707
|
|
|
42708
|
+
_this5.audio.currentTime = 1e100;
|
|
42709
|
+
});
|
|
42710
|
+
this.recorder.addEventListener('stop', function () {
|
|
42711
|
+
_this5.stream.getTracks().forEach(function (track) {
|
|
42712
|
+
track.stop();
|
|
42713
|
+
});
|
|
38692
42714
|
|
|
38693
|
-
|
|
38694
|
-
|
|
38695
|
-
|
|
38696
|
-
},
|
|
38697
|
-
props: {
|
|
38698
|
-
value: {
|
|
38699
|
-
type: Number
|
|
42715
|
+
_this5.recorder = null;
|
|
42716
|
+
});
|
|
42717
|
+
this.addAudioEventListeners();
|
|
38700
42718
|
},
|
|
38701
|
-
|
|
38702
|
-
|
|
42719
|
+
addAudioEventListeners: function addAudioEventListeners() {
|
|
42720
|
+
var _this6 = this;
|
|
42721
|
+
|
|
42722
|
+
this.audio.addEventListener('loadeddata', function () {
|
|
42723
|
+
_this6.audio.currentTime = 0;
|
|
42724
|
+
_this6.duration = _this6.audio.duration;
|
|
42725
|
+
});
|
|
42726
|
+
this.audio.addEventListener('play', function () {
|
|
42727
|
+
_this6.status = 'playing';
|
|
42728
|
+
});
|
|
42729
|
+
this.audio.addEventListener('pause', function () {
|
|
42730
|
+
_this6.status = 'paused';
|
|
42731
|
+
});
|
|
42732
|
+
this.audio.addEventListener('timeupdate', function () {
|
|
42733
|
+
if (_this6.status !== 'playing') return;
|
|
42734
|
+
_this6.currentTime = _this6.audio.currentTime;
|
|
42735
|
+
});
|
|
42736
|
+
this.audio.addEventListener('ended', function () {
|
|
42737
|
+
_this6.currentTime = 0;
|
|
42738
|
+
_this6.status = 'idle';
|
|
42739
|
+
});
|
|
38703
42740
|
},
|
|
38704
|
-
|
|
38705
|
-
|
|
38706
|
-
|
|
38707
|
-
|
|
38708
|
-
|
|
42741
|
+
startRecord: function startRecord() {
|
|
42742
|
+
this.status = 'recording';
|
|
42743
|
+
var recordTimeSliceInMilliseconds = 500;
|
|
42744
|
+
this.recorder.start(recordTimeSliceInMilliseconds);
|
|
42745
|
+
},
|
|
42746
|
+
discard: function discard() {
|
|
42747
|
+
this.audio = null;
|
|
42748
|
+
this.status = 'idle';
|
|
42749
|
+
},
|
|
42750
|
+
save: function save() {
|
|
42751
|
+
this.status = 'idle';
|
|
42752
|
+
},
|
|
42753
|
+
pause: function pause() {
|
|
42754
|
+
this.audio.pause();
|
|
42755
|
+
},
|
|
42756
|
+
stop: function stop() {
|
|
42757
|
+
var _this7 = this;
|
|
42758
|
+
|
|
42759
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
42760
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
42761
|
+
while (1) {
|
|
42762
|
+
switch (_context5.prev = _context5.next) {
|
|
42763
|
+
case 0:
|
|
42764
|
+
_this7.status = 'recorded';
|
|
42765
|
+
|
|
42766
|
+
_this7.recorder.stop();
|
|
42767
|
+
|
|
42768
|
+
_context5.next = 4;
|
|
42769
|
+
return _this7.srcToBars(_this7.audio.src);
|
|
42770
|
+
|
|
42771
|
+
case 4:
|
|
42772
|
+
_this7.bars = _context5.sent;
|
|
42773
|
+
|
|
42774
|
+
case 5:
|
|
42775
|
+
case "end":
|
|
42776
|
+
return _context5.stop();
|
|
42777
|
+
}
|
|
42778
|
+
}
|
|
42779
|
+
}, _callee5);
|
|
42780
|
+
}))();
|
|
42781
|
+
},
|
|
42782
|
+
play: function play() {
|
|
42783
|
+
this.audio.play();
|
|
42784
|
+
},
|
|
42785
|
+
srcToBars: function srcToBars(src) {
|
|
42786
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
42787
|
+
var audioContext, response, arrayBuffer, audioBuffer;
|
|
42788
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
42789
|
+
while (1) {
|
|
42790
|
+
switch (_context6.prev = _context6.next) {
|
|
42791
|
+
case 0:
|
|
42792
|
+
window.AudioContext = window.AudioContext || window.webkitAudioContext;
|
|
42793
|
+
audioContext = new AudioContext();
|
|
42794
|
+
_context6.next = 4;
|
|
42795
|
+
return fetch(src);
|
|
42796
|
+
|
|
42797
|
+
case 4:
|
|
42798
|
+
response = _context6.sent;
|
|
42799
|
+
_context6.next = 7;
|
|
42800
|
+
return response.arrayBuffer();
|
|
42801
|
+
|
|
42802
|
+
case 7:
|
|
42803
|
+
arrayBuffer = _context6.sent;
|
|
42804
|
+
_context6.next = 10;
|
|
42805
|
+
return audioContext.decodeAudioData(arrayBuffer);
|
|
42806
|
+
|
|
42807
|
+
case 10:
|
|
42808
|
+
audioBuffer = _context6.sent;
|
|
42809
|
+
return _context6.abrupt("return", AudioRecordervue_type_script_lang_js_normalizeData(filterData(audioBuffer)));
|
|
42810
|
+
|
|
42811
|
+
case 12:
|
|
42812
|
+
case "end":
|
|
42813
|
+
return _context6.stop();
|
|
42814
|
+
}
|
|
42815
|
+
}
|
|
42816
|
+
}, _callee6);
|
|
42817
|
+
}))();
|
|
42818
|
+
},
|
|
42819
|
+
numberToTimeString: function numberToTimeString(time) {
|
|
42820
|
+
var minutes = Math.floor(time / 60);
|
|
42821
|
+
var seconds = Math.round(time % 60).toString().padStart(2, '0');
|
|
42822
|
+
return "".concat(minutes, ":").concat(seconds);
|
|
38709
42823
|
}
|
|
38710
|
-
},
|
|
38711
|
-
data: function data() {
|
|
38712
|
-
return {
|
|
38713
|
-
moods: [{
|
|
38714
|
-
image: u1F625_default.a
|
|
38715
|
-
}, {
|
|
38716
|
-
image: u1F641_default.a
|
|
38717
|
-
}, {
|
|
38718
|
-
image: u1F610_default.a
|
|
38719
|
-
}, {
|
|
38720
|
-
image: u1F645_default.a
|
|
38721
|
-
}, {
|
|
38722
|
-
image: u1F601_default.a
|
|
38723
|
-
}]
|
|
38724
|
-
};
|
|
38725
42824
|
}
|
|
38726
42825
|
});
|
|
38727
|
-
// CONCATENATED MODULE: ./src/components/
|
|
38728
|
-
/* harmony default export */ var
|
|
38729
|
-
// EXTERNAL MODULE: ./src/components/
|
|
38730
|
-
var
|
|
42826
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=script&lang=js&
|
|
42827
|
+
/* harmony default export */ var AudioRecorder_AudioRecordervue_type_script_lang_js_ = (AudioRecordervue_type_script_lang_js_);
|
|
42828
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=style&index=0&id=73ef528c&lang=scss&scoped=true&
|
|
42829
|
+
var AudioRecordervue_type_style_index_0_id_73ef528c_lang_scss_scoped_true_ = __webpack_require__("b567");
|
|
38731
42830
|
|
|
38732
|
-
// CONCATENATED MODULE: ./src/components/
|
|
42831
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue
|
|
38733
42832
|
|
|
38734
42833
|
|
|
38735
42834
|
|
|
@@ -38738,26 +42837,29 @@ var MoodRatingvue_type_style_index_0_id_f25087d0_lang_scss_scoped_true_ = __webp
|
|
|
38738
42837
|
|
|
38739
42838
|
/* normalize component */
|
|
38740
42839
|
|
|
38741
|
-
var
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
42840
|
+
var AudioRecorder_component = normalizeComponent(
|
|
42841
|
+
AudioRecorder_AudioRecordervue_type_script_lang_js_,
|
|
42842
|
+
AudioRecordervue_type_template_id_73ef528c_scoped_true_render,
|
|
42843
|
+
AudioRecordervue_type_template_id_73ef528c_scoped_true_staticRenderFns,
|
|
38745
42844
|
false,
|
|
38746
42845
|
null,
|
|
38747
|
-
"
|
|
42846
|
+
"73ef528c",
|
|
38748
42847
|
null
|
|
38749
42848
|
|
|
38750
42849
|
)
|
|
38751
42850
|
|
|
38752
|
-
/* harmony default export */ var
|
|
38753
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/
|
|
38754
|
-
var
|
|
38755
|
-
var
|
|
42851
|
+
/* harmony default export */ var AudioRecorder = (AudioRecorder_component.exports);
|
|
42852
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=template&id=19c569be&scoped=true&
|
|
42853
|
+
var CircleProgressBarvue_type_template_id_19c569be_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-circle-progress-bar"},[_c('svg',{staticClass:"semicircle",attrs:{"width":"46","height":"46"}},[_c('circle',{class:['background', _vm.progress === _vm.totalProgress ? 'filled' : ''],attrs:{"cx":"23","cy":"23","r":"21","stroke":"black","stroke-width":"4px"}}),_c('path',{directives:[{name:"show",rawName:"v-show",value:(_vm.progress < _vm.totalProgress && _vm.progress > 0),expression:"progress < totalProgress && progress > 0"}],ref:"background",staticClass:"front",attrs:{"id":"path","fill":"none","stroke-linecap":"round","stroke-width":"4px"}})]),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.progress)+"/"+_vm._s(_vm.totalProgress))])])}
|
|
42854
|
+
var CircleProgressBarvue_type_template_id_19c569be_scoped_true_staticRenderFns = []
|
|
42855
|
+
|
|
42856
|
+
|
|
42857
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=template&id=19c569be&scoped=true&
|
|
42858
|
+
|
|
42859
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=script&lang=js&
|
|
38756
42860
|
|
|
38757
42861
|
|
|
38758
|
-
// CONCATENATED MODULE: ./src/components/StarRating/StarRating.vue?vue&type=template&id=e283ca2a&scoped=true&
|
|
38759
42862
|
|
|
38760
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/StarRating/StarRating.vue?vue&type=script&lang=js&
|
|
38761
42863
|
|
|
38762
42864
|
//
|
|
38763
42865
|
//
|
|
@@ -38775,37 +42877,71 @@ var StarRatingvue_type_template_id_e283ca2a_scoped_true_staticRenderFns = []
|
|
|
38775
42877
|
//
|
|
38776
42878
|
//
|
|
38777
42879
|
//
|
|
38778
|
-
|
|
38779
|
-
|
|
38780
|
-
|
|
38781
|
-
|
|
38782
|
-
|
|
42880
|
+
//
|
|
42881
|
+
//
|
|
42882
|
+
//
|
|
42883
|
+
//
|
|
42884
|
+
//
|
|
42885
|
+
//
|
|
42886
|
+
//
|
|
42887
|
+
//
|
|
42888
|
+
//
|
|
42889
|
+
//
|
|
42890
|
+
//
|
|
42891
|
+
/* harmony default export */ var CircleProgressBarvue_type_script_lang_js_ = ({
|
|
42892
|
+
components: {},
|
|
38783
42893
|
props: {
|
|
38784
|
-
|
|
42894
|
+
progress: {
|
|
38785
42895
|
type: Number
|
|
38786
42896
|
},
|
|
38787
|
-
|
|
38788
|
-
type:
|
|
38789
|
-
},
|
|
38790
|
-
readonly: {
|
|
38791
|
-
type: Boolean
|
|
42897
|
+
totalProgress: {
|
|
42898
|
+
type: Number
|
|
38792
42899
|
}
|
|
38793
42900
|
},
|
|
38794
|
-
|
|
38795
|
-
|
|
42901
|
+
watch: {
|
|
42902
|
+
progressChange: {
|
|
42903
|
+
immediate: true,
|
|
42904
|
+
handler: function handler() {
|
|
42905
|
+
var _this = this;
|
|
42906
|
+
|
|
42907
|
+
function polarToCartesian(centerX, centerY, radius, angleInDegrees) {
|
|
42908
|
+
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
42909
|
+
return {
|
|
42910
|
+
x: centerX + radius * -Math.cos(angleInRadians),
|
|
42911
|
+
y: centerY + radius * -Math.sin(angleInRadians)
|
|
42912
|
+
};
|
|
42913
|
+
}
|
|
42914
|
+
|
|
42915
|
+
function describeArc(x, y, innerRadius, outerRadius, startAngle, endAngle) {
|
|
42916
|
+
var radius = innerRadius;
|
|
42917
|
+
var spread = outerRadius - innerRadius;
|
|
42918
|
+
var outerStart = polarToCartesian(x, y, radius + spread, endAngle);
|
|
42919
|
+
var outerEnd = polarToCartesian(x, y, radius + spread, startAngle);
|
|
42920
|
+
var largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
|
|
42921
|
+
var d = ['M', outerStart.x, outerStart.y, 'A', radius + spread, radius + spread, 0, largeArcFlag, 0, outerEnd.x, outerEnd.y].join(' ');
|
|
42922
|
+
return d;
|
|
42923
|
+
}
|
|
42924
|
+
|
|
42925
|
+
var value = this.progress / this.totalProgress * 360;
|
|
42926
|
+
var path = describeArc(23, 23, 0, 21, 180 - value.toFixed(), 180);
|
|
42927
|
+
this.$nextTick(function () {
|
|
42928
|
+
_this.$refs.background.setAttribute('d', path);
|
|
42929
|
+
});
|
|
42930
|
+
}
|
|
42931
|
+
}
|
|
38796
42932
|
},
|
|
38797
|
-
|
|
38798
|
-
|
|
38799
|
-
return
|
|
42933
|
+
computed: {
|
|
42934
|
+
progressChange: function progressChange() {
|
|
42935
|
+
return "".concat(this.progress, "-").concat(this.totalProgress);
|
|
38800
42936
|
}
|
|
38801
42937
|
}
|
|
38802
42938
|
});
|
|
38803
|
-
// CONCATENATED MODULE: ./src/components/
|
|
38804
|
-
/* harmony default export */ var
|
|
38805
|
-
// EXTERNAL MODULE: ./src/components/
|
|
38806
|
-
var
|
|
42939
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=script&lang=js&
|
|
42940
|
+
/* harmony default export */ var CircleProgressBar_CircleProgressBarvue_type_script_lang_js_ = (CircleProgressBarvue_type_script_lang_js_);
|
|
42941
|
+
// EXTERNAL MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=style&index=0&id=19c569be&lang=scss&scoped=true&
|
|
42942
|
+
var CircleProgressBarvue_type_style_index_0_id_19c569be_lang_scss_scoped_true_ = __webpack_require__("e291");
|
|
38807
42943
|
|
|
38808
|
-
// CONCATENATED MODULE: ./src/components/
|
|
42944
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue
|
|
38809
42945
|
|
|
38810
42946
|
|
|
38811
42947
|
|
|
@@ -38814,18 +42950,18 @@ var StarRatingvue_type_style_index_0_id_e283ca2a_lang_scss_scoped_true_ = __webp
|
|
|
38814
42950
|
|
|
38815
42951
|
/* normalize component */
|
|
38816
42952
|
|
|
38817
|
-
var
|
|
38818
|
-
|
|
38819
|
-
|
|
38820
|
-
|
|
42953
|
+
var CircleProgressBar_component = normalizeComponent(
|
|
42954
|
+
CircleProgressBar_CircleProgressBarvue_type_script_lang_js_,
|
|
42955
|
+
CircleProgressBarvue_type_template_id_19c569be_scoped_true_render,
|
|
42956
|
+
CircleProgressBarvue_type_template_id_19c569be_scoped_true_staticRenderFns,
|
|
38821
42957
|
false,
|
|
38822
42958
|
null,
|
|
38823
|
-
"
|
|
42959
|
+
"19c569be",
|
|
38824
42960
|
null
|
|
38825
42961
|
|
|
38826
42962
|
)
|
|
38827
42963
|
|
|
38828
|
-
/* harmony default export */ var
|
|
42964
|
+
/* harmony default export */ var CircleProgressBar = (CircleProgressBar_component.exports);
|
|
38829
42965
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
38830
42966
|
|
|
38831
42967
|
|
|
@@ -38884,6 +43020,8 @@ var StarRating_component = normalizeComponent(
|
|
|
38884
43020
|
|
|
38885
43021
|
|
|
38886
43022
|
|
|
43023
|
+
|
|
43024
|
+
|
|
38887
43025
|
|
|
38888
43026
|
|
|
38889
43027
|
|
|
@@ -38943,7 +43081,9 @@ var components = {
|
|
|
38943
43081
|
unnnicChartRainbow: ChartRainbow,
|
|
38944
43082
|
unnnicTextEditor: TextEditor,
|
|
38945
43083
|
unnnicMoodRating: MoodRating,
|
|
38946
|
-
unnnicStarRating: StarRating
|
|
43084
|
+
unnnicStarRating: StarRating,
|
|
43085
|
+
unnnicAudioRecorder: AudioRecorder,
|
|
43086
|
+
unnnicCircleProgressBar: CircleProgressBar
|
|
38947
43087
|
};
|
|
38948
43088
|
Object.keys(components).forEach(function (name) {
|
|
38949
43089
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(name, components[name]);
|
|
@@ -39006,6 +43146,8 @@ var unnnicChartRainbow = ChartRainbow;
|
|
|
39006
43146
|
var unnnicTextEditor = TextEditor;
|
|
39007
43147
|
var unnnicMoodRating = MoodRating;
|
|
39008
43148
|
var unnnicStarRating = StarRating;
|
|
43149
|
+
var unnnicAudioRecorder = AudioRecorder;
|
|
43150
|
+
var unnnicCircleProgressBar = CircleProgressBar;
|
|
39009
43151
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
39010
43152
|
|
|
39011
43153
|
|
|
@@ -39232,6 +43374,23 @@ module.exports = NATIVE_SYMBOL
|
|
|
39232
43374
|
&& typeof Symbol.iterator == 'symbol';
|
|
39233
43375
|
|
|
39234
43376
|
|
|
43377
|
+
/***/ }),
|
|
43378
|
+
|
|
43379
|
+
/***/ "fea9":
|
|
43380
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43381
|
+
|
|
43382
|
+
var global = __webpack_require__("da84");
|
|
43383
|
+
|
|
43384
|
+
module.exports = global.Promise;
|
|
43385
|
+
|
|
43386
|
+
|
|
43387
|
+
/***/ }),
|
|
43388
|
+
|
|
43389
|
+
/***/ "fee5":
|
|
43390
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43391
|
+
|
|
43392
|
+
// extracted by mini-css-extract-plugin
|
|
43393
|
+
|
|
39235
43394
|
/***/ }),
|
|
39236
43395
|
|
|
39237
43396
|
/***/ "ff88":
|