@orangelogic/design-system 2.96.0 → 2.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/asset.B3vySOI-.js +431 -0
- package/library/chunks/{asset.types.6DCzTOQm.js → asset.types.KXRZEtBr.js} +127 -126
- package/library/chunks/{button.BZjbVq8t.js → button.CAa1kvwe.js} +2 -2
- package/library/chunks/{color-swatch-group.CKHEL4hJ.js → color-swatch-group.ChcPlkPU.js} +5 -5
- package/library/chunks/{color-swatch.CbL_TpRZ.js → color-swatch.DJ1kUnBQ.js} +1 -1
- package/library/chunks/{confirm-popover.bBo9aPlX.js → confirm-popover.D4x0nO5g.js} +3 -3
- package/library/chunks/content-builder.CcgZciZN.js +58 -0
- package/library/chunks/{cropper.uKGcvnPk.js → cropper.Bib8Abm3.js} +4937 -4932
- package/library/chunks/{dialog.DRW8iwh-.js → dialog.BLaxLMSc.js} +2 -2
- package/library/chunks/{dom.DURaLV1d.js → dom.0RpWet6y.js} +1 -1
- package/library/chunks/{dot-pagination.CvUr6R4S.js → dot-pagination.-nDdQxJN.js} +1 -1
- package/library/chunks/{file-on-demand.KQlA1JFF.js → file-on-demand.AzwoUvwB.js} +10 -10
- package/library/chunks/{folder-select.DxBOSyvo.js → folder-select.XpkOFzAW.js} +5 -5
- package/library/chunks/{form.nRqYei4e.js → form.Ch1cwYzO.js} +1 -1
- package/library/chunks/{header.ClxEkQPZ.js → header.BZxyeLPK.js} +1 -1
- package/library/chunks/{i18n.W6czbRms.js → i18n.BABe9hN4.js} +6 -0
- package/library/chunks/{icon-button.MqA-pNw8.js → icon-button.C2s3pHG4.js} +1 -1
- package/library/chunks/{iframe.PcSPtm_O.js → iframe.DPccxsnE.js} +1 -1
- package/library/chunks/{image.Dtdklw5q.js → image.9qwbjGNb.js} +1 -1
- package/library/chunks/{image.C-Covc0H.js → image.Cc4V85ID.js} +354 -311
- package/library/chunks/{list-editor.De7nc_Wd.js → list-editor.pVYc_70c.js} +183 -153
- package/library/chunks/{number.CCF6IxpN.js → number.B4PQLJIg.js} +32 -32
- package/library/chunks/{option.Cx54zrJq.js → option.DGXQzdtb.js} +1 -1
- package/library/chunks/{pagination.CG5odPWi.js → pagination.DZqKSA86.js} +4 -4
- package/library/chunks/{responsive.D9TUCX5p.js → responsive.Oz9HWjyQ.js} +1 -1
- package/library/chunks/{string.DfV21HEI.js → string.DUgD4c9f.js} +41 -34
- package/library/chunks/{tab-group.BLZ-qEpp.js → tab-group.BhCf9Smq.js} +4 -4
- package/library/chunks/{table.Cr0s-nqe.js → table.V5PGGTfO.js} +11 -10
- package/library/chunks/{time.BNrE47-8.js → time.BiQnh9wt.js} +1 -1
- package/library/chunks/toast.D3AW3RWv.js +94 -0
- package/library/chunks/transformation.Cqz3hPaQ.js +144 -0
- package/library/chunks/{tree.CKi63r95.js → tree.DZa7k-4E.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +767 -862
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +4 -4
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +4 -7
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +31092 -29872
- package/library/components/video.js +554 -545
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/input.d.ts +1 -2
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-asset-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-timeline-data-resolved.d.ts +10 -0
- package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +12 -1
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +1 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +56 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +7 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +5 -1
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/timeline/timeline.d.ts +18 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +12 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +102 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +3 -1
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +26 -1
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +2 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +4 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +19 -5
- package/library/packages/tools/src/tiptap/extensions/text-align/index.d.ts +2 -0
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/asset-format-picker.d.ts +11 -0
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +37 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +6 -0
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/react-web-component.d.ts +236 -8
- package/library/utils.js +517 -192
- package/package.json +1 -1
- package/library/chunks/asset.Duzr3O3z.js +0 -370
- package/library/chunks/index.BgXEXk4m.js +0 -398
- package/library/chunks/toast.Bc4wpYJ1.js +0 -150
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
|
@@ -28,7 +28,7 @@ const bt = ne("string"), _ = ne("function"), He = ne("number"), $ = (e) => e !==
|
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"),
|
|
31
|
+
}, gt = L("Date"), Et = L("File"), St = L("Blob"), Rt = L("FileList"), At = (e) => $(e) && _(e.pipe), Tt = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -60,7 +60,7 @@ function ze(e, t) {
|
|
|
60
60
|
return s;
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Je = (e) => !H(e) && e !== k;
|
|
64
64
|
function ue() {
|
|
65
65
|
const { caseless: e } = Je(this) && this || {}, t = {}, r = (n, s) => {
|
|
66
66
|
const o = e && ze(t, s) || s;
|
|
@@ -70,13 +70,13 @@ function ue() {
|
|
|
70
70
|
arguments[n] && G(arguments[n], r);
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Pt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, o) => {
|
|
74
74
|
r && _(s) ? e[o] = Ie(s, r) : e[o] = s;
|
|
75
|
-
}, { allOwnKeys: n }), e),
|
|
75
|
+
}, { allOwnKeys: n }), e), jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ft = (e, t, r, n) => {
|
|
76
76
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
77
|
value: t.prototype
|
|
78
78
|
}), r && Object.assign(e.prototype, r);
|
|
79
|
-
},
|
|
79
|
+
}, kt = (e, t, r, n) => {
|
|
80
80
|
let s, o, a;
|
|
81
81
|
const i = {};
|
|
82
82
|
if (t = t || {}, e == null) return t;
|
|
@@ -86,11 +86,11 @@ const jt = (e, t, r, { allOwnKeys: n } = {}) => (G(t, (s, o) => {
|
|
|
86
86
|
e = r !== !1 && ye(e);
|
|
87
87
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
88
88
|
return t;
|
|
89
|
-
},
|
|
89
|
+
}, Nt = (e, t, r) => {
|
|
90
90
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
91
91
|
const n = e.indexOf(t, r);
|
|
92
92
|
return n !== -1 && n === r;
|
|
93
|
-
},
|
|
93
|
+
}, Ut = (e) => {
|
|
94
94
|
if (!e) return null;
|
|
95
95
|
if (I(e)) return e;
|
|
96
96
|
let t = e.length;
|
|
@@ -169,18 +169,18 @@ const Wt = (e) => {
|
|
|
169
169
|
return n;
|
|
170
170
|
};
|
|
171
171
|
return r(e, 0);
|
|
172
|
-
}, Vt = L("AsyncFunction"), Xt = (e) => e && ($(e) || _(e)) && _(e.then) && _(e.catch), Ge = ((e, t) => e ? setImmediate : t ? ((r, n) => (
|
|
173
|
-
s ===
|
|
172
|
+
}, Vt = L("AsyncFunction"), Xt = (e) => e && ($(e) || _(e)) && _(e.then) && _(e.catch), Ge = ((e, t) => e ? setImmediate : t ? ((r, n) => (k.addEventListener("message", ({ source: s, data: o }) => {
|
|
173
|
+
s === k && o === r && n.length && n.shift()();
|
|
174
174
|
}, !1), (s) => {
|
|
175
|
-
n.push(s),
|
|
175
|
+
n.push(s), k.postMessage(r, "*");
|
|
176
176
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
177
177
|
typeof setImmediate == "function",
|
|
178
|
-
_(
|
|
179
|
-
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
178
|
+
_(k.postMessage)
|
|
179
|
+
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Ge, Qt = (e) => e != null && _(e[te]), c = {
|
|
180
180
|
isArray: I,
|
|
181
181
|
isArrayBuffer: Me,
|
|
182
182
|
isBuffer: J,
|
|
183
|
-
isFormData:
|
|
183
|
+
isFormData: Tt,
|
|
184
184
|
isArrayBufferView: mt,
|
|
185
185
|
isString: bt,
|
|
186
186
|
isNumber: He,
|
|
@@ -198,21 +198,21 @@ const Wt = (e) => {
|
|
|
198
198
|
isBlob: St,
|
|
199
199
|
isRegExp: Ht,
|
|
200
200
|
isFunction: _,
|
|
201
|
-
isStream:
|
|
201
|
+
isStream: At,
|
|
202
202
|
isURLSearchParams: Ot,
|
|
203
203
|
isTypedArray: Dt,
|
|
204
204
|
isFileList: Rt,
|
|
205
205
|
forEach: G,
|
|
206
206
|
merge: ue,
|
|
207
|
-
extend:
|
|
207
|
+
extend: Pt,
|
|
208
208
|
trim: vt,
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
211
|
-
toFlatObject:
|
|
209
|
+
stripBOM: jt,
|
|
210
|
+
inherits: Ft,
|
|
211
|
+
toFlatObject: kt,
|
|
212
212
|
kindOf: re,
|
|
213
213
|
kindOfTest: L,
|
|
214
|
-
endsWith:
|
|
215
|
-
toArray:
|
|
214
|
+
endsWith: Nt,
|
|
215
|
+
toArray: Ut,
|
|
216
216
|
forEachEntry: Bt,
|
|
217
217
|
matchAll: It,
|
|
218
218
|
isHTMLForm: qt,
|
|
@@ -226,7 +226,7 @@ const Wt = (e) => {
|
|
|
226
226
|
noop: $t,
|
|
227
227
|
toFiniteNumber: Gt,
|
|
228
228
|
findKey: ze,
|
|
229
|
-
global:
|
|
229
|
+
global: k,
|
|
230
230
|
isContextDefined: Je,
|
|
231
231
|
isSpecCompliantForm: Kt,
|
|
232
232
|
toJSONObject: Wt,
|
|
@@ -293,7 +293,7 @@ function de(e) {
|
|
|
293
293
|
function Ve(e) {
|
|
294
294
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ae(e, t, r) {
|
|
297
297
|
return e ? e.concat(t).map(function(s, o) {
|
|
298
298
|
return s = Ve(s), !r && o ? "[" + s + "]" : s;
|
|
299
299
|
}).join(r ? "." : "") : t;
|
|
@@ -336,12 +336,12 @@ function se(e, t, r) {
|
|
|
336
336
|
return m = Ve(m), g.forEach(function(E, x) {
|
|
337
337
|
!(c.isUndefined(E) || E === null) && t.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
|
-
a === !0 ?
|
|
339
|
+
a === !0 ? Ae([m], x, o) : a === null ? m : m + "[]",
|
|
340
340
|
u(E)
|
|
341
341
|
);
|
|
342
342
|
}), !1;
|
|
343
343
|
}
|
|
344
|
-
return de(f) ? !0 : (t.append(
|
|
344
|
+
return de(f) ? !0 : (t.append(Ae(b, m, o), u(f)), !1);
|
|
345
345
|
}
|
|
346
346
|
const h = [], p = Object.assign(tr, {
|
|
347
347
|
defaultVisitor: l,
|
|
@@ -367,7 +367,7 @@ function se(e, t, r) {
|
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
368
|
return y(e), t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Te(e) {
|
|
371
371
|
const t = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -390,8 +390,8 @@ Xe.append = function(t, r) {
|
|
|
390
390
|
};
|
|
391
391
|
Xe.toString = function(t) {
|
|
392
392
|
const r = t ? function(n) {
|
|
393
|
-
return t.call(this, n,
|
|
394
|
-
} :
|
|
393
|
+
return t.call(this, n, Te);
|
|
394
|
+
} : Te;
|
|
395
395
|
return this._pairs.map(function(s) {
|
|
396
396
|
return r(s[0]) + "=" + r(s[1]);
|
|
397
397
|
}, "").join("&");
|
|
@@ -853,7 +853,7 @@ function Rr(e, t) {
|
|
|
853
853
|
return y ? Math.round(p * 1e3 / y) : void 0;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Ar(e, t) {
|
|
857
857
|
let r = 0, n = 1e3 / t, s, o;
|
|
858
858
|
const a = (u, l = Date.now()) => {
|
|
859
859
|
r = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
@@ -868,7 +868,7 @@ function Tr(e, t) {
|
|
|
868
868
|
const Z = (e, t, r = 3) => {
|
|
869
869
|
let n = 0;
|
|
870
870
|
const s = Rr(50, 250);
|
|
871
|
-
return
|
|
871
|
+
return Ar((o) => {
|
|
872
872
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, d = a - n, u = s(d), l = a <= i;
|
|
873
873
|
n = a;
|
|
874
874
|
const h = {
|
|
@@ -891,7 +891,7 @@ const Z = (e, t, r = 3) => {
|
|
|
891
891
|
total: e,
|
|
892
892
|
loaded: n
|
|
893
893
|
}), t[1]];
|
|
894
|
-
}, xe = (e) => (...t) => c.asap(() => e(...t)),
|
|
894
|
+
}, xe = (e) => (...t) => c.asap(() => e(...t)), Tr = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, O.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
895
895
|
new URL(O.origin),
|
|
896
896
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
897
897
|
) : () => !0, Or = O.hasStandardBrowserEnv ? (
|
|
@@ -932,7 +932,7 @@ function rt(e, t, r) {
|
|
|
932
932
|
return e && (n || r == !1) ? Cr(e, t) : t;
|
|
933
933
|
}
|
|
934
934
|
const Le = (e) => e instanceof C ? { ...e } : e;
|
|
935
|
-
function
|
|
935
|
+
function U(e, t) {
|
|
936
936
|
t = t || {};
|
|
937
937
|
const r = {};
|
|
938
938
|
function n(u, l, h, p) {
|
|
@@ -997,7 +997,7 @@ function N(e, t) {
|
|
|
997
997
|
}), r;
|
|
998
998
|
}
|
|
999
999
|
const nt = (e) => {
|
|
1000
|
-
const t =
|
|
1000
|
+
const t = U({}, e);
|
|
1001
1001
|
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
1002
1002
|
t.headers = a = C.from(a), t.url = Ye(rt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
1003
1003
|
"Authorization",
|
|
@@ -1012,7 +1012,7 @@ const nt = (e) => {
|
|
|
1012
1012
|
a.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (O.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
1015
|
+
if (O.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 && Tr(t.url))) {
|
|
1016
1016
|
const u = s && o && Or.read(o);
|
|
1017
1017
|
u && a.set(s, u);
|
|
1018
1018
|
}
|
|
@@ -1033,7 +1033,7 @@ const nt = (e) => {
|
|
|
1033
1033
|
return;
|
|
1034
1034
|
const E = C.from(
|
|
1035
1035
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1036
|
-
),
|
|
1036
|
+
), A = {
|
|
1037
1037
|
data: !i || i === "text" || i === "json" ? b.responseText : b.response,
|
|
1038
1038
|
status: b.status,
|
|
1039
1039
|
statusText: b.statusText,
|
|
@@ -1041,11 +1041,11 @@ const nt = (e) => {
|
|
|
1041
1041
|
config: e,
|
|
1042
1042
|
request: b
|
|
1043
1043
|
};
|
|
1044
|
-
tt(function(
|
|
1045
|
-
r(
|
|
1046
|
-
}, function(
|
|
1047
|
-
n(
|
|
1048
|
-
},
|
|
1044
|
+
tt(function(F) {
|
|
1045
|
+
r(F), m();
|
|
1046
|
+
}, function(F) {
|
|
1047
|
+
n(F), m();
|
|
1048
|
+
}, A), b = null;
|
|
1049
1049
|
}
|
|
1050
1050
|
"onloadend" in b ? b.onloadend = g : b.onreadystatechange = function() {
|
|
1051
1051
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
@@ -1055,15 +1055,15 @@ const nt = (e) => {
|
|
|
1055
1055
|
n(new w("Network Error", w.ERR_NETWORK, e, b)), b = null;
|
|
1056
1056
|
}, b.ontimeout = function() {
|
|
1057
1057
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
|
-
const
|
|
1058
|
+
const A = s.transitional || Qe;
|
|
1059
1059
|
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new w(
|
|
1060
1060
|
x,
|
|
1061
|
-
|
|
1061
|
+
A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1062
1062
|
e,
|
|
1063
1063
|
b
|
|
1064
1064
|
)), b = null;
|
|
1065
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x,
|
|
1066
|
-
b.setRequestHeader(
|
|
1065
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x, A) {
|
|
1066
|
+
b.setRequestHeader(A, x);
|
|
1067
1067
|
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), i && i !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h, y] = Z(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (E) => {
|
|
1068
1068
|
b && (n(!E || E.type ? new q(null, e, b) : E), b.abort(), b = null);
|
|
1069
1069
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
@@ -1097,7 +1097,7 @@ const nt = (e) => {
|
|
|
1097
1097
|
const { signal: d } = n;
|
|
1098
1098
|
return d.unsubscribe = () => c.asap(i), d;
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1100
|
+
}, Pr = function* (e, t) {
|
|
1101
1101
|
let r = e.byteLength;
|
|
1102
1102
|
if (r < t) {
|
|
1103
1103
|
yield e;
|
|
@@ -1106,10 +1106,10 @@ const nt = (e) => {
|
|
|
1106
1106
|
let n = 0, s;
|
|
1107
1107
|
for (; n < r; )
|
|
1108
1108
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1109
|
-
},
|
|
1110
|
-
for await (const r of
|
|
1111
|
-
yield*
|
|
1112
|
-
},
|
|
1109
|
+
}, jr = async function* (e, t) {
|
|
1110
|
+
for await (const r of Fr(e))
|
|
1111
|
+
yield* Pr(r, t);
|
|
1112
|
+
}, Fr = async function* (e) {
|
|
1113
1113
|
if (e[Symbol.asyncIterator]) {
|
|
1114
1114
|
yield* e;
|
|
1115
1115
|
return;
|
|
@@ -1126,7 +1126,7 @@ const nt = (e) => {
|
|
|
1126
1126
|
await t.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, ve = (e, t, r, n) => {
|
|
1129
|
-
const s =
|
|
1129
|
+
const s = jr(e, t);
|
|
1130
1130
|
let o = 0, a, i = (d) => {
|
|
1131
1131
|
a || (a = !0, n && n(d));
|
|
1132
1132
|
};
|
|
@@ -1154,13 +1154,13 @@ const nt = (e) => {
|
|
|
1154
1154
|
}, {
|
|
1155
1155
|
highWaterMark: 2
|
|
1156
1156
|
});
|
|
1157
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function",
|
|
1157
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ae && typeof ReadableStream == "function", kr = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), at = (e, ...t) => {
|
|
1158
1158
|
try {
|
|
1159
1159
|
return !!e(...t);
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
}
|
|
1163
|
-
},
|
|
1163
|
+
}, Nr = st && at(() => {
|
|
1164
1164
|
let e = !1;
|
|
1165
1165
|
const t = new Request(O.origin, {
|
|
1166
1166
|
body: new ReadableStream(),
|
|
@@ -1170,7 +1170,7 @@ const nt = (e) => {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}).headers.has("Content-Type");
|
|
1172
1172
|
return e && !t;
|
|
1173
|
-
}),
|
|
1173
|
+
}), Pe = 64 * 1024, he = st && at(() => c.isReadableStream(new Response("").body)), ee = {
|
|
1174
1174
|
stream: he && ((e) => e.body)
|
|
1175
1175
|
};
|
|
1176
1176
|
ae && ((e) => {
|
|
@@ -1180,7 +1180,7 @@ ae && ((e) => {
|
|
|
1180
1180
|
});
|
|
1181
1181
|
});
|
|
1182
1182
|
})(new Response());
|
|
1183
|
-
const
|
|
1183
|
+
const Ur = async (e) => {
|
|
1184
1184
|
if (e == null)
|
|
1185
1185
|
return 0;
|
|
1186
1186
|
if (c.isBlob(e))
|
|
@@ -1193,10 +1193,10 @@ const Nr = async (e) => {
|
|
|
1193
1193
|
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1194
1194
|
return e.byteLength;
|
|
1195
1195
|
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1196
|
-
return (await
|
|
1196
|
+
return (await kr(e)).byteLength;
|
|
1197
1197
|
}, Dr = async (e, t) => {
|
|
1198
1198
|
const r = c.toFiniteNumber(e.getContentLength());
|
|
1199
|
-
return r ??
|
|
1199
|
+
return r ?? Ur(t);
|
|
1200
1200
|
}, Br = ae && (async (e) => {
|
|
1201
1201
|
let {
|
|
1202
1202
|
url: t,
|
|
@@ -1219,18 +1219,18 @@ const Nr = async (e) => {
|
|
|
1219
1219
|
});
|
|
1220
1220
|
let b;
|
|
1221
1221
|
try {
|
|
1222
|
-
if (d &&
|
|
1223
|
-
let
|
|
1222
|
+
if (d && Nr && r !== "get" && r !== "head" && (b = await Dr(l, n)) !== 0) {
|
|
1223
|
+
let A = new Request(t, {
|
|
1224
1224
|
method: "POST",
|
|
1225
1225
|
body: n,
|
|
1226
1226
|
duplex: "half"
|
|
1227
|
-
}),
|
|
1228
|
-
if (c.isFormData(n) && (
|
|
1229
|
-
const [
|
|
1227
|
+
}), j;
|
|
1228
|
+
if (c.isFormData(n) && (j = A.headers.get("content-type")) && l.setContentType(j), A.body) {
|
|
1229
|
+
const [F, W] = Ce(
|
|
1230
1230
|
b,
|
|
1231
1231
|
Z(xe(d))
|
|
1232
1232
|
);
|
|
1233
|
-
n = ve(
|
|
1233
|
+
n = ve(A.body, Pe, F, W);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
c.isString(h) || (h = h ? "include" : "omit");
|
|
@@ -1247,25 +1247,25 @@ const Nr = async (e) => {
|
|
|
1247
1247
|
let S = await fetch(f, p);
|
|
1248
1248
|
const E = he && (u === "stream" || u === "response");
|
|
1249
1249
|
if (he && (i || E && m)) {
|
|
1250
|
-
const
|
|
1250
|
+
const A = {};
|
|
1251
1251
|
["status", "statusText", "headers"].forEach((Se) => {
|
|
1252
|
-
|
|
1252
|
+
A[Se] = S[Se];
|
|
1253
1253
|
});
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1254
|
+
const j = c.toFiniteNumber(S.headers.get("content-length")), [F, W] = i && Ce(
|
|
1255
|
+
j,
|
|
1256
1256
|
Z(xe(i), !0)
|
|
1257
1257
|
) || [];
|
|
1258
1258
|
S = new Response(
|
|
1259
|
-
ve(S.body,
|
|
1259
|
+
ve(S.body, Pe, F, () => {
|
|
1260
1260
|
W && W(), m && m();
|
|
1261
1261
|
}),
|
|
1262
|
-
|
|
1262
|
+
A
|
|
1263
1263
|
);
|
|
1264
1264
|
}
|
|
1265
1265
|
u = u || "text";
|
|
1266
1266
|
let x = await ee[c.findKey(ee, u) || "text"](S, e);
|
|
1267
|
-
return !E && m && m(), await new Promise((
|
|
1268
|
-
tt(
|
|
1267
|
+
return !E && m && m(), await new Promise((A, j) => {
|
|
1268
|
+
tt(A, j, {
|
|
1269
1269
|
data: x,
|
|
1270
1270
|
headers: C.from(S.headers),
|
|
1271
1271
|
status: S.status,
|
|
@@ -1296,7 +1296,7 @@ c.forEach(pe, (e, t) => {
|
|
|
1296
1296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const
|
|
1299
|
+
const je = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !1, ot = {
|
|
1300
1300
|
getAdapter: (e) => {
|
|
1301
1301
|
e = c.isArray(e) ? e : [e];
|
|
1302
1302
|
const { length: t } = e;
|
|
@@ -1316,8 +1316,8 @@ const Fe = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1316
1316
|
([i, d]) => `adapter ${i} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
1317
|
);
|
|
1318
1318
|
let a = t ? o.length > 1 ? `since :
|
|
1319
|
-
` + o.map(
|
|
1320
|
-
`) : " " +
|
|
1319
|
+
` + o.map(je).join(`
|
|
1320
|
+
`) : " " + je(o[0]) : "as no adapter specified";
|
|
1321
1321
|
throw new w(
|
|
1322
1322
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1323
1323
|
"ERR_NOT_SUPPORT"
|
|
@@ -1331,7 +1331,7 @@ function le(e) {
|
|
|
1331
1331
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1332
1332
|
throw new q(null, e);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Fe(e) {
|
|
1335
1335
|
return le(e), e.headers = C.from(e.headers), e.data = ce.call(
|
|
1336
1336
|
e,
|
|
1337
1337
|
e.transformRequest
|
|
@@ -1355,7 +1355,7 @@ const it = "1.11.0", oe = {};
|
|
|
1355
1355
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
|
-
const
|
|
1358
|
+
const ke = {};
|
|
1359
1359
|
oe.transitional = function(t, r, n) {
|
|
1360
1360
|
function s(o, a) {
|
|
1361
1361
|
return "[Axios v" + it + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
|
@@ -1366,7 +1366,7 @@ oe.transitional = function(t, r, n) {
|
|
|
1366
1366
|
s(a, " has been removed" + (r ? " in " + r : "")),
|
|
1367
1367
|
w.ERR_DEPRECATED
|
|
1368
1368
|
);
|
|
1369
|
-
return r && !
|
|
1369
|
+
return r && !ke[a] && (ke[a] = !0, console.warn(
|
|
1370
1370
|
s(
|
|
1371
1371
|
a,
|
|
1372
1372
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -1398,7 +1398,7 @@ const Y = {
|
|
|
1398
1398
|
assertOptions: qr,
|
|
1399
1399
|
validators: oe
|
|
1400
1400
|
}, v = Y.validators;
|
|
1401
|
-
let
|
|
1401
|
+
let N = class {
|
|
1402
1402
|
constructor(t) {
|
|
1403
1403
|
this.defaults = t || {}, this.interceptors = {
|
|
1404
1404
|
request: new Oe(),
|
|
@@ -1431,7 +1431,7 @@ let U = class {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
_request(t, r) {
|
|
1434
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r =
|
|
1434
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = U(this.defaults, r);
|
|
1435
1435
|
const { transitional: n, paramsSerializer: s, headers: o } = r;
|
|
1436
1436
|
n !== void 0 && Y.assertOptions(n, {
|
|
1437
1437
|
silentJSONParsing: v.transitional(v.boolean),
|
|
@@ -1467,7 +1467,7 @@ let U = class {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
let l, h = 0, p;
|
|
1469
1469
|
if (!d) {
|
|
1470
|
-
const f = [
|
|
1470
|
+
const f = [Fe.bind(this), void 0];
|
|
1471
1471
|
for (f.unshift(...i), f.push(...u), p = f.length, l = Promise.resolve(r); h < p; )
|
|
1472
1472
|
l = l.then(f[h++], f[h++]);
|
|
1473
1473
|
return l;
|
|
@@ -1484,7 +1484,7 @@ let U = class {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
try {
|
|
1487
|
-
l =
|
|
1487
|
+
l = Fe.call(this, y);
|
|
1488
1488
|
} catch (f) {
|
|
1489
1489
|
return Promise.reject(f);
|
|
1490
1490
|
}
|
|
@@ -1493,14 +1493,14 @@ let U = class {
|
|
|
1493
1493
|
return l;
|
|
1494
1494
|
}
|
|
1495
1495
|
getUri(t) {
|
|
1496
|
-
t =
|
|
1496
|
+
t = U(this.defaults, t);
|
|
1497
1497
|
const r = rt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1498
1498
|
return Ye(r, t.params, t.paramsSerializer);
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1502
|
-
|
|
1503
|
-
return this.request(
|
|
1502
|
+
N.prototype[t] = function(r, n) {
|
|
1503
|
+
return this.request(U(n || {}, {
|
|
1504
1504
|
method: t,
|
|
1505
1505
|
url: r,
|
|
1506
1506
|
data: (n || {}).data
|
|
@@ -1510,7 +1510,7 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1510
1510
|
c.forEach(["post", "put", "patch"], function(t) {
|
|
1511
1511
|
function r(n) {
|
|
1512
1512
|
return function(o, a, i) {
|
|
1513
|
-
return this.request(
|
|
1513
|
+
return this.request(U(i || {}, {
|
|
1514
1514
|
method: t,
|
|
1515
1515
|
headers: n ? {
|
|
1516
1516
|
"Content-Type": "multipart/form-data"
|
|
@@ -1520,7 +1520,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
N.prototype[t] = r(), N.prototype[t + "Form"] = r(!0);
|
|
1524
1524
|
});
|
|
1525
1525
|
let Mr = class ct {
|
|
1526
1526
|
constructor(t) {
|
|
@@ -1672,13 +1672,13 @@ Object.entries(me).forEach(([e, t]) => {
|
|
|
1672
1672
|
me[t] = e;
|
|
1673
1673
|
});
|
|
1674
1674
|
function lt(e) {
|
|
1675
|
-
const t = new
|
|
1676
|
-
return c.extend(r,
|
|
1677
|
-
return lt(
|
|
1675
|
+
const t = new N(e), r = Ie(N.prototype.request, t);
|
|
1676
|
+
return c.extend(r, N.prototype, t, { allOwnKeys: !0 }), c.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1677
|
+
return lt(U(e, s));
|
|
1678
1678
|
}, r;
|
|
1679
1679
|
}
|
|
1680
1680
|
const R = lt(K);
|
|
1681
|
-
R.Axios =
|
|
1681
|
+
R.Axios = N;
|
|
1682
1682
|
R.CanceledError = q;
|
|
1683
1683
|
R.CancelToken = Mr;
|
|
1684
1684
|
R.isCancel = et;
|
|
@@ -1691,7 +1691,7 @@ R.all = function(t) {
|
|
|
1691
1691
|
};
|
|
1692
1692
|
R.spread = Hr;
|
|
1693
1693
|
R.isAxiosError = zr;
|
|
1694
|
-
R.mergeConfig =
|
|
1694
|
+
R.mergeConfig = U;
|
|
1695
1695
|
R.AxiosHeaders = C;
|
|
1696
1696
|
R.formToJSON = (e) => Ze(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1697
1697
|
R.getAdapter = ot.getAdapter;
|
|
@@ -1699,24 +1699,24 @@ R.HttpStatusCode = me;
|
|
|
1699
1699
|
R.default = R;
|
|
1700
1700
|
const {
|
|
1701
1701
|
Axios: Rn,
|
|
1702
|
-
AxiosError:
|
|
1703
|
-
CanceledError:
|
|
1702
|
+
AxiosError: An,
|
|
1703
|
+
CanceledError: Tn,
|
|
1704
1704
|
isCancel: On,
|
|
1705
1705
|
CancelToken: _n,
|
|
1706
1706
|
VERSION: Cn,
|
|
1707
1707
|
all: xn,
|
|
1708
1708
|
Cancel: Ln,
|
|
1709
1709
|
isAxiosError: vn,
|
|
1710
|
-
spread:
|
|
1711
|
-
toFormData:
|
|
1712
|
-
AxiosHeaders:
|
|
1713
|
-
HttpStatusCode:
|
|
1714
|
-
formToJSON:
|
|
1715
|
-
getAdapter:
|
|
1710
|
+
spread: Pn,
|
|
1711
|
+
toFormData: jn,
|
|
1712
|
+
AxiosHeaders: Fn,
|
|
1713
|
+
HttpStatusCode: kn,
|
|
1714
|
+
formToJSON: Nn,
|
|
1715
|
+
getAdapter: Un,
|
|
1716
1716
|
mergeConfig: Dn
|
|
1717
1717
|
} = R;
|
|
1718
1718
|
var Jr = Symbol("cache-parser");
|
|
1719
|
-
function
|
|
1719
|
+
function Ne(e, t) {
|
|
1720
1720
|
(t == null || t > e.length) && (t = e.length);
|
|
1721
1721
|
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
1722
1722
|
return n;
|
|
@@ -1724,7 +1724,7 @@ function Ue(e, t) {
|
|
|
1724
1724
|
function D(e) {
|
|
1725
1725
|
return (typeof e == "string" || typeof e == "number") && (e = Number(e)) >= 0 && e < 1 / 0;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function P(e) {
|
|
1728
1728
|
return e === !0 || typeof e == "number" || typeof e == "string" && e !== "false";
|
|
1729
1729
|
}
|
|
1730
1730
|
var B = Number;
|
|
@@ -1737,9 +1737,9 @@ function ut(e) {
|
|
|
1737
1737
|
if (g) return (g = g.call(m)).next.bind(g);
|
|
1738
1738
|
if (Array.isArray(m) || (g = function(E, x) {
|
|
1739
1739
|
if (E) {
|
|
1740
|
-
if (typeof E == "string") return
|
|
1741
|
-
var
|
|
1742
|
-
return
|
|
1740
|
+
if (typeof E == "string") return Ne(E, x);
|
|
1741
|
+
var A = Object.prototype.toString.call(E).slice(8, -1);
|
|
1742
|
+
return A === "Object" && E.constructor && (A = E.constructor.name), A === "Map" || A === "Set" ? Array.from(E) : A === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A) ? Ne(E, x) : void 0;
|
|
1743
1743
|
}
|
|
1744
1744
|
}(m))) {
|
|
1745
1745
|
g && (m = g);
|
|
@@ -1756,7 +1756,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1756
1756
|
}
|
|
1757
1757
|
return h;
|
|
1758
1758
|
}(e), n = r["max-age"], s = r["max-stale"], o = r["min-fresh"], a = r["s-maxage"], i = r["stale-if-error"], d = r["stale-while-revalidate"];
|
|
1759
|
-
return
|
|
1759
|
+
return P(r.immutable) && (t.immutable = !0), D(n) && (t.maxAge = B(n)), D(s) && (t.maxStale = B(s)), D(o) && (t.minFresh = B(o)), P(r["must-revalidate"]) && (t.mustRevalidate = !0), P(r["must-understand"]) && (t.mustUnderstand = !0), P(r["no-cache"]) && (t.noCache = !0), P(r["no-store"]) && (t.noStore = !0), P(r["no-transform"]) && (t.noTransform = !0), P(r["only-if-cached"]) && (t.onlyIfCached = !0), P(r.private) && (t.private = !0), P(r["proxy-revalidate"]) && (t.proxyRevalidate = !0), P(r.public) && (t.public = !0), D(a) && (t.sMaxAge = B(a)), D(i) && (t.staleIfError = B(i)), D(d) && (t.staleWhileRevalidate = B(d)), t;
|
|
1760
1760
|
}
|
|
1761
1761
|
var $r = Symbol();
|
|
1762
1762
|
function Gr() {
|
|
@@ -1796,7 +1796,7 @@ function Q(e, t) {
|
|
|
1796
1796
|
* (c) 2021-present Arthur Fiorette & Contributors
|
|
1797
1797
|
* Released under the MIT License.
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1799
|
+
const T = Object.freeze({
|
|
1800
1800
|
/**
|
|
1801
1801
|
* ```txt
|
|
1802
1802
|
* If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
|
|
@@ -1899,7 +1899,7 @@ const A = Object.freeze({
|
|
|
1899
1899
|
XAxiosCacheStaleIfError: "x-axios-cache-stale-if-error"
|
|
1900
1900
|
}), Wr = (e, t) => {
|
|
1901
1901
|
if (!e) return "not enough headers";
|
|
1902
|
-
const r = e[
|
|
1902
|
+
const r = e[T.CacheControl];
|
|
1903
1903
|
if (r) {
|
|
1904
1904
|
const s = ut(String(r));
|
|
1905
1905
|
if (
|
|
@@ -1913,7 +1913,7 @@ const A = Object.freeze({
|
|
|
1913
1913
|
cache: 1e3 * 60 * 60 * 24 * 365
|
|
1914
1914
|
};
|
|
1915
1915
|
if (s.maxAge !== void 0) {
|
|
1916
|
-
const o = e[
|
|
1916
|
+
const o = e[T.Age];
|
|
1917
1917
|
return {
|
|
1918
1918
|
cache: o ? (
|
|
1919
1919
|
// If age is present, we must subtract it from maxAge
|
|
@@ -1931,7 +1931,7 @@ const A = Object.freeze({
|
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
const n = e[
|
|
1934
|
+
const n = e[T.Expires];
|
|
1935
1935
|
if (n) {
|
|
1936
1936
|
const s = Date.parse(String(n)) - Date.now();
|
|
1937
1937
|
return s >= 0 ? {
|
|
@@ -1971,7 +1971,7 @@ async function Vr(e, t) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function Ue(e, t) {
|
|
1975
1975
|
return e instanceof RegExp ? (e.lastIndex = 0, e.test(t)) : t.includes(e);
|
|
1976
1976
|
}
|
|
1977
1977
|
function Xr(e) {
|
|
@@ -1988,12 +1988,12 @@ function Yr(e, t) {
|
|
|
1988
1988
|
} = t.cache;
|
|
1989
1989
|
if (r) {
|
|
1990
1990
|
var s;
|
|
1991
|
-
const o = r === !0 ? (s = e.data) == null ? void 0 : s.headers[
|
|
1992
|
-
o && (t.headers[
|
|
1991
|
+
const o = r === !0 ? (s = e.data) == null ? void 0 : s.headers[T.ETag] : r;
|
|
1992
|
+
o && (t.headers[T.IfNoneMatch] = o);
|
|
1993
1993
|
}
|
|
1994
|
-
n && (t.headers[
|
|
1994
|
+
n && (t.headers[T.IfModifiedSince] = n === !0 ? (
|
|
1995
1995
|
// If last-modified is not present, use the createdAt timestamp
|
|
1996
|
-
e.data.headers[
|
|
1996
|
+
e.data.headers[T.LastModified] || new Date(e.createdAt).toUTCString()
|
|
1997
1997
|
) : n.toUTCString());
|
|
1998
1998
|
}
|
|
1999
1999
|
function Qr(e, t) {
|
|
@@ -2010,13 +2010,13 @@ function Zr(e) {
|
|
|
2010
2010
|
return r;
|
|
2011
2011
|
if (r.cache = z({}, e.defaults.cache, r.cache), typeof r.cache.cachePredicate == "object" && r.cache.cachePredicate.ignoreUrls && r.url) {
|
|
2012
2012
|
for (const m of r.cache.cachePredicate.ignoreUrls)
|
|
2013
|
-
if (
|
|
2013
|
+
if (Ue(m, r.url))
|
|
2014
2014
|
return r;
|
|
2015
2015
|
}
|
|
2016
2016
|
if (typeof r.cache.cachePredicate == "object" && r.cache.cachePredicate.allowUrls && r.url) {
|
|
2017
2017
|
let m = !1;
|
|
2018
2018
|
for (const b of r.cache.cachePredicate.allowUrls)
|
|
2019
|
-
if (
|
|
2019
|
+
if (Ue(b, r.url)) {
|
|
2020
2020
|
m = !0;
|
|
2021
2021
|
break;
|
|
2022
2022
|
}
|
|
@@ -2025,7 +2025,7 @@ function Zr(e) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
if (r.cache.cacheTakeover) {
|
|
2027
2027
|
var n, s, o, a, i, d, u, l, h;
|
|
2028
|
-
(o = (n = r.headers)[s =
|
|
2028
|
+
(o = (n = r.headers)[s = T.CacheControl]) != null || (n[s] = "no-cache"), (d = (a = r.headers)[i = T.Pragma]) != null || (a[i] = "no-cache"), (h = (u = r.headers)[l = T.Expires]) != null || (u[l] = "0");
|
|
2029
2029
|
}
|
|
2030
2030
|
if (!be(r.method, r.cache.methods))
|
|
2031
2031
|
return r;
|
|
@@ -2135,7 +2135,7 @@ function tn(e) {
|
|
|
2135
2135
|
return await t(s.id, a, !0), s;
|
|
2136
2136
|
for (const f of Object.keys(s.headers))
|
|
2137
2137
|
f.startsWith("x-axios-cache") && delete s.headers[f];
|
|
2138
|
-
i.etag && i.etag !== !0 && (s.headers[
|
|
2138
|
+
i.etag && i.etag !== !0 && (s.headers[T.XAxiosCacheEtag] = i.etag), i.modifiedSince && (s.headers[T.XAxiosCacheLastModified] = i.modifiedSince === !0 ? "use-cache-timestamp" : i.modifiedSince.toUTCString());
|
|
2139
2139
|
let u = i.ttl || -1, l;
|
|
2140
2140
|
if (i.interpretHeader) {
|
|
2141
2141
|
const f = e.headerInterpreter(s.headers, e.location);
|
|
@@ -2144,7 +2144,7 @@ function tn(e) {
|
|
|
2144
2144
|
f !== "not enough headers" && (typeof f == "number" ? u = f : (u = f.cache, l = f.stale));
|
|
2145
2145
|
}
|
|
2146
2146
|
const h = Qr(s, d.data);
|
|
2147
|
-
typeof u == "function" && (u = await u(s)), i.staleIfError && (s.headers[
|
|
2147
|
+
typeof u == "function" && (u = await u(s)), i.staleIfError && (s.headers[T.XAxiosCacheStaleIfError] = String(u));
|
|
2148
2148
|
const p = {
|
|
2149
2149
|
state: "cached",
|
|
2150
2150
|
ttl: u,
|
|
@@ -2176,7 +2176,7 @@ function tn(e) {
|
|
|
2176
2176
|
s.code !== "ERR_CANCELED" || s.code === "ERR_CANCELED" && u.state !== "cached"
|
|
2177
2177
|
), s;
|
|
2178
2178
|
if (i.staleIfError) {
|
|
2179
|
-
const l = String(d?.headers[
|
|
2179
|
+
const l = String(d?.headers[T.CacheControl]), h = l && ut(l).staleIfError, p = typeof i.staleIfError == "function" ? await i.staleIfError(d, u, s) : i.staleIfError === !0 && h ? h * 1e3 : i.staleIfError;
|
|
2180
2180
|
if (p === !0 || // staleIfError is the number of seconds that stale is allowed to be used
|
|
2181
2181
|
typeof p == "number" && u.createdAt + p > Date.now()) {
|
|
2182
2182
|
await e.storage.set(a, {
|
|
@@ -2204,10 +2204,10 @@ function tn(e) {
|
|
|
2204
2204
|
const rn = (e) => !!e && !!e["is-storage"];
|
|
2205
2205
|
function dt(e) {
|
|
2206
2206
|
const t = e.data.headers;
|
|
2207
|
-
return
|
|
2207
|
+
return T.ETag in t || T.LastModified in t || T.XAxiosCacheEtag in t || T.XAxiosCacheLastModified in t;
|
|
2208
2208
|
}
|
|
2209
2209
|
function nn(e) {
|
|
2210
|
-
return String(e.data.headers[
|
|
2210
|
+
return String(e.data.headers[T.CacheControl]).includes("must-revalidate");
|
|
2211
2211
|
}
|
|
2212
2212
|
function ft(e) {
|
|
2213
2213
|
return dt(e) ? !0 : e.state === "cached" && e.staleTtl !== void 0 && // Only allow stale values after the ttl is already in the past and the staleTtl is in the future.
|
|
@@ -2372,7 +2372,7 @@ ht.interceptors.response.use(
|
|
|
2372
2372
|
})
|
|
2373
2373
|
), Promise.reject(e))
|
|
2374
2374
|
);
|
|
2375
|
-
const Bn = ln(ht), In = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", qn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
2375
|
+
const Bn = ln(ht), In = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", qn = "webapi/extensibility/integrations/gab/assetbrowser/AvailableProxies_4ea_v3", Mn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
2376
2376
|
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}), wn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(wn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(yn || {}), gn = /* @__PURE__ */ ((e) => (e.Album = "Album", e.Audio = "Audio", e.Image = "Image", e.Multimedia = "Multimedia", e.ProjectDocument = "ProjectDocument", e.Story = "Story", e.Video = "Video", e.Widget = "Widget", e))(gn || {});
|
|
2377
2377
|
export {
|
|
2378
2378
|
fn as A,
|
|
@@ -2382,10 +2382,11 @@ export {
|
|
|
2382
2382
|
gn as M,
|
|
2383
2383
|
bn as S,
|
|
2384
2384
|
dn as T,
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2385
|
+
Mn as a,
|
|
2386
|
+
qn as b,
|
|
2387
|
+
An as c,
|
|
2388
|
+
hn as d,
|
|
2389
|
+
mn as e,
|
|
2390
|
+
wn as f,
|
|
2390
2391
|
Bn as h
|
|
2391
2392
|
};
|