jssz-meeting-component 1.2.11 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1534 -900
- package/dist/index.umd.js +1 -1
- package/dist/src/utils/srtc.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -17,7 +17,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
17
17
|
return __privateGet(obj, member, getter);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
import {
|
|
20
|
+
import { openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, reactive, createApp, effectScope, ref, markRaw, toRaw as toRaw$1, watch, unref, computed, isRef as isRef$1, isReactive as isReactive$1, toRef, hasInjectionContext, inject, getCurrentInstance, nextTick, getCurrentScope, onScopeDispose, toRefs, createStaticVNode, defineComponent, resolveDynamicComponent, onBeforeUnmount, onMounted, Teleport, withDirectives, withModifiers, renderSlot, vShow, vModelText, createVNode, Fragment, renderList, resolveDirective, createTextVNode, onUnmounted, withKeys, resolveComponent, TransitionGroup, mergeProps, vModelSelect } from "vue";
|
|
21
21
|
const draggable = {
|
|
22
22
|
mounted(el2, binding) {
|
|
23
23
|
const options = {
|
|
@@ -2659,7 +2659,7 @@ function getStyles(bounds) {
|
|
|
2659
2659
|
height: `${Math.round(bounds.height * 100) / 100}px`
|
|
2660
2660
|
};
|
|
2661
2661
|
}
|
|
2662
|
-
function create(options) {
|
|
2662
|
+
function create$1(options) {
|
|
2663
2663
|
var _a25;
|
|
2664
2664
|
const containerEl = document.createElement("div");
|
|
2665
2665
|
containerEl.id = (_a25 = options.elementId) != null ? _a25 : CONTAINER_ELEMENT_ID;
|
|
@@ -2710,7 +2710,7 @@ function highlight(instance) {
|
|
|
2710
2710
|
return;
|
|
2711
2711
|
const name2 = getInstanceName(instance);
|
|
2712
2712
|
const container = getContainerElement();
|
|
2713
|
-
container ? update({ bounds, name: name2 }) : create({ bounds, name: name2 });
|
|
2713
|
+
container ? update({ bounds, name: name2 }) : create$1({ bounds, name: name2 });
|
|
2714
2714
|
}
|
|
2715
2715
|
function unhighlight() {
|
|
2716
2716
|
const el2 = getContainerElement();
|
|
@@ -2729,7 +2729,7 @@ function inspectFn(e2) {
|
|
|
2729
2729
|
const bounds = getComponentBoundingRect(instance);
|
|
2730
2730
|
const name2 = getInstanceName(instance);
|
|
2731
2731
|
const container = getContainerElement();
|
|
2732
|
-
container ? update({ bounds, name: name2 }) : create({ bounds, name: name2 });
|
|
2732
|
+
container ? update({ bounds, name: name2 }) : create$1({ bounds, name: name2 });
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
@@ -2798,7 +2798,7 @@ function scrollToComponent(options) {
|
|
|
2798
2798
|
if (bounds.width || bounds.height) {
|
|
2799
2799
|
const name2 = getInstanceName(instance);
|
|
2800
2800
|
const el22 = getContainerElement();
|
|
2801
|
-
el22 ? update({ ...options, name: name2, bounds }) : create({ ...options, name: name2, bounds });
|
|
2801
|
+
el22 ? update({ ...options, name: name2, bounds }) : create$1({ ...options, name: name2, bounds });
|
|
2802
2802
|
setTimeout(() => {
|
|
2803
2803
|
if (el22)
|
|
2804
2804
|
el22.style.display = "none";
|
|
@@ -6015,7 +6015,7 @@ const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
|
6015
6015
|
const { isArray } = Array;
|
|
6016
6016
|
const isUndefined = typeOfTest("undefined");
|
|
6017
6017
|
function isBuffer(val) {
|
|
6018
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
6018
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
6019
6019
|
}
|
|
6020
6020
|
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
6021
6021
|
function isArrayBufferView(val) {
|
|
@@ -6028,7 +6028,7 @@ function isArrayBufferView(val) {
|
|
|
6028
6028
|
return result;
|
|
6029
6029
|
}
|
|
6030
6030
|
const isString = typeOfTest("string");
|
|
6031
|
-
const isFunction = typeOfTest("function");
|
|
6031
|
+
const isFunction$1 = typeOfTest("function");
|
|
6032
6032
|
const isNumber = typeOfTest("number");
|
|
6033
6033
|
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
6034
6034
|
const isBoolean = (thing) => thing === true || thing === false;
|
|
@@ -6051,17 +6051,42 @@ const isEmptyObject = (val) => {
|
|
|
6051
6051
|
};
|
|
6052
6052
|
const isDate = kindOfTest("Date");
|
|
6053
6053
|
const isFile = kindOfTest("File");
|
|
6054
|
+
const isReactNativeBlob = (value) => {
|
|
6055
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
6056
|
+
};
|
|
6057
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
6054
6058
|
const isBlob = kindOfTest("Blob");
|
|
6055
6059
|
const isFileList = kindOfTest("FileList");
|
|
6056
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
6060
|
+
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
6061
|
+
function getGlobal() {
|
|
6062
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
6063
|
+
if (typeof self !== "undefined") return self;
|
|
6064
|
+
if (typeof window !== "undefined") return window;
|
|
6065
|
+
if (typeof global !== "undefined") return global;
|
|
6066
|
+
return {};
|
|
6067
|
+
}
|
|
6068
|
+
const G$1 = getGlobal();
|
|
6069
|
+
const FormDataCtor = typeof G$1.FormData !== "undefined" ? G$1.FormData : void 0;
|
|
6057
6070
|
const isFormData = (thing) => {
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6071
|
+
if (!thing) return false;
|
|
6072
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
6073
|
+
const proto = getPrototypeOf(thing);
|
|
6074
|
+
if (!proto || proto === Object.prototype) return false;
|
|
6075
|
+
if (!isFunction$1(thing.append)) return false;
|
|
6076
|
+
const kind = kindOf(thing);
|
|
6077
|
+
return kind === "formdata" || // detect form-data instance
|
|
6078
|
+
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
|
|
6061
6079
|
};
|
|
6062
6080
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
6063
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
6064
|
-
|
|
6081
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
6082
|
+
"ReadableStream",
|
|
6083
|
+
"Request",
|
|
6084
|
+
"Response",
|
|
6085
|
+
"Headers"
|
|
6086
|
+
].map(kindOfTest);
|
|
6087
|
+
const trim = (str) => {
|
|
6088
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
6089
|
+
};
|
|
6065
6090
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
6066
6091
|
if (obj === null || typeof obj === "undefined") {
|
|
6067
6092
|
return;
|
|
@@ -6109,34 +6134,56 @@ const _global = (() => {
|
|
|
6109
6134
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
6110
6135
|
})();
|
|
6111
6136
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
6112
|
-
function merge() {
|
|
6113
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
6137
|
+
function merge(...objs) {
|
|
6138
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
6114
6139
|
const result = {};
|
|
6115
6140
|
const assignValue = (val, key) => {
|
|
6141
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
6142
|
+
return;
|
|
6143
|
+
}
|
|
6116
6144
|
const targetKey = caseless && findKey(result, key) || key;
|
|
6117
|
-
|
|
6118
|
-
|
|
6145
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
6146
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
6147
|
+
result[targetKey] = merge(existing, val);
|
|
6119
6148
|
} else if (isPlainObject(val)) {
|
|
6120
6149
|
result[targetKey] = merge({}, val);
|
|
6121
6150
|
} else if (isArray(val)) {
|
|
6122
6151
|
result[targetKey] = val.slice();
|
|
6123
|
-
} else {
|
|
6152
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
6124
6153
|
result[targetKey] = val;
|
|
6125
6154
|
}
|
|
6126
6155
|
};
|
|
6127
|
-
for (let i2 = 0, l2 =
|
|
6128
|
-
|
|
6156
|
+
for (let i2 = 0, l2 = objs.length; i2 < l2; i2++) {
|
|
6157
|
+
objs[i2] && forEach(objs[i2], assignValue);
|
|
6129
6158
|
}
|
|
6130
6159
|
return result;
|
|
6131
6160
|
}
|
|
6132
6161
|
const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
|
|
6133
|
-
forEach(
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6162
|
+
forEach(
|
|
6163
|
+
b2,
|
|
6164
|
+
(val, key) => {
|
|
6165
|
+
if (thisArg && isFunction$1(val)) {
|
|
6166
|
+
Object.defineProperty(a2, key, {
|
|
6167
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
6168
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
6169
|
+
__proto__: null,
|
|
6170
|
+
value: bind(val, thisArg),
|
|
6171
|
+
writable: true,
|
|
6172
|
+
enumerable: true,
|
|
6173
|
+
configurable: true
|
|
6174
|
+
});
|
|
6175
|
+
} else {
|
|
6176
|
+
Object.defineProperty(a2, key, {
|
|
6177
|
+
__proto__: null,
|
|
6178
|
+
value: val,
|
|
6179
|
+
writable: true,
|
|
6180
|
+
enumerable: true,
|
|
6181
|
+
configurable: true
|
|
6182
|
+
});
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6185
|
+
{ allOwnKeys }
|
|
6186
|
+
);
|
|
6140
6187
|
return a2;
|
|
6141
6188
|
};
|
|
6142
6189
|
const stripBOM = (content) => {
|
|
@@ -6145,10 +6192,17 @@ const stripBOM = (content) => {
|
|
|
6145
6192
|
}
|
|
6146
6193
|
return content;
|
|
6147
6194
|
};
|
|
6148
|
-
const inherits = (constructor, superConstructor, props,
|
|
6149
|
-
constructor.prototype = Object.create(superConstructor.prototype,
|
|
6150
|
-
constructor.prototype
|
|
6195
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
6196
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
6197
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
6198
|
+
__proto__: null,
|
|
6199
|
+
value: constructor,
|
|
6200
|
+
writable: true,
|
|
6201
|
+
enumerable: false,
|
|
6202
|
+
configurable: true
|
|
6203
|
+
});
|
|
6151
6204
|
Object.defineProperty(constructor, "super", {
|
|
6205
|
+
__proto__: null,
|
|
6152
6206
|
value: superConstructor.prototype
|
|
6153
6207
|
});
|
|
6154
6208
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -6218,19 +6272,16 @@ const matchAll = (regExp, str) => {
|
|
|
6218
6272
|
};
|
|
6219
6273
|
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
6220
6274
|
const toCamelCase = (str) => {
|
|
6221
|
-
return str.toLowerCase().replace(
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
return p1.toUpperCase() + p2;
|
|
6225
|
-
}
|
|
6226
|
-
);
|
|
6275
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
|
|
6276
|
+
return p1.toUpperCase() + p2;
|
|
6277
|
+
});
|
|
6227
6278
|
};
|
|
6228
6279
|
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
6229
6280
|
const isRegExp = kindOfTest("RegExp");
|
|
6230
6281
|
const reduceDescriptors = (obj, reducer) => {
|
|
6231
|
-
const
|
|
6282
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
6232
6283
|
const reducedDescriptors = {};
|
|
6233
|
-
forEach(
|
|
6284
|
+
forEach(descriptors, (descriptor, name2) => {
|
|
6234
6285
|
let ret;
|
|
6235
6286
|
if ((ret = reducer(descriptor, name2, obj)) !== false) {
|
|
6236
6287
|
reducedDescriptors[name2] = ret || descriptor;
|
|
@@ -6240,11 +6291,11 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
6240
6291
|
};
|
|
6241
6292
|
const freezeMethods = (obj) => {
|
|
6242
6293
|
reduceDescriptors(obj, (descriptor, name2) => {
|
|
6243
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
6294
|
+
if (isFunction$1(obj) && ["arguments", "caller", "callee"].includes(name2)) {
|
|
6244
6295
|
return false;
|
|
6245
6296
|
}
|
|
6246
6297
|
const value = obj[name2];
|
|
6247
|
-
if (!isFunction(value)) return;
|
|
6298
|
+
if (!isFunction$1(value)) return;
|
|
6248
6299
|
descriptor.enumerable = false;
|
|
6249
6300
|
if ("writable" in descriptor) {
|
|
6250
6301
|
descriptor.writable = false;
|
|
@@ -6273,56 +6324,57 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
6273
6324
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
6274
6325
|
};
|
|
6275
6326
|
function isSpecCompliantForm(thing) {
|
|
6276
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
6327
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
6277
6328
|
}
|
|
6278
6329
|
const toJSONObject = (obj) => {
|
|
6279
|
-
const
|
|
6280
|
-
const visit = (source
|
|
6330
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
6331
|
+
const visit = (source) => {
|
|
6281
6332
|
if (isObject(source)) {
|
|
6282
|
-
if (
|
|
6333
|
+
if (visited.has(source)) {
|
|
6283
6334
|
return;
|
|
6284
6335
|
}
|
|
6285
6336
|
if (isBuffer(source)) {
|
|
6286
6337
|
return source;
|
|
6287
6338
|
}
|
|
6288
6339
|
if (!("toJSON" in source)) {
|
|
6289
|
-
|
|
6340
|
+
visited.add(source);
|
|
6290
6341
|
const target2 = isArray(source) ? [] : {};
|
|
6291
6342
|
forEach(source, (value, key) => {
|
|
6292
|
-
const reducedValue = visit(value
|
|
6343
|
+
const reducedValue = visit(value);
|
|
6293
6344
|
!isUndefined(reducedValue) && (target2[key] = reducedValue);
|
|
6294
6345
|
});
|
|
6295
|
-
|
|
6346
|
+
visited.delete(source);
|
|
6296
6347
|
return target2;
|
|
6297
6348
|
}
|
|
6298
6349
|
}
|
|
6299
6350
|
return source;
|
|
6300
6351
|
};
|
|
6301
|
-
return visit(obj
|
|
6352
|
+
return visit(obj);
|
|
6302
6353
|
};
|
|
6303
6354
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
6304
|
-
const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
6355
|
+
const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
6305
6356
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
6306
6357
|
if (setImmediateSupported) {
|
|
6307
6358
|
return setImmediate;
|
|
6308
6359
|
}
|
|
6309
6360
|
return postMessageSupported ? ((token, callbacks) => {
|
|
6310
|
-
_global.addEventListener(
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6361
|
+
_global.addEventListener(
|
|
6362
|
+
"message",
|
|
6363
|
+
({ source, data }) => {
|
|
6364
|
+
if (source === _global && data === token) {
|
|
6365
|
+
callbacks.length && callbacks.shift()();
|
|
6366
|
+
}
|
|
6367
|
+
},
|
|
6368
|
+
false
|
|
6369
|
+
);
|
|
6315
6370
|
return (cb2) => {
|
|
6316
6371
|
callbacks.push(cb2);
|
|
6317
6372
|
_global.postMessage(token, "*");
|
|
6318
6373
|
};
|
|
6319
6374
|
})(`axios@${Math.random()}`, []) : (cb2) => setTimeout(cb2);
|
|
6320
|
-
})(
|
|
6321
|
-
typeof setImmediate === "function",
|
|
6322
|
-
isFunction(_global.postMessage)
|
|
6323
|
-
);
|
|
6375
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
6324
6376
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
6325
|
-
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
6377
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
6326
6378
|
const utils$1 = {
|
|
6327
6379
|
isArray,
|
|
6328
6380
|
isArrayBuffer,
|
|
@@ -6342,9 +6394,11 @@ const utils$1 = {
|
|
|
6342
6394
|
isUndefined,
|
|
6343
6395
|
isDate,
|
|
6344
6396
|
isFile,
|
|
6397
|
+
isReactNativeBlob,
|
|
6398
|
+
isReactNative,
|
|
6345
6399
|
isBlob,
|
|
6346
6400
|
isRegExp,
|
|
6347
|
-
isFunction,
|
|
6401
|
+
isFunction: isFunction$1,
|
|
6348
6402
|
isStream,
|
|
6349
6403
|
isURLSearchParams,
|
|
6350
6404
|
isTypedArray,
|
|
@@ -6383,25 +6437,420 @@ const utils$1 = {
|
|
|
6383
6437
|
asap,
|
|
6384
6438
|
isIterable
|
|
6385
6439
|
};
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6440
|
+
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
6441
|
+
"age",
|
|
6442
|
+
"authorization",
|
|
6443
|
+
"content-length",
|
|
6444
|
+
"content-type",
|
|
6445
|
+
"etag",
|
|
6446
|
+
"expires",
|
|
6447
|
+
"from",
|
|
6448
|
+
"host",
|
|
6449
|
+
"if-modified-since",
|
|
6450
|
+
"if-unmodified-since",
|
|
6451
|
+
"last-modified",
|
|
6452
|
+
"location",
|
|
6453
|
+
"max-forwards",
|
|
6454
|
+
"proxy-authorization",
|
|
6455
|
+
"referer",
|
|
6456
|
+
"retry-after",
|
|
6457
|
+
"user-agent"
|
|
6458
|
+
]);
|
|
6459
|
+
const parseHeaders = (rawHeaders) => {
|
|
6460
|
+
const parsed = {};
|
|
6461
|
+
let key;
|
|
6462
|
+
let val;
|
|
6463
|
+
let i2;
|
|
6464
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
6465
|
+
i2 = line.indexOf(":");
|
|
6466
|
+
key = line.substring(0, i2).trim().toLowerCase();
|
|
6467
|
+
val = line.substring(i2 + 1).trim();
|
|
6468
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
6469
|
+
return;
|
|
6470
|
+
}
|
|
6471
|
+
if (key === "set-cookie") {
|
|
6472
|
+
if (parsed[key]) {
|
|
6473
|
+
parsed[key].push(val);
|
|
6474
|
+
} else {
|
|
6475
|
+
parsed[key] = [val];
|
|
6476
|
+
}
|
|
6477
|
+
} else {
|
|
6478
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
6479
|
+
}
|
|
6480
|
+
});
|
|
6481
|
+
return parsed;
|
|
6482
|
+
};
|
|
6483
|
+
function trimSPorHTAB(str) {
|
|
6484
|
+
let start = 0;
|
|
6485
|
+
let end = str.length;
|
|
6486
|
+
while (start < end) {
|
|
6487
|
+
const code = str.charCodeAt(start);
|
|
6488
|
+
if (code !== 9 && code !== 32) {
|
|
6489
|
+
break;
|
|
6490
|
+
}
|
|
6491
|
+
start += 1;
|
|
6492
|
+
}
|
|
6493
|
+
while (end > start) {
|
|
6494
|
+
const code = str.charCodeAt(end - 1);
|
|
6495
|
+
if (code !== 9 && code !== 32) {
|
|
6496
|
+
break;
|
|
6497
|
+
}
|
|
6498
|
+
end -= 1;
|
|
6499
|
+
}
|
|
6500
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
6501
|
+
}
|
|
6502
|
+
const INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
|
|
6503
|
+
const INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
6504
|
+
function sanitizeValue(value, invalidChars) {
|
|
6505
|
+
if (utils$1.isArray(value)) {
|
|
6506
|
+
return value.map((item) => sanitizeValue(item, invalidChars));
|
|
6507
|
+
}
|
|
6508
|
+
return trimSPorHTAB(String(value).replace(invalidChars, ""));
|
|
6509
|
+
}
|
|
6510
|
+
const sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
|
|
6511
|
+
const sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
|
|
6512
|
+
function toByteStringHeaderObject(headers) {
|
|
6513
|
+
const byteStringHeaders = /* @__PURE__ */ Object.create(null);
|
|
6514
|
+
utils$1.forEach(headers.toJSON(), (value, header) => {
|
|
6515
|
+
byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
|
|
6516
|
+
});
|
|
6517
|
+
return byteStringHeaders;
|
|
6518
|
+
}
|
|
6519
|
+
const $internals = Symbol("internals");
|
|
6520
|
+
function normalizeHeader(header) {
|
|
6521
|
+
return header && String(header).trim().toLowerCase();
|
|
6522
|
+
}
|
|
6523
|
+
function normalizeValue(value) {
|
|
6524
|
+
if (value === false || value == null) {
|
|
6525
|
+
return value;
|
|
6526
|
+
}
|
|
6527
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
6528
|
+
}
|
|
6529
|
+
function parseTokens(str) {
|
|
6530
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
6531
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
6532
|
+
let match;
|
|
6533
|
+
while (match = tokensRE.exec(str)) {
|
|
6534
|
+
tokens[match[1]] = match[2];
|
|
6535
|
+
}
|
|
6536
|
+
return tokens;
|
|
6537
|
+
}
|
|
6538
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
6539
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
6540
|
+
if (utils$1.isFunction(filter2)) {
|
|
6541
|
+
return filter2.call(this, value, header);
|
|
6542
|
+
}
|
|
6543
|
+
if (isHeaderNameFilter) {
|
|
6544
|
+
value = header;
|
|
6545
|
+
}
|
|
6546
|
+
if (!utils$1.isString(value)) return;
|
|
6547
|
+
if (utils$1.isString(filter2)) {
|
|
6548
|
+
return value.indexOf(filter2) !== -1;
|
|
6392
6549
|
}
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
code && (this.code = code);
|
|
6396
|
-
config && (this.config = config);
|
|
6397
|
-
request && (this.request = request);
|
|
6398
|
-
if (response) {
|
|
6399
|
-
this.response = response;
|
|
6400
|
-
this.status = response.status ? response.status : null;
|
|
6550
|
+
if (utils$1.isRegExp(filter2)) {
|
|
6551
|
+
return filter2.test(value);
|
|
6401
6552
|
}
|
|
6402
6553
|
}
|
|
6403
|
-
|
|
6404
|
-
|
|
6554
|
+
function formatHeader(header) {
|
|
6555
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
|
|
6556
|
+
return char.toUpperCase() + str;
|
|
6557
|
+
});
|
|
6558
|
+
}
|
|
6559
|
+
function buildAccessors(obj, header) {
|
|
6560
|
+
const accessorName = utils$1.toCamelCase(" " + header);
|
|
6561
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
6562
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
6563
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
6564
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
6565
|
+
__proto__: null,
|
|
6566
|
+
value: function(arg1, arg2, arg3) {
|
|
6567
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
6568
|
+
},
|
|
6569
|
+
configurable: true
|
|
6570
|
+
});
|
|
6571
|
+
});
|
|
6572
|
+
}
|
|
6573
|
+
let AxiosHeaders$1 = class AxiosHeaders {
|
|
6574
|
+
constructor(headers) {
|
|
6575
|
+
headers && this.set(headers);
|
|
6576
|
+
}
|
|
6577
|
+
set(header, valueOrRewrite, rewrite) {
|
|
6578
|
+
const self2 = this;
|
|
6579
|
+
function setHeader(_value, _header, _rewrite) {
|
|
6580
|
+
const lHeader = normalizeHeader(_header);
|
|
6581
|
+
if (!lHeader) {
|
|
6582
|
+
throw new Error("header name must be a non-empty string");
|
|
6583
|
+
}
|
|
6584
|
+
const key = utils$1.findKey(self2, lHeader);
|
|
6585
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
6586
|
+
self2[key || _header] = normalizeValue(_value);
|
|
6587
|
+
}
|
|
6588
|
+
}
|
|
6589
|
+
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
6590
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
6591
|
+
setHeaders(header, valueOrRewrite);
|
|
6592
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
6593
|
+
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
6594
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
6595
|
+
let obj = {}, dest, key;
|
|
6596
|
+
for (const entry of header) {
|
|
6597
|
+
if (!utils$1.isArray(entry)) {
|
|
6598
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
6599
|
+
}
|
|
6600
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
6601
|
+
}
|
|
6602
|
+
setHeaders(obj, valueOrRewrite);
|
|
6603
|
+
} else {
|
|
6604
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
6605
|
+
}
|
|
6606
|
+
return this;
|
|
6607
|
+
}
|
|
6608
|
+
get(header, parser) {
|
|
6609
|
+
header = normalizeHeader(header);
|
|
6610
|
+
if (header) {
|
|
6611
|
+
const key = utils$1.findKey(this, header);
|
|
6612
|
+
if (key) {
|
|
6613
|
+
const value = this[key];
|
|
6614
|
+
if (!parser) {
|
|
6615
|
+
return value;
|
|
6616
|
+
}
|
|
6617
|
+
if (parser === true) {
|
|
6618
|
+
return parseTokens(value);
|
|
6619
|
+
}
|
|
6620
|
+
if (utils$1.isFunction(parser)) {
|
|
6621
|
+
return parser.call(this, value, key);
|
|
6622
|
+
}
|
|
6623
|
+
if (utils$1.isRegExp(parser)) {
|
|
6624
|
+
return parser.exec(value);
|
|
6625
|
+
}
|
|
6626
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6629
|
+
}
|
|
6630
|
+
has(header, matcher) {
|
|
6631
|
+
header = normalizeHeader(header);
|
|
6632
|
+
if (header) {
|
|
6633
|
+
const key = utils$1.findKey(this, header);
|
|
6634
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
6635
|
+
}
|
|
6636
|
+
return false;
|
|
6637
|
+
}
|
|
6638
|
+
delete(header, matcher) {
|
|
6639
|
+
const self2 = this;
|
|
6640
|
+
let deleted = false;
|
|
6641
|
+
function deleteHeader(_header) {
|
|
6642
|
+
_header = normalizeHeader(_header);
|
|
6643
|
+
if (_header) {
|
|
6644
|
+
const key = utils$1.findKey(self2, _header);
|
|
6645
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
6646
|
+
delete self2[key];
|
|
6647
|
+
deleted = true;
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6650
|
+
}
|
|
6651
|
+
if (utils$1.isArray(header)) {
|
|
6652
|
+
header.forEach(deleteHeader);
|
|
6653
|
+
} else {
|
|
6654
|
+
deleteHeader(header);
|
|
6655
|
+
}
|
|
6656
|
+
return deleted;
|
|
6657
|
+
}
|
|
6658
|
+
clear(matcher) {
|
|
6659
|
+
const keys = Object.keys(this);
|
|
6660
|
+
let i2 = keys.length;
|
|
6661
|
+
let deleted = false;
|
|
6662
|
+
while (i2--) {
|
|
6663
|
+
const key = keys[i2];
|
|
6664
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
6665
|
+
delete this[key];
|
|
6666
|
+
deleted = true;
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
return deleted;
|
|
6670
|
+
}
|
|
6671
|
+
normalize(format) {
|
|
6672
|
+
const self2 = this;
|
|
6673
|
+
const headers = {};
|
|
6674
|
+
utils$1.forEach(this, (value, header) => {
|
|
6675
|
+
const key = utils$1.findKey(headers, header);
|
|
6676
|
+
if (key) {
|
|
6677
|
+
self2[key] = normalizeValue(value);
|
|
6678
|
+
delete self2[header];
|
|
6679
|
+
return;
|
|
6680
|
+
}
|
|
6681
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
6682
|
+
if (normalized !== header) {
|
|
6683
|
+
delete self2[header];
|
|
6684
|
+
}
|
|
6685
|
+
self2[normalized] = normalizeValue(value);
|
|
6686
|
+
headers[normalized] = true;
|
|
6687
|
+
});
|
|
6688
|
+
return this;
|
|
6689
|
+
}
|
|
6690
|
+
concat(...targets) {
|
|
6691
|
+
return this.constructor.concat(this, ...targets);
|
|
6692
|
+
}
|
|
6693
|
+
toJSON(asStrings) {
|
|
6694
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
6695
|
+
utils$1.forEach(this, (value, header) => {
|
|
6696
|
+
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
6697
|
+
});
|
|
6698
|
+
return obj;
|
|
6699
|
+
}
|
|
6700
|
+
[Symbol.iterator]() {
|
|
6701
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
6702
|
+
}
|
|
6703
|
+
toString() {
|
|
6704
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
6705
|
+
}
|
|
6706
|
+
getSetCookie() {
|
|
6707
|
+
return this.get("set-cookie") || [];
|
|
6708
|
+
}
|
|
6709
|
+
get [Symbol.toStringTag]() {
|
|
6710
|
+
return "AxiosHeaders";
|
|
6711
|
+
}
|
|
6712
|
+
static from(thing) {
|
|
6713
|
+
return thing instanceof this ? thing : new this(thing);
|
|
6714
|
+
}
|
|
6715
|
+
static concat(first, ...targets) {
|
|
6716
|
+
const computed2 = new this(first);
|
|
6717
|
+
targets.forEach((target2) => computed2.set(target2));
|
|
6718
|
+
return computed2;
|
|
6719
|
+
}
|
|
6720
|
+
static accessor(header) {
|
|
6721
|
+
const internals = this[$internals] = this[$internals] = {
|
|
6722
|
+
accessors: {}
|
|
6723
|
+
};
|
|
6724
|
+
const accessors = internals.accessors;
|
|
6725
|
+
const prototype2 = this.prototype;
|
|
6726
|
+
function defineAccessor(_header) {
|
|
6727
|
+
const lHeader = normalizeHeader(_header);
|
|
6728
|
+
if (!accessors[lHeader]) {
|
|
6729
|
+
buildAccessors(prototype2, _header);
|
|
6730
|
+
accessors[lHeader] = true;
|
|
6731
|
+
}
|
|
6732
|
+
}
|
|
6733
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
6734
|
+
return this;
|
|
6735
|
+
}
|
|
6736
|
+
};
|
|
6737
|
+
AxiosHeaders$1.accessor([
|
|
6738
|
+
"Content-Type",
|
|
6739
|
+
"Content-Length",
|
|
6740
|
+
"Accept",
|
|
6741
|
+
"Accept-Encoding",
|
|
6742
|
+
"User-Agent",
|
|
6743
|
+
"Authorization"
|
|
6744
|
+
]);
|
|
6745
|
+
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
6746
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
6747
|
+
return {
|
|
6748
|
+
get: () => value,
|
|
6749
|
+
set(headerValue) {
|
|
6750
|
+
this[mapped] = headerValue;
|
|
6751
|
+
}
|
|
6752
|
+
};
|
|
6753
|
+
});
|
|
6754
|
+
utils$1.freezeMethods(AxiosHeaders$1);
|
|
6755
|
+
const REDACTED = "[REDACTED ****]";
|
|
6756
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
6757
|
+
if (utils$1.hasOwnProp(source, "toJSON")) {
|
|
6758
|
+
return true;
|
|
6759
|
+
}
|
|
6760
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
6761
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
6762
|
+
if (utils$1.hasOwnProp(prototype2, "toJSON")) {
|
|
6763
|
+
return true;
|
|
6764
|
+
}
|
|
6765
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
6766
|
+
}
|
|
6767
|
+
return false;
|
|
6768
|
+
}
|
|
6769
|
+
function redactConfig(config, redactKeys) {
|
|
6770
|
+
const lowerKeys = new Set(redactKeys.map((k2) => String(k2).toLowerCase()));
|
|
6771
|
+
const seen = [];
|
|
6772
|
+
const visit = (source) => {
|
|
6773
|
+
if (source === null || typeof source !== "object") return source;
|
|
6774
|
+
if (utils$1.isBuffer(source)) return source;
|
|
6775
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
6776
|
+
if (source instanceof AxiosHeaders$1) {
|
|
6777
|
+
source = source.toJSON();
|
|
6778
|
+
}
|
|
6779
|
+
seen.push(source);
|
|
6780
|
+
let result;
|
|
6781
|
+
if (utils$1.isArray(source)) {
|
|
6782
|
+
result = [];
|
|
6783
|
+
source.forEach((v2, i2) => {
|
|
6784
|
+
const reducedValue = visit(v2);
|
|
6785
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
6786
|
+
result[i2] = reducedValue;
|
|
6787
|
+
}
|
|
6788
|
+
});
|
|
6789
|
+
} else {
|
|
6790
|
+
if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
6791
|
+
seen.pop();
|
|
6792
|
+
return source;
|
|
6793
|
+
}
|
|
6794
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
6795
|
+
for (const [key, value] of Object.entries(source)) {
|
|
6796
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
6797
|
+
if (!utils$1.isUndefined(reducedValue)) {
|
|
6798
|
+
result[key] = reducedValue;
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
}
|
|
6802
|
+
seen.pop();
|
|
6803
|
+
return result;
|
|
6804
|
+
};
|
|
6805
|
+
return visit(config);
|
|
6806
|
+
}
|
|
6807
|
+
let AxiosError$1 = class AxiosError extends Error {
|
|
6808
|
+
static from(error, code, config, request, response, customProps) {
|
|
6809
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
6810
|
+
axiosError.cause = error;
|
|
6811
|
+
axiosError.name = error.name;
|
|
6812
|
+
if (error.status != null && axiosError.status == null) {
|
|
6813
|
+
axiosError.status = error.status;
|
|
6814
|
+
}
|
|
6815
|
+
customProps && Object.assign(axiosError, customProps);
|
|
6816
|
+
return axiosError;
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
6820
|
+
*
|
|
6821
|
+
* @param {string} message The error message.
|
|
6822
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
6823
|
+
* @param {Object} [config] The config.
|
|
6824
|
+
* @param {Object} [request] The request.
|
|
6825
|
+
* @param {Object} [response] The response.
|
|
6826
|
+
*
|
|
6827
|
+
* @returns {Error} The created error.
|
|
6828
|
+
*/
|
|
6829
|
+
constructor(message, code, config, request, response) {
|
|
6830
|
+
super(message);
|
|
6831
|
+
Object.defineProperty(this, "message", {
|
|
6832
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
6833
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
6834
|
+
__proto__: null,
|
|
6835
|
+
value: message,
|
|
6836
|
+
enumerable: true,
|
|
6837
|
+
writable: true,
|
|
6838
|
+
configurable: true
|
|
6839
|
+
});
|
|
6840
|
+
this.name = "AxiosError";
|
|
6841
|
+
this.isAxiosError = true;
|
|
6842
|
+
code && (this.code = code);
|
|
6843
|
+
config && (this.config = config);
|
|
6844
|
+
request && (this.request = request);
|
|
6845
|
+
if (response) {
|
|
6846
|
+
this.response = response;
|
|
6847
|
+
this.status = response.status;
|
|
6848
|
+
}
|
|
6849
|
+
}
|
|
6850
|
+
toJSON() {
|
|
6851
|
+
const config = this.config;
|
|
6852
|
+
const redactKeys = config && utils$1.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
6853
|
+
const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config);
|
|
6405
6854
|
return {
|
|
6406
6855
|
// Standard
|
|
6407
6856
|
message: this.message,
|
|
@@ -6415,46 +6864,26 @@ utils$1.inherits(AxiosError$1, Error, {
|
|
|
6415
6864
|
columnNumber: this.columnNumber,
|
|
6416
6865
|
stack: this.stack,
|
|
6417
6866
|
// Axios
|
|
6418
|
-
config:
|
|
6867
|
+
config: serializedConfig,
|
|
6419
6868
|
code: this.code,
|
|
6420
6869
|
status: this.status
|
|
6421
6870
|
};
|
|
6422
6871
|
}
|
|
6423
|
-
});
|
|
6424
|
-
const prototype$1 = AxiosError$1.prototype;
|
|
6425
|
-
const descriptors = {};
|
|
6426
|
-
[
|
|
6427
|
-
"ERR_BAD_OPTION_VALUE",
|
|
6428
|
-
"ERR_BAD_OPTION",
|
|
6429
|
-
"ECONNABORTED",
|
|
6430
|
-
"ETIMEDOUT",
|
|
6431
|
-
"ERR_NETWORK",
|
|
6432
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
6433
|
-
"ERR_DEPRECATED",
|
|
6434
|
-
"ERR_BAD_RESPONSE",
|
|
6435
|
-
"ERR_BAD_REQUEST",
|
|
6436
|
-
"ERR_CANCELED",
|
|
6437
|
-
"ERR_NOT_SUPPORT",
|
|
6438
|
-
"ERR_INVALID_URL"
|
|
6439
|
-
// eslint-disable-next-line func-names
|
|
6440
|
-
].forEach((code) => {
|
|
6441
|
-
descriptors[code] = { value: code };
|
|
6442
|
-
});
|
|
6443
|
-
Object.defineProperties(AxiosError$1, descriptors);
|
|
6444
|
-
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
6445
|
-
AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
6446
|
-
const axiosError = Object.create(prototype$1);
|
|
6447
|
-
utils$1.toFlatObject(error, axiosError, function filter2(obj) {
|
|
6448
|
-
return obj !== Error.prototype;
|
|
6449
|
-
}, (prop) => {
|
|
6450
|
-
return prop !== "isAxiosError";
|
|
6451
|
-
});
|
|
6452
|
-
AxiosError$1.call(axiosError, error.message, code, config, request, response);
|
|
6453
|
-
axiosError.cause = error;
|
|
6454
|
-
axiosError.name = error.name;
|
|
6455
|
-
customProps && Object.assign(axiosError, customProps);
|
|
6456
|
-
return axiosError;
|
|
6457
6872
|
};
|
|
6873
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
6874
|
+
AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
6875
|
+
AxiosError$1.ECONNABORTED = "ECONNABORTED";
|
|
6876
|
+
AxiosError$1.ETIMEDOUT = "ETIMEDOUT";
|
|
6877
|
+
AxiosError$1.ECONNREFUSED = "ECONNREFUSED";
|
|
6878
|
+
AxiosError$1.ERR_NETWORK = "ERR_NETWORK";
|
|
6879
|
+
AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
6880
|
+
AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
6881
|
+
AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
6882
|
+
AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
6883
|
+
AxiosError$1.ERR_CANCELED = "ERR_CANCELED";
|
|
6884
|
+
AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
6885
|
+
AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
6886
|
+
AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
6458
6887
|
const httpAdapter = null;
|
|
6459
6888
|
function isVisitable(thing) {
|
|
6460
6889
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
@@ -6480,18 +6909,24 @@ function toFormData$1(obj, formData, options) {
|
|
|
6480
6909
|
throw new TypeError("target must be an object");
|
|
6481
6910
|
}
|
|
6482
6911
|
formData = formData || new FormData();
|
|
6483
|
-
options = utils$1.toFlatObject(
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6912
|
+
options = utils$1.toFlatObject(
|
|
6913
|
+
options,
|
|
6914
|
+
{
|
|
6915
|
+
metaTokens: true,
|
|
6916
|
+
dots: false,
|
|
6917
|
+
indexes: false
|
|
6918
|
+
},
|
|
6919
|
+
false,
|
|
6920
|
+
function defined(option, source) {
|
|
6921
|
+
return !utils$1.isUndefined(source[option]);
|
|
6922
|
+
}
|
|
6923
|
+
);
|
|
6490
6924
|
const metaTokens = options.metaTokens;
|
|
6491
6925
|
const visitor = options.visitor || defaultVisitor;
|
|
6492
6926
|
const dots = options.dots;
|
|
6493
6927
|
const indexes = options.indexes;
|
|
6494
6928
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
6929
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
6495
6930
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
6496
6931
|
if (!utils$1.isFunction(visitor)) {
|
|
6497
6932
|
throw new TypeError("visitor must be a function");
|
|
@@ -6514,6 +6949,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
6514
6949
|
}
|
|
6515
6950
|
function defaultVisitor(value, key, path) {
|
|
6516
6951
|
let arr = value;
|
|
6952
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
6953
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
6954
|
+
return false;
|
|
6955
|
+
}
|
|
6517
6956
|
if (value && !path && typeof value === "object") {
|
|
6518
6957
|
if (utils$1.endsWith(key, "{}")) {
|
|
6519
6958
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -6542,22 +6981,22 @@ function toFormData$1(obj, formData, options) {
|
|
|
6542
6981
|
convertValue,
|
|
6543
6982
|
isVisitable
|
|
6544
6983
|
});
|
|
6545
|
-
function build(value, path) {
|
|
6984
|
+
function build(value, path, depth = 0) {
|
|
6546
6985
|
if (utils$1.isUndefined(value)) return;
|
|
6986
|
+
if (depth > maxDepth) {
|
|
6987
|
+
throw new AxiosError$1(
|
|
6988
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
6989
|
+
AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
6990
|
+
);
|
|
6991
|
+
}
|
|
6547
6992
|
if (stack.indexOf(value) !== -1) {
|
|
6548
6993
|
throw Error("Circular reference detected in " + path.join("."));
|
|
6549
6994
|
}
|
|
6550
6995
|
stack.push(value);
|
|
6551
6996
|
utils$1.forEach(value, function each(el2, key) {
|
|
6552
|
-
const result = !(utils$1.isUndefined(el2) || el2 === null) && visitor.call(
|
|
6553
|
-
formData,
|
|
6554
|
-
el2,
|
|
6555
|
-
utils$1.isString(key) ? key.trim() : key,
|
|
6556
|
-
path,
|
|
6557
|
-
exposedHelpers
|
|
6558
|
-
);
|
|
6997
|
+
const result = !(utils$1.isUndefined(el2) || el2 === null) && visitor.call(formData, el2, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
6559
6998
|
if (result === true) {
|
|
6560
|
-
build(el2, path ? path.concat(key) : [key]);
|
|
6999
|
+
build(el2, path ? path.concat(key) : [key], depth + 1);
|
|
6561
7000
|
}
|
|
6562
7001
|
});
|
|
6563
7002
|
stack.pop();
|
|
@@ -6575,10 +7014,9 @@ function encode$1(str) {
|
|
|
6575
7014
|
"(": "%28",
|
|
6576
7015
|
")": "%29",
|
|
6577
7016
|
"~": "%7E",
|
|
6578
|
-
"%20": "+"
|
|
6579
|
-
"%00": "\0"
|
|
7017
|
+
"%20": "+"
|
|
6580
7018
|
};
|
|
6581
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
7019
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
6582
7020
|
return charMap[match];
|
|
6583
7021
|
});
|
|
6584
7022
|
}
|
|
@@ -6599,24 +7037,22 @@ prototype.toString = function toString2(encoder) {
|
|
|
6599
7037
|
}, "").join("&");
|
|
6600
7038
|
};
|
|
6601
7039
|
function encode(val) {
|
|
6602
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
7040
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
6603
7041
|
}
|
|
6604
7042
|
function buildURL(url, params, options) {
|
|
6605
7043
|
if (!params) {
|
|
6606
7044
|
return url;
|
|
6607
7045
|
}
|
|
6608
7046
|
const _encode = options && options.encode || encode;
|
|
6609
|
-
|
|
6610
|
-
options
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
}
|
|
6614
|
-
const serializeFn = options && options.serialize;
|
|
7047
|
+
const _options = utils$1.isFunction(options) ? {
|
|
7048
|
+
serialize: options
|
|
7049
|
+
} : options;
|
|
7050
|
+
const serializeFn = _options && _options.serialize;
|
|
6615
7051
|
let serializedParams;
|
|
6616
7052
|
if (serializeFn) {
|
|
6617
|
-
serializedParams = serializeFn(params,
|
|
7053
|
+
serializedParams = serializeFn(params, _options);
|
|
6618
7054
|
} else {
|
|
6619
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params,
|
|
7055
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
6620
7056
|
}
|
|
6621
7057
|
if (serializedParams) {
|
|
6622
7058
|
const hashmarkIndex = url.indexOf("#");
|
|
@@ -6636,6 +7072,7 @@ class InterceptorManager {
|
|
|
6636
7072
|
*
|
|
6637
7073
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
6638
7074
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
7075
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
6639
7076
|
*
|
|
6640
7077
|
* @return {Number} An ID used to remove interceptor later
|
|
6641
7078
|
*/
|
|
@@ -6653,7 +7090,7 @@ class InterceptorManager {
|
|
|
6653
7090
|
*
|
|
6654
7091
|
* @param {Number} id The ID that was returned by `use`
|
|
6655
7092
|
*
|
|
6656
|
-
* @returns {
|
|
7093
|
+
* @returns {void}
|
|
6657
7094
|
*/
|
|
6658
7095
|
eject(id) {
|
|
6659
7096
|
if (this.handlers[id]) {
|
|
@@ -6691,7 +7128,8 @@ class InterceptorManager {
|
|
|
6691
7128
|
const transitionalDefaults = {
|
|
6692
7129
|
silentJSONParsing: true,
|
|
6693
7130
|
forcedJSONParsing: true,
|
|
6694
|
-
clarifyTimeoutError: false
|
|
7131
|
+
clarifyTimeoutError: false,
|
|
7132
|
+
legacyInterceptorReqResOrdering: true
|
|
6695
7133
|
};
|
|
6696
7134
|
const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
6697
7135
|
const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
@@ -6763,13 +7201,13 @@ function formDataToJSON(formData) {
|
|
|
6763
7201
|
name2 = !name2 && utils$1.isArray(target2) ? target2.length : name2;
|
|
6764
7202
|
if (isLast) {
|
|
6765
7203
|
if (utils$1.hasOwnProp(target2, name2)) {
|
|
6766
|
-
target2[name2] = [target2[name2], value];
|
|
7204
|
+
target2[name2] = utils$1.isArray(target2[name2]) ? target2[name2].concat(value) : [target2[name2], value];
|
|
6767
7205
|
} else {
|
|
6768
7206
|
target2[name2] = value;
|
|
6769
7207
|
}
|
|
6770
7208
|
return !isNumericKey;
|
|
6771
7209
|
}
|
|
6772
|
-
if (!target2
|
|
7210
|
+
if (!utils$1.hasOwnProp(target2, name2) || !utils$1.isObject(target2[name2])) {
|
|
6773
7211
|
target2[name2] = [];
|
|
6774
7212
|
}
|
|
6775
7213
|
const result = buildPath(path, value, target2[name2], index);
|
|
@@ -6787,6 +7225,7 @@ function formDataToJSON(formData) {
|
|
|
6787
7225
|
}
|
|
6788
7226
|
return null;
|
|
6789
7227
|
}
|
|
7228
|
+
const own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
6790
7229
|
function stringifySafely(rawValue, parser, encoder) {
|
|
6791
7230
|
if (utils$1.isString(rawValue)) {
|
|
6792
7231
|
try {
|
|
@@ -6803,70 +7242,77 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
6803
7242
|
const defaults = {
|
|
6804
7243
|
transitional: transitionalDefaults,
|
|
6805
7244
|
adapter: ["xhr", "http", "fetch"],
|
|
6806
|
-
transformRequest: [
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
if (
|
|
6830
|
-
|
|
7245
|
+
transformRequest: [
|
|
7246
|
+
function transformRequest(data, headers) {
|
|
7247
|
+
const contentType = headers.getContentType() || "";
|
|
7248
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
7249
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
7250
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
7251
|
+
data = new FormData(data);
|
|
7252
|
+
}
|
|
7253
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
7254
|
+
if (isFormData2) {
|
|
7255
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
7256
|
+
}
|
|
7257
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
7258
|
+
return data;
|
|
7259
|
+
}
|
|
7260
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
7261
|
+
return data.buffer;
|
|
7262
|
+
}
|
|
7263
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
7264
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
7265
|
+
return data.toString();
|
|
7266
|
+
}
|
|
7267
|
+
let isFileList2;
|
|
7268
|
+
if (isObjectPayload) {
|
|
7269
|
+
const formSerializer = own(this, "formSerializer");
|
|
7270
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
7271
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
7272
|
+
}
|
|
7273
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
7274
|
+
const env = own(this, "env");
|
|
7275
|
+
const _FormData = env && env.FormData;
|
|
7276
|
+
return toFormData$1(
|
|
7277
|
+
isFileList2 ? { "files[]": data } : data,
|
|
7278
|
+
_FormData && new _FormData(),
|
|
7279
|
+
formSerializer
|
|
7280
|
+
);
|
|
7281
|
+
}
|
|
6831
7282
|
}
|
|
6832
|
-
if (
|
|
6833
|
-
|
|
6834
|
-
return
|
|
6835
|
-
isFileList2 ? { "files[]": data } : data,
|
|
6836
|
-
_FormData && new _FormData(),
|
|
6837
|
-
this.formSerializer
|
|
6838
|
-
);
|
|
7283
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
7284
|
+
headers.setContentType("application/json", false);
|
|
7285
|
+
return stringifySafely(data);
|
|
6839
7286
|
}
|
|
6840
|
-
}
|
|
6841
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
6842
|
-
headers.setContentType("application/json", false);
|
|
6843
|
-
return stringifySafely(data);
|
|
6844
|
-
}
|
|
6845
|
-
return data;
|
|
6846
|
-
}],
|
|
6847
|
-
transformResponse: [function transformResponse(data) {
|
|
6848
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
6849
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
6850
|
-
const JSONRequested = this.responseType === "json";
|
|
6851
|
-
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
6852
7287
|
return data;
|
|
6853
7288
|
}
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
7289
|
+
],
|
|
7290
|
+
transformResponse: [
|
|
7291
|
+
function transformResponse(data) {
|
|
7292
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
7293
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
7294
|
+
const responseType = own(this, "responseType");
|
|
7295
|
+
const JSONRequested = responseType === "json";
|
|
7296
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
7297
|
+
return data;
|
|
7298
|
+
}
|
|
7299
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
7300
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
7301
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
7302
|
+
try {
|
|
7303
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
7304
|
+
} catch (e2) {
|
|
7305
|
+
if (strictJSONParsing) {
|
|
7306
|
+
if (e2.name === "SyntaxError") {
|
|
7307
|
+
throw AxiosError$1.from(e2, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
7308
|
+
}
|
|
7309
|
+
throw e2;
|
|
6863
7310
|
}
|
|
6864
|
-
throw e2;
|
|
6865
7311
|
}
|
|
6866
7312
|
}
|
|
7313
|
+
return data;
|
|
6867
7314
|
}
|
|
6868
|
-
|
|
6869
|
-
}],
|
|
7315
|
+
],
|
|
6870
7316
|
/**
|
|
6871
7317
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
6872
7318
|
* timeout is not created.
|
|
@@ -6885,283 +7331,14 @@ const defaults = {
|
|
|
6885
7331
|
},
|
|
6886
7332
|
headers: {
|
|
6887
7333
|
common: {
|
|
6888
|
-
|
|
7334
|
+
Accept: "application/json, text/plain, */*",
|
|
6889
7335
|
"Content-Type": void 0
|
|
6890
7336
|
}
|
|
6891
7337
|
}
|
|
6892
7338
|
};
|
|
6893
|
-
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
7339
|
+
utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
6894
7340
|
defaults.headers[method] = {};
|
|
6895
7341
|
});
|
|
6896
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
6897
|
-
"age",
|
|
6898
|
-
"authorization",
|
|
6899
|
-
"content-length",
|
|
6900
|
-
"content-type",
|
|
6901
|
-
"etag",
|
|
6902
|
-
"expires",
|
|
6903
|
-
"from",
|
|
6904
|
-
"host",
|
|
6905
|
-
"if-modified-since",
|
|
6906
|
-
"if-unmodified-since",
|
|
6907
|
-
"last-modified",
|
|
6908
|
-
"location",
|
|
6909
|
-
"max-forwards",
|
|
6910
|
-
"proxy-authorization",
|
|
6911
|
-
"referer",
|
|
6912
|
-
"retry-after",
|
|
6913
|
-
"user-agent"
|
|
6914
|
-
]);
|
|
6915
|
-
const parseHeaders = (rawHeaders) => {
|
|
6916
|
-
const parsed = {};
|
|
6917
|
-
let key;
|
|
6918
|
-
let val;
|
|
6919
|
-
let i2;
|
|
6920
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
6921
|
-
i2 = line.indexOf(":");
|
|
6922
|
-
key = line.substring(0, i2).trim().toLowerCase();
|
|
6923
|
-
val = line.substring(i2 + 1).trim();
|
|
6924
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
6925
|
-
return;
|
|
6926
|
-
}
|
|
6927
|
-
if (key === "set-cookie") {
|
|
6928
|
-
if (parsed[key]) {
|
|
6929
|
-
parsed[key].push(val);
|
|
6930
|
-
} else {
|
|
6931
|
-
parsed[key] = [val];
|
|
6932
|
-
}
|
|
6933
|
-
} else {
|
|
6934
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
6935
|
-
}
|
|
6936
|
-
});
|
|
6937
|
-
return parsed;
|
|
6938
|
-
};
|
|
6939
|
-
const $internals = Symbol("internals");
|
|
6940
|
-
function normalizeHeader(header) {
|
|
6941
|
-
return header && String(header).trim().toLowerCase();
|
|
6942
|
-
}
|
|
6943
|
-
function normalizeValue(value) {
|
|
6944
|
-
if (value === false || value == null) {
|
|
6945
|
-
return value;
|
|
6946
|
-
}
|
|
6947
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
6948
|
-
}
|
|
6949
|
-
function parseTokens(str) {
|
|
6950
|
-
const tokens = /* @__PURE__ */ Object.create(null);
|
|
6951
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
6952
|
-
let match;
|
|
6953
|
-
while (match = tokensRE.exec(str)) {
|
|
6954
|
-
tokens[match[1]] = match[2];
|
|
6955
|
-
}
|
|
6956
|
-
return tokens;
|
|
6957
|
-
}
|
|
6958
|
-
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
6959
|
-
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
6960
|
-
if (utils$1.isFunction(filter2)) {
|
|
6961
|
-
return filter2.call(this, value, header);
|
|
6962
|
-
}
|
|
6963
|
-
if (isHeaderNameFilter) {
|
|
6964
|
-
value = header;
|
|
6965
|
-
}
|
|
6966
|
-
if (!utils$1.isString(value)) return;
|
|
6967
|
-
if (utils$1.isString(filter2)) {
|
|
6968
|
-
return value.indexOf(filter2) !== -1;
|
|
6969
|
-
}
|
|
6970
|
-
if (utils$1.isRegExp(filter2)) {
|
|
6971
|
-
return filter2.test(value);
|
|
6972
|
-
}
|
|
6973
|
-
}
|
|
6974
|
-
function formatHeader(header) {
|
|
6975
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
|
|
6976
|
-
return char.toUpperCase() + str;
|
|
6977
|
-
});
|
|
6978
|
-
}
|
|
6979
|
-
function buildAccessors(obj, header) {
|
|
6980
|
-
const accessorName = utils$1.toCamelCase(" " + header);
|
|
6981
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
6982
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
6983
|
-
value: function(arg1, arg2, arg3) {
|
|
6984
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
6985
|
-
},
|
|
6986
|
-
configurable: true
|
|
6987
|
-
});
|
|
6988
|
-
});
|
|
6989
|
-
}
|
|
6990
|
-
let AxiosHeaders$1 = class AxiosHeaders {
|
|
6991
|
-
constructor(headers) {
|
|
6992
|
-
headers && this.set(headers);
|
|
6993
|
-
}
|
|
6994
|
-
set(header, valueOrRewrite, rewrite) {
|
|
6995
|
-
const self2 = this;
|
|
6996
|
-
function setHeader(_value, _header, _rewrite) {
|
|
6997
|
-
const lHeader = normalizeHeader(_header);
|
|
6998
|
-
if (!lHeader) {
|
|
6999
|
-
throw new Error("header name must be a non-empty string");
|
|
7000
|
-
}
|
|
7001
|
-
const key = utils$1.findKey(self2, lHeader);
|
|
7002
|
-
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
7003
|
-
self2[key || _header] = normalizeValue(_value);
|
|
7004
|
-
}
|
|
7005
|
-
}
|
|
7006
|
-
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
7007
|
-
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
7008
|
-
setHeaders(header, valueOrRewrite);
|
|
7009
|
-
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
7010
|
-
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
7011
|
-
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
7012
|
-
let obj = {}, dest, key;
|
|
7013
|
-
for (const entry of header) {
|
|
7014
|
-
if (!utils$1.isArray(entry)) {
|
|
7015
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
7016
|
-
}
|
|
7017
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
7018
|
-
}
|
|
7019
|
-
setHeaders(obj, valueOrRewrite);
|
|
7020
|
-
} else {
|
|
7021
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
7022
|
-
}
|
|
7023
|
-
return this;
|
|
7024
|
-
}
|
|
7025
|
-
get(header, parser) {
|
|
7026
|
-
header = normalizeHeader(header);
|
|
7027
|
-
if (header) {
|
|
7028
|
-
const key = utils$1.findKey(this, header);
|
|
7029
|
-
if (key) {
|
|
7030
|
-
const value = this[key];
|
|
7031
|
-
if (!parser) {
|
|
7032
|
-
return value;
|
|
7033
|
-
}
|
|
7034
|
-
if (parser === true) {
|
|
7035
|
-
return parseTokens(value);
|
|
7036
|
-
}
|
|
7037
|
-
if (utils$1.isFunction(parser)) {
|
|
7038
|
-
return parser.call(this, value, key);
|
|
7039
|
-
}
|
|
7040
|
-
if (utils$1.isRegExp(parser)) {
|
|
7041
|
-
return parser.exec(value);
|
|
7042
|
-
}
|
|
7043
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
7044
|
-
}
|
|
7045
|
-
}
|
|
7046
|
-
}
|
|
7047
|
-
has(header, matcher) {
|
|
7048
|
-
header = normalizeHeader(header);
|
|
7049
|
-
if (header) {
|
|
7050
|
-
const key = utils$1.findKey(this, header);
|
|
7051
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
7052
|
-
}
|
|
7053
|
-
return false;
|
|
7054
|
-
}
|
|
7055
|
-
delete(header, matcher) {
|
|
7056
|
-
const self2 = this;
|
|
7057
|
-
let deleted = false;
|
|
7058
|
-
function deleteHeader(_header) {
|
|
7059
|
-
_header = normalizeHeader(_header);
|
|
7060
|
-
if (_header) {
|
|
7061
|
-
const key = utils$1.findKey(self2, _header);
|
|
7062
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
7063
|
-
delete self2[key];
|
|
7064
|
-
deleted = true;
|
|
7065
|
-
}
|
|
7066
|
-
}
|
|
7067
|
-
}
|
|
7068
|
-
if (utils$1.isArray(header)) {
|
|
7069
|
-
header.forEach(deleteHeader);
|
|
7070
|
-
} else {
|
|
7071
|
-
deleteHeader(header);
|
|
7072
|
-
}
|
|
7073
|
-
return deleted;
|
|
7074
|
-
}
|
|
7075
|
-
clear(matcher) {
|
|
7076
|
-
const keys = Object.keys(this);
|
|
7077
|
-
let i2 = keys.length;
|
|
7078
|
-
let deleted = false;
|
|
7079
|
-
while (i2--) {
|
|
7080
|
-
const key = keys[i2];
|
|
7081
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
7082
|
-
delete this[key];
|
|
7083
|
-
deleted = true;
|
|
7084
|
-
}
|
|
7085
|
-
}
|
|
7086
|
-
return deleted;
|
|
7087
|
-
}
|
|
7088
|
-
normalize(format) {
|
|
7089
|
-
const self2 = this;
|
|
7090
|
-
const headers = {};
|
|
7091
|
-
utils$1.forEach(this, (value, header) => {
|
|
7092
|
-
const key = utils$1.findKey(headers, header);
|
|
7093
|
-
if (key) {
|
|
7094
|
-
self2[key] = normalizeValue(value);
|
|
7095
|
-
delete self2[header];
|
|
7096
|
-
return;
|
|
7097
|
-
}
|
|
7098
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
7099
|
-
if (normalized !== header) {
|
|
7100
|
-
delete self2[header];
|
|
7101
|
-
}
|
|
7102
|
-
self2[normalized] = normalizeValue(value);
|
|
7103
|
-
headers[normalized] = true;
|
|
7104
|
-
});
|
|
7105
|
-
return this;
|
|
7106
|
-
}
|
|
7107
|
-
concat(...targets) {
|
|
7108
|
-
return this.constructor.concat(this, ...targets);
|
|
7109
|
-
}
|
|
7110
|
-
toJSON(asStrings) {
|
|
7111
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
7112
|
-
utils$1.forEach(this, (value, header) => {
|
|
7113
|
-
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
7114
|
-
});
|
|
7115
|
-
return obj;
|
|
7116
|
-
}
|
|
7117
|
-
[Symbol.iterator]() {
|
|
7118
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
7119
|
-
}
|
|
7120
|
-
toString() {
|
|
7121
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
7122
|
-
}
|
|
7123
|
-
getSetCookie() {
|
|
7124
|
-
return this.get("set-cookie") || [];
|
|
7125
|
-
}
|
|
7126
|
-
get [Symbol.toStringTag]() {
|
|
7127
|
-
return "AxiosHeaders";
|
|
7128
|
-
}
|
|
7129
|
-
static from(thing) {
|
|
7130
|
-
return thing instanceof this ? thing : new this(thing);
|
|
7131
|
-
}
|
|
7132
|
-
static concat(first, ...targets) {
|
|
7133
|
-
const computed2 = new this(first);
|
|
7134
|
-
targets.forEach((target2) => computed2.set(target2));
|
|
7135
|
-
return computed2;
|
|
7136
|
-
}
|
|
7137
|
-
static accessor(header) {
|
|
7138
|
-
const internals = this[$internals] = this[$internals] = {
|
|
7139
|
-
accessors: {}
|
|
7140
|
-
};
|
|
7141
|
-
const accessors = internals.accessors;
|
|
7142
|
-
const prototype2 = this.prototype;
|
|
7143
|
-
function defineAccessor(_header) {
|
|
7144
|
-
const lHeader = normalizeHeader(_header);
|
|
7145
|
-
if (!accessors[lHeader]) {
|
|
7146
|
-
buildAccessors(prototype2, _header);
|
|
7147
|
-
accessors[lHeader] = true;
|
|
7148
|
-
}
|
|
7149
|
-
}
|
|
7150
|
-
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
7151
|
-
return this;
|
|
7152
|
-
}
|
|
7153
|
-
};
|
|
7154
|
-
AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
7155
|
-
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
7156
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
7157
|
-
return {
|
|
7158
|
-
get: () => value,
|
|
7159
|
-
set(headerValue) {
|
|
7160
|
-
this[mapped] = headerValue;
|
|
7161
|
-
}
|
|
7162
|
-
};
|
|
7163
|
-
});
|
|
7164
|
-
utils$1.freezeMethods(AxiosHeaders$1);
|
|
7165
7342
|
function transformData(fns, response) {
|
|
7166
7343
|
const config = this || defaults;
|
|
7167
7344
|
const context = response || config;
|
|
@@ -7176,13 +7353,22 @@ function transformData(fns, response) {
|
|
|
7176
7353
|
function isCancel$1(value) {
|
|
7177
7354
|
return !!(value && value.__CANCEL__);
|
|
7178
7355
|
}
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
}
|
|
7356
|
+
let CanceledError$1 = class CanceledError extends AxiosError$1 {
|
|
7357
|
+
/**
|
|
7358
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
7359
|
+
*
|
|
7360
|
+
* @param {string=} message The message.
|
|
7361
|
+
* @param {Object=} config The config.
|
|
7362
|
+
* @param {Object=} request The request.
|
|
7363
|
+
*
|
|
7364
|
+
* @returns {CanceledError} The created error.
|
|
7365
|
+
*/
|
|
7366
|
+
constructor(message, config, request) {
|
|
7367
|
+
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
7368
|
+
this.name = "CanceledError";
|
|
7369
|
+
this.__CANCEL__ = true;
|
|
7370
|
+
}
|
|
7371
|
+
};
|
|
7186
7372
|
function settle(resolve, reject, response) {
|
|
7187
7373
|
const validateStatus2 = response.config.validateStatus;
|
|
7188
7374
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -7190,7 +7376,7 @@ function settle(resolve, reject, response) {
|
|
|
7190
7376
|
} else {
|
|
7191
7377
|
reject(new AxiosError$1(
|
|
7192
7378
|
"Request failed with status code " + response.status,
|
|
7193
|
-
|
|
7379
|
+
response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE,
|
|
7194
7380
|
response.config,
|
|
7195
7381
|
response.request,
|
|
7196
7382
|
response
|
|
@@ -7198,7 +7384,7 @@ function settle(resolve, reject, response) {
|
|
|
7198
7384
|
}
|
|
7199
7385
|
}
|
|
7200
7386
|
function parseProtocol(url) {
|
|
7201
|
-
const match = /^([-+\w]{1,25})(
|
|
7387
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
7202
7388
|
return match && match[1] || "";
|
|
7203
7389
|
}
|
|
7204
7390
|
function speedometer(samplesCount, min) {
|
|
@@ -7270,19 +7456,22 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
7270
7456
|
let bytesNotified = 0;
|
|
7271
7457
|
const _speedometer = speedometer(50, 250);
|
|
7272
7458
|
return throttle((e2) => {
|
|
7273
|
-
|
|
7459
|
+
if (!e2 || typeof e2.loaded !== "number") {
|
|
7460
|
+
return;
|
|
7461
|
+
}
|
|
7462
|
+
const rawLoaded = e2.loaded;
|
|
7274
7463
|
const total = e2.lengthComputable ? e2.total : void 0;
|
|
7275
|
-
const
|
|
7464
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
7465
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
7276
7466
|
const rate = _speedometer(progressBytes);
|
|
7277
|
-
|
|
7278
|
-
bytesNotified = loaded;
|
|
7467
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
7279
7468
|
const data = {
|
|
7280
7469
|
loaded,
|
|
7281
7470
|
total,
|
|
7282
7471
|
progress: total ? loaded / total : void 0,
|
|
7283
7472
|
bytes: progressBytes,
|
|
7284
7473
|
rate: rate ? rate : void 0,
|
|
7285
|
-
estimated: rate && total
|
|
7474
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
7286
7475
|
event: e2,
|
|
7287
7476
|
lengthComputable: total != null,
|
|
7288
7477
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -7292,11 +7481,14 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
7292
7481
|
};
|
|
7293
7482
|
const progressEventDecorator = (total, throttled) => {
|
|
7294
7483
|
const lengthComputable = total != null;
|
|
7295
|
-
return [
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7484
|
+
return [
|
|
7485
|
+
(loaded) => throttled[0]({
|
|
7486
|
+
lengthComputable,
|
|
7487
|
+
total,
|
|
7488
|
+
loaded
|
|
7489
|
+
}),
|
|
7490
|
+
throttled[1]
|
|
7491
|
+
];
|
|
7300
7492
|
};
|
|
7301
7493
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
7302
7494
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
|
|
@@ -7309,20 +7501,40 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origi
|
|
|
7309
7501
|
const cookies = platform.hasStandardBrowserEnv ? (
|
|
7310
7502
|
// Standard browser envs support document.cookie
|
|
7311
7503
|
{
|
|
7312
|
-
write(name2, value, expires, path, domain, secure) {
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
utils$1.
|
|
7316
|
-
|
|
7317
|
-
|
|
7504
|
+
write(name2, value, expires, path, domain, secure, sameSite) {
|
|
7505
|
+
if (typeof document === "undefined") return;
|
|
7506
|
+
const cookie = [`${name2}=${encodeURIComponent(value)}`];
|
|
7507
|
+
if (utils$1.isNumber(expires)) {
|
|
7508
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
7509
|
+
}
|
|
7510
|
+
if (utils$1.isString(path)) {
|
|
7511
|
+
cookie.push(`path=${path}`);
|
|
7512
|
+
}
|
|
7513
|
+
if (utils$1.isString(domain)) {
|
|
7514
|
+
cookie.push(`domain=${domain}`);
|
|
7515
|
+
}
|
|
7516
|
+
if (secure === true) {
|
|
7517
|
+
cookie.push("secure");
|
|
7518
|
+
}
|
|
7519
|
+
if (utils$1.isString(sameSite)) {
|
|
7520
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
7521
|
+
}
|
|
7318
7522
|
document.cookie = cookie.join("; ");
|
|
7319
7523
|
},
|
|
7320
7524
|
read(name2) {
|
|
7321
|
-
|
|
7322
|
-
|
|
7525
|
+
if (typeof document === "undefined") return null;
|
|
7526
|
+
const cookies2 = document.cookie.split(";");
|
|
7527
|
+
for (let i2 = 0; i2 < cookies2.length; i2++) {
|
|
7528
|
+
const cookie = cookies2[i2].replace(/^\s+/, "");
|
|
7529
|
+
const eq = cookie.indexOf("=");
|
|
7530
|
+
if (eq !== -1 && cookie.slice(0, eq) === name2) {
|
|
7531
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
7532
|
+
}
|
|
7533
|
+
}
|
|
7534
|
+
return null;
|
|
7323
7535
|
},
|
|
7324
7536
|
remove(name2) {
|
|
7325
|
-
this.write(name2, "", Date.now() - 864e5);
|
|
7537
|
+
this.write(name2, "", Date.now() - 864e5, "/");
|
|
7326
7538
|
}
|
|
7327
7539
|
}
|
|
7328
7540
|
) : (
|
|
@@ -7338,6 +7550,9 @@ const cookies = platform.hasStandardBrowserEnv ? (
|
|
|
7338
7550
|
}
|
|
7339
7551
|
);
|
|
7340
7552
|
function isAbsoluteURL(url) {
|
|
7553
|
+
if (typeof url !== "string") {
|
|
7554
|
+
return false;
|
|
7555
|
+
}
|
|
7341
7556
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
7342
7557
|
}
|
|
7343
7558
|
function combineURLs(baseURL, relativeURL) {
|
|
@@ -7345,7 +7560,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
7345
7560
|
}
|
|
7346
7561
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
7347
7562
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
7348
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
7563
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
7349
7564
|
return combineURLs(baseURL, requestedURL);
|
|
7350
7565
|
}
|
|
7351
7566
|
return requestedURL;
|
|
@@ -7353,7 +7568,16 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
7353
7568
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
7354
7569
|
function mergeConfig$1(config1, config2) {
|
|
7355
7570
|
config2 = config2 || {};
|
|
7356
|
-
const config =
|
|
7571
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
7572
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
7573
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
7574
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
7575
|
+
__proto__: null,
|
|
7576
|
+
value: Object.prototype.hasOwnProperty,
|
|
7577
|
+
enumerable: false,
|
|
7578
|
+
writable: true,
|
|
7579
|
+
configurable: true
|
|
7580
|
+
});
|
|
7357
7581
|
function getMergedValue(target2, source, prop, caseless) {
|
|
7358
7582
|
if (utils$1.isPlainObject(target2) && utils$1.isPlainObject(source)) {
|
|
7359
7583
|
return utils$1.merge.call({ caseless }, target2, source);
|
|
@@ -7384,9 +7608,9 @@ function mergeConfig$1(config1, config2) {
|
|
|
7384
7608
|
}
|
|
7385
7609
|
}
|
|
7386
7610
|
function mergeDirectKeys(a2, b2, prop) {
|
|
7387
|
-
if (prop
|
|
7611
|
+
if (utils$1.hasOwnProp(config2, prop)) {
|
|
7388
7612
|
return getMergedValue(a2, b2);
|
|
7389
|
-
} else if (prop
|
|
7613
|
+
} else if (utils$1.hasOwnProp(config1, prop)) {
|
|
7390
7614
|
return getMergedValue(void 0, a2);
|
|
7391
7615
|
}
|
|
7392
7616
|
}
|
|
@@ -7417,40 +7641,74 @@ function mergeConfig$1(config1, config2) {
|
|
|
7417
7641
|
httpsAgent: defaultToConfig2,
|
|
7418
7642
|
cancelToken: defaultToConfig2,
|
|
7419
7643
|
socketPath: defaultToConfig2,
|
|
7644
|
+
allowedSocketPaths: defaultToConfig2,
|
|
7420
7645
|
responseEncoding: defaultToConfig2,
|
|
7421
7646
|
validateStatus: mergeDirectKeys,
|
|
7422
7647
|
headers: (a2, b2, prop) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), prop, true)
|
|
7423
7648
|
};
|
|
7424
7649
|
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
7425
|
-
|
|
7426
|
-
const
|
|
7650
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
7651
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
7652
|
+
const a2 = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
7653
|
+
const b2 = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
7654
|
+
const configValue = merge2(a2, b2, prop);
|
|
7427
7655
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
7428
7656
|
});
|
|
7429
7657
|
return config;
|
|
7430
7658
|
}
|
|
7659
|
+
const FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
7660
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
7661
|
+
if (policy !== "content-only") {
|
|
7662
|
+
headers.set(formHeaders);
|
|
7663
|
+
return;
|
|
7664
|
+
}
|
|
7665
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
7666
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
7667
|
+
headers.set(key, val);
|
|
7668
|
+
}
|
|
7669
|
+
});
|
|
7670
|
+
}
|
|
7671
|
+
const encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
7672
|
+
/%([0-9A-F]{2})/gi,
|
|
7673
|
+
(_2, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
7674
|
+
);
|
|
7431
7675
|
const resolveConfig = (config) => {
|
|
7432
7676
|
const newConfig = mergeConfig$1({}, config);
|
|
7433
|
-
|
|
7677
|
+
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
7678
|
+
const data = own2("data");
|
|
7679
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
7680
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
7681
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
7682
|
+
let headers = own2("headers");
|
|
7683
|
+
const auth = own2("auth");
|
|
7684
|
+
const baseURL = own2("baseURL");
|
|
7685
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
7686
|
+
const url = own2("url");
|
|
7434
7687
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
7435
|
-
newConfig.url = buildURL(
|
|
7688
|
+
newConfig.url = buildURL(
|
|
7689
|
+
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
7690
|
+
config.params,
|
|
7691
|
+
config.paramsSerializer
|
|
7692
|
+
);
|
|
7436
7693
|
if (auth) {
|
|
7437
7694
|
headers.set(
|
|
7438
7695
|
"Authorization",
|
|
7439
|
-
"Basic " + btoa((auth.username || "") + ":" + (auth.password ?
|
|
7696
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
7440
7697
|
);
|
|
7441
7698
|
}
|
|
7442
|
-
let contentType;
|
|
7443
7699
|
if (utils$1.isFormData(data)) {
|
|
7444
7700
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
7445
7701
|
headers.setContentType(void 0);
|
|
7446
|
-
} else if ((
|
|
7447
|
-
|
|
7448
|
-
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
7702
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
7703
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
7449
7704
|
}
|
|
7450
7705
|
}
|
|
7451
7706
|
if (platform.hasStandardBrowserEnv) {
|
|
7452
|
-
|
|
7453
|
-
|
|
7707
|
+
if (utils$1.isFunction(withXSRFToken)) {
|
|
7708
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
7709
|
+
}
|
|
7710
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url);
|
|
7711
|
+
if (shouldSendXSRF) {
|
|
7454
7712
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
7455
7713
|
if (xsrfValue) {
|
|
7456
7714
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -7494,13 +7752,17 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7494
7752
|
config,
|
|
7495
7753
|
request
|
|
7496
7754
|
};
|
|
7497
|
-
settle(
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7755
|
+
settle(
|
|
7756
|
+
function _resolve(value) {
|
|
7757
|
+
resolve(value);
|
|
7758
|
+
done();
|
|
7759
|
+
},
|
|
7760
|
+
function _reject(err) {
|
|
7761
|
+
reject(err);
|
|
7762
|
+
done();
|
|
7763
|
+
},
|
|
7764
|
+
response
|
|
7765
|
+
);
|
|
7504
7766
|
request = null;
|
|
7505
7767
|
}
|
|
7506
7768
|
if ("onloadend" in request) {
|
|
@@ -7510,7 +7772,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7510
7772
|
if (!request || request.readyState !== 4) {
|
|
7511
7773
|
return;
|
|
7512
7774
|
}
|
|
7513
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
7775
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
7514
7776
|
return;
|
|
7515
7777
|
}
|
|
7516
7778
|
setTimeout(onloadend);
|
|
@@ -7521,10 +7783,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7521
7783
|
return;
|
|
7522
7784
|
}
|
|
7523
7785
|
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
7786
|
+
done();
|
|
7524
7787
|
request = null;
|
|
7525
7788
|
};
|
|
7526
|
-
request.onerror = function handleError() {
|
|
7527
|
-
|
|
7789
|
+
request.onerror = function handleError(event) {
|
|
7790
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
7791
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
7792
|
+
err.event = event || null;
|
|
7793
|
+
reject(err);
|
|
7794
|
+
done();
|
|
7528
7795
|
request = null;
|
|
7529
7796
|
};
|
|
7530
7797
|
request.ontimeout = function handleTimeout() {
|
|
@@ -7533,17 +7800,20 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7533
7800
|
if (_config.timeoutErrorMessage) {
|
|
7534
7801
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
7535
7802
|
}
|
|
7536
|
-
reject(
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7803
|
+
reject(
|
|
7804
|
+
new AxiosError$1(
|
|
7805
|
+
timeoutErrorMessage,
|
|
7806
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
7807
|
+
config,
|
|
7808
|
+
request
|
|
7809
|
+
)
|
|
7810
|
+
);
|
|
7811
|
+
done();
|
|
7542
7812
|
request = null;
|
|
7543
7813
|
};
|
|
7544
7814
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
7545
7815
|
if ("setRequestHeader" in request) {
|
|
7546
|
-
utils$1.forEach(requestHeaders
|
|
7816
|
+
utils$1.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
7547
7817
|
request.setRequestHeader(key, val);
|
|
7548
7818
|
});
|
|
7549
7819
|
}
|
|
@@ -7569,6 +7839,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7569
7839
|
}
|
|
7570
7840
|
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
7571
7841
|
request.abort();
|
|
7842
|
+
done();
|
|
7572
7843
|
request = null;
|
|
7573
7844
|
};
|
|
7574
7845
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -7577,45 +7848,55 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7577
7848
|
}
|
|
7578
7849
|
}
|
|
7579
7850
|
const protocol = parseProtocol(_config.url);
|
|
7580
|
-
if (protocol && platform.protocols.
|
|
7581
|
-
reject(
|
|
7851
|
+
if (protocol && !platform.protocols.includes(protocol)) {
|
|
7852
|
+
reject(
|
|
7853
|
+
new AxiosError$1(
|
|
7854
|
+
"Unsupported protocol " + protocol + ":",
|
|
7855
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
7856
|
+
config
|
|
7857
|
+
)
|
|
7858
|
+
);
|
|
7582
7859
|
return;
|
|
7583
7860
|
}
|
|
7584
7861
|
request.send(requestData || null);
|
|
7585
7862
|
});
|
|
7586
7863
|
};
|
|
7587
7864
|
const composeSignals = (signals, timeout) => {
|
|
7588
|
-
|
|
7589
|
-
if (timeout
|
|
7590
|
-
|
|
7591
|
-
let aborted;
|
|
7592
|
-
const onabort = function(reason) {
|
|
7593
|
-
if (!aborted) {
|
|
7594
|
-
aborted = true;
|
|
7595
|
-
unsubscribe();
|
|
7596
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
7597
|
-
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
7598
|
-
}
|
|
7599
|
-
};
|
|
7600
|
-
let timer = timeout && setTimeout(() => {
|
|
7601
|
-
timer = null;
|
|
7602
|
-
onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
7603
|
-
}, timeout);
|
|
7604
|
-
const unsubscribe = () => {
|
|
7605
|
-
if (signals) {
|
|
7606
|
-
timer && clearTimeout(timer);
|
|
7607
|
-
timer = null;
|
|
7608
|
-
signals.forEach((signal2) => {
|
|
7609
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
7610
|
-
});
|
|
7611
|
-
signals = null;
|
|
7612
|
-
}
|
|
7613
|
-
};
|
|
7614
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
7615
|
-
const { signal } = controller;
|
|
7616
|
-
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
7617
|
-
return signal;
|
|
7865
|
+
signals = signals ? signals.filter(Boolean) : [];
|
|
7866
|
+
if (!timeout && !signals.length) {
|
|
7867
|
+
return;
|
|
7618
7868
|
}
|
|
7869
|
+
const controller = new AbortController();
|
|
7870
|
+
let aborted = false;
|
|
7871
|
+
const onabort = function(reason) {
|
|
7872
|
+
if (!aborted) {
|
|
7873
|
+
aborted = true;
|
|
7874
|
+
unsubscribe();
|
|
7875
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
7876
|
+
controller.abort(
|
|
7877
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
7878
|
+
);
|
|
7879
|
+
}
|
|
7880
|
+
};
|
|
7881
|
+
let timer = timeout && setTimeout(() => {
|
|
7882
|
+
timer = null;
|
|
7883
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
7884
|
+
}, timeout);
|
|
7885
|
+
const unsubscribe = () => {
|
|
7886
|
+
if (!signals) {
|
|
7887
|
+
return;
|
|
7888
|
+
}
|
|
7889
|
+
timer && clearTimeout(timer);
|
|
7890
|
+
timer = null;
|
|
7891
|
+
signals.forEach((signal2) => {
|
|
7892
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
7893
|
+
});
|
|
7894
|
+
signals = null;
|
|
7895
|
+
};
|
|
7896
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
7897
|
+
const { signal } = controller;
|
|
7898
|
+
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
7899
|
+
return signal;
|
|
7619
7900
|
};
|
|
7620
7901
|
const streamChunk = function* (chunk, chunkSize) {
|
|
7621
7902
|
let len = chunk.byteLength;
|
|
@@ -7664,37 +7945,111 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
7664
7945
|
onFinish && onFinish(e2);
|
|
7665
7946
|
}
|
|
7666
7947
|
};
|
|
7667
|
-
return new ReadableStream(
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7948
|
+
return new ReadableStream(
|
|
7949
|
+
{
|
|
7950
|
+
async pull(controller) {
|
|
7951
|
+
try {
|
|
7952
|
+
const { done: done2, value } = await iterator2.next();
|
|
7953
|
+
if (done2) {
|
|
7954
|
+
_onFinish();
|
|
7955
|
+
controller.close();
|
|
7956
|
+
return;
|
|
7957
|
+
}
|
|
7958
|
+
let len = value.byteLength;
|
|
7959
|
+
if (onProgress) {
|
|
7960
|
+
let loadedBytes = bytes += len;
|
|
7961
|
+
onProgress(loadedBytes);
|
|
7962
|
+
}
|
|
7963
|
+
controller.enqueue(new Uint8Array(value));
|
|
7964
|
+
} catch (err) {
|
|
7965
|
+
_onFinish(err);
|
|
7966
|
+
throw err;
|
|
7680
7967
|
}
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
_onFinish(
|
|
7684
|
-
|
|
7968
|
+
},
|
|
7969
|
+
cancel(reason) {
|
|
7970
|
+
_onFinish(reason);
|
|
7971
|
+
return iterator2.return();
|
|
7685
7972
|
}
|
|
7686
7973
|
},
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
return iterator2.return();
|
|
7974
|
+
{
|
|
7975
|
+
highWaterMark: 2
|
|
7690
7976
|
}
|
|
7691
|
-
|
|
7692
|
-
highWaterMark: 2
|
|
7693
|
-
});
|
|
7977
|
+
);
|
|
7694
7978
|
};
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7979
|
+
function estimateDataURLDecodedBytes(url) {
|
|
7980
|
+
if (!url || typeof url !== "string") return 0;
|
|
7981
|
+
if (!url.startsWith("data:")) return 0;
|
|
7982
|
+
const comma = url.indexOf(",");
|
|
7983
|
+
if (comma < 0) return 0;
|
|
7984
|
+
const meta = url.slice(5, comma);
|
|
7985
|
+
const body = url.slice(comma + 1);
|
|
7986
|
+
const isBase64 = /;base64/i.test(meta);
|
|
7987
|
+
if (isBase64) {
|
|
7988
|
+
let effectiveLen = body.length;
|
|
7989
|
+
const len = body.length;
|
|
7990
|
+
for (let i2 = 0; i2 < len; i2++) {
|
|
7991
|
+
if (body.charCodeAt(i2) === 37 && i2 + 2 < len) {
|
|
7992
|
+
const a2 = body.charCodeAt(i2 + 1);
|
|
7993
|
+
const b2 = body.charCodeAt(i2 + 2);
|
|
7994
|
+
const isHex = (a2 >= 48 && a2 <= 57 || a2 >= 65 && a2 <= 70 || a2 >= 97 && a2 <= 102) && (b2 >= 48 && b2 <= 57 || b2 >= 65 && b2 <= 70 || b2 >= 97 && b2 <= 102);
|
|
7995
|
+
if (isHex) {
|
|
7996
|
+
effectiveLen -= 2;
|
|
7997
|
+
i2 += 2;
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
}
|
|
8001
|
+
let pad = 0;
|
|
8002
|
+
let idx = len - 1;
|
|
8003
|
+
const tailIsPct3D = (j2) => j2 >= 2 && body.charCodeAt(j2 - 2) === 37 && // '%'
|
|
8004
|
+
body.charCodeAt(j2 - 1) === 51 && // '3'
|
|
8005
|
+
(body.charCodeAt(j2) === 68 || body.charCodeAt(j2) === 100);
|
|
8006
|
+
if (idx >= 0) {
|
|
8007
|
+
if (body.charCodeAt(idx) === 61) {
|
|
8008
|
+
pad++;
|
|
8009
|
+
idx--;
|
|
8010
|
+
} else if (tailIsPct3D(idx)) {
|
|
8011
|
+
pad++;
|
|
8012
|
+
idx -= 3;
|
|
8013
|
+
}
|
|
8014
|
+
}
|
|
8015
|
+
if (pad === 1 && idx >= 0) {
|
|
8016
|
+
if (body.charCodeAt(idx) === 61) {
|
|
8017
|
+
pad++;
|
|
8018
|
+
} else if (tailIsPct3D(idx)) {
|
|
8019
|
+
pad++;
|
|
8020
|
+
}
|
|
8021
|
+
}
|
|
8022
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
8023
|
+
const bytes2 = groups * 3 - (pad || 0);
|
|
8024
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
8025
|
+
}
|
|
8026
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
8027
|
+
return Buffer.byteLength(body, "utf8");
|
|
8028
|
+
}
|
|
8029
|
+
let bytes = 0;
|
|
8030
|
+
for (let i2 = 0, len = body.length; i2 < len; i2++) {
|
|
8031
|
+
const c2 = body.charCodeAt(i2);
|
|
8032
|
+
if (c2 < 128) {
|
|
8033
|
+
bytes += 1;
|
|
8034
|
+
} else if (c2 < 2048) {
|
|
8035
|
+
bytes += 2;
|
|
8036
|
+
} else if (c2 >= 55296 && c2 <= 56319 && i2 + 1 < len) {
|
|
8037
|
+
const next = body.charCodeAt(i2 + 1);
|
|
8038
|
+
if (next >= 56320 && next <= 57343) {
|
|
8039
|
+
bytes += 4;
|
|
8040
|
+
i2++;
|
|
8041
|
+
} else {
|
|
8042
|
+
bytes += 3;
|
|
8043
|
+
}
|
|
8044
|
+
} else {
|
|
8045
|
+
bytes += 3;
|
|
8046
|
+
}
|
|
8047
|
+
}
|
|
8048
|
+
return bytes;
|
|
8049
|
+
}
|
|
8050
|
+
const VERSION$1 = "1.16.1";
|
|
8051
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
8052
|
+
const { isFunction } = utils$1;
|
|
7698
8053
|
const test = (fn, ...args) => {
|
|
7699
8054
|
try {
|
|
7700
8055
|
return !!fn(...args);
|
|
@@ -7702,208 +8057,368 @@ const test = (fn, ...args) => {
|
|
|
7702
8057
|
return false;
|
|
7703
8058
|
}
|
|
7704
8059
|
};
|
|
7705
|
-
const
|
|
7706
|
-
|
|
7707
|
-
const
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
const
|
|
7719
|
-
const
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_2, config) => {
|
|
7725
|
-
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
7726
|
-
});
|
|
7727
|
-
});
|
|
7728
|
-
})(new Response());
|
|
7729
|
-
const getBodyLength = async (body) => {
|
|
7730
|
-
if (body == null) {
|
|
7731
|
-
return 0;
|
|
7732
|
-
}
|
|
7733
|
-
if (utils$1.isBlob(body)) {
|
|
7734
|
-
return body.size;
|
|
8060
|
+
const factory = (env) => {
|
|
8061
|
+
const globalObject = utils$1.global !== void 0 && utils$1.global !== null ? utils$1.global : globalThis;
|
|
8062
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
8063
|
+
env = utils$1.merge.call(
|
|
8064
|
+
{
|
|
8065
|
+
skipUndefined: true
|
|
8066
|
+
},
|
|
8067
|
+
{
|
|
8068
|
+
Request: globalObject.Request,
|
|
8069
|
+
Response: globalObject.Response
|
|
8070
|
+
},
|
|
8071
|
+
env
|
|
8072
|
+
);
|
|
8073
|
+
const { fetch: envFetch, Request, Response: Response2 } = env;
|
|
8074
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
8075
|
+
const isRequestSupported = isFunction(Request);
|
|
8076
|
+
const isResponseSupported = isFunction(Response2);
|
|
8077
|
+
if (!isFetchSupported) {
|
|
8078
|
+
return false;
|
|
7735
8079
|
}
|
|
7736
|
-
|
|
7737
|
-
|
|
8080
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream2);
|
|
8081
|
+
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
8082
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
8083
|
+
let duplexAccessed = false;
|
|
8084
|
+
const request = new Request(platform.origin, {
|
|
8085
|
+
body: new ReadableStream2(),
|
|
7738
8086
|
method: "POST",
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
if (utils$1.isString(body)) {
|
|
7750
|
-
return (await encodeText(body)).byteLength;
|
|
7751
|
-
}
|
|
7752
|
-
};
|
|
7753
|
-
const resolveBodyLength = async (headers, body) => {
|
|
7754
|
-
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
7755
|
-
return length == null ? getBodyLength(body) : length;
|
|
7756
|
-
};
|
|
7757
|
-
const fetchAdapter = isFetchSupported && (async (config) => {
|
|
7758
|
-
let {
|
|
7759
|
-
url,
|
|
7760
|
-
method,
|
|
7761
|
-
data,
|
|
7762
|
-
signal,
|
|
7763
|
-
cancelToken,
|
|
7764
|
-
timeout,
|
|
7765
|
-
onDownloadProgress,
|
|
7766
|
-
onUploadProgress,
|
|
7767
|
-
responseType,
|
|
7768
|
-
headers,
|
|
7769
|
-
withCredentials = "same-origin",
|
|
7770
|
-
fetchOptions
|
|
7771
|
-
} = resolveConfig(config);
|
|
7772
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
7773
|
-
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
7774
|
-
let request;
|
|
7775
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
7776
|
-
composedSignal.unsubscribe();
|
|
8087
|
+
get duplex() {
|
|
8088
|
+
duplexAccessed = true;
|
|
8089
|
+
return "half";
|
|
8090
|
+
}
|
|
8091
|
+
});
|
|
8092
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
8093
|
+
if (request.body != null) {
|
|
8094
|
+
request.body.cancel();
|
|
8095
|
+
}
|
|
8096
|
+
return duplexAccessed && !hasContentType;
|
|
7777
8097
|
});
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
8098
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response2("").body));
|
|
8099
|
+
const resolvers = {
|
|
8100
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
8101
|
+
};
|
|
8102
|
+
isFetchSupported && (() => {
|
|
8103
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
8104
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
8105
|
+
let method = res && res[type];
|
|
8106
|
+
if (method) {
|
|
8107
|
+
return method.call(res);
|
|
8108
|
+
}
|
|
8109
|
+
throw new AxiosError$1(
|
|
8110
|
+
`Response type '${type}' is not supported`,
|
|
8111
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
8112
|
+
config
|
|
7794
8113
|
);
|
|
7795
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
7796
|
-
}
|
|
7797
|
-
}
|
|
7798
|
-
if (!utils$1.isString(withCredentials)) {
|
|
7799
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
7800
|
-
}
|
|
7801
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
7802
|
-
request = new Request(url, {
|
|
7803
|
-
...fetchOptions,
|
|
7804
|
-
signal: composedSignal,
|
|
7805
|
-
method: method.toUpperCase(),
|
|
7806
|
-
headers: headers.normalize().toJSON(),
|
|
7807
|
-
body: data,
|
|
7808
|
-
duplex: "half",
|
|
7809
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
7810
|
-
});
|
|
7811
|
-
let response = await fetch(request, fetchOptions);
|
|
7812
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
7813
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
7814
|
-
const options = {};
|
|
7815
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
7816
|
-
options[prop] = response[prop];
|
|
7817
8114
|
});
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
response = new Response(
|
|
7824
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
7825
|
-
flush && flush();
|
|
7826
|
-
unsubscribe && unsubscribe();
|
|
7827
|
-
}),
|
|
7828
|
-
options
|
|
7829
|
-
);
|
|
8115
|
+
});
|
|
8116
|
+
})();
|
|
8117
|
+
const getBodyLength = async (body) => {
|
|
8118
|
+
if (body == null) {
|
|
8119
|
+
return 0;
|
|
7830
8120
|
}
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
status: response.status,
|
|
7839
|
-
statusText: response.statusText,
|
|
7840
|
-
config,
|
|
7841
|
-
request
|
|
8121
|
+
if (utils$1.isBlob(body)) {
|
|
8122
|
+
return body.size;
|
|
8123
|
+
}
|
|
8124
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
8125
|
+
const _request = new Request(platform.origin, {
|
|
8126
|
+
method: "POST",
|
|
8127
|
+
body
|
|
7842
8128
|
});
|
|
8129
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
8130
|
+
}
|
|
8131
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
8132
|
+
return body.byteLength;
|
|
8133
|
+
}
|
|
8134
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
8135
|
+
body = body + "";
|
|
8136
|
+
}
|
|
8137
|
+
if (utils$1.isString(body)) {
|
|
8138
|
+
return (await encodeText(body)).byteLength;
|
|
8139
|
+
}
|
|
8140
|
+
};
|
|
8141
|
+
const resolveBodyLength = async (headers, body) => {
|
|
8142
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
8143
|
+
return length == null ? getBodyLength(body) : length;
|
|
8144
|
+
};
|
|
8145
|
+
return async (config) => {
|
|
8146
|
+
let {
|
|
8147
|
+
url,
|
|
8148
|
+
method,
|
|
8149
|
+
data,
|
|
8150
|
+
signal,
|
|
8151
|
+
cancelToken,
|
|
8152
|
+
timeout,
|
|
8153
|
+
onDownloadProgress,
|
|
8154
|
+
onUploadProgress,
|
|
8155
|
+
responseType,
|
|
8156
|
+
headers,
|
|
8157
|
+
withCredentials = "same-origin",
|
|
8158
|
+
fetchOptions,
|
|
8159
|
+
maxContentLength,
|
|
8160
|
+
maxBodyLength
|
|
8161
|
+
} = resolveConfig(config);
|
|
8162
|
+
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
8163
|
+
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
8164
|
+
let _fetch = envFetch || fetch;
|
|
8165
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
8166
|
+
let composedSignal = composeSignals(
|
|
8167
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
8168
|
+
timeout
|
|
8169
|
+
);
|
|
8170
|
+
let request = null;
|
|
8171
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
8172
|
+
composedSignal.unsubscribe();
|
|
7843
8173
|
});
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
8174
|
+
let requestContentLength;
|
|
8175
|
+
try {
|
|
8176
|
+
if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
|
|
8177
|
+
const estimated = estimateDataURLDecodedBytes(url);
|
|
8178
|
+
if (estimated > maxContentLength) {
|
|
8179
|
+
throw new AxiosError$1(
|
|
8180
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
8181
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
8182
|
+
config,
|
|
8183
|
+
request
|
|
8184
|
+
);
|
|
7851
8185
|
}
|
|
8186
|
+
}
|
|
8187
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
8188
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
8189
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
8190
|
+
throw new AxiosError$1(
|
|
8191
|
+
"Request body larger than maxBodyLength limit",
|
|
8192
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
8193
|
+
config,
|
|
8194
|
+
request
|
|
8195
|
+
);
|
|
8196
|
+
}
|
|
8197
|
+
}
|
|
8198
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
8199
|
+
let _request = new Request(url, {
|
|
8200
|
+
method: "POST",
|
|
8201
|
+
body: data,
|
|
8202
|
+
duplex: "half"
|
|
8203
|
+
});
|
|
8204
|
+
let contentTypeHeader;
|
|
8205
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
8206
|
+
headers.setContentType(contentTypeHeader);
|
|
8207
|
+
}
|
|
8208
|
+
if (_request.body) {
|
|
8209
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
8210
|
+
requestContentLength,
|
|
8211
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
8212
|
+
);
|
|
8213
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
8214
|
+
}
|
|
8215
|
+
}
|
|
8216
|
+
if (!utils$1.isString(withCredentials)) {
|
|
8217
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
8218
|
+
}
|
|
8219
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
8220
|
+
if (utils$1.isFormData(data)) {
|
|
8221
|
+
const contentType = headers.getContentType();
|
|
8222
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
8223
|
+
headers.delete("content-type");
|
|
8224
|
+
}
|
|
8225
|
+
}
|
|
8226
|
+
headers.set("User-Agent", "axios/" + VERSION$1, false);
|
|
8227
|
+
const resolvedOptions = {
|
|
8228
|
+
...fetchOptions,
|
|
8229
|
+
signal: composedSignal,
|
|
8230
|
+
method: method.toUpperCase(),
|
|
8231
|
+
headers: toByteStringHeaderObject(headers.normalize()),
|
|
8232
|
+
body: data,
|
|
8233
|
+
duplex: "half",
|
|
8234
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
8235
|
+
};
|
|
8236
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
8237
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
8238
|
+
if (hasMaxContentLength) {
|
|
8239
|
+
const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
8240
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
8241
|
+
throw new AxiosError$1(
|
|
8242
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
8243
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
8244
|
+
config,
|
|
8245
|
+
request
|
|
8246
|
+
);
|
|
8247
|
+
}
|
|
8248
|
+
}
|
|
8249
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
8250
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
8251
|
+
const options = {};
|
|
8252
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
8253
|
+
options[prop] = response[prop];
|
|
8254
|
+
});
|
|
8255
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
8256
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
8257
|
+
responseContentLength,
|
|
8258
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
8259
|
+
) || [];
|
|
8260
|
+
let bytesRead = 0;
|
|
8261
|
+
const onChunkProgress = (loadedBytes) => {
|
|
8262
|
+
if (hasMaxContentLength) {
|
|
8263
|
+
bytesRead = loadedBytes;
|
|
8264
|
+
if (bytesRead > maxContentLength) {
|
|
8265
|
+
throw new AxiosError$1(
|
|
8266
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
8267
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
8268
|
+
config,
|
|
8269
|
+
request
|
|
8270
|
+
);
|
|
8271
|
+
}
|
|
8272
|
+
}
|
|
8273
|
+
onProgress && onProgress(loadedBytes);
|
|
8274
|
+
};
|
|
8275
|
+
response = new Response2(
|
|
8276
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
8277
|
+
flush && flush();
|
|
8278
|
+
unsubscribe && unsubscribe();
|
|
8279
|
+
}),
|
|
8280
|
+
options
|
|
8281
|
+
);
|
|
8282
|
+
}
|
|
8283
|
+
responseType = responseType || "text";
|
|
8284
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
8285
|
+
response,
|
|
8286
|
+
config
|
|
7852
8287
|
);
|
|
8288
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
8289
|
+
let materializedSize;
|
|
8290
|
+
if (responseData != null) {
|
|
8291
|
+
if (typeof responseData.byteLength === "number") {
|
|
8292
|
+
materializedSize = responseData.byteLength;
|
|
8293
|
+
} else if (typeof responseData.size === "number") {
|
|
8294
|
+
materializedSize = responseData.size;
|
|
8295
|
+
} else if (typeof responseData === "string") {
|
|
8296
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
8297
|
+
}
|
|
8298
|
+
}
|
|
8299
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
8300
|
+
throw new AxiosError$1(
|
|
8301
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
8302
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
8303
|
+
config,
|
|
8304
|
+
request
|
|
8305
|
+
);
|
|
8306
|
+
}
|
|
8307
|
+
}
|
|
8308
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
8309
|
+
return await new Promise((resolve, reject) => {
|
|
8310
|
+
settle(resolve, reject, {
|
|
8311
|
+
data: responseData,
|
|
8312
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
8313
|
+
status: response.status,
|
|
8314
|
+
statusText: response.statusText,
|
|
8315
|
+
config,
|
|
8316
|
+
request
|
|
8317
|
+
});
|
|
8318
|
+
});
|
|
8319
|
+
} catch (err) {
|
|
8320
|
+
unsubscribe && unsubscribe();
|
|
8321
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) {
|
|
8322
|
+
const canceledError = composedSignal.reason;
|
|
8323
|
+
canceledError.config = config;
|
|
8324
|
+
request && (canceledError.request = request);
|
|
8325
|
+
err !== canceledError && (canceledError.cause = err);
|
|
8326
|
+
throw canceledError;
|
|
8327
|
+
}
|
|
8328
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
8329
|
+
throw Object.assign(
|
|
8330
|
+
new AxiosError$1(
|
|
8331
|
+
"Network Error",
|
|
8332
|
+
AxiosError$1.ERR_NETWORK,
|
|
8333
|
+
config,
|
|
8334
|
+
request,
|
|
8335
|
+
err && err.response
|
|
8336
|
+
),
|
|
8337
|
+
{
|
|
8338
|
+
cause: err.cause || err
|
|
8339
|
+
}
|
|
8340
|
+
);
|
|
8341
|
+
}
|
|
8342
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
7853
8343
|
}
|
|
7854
|
-
|
|
8344
|
+
};
|
|
8345
|
+
};
|
|
8346
|
+
const seedCache = /* @__PURE__ */ new Map();
|
|
8347
|
+
const getFetch = (config) => {
|
|
8348
|
+
let env = config && config.env || {};
|
|
8349
|
+
const { fetch: fetch2, Request, Response: Response2 } = env;
|
|
8350
|
+
const seeds = [Request, Response2, fetch2];
|
|
8351
|
+
let len = seeds.length, i2 = len, seed, target2, map = seedCache;
|
|
8352
|
+
while (i2--) {
|
|
8353
|
+
seed = seeds[i2];
|
|
8354
|
+
target2 = map.get(seed);
|
|
8355
|
+
target2 === void 0 && map.set(seed, target2 = i2 ? /* @__PURE__ */ new Map() : factory(env));
|
|
8356
|
+
map = target2;
|
|
7855
8357
|
}
|
|
7856
|
-
|
|
8358
|
+
return target2;
|
|
8359
|
+
};
|
|
8360
|
+
getFetch();
|
|
7857
8361
|
const knownAdapters = {
|
|
7858
8362
|
http: httpAdapter,
|
|
7859
8363
|
xhr: xhrAdapter,
|
|
7860
|
-
fetch:
|
|
8364
|
+
fetch: {
|
|
8365
|
+
get: getFetch
|
|
8366
|
+
}
|
|
7861
8367
|
};
|
|
7862
8368
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
7863
8369
|
if (fn) {
|
|
7864
8370
|
try {
|
|
7865
|
-
Object.defineProperty(fn, "name", { value });
|
|
8371
|
+
Object.defineProperty(fn, "name", { __proto__: null, value });
|
|
7866
8372
|
} catch (e2) {
|
|
7867
8373
|
}
|
|
7868
|
-
Object.defineProperty(fn, "adapterName", { value });
|
|
8374
|
+
Object.defineProperty(fn, "adapterName", { __proto__: null, value });
|
|
7869
8375
|
}
|
|
7870
8376
|
});
|
|
7871
8377
|
const renderReason = (reason) => `- ${reason}`;
|
|
7872
8378
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
break;
|
|
7892
|
-
}
|
|
7893
|
-
rejectedReasons[id || "#" + i2] = adapter;
|
|
7894
|
-
}
|
|
7895
|
-
if (!adapter) {
|
|
7896
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
7897
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
7898
|
-
);
|
|
7899
|
-
let s2 = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
7900
|
-
throw new AxiosError$1(
|
|
7901
|
-
`There is no suitable adapter to dispatch the request ` + s2,
|
|
7902
|
-
"ERR_NOT_SUPPORT"
|
|
7903
|
-
);
|
|
8379
|
+
function getAdapter$1(adapters2, config) {
|
|
8380
|
+
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
8381
|
+
const { length } = adapters2;
|
|
8382
|
+
let nameOrAdapter;
|
|
8383
|
+
let adapter;
|
|
8384
|
+
const rejectedReasons = {};
|
|
8385
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
8386
|
+
nameOrAdapter = adapters2[i2];
|
|
8387
|
+
let id;
|
|
8388
|
+
adapter = nameOrAdapter;
|
|
8389
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
8390
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
8391
|
+
if (adapter === void 0) {
|
|
8392
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
8393
|
+
}
|
|
8394
|
+
}
|
|
8395
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
8396
|
+
break;
|
|
7904
8397
|
}
|
|
7905
|
-
|
|
7906
|
-
}
|
|
8398
|
+
rejectedReasons[id || "#" + i2] = adapter;
|
|
8399
|
+
}
|
|
8400
|
+
if (!adapter) {
|
|
8401
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
8402
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
8403
|
+
);
|
|
8404
|
+
let s2 = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
8405
|
+
throw new AxiosError$1(
|
|
8406
|
+
`There is no suitable adapter to dispatch the request ` + s2,
|
|
8407
|
+
"ERR_NOT_SUPPORT"
|
|
8408
|
+
);
|
|
8409
|
+
}
|
|
8410
|
+
return adapter;
|
|
8411
|
+
}
|
|
8412
|
+
const adapters = {
|
|
8413
|
+
/**
|
|
8414
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
8415
|
+
* @type {Function}
|
|
8416
|
+
*/
|
|
8417
|
+
getAdapter: getAdapter$1,
|
|
8418
|
+
/**
|
|
8419
|
+
* Exposes all known adapters
|
|
8420
|
+
* @type {Object<string, Function|Object>}
|
|
8421
|
+
*/
|
|
7907
8422
|
adapters: knownAdapters
|
|
7908
8423
|
};
|
|
7909
8424
|
function throwIfCancellationRequested(config) {
|
|
@@ -7917,39 +8432,44 @@ function throwIfCancellationRequested(config) {
|
|
|
7917
8432
|
function dispatchRequest(config) {
|
|
7918
8433
|
throwIfCancellationRequested(config);
|
|
7919
8434
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
7920
|
-
config.data = transformData.call(
|
|
7921
|
-
config,
|
|
7922
|
-
config.transformRequest
|
|
7923
|
-
);
|
|
8435
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
7924
8436
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
7925
8437
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
7926
8438
|
}
|
|
7927
|
-
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
|
7928
|
-
return adapter(config).then(
|
|
7929
|
-
|
|
7930
|
-
response.data = transformData.call(
|
|
7931
|
-
config,
|
|
7932
|
-
config.transformResponse,
|
|
7933
|
-
response
|
|
7934
|
-
);
|
|
7935
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
7936
|
-
return response;
|
|
7937
|
-
}, function onAdapterRejection(reason) {
|
|
7938
|
-
if (!isCancel$1(reason)) {
|
|
8439
|
+
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
|
8440
|
+
return adapter(config).then(
|
|
8441
|
+
function onAdapterResolution(response) {
|
|
7939
8442
|
throwIfCancellationRequested(config);
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
8443
|
+
config.response = response;
|
|
8444
|
+
try {
|
|
8445
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
8446
|
+
} finally {
|
|
8447
|
+
delete config.response;
|
|
8448
|
+
}
|
|
8449
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
8450
|
+
return response;
|
|
8451
|
+
},
|
|
8452
|
+
function onAdapterRejection(reason) {
|
|
8453
|
+
if (!isCancel$1(reason)) {
|
|
8454
|
+
throwIfCancellationRequested(config);
|
|
8455
|
+
if (reason && reason.response) {
|
|
8456
|
+
config.response = reason.response;
|
|
8457
|
+
try {
|
|
8458
|
+
reason.response.data = transformData.call(
|
|
8459
|
+
config,
|
|
8460
|
+
config.transformResponse,
|
|
8461
|
+
reason.response
|
|
8462
|
+
);
|
|
8463
|
+
} finally {
|
|
8464
|
+
delete config.response;
|
|
8465
|
+
}
|
|
8466
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
8467
|
+
}
|
|
7947
8468
|
}
|
|
8469
|
+
return Promise.reject(reason);
|
|
7948
8470
|
}
|
|
7949
|
-
|
|
7950
|
-
});
|
|
8471
|
+
);
|
|
7951
8472
|
}
|
|
7952
|
-
const VERSION$1 = "1.11.0";
|
|
7953
8473
|
const validators$1 = {};
|
|
7954
8474
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i2) => {
|
|
7955
8475
|
validators$1[type] = function validator2(thing) {
|
|
@@ -7994,12 +8514,15 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
7994
8514
|
let i2 = keys.length;
|
|
7995
8515
|
while (i2-- > 0) {
|
|
7996
8516
|
const opt = keys[i2];
|
|
7997
|
-
const validator2 = schema[opt];
|
|
8517
|
+
const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
7998
8518
|
if (validator2) {
|
|
7999
8519
|
const value = options[opt];
|
|
8000
8520
|
const result = value === void 0 || validator2(value, opt, options);
|
|
8001
8521
|
if (result !== true) {
|
|
8002
|
-
throw new AxiosError$1(
|
|
8522
|
+
throw new AxiosError$1(
|
|
8523
|
+
"option " + opt + " must be " + result,
|
|
8524
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
8525
|
+
);
|
|
8003
8526
|
}
|
|
8004
8527
|
continue;
|
|
8005
8528
|
}
|
|
@@ -8036,12 +8559,23 @@ let Axios$1 = class Axios {
|
|
|
8036
8559
|
if (err instanceof Error) {
|
|
8037
8560
|
let dummy = {};
|
|
8038
8561
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
8039
|
-
const stack =
|
|
8562
|
+
const stack = (() => {
|
|
8563
|
+
if (!dummy.stack) {
|
|
8564
|
+
return "";
|
|
8565
|
+
}
|
|
8566
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
8567
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
8568
|
+
})();
|
|
8040
8569
|
try {
|
|
8041
8570
|
if (!err.stack) {
|
|
8042
8571
|
err.stack = stack;
|
|
8043
|
-
} else if (stack
|
|
8044
|
-
|
|
8572
|
+
} else if (stack) {
|
|
8573
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
8574
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
8575
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
8576
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
8577
|
+
err.stack += "\n" + stack;
|
|
8578
|
+
}
|
|
8045
8579
|
}
|
|
8046
8580
|
} catch (e2) {
|
|
8047
8581
|
}
|
|
@@ -8059,11 +8593,16 @@ let Axios$1 = class Axios {
|
|
|
8059
8593
|
config = mergeConfig$1(this.defaults, config);
|
|
8060
8594
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
8061
8595
|
if (transitional2 !== void 0) {
|
|
8062
|
-
validator.assertOptions(
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8596
|
+
validator.assertOptions(
|
|
8597
|
+
transitional2,
|
|
8598
|
+
{
|
|
8599
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
8600
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
8601
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
8602
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
8603
|
+
},
|
|
8604
|
+
false
|
|
8605
|
+
);
|
|
8067
8606
|
}
|
|
8068
8607
|
if (paramsSerializer != null) {
|
|
8069
8608
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -8071,10 +8610,14 @@ let Axios$1 = class Axios {
|
|
|
8071
8610
|
serialize: paramsSerializer
|
|
8072
8611
|
};
|
|
8073
8612
|
} else {
|
|
8074
|
-
validator.assertOptions(
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8613
|
+
validator.assertOptions(
|
|
8614
|
+
paramsSerializer,
|
|
8615
|
+
{
|
|
8616
|
+
encode: validators.function,
|
|
8617
|
+
serialize: validators.function
|
|
8618
|
+
},
|
|
8619
|
+
true
|
|
8620
|
+
);
|
|
8078
8621
|
}
|
|
8079
8622
|
}
|
|
8080
8623
|
if (config.allowAbsoluteUrls !== void 0) ;
|
|
@@ -8083,21 +8626,19 @@ let Axios$1 = class Axios {
|
|
|
8083
8626
|
} else {
|
|
8084
8627
|
config.allowAbsoluteUrls = true;
|
|
8085
8628
|
}
|
|
8086
|
-
validator.assertOptions(
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
headers[config.method]
|
|
8094
|
-
);
|
|
8095
|
-
headers && utils$1.forEach(
|
|
8096
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
8097
|
-
(method) => {
|
|
8098
|
-
delete headers[method];
|
|
8099
|
-
}
|
|
8629
|
+
validator.assertOptions(
|
|
8630
|
+
config,
|
|
8631
|
+
{
|
|
8632
|
+
baseUrl: validators.spelling("baseURL"),
|
|
8633
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
8634
|
+
},
|
|
8635
|
+
true
|
|
8100
8636
|
);
|
|
8637
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
8638
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
8639
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
8640
|
+
delete headers[method];
|
|
8641
|
+
});
|
|
8101
8642
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
8102
8643
|
const requestInterceptorChain = [];
|
|
8103
8644
|
let synchronousRequestInterceptors = true;
|
|
@@ -8106,7 +8647,13 @@ let Axios$1 = class Axios {
|
|
|
8106
8647
|
return;
|
|
8107
8648
|
}
|
|
8108
8649
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
8109
|
-
|
|
8650
|
+
const transitional3 = config.transitional || transitionalDefaults;
|
|
8651
|
+
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
8652
|
+
if (legacyInterceptorReqResOrdering) {
|
|
8653
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
8654
|
+
} else {
|
|
8655
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
8656
|
+
}
|
|
8110
8657
|
});
|
|
8111
8658
|
const responseInterceptorChain = [];
|
|
8112
8659
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -8128,7 +8675,6 @@ let Axios$1 = class Axios {
|
|
|
8128
8675
|
}
|
|
8129
8676
|
len = requestInterceptorChain.length;
|
|
8130
8677
|
let newConfig = config;
|
|
8131
|
-
i2 = 0;
|
|
8132
8678
|
while (i2 < len) {
|
|
8133
8679
|
const onFulfilled = requestInterceptorChain[i2++];
|
|
8134
8680
|
const onRejected = requestInterceptorChain[i2++];
|
|
@@ -8159,28 +8705,34 @@ let Axios$1 = class Axios {
|
|
|
8159
8705
|
};
|
|
8160
8706
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
8161
8707
|
Axios$1.prototype[method] = function(url, config) {
|
|
8162
|
-
return this.request(
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8708
|
+
return this.request(
|
|
8709
|
+
mergeConfig$1(config || {}, {
|
|
8710
|
+
method,
|
|
8711
|
+
url,
|
|
8712
|
+
data: (config || {}).data
|
|
8713
|
+
})
|
|
8714
|
+
);
|
|
8167
8715
|
};
|
|
8168
8716
|
});
|
|
8169
|
-
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
8717
|
+
utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
8170
8718
|
function generateHTTPMethod(isForm) {
|
|
8171
8719
|
return function httpMethod(url, data, config) {
|
|
8172
|
-
return this.request(
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8720
|
+
return this.request(
|
|
8721
|
+
mergeConfig$1(config || {}, {
|
|
8722
|
+
method,
|
|
8723
|
+
headers: isForm ? {
|
|
8724
|
+
"Content-Type": "multipart/form-data"
|
|
8725
|
+
} : {},
|
|
8726
|
+
url,
|
|
8727
|
+
data
|
|
8728
|
+
})
|
|
8729
|
+
);
|
|
8180
8730
|
};
|
|
8181
8731
|
}
|
|
8182
8732
|
Axios$1.prototype[method] = generateHTTPMethod();
|
|
8183
|
-
|
|
8733
|
+
if (method !== "query") {
|
|
8734
|
+
Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
8735
|
+
}
|
|
8184
8736
|
});
|
|
8185
8737
|
let CancelToken$1 = class CancelToken {
|
|
8186
8738
|
constructor(executor) {
|
|
@@ -8348,7 +8900,13 @@ const HttpStatusCode$1 = {
|
|
|
8348
8900
|
InsufficientStorage: 507,
|
|
8349
8901
|
LoopDetected: 508,
|
|
8350
8902
|
NotExtended: 510,
|
|
8351
|
-
NetworkAuthenticationRequired: 511
|
|
8903
|
+
NetworkAuthenticationRequired: 511,
|
|
8904
|
+
WebServerIsDown: 521,
|
|
8905
|
+
ConnectionTimedOut: 522,
|
|
8906
|
+
OriginIsUnreachable: 523,
|
|
8907
|
+
TimeoutOccurred: 524,
|
|
8908
|
+
SslHandshakeFailed: 525,
|
|
8909
|
+
InvalidSslCertificate: 526
|
|
8352
8910
|
};
|
|
8353
8911
|
Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
8354
8912
|
HttpStatusCode$1[value] = key;
|
|
@@ -8385,8 +8943,8 @@ axios.HttpStatusCode = HttpStatusCode$1;
|
|
|
8385
8943
|
axios.default = axios;
|
|
8386
8944
|
const {
|
|
8387
8945
|
Axios: Axios2,
|
|
8388
|
-
AxiosError,
|
|
8389
|
-
CanceledError,
|
|
8946
|
+
AxiosError: AxiosError2,
|
|
8947
|
+
CanceledError: CanceledError2,
|
|
8390
8948
|
isCancel,
|
|
8391
8949
|
CancelToken: CancelToken2,
|
|
8392
8950
|
VERSION,
|
|
@@ -8399,7 +8957,8 @@ const {
|
|
|
8399
8957
|
HttpStatusCode,
|
|
8400
8958
|
formToJSON,
|
|
8401
8959
|
getAdapter,
|
|
8402
|
-
mergeConfig
|
|
8960
|
+
mergeConfig,
|
|
8961
|
+
create
|
|
8403
8962
|
} = axios;
|
|
8404
8963
|
function setUserId(newUserId) {
|
|
8405
8964
|
sessionStorage.setItem("JS_USER_ID", newUserId);
|
|
@@ -37156,6 +37715,78 @@ function markNetworkDisconnected() {
|
|
|
37156
37715
|
);
|
|
37157
37716
|
handleLevelNotification("lost");
|
|
37158
37717
|
}
|
|
37718
|
+
const runtimeLoaders = /* @__PURE__ */ new Map();
|
|
37719
|
+
function loadRnnoiseRuntime(basePath) {
|
|
37720
|
+
if (window.RNNoiseNode) {
|
|
37721
|
+
return Promise.resolve();
|
|
37722
|
+
}
|
|
37723
|
+
const url = `${basePath}rnnoise-runtime.js`;
|
|
37724
|
+
let loader = runtimeLoaders.get(url);
|
|
37725
|
+
if (loader) {
|
|
37726
|
+
return loader;
|
|
37727
|
+
}
|
|
37728
|
+
loader = new Promise((resolve, reject) => {
|
|
37729
|
+
const script = document.createElement("script");
|
|
37730
|
+
script.src = url;
|
|
37731
|
+
script.onload = () => resolve();
|
|
37732
|
+
script.onerror = () => reject(new Error(`加载 rnnoise-runtime.js 失败: ${url}`));
|
|
37733
|
+
document.head.appendChild(script);
|
|
37734
|
+
});
|
|
37735
|
+
runtimeLoaders.set(url, loader);
|
|
37736
|
+
return loader;
|
|
37737
|
+
}
|
|
37738
|
+
class RnnoiseProcessor {
|
|
37739
|
+
constructor(options = {}) {
|
|
37740
|
+
this.name = "rnnoise";
|
|
37741
|
+
this.ownContext = false;
|
|
37742
|
+
this.basePath = options.basePath ?? "/";
|
|
37743
|
+
}
|
|
37744
|
+
async init(options) {
|
|
37745
|
+
if (options.kind !== Bn.Audio) {
|
|
37746
|
+
throw new Error("RnnoiseProcessor 仅支持音频轨道");
|
|
37747
|
+
}
|
|
37748
|
+
await loadRnnoiseRuntime(this.basePath);
|
|
37749
|
+
if (options.audioContext) {
|
|
37750
|
+
this.audioContext = options.audioContext;
|
|
37751
|
+
this.ownContext = false;
|
|
37752
|
+
} else {
|
|
37753
|
+
this.audioContext = new (window.AudioContext || window.webkitAudioContext)({
|
|
37754
|
+
sampleRate: 48e3,
|
|
37755
|
+
latencyHint: "interactive"
|
|
37756
|
+
});
|
|
37757
|
+
this.ownContext = true;
|
|
37758
|
+
}
|
|
37759
|
+
await RNNoiseNode.register(this.audioContext);
|
|
37760
|
+
this.sourceNode = this.audioContext.createMediaStreamSource(new MediaStream([options.track]));
|
|
37761
|
+
this.rnnoiseNode = new RNNoiseNode(this.audioContext);
|
|
37762
|
+
this.destinationNode = this.audioContext.createMediaStreamDestination();
|
|
37763
|
+
this.sourceNode.connect(this.rnnoiseNode);
|
|
37764
|
+
this.rnnoiseNode.connect(this.destinationNode);
|
|
37765
|
+
const tracks = this.destinationNode.stream.getAudioTracks();
|
|
37766
|
+
if (!tracks.length) {
|
|
37767
|
+
throw new Error("RnnoiseProcessor 未产出音频轨道");
|
|
37768
|
+
}
|
|
37769
|
+
this.processedTrack = tracks[0];
|
|
37770
|
+
}
|
|
37771
|
+
async destroy() {
|
|
37772
|
+
var _a25, _b25, _c2, _d;
|
|
37773
|
+
try {
|
|
37774
|
+
(_a25 = this.rnnoiseNode) == null ? void 0 : _a25.update(false);
|
|
37775
|
+
} catch {
|
|
37776
|
+
}
|
|
37777
|
+
(_b25 = this.sourceNode) == null ? void 0 : _b25.disconnect();
|
|
37778
|
+
(_c2 = this.rnnoiseNode) == null ? void 0 : _c2.disconnect();
|
|
37779
|
+
(_d = this.destinationNode) == null ? void 0 : _d.disconnect();
|
|
37780
|
+
if (this.ownContext && this.audioContext && this.audioContext.state !== "closed") {
|
|
37781
|
+
await this.audioContext.close();
|
|
37782
|
+
}
|
|
37783
|
+
this.sourceNode = void 0;
|
|
37784
|
+
this.rnnoiseNode = void 0;
|
|
37785
|
+
this.destinationNode = void 0;
|
|
37786
|
+
this.audioContext = void 0;
|
|
37787
|
+
this.processedTrack = void 0;
|
|
37788
|
+
}
|
|
37789
|
+
}
|
|
37159
37790
|
const alertMsg = "需要浏览器授权麦克风摄像头访问,才能进行音视频通话。请依次点击右上角三个点 > 设置 > 隐私设置和安全性 > 网站设置 > 摄像头或麦克风,把权限更改为 允许 。";
|
|
37160
37791
|
const deviceInfo = reactive({
|
|
37161
37792
|
speakers: [],
|
|
@@ -37634,6 +38265,7 @@ async function stopAndUnpublishLocalMicTrack() {
|
|
|
37634
38265
|
if (!track) return;
|
|
37635
38266
|
try {
|
|
37636
38267
|
await srtc.unpublishLocalTrack(track);
|
|
38268
|
+
await track.removeProcessor();
|
|
37637
38269
|
} catch (_2) {
|
|
37638
38270
|
}
|
|
37639
38271
|
try {
|
|
@@ -38425,6 +39057,8 @@ function openMic() {
|
|
|
38425
39057
|
noiseSuppression: true,
|
|
38426
39058
|
autoGainControl: true
|
|
38427
39059
|
});
|
|
39060
|
+
await track.setProcessor(new RnnoiseProcessor({ basePath: "/rnnoise/" }));
|
|
39061
|
+
console.log(11111111111111112e12);
|
|
38428
39062
|
await srtc.publishLocalTrack(track, {
|
|
38429
39063
|
priority: "high"
|
|
38430
39064
|
});
|
|
@@ -40309,7 +40943,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
40309
40943
|
}, [
|
|
40310
40944
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
40311
40945
|
], 512), [
|
|
40312
|
-
[vShow,
|
|
40946
|
+
[vShow, __props.visible]
|
|
40313
40947
|
])
|
|
40314
40948
|
], 8, ["to"])) : withDirectives((openBlock(), createElementBlock("div", {
|
|
40315
40949
|
key: 1,
|
|
@@ -40321,7 +40955,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
40321
40955
|
}, [
|
|
40322
40956
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
40323
40957
|
], 512)), [
|
|
40324
|
-
[vShow,
|
|
40958
|
+
[vShow, __props.visible]
|
|
40325
40959
|
]);
|
|
40326
40960
|
};
|
|
40327
40961
|
}
|
|
@@ -40830,7 +41464,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
40830
41464
|
}, {
|
|
40831
41465
|
default: withCtx(() => [
|
|
40832
41466
|
createVNode(DialDialog, {
|
|
40833
|
-
theme:
|
|
41467
|
+
theme: __props.theme,
|
|
40834
41468
|
onSuccess: handleDialSuccess
|
|
40835
41469
|
}, null, 8, ["theme"])
|
|
40836
41470
|
]),
|
|
@@ -40926,7 +41560,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
40926
41560
|
var _a25, _b25, _c2, _d, _e, _f2;
|
|
40927
41561
|
const _directive_draggable = resolveDirective("draggable");
|
|
40928
41562
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
40929
|
-
|
|
41563
|
+
__props.visible ? withDirectives((openBlock(), createElementBlock("div", {
|
|
40930
41564
|
key: 0,
|
|
40931
41565
|
class: normalizeClass(["js-minimized-meeting", themeClass.value]),
|
|
40932
41566
|
style: normalizeStyle({ height: componentHeight.value })
|
|
@@ -41083,7 +41717,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
41083
41717
|
return openBlock(), createElementBlock("div", {
|
|
41084
41718
|
class: normalizeClass(["device-selector", themeClass.value])
|
|
41085
41719
|
}, [
|
|
41086
|
-
|
|
41720
|
+
__props.deviceType === "microphone" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
41087
41721
|
createElementVNode("div", _hoisted_1$o, [
|
|
41088
41722
|
createElementVNode("div", _hoisted_2$m, [
|
|
41089
41723
|
createVNode(SvgIcon, {
|
|
@@ -41502,7 +42136,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
41502
42136
|
});
|
|
41503
42137
|
return (_ctx, _cache) => {
|
|
41504
42138
|
return openBlock(), createElementBlock("div", {
|
|
41505
|
-
class: normalizeClass(["network-quality-signal", [`size-${
|
|
42139
|
+
class: normalizeClass(["network-quality-signal", [`size-${__props.size}`]])
|
|
41506
42140
|
}, [
|
|
41507
42141
|
createElementVNode("button", {
|
|
41508
42142
|
ref_key: "triggerRef",
|
|
@@ -41525,7 +42159,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
41525
42159
|
}, null, 2);
|
|
41526
42160
|
}), 64))
|
|
41527
42161
|
]),
|
|
41528
|
-
|
|
42162
|
+
__props.showText ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(unref(networkQualityState).label), 1)) : createCommentVNode("", true)
|
|
41529
42163
|
], 10, _hoisted_1$n),
|
|
41530
42164
|
createVNode(SmartPopup, {
|
|
41531
42165
|
visible: showPopup.value,
|
|
@@ -41672,7 +42306,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
41672
42306
|
class: normalizeClass(["network-situation", themeClass.value])
|
|
41673
42307
|
}, [
|
|
41674
42308
|
createVNode(NetworkQualitySignal, {
|
|
41675
|
-
theme:
|
|
42309
|
+
theme: __props.theme,
|
|
41676
42310
|
size: "compact"
|
|
41677
42311
|
}, null, 8, ["theme"]),
|
|
41678
42312
|
createElementVNode("div", _hoisted_1$m, [
|
|
@@ -42094,7 +42728,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
42094
42728
|
createElementVNode("div", _hoisted_3$j, [
|
|
42095
42729
|
createElementVNode("div", _hoisted_4$h, [
|
|
42096
42730
|
createElementVNode("div", null, [
|
|
42097
|
-
createVNode(NetWorkStatus, { theme:
|
|
42731
|
+
createVNode(NetWorkStatus, { theme: __props.theme }, null, 8, ["theme"])
|
|
42098
42732
|
]),
|
|
42099
42733
|
isReceiving.value && callerInfo.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
|
|
42100
42734
|
createElementVNode("div", _hoisted_6$d, toDisplayString(unref(getUserAvatar)(callerInfo.value)), 1),
|
|
@@ -42296,7 +42930,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
42296
42930
|
default: withCtx(() => [
|
|
42297
42931
|
createVNode(DeviceSelector, {
|
|
42298
42932
|
"device-type": currentDeviceType.value,
|
|
42299
|
-
theme:
|
|
42933
|
+
theme: __props.theme,
|
|
42300
42934
|
onClose: _cache[5] || (_cache[5] = ($event) => showDeviceSelector.value = false)
|
|
42301
42935
|
}, null, 8, ["device-type", "theme"])
|
|
42302
42936
|
]),
|
|
@@ -42856,20 +43490,20 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
42856
43490
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
42857
43491
|
createElementVNode("div", _hoisted_1$j, [
|
|
42858
43492
|
createElementVNode("div", _hoisted_2$i, [
|
|
42859
|
-
createVNode(NetWorkStatus, { theme:
|
|
43493
|
+
createVNode(NetWorkStatus, { theme: __props.theme }, null, 8, ["theme"]),
|
|
42860
43494
|
createElementVNode("span", null, "正在讲话:" + toDisplayString(speakingUserName.value || "无"), 1)
|
|
42861
43495
|
]),
|
|
42862
43496
|
createElementVNode("div", _hoisted_3$i, [
|
|
42863
43497
|
createElementVNode("span", null, toDisplayString(joinTimeObj.value), 1),
|
|
42864
43498
|
createVNode(SvgIcon, {
|
|
42865
|
-
name:
|
|
43499
|
+
name: __props.isFullscreen ? "NoFullscreenIcon" : "FullscreenIcon",
|
|
42866
43500
|
class: "icon-inactive",
|
|
42867
43501
|
onClick: handleFullscreenClick
|
|
42868
43502
|
}, null, 8, ["name"])
|
|
42869
43503
|
])
|
|
42870
43504
|
]),
|
|
42871
43505
|
createElementVNode("div", {
|
|
42872
|
-
class: normalizeClass(["js-dialog-content", [layoutClass.value, { "is-fullscreen-layout":
|
|
43506
|
+
class: normalizeClass(["js-dialog-content", [layoutClass.value, { "is-fullscreen-layout": __props.isFullscreen }]])
|
|
42873
43507
|
}, [
|
|
42874
43508
|
createElementVNode("div", _hoisted_4$g, [
|
|
42875
43509
|
!filteredMembers.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList(12, (n2) => {
|
|
@@ -42884,17 +43518,17 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
42884
43518
|
return openBlock(), createElementBlock("div", {
|
|
42885
43519
|
key: user == null ? void 0 : user.member.memberId,
|
|
42886
43520
|
class: normalizeClass(["grid-item", {
|
|
42887
|
-
"is-speaker":
|
|
42888
|
-
"is-hidden":
|
|
43521
|
+
"is-speaker": __props.layout === "speaker" && ((_a25 = user == null ? void 0 : user.member) == null ? void 0 : _a25.memberId) === ((_c2 = (_b25 = speakerUser.value) == null ? void 0 : _b25.member) == null ? void 0 : _c2.memberId),
|
|
43522
|
+
"is-hidden": __props.layout === "speaker" && ((_d = user == null ? void 0 : user.member) == null ? void 0 : _d.memberId) !== ((_f2 = (_e = speakerUser.value) == null ? void 0 : _e.member) == null ? void 0 : _f2.memberId)
|
|
42889
43523
|
}]),
|
|
42890
43524
|
onClick: ($event) => {
|
|
42891
43525
|
var _a26, _b26, _c3;
|
|
42892
|
-
return
|
|
43526
|
+
return __props.layout === "speaker" && ((_a26 = user == null ? void 0 : user.member) == null ? void 0 : _a26.memberId) === ((_c3 = (_b26 = speakerUser.value) == null ? void 0 : _b26.member) == null ? void 0 : _c3.memberId) ? clearSpeaker() : setSpeaker(user);
|
|
42893
43527
|
}
|
|
42894
43528
|
}, [
|
|
42895
43529
|
createElementVNode("div", {
|
|
42896
43530
|
class: normalizeClass(["video-container", {
|
|
42897
|
-
small:
|
|
43531
|
+
small: __props.layout === "speaker" && ((_g2 = user == null ? void 0 : user.member) == null ? void 0 : _g2.memberId) !== ((_i2 = (_h = speakerUser.value) == null ? void 0 : _h.member) == null ? void 0 : _i2.memberId)
|
|
42898
43532
|
}])
|
|
42899
43533
|
}, [
|
|
42900
43534
|
user.roleType === "1" ? (openBlock(), createElementBlock("div", _hoisted_6$c, "主持人")) : createCommentVNode("", true),
|
|
@@ -42911,8 +43545,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
42911
43545
|
withDirectives(createElementVNode("div", _hoisted_8$a, [
|
|
42912
43546
|
createElementVNode("div", {
|
|
42913
43547
|
class: normalizeClass(["avatar", {
|
|
42914
|
-
large:
|
|
42915
|
-
small:
|
|
43548
|
+
large: __props.layout === "speaker" && ((_j = user == null ? void 0 : user.member) == null ? void 0 : _j.memberId) === ((_l2 = (_k = speakerUser.value) == null ? void 0 : _k.member) == null ? void 0 : _l2.memberId),
|
|
43549
|
+
small: __props.layout === "speaker" && ((_m = user == null ? void 0 : user.member) == null ? void 0 : _m.memberId) !== ((_o = (_n = speakerUser.value) == null ? void 0 : _n.member) == null ? void 0 : _o.memberId)
|
|
42916
43550
|
}])
|
|
42917
43551
|
}, toDisplayString(unref(getUserAvatar)(user)), 3)
|
|
42918
43552
|
], 512), [
|
|
@@ -42947,8 +43581,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
42947
43581
|
user.roleType !== "5" ? (openBlock(), createElementBlock("div", {
|
|
42948
43582
|
key: 1,
|
|
42949
43583
|
class: normalizeClass(["status-indicators", {
|
|
42950
|
-
large:
|
|
42951
|
-
small:
|
|
43584
|
+
large: __props.layout === "speaker" && ((_p = user == null ? void 0 : user.member) == null ? void 0 : _p.memberId) === ((_r2 = (_q = speakerUser.value) == null ? void 0 : _q.member) == null ? void 0 : _r2.memberId),
|
|
43585
|
+
small: __props.layout === "speaker" && ((_s = user == null ? void 0 : user.member) == null ? void 0 : _s.memberId) !== ((_u = (_t2 = speakerUser.value) == null ? void 0 : _t2.member) == null ? void 0 : _u.memberId)
|
|
42952
43586
|
}])
|
|
42953
43587
|
}, [
|
|
42954
43588
|
createElementVNode("div", {
|
|
@@ -42970,7 +43604,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
42970
43604
|
], 2)) : createCommentVNode("", true),
|
|
42971
43605
|
createElementVNode("div", {
|
|
42972
43606
|
class: normalizeClass(["user-name", {
|
|
42973
|
-
small:
|
|
43607
|
+
small: __props.layout === "speaker" && ((_v = user == null ? void 0 : user.member) == null ? void 0 : _v.memberId) !== ((_x2 = (_w2 = speakerUser.value) == null ? void 0 : _w2.member) == null ? void 0 : _x2.memberId)
|
|
42974
43608
|
}])
|
|
42975
43609
|
}, toDisplayString(getUserName2(user)), 3)
|
|
42976
43610
|
], 2)
|
|
@@ -43227,7 +43861,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
43227
43861
|
default: withCtx(() => [
|
|
43228
43862
|
createVNode(DeviceSelector, {
|
|
43229
43863
|
"device-type": currentDeviceType.value,
|
|
43230
|
-
theme:
|
|
43864
|
+
theme: __props.theme,
|
|
43231
43865
|
onClose: _cache[5] || (_cache[5] = ($event) => showDeviceSelector.value = false)
|
|
43232
43866
|
}, null, 8, ["device-type", "theme"])
|
|
43233
43867
|
]),
|
|
@@ -44360,10 +44994,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
44360
44994
|
class: normalizeClass(["js-dialog-sidebar", themeClass.value])
|
|
44361
44995
|
}, [
|
|
44362
44996
|
createElementVNode("div", _hoisted_1$e, [
|
|
44363
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
44997
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.activeTabs, (tab) => {
|
|
44364
44998
|
return openBlock(), createElementBlock("div", {
|
|
44365
44999
|
key: tab.id,
|
|
44366
|
-
class: normalizeClass(["tab-item", { active:
|
|
45000
|
+
class: normalizeClass(["tab-item", { active: __props.currentTab === tab.id }]),
|
|
44367
45001
|
onClick: ($event) => _ctx.$emit("tab-change", tab.id)
|
|
44368
45002
|
}, [
|
|
44369
45003
|
createElementVNode("div", _hoisted_3$d, [
|
|
@@ -44383,17 +45017,17 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
44383
45017
|
}), 128))
|
|
44384
45018
|
]),
|
|
44385
45019
|
createElementVNode("div", _hoisted_4$b, [
|
|
44386
|
-
|
|
45020
|
+
__props.currentTab === "members" ? (openBlock(), createBlock(ManageMembers, {
|
|
44387
45021
|
key: 0,
|
|
44388
|
-
theme:
|
|
45022
|
+
theme: __props.theme
|
|
44389
45023
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
44390
|
-
|
|
45024
|
+
__props.currentTab === "chat" ? (openBlock(), createBlock(Chat, {
|
|
44391
45025
|
key: 1,
|
|
44392
|
-
theme:
|
|
45026
|
+
theme: __props.theme
|
|
44393
45027
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
44394
|
-
|
|
45028
|
+
__props.currentTab === "monitor" ? (openBlock(), createBlock(Monitor, {
|
|
44395
45029
|
key: 2,
|
|
44396
|
-
theme:
|
|
45030
|
+
theme: __props.theme
|
|
44397
45031
|
}, null, 8, ["theme"])) : createCommentVNode("", true)
|
|
44398
45032
|
])
|
|
44399
45033
|
], 2);
|
|
@@ -44417,7 +45051,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
44417
45051
|
};
|
|
44418
45052
|
return (_ctx, _cache) => {
|
|
44419
45053
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
44420
|
-
|
|
45054
|
+
__props.visible ? (openBlock(), createElementBlock("div", {
|
|
44421
45055
|
key: 0,
|
|
44422
45056
|
class: normalizeClass(["screen-sharing-indicator", themeClass.value])
|
|
44423
45057
|
}, [
|
|
@@ -44429,7 +45063,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
44429
45063
|
}, "结束共享")
|
|
44430
45064
|
])
|
|
44431
45065
|
], 2)) : createCommentVNode("", true),
|
|
44432
|
-
|
|
45066
|
+
__props.visible ? (openBlock(), createElementBlock("div", {
|
|
44433
45067
|
key: 1,
|
|
44434
45068
|
class: normalizeClass(["screen-border-indicator", themeClass.value])
|
|
44435
45069
|
}, [..._cache[1] || (_cache[1] = [
|
|
@@ -44600,7 +45234,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
44600
45234
|
}, [
|
|
44601
45235
|
createElementVNode("div", {
|
|
44602
45236
|
class: "tree-node-left",
|
|
44603
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emit("toggle",
|
|
45237
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("toggle", __props.node.id))
|
|
44604
45238
|
}, [
|
|
44605
45239
|
hasChildren.value ? (openBlock(), createElementBlock("span", _hoisted_1$d, [
|
|
44606
45240
|
createVNode(SvgIcon, {
|
|
@@ -44624,7 +45258,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
44624
45258
|
class: "label",
|
|
44625
45259
|
onClick: withModifiers(handleLabelClick, ["stop"])
|
|
44626
45260
|
}, [
|
|
44627
|
-
renderSlot(_ctx.$slots, "label", { node:
|
|
45261
|
+
renderSlot(_ctx.$slots, "label", { node: __props.node }, () => [
|
|
44628
45262
|
createTextVNode(toDisplayString(displayLabel.value), 1)
|
|
44629
45263
|
], true)
|
|
44630
45264
|
]),
|
|
@@ -44645,10 +45279,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
44645
45279
|
return openBlock(), createBlock(_component_TreeNodeItem, {
|
|
44646
45280
|
key: child.id,
|
|
44647
45281
|
node: child,
|
|
44648
|
-
"expanded-keys":
|
|
44649
|
-
"checked-keys":
|
|
44650
|
-
"half-checked-keys":
|
|
44651
|
-
"check-strictly":
|
|
45282
|
+
"expanded-keys": __props.expandedKeys,
|
|
45283
|
+
"checked-keys": __props.checkedKeys,
|
|
45284
|
+
"half-checked-keys": __props.halfCheckedKeys,
|
|
45285
|
+
"check-strictly": __props.checkStrictly,
|
|
44652
45286
|
"label-key": labelKeyRef.value,
|
|
44653
45287
|
"children-key": childrenKeyRef.value,
|
|
44654
45288
|
"disabled-key": disabledKeyRef.value,
|
|
@@ -44775,14 +45409,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
44775
45409
|
};
|
|
44776
45410
|
return (_ctx, _cache) => {
|
|
44777
45411
|
return openBlock(), createElementBlock("ul", _hoisted_1$c, [
|
|
44778
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
45412
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (node) => {
|
|
44779
45413
|
return openBlock(), createBlock(TreeNodeItem, {
|
|
44780
45414
|
key: node.id,
|
|
44781
45415
|
node,
|
|
44782
45416
|
"expanded-keys": expandedKeys.value,
|
|
44783
45417
|
"checked-keys": checkedKeys.value,
|
|
44784
45418
|
"half-checked-keys": halfCheckedKeys.value,
|
|
44785
|
-
"check-strictly":
|
|
45419
|
+
"check-strictly": __props.checkStrictly,
|
|
44786
45420
|
"label-key": resolvedLabelKey.value,
|
|
44787
45421
|
"children-key": resolvedChildrenKey.value,
|
|
44788
45422
|
"disabled-key": resolvedDisabledKey.value,
|
|
@@ -45115,7 +45749,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
45115
45749
|
clearAutoCloseTimer();
|
|
45116
45750
|
});
|
|
45117
45751
|
return (_ctx, _cache) => {
|
|
45118
|
-
return
|
|
45752
|
+
return __props.visible ? (openBlock(), createElementBlock("div", {
|
|
45119
45753
|
key: 0,
|
|
45120
45754
|
class: normalizeClass(["js-meeting-invite-modal-overlay", themeClass.value])
|
|
45121
45755
|
}, [
|
|
@@ -45139,15 +45773,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
45139
45773
|
createElementVNode("div", _hoisted_5$7, [
|
|
45140
45774
|
createElementVNode("div", _hoisted_6$7, [
|
|
45141
45775
|
_cache[3] || (_cache[3] = createElementVNode("div", { style: { "font-size": "16px", "font-weight": "600" } }, "邀请您进入会议", -1)),
|
|
45142
|
-
createElementVNode("div", _hoisted_7$6, toDisplayString(
|
|
45776
|
+
createElementVNode("div", _hoisted_7$6, toDisplayString(__props.meetingInfo.meetingName || "未知会议"), 1),
|
|
45143
45777
|
createElementVNode("div", _hoisted_8$5, [
|
|
45144
45778
|
createElementVNode("div", _hoisted_9$5, [
|
|
45145
45779
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "js-label" }, "邀请人:", -1)),
|
|
45146
|
-
createElementVNode("span", _hoisted_10$5, toDisplayString(
|
|
45780
|
+
createElementVNode("span", _hoisted_10$5, toDisplayString(__props.meetingInfo.inviterName || "未知"), 1)
|
|
45147
45781
|
]),
|
|
45148
45782
|
createElementVNode("div", _hoisted_11$4, [
|
|
45149
45783
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "js-label" }, "邀请时间:", -1)),
|
|
45150
|
-
createElementVNode("span", _hoisted_12$4, toDisplayString(formatTime(
|
|
45784
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString(formatTime(__props.meetingInfo.inviteTime)), 1)
|
|
45151
45785
|
])
|
|
45152
45786
|
])
|
|
45153
45787
|
]),
|
|
@@ -45498,7 +46132,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45498
46132
|
]])
|
|
45499
46133
|
}, [
|
|
45500
46134
|
createVNode(MeetingHeader, {
|
|
45501
|
-
theme:
|
|
46135
|
+
theme: __props.theme,
|
|
45502
46136
|
"is-maximized": isMaximized.value,
|
|
45503
46137
|
onOnChange: handleFooterChange
|
|
45504
46138
|
}, null, 8, ["theme", "is-maximized"]),
|
|
@@ -45506,7 +46140,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45506
46140
|
createElementVNode("div", _hoisted_3$9, [
|
|
45507
46141
|
createVNode(MeetingContent, {
|
|
45508
46142
|
layout: currentLayout.value,
|
|
45509
|
-
theme:
|
|
46143
|
+
theme: __props.theme,
|
|
45510
46144
|
"is-fullscreen": isFullscreen.value,
|
|
45511
46145
|
"join-time": unref(joinTime),
|
|
45512
46146
|
onLayoutChange: handleLayoutChange,
|
|
@@ -45514,7 +46148,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45514
46148
|
}, null, 8, ["layout", "theme", "is-fullscreen", "join-time"]),
|
|
45515
46149
|
createVNode(MeetingFooter, {
|
|
45516
46150
|
"current-layout": currentLayout.value,
|
|
45517
|
-
theme:
|
|
46151
|
+
theme: __props.theme,
|
|
45518
46152
|
"record-state": recordState.value,
|
|
45519
46153
|
onOnChange: handleFooterChange
|
|
45520
46154
|
}, null, 8, ["current-layout", "theme", "record-state"])
|
|
@@ -45524,7 +46158,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45524
46158
|
"open-tabs": Array.from(openTabs.value),
|
|
45525
46159
|
"current-tab": currentTab.value,
|
|
45526
46160
|
"active-tabs": activeTabs.value,
|
|
45527
|
-
theme:
|
|
46161
|
+
theme: __props.theme,
|
|
45528
46162
|
onTabChange: _cache[0] || (_cache[0] = ($event) => currentTab.value = $event),
|
|
45529
46163
|
onTabClose: closeTab
|
|
45530
46164
|
}, null, 8, ["open-tabs", "current-tab", "active-tabs", "theme"])) : createCommentVNode("", true)
|
|
@@ -45538,14 +46172,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45538
46172
|
createVNode(Invite, {
|
|
45539
46173
|
visible: inviteVisible.value,
|
|
45540
46174
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => inviteVisible.value = $event),
|
|
45541
|
-
theme:
|
|
46175
|
+
theme: __props.theme,
|
|
45542
46176
|
"task-id": props.taskId,
|
|
45543
46177
|
onConfirm: handleInvite
|
|
45544
46178
|
}, null, 8, ["visible", "theme", "task-id"])
|
|
45545
46179
|
])) : createCommentVNode("", true),
|
|
45546
46180
|
createVNode(ScreenSharingIndicator, {
|
|
45547
46181
|
visible: unref(isScreenSharing),
|
|
45548
|
-
theme:
|
|
46182
|
+
theme: __props.theme,
|
|
45549
46183
|
onStopSharing: stopScreenShare
|
|
45550
46184
|
}, null, 8, ["visible", "theme"]),
|
|
45551
46185
|
createVNode(MinimizedMeeting, {
|
|
@@ -45558,7 +46192,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
45558
46192
|
visible: unref(meetingInviteVisible),
|
|
45559
46193
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => isRef$1(meetingInviteVisible) ? meetingInviteVisible.value = $event : null),
|
|
45560
46194
|
"meeting-info": unref(meetingInviteInfo),
|
|
45561
|
-
theme:
|
|
46195
|
+
theme: __props.theme,
|
|
45562
46196
|
onAccept: handleMeetingInviteAccept,
|
|
45563
46197
|
onDecline: handleMeetingInviteDecline
|
|
45564
46198
|
}, null, 8, ["visible", "meeting-info", "theme"])
|
|
@@ -45924,7 +46558,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
45924
46558
|
return (_ctx, _cache) => {
|
|
45925
46559
|
const _directive_loding = resolveDirective("loding");
|
|
45926
46560
|
const _directive_draggable = resolveDirective("draggable");
|
|
45927
|
-
return
|
|
46561
|
+
return __props.modelValue ? (openBlock(), createElementBlock("div", {
|
|
45928
46562
|
key: 0,
|
|
45929
46563
|
class: normalizeClass(["js-dialog-overlay", themeClass.value])
|
|
45930
46564
|
}, [
|
|
@@ -46646,13 +47280,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
46646
47280
|
}, [
|
|
46647
47281
|
createElementVNode("div", _hoisted_1$4, [
|
|
46648
47282
|
createElementVNode("div", _hoisted_2$4, [
|
|
46649
|
-
createElementVNode("div", _hoisted_3$4, toDisplayString(unref(getUserAvatar)(
|
|
47283
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(unref(getUserAvatar)(__props.callerInfo)), 1),
|
|
46650
47284
|
createElementVNode("div", _hoisted_4$3, [
|
|
46651
47285
|
createElementVNode("div", {
|
|
46652
47286
|
class: "caller-name",
|
|
46653
|
-
title:
|
|
46654
|
-
}, toDisplayString(
|
|
46655
|
-
|
|
47287
|
+
title: __props.callerInfo.memberName || "未知来电"
|
|
47288
|
+
}, toDisplayString(__props.callerInfo.memberName || "未知来电"), 9, _hoisted_5$2),
|
|
47289
|
+
__props.callerInfo.shortNumber ? (openBlock(), createElementBlock("div", _hoisted_6$2, " 分机:" + toDisplayString(__props.callerInfo.shortNumber), 1)) : createCommentVNode("", true)
|
|
46656
47290
|
])
|
|
46657
47291
|
]),
|
|
46658
47292
|
createElementVNode("div", _hoisted_7$1, [
|
|
@@ -46925,15 +47559,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46925
47559
|
});
|
|
46926
47560
|
return (_ctx, _cache) => {
|
|
46927
47561
|
return openBlock(), createElementBlock("div", {
|
|
46928
|
-
class: normalizeClass(["select-wrapper", { disabled:
|
|
47562
|
+
class: normalizeClass(["select-wrapper", { disabled: __props.disabled }])
|
|
46929
47563
|
}, [
|
|
46930
47564
|
withDirectives(createElementVNode("select", mergeProps({
|
|
46931
47565
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedValue.value = $event),
|
|
46932
47566
|
class: "js-select",
|
|
46933
|
-
disabled:
|
|
47567
|
+
disabled: __props.disabled
|
|
46934
47568
|
}, _ctx.$attrs), [
|
|
46935
|
-
|
|
46936
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
47569
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$1, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
|
|
47570
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
46937
47571
|
return openBlock(), createElementBlock("option", {
|
|
46938
47572
|
key: getOptionKey(option),
|
|
46939
47573
|
value: String(getOptionValue(option))
|