@orangelogic/design-system 4.28.0 → 4.29.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.
Files changed (70) hide show
  1. package/library/chunks/{asset-link-format.BEJh0Fqs.js → asset-link-format.DLmg4fTR.js} +387 -381
  2. package/library/chunks/{audio.BZJvTs_4.js → audio.BVQX3_8E.js} +6 -3
  3. package/library/chunks/{bicolor-picker.C0PxxFzf.js → bicolor-picker.C9XSuhnX.js} +1 -1
  4. package/library/chunks/{block-width.CU2PEBrV.js → block-width.rWsXJkoW.js} +553 -529
  5. package/library/chunks/{border-input-group.w-T10AEY.js → border-input-group.DESRXoh1.js} +1 -1
  6. package/library/chunks/{color-picker.CDUhOLEs.js → color-picker.DUEghDon.js} +2 -2
  7. package/library/chunks/{color-swatch-group.DUskDB_p.js → color-swatch-group.Cf9NcMte.js} +45 -45
  8. package/library/chunks/{config-manager.C9OGzzbe.js → config-manager.FRWbPVTc.js} +17 -17
  9. package/library/chunks/{configs-controller.D3dYYbfz.js → configs-controller.R67BMWep.js} +26 -26
  10. package/library/chunks/{document-viewer.C7WOv7ns.js → document-viewer.DZp_IRF7.js} +16 -7
  11. package/library/chunks/{file-on-demand.DUWFRJnE.js → file-on-demand.C_2vBGS3.js} +3 -3
  12. package/library/chunks/{header.qIpzHeNc.js → header.BaWpIXRz.js} +5 -5
  13. package/library/chunks/{image.DzFSYcXq.js → image.BD0t8XU4.js} +1 -1
  14. package/library/chunks/{masonry.D7YK0FcU.js → masonry.B3G5f-eL.js} +1 -1
  15. package/library/chunks/{shadow-input-group.C9DU0Ehy.js → shadow-input-group.CFb61kzG.js} +1 -1
  16. package/library/chunks/src.DKYroWZc.js +720 -0
  17. package/library/chunks/{src.QS2741a8.js → src.fDrPRx_j.js} +8 -8
  18. package/library/chunks/{tab-group.DP9EvXFy.js → tab-group.oiueox5q.js} +627 -627
  19. package/library/chunks/{tab.C2OFvGGj.js → tab.Dd0cNxxc.js} +12 -8
  20. package/library/chunks/{url.CZO_DV8Y.js → url.BCc06dE7.js} +15 -6
  21. package/library/chunks/{video.BHfy8igQ.js → video.Ba5xl_3K.js} +1 -1
  22. package/library/components/asset-link-format.js +1 -1
  23. package/library/components/atoms.js +9 -9
  24. package/library/components/audio.js +1 -1
  25. package/library/components/bicolor-picker.js +1 -1
  26. package/library/components/border-input-group.js +1 -1
  27. package/library/components/color-picker.js +1 -1
  28. package/library/components/color-swatch-group.js +1 -1
  29. package/library/components/document-viewer.js +1 -1
  30. package/library/components/file-on-demand.js +1 -1
  31. package/library/components/header.js +1 -1
  32. package/library/components/image.js +1 -1
  33. package/library/components/masonry.js +1 -1
  34. package/library/components/molecules.js +4 -4
  35. package/library/components/organisms.js +3 -3
  36. package/library/components/shadow-input-group.js +1 -1
  37. package/library/components/tab-group.js +1 -1
  38. package/library/components/tab.js +1 -1
  39. package/library/components/types.js +12189 -12008
  40. package/library/components/video.js +1 -1
  41. package/library/package.json +1 -1
  42. package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
  43. package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +6 -0
  44. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +65 -7
  45. package/library/packages/events/src/events.d.ts +0 -4
  46. package/library/packages/hybrid/rich-text/src/rich-text.d.ts +9 -0
  47. package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +13 -0
  48. package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +8 -0
  49. package/library/packages/organisms/src/content-builder/blocks/column/column.d.ts +5 -0
  50. package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +5 -0
  51. package/library/packages/organisms/src/content-builder/blocks/document-viewer/document-viewer.d.ts +8 -0
  52. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +16 -13
  53. package/library/packages/organisms/src/content-builder/blocks/timeline/timeline.d.ts +0 -2
  54. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +9 -0
  55. package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +11 -0
  56. package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
  57. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +15 -6
  58. package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +1 -1
  59. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  60. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -0
  61. package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
  62. package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
  63. package/library/packages/utils/src/url/url.d.ts +7 -0
  64. package/library/react-web-component.d.ts +25 -1
  65. package/library/utils.js +28 -706
  66. package/package.json +1 -1
  67. package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
  68. package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -9
  69. package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
  70. package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
package/library/utils.js CHANGED
@@ -3,709 +3,31 @@ import { t as o } from "./chunks/custom-element.BEMYNDK1.js";
3
3
  import { r as s, t as c } from "./chunks/i18n.BMXeDUpk.js";
4
4
  import { n as l, r as u, t as d } from "./chunks/slot.CZUlACxT.js";
5
5
  import { t as f } from "./chunks/watch.Ub5r8btz.js";
6
- import { C as p, S as m, _ as h, a as g, b as _, c as ee, d as te, f as ne, g as re, h as ie, i as ae, l as oe, m as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me, v as he, w as ge, x as _e, y as ve } from "./chunks/string.DamEXDH2.js";
7
- import { a as v, c as ye, d as be, f as xe, h as Se, i as Ce, l as we, m as Te, n as Ee, o as De, p as Oe, r as y, s as b, t as x, u as S } from "./chunks/dom.dDaS97WU.js";
8
- import { a as C, i as w, n as T, o as ke, r as E, t as Ae } from "./chunks/form.-ADsa-59.js";
9
- import { a as je, c as Me, i as Ne, l as Pe, n as Fe, o as Ie, r as Le, s as Re, t as ze, u as Be } from "./chunks/browser.Ct4pHP9I.js";
10
- import { t as Ve } from "./chunks/debounce.Ci-xdsHE.js";
11
- import { n as D } from "./chunks/position-picker.dY_vgF_H.js";
12
- import { i as He, n as Ue, r as We, t as Ge } from "./chunks/time.p1t0NCwj.js";
13
- import { a as Ke, c as qe, i as Je, l as Ye, n as Xe, o as Ze, r as Qe, s as $e, t as et } from "./chunks/number.CNp5LKkv.js";
14
- import { a as tt, c as nt, i as rt, l as it, n as at, o as ot, r as st, s as ct, t as lt } from "./chunks/image.C0s1gL4z.js";
15
- import { n as ut, t as dt } from "./chunks/waveform.BFEuRt2_.js";
16
- import { t as ft } from "./chunks/default-value.opqQgoRT.js";
17
- import { a as pt, c as mt, i as ht, l as gt, n as _t, o as vt, r as yt, s as bt, t as xt } from "./chunks/gradient.rrDxmV60.js";
18
- import { t as St } from "./chunks/drag.s0AcVpKh.js";
19
- import { n as Ct, t as wt } from "./chunks/math.od1DVmRk.js";
20
- import { n as Tt, t as Et } from "./chunks/active-elements.Tk45XSNQ.js";
21
- import { t as Dt } from "./chunks/focus-when-visible.DKscgyKo.js";
22
- import { n as Ot, t as kt } from "./chunks/tabbable.Bflg1dha.js";
23
- import { i as At, n as jt, r as Mt, t as Nt } from "./chunks/scroll.CEH_a4pm.js";
24
- import { t as Pt } from "./chunks/user-agent.D2bRhUeS.js";
25
- import { t as Ft } from "./chunks/parse.CDrJ-NY7.js";
26
- import { S as It, _ as Lt, b as Rt, d as zt, f as Bt, g as Vt, h as Ht, m as Ut, p as Wt, t as Gt, u as Kt, v as qt, x as Jt, y as Yt } from "./chunks/date.BL4L64Hx.js";
27
- import { n as Xt } from "./chunks/modal.775mgCbW.js";
28
- import { a as Zt, c as Qt, d as $t, f as en, i as tn, l as nn, n as rn, o as O, p as an, r as on, s as sn, t as cn, u as ln } from "./chunks/url.CZO_DV8Y.js";
29
- import { a as un, c as dn, d as fn, f as pn, h as mn, i as hn, l as gn, m as _n, n as vn, o as yn, p as bn, r as xn, s as Sn, t as Cn, u as wn } from "./chunks/color.CIOzHtLK.js";
30
- import { t as Tn } from "./chunks/converters.CFh-tT4P.js";
31
- import { n as En, r as Dn, t as On } from "./chunks/responsive.L9Csz2w2.js";
32
- import { n as kn, t as An } from "./chunks/template.Cyvih0XQ.js";
33
- import { i as k, r as A, t as j } from "./chunks/asset-link-format.DhdgEsA0.js";
34
- //#region ../../packages/utils/src/date/iso-week-number.ts
35
- function jn(e) {
36
- let t = /* @__PURE__ */ new Date(`${e}T00:00:00Z`);
37
- if (Number.isNaN(t.getTime())) return 0;
38
- let n = new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())), r = n.getUTCDay() || 7;
39
- n.setUTCDate(n.getUTCDate() + 4 - r);
40
- let i = new Date(Date.UTC(n.getUTCFullYear(), 0, 1)), a = (n.getTime() - i.getTime()) / 864e5;
41
- return Math.ceil((a + 1) / 7);
42
- }
43
- //#endregion
44
- //#region ../../packages/utils/src/actions/asset-click.ts
45
- function Mn(e) {
46
- if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
47
- let t = this.ownerDocument.defaultView?.location.origin;
48
- t && this.ownerDocument?.defaultView?.postMessage({
49
- detail: {
50
- assetId: e,
51
- mode: "Details"
52
- },
53
- type: "cx-cms5-view-asset"
54
- }, t);
55
- }
56
- function Nn(e) {
57
- if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
58
- let t = this.ownerDocument.defaultView?.location.origin;
59
- t && this.ownerDocument?.defaultView?.postMessage({
60
- detail: {
61
- assetId: e,
62
- mode: "Container"
63
- },
64
- type: "cx-cms5-view-asset"
65
- }, t);
66
- }
67
- function Pn(e, t = void 0) {
68
- this.ownerDocument.defaultView?.Matrix3 && e && this.ownerDocument.defaultView?.open(O(e, "https://", !0), t ?? "_blank");
69
- }
70
- function Fn(e) {
71
- if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
72
- let t = this.ownerDocument.defaultView?.location.origin;
73
- t && this.ownerDocument?.defaultView?.postMessage({
74
- detail: { assetIds: [e] },
75
- type: "cx-cms5-share-assets"
76
- }, t);
77
- }
78
- function In(e, t) {
79
- if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
80
- let n = t || {}, r = this.ownerDocument.defaultView?.location.origin;
81
- r && this.ownerDocument?.defaultView?.postMessage({
82
- detail: {
83
- assetIds: e,
84
- formats: n
85
- },
86
- type: "cx-cms5-download-assets"
87
- }, r);
88
- }
89
- //#endregion
90
- //#region ../../packages/utils/src/array/array.ts
91
- function M(e, t) {
92
- return e.filter((e, n) => n !== t);
93
- }
94
- function N(e, t) {
95
- return e.filter((e, n) => !t.includes(n));
96
- }
97
- function P(e, t, n) {
98
- return [
99
- ...e.slice(0, t),
100
- n,
101
- ...e.slice(t)
102
- ];
103
- }
104
- function F(e, t, n) {
105
- return [
106
- ...e.slice(0, t),
107
- ...n,
108
- ...e.slice(t)
109
- ];
110
- }
111
- function Ln(e, t, n) {
112
- return e.findIndex((e) => e[t] === n);
113
- }
114
- function Rn(e, t, n) {
115
- let r = M([...e], t), i = n;
116
- return i >= e.length - 1 && (i += 1), P(r, i, e[t]);
117
- }
118
- function zn(e, t, n) {
119
- return F(N([...e], t), n === 0 ? n : t.reduce((e, t) => n > t ? e - 1 : e, n), t.map((t) => e[t]));
120
- }
121
- function Bn(e, t) {
122
- return e.reduce((e, n) => {
123
- let r = n[t];
124
- return e[r] ??= [], e[r].push(n), e;
125
- }, {});
126
- }
127
- function Vn(e, t, n) {
128
- if (!e.length) return [t];
129
- let r = n.findIndex((e) => e.id === t), i = e[e.length - 1], a = n.findIndex((e) => e.id === i);
130
- if (r < 0 || a < 0) return [t];
131
- let o = n.reduce((e, t, n) => (e[t.id] = n, e), {}), s = r > a, c = s ? a : r, l = s ? r : a, u = n.slice(c, l + 1).filter((t) => !(!t || e.includes(t.id))).map((e) => e.id), d = s ? u : [...u].reverse(), f = e.includes(t) ? e.slice(0, e.indexOf(t) + 1) : [...e, ...d];
132
- return f.sort((e, t) => o[e] - o[t]), f;
133
- }
134
- function Hn(e, t, n, r, i, a) {
135
- let o = n + 1;
136
- if (e.length < 2) throw Error("Values array must contain at least 2 elements");
137
- if (n < 0 || o >= e.length) throw Error("Invalid index or not enough values to adjust");
138
- if (r < 0) throw Error("Minimum value must be non-negative");
139
- let s = i + t;
140
- s < r && (t = r - i, s = r);
141
- let c = a - t;
142
- c < r && (t = a - r, s = i + t, c = r), e[n] = parseFloat(s.toFixed(2)), e[o] = parseFloat(c.toFixed(2));
143
- }
144
- //#endregion
145
- //#region ../../packages/utils/src/custom-element/popup.ts
146
- var Un = class {
147
- hostConnected() {}
148
- hostDisconnected() {}
149
- constructor(e) {
150
- this.currentZIndex = v(), (this.host = e).addController(this);
151
- }
152
- async activatePopup() {
153
- this.currentZIndex = v();
154
- }
155
- }, Wn = class {
156
- constructor(e, t = {}) {
157
- this.element = e, this.noChildDrag = t.noChildDrag ?? !1, this.dragThreshold = t.dragThreshold ?? 5, this.isDragging = !1, this.hasDragged = !1, this.startX = 0, this.startY = 0, this.lastClientX = 0, this.lastClientY = 0, this.onMouseDown = this.onMouseDown.bind(this), this.onMouseMove = this.onMouseMove.bind(this), this.onMouseUp = this.onMouseUp.bind(this), this.onClick = this.onClick.bind(this), this.attach();
158
- }
159
- attach() {
160
- this.element.addEventListener("mousedown", this.onMouseDown), window.addEventListener("mouseup", this.onMouseUp), window.addEventListener("mousemove", this.onMouseMove), this.element.addEventListener("click", this.onClick, !0);
161
- }
162
- detach() {
163
- this.element.removeEventListener("mousedown", this.onMouseDown), window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), this.element.removeEventListener("click", this.onClick, !0);
164
- }
165
- onMouseDown(e) {
166
- this.noChildDrag && e.target !== this.element || (this.isDragging = !0, this.hasDragged = !1, this.startX = e.clientX, this.startY = e.clientY, this.lastClientX = e.clientX, this.lastClientY = e.clientY, e.preventDefault());
167
- }
168
- onMouseMove(e) {
169
- if (!this.isDragging) return;
170
- let t = e.clientX - this.lastClientX, n = e.clientY - this.lastClientY;
171
- !this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= t, this.element.scrollTop -= n, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
172
- }
173
- onMouseUp() {
174
- this.isDragging = !1;
175
- }
176
- onClick(e) {
177
- this.hasDragged && (e.stopImmediatePropagation(), e.preventDefault());
178
- }
179
- }, Gn = (e) => e.ctrlKey || e.metaKey, Kn = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
180
- function qn(e, t, n, r = Kn) {
181
- let i = new URL(r + "/" + e);
182
- return Array.isArray(n) ? n.forEach((e) => {
183
- e[1] && i.searchParams.append(e[0], e[1]);
184
- }) : n && Object.keys(n).forEach((e) => {
185
- n[e] && i.searchParams.append(e, n[e]);
186
- }), fetch(i, t);
187
- }
188
- //#endregion
189
- //#region ../../packages/utils/src/font/font.ts
190
- function I(e) {
191
- return e.replaceAll(" ", "_");
192
- }
193
- function Jn(e) {
194
- return e.value ?? I(e.typeface);
195
- }
196
- function Yn(e) {
197
- return I([
198
- e.value || e.name,
199
- e.fontStyle,
200
- e.fontWeight
201
- ].filter((e) => e != null && e !== "").join("_"));
202
- }
203
- function L(e) {
204
- return e.length >= 2 && (e.startsWith("'") && e.endsWith("'") || e.startsWith("\"") && e.endsWith("\""));
205
- }
206
- function R(e) {
207
- return L(e) || !e.includes(" ") ? e : `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
208
- }
209
- function z(e) {
210
- return L(e) ? e.slice(1, -1).replace(/\\(.)/g, "$1") : e;
211
- }
212
- function B(e, t) {
213
- if (!e?.document) return !1;
214
- let n = e.document.createElement("canvas").getContext("2d"), r = (e) => n ? (n.font = `32px ${R(e)}, monospace`, n.measureText("mmmmmmmmmmwwwwwww").width) : 0, i = r("monospace");
215
- return r(t) !== i;
216
- }
217
- function Xn(e, t) {
218
- if (!e?.document?.fonts) return !1;
219
- let n = !1;
220
- return e.document.fonts.forEach((e) => {
221
- e.family.replace(/['"]/g, "").toLowerCase() === t.toLowerCase() && (n = !0);
222
- }), n ? !0 : B(e, t);
223
- }
224
- function V(e) {
225
- let t = /\bitalic\b/i, n = /\b(semi[-\s]?condensed|condensed)\b/i, r = (e) => {
226
- let r = e.fontFamily.toLowerCase(), i = e.fontStyle.toLowerCase(), a = t.test(i), o = n.test(r), s = 0;
227
- return a && (s = 1), o && (s = a ? 3 : 2), {
228
- family: e.fontFamily,
229
- styleRank: s,
230
- weight: Number(e.fontWeight)
231
- };
232
- };
233
- return [...e].sort((e, t) => {
234
- let n = r(e), i = r(t);
235
- return n.weight === i.weight ? n.styleRank === i.styleRank ? n.family.localeCompare(i.family) : n.styleRank - i.styleRank : n.weight - i.weight;
236
- });
237
- }
238
- function Zn(e, t, n = [
239
- 300,
240
- 400,
241
- 500,
242
- 700,
243
- 900
244
- ], r = ["normal", "italic"]) {
245
- let i = [];
246
- if (B(e, t)) for (let e of n) for (let n of r) i.push({
247
- fontFamily: t,
248
- fontStyle: n,
249
- fontWeight: e.toString(),
250
- src: ""
251
- });
252
- return V(i);
253
- }
254
- function Qn(e, t) {
255
- let n = z(t);
256
- return e.find((e) => e.families.length > 0 && (e.typeface === n || e.value === n || e.families.some((e) => e.value === n)));
257
- }
258
- function $n(e, t) {
259
- let n = Qn(e, t);
260
- return n ? V(n.families.map((e) => ({
261
- fontFamily: e.value ?? n.typeface,
262
- fontStyle: e.fontStyle || "normal",
263
- fontWeight: String(e.fontWeight ?? 400),
264
- src: ""
265
- }))) : [];
266
- }
267
- //#endregion
268
- //#region ../../packages/utils/src/form/form.ts
269
- function er(e) {
270
- let t = new FormData(e), n = {};
271
- return t.forEach((e, t) => {
272
- if (Reflect.has(n, t)) {
273
- let r = n[t];
274
- Array.isArray(r) ? r.push(e) : n[t] = [n[t], e];
275
- } else n[t] = e;
276
- }), n;
277
- }
278
- function H(e) {
279
- let t = [...e.getRootNode().querySelectorAll("*")], n = [...e.elements], r = E.get(e), i = r ? Array.from(r) : [];
280
- return [...n, ...i].sort((e, n) => t.indexOf(e) < t.indexOf(n) ? -1 : +(t.indexOf(e) > t.indexOf(n)));
281
- }
282
- function tr(e) {
283
- return H(e).some((e) => e.hasAttribute("data-user-valid") || e.hasAttribute("data-user-invalid"));
284
- }
285
- //#endregion
286
- //#region ../../packages/utils/src/history-manager/history-manager.ts
287
- var nr = class {
288
- constructor(e = null) {
289
- this.history = e === null ? [] : [e], this.redoStack = [];
290
- }
291
- add(e) {
292
- this.history.push(e), this.redoStack = [];
293
- }
294
- undo() {
295
- if (this.history.length > 1) {
296
- let e = this.history.pop();
297
- return this.redoStack.push(e), this.getCurrent();
298
- }
299
- return null;
300
- }
301
- redo() {
302
- if (this.redoStack.length > 0) {
303
- let e = this.redoStack.pop();
304
- return this.history.push(e), e;
305
- }
306
- return null;
307
- }
308
- getCurrent() {
309
- return this.history[this.history.length - 1] || null;
310
- }
311
- clear() {
312
- this.history = [], this.redoStack = [];
313
- }
314
- canUndo() {
315
- return this.history.length > 1;
316
- }
317
- canRedo() {
318
- return this.redoStack.length > 0;
319
- }
320
- getHistory() {
321
- return [...this.history];
322
- }
323
- }, rr = /* @__PURE__ */ function(e) {
324
- return e.ArrowDown = "ArrowDown", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.ArrowUp = "ArrowUp", e.Enter = "Enter", e.Escape = "Escape", e.Tab = "Tab", e;
325
- }({});
326
- //#endregion
327
- //#region ../../packages/utils/src/object/object.ts
328
- function ir(e, t) {
329
- let n = {}, r = new Set(t);
330
- return Object.keys(e).forEach((t) => {
331
- r.has(t) || (n[t] = e[t]);
332
- }), n;
333
- }
334
- function ar(e, t) {
335
- let n = {};
336
- return t.forEach((t) => {
337
- t in e && (n[t] = e[t]);
338
- }), n;
339
- }
340
- function or(e) {
341
- if (!e) return {};
342
- let t;
343
- try {
344
- t = JSON.parse(e);
345
- } catch {
346
- return {};
347
- }
348
- return typeof t == "object" ? t : {};
349
- }
350
- function sr(e, t = !0) {
351
- if (!e) return [];
352
- let n;
353
- try {
354
- n = JSON.parse(e);
355
- } catch {
356
- return [];
357
- }
358
- return Array.isArray(n) ? t ? n.filter((e) => typeof e == "string") : n : [];
359
- }
360
- //#endregion
361
- //#region ../../packages/utils/src/storage/storage.ts
362
- function cr(e, t) {
363
- return typeof Storage < "u" && localStorage.getItem(e) !== null ? localStorage.getItem(e) : t;
364
- }
365
- function lr(e, t) {
366
- typeof Storage < "u" && localStorage.setItem(e, t.toString());
367
- }
368
- //#endregion
369
- //#region ../../packages/utils/src/toast/toast.ts
370
- var ur = (e, t) => {
371
- try {
372
- window.Matrix3?.ShowNotification && window.Matrix3.ShowNotification(e, t ? { notificationType: t.notificationType } : void 0);
373
- } catch {
374
- return;
375
- }
376
- }, U = "/AssetLink/", dr = {
377
- [D.BottomCenter]: j.South,
378
- [D.BottomLeft]: j.Southwest,
379
- [D.BottomRight]: j.Southeast,
380
- [D.CenterCenter]: j.Center,
381
- [D.CenterLeft]: j.West,
382
- [D.CenterRight]: j.East,
383
- [D.TopCenter]: j.North,
384
- [D.TopLeft]: j.Northwest,
385
- [D.TopRight]: j.Northeast
386
- }, W = "/t/", G = [
387
- 400,
388
- 800,
389
- 1200,
390
- 1600,
391
- 2400
392
- ];
393
- function K({ asset: e, baseUrl: t, extension: n, options: r, parameters: i, transformations: a, useSession: o = "" }) {
394
- if (t == null) return "";
395
- let s = t, c = a?.findLast((e) => e.key === A.Quality);
396
- if (c && (a = [...a?.filter((e) => e.key !== A.Quality) || [], c]), a) {
397
- let e = [];
398
- for (let t = 0; t < a.length; t++) {
399
- let n = a[t];
400
- if (n.key === A.Rotate) {
401
- let r = n.value.rotation ?? 0;
402
- for (; a[t + 1]?.key === A.Rotate;) t++, r += a[t].value.rotation ?? 0;
403
- r !== 0 && e.push({
404
- key: A.Rotate,
405
- value: { rotation: r }
406
- });
407
- } else e.push(n);
408
- }
409
- a = e;
410
- }
411
- a && a.length > 0 && (s += "/t/"), a?.forEach(({ key: e, value: t }) => {
412
- if (e === A.Resize) {
413
- if (t.unit === k.AspectRatio && t.ratioWidth && t.ratioHeight) {
414
- s += `re_ar_${t.ratioWidth}:${t.ratioHeight}/`;
415
- return;
416
- }
417
- let e = [...[{
418
- key: "re_w_",
419
- value: Math.round(t.width ?? 0)
420
- }, {
421
- key: "re_h_",
422
- value: Math.round(t.height ?? 0)
423
- }].filter((e) => e.value !== void 0).map((e) => ({
424
- key: e.key,
425
- value: Math.round(Number(e.value))
426
- })), {
427
- key: "re_rm_",
428
- value: "stretch"
429
- }];
430
- e.forEach(({ key: t, value: n }, r) => {
431
- s += `${t}${n}${r < e.length - 1 ? "," : ""}`;
432
- }), s += "/";
433
- }
434
- if (e === A.Crop) {
435
- let e = t.unit === k.AspectRatio && !!t.ratioWidth && !!t.ratioHeight, n = !t.disabledSize && !e, i = n && (t.x !== void 0 || t.y !== void 0), a = [...[
436
- {
437
- key: "c_",
438
- value: t.mode
439
- },
440
- ...e ? [{
441
- key: "ar_",
442
- value: `${t.ratioWidth}:${t.ratioHeight}`
443
- }] : [],
444
- ...n ? [
445
- {
446
- key: "c_w_",
447
- value: Math.round(t.width ?? 0)
448
- },
449
- {
450
- key: "c_h_",
451
- value: Math.round(t.height ?? 0)
452
- },
453
- {
454
- key: "c_x_",
455
- value: Math.round(t.x ?? 0) === 0 && r?.omitZeroXY ? void 0 : Math.round(t.x ?? 0)
456
- },
457
- {
458
- key: "c_y_",
459
- value: Math.round(t.y ?? 0) === 0 && r?.omitZeroXY ? void 0 : Math.round(t.y ?? 0)
460
- }
461
- ] : [],
462
- ...!i && t.focusMode && t.focusMode !== "manual" ? [{
463
- key: t.isFocusModeAuto ? "acm_" : "c_g_",
464
- value: t.focusMode
465
- }] : [],
466
- ...!i && t.focusMode === "manual" && t.position ? [{
467
- key: "c_g_",
468
- value: dr[t.position]
469
- }] : []
470
- ].filter((e) => e.value !== void 0 && e.value !== null).map((e) => ({
471
- key: e.key,
472
- value: e.value
473
- })), ...e ? [] : [{
474
- key: "c_whu_",
475
- value: "pixel"
476
- }]];
477
- a.forEach(({ key: e, value: t }, n) => {
478
- let r = [
479
- "c_w_",
480
- "c_h_",
481
- "c_x_",
482
- "c_y_"
483
- ].includes(e);
484
- s += `${e}${r ? Math.round(Number(t)) : t}${n < a.length - 1 ? "," : ""}`;
485
- }), s += "/";
486
- }
487
- if (e === A.Rotate && ([{
488
- key: "r_a_",
489
- value: t.rotation
490
- }].filter((e) => e.value !== void 0).map((e) => ({
491
- key: e.key,
492
- value: Math.round(Number(e.value))
493
- })).forEach(({ key: e, value: t }) => {
494
- s += `${e}${t}`;
495
- }), s += "/"), e === A.Quality) {
496
- let e = [{
497
- key: "q_level_",
498
- value: t.quality
499
- }].filter((e) => e.value !== void 0).map((e) => ({
500
- key: e.key,
501
- value: Math.round(Number(e.value))
502
- }));
503
- e.forEach(({ key: t, value: n }, r) => {
504
- s += `${t}${n}${r < e.length - 1 ? "," : ""}`;
505
- }), s += "/";
506
- }
507
- if (e === A.Metadata) {
508
- let e = [{
509
- key: "fl_keep_metadata",
510
- value: t.keepMetadata
511
- }].filter((e) => e.value !== void 0).map((e) => ({
512
- key: e.key,
513
- value: e.value
514
- }));
515
- e.forEach(({ key: t }, n) => {
516
- s += `${t}${n < e.length - 1 ? "," : ""}`;
517
- }), s += "/";
518
- }
519
- }), n && (s += `${e?.identifier ?? crypto.randomUUID()}${n}`);
520
- let l = [];
521
- return i && i.length > 0 && i.forEach(({ key: e, value: t }) => {
522
- l.push(`${encodeURIComponent(e.trim())}=${encodeURIComponent(t.trim())}`);
523
- }), t && o && l.push(`UseSession=${encodeURIComponent(o)}`), l.length > 0 && (s += `?${l.join("&")}`), s.endsWith("/") && (s = s.slice(0, -1)), s;
524
- }
525
- var q = ".auto";
526
- function fr(e) {
527
- if (Array.isArray(e)) return e;
528
- if (typeof e != "string" || !e) return [];
529
- try {
530
- let t = JSON.parse(e);
531
- return Array.isArray(t) ? t : [];
532
- } catch {
533
- return [];
534
- }
535
- }
536
- function J(e, t, n = {}) {
537
- let r = n.format === "TRX" && Z(n.extension), i = !!n.autoFormat && !r;
538
- if (!e || !t?.length && !i) return e;
539
- let a = t?.length ? K({
540
- baseUrl: "",
541
- transformations: t
542
- }).replace(/\/t\//g, "") : "";
543
- if (!a && !i) return e;
544
- let o = e.indexOf(U);
545
- if (o < 0) return a ? `${e}${W}${a}` : e;
546
- let s = e.slice(0, o + 11), c = e.slice(o + 11);
547
- if (!c) return e;
548
- let l = c.indexOf(W), u = l >= 0, d = c.indexOf("/"), f = u ? l : d, p = f >= 0 ? c.slice(0, f) : c, m = u ? c.slice(l + 3) : d >= 0 ? c.slice(d + 1) : "", h = m.slice(m.lastIndexOf("/") + 1), g = h ? `${h.replace(/\.[^.]+$/, "")}${q}` : `${p.replace(/\.[^.]+$/, "")}${q}`, _ = [a, i ? g : u ? "" : h].filter(Boolean);
549
- return _.length === 0 ? e : `${s}${p}${W}${_.join("/")}`;
550
- }
551
- function pr(e) {
552
- return `re_w_${Math.round(e)}`;
553
- }
554
- function Y(e, t) {
555
- if (!e || !Number.isFinite(t) || t <= 0) return e;
556
- let n = e.indexOf(U);
557
- if (n < 0) return e;
558
- let r = pr(t), i = e.slice(0, n + 11), a = e.slice(n + 11), o = a.indexOf(W);
559
- if (o >= 0) return `${i}${a.slice(0, o)}${W}${r}/${a.slice(o + 3)}`;
560
- let s = a.indexOf("/");
561
- return s >= 0 ? `${i}${a.slice(0, s)}${W}${r}${a.slice(s)}` : `${i}${a}${W}${r}`;
562
- }
563
- function mr(e) {
564
- let t = e.indexOf(U);
565
- return t < 0 ? !1 : e.slice(t + 11).includes(W);
566
- }
567
- function hr(e) {
568
- let t = e.indexOf(U);
569
- if (t < 0) return !1;
570
- let n = e.slice(t + 11), r = n.indexOf(W);
571
- return r < 0 ? !1 : n.slice(r + 3).includes("/");
572
- }
573
- var gr = "TRX", _r = "TR1", vr = /* @__PURE__ */ new Set([
574
- "avif",
575
- "bmp",
576
- "gif",
577
- "ico",
578
- "jpeg",
579
- "jpg",
580
- "png",
581
- "svg",
582
- "webp"
583
- ]);
584
- function X(e) {
585
- if (!e) return "";
586
- let t = e.trim().toLowerCase();
587
- return t.startsWith(".") ? t.slice(1) : t;
588
- }
589
- function Z(e) {
590
- return X(e) === "gif";
591
- }
592
- function yr(e) {
593
- return X(e) === "svg";
594
- }
595
- var br = 1048576e3, xr = {
596
- b: 1,
597
- byte: 1,
598
- bytes: 1,
599
- gb: 1024 ** 3,
600
- kb: 1024,
601
- mb: 1024 ** 2,
602
- tb: 1024 ** 4
603
- };
604
- function Q(e) {
605
- if (typeof e == "number") return Number.isFinite(e) && e >= 0 ? e : void 0;
606
- if (!e) return;
607
- let t = /^\s*([\d.,]+)\s*([a-z]*)\s*$/i.exec(e);
608
- if (!t) return;
609
- let n = Number(t[1].replace(/,/g, ""));
610
- if (!Number.isFinite(n) || n < 0) return;
611
- let r = t[2].toLowerCase();
612
- if (!r) return n;
613
- let i = xr[r];
614
- return i === void 0 ? void 0 : n * i;
615
- }
616
- function Sr(e, t) {
617
- if (e) return;
618
- let n = typeof t == "number" ? t : Number(t ?? "");
619
- return Number.isFinite(n) && n > 0 ? n : void 0;
620
- }
621
- function Cr(e, t) {
622
- if (!vr.has(X(e))) return "TR1";
623
- let n = Q(t);
624
- return n !== void 0 && n > 1048576e3 ? "TR1" : "TRX";
625
- }
626
- function wr(e, t = {}) {
627
- if (!e.includes(U) || hr(e) || t.format === "TRX" && (Z(t.extension) || yr(t.extension))) return "";
628
- let { maxWidth: n, widths: r = G } = t, i = [...r].filter((e) => Number.isFinite(e) && e > 0).sort((e, t) => e - t);
629
- if (i.length === 0) return "";
630
- let a = i;
631
- if (n !== void 0 && Number.isFinite(n) && n > 0) {
632
- let e = i.filter((e) => e <= n);
633
- a = e.length > 0 ? e : [i[0]];
634
- }
635
- let o = n !== void 0 && Number.isFinite(n) && n > 0, s = (o ? a.filter((e) => n > e * 1.15) : a).map((t) => `${Y(e, t)} ${t}w`);
636
- return o && s.push(`${e} ${n}w`), s.join(", ");
637
- }
638
- function Tr(e, t = 100) {
639
- return !Number.isFinite(e) || e <= 0 ? "" : `${Math.ceil(e / t) * t}px`;
640
- }
641
- //#endregion
642
- //#region ../../packages/utils/src/video/video.ts
643
- var Er = 10;
644
- function Dr(e, t) {
645
- let n = 0, r = e.length;
646
- for (; n < r;) {
647
- let i = Math.floor((n + r) / 2);
648
- e[i].time < t.time ? n = i + 1 : r = i;
649
- }
650
- e.splice(n, 0, t);
651
- }
652
- function $(e, t, n) {
653
- return e.find((e) => e.col === t && e.row === n) ?? null;
654
- }
655
- function Or(e, t, n) {
656
- return new Promise((r) => {
657
- if (t > 0 && Math.abs(e.currentTime - t) < .001) {
658
- r();
659
- return;
660
- }
661
- if (t === 0) {
662
- let t = () => {
663
- e.removeEventListener("seeked", t);
664
- let n = () => {
665
- e.removeEventListener("seeked", n), r();
666
- };
667
- e.addEventListener("seeked", n), e.currentTime = 0;
668
- };
669
- e.addEventListener("seeked", t), e.currentTime = n;
670
- } else {
671
- let n = () => {
672
- e.removeEventListener("seeked", n), r();
673
- };
674
- e.addEventListener("seeked", n), e.currentTime = t;
675
- }
676
- });
677
- }
678
- async function* kr({ cache: e, canvas: t, duration: n, maxInterval: r, src: i, video: a }) {
679
- if (!t) throw Error("Canvas is required");
680
- if (!a) throw Error("Video is required");
681
- let { columns: o, frameHeight: s, frameWidth: c, rows: l, spriteCtx: u } = t;
682
- try {
683
- for (let t = 0; t < l; t++) for (let d = 0; d < o; d++) {
684
- let f = t * o + d, p = f * r;
685
- if (p >= n) continue;
686
- let m = d * c, h = t * s, g = $(e[i] ?? [], d, t), _ = d === o - 1 && t === l - 1 || p + r >= n;
687
- g ? yield {
688
- ...g,
689
- isLastFrame: _
690
- } : (await Or(a, p, r), u.drawImage(a, m, h, c, s), yield {
691
- col: d,
692
- columns: o,
693
- frameHeight: s,
694
- frameWidth: c,
695
- index: f,
696
- isLastFrame: _,
697
- row: t,
698
- rows: l,
699
- time: Number(p.toFixed(10)),
700
- x: m,
701
- y: h
702
- }), await new Promise(requestAnimationFrame);
703
- }
704
- } catch {}
705
- }
706
- function Ar({ duration: e, frameWidth: t, playbackSpeed: n, scale: r }) {
707
- let i = t * n / r;
708
- return i > e && (i = e / 2), i;
709
- }
710
- //#endregion
711
- export { _r as AUTO_FALLBACK_FORMAT, q as AUTO_FORMAT_EXTENSION, br as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Cn as CMYK_VALIDATION_REGEX, Kt as CalendarGrid, vn as ColorType, Un as CortexPopupController, On as DEFAULT_BREAKPOINTS, Gt as DateRangePresets, Wn as DragScroll, Ae as FormControlController, xn as HEX_ALPHA_VALIDATION_REGEX, hn as HEX_VALIDATION_REGEX, d as HasSlotController, nr as HistoryManager, rr as KeyboardKey, c as LocalizeController, xt as MIN_GRADIENT_STOPS, gr as ORIGINAL_FORMAT, Er as PRECISION, cn as RELATIVE_URL_REGEX, un as RGB_VALIDATION_REGEX, G as SRCSET_WIDTH_LADDER, rn as URL_DOMAIN_VALIDATION_REGEX, on as URL_INTRANET_DOMAIN_VALIDATION_REGEX, tn as URL_PROTOCOL_VALIDATION_REGEX, Zt as URL_VALIDATION_REGEX, Et as activeElements, zt as addMonths, Hn as adjustRelativeValues, n as animateTo, O as appendProtocol, sn as appendQueryParam, J as applyTransformationsToUrl, Y as applyWidthToAssetUrl, wr as buildAssetSrcset, Tr as buildSizesFromDisplayWidth, K as buildTransformationString, dt as buildWaveformPath, lt as calculateAspectRatioFit, wt as clamp, at as cleanImageFileName, Ge as clearZeroDurationParts, yn as convertColor, et as convertDataUnits, Xe as convertDurationToMilliseconds, Qe as convertPixelsToAspectRatio, st as convertSrcToBlob, _t as createStopId, rt as cropImage, x as cssValueToPx, o as customElement, T as customErrorValidityState, Ve as debounce, ft as defaultValue, In as downloadAsset, St as drag, pe as emptyToSpace, ce as escapeXML, Sn as extractColor, de as extractExtension, kr as extractFrames, ae as extractRootData, Je as extractValueAndUnit, ut as extractWaveformPeaks, qn as fetchCortexApi, ze as findAncestorWithBuggyStyle, Fe as findContainingBlock, Le as findCuttingAncestor, $ as findFrameByColAndRow, Ln as findIndexByProp, Dt as focusWhenVisible, E as formCollections, Ke as formatAspectRatioString, dn as formatColorCodeSeparator, Ue as formatDurationPartsManually, gn as formatHexCode, Bt as formatIsoToDisplay, Wt as formatMonthYearLabel, Ze as formatNumberWithGrouping, g as formatSecondsToTime, le as formatTimeToSeconds, We as formatWithIntlDurationFormat, $e as gcd, Ee as getActiveElement, Xt as getActiveModals, w as getAssociatedForm, y as getAttributes, fe as getAttributesString, En as getBreakpointsFromCSS, Zn as getBrowserFontVariants, wn as getColorType, tt as getContainedImageSize, Ce as getCortexPopupLayer, v as getCurrentZIndex, Ut as getDateMask, Tt as getDeepestActiveElement, Dn as getDeviceType, He as getDurationPartsByUnitsFormat, De as getElementFromHTMLString, b as getElementFromTemplate, Ht as getFirstDayOfWeek, Yn as getFontFamilyOptionValue, $n as getFontFamilyVariants, H as getFormControls, An as getHighlightedTitle, kn as getHighlightedTitleHtml, l as getInnerHTML, Ar as getInterval, fn as getLightDarkCssString, ot as getNaturalWidthHeight, ye as getNeededPaddingForBoxShadow, Ne as getNextAncestor, At as getOffset, we as getRelativeClickPercentage, ee as getRootIDString, kt as getTabbableBoundary, Ot as getTabbableElements, u as getTextContent, Vt as getTodayIsoDate, Jn as getTypefaceOptionValue, Bn as groupBy, mr as hasTransformSegment, oe as htmlToPlainText, P as insertAtIndex, Dr as insertFrameToCache, F as insertMultipleAtIndex, yt as interpolateStopColor, je as isChrome, Pt as isCortexAdobePlugin, S as isDomElement, be as isElementInHorizontalView, Qt as isExpiredAssetUrl, Ie as isFirefox, Xn as isFontFamilyAvailable, tr as isFormInteracted, me as isGalleryItemCardType, ht as isGradientString, Re as isIOS, xe as isInElement, Gn as isModKey, Me as isSafari, ct as isSaveSrcValid, nn as isValidDomainOrIntranetUrl, Lt as isValidIsoDate, ln as isValidUrl, qt as isoToDate, jn as isoWeekNumber, Oe as loadScript, Nt as lockBodyScrolling, pn as luminanceTextColor, zn as moveMultipleToIndex, Rn as moveToIndex, Vn as multiSelectTo, pt as normalizeAngle, Yt as normalizeToIsoDate, ir as omit, Mn as openAssetOverview, Nn as openFolderOverview, Pn as openLink, te as padPath, ne as parseBooleanString, bn as parseBorder, Rt as parseDisplayToIso, i as parseDuration, Q as parseFileSizeToBytes, vt as parseGradient, Jt as parseIsoDate, or as parseJsonString, _n as parseLightDark, sr as parseListString, mn as parseShadow, fr as parseTransformations, ar as pick, Pe as popoverSupported, t as prefersReducedMotion, Ct as quantizeLargestRemainder, R as quoteFontFamily, cr as readLocalStorageValue, Te as readSearchConsistency, ue as reducePathToDirectChild, s as registerTranslation, M as removeAtIndex, N as removeMultipleAtIndex, nt as resizeImage, Cr as resolveAutoFormat, Sr as resolveAutoMaxWidth, $t as resolveSpaceUrl, qe as rotateBox, it as rotateImage, se as safeExtension, ie as safeString, re as sanitizeHTML, Ye as sanitizeRotation, jt as scrollIntoView, er as serialize, bt as serializeGradient, Fn as shareAsset, e as shimKeyframesHeightAuto, Se as sortByTopPosition, mt as sortStops, V as sortTypefaceVariants, Ft as splitBoxValues, h as splitCamelCaseFormatted, gt as splitTopLevel, r as stopAnimations, Be as supportHLS, B as testFontAvailability, Tn as timecodeConverter, he as toCamelCase, It as toIsoDate, ve as toKebabCase, _ as toPascalCase, en as toRelativeUrl, _e as toTitleCase, an as toUrlPathKey, ur as toast, m as truncateTextMiddle, p as unescapeXML, Mt as unlockBodyScrolling, z as unquoteFontFamily, ge as upperFirst, C as validValidityState, ke as valueMissingValidityState, a as waitForEvent, f as watch, lr as writeLocalStorageValue };
6
+ import { C as p, S as m, _ as h, a as g, b as _, c as v, d as y, f as b, g as x, h as S, i as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I } from "./chunks/string.DamEXDH2.js";
7
+ import { a as L, c as R, d as z, f as B, h as V, i as H, l as U, m as W, n as G, o as K, p as q, r as J, s as Y, t as X, u as Z } from "./chunks/dom.dDaS97WU.js";
8
+ import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "./chunks/form.-ADsa-59.js";
9
+ import { a as ie, c as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/browser.Ct4pHP9I.js";
10
+ import { t as me } from "./chunks/debounce.Ci-xdsHE.js";
11
+ import { i as he, n as ge, r as _e, t as ve } from "./chunks/time.p1t0NCwj.js";
12
+ import { a as ye, c as be, i as xe, l as Se, n as Ce, o as we, r as Te, s as Ee, t as De } from "./chunks/number.CNp5LKkv.js";
13
+ import { a as Oe, c as ke, i as Ae, l as je, n as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./chunks/image.C0s1gL4z.js";
14
+ import { n as Le, t as Re } from "./chunks/waveform.BFEuRt2_.js";
15
+ import { t as ze } from "./chunks/default-value.opqQgoRT.js";
16
+ import { a as Be, c as Ve, i as He, l as Ue, n as We, o as Ge, r as Ke, s as qe, t as Je } from "./chunks/gradient.rrDxmV60.js";
17
+ import { t as Ye } from "./chunks/drag.s0AcVpKh.js";
18
+ import { n as Xe, t as Ze } from "./chunks/math.od1DVmRk.js";
19
+ import { n as Qe, t as $e } from "./chunks/active-elements.Tk45XSNQ.js";
20
+ import { t as et } from "./chunks/focus-when-visible.DKscgyKo.js";
21
+ import { n as tt, t as nt } from "./chunks/tabbable.Bflg1dha.js";
22
+ import { i as rt, n as it, r as at, t as ot } from "./chunks/scroll.CEH_a4pm.js";
23
+ import { t as st } from "./chunks/user-agent.D2bRhUeS.js";
24
+ import { t as ct } from "./chunks/parse.CDrJ-NY7.js";
25
+ import { S as lt, _ as ut, b as dt, d as ft, f as pt, g as mt, h as ht, m as gt, p as _t, t as vt, u as yt, v as bt, x as xt, y as St } from "./chunks/date.BL4L64Hx.js";
26
+ import { $ as Ct, A as wt, B as Tt, F as Et, G as Dt, H as Ot, I as kt, J as At, K as jt, L as Mt, M as Nt, N as Pt, O as Ft, P as It, Q as Lt, R as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, dt as Qt, et as $t, f as en, ft as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, mt as fn, n as pn, nt as mn, o as hn, ot as gn, p as _n, pt as vn, q as yn, r as bn, rt as xn, s as Sn, st as Cn, t as wn, tt as Tn, u as En, ut as Dn, v as On, y as kn, z as An } from "./chunks/src.DKYroWZc.js";
27
+ import { n as jn } from "./chunks/modal.775mgCbW.js";
28
+ import { a as Mn, c as Nn, d as Pn, f as Fn, i as In, l as Ln, m as Rn, n as zn, o as Bn, p as Vn, r as Hn, s as Un, t as Wn, u as Gn } from "./chunks/url.BCc06dE7.js";
29
+ import { a as Kn, c as qn, d as Jn, f as Yn, h as Xn, i as Zn, l as Qn, m as $n, n as er, o as tr, p as nr, r as rr, s as ir, t as ar, u as or } from "./chunks/color.CIOzHtLK.js";
30
+ import { t as sr } from "./chunks/converters.CFh-tT4P.js";
31
+ import { n as cr, r as lr, t as ur } from "./chunks/responsive.L9Csz2w2.js";
32
+ import { n as dr, t as fr } from "./chunks/template.Cyvih0XQ.js";
33
+ export { hn as AUTO_FALLBACK_FORMAT, Sn as AUTO_FORMAT_EXTENSION, Yt as AUTO_ORIGINAL_FORMAT_MAX_BYTES, ar as CMYK_VALIDATION_REGEX, yt as CalendarGrid, er as ColorType, Lt as CortexPopupController, ur as DEFAULT_BREAKPOINTS, vt as DateRangePresets, Wt as DragScroll, re as FormControlController, rr as HEX_ALPHA_VALIDATION_REGEX, Zn as HEX_VALIDATION_REGEX, d as HasSlotController, kt as HistoryManager, Et as KeyboardKey, c as LocalizeController, Je as MIN_GRADIENT_STOPS, ln as ORIGINAL_FORMAT, wn as PRECISION, Wn as RELATIVE_URL_REGEX, Kn as RGB_VALIDATION_REGEX, En as SRCSET_WIDTH_LADDER, zn as URL_DOMAIN_VALIDATION_REGEX, Hn as URL_INTRANET_DOMAIN_VALIDATION_REGEX, In as URL_PROTOCOL_VALIDATION_REGEX, Mn as URL_VALIDATION_REGEX, $e as activeElements, ft as addMonths, Ct as adjustRelativeValues, n as animateTo, Bn as appendProtocol, Un as appendQueryParam, Zt as applyTransformationsToUrl, en as applyWidthToAssetUrl, _n as buildAssetSrcset, dn as buildSizesFromDisplayWidth, rn as buildTransformationString, Re as buildWaveformPath, Ie as calculateAspectRatioFit, Ze as clamp, Me as cleanImageFileName, ve as clearZeroDurationParts, tr as convertColor, De as convertDataUnits, Ce as convertDurationToMilliseconds, Te as convertPixelsToAspectRatio, Pe as convertSrcToBlob, We as createStopId, Ae as cropImage, X as cssValueToPx, o as customElement, ee as customErrorValidityState, me as debounce, ze as defaultValue, un as downloadAsset, Ye as drag, j as emptyToSpace, E as escapeXML, ir as extractColor, k as extractExtension, pn as extractFrames, C as extractRootData, xe as extractValueAndUnit, Le as extractWaveformPeaks, Ut as fetchCortexApi, fe as findAncestorWithBuggyStyle, ce as findContainingBlock, ue as findCuttingAncestor, bn as findFrameByColAndRow, $t as findIndexByProp, et as focusWhenVisible, ne as formCollections, ye as formatAspectRatioString, qn as formatColorCodeSeparator, ge as formatDurationPartsManually, Qn as formatHexCode, pt as formatIsoToDisplay, _t as formatMonthYearLabel, we as formatNumberWithGrouping, g as formatSecondsToTime, D as formatTimeToSeconds, _e as formatWithIntlDurationFormat, Ee as gcd, G as getActiveElement, jn as getActiveModals, $ as getAssociatedForm, J as getAttributes, A as getAttributesString, cr as getBreakpointsFromCSS, Tt as getBrowserFontVariants, or as getColorType, Oe as getContainedImageSize, H as getCortexPopupLayer, L as getCurrentZIndex, gt as getDateMask, Qe as getDeepestActiveElement, lr as getDeviceType, he as getDurationPartsByUnitsFormat, K as getElementFromHTMLString, Y as getElementFromTemplate, ht as getFirstDayOfWeek, Bt as getFontFamilyOptionValue, Ot as getFontFamilyVariants, Mt as getFormControls, fr as getHighlightedTitle, dr as getHighlightedTitleHtml, l as getInnerHTML, an as getInterval, Jn as getLightDarkCssString, Ne as getNaturalWidthHeight, R as getNeededPaddingForBoxShadow, oe as getNextAncestor, rt as getOffset, U as getRelativeClickPercentage, v as getRootIDString, nt as getTabbableBoundary, tt as getTabbableElements, u as getTextContent, mt as getTodayIsoDate, zt as getTypefaceOptionValue, Tn as groupBy, nn as hasTransformSegment, w as htmlToPlainText, mn as insertAtIndex, Kt as insertFrameToCache, xn as insertMultipleAtIndex, Ke as interpolateStopColor, ie as isChrome, st as isCortexAdobePlugin, Z as isDomElement, z as isElementInHorizontalView, Nn as isExpiredAssetUrl, le as isFirefox, Vt as isFontFamilyAvailable, Rt as isFormInteracted, M as isGalleryItemCardType, He as isGradientString, de as isIOS, B as isInElement, Ht as isModKey, ae as isSafari, Fe as isSaveSrcValid, Ln as isValidDomainOrIntranetUrl, ut as isValidIsoDate, Gn as isValidUrl, bt as isoToDate, fn as isoWeekNumber, q as loadScript, ot as lockBodyScrolling, Yn as luminanceTextColor, on as moveMultipleToIndex, qt as moveToIndex, gn as multiSelectTo, Be as normalizeAngle, St as normalizeToIsoDate, sn as omit, Dn as openAssetOverview, Qt as openFolderOverview, tn as openLink, y as padPath, b as parseBooleanString, nr as parseBorder, dt as parseDisplayToIso, i as parseDuration, Gt as parseFileSizeToBytes, Ge as parseGradient, xt as parseIsoDate, Nt as parseJsonString, $n as parseLightDark, Pt as parseListString, Xn as parseShadow, On as parseTransformations, It as pick, se as popoverSupported, t as prefersReducedMotion, Xe as quantizeLargestRemainder, Dt as quoteFontFamily, Pn as readAssetTokenExpiry, cn as readLocalStorageValue, W as readSearchConsistency, O as reducePathToDirectChild, s as registerTranslation, Cn as removeAtIndex, Xt as removeMultipleAtIndex, ke as resizeImage, kn as resolveAutoFormat, Jt as resolveAutoMaxWidth, Fn as resolveSpaceUrl, be as rotateBox, je as rotateImage, T as safeExtension, S as safeString, x as sanitizeHTML, Se as sanitizeRotation, it as scrollIntoView, An as serialize, qe as serializeGradient, vn as shareAsset, e as shimKeyframesHeightAuto, V as sortByTopPosition, Ve as sortStops, jt as sortTypefaceVariants, ct as splitBoxValues, h as splitCamelCaseFormatted, Ue as splitTopLevel, r as stopAnimations, pe as supportHLS, yn as testFontAvailability, sr as timecodeConverter, N as toCamelCase, lt as toIsoDate, I as toKebabCase, _ as toPascalCase, Vn as toRelativeUrl, F as toTitleCase, Rn as toUrlPathKey, Ft as toast, m as truncateTextMiddle, p as unescapeXML, at as unlockBodyScrolling, At as unquoteFontFamily, P as upperFirst, Q as validValidityState, te as valueMissingValidityState, a as waitForEvent, f as watch, wt as writeLocalStorageValue };