@codingfactory/mediables-vue 2.4.19 → 2.4.21

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 (31) hide show
  1. package/dist/{PixiFrameExporter-RBbYifm4.cjs → PixiFrameExporter-C_Ga17dU.cjs} +2 -2
  2. package/dist/{PixiFrameExporter-RBbYifm4.cjs.map → PixiFrameExporter-C_Ga17dU.cjs.map} +1 -1
  3. package/dist/{PixiFrameExporter-Ovg5_owp.js → PixiFrameExporter-FqchRwLH.js} +2 -2
  4. package/dist/{PixiFrameExporter-Ovg5_owp.js.map → PixiFrameExporter-FqchRwLH.js.map} +1 -1
  5. package/dist/components/ExistingMediaSelector.vue.d.ts +40 -0
  6. package/dist/components/form/MediaAttachmentMetadataFields.vue.d.ts +2 -0
  7. package/dist/components/form/index.d.ts +1 -0
  8. package/dist/composables/useFloatingPills.d.ts +1 -1
  9. package/dist/composables/useVideoPlayer.d.ts +1 -1
  10. package/dist/editor-DKRFjaUq.cjs +42 -0
  11. package/dist/editor-DKRFjaUq.cjs.map +1 -0
  12. package/dist/{editor-BfdrdqUU.js → editor-DWDUrVRz.js} +205 -148
  13. package/dist/editor-DWDUrVRz.js.map +1 -0
  14. package/dist/index-BNKYj_dh.cjs +342 -0
  15. package/dist/index-BNKYj_dh.cjs.map +1 -0
  16. package/dist/{index-RIK4lle5.js → index-D6Bzhz_r.js} +7360 -7097
  17. package/dist/index-D6Bzhz_r.js.map +1 -0
  18. package/dist/index.d.ts +3 -0
  19. package/dist/mediables-vanilla.cjs +1 -1
  20. package/dist/mediables-vanilla.mjs +1 -1
  21. package/dist/mediables-vue.cjs +1 -1
  22. package/dist/mediables-vue.mjs +73 -71
  23. package/dist/style.css +1 -1
  24. package/dist/types/media.d.ts +37 -0
  25. package/package.json +1 -1
  26. package/dist/editor-BIDFjsrP.cjs +0 -42
  27. package/dist/editor-BIDFjsrP.cjs.map +0 -1
  28. package/dist/editor-BfdrdqUU.js.map +0 -1
  29. package/dist/index-DM7D7H0K.cjs +0 -342
  30. package/dist/index-DM7D7H0K.cjs.map +0 -1
  31. package/dist/index-RIK4lle5.js.map +0 -1
@@ -224,6 +224,29 @@ class Pe extends U {
224
224
  } catch {
225
225
  }
226
226
  }
227
+ /**
228
+ * Wait for the next animation frame, with a timeout fallback for environments
229
+ * where the frame callback never arrives while the editor is open.
230
+ * @param {number} timeoutMs
231
+ * @returns {Promise<void>}
232
+ */
233
+ _waitForNextFrame(e = 32) {
234
+ return new Promise((t) => {
235
+ if (typeof window > "u") {
236
+ t();
237
+ return;
238
+ }
239
+ let i = !1, r = 0;
240
+ const a = () => {
241
+ i || (i = !0, window.clearTimeout(r), t());
242
+ };
243
+ if (r = window.setTimeout(a, e), typeof window.requestAnimationFrame == "function") {
244
+ window.requestAnimationFrame(() => a());
245
+ return;
246
+ }
247
+ a();
248
+ });
249
+ }
227
250
  /**
228
251
  * Calculate fit scale for a texture
229
252
  * @param {PIXI.Texture} tex
@@ -300,7 +323,7 @@ class Pe extends U {
300
323
  return !1;
301
324
  this.originalTexture = r, this.baseTexture = r, this.sprite && (this.app.stage.removeChild(this.sprite), this.sprite.destroy()), this.sprite = new t.Sprite(r), this.app.stage.addChild(this.sprite), this.fitScale = this.getFitScaleFor(r), this.zoom = 1;
302
325
  const { w: a, h: o } = this._getCssSize();
303
- if (this.applyViewTransform({ center: { x: a / 2, y: o / 2 } }), await new Promise(requestAnimationFrame), !((d = this.app) != null && d.renderer)) return !1;
326
+ if (this.applyViewTransform({ center: { x: a / 2, y: o / 2 } }), await this._waitForNextFrame(), !((d = this.app) != null && d.renderer)) return !1;
304
327
  const n = this.getFitScaleFor(r);
305
328
  return Math.abs(n - this.fitScale) / Math.max(1e-6, n) > 0.02 && (this.fitScale = n, this.applyViewTransform({ center: { x: a / 2, y: o / 2 } })), this.render(), this.emit("textureLoaded", { width: r.width, height: r.height }), !0;
306
329
  }
@@ -974,7 +997,12 @@ const X = class X extends U {
974
997
  * @param {'free'|'1:1'|'4:3'|'16:9'|'3:2'|'2:3'|string} aspect
975
998
  */
976
999
  setAspect(e) {
977
- this.state.get("lockAspectRatio") || (this.state.set("crop.aspect", e), this.applyAspectRatio(), this.constrainCropRect(), this.drawOverlay());
1000
+ if (this.state.get("lockAspectRatio")) return;
1001
+ if (this.state.get("crop.shape") !== "free") {
1002
+ if (this.state.get("lockCropShape")) return;
1003
+ this.state.set("crop.shape", "free");
1004
+ }
1005
+ this.state.set("crop.aspect", e), this.applyAspectRatio(), this.constrainCropRect(), this.drawOverlay();
978
1006
  }
979
1007
  };
980
1008
  /**
@@ -1379,8 +1407,18 @@ const j = [
1379
1407
  { id: "stylize", name: "Stylize", icon: qe },
1380
1408
  // ascii, crt, crossHatch, dot, emboss
1381
1409
  { id: "crop", name: "Crop", icon: ge }
1382
- ];
1383
- class $e {
1410
+ ], $e = {
1411
+ adjust: "adjust",
1412
+ blur: "blur",
1413
+ color: "color",
1414
+ effects: "effects",
1415
+ distortion: "distortion",
1416
+ light: "light",
1417
+ stylize: "stylize",
1418
+ advanced: "adjust"
1419
+ // colorMatrix goes to adjust category
1420
+ };
1421
+ class We {
1384
1422
  constructor(e, t) {
1385
1423
  this.state = e, this.editor = t, this.element = null, this._chips = /* @__PURE__ */ new Map(), this._scrollIndex = 0, this._unsubscribers = [];
1386
1424
  }
@@ -1519,7 +1557,7 @@ class $e {
1519
1557
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._chips.clear(), (e = this.element) == null || e.remove(), this.element = null;
1520
1558
  }
1521
1559
  }
1522
- class We {
1560
+ class Ze {
1523
1561
  constructor(e, t) {
1524
1562
  this.state = e, this.filterManager = t, this.element = null, this._filterCards = /* @__PURE__ */ new Map(), this._scrollIndex = 0, this._unsubscribers = [], this._onToggle = null, this._onSelect = null;
1525
1563
  }
@@ -1676,7 +1714,7 @@ class We {
1676
1714
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._filterCards.clear(), (e = this.element) == null || e.remove(), this.element = null;
1677
1715
  }
1678
1716
  }
1679
- class Ze {
1717
+ class Ge {
1680
1718
  constructor(e, t) {
1681
1719
  this.state = e, this.filterManager = t, this.element = null, this._controls = /* @__PURE__ */ new Map(), this._onChange = null, this._onReset = null, this._onAction = null, this._unsubscribers = [];
1682
1720
  }
@@ -1879,7 +1917,7 @@ class Ze {
1879
1917
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._controls.clear(), (e = this.element) == null || e.remove(), this.element = null;
1880
1918
  }
1881
1919
  }
1882
- class Ge {
1920
+ class Ke {
1883
1921
  constructor(e, t) {
1884
1922
  this.state = e, this.filterManager = t, this._drawer = null, this._body = null, this._titleEl = null, this._isOpen = !1, this._currentFilterId = null, this._controls = /* @__PURE__ */ new Map(), this._onChange = null, this._onReset = null, this._onRemove = null, this._onAction = null, this._container = null;
1885
1923
  }
@@ -2075,7 +2113,7 @@ class Ge {
2075
2113
  this._controls.clear(), (e = this._drawer) == null || e.remove(), this._drawer = null, this._isOpen = !1, this._currentFilterId = null, this._container = null;
2076
2114
  }
2077
2115
  }
2078
- class Ke {
2116
+ class Qe {
2079
2117
  constructor(e, t) {
2080
2118
  this.state = e, this.filterManager = t, this.element = null, this._scrollContainer = null, this._chips = /* @__PURE__ */ new Map(), this._unsubscribers = [], this._onToggle = null, this._onSelect = null;
2081
2119
  }
@@ -2148,11 +2186,11 @@ class Ke {
2148
2186
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._chips.clear(), (e = this.element) == null || e.remove(), this.element = null;
2149
2187
  }
2150
2188
  }
2151
- const Qe = [
2189
+ const Je = [
2152
2190
  { id: "free", name: "Free", icon: je },
2153
2191
  { id: "square", name: "Square", icon: Ue },
2154
2192
  { id: "circle", name: "Circle", icon: Ve }
2155
- ], Je = [
2193
+ ], et = [
2156
2194
  { id: "free", name: "Free" },
2157
2195
  { id: "1:1", name: "1:1" },
2158
2196
  { id: "4:3", name: "4:3" },
@@ -2160,7 +2198,7 @@ const Qe = [
2160
2198
  { id: "3:2", name: "3:2" },
2161
2199
  { id: "2:3", name: "2:3" }
2162
2200
  ];
2163
- class et {
2201
+ class tt {
2164
2202
  constructor(e, t) {
2165
2203
  this.state = e, this.cropManager = t, this.element = null, this._shapeChips = /* @__PURE__ */ new Map(), this._aspectChips = /* @__PURE__ */ new Map(), this._unsubscribers = [];
2166
2204
  }
@@ -2184,7 +2222,7 @@ class et {
2184
2222
  const e = u("div", { className: "crop-section" });
2185
2223
  e.appendChild(u("label", { className: "section-label" }, "Shape"));
2186
2224
  const t = u("div", { className: "chip-row" }), i = this.state.get("crop.shape");
2187
- Qe.forEach((c) => {
2225
+ Je.forEach((c) => {
2188
2226
  const d = J({
2189
2227
  label: c.name,
2190
2228
  icon: c.icon,
@@ -2194,7 +2232,7 @@ class et {
2194
2232
  d.dataset.shape = c.id, d.dataset.testid = `crop-shape-${c.id}`, this._shapeChips.set(c.id, d), t.appendChild(d);
2195
2233
  }), e.appendChild(t), this.element.appendChild(e), this.state.get("lockCropShape") && (e.style.display = "none"), this._shapeSection = e, this._aspectSection = u("div", { className: "crop-section" }), this._aspectSection.appendChild(u("label", { className: "section-label" }, "Aspect Ratio"));
2196
2234
  const r = u("div", { className: "chip-row aspect-row" }), a = this.state.get("crop.aspect");
2197
- Je.forEach((c) => {
2235
+ et.forEach((c) => {
2198
2236
  const d = J({
2199
2237
  label: c.name,
2200
2238
  active: a === c.id,
@@ -2275,7 +2313,7 @@ class et {
2275
2313
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._shapeChips.clear(), this._aspectChips.clear(), (e = this.element) == null || e.remove(), this.element = null;
2276
2314
  }
2277
2315
  }
2278
- class tt {
2316
+ class it {
2279
2317
  constructor(e, t) {
2280
2318
  this.state = e, this.filterManager = t, this.element = null, this._filterItems = /* @__PURE__ */ new Map(), this._unsubscribers = [], this._onRemove = null, this._onReset = null, this._onClearAll = null, this._onUpdateValue = null, this._onSelect = null;
2281
2319
  }
@@ -2476,7 +2514,7 @@ class tt {
2476
2514
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._filterItems.clear(), (e = this.element) == null || e.remove(), this.element = null;
2477
2515
  }
2478
2516
  }
2479
- const D = {
2517
+ const L = {
2480
2518
  name: "free",
2481
2519
  initialMode: "filters",
2482
2520
  cropShape: "free",
@@ -2490,10 +2528,10 @@ const D = {
2490
2528
  maxExportHeight: void 0
2491
2529
  }, G = {
2492
2530
  free: {
2493
- ...D
2531
+ ...L
2494
2532
  },
2495
2533
  avatar: {
2496
- ...D,
2534
+ ...L,
2497
2535
  name: "avatar",
2498
2536
  initialMode: "crop",
2499
2537
  cropShape: "circle",
@@ -2503,7 +2541,7 @@ const D = {
2503
2541
  lockAspectRatio: !0
2504
2542
  },
2505
2543
  banner: {
2506
- ...D,
2544
+ ...L,
2507
2545
  name: "banner",
2508
2546
  initialMode: "crop",
2509
2547
  cropShape: "square",
@@ -2512,8 +2550,18 @@ const D = {
2512
2550
  lockCropShape: !1,
2513
2551
  lockAspectRatio: !0
2514
2552
  },
2553
+ cover: {
2554
+ ...L,
2555
+ name: "cover",
2556
+ initialMode: "crop",
2557
+ cropShape: "free",
2558
+ aspectRatio: "24:5",
2559
+ autoZoomOnCropOverflow: !0,
2560
+ lockCropShape: !0,
2561
+ lockAspectRatio: !0
2562
+ },
2515
2563
  product: {
2516
- ...D,
2564
+ ...L,
2517
2565
  name: "product",
2518
2566
  initialMode: "filters",
2519
2567
  cropShape: "square",
@@ -2523,15 +2571,15 @@ const D = {
2523
2571
  lockAspectRatio: !1
2524
2572
  }
2525
2573
  };
2526
- function it(s) {
2574
+ function rt(s) {
2527
2575
  if (!s)
2528
2576
  return { ...G.free };
2529
2577
  if (typeof s == "object" && s !== null)
2530
- return { ...D, ...s };
2578
+ return { ...L, ...s };
2531
2579
  const e = G[s];
2532
2580
  return e ? { ...e } : { ...G.free };
2533
2581
  }
2534
- class ii extends U {
2582
+ class ri extends U {
2535
2583
  /**
2536
2584
  * Create a new VanillaImageEditor
2537
2585
  * @param {HTMLElement} container - Container element to mount the editor
@@ -2542,7 +2590,7 @@ class ii extends U {
2542
2590
  if (super(), !e)
2543
2591
  throw new Error("VanillaImageEditor: container element is required");
2544
2592
  this._container = e, this._destroyed = !1, this._loadVersion = 0, this._objectUrls = /* @__PURE__ */ new Set();
2545
- const i = t.preset ? it(t.preset) : null, r = i ? {
2593
+ const i = t.preset ? rt(t.preset) : null, r = i ? {
2546
2594
  initialMode: i.initialMode === "crop" ? "crop" : "adjust",
2547
2595
  cropShape: i.cropShape,
2548
2596
  initialAspectRatio: i.aspectRatio
@@ -2596,31 +2644,31 @@ class ii extends U {
2596
2644
  * Initialize UI components
2597
2645
  */
2598
2646
  _initUI() {
2599
- this._toolbar = new He(this._state, this), this._toolbarContainer.appendChild(this._toolbar.render()), this._filterControlsEl = u("div", { className: "filter-controls-container" }), this._categoryCarousel = new $e(this._state, this), this._filterControlsEl.appendChild(this._categoryCarousel.render((r) => {
2647
+ this._toolbar = new He(this._state, this), this._toolbarContainer.appendChild(this._toolbar.render()), this._filterControlsEl = u("div", { className: "filter-controls-container" }), this._categoryCarousel = new We(this._state, this), this._filterControlsEl.appendChild(this._categoryCarousel.render((r) => {
2600
2648
  }));
2601
2649
  const e = u("div", { className: "filter-layout" }), t = u("div", { className: "filter-left-column" });
2602
- this._filterCarousel = new We(this._state, this._filterManager), t.appendChild(this._filterCarousel.render({
2650
+ this._filterCarousel = new Ze(this._state, this._filterManager), t.appendChild(this._filterCarousel.render({
2603
2651
  onToggle: (r, a) => this._handleFilterToggle(r, a),
2604
2652
  onSelect: (r) => {
2605
2653
  this._handleFilterSelect(r), this._isMobile && this._mobileFilterDrawer && this._mobileFilterDrawer.open(r);
2606
2654
  }
2607
- })), this._filterAdjustments = new Ze(this._state, this._filterManager), t.appendChild(this._filterAdjustments.render({
2655
+ })), this._filterAdjustments = new Ge(this._state, this._filterManager), t.appendChild(this._filterAdjustments.render({
2608
2656
  onChange: (r, a, o) => this._handleFilterChange(r, a, o),
2609
2657
  onReset: (r) => this._handleFilterReset(r),
2610
2658
  onAction: (r, a) => this._handleFilterAction(r, a)
2611
2659
  })), e.appendChild(t);
2612
2660
  const i = u("div", { className: "filter-right-column" });
2613
- this._activeFiltersPanel = new tt(this._state, this._filterManager), i.appendChild(this._activeFiltersPanel.render({
2661
+ this._activeFiltersPanel = new it(this._state, this._filterManager), i.appendChild(this._activeFiltersPanel.render({
2614
2662
  onRemove: (r) => this._handleFilterToggle(r, !1),
2615
2663
  onReset: (r) => this._handleFilterReset(r),
2616
2664
  onClearAll: () => this.resetAll(),
2617
2665
  onSelect: (r) => this._handleFilterSelect(r)
2618
- })), e.appendChild(i), this._filterControlsEl.appendChild(e), this._mobileActiveFilters = new Ke(this._state, this._filterManager), this._filterControlsEl.appendChild(this._mobileActiveFilters.render({
2666
+ })), e.appendChild(i), this._filterControlsEl.appendChild(e), this._mobileActiveFilters = new Qe(this._state, this._filterManager), this._filterControlsEl.appendChild(this._mobileActiveFilters.render({
2619
2667
  onToggle: (r, a) => this._handleFilterToggle(r, a),
2620
2668
  onSelect: (r) => {
2621
2669
  this._handleFilterSelect(r), this._isMobile && this._mobileFilterDrawer && this._mobileFilterDrawer.open(r);
2622
2670
  }
2623
- })), this._cropControls = new et(this._state, this._cropManager), this._cropControlsEl = this._cropControls.render(), this._cropControlsEl.style.display = "none", this._controlsSection.appendChild(this._filterControlsEl), this._controlsSection.appendChild(this._cropControlsEl), this._mobileFilterDrawer = new Ge(this._state, this._filterManager), this._mobileFilterDrawer.build(this._controlsSection, {
2671
+ })), this._cropControls = new tt(this._state, this._cropManager), this._cropControlsEl = this._cropControls.render(), this._cropControlsEl.style.display = "none", this._controlsSection.appendChild(this._filterControlsEl), this._controlsSection.appendChild(this._cropControlsEl), this._mobileFilterDrawer = new Ke(this._state, this._filterManager), this._mobileFilterDrawer.build(this._controlsSection, {
2624
2672
  onChange: (r, a, o) => this._handleFilterChange(r, a, o),
2625
2673
  onReset: (r) => this._handleFilterReset(r),
2626
2674
  onRemove: (r) => {
@@ -2772,10 +2820,19 @@ class ii extends U {
2772
2820
  e.crop.rect && (this._cropManager.applyFromPixelRect(e.crop.rect, t), this._state.set("crop.appliedRect", { ...e.crop.rect }), this._state.set("crop.appliedShape", t), this._state.set("crop.appliedAspect", i)), this._state.set("crop.shape", t), this._state.set("crop.aspect", i);
2773
2821
  }
2774
2822
  if (Array.isArray(e.filters)) {
2775
- for (const t of e.filters)
2776
- if (t.enabled && (this._state.toggleFilter(t.id, !0), this._filterManager.initializeValues(t.id), t.values))
2777
- for (const [i, r] of Object.entries(t.values))
2778
- this._state.setFilterValue(t.id, i, r);
2823
+ let t = null;
2824
+ for (const i of e.filters)
2825
+ if (i.enabled && (t === null && (t = i.id), this._state.toggleFilter(i.id, !0), this._filterManager.initializeValues(i.id), i.values))
2826
+ for (const [r, a] of Object.entries(i.values))
2827
+ this._state.setFilterValue(i.id, r, a);
2828
+ if (t !== null) {
2829
+ this._state.set("selectedFilter", t);
2830
+ const i = this._filterManager.getFilterDef(t);
2831
+ if (typeof (i == null ? void 0 : i.category) == "string") {
2832
+ const r = $e[i.category] ?? i.category;
2833
+ this._state.set("selectedCategory", r);
2834
+ }
2835
+ }
2779
2836
  this._filterManager.applyFilters();
2780
2837
  }
2781
2838
  }
@@ -2978,20 +3035,20 @@ class ii extends U {
2978
3035
  }
2979
3036
  }
2980
3037
  const k = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
2981
- function rt(s, e) {
3038
+ function st(s, e) {
2982
3039
  return !Array.isArray(s.mediaTargets) || s.mediaTargets.length === 0 ? !0 : s.mediaTargets.includes(e);
2983
3040
  }
2984
3041
  function m(s) {
2985
3042
  var e;
2986
3043
  return k.has(s.id), k.set(s.id, s), Y.has(s.category) || Y.set(s.category, []), (e = Y.get(s.category)) == null || e.push(s.id), s;
2987
3044
  }
2988
- function st(s) {
3045
+ function at(s) {
2989
3046
  return k.get(s);
2990
3047
  }
2991
3048
  function H() {
2992
3049
  return Array.from(k.values());
2993
3050
  }
2994
- function at() {
3051
+ function ot() {
2995
3052
  H().map((t) => t.id), Object.entries(b).filter(
2996
3053
  (t) => /Filter$/.test(t[0]) && typeof t[1] == "function"
2997
3054
  ).forEach(([t, i]) => {
@@ -3015,16 +3072,16 @@ function at() {
3015
3072
  });
3016
3073
  });
3017
3074
  }
3018
- function ot(s) {
3075
+ function nt(s) {
3019
3076
  return (Y.get(s) || []).map((t) => k.get(t)).filter(Boolean);
3020
3077
  }
3021
- function nt() {
3078
+ function lt() {
3022
3079
  return Array.from(Y.keys());
3023
3080
  }
3024
- function ri(s) {
3081
+ function si(s) {
3025
3082
  return k.has(s);
3026
3083
  }
3027
- function lt(s) {
3084
+ function ct(s) {
3028
3085
  const e = k.get(s);
3029
3086
  if (!e)
3030
3087
  return !1;
@@ -3036,11 +3093,11 @@ function lt(s) {
3036
3093
  }
3037
3094
  return !0;
3038
3095
  }
3039
- function si(s, e) {
3096
+ function ai(s, e) {
3040
3097
  const t = k.get(s);
3041
- return t ? rt(t, e) : !1;
3098
+ return t ? st(t, e) : !1;
3042
3099
  }
3043
- function ct() {
3100
+ function ht() {
3044
3101
  return Array.from(k.values()).map((s) => ({
3045
3102
  id: s.id,
3046
3103
  name: s.name,
@@ -3049,7 +3106,7 @@ function ct() {
3049
3106
  }));
3050
3107
  }
3051
3108
  if (typeof window < "u") {
3052
- window.__DEBUG_FILTERS_LIST = Array.from(k.keys()), window.getAllFilters = H, window.getFilter = st, window.getFiltersByCategory = ot, window.getRegisteredFilters = ct;
3109
+ window.__DEBUG_FILTERS_LIST = Array.from(k.keys()), window.getAllFilters = H, window.getFilter = at, window.getFiltersByCategory = nt, window.getRegisteredFilters = ht;
3053
3110
  const s = m;
3054
3111
  window.registerFilter = (e) => {
3055
3112
  const t = s(e);
@@ -3059,7 +3116,7 @@ if (typeof window < "u") {
3059
3116
  typeof window < "u" && (window.initializeFilterRegistry = window.initializeFilterRegistry || function() {
3060
3117
  return [];
3061
3118
  });
3062
- const { AdjustmentFilter: ht } = b, { ColorMatrixFilter: dt } = w, A = {
3119
+ const { AdjustmentFilter: dt } = b, { ColorMatrixFilter: ut } = w, A = {
3063
3120
  gamma: 1,
3064
3121
  saturation: 1,
3065
3122
  contrast: 1,
@@ -3068,7 +3125,7 @@ const { AdjustmentFilter: ht } = b, { ColorMatrixFilter: dt } = w, A = {
3068
3125
  green: 1,
3069
3126
  blue: 1,
3070
3127
  alpha: 1
3071
- }, ut = /* @__PURE__ */ new Set([
3128
+ }, pt = /* @__PURE__ */ new Set([
3072
3129
  "gamma",
3073
3130
  "saturation",
3074
3131
  "contrast",
@@ -3089,9 +3146,9 @@ function z(s, e) {
3089
3146
  return e;
3090
3147
  }
3091
3148
  function se(s) {
3092
- return ut.has(s);
3149
+ return pt.has(s);
3093
3150
  }
3094
- function pt(s) {
3151
+ function ft(s) {
3095
3152
  return {
3096
3153
  gamma: z(s.gamma, A.gamma),
3097
3154
  saturation: z(s.saturation, A.saturation),
@@ -3114,9 +3171,9 @@ m({
3114
3171
  // Create an instance of the AdjustmentFilter with the provided parameters
3115
3172
  createFilter: (s) => {
3116
3173
  try {
3117
- const e = pt(s ?? {}), t = { ...e };
3174
+ const e = ft(s ?? {}), t = { ...e };
3118
3175
  try {
3119
- const i = new ht(t), r = i;
3176
+ const i = new dt(t), r = i;
3120
3177
  return r._customParams = { ...e }, r.updateUIParam = function(o, n) {
3121
3178
  try {
3122
3179
  if (!se(o))
@@ -3129,7 +3186,7 @@ m({
3129
3186
  }
3130
3187
  }, i;
3131
3188
  } catch {
3132
- const r = new dt(), a = r;
3189
+ const r = new ut(), a = r;
3133
3190
  return a._customParams = { ...e }, ae(r, e), a.updateUIParam = function(n, l) {
3134
3191
  try {
3135
3192
  if (!se(n))
@@ -3239,14 +3296,14 @@ m({
3239
3296
  }
3240
3297
  ]
3241
3298
  });
3242
- const { ColorMatrixFilter: ft } = w, E = {
3299
+ const { ColorMatrixFilter: mt } = w, E = {
3243
3300
  brightness: 1,
3244
3301
  contrast: 1,
3245
3302
  saturation: 1,
3246
3303
  hue: 0,
3247
3304
  sepia: 0,
3248
3305
  negative: !1
3249
- }, mt = /* @__PURE__ */ new Set([
3306
+ }, gt = /* @__PURE__ */ new Set([
3250
3307
  "brightness",
3251
3308
  "contrast",
3252
3309
  "saturation",
@@ -3254,10 +3311,10 @@ const { ColorMatrixFilter: ft } = w, E = {
3254
3311
  "sepia",
3255
3312
  "negative"
3256
3313
  ]);
3257
- function gt(s) {
3258
- return mt.has(s);
3314
+ function bt(s) {
3315
+ return gt.has(s);
3259
3316
  }
3260
- function L(s, e) {
3317
+ function D(s, e) {
3261
3318
  if (typeof s == "number" && Number.isFinite(s))
3262
3319
  return s;
3263
3320
  if (typeof s == "string") {
@@ -3278,13 +3335,13 @@ function ye(s, e) {
3278
3335
  }
3279
3336
  return e;
3280
3337
  }
3281
- function bt(s) {
3338
+ function yt(s) {
3282
3339
  return {
3283
- brightness: L(s.brightness, E.brightness),
3284
- contrast: L(s.contrast, E.contrast),
3285
- saturation: L(s.saturation, E.saturation),
3286
- hue: L(s.hue, E.hue),
3287
- sepia: L(s.sepia, E.sepia),
3340
+ brightness: D(s.brightness, E.brightness),
3341
+ contrast: D(s.contrast, E.contrast),
3342
+ saturation: D(s.saturation, E.saturation),
3343
+ hue: D(s.hue, E.hue),
3344
+ sepia: D(s.sepia, E.sepia),
3288
3345
  negative: ye(s.negative, E.negative)
3289
3346
  };
3290
3347
  }
@@ -3299,17 +3356,17 @@ m({
3299
3356
  // Create an instance of the ColorMatrixFilter with the provided parameters
3300
3357
  createFilter: (s) => {
3301
3358
  try {
3302
- const e = bt(s ?? {}), t = new ft(), i = t;
3359
+ const e = yt(s ?? {}), t = new mt(), i = t;
3303
3360
  return i._customParams = { ...e }, oe(t, e), i.updateUIParam = function(a, o) {
3304
3361
  try {
3305
- if (!gt(a))
3362
+ if (!bt(a))
3306
3363
  return;
3307
3364
  const n = this._customParams ?? { ...E };
3308
3365
  if (a === "negative")
3309
3366
  n.negative = ye(o, n.negative);
3310
3367
  else {
3311
3368
  const l = a;
3312
- n[l] = L(o, n[l]);
3369
+ n[l] = D(o, n[l]);
3313
3370
  }
3314
3371
  this._customParams = n, oe(this, n);
3315
3372
  } catch {
@@ -3583,7 +3640,7 @@ m({
3583
3640
  }
3584
3641
  ]
3585
3642
  });
3586
- const { ColorOverlayFilter: yt } = b;
3643
+ const { ColorOverlayFilter: _t } = b;
3587
3644
  m({
3588
3645
  id: "colorOverlay",
3589
3646
  name: "Color Overlay",
@@ -3598,7 +3655,7 @@ m({
3598
3655
  try {
3599
3656
  let e = 16711680;
3600
3657
  s.color && (typeof s.color == "string" ? e = parseInt(s.color.replace("#", "0x"), 16) : typeof s.color == "number" && (e = s.color));
3601
- const t = new yt({
3658
+ const t = new _t({
3602
3659
  color: e,
3603
3660
  alpha: s.alpha || 0.5
3604
3661
  });
@@ -3830,7 +3887,7 @@ m({
3830
3887
  }
3831
3888
  ]
3832
3889
  });
3833
- const { ColorMatrixFilter: _t } = w;
3890
+ const { ColorMatrixFilter: xt } = w;
3834
3891
  m({
3835
3892
  id: "grayscale",
3836
3893
  name: "Grayscale",
@@ -3843,7 +3900,7 @@ m({
3843
3900
  */
3844
3901
  createFilter: (s) => {
3845
3902
  try {
3846
- const e = new _t();
3903
+ const e = new xt();
3847
3904
  e._customParams = { ...s };
3848
3905
  const t = s.intensity !== void 0 ? s.intensity : 1;
3849
3906
  return ne(e, t), e.updateUIParam = function(i, r) {
@@ -3883,7 +3940,7 @@ m({
3883
3940
  function ne(s, e) {
3884
3941
  s.reset(), s.greyscale(e);
3885
3942
  }
3886
- const { HslAdjustmentFilter: xt } = b;
3943
+ const { HslAdjustmentFilter: Ct } = b;
3887
3944
  m({
3888
3945
  id: "hsl-adjustment",
3889
3946
  name: "HSL Adjustment",
@@ -3895,7 +3952,7 @@ m({
3895
3952
  */
3896
3953
  createFilter: (s) => {
3897
3954
  try {
3898
- const e = new xt({
3955
+ const e = new Ct({
3899
3956
  hue: s.hue !== void 0 ? s.hue : 0,
3900
3957
  saturation: s.saturation !== void 0 ? s.saturation : 0,
3901
3958
  lightness: s.lightness !== void 0 ? s.lightness : 0,
@@ -3993,7 +4050,7 @@ m({
3993
4050
  }
3994
4051
  ]
3995
4052
  });
3996
- const { KawaseBlurFilter: Ct } = b;
4053
+ const { KawaseBlurFilter: wt } = b;
3997
4054
  m({
3998
4055
  id: "kawase-blur",
3999
4056
  name: "Kawase Blur",
@@ -4006,7 +4063,7 @@ m({
4006
4063
  */
4007
4064
  createFilter: (s) => {
4008
4065
  try {
4009
- const e = new Ct({
4066
+ const e = new wt({
4010
4067
  strength: s.strength || 4,
4011
4068
  quality: s.quality || 3,
4012
4069
  clamp: s.clamp || !1,
@@ -4111,7 +4168,7 @@ m({
4111
4168
  }
4112
4169
  ]
4113
4170
  });
4114
- const { MotionBlurFilter: wt } = b;
4171
+ const { MotionBlurFilter: St } = b;
4115
4172
  m({
4116
4173
  id: "motion-blur",
4117
4174
  name: "Motion Blur",
@@ -4124,7 +4181,7 @@ m({
4124
4181
  */
4125
4182
  createFilter: (s) => {
4126
4183
  try {
4127
- const e = new wt({
4184
+ const e = new St({
4128
4185
  velocity: {
4129
4186
  x: s.velocityX !== void 0 ? s.velocityX : 0,
4130
4187
  y: s.velocityY !== void 0 ? s.velocityY : 0
@@ -4219,7 +4276,7 @@ m({
4219
4276
  }
4220
4277
  ]
4221
4278
  });
4222
- const { RadialBlurFilter: St } = b;
4279
+ const { RadialBlurFilter: vt } = b;
4223
4280
  m({
4224
4281
  id: "radial-blur",
4225
4282
  name: "Radial Blur",
@@ -4228,7 +4285,7 @@ m({
4228
4285
  // Create an instance of the RadialBlurFilter with the provided parameters
4229
4286
  createFilter: (s) => {
4230
4287
  try {
4231
- const e = new St({
4288
+ const e = new vt({
4232
4289
  angle: s.angle ?? 20,
4233
4290
  center: { x: s.centerX ?? 0, y: s.centerY ?? 0 },
4234
4291
  kernelSize: s.kernelSize ?? 15,
@@ -4343,7 +4400,7 @@ m({
4343
4400
  }
4344
4401
  ]
4345
4402
  });
4346
- const { TiltShiftFilter: vt } = b;
4403
+ const { TiltShiftFilter: kt } = b;
4347
4404
  m({
4348
4405
  id: "tilt-shift",
4349
4406
  name: "Tilt Shift",
@@ -4352,7 +4409,7 @@ m({
4352
4409
  // Create an instance of the TiltShiftFilter with the provided parameters
4353
4410
  createFilter: (s) => {
4354
4411
  try {
4355
- const e = typeof s.blur == "number" ? s.blur : 100, t = typeof s.gradientBlur == "number" ? s.gradientBlur : 600, i = typeof s.startX == "number" ? s.startX : 0, r = typeof s.startY == "number" ? s.startY : 0.5, a = typeof s.endX == "number" ? s.endX : 1, o = typeof s.endY == "number" ? s.endY : 0.5, n = new vt({
4412
+ const e = typeof s.blur == "number" ? s.blur : 100, t = typeof s.gradientBlur == "number" ? s.gradientBlur : 600, i = typeof s.startX == "number" ? s.startX : 0, r = typeof s.startY == "number" ? s.startY : 0.5, a = typeof s.endX == "number" ? s.endX : 1, o = typeof s.endY == "number" ? s.endY : 0.5, n = new kt({
4356
4413
  blur: Number(e),
4357
4414
  gradientBlur: Number(t),
4358
4415
  start: { x: Number(i), y: Number(r) },
@@ -4471,7 +4528,7 @@ m({
4471
4528
  }
4472
4529
  ]
4473
4530
  });
4474
- const { ZoomBlurFilter: kt } = b;
4531
+ const { ZoomBlurFilter: Pt } = b;
4475
4532
  m({
4476
4533
  id: "zoom-blur",
4477
4534
  name: "Zoom Blur",
@@ -4484,7 +4541,7 @@ m({
4484
4541
  */
4485
4542
  createFilter: (s) => {
4486
4543
  try {
4487
- const e = new kt({
4544
+ const e = new Pt({
4488
4545
  strength: s.strength || 0.1,
4489
4546
  center: {
4490
4547
  x: s.centerX !== void 0 ? s.centerX : 0.5,
@@ -4925,7 +4982,7 @@ m({
4925
4982
  }
4926
4983
  ]
4927
4984
  });
4928
- const Pt = b.ColorReplaceFilter;
4985
+ const Mt = b.ColorReplaceFilter;
4929
4986
  m({
4930
4987
  id: "color-replace",
4931
4988
  name: "Color Replace",
@@ -4942,7 +4999,7 @@ m({
4942
4999
  s.originalColor && (typeof s.originalColor == "string" ? e = parseInt(s.originalColor.replace("#", "0x"), 16) : typeof s.originalColor == "number" && (e = s.originalColor));
4943
5000
  let t = 255;
4944
5001
  s.targetColor && (typeof s.targetColor == "string" ? t = parseInt(s.targetColor.replace("#", "0x"), 16) : typeof s.targetColor == "number" && (t = s.targetColor));
4945
- const i = new Pt({
5002
+ const i = new Mt({
4946
5003
  originalColor: e,
4947
5004
  targetColor: t,
4948
5005
  tolerance: s.tolerance || 0.4
@@ -5006,7 +5063,7 @@ m({
5006
5063
  }
5007
5064
  ]
5008
5065
  });
5009
- const Mt = b.MultiColorReplaceFilter;
5066
+ const Ft = b.MultiColorReplaceFilter;
5010
5067
  m({
5011
5068
  id: "multi-color-replace",
5012
5069
  name: "Multi-Color Replace",
@@ -5032,7 +5089,7 @@ m({
5032
5089
  const i = typeof s.originalColor3 == "string" ? parseInt(s.originalColor3.replace("#", "0x"), 16) : s.originalColor3, r = typeof s.targetColor3 == "string" ? parseInt(s.targetColor3.replace("#", "0x"), 16) : s.targetColor3;
5033
5090
  e.push([i, r]);
5034
5091
  }
5035
- const t = new Mt(
5092
+ const t = new Ft(
5036
5093
  e,
5037
5094
  s.tolerance || 0.05,
5038
5095
  3
@@ -5143,7 +5200,7 @@ m({
5143
5200
  }
5144
5201
  ]
5145
5202
  });
5146
- const { RGBSplitFilter: Ft } = b;
5203
+ const { RGBSplitFilter: At } = b;
5147
5204
  m({
5148
5205
  id: "rgb-split",
5149
5206
  name: "RGB Split",
@@ -5164,7 +5221,7 @@ m({
5164
5221
  }, i = {
5165
5222
  x: s.blueX !== void 0 ? s.blueX : 0,
5166
5223
  y: s.blueY !== void 0 ? s.blueY : 0
5167
- }, r = new Ft({
5224
+ }, r = new At({
5168
5225
  red: e,
5169
5226
  green: t,
5170
5227
  blue: i
@@ -5277,7 +5334,7 @@ m({
5277
5334
  }
5278
5335
  ]
5279
5336
  });
5280
- const { AdvancedBloomFilter: At } = b;
5337
+ const { AdvancedBloomFilter: zt } = b;
5281
5338
  m({
5282
5339
  id: "advanced-bloom",
5283
5340
  name: "Advanced Bloom",
@@ -5286,7 +5343,7 @@ m({
5286
5343
  // Create an instance of the AdvancedBloomFilter with the provided parameters
5287
5344
  createFilter: (s) => {
5288
5345
  try {
5289
- const e = new At({
5346
+ const e = new zt({
5290
5347
  threshold: s.threshold || 0.5,
5291
5348
  bloomScale: s.bloomScale || 1,
5292
5349
  brightness: s.brightness || 1,
@@ -5433,7 +5490,7 @@ m({
5433
5490
  }
5434
5491
  ]
5435
5492
  });
5436
- const zt = b.AsciiFilter;
5493
+ const Rt = b.AsciiFilter;
5437
5494
  m({
5438
5495
  id: "ascii",
5439
5496
  name: "ASCII",
@@ -5445,7 +5502,7 @@ m({
5445
5502
  const e = typeof s.size == "number" ? s.size : 8;
5446
5503
  let t = s.color;
5447
5504
  typeof t == "string" && t.startsWith("#") && (t = parseInt(t.replace("#", "0x"), 16));
5448
- const i = s.replaceColor === !0, r = new zt({
5505
+ const i = s.replaceColor === !0, r = new Rt({
5449
5506
  size: e,
5450
5507
  color: t,
5451
5508
  replaceColor: i
@@ -5512,7 +5569,7 @@ m({
5512
5569
  }
5513
5570
  ]
5514
5571
  });
5515
- const Rt = b.BackdropBlurFilter;
5572
+ const Nt = b.BackdropBlurFilter;
5516
5573
  m({
5517
5574
  id: "backdrop-blur",
5518
5575
  name: "Backdrop Blur",
@@ -5521,7 +5578,7 @@ m({
5521
5578
  // Create an instance of the BackdropBlurFilter with the provided parameters
5522
5579
  createFilter: (s) => {
5523
5580
  try {
5524
- const e = new Rt({
5581
+ const e = new Nt({
5525
5582
  // Higher strength values (20-50) make the effect more noticeable
5526
5583
  strength: s.strength || 20,
5527
5584
  quality: s.quality || 4,
@@ -5619,7 +5676,7 @@ m({
5619
5676
  }
5620
5677
  ]
5621
5678
  });
5622
- const { BevelFilter: Nt } = b;
5679
+ const { BevelFilter: Tt } = b;
5623
5680
  m({
5624
5681
  id: "bevel",
5625
5682
  name: "Bevel",
@@ -5631,7 +5688,7 @@ m({
5631
5688
  */
5632
5689
  createFilter: (s) => {
5633
5690
  try {
5634
- const e = s.lightColor ? s.lightColor.replace("#", "0x") : "0xffffff", t = s.shadowColor ? s.shadowColor.replace("#", "0x") : "0x000000", i = new Nt({
5691
+ const e = s.lightColor ? s.lightColor.replace("#", "0x") : "0xffffff", t = s.shadowColor ? s.shadowColor.replace("#", "0x") : "0x000000", i = new Tt({
5635
5692
  rotation: s.rotation !== void 0 ? s.rotation : 45,
5636
5693
  thickness: s.thickness !== void 0 ? s.thickness : 2,
5637
5694
  lightColor: parseInt(e, 16),
@@ -5747,7 +5804,7 @@ m({
5747
5804
  }
5748
5805
  ]
5749
5806
  });
5750
- const { BloomFilter: Tt } = b;
5807
+ const { BloomFilter: It } = b;
5751
5808
  m({
5752
5809
  id: "bloom",
5753
5810
  name: "Bloom/Glow",
@@ -5756,7 +5813,7 @@ m({
5756
5813
  // Create an instance of the BloomFilter with the provided parameters
5757
5814
  createFilter: (s) => {
5758
5815
  try {
5759
- const e = typeof s.strengthX == "number" ? s.strengthX : 2, t = typeof s.strengthY == "number" ? s.strengthY : 2, i = typeof s.quality == "number" ? s.quality : 4, r = typeof s.resolution == "number" ? s.resolution : 1, a = typeof s.kernelSize == "number" ? s.kernelSize : 5, o = new Tt({
5816
+ const e = typeof s.strengthX == "number" ? s.strengthX : 2, t = typeof s.strengthY == "number" ? s.strengthY : 2, i = typeof s.quality == "number" ? s.quality : 4, r = typeof s.resolution == "number" ? s.resolution : 1, a = typeof s.kernelSize == "number" ? s.kernelSize : 5, o = new It({
5760
5817
  strength: {
5761
5818
  x: Number(e),
5762
5819
  y: Number(t)
@@ -5859,7 +5916,7 @@ m({
5859
5916
  }
5860
5917
  ]
5861
5918
  });
5862
- const { BulgePinchFilter: It } = b;
5919
+ const { BulgePinchFilter: Et } = b;
5863
5920
  m({
5864
5921
  id: "bulge-pinch",
5865
5922
  // ID must match what the application expects
@@ -5869,7 +5926,7 @@ m({
5869
5926
  // Create an instance of the BulgePinchFilter with the provided parameters
5870
5927
  createFilter: (s) => {
5871
5928
  try {
5872
- const e = s.centerX ?? 0.5, t = s.centerY ?? 0.5, i = s.radius ?? 100, r = s.strength ?? 1, a = new It({
5929
+ const e = s.centerX ?? 0.5, t = s.centerY ?? 0.5, i = s.radius ?? 100, r = s.strength ?? 1, a = new Et({
5873
5930
  center: {
5874
5931
  x: e,
5875
5932
  y: t
@@ -5951,7 +6008,7 @@ m({
5951
6008
  }
5952
6009
  ]
5953
6010
  });
5954
- const { ConvolutionFilter: Et } = b, O = {
6011
+ const { ConvolutionFilter: Xt } = b, O = {
5955
6012
  normal: [0, 0, 0, 0, 1, 0, 0, 0, 0],
5956
6013
  gaussianBlur: [0.045, 0.122, 0.045, 0.122, 0.332, 0.122, 0.045, 0.122, 0.045],
5957
6014
  boxBlur: [1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9],
@@ -5986,7 +6043,7 @@ m({
5986
6043
  const i = s.preset;
5987
6044
  e = O[i] || O.normal;
5988
6045
  }
5989
- const t = new Et(e, s.width || 200, s.height || 200);
6046
+ const t = new Xt(e, s.width || 200, s.height || 200);
5990
6047
  return t._customParams = { ...s }, t.updateUIParam = function(i, r) {
5991
6048
  const a = this._customParams || {};
5992
6049
  switch (this._customParams = a, a[i] = r, i) {
@@ -6197,7 +6254,7 @@ m({
6197
6254
  }
6198
6255
  ]
6199
6256
  });
6200
- const { CrossHatchFilter: Xt } = b;
6257
+ const { CrossHatchFilter: Yt } = b;
6201
6258
  m({
6202
6259
  id: "cross-hatch",
6203
6260
  name: "Cross Hatch",
@@ -6207,7 +6264,7 @@ m({
6207
6264
  // Note: CrossHatchFilter has NO parameters according to PixiJS examples
6208
6265
  createFilter: (s) => {
6209
6266
  try {
6210
- const e = new Xt();
6267
+ const e = new Yt();
6211
6268
  return e.updateUIParam = function(t, i) {
6212
6269
  return !0;
6213
6270
  }, e;
@@ -6404,7 +6461,7 @@ m({
6404
6461
  }
6405
6462
  ]
6406
6463
  });
6407
- const Yt = w.DisplacementFilter, Bt = w.Sprite, K = w.Texture;
6464
+ const Bt = w.DisplacementFilter, Ot = w.Sprite, K = w.Texture;
6408
6465
  m({
6409
6466
  id: "displacement",
6410
6467
  // ID must match what the application expects
@@ -6430,7 +6487,7 @@ m({
6430
6487
  }
6431
6488
  t = K.from(o);
6432
6489
  }
6433
- const i = new Bt(t), r = new Yt(i, s.scale || 50);
6490
+ const i = new Ot(t), r = new Bt(i, s.scale || 50);
6434
6491
  return r.scale.x = s.scaleX || 50, r.scale.y = s.scaleY || 50, r._customParams = { ...s }, r._displacementSprite = i, r.updateUIParam = function(a, o) {
6435
6492
  const n = this._customParams || {};
6436
6493
  switch (this._customParams = n, n[a] = o, a) {
@@ -6577,7 +6634,7 @@ m({
6577
6634
  }
6578
6635
  ]
6579
6636
  });
6580
- const { EmbossFilter: Ot } = b;
6637
+ const { EmbossFilter: Lt } = b;
6581
6638
  m({
6582
6639
  id: "emboss",
6583
6640
  name: "Emboss",
@@ -6586,7 +6643,7 @@ m({
6586
6643
  // Create an instance of the Emboss filter with the provided parameters
6587
6644
  createFilter: (s) => {
6588
6645
  try {
6589
- const e = typeof s.strength == "number" ? s.strength : 5, t = new Ot(e);
6646
+ const e = typeof s.strength == "number" ? s.strength : 5, t = new Lt(e);
6590
6647
  return t._customParams = {
6591
6648
  strength: e
6592
6649
  }, t.updateUIParam = function(i, r) {
@@ -6626,7 +6683,7 @@ m({
6626
6683
  }
6627
6684
  ]
6628
6685
  });
6629
- const { GlitchFilter: Lt } = b, I = {
6686
+ const { GlitchFilter: Dt } = b, I = {
6630
6687
  TRANSPARENT: 0,
6631
6688
  ORIGINAL: 1,
6632
6689
  LOOP: 2,
@@ -6640,7 +6697,7 @@ m({
6640
6697
  description: "Apply digital distortion and glitch effects",
6641
6698
  createFilter: (s) => {
6642
6699
  try {
6643
- const e = { x: s.redX, y: s.redY }, t = { x: s.greenX, y: s.greenY }, i = { x: s.blueX, y: s.blueY }, r = new Lt({
6700
+ const e = { x: s.redX, y: s.redY }, t = { x: s.greenX, y: s.greenY }, i = { x: s.blueX, y: s.blueY }, r = new Dt({
6644
6701
  slices: s.slices,
6645
6702
  offset: s.offset,
6646
6703
  direction: s.direction,
@@ -6881,7 +6938,7 @@ m({
6881
6938
  }
6882
6939
  ]
6883
6940
  });
6884
- const { GlowFilter: Dt } = b;
6941
+ const { GlowFilter: Ut } = b;
6885
6942
  m({
6886
6943
  id: "glow",
6887
6944
  name: "Glow",
@@ -6890,7 +6947,7 @@ m({
6890
6947
  // Create an instance of the GlowFilter with the provided parameters
6891
6948
  createFilter: (s) => {
6892
6949
  try {
6893
- const e = parseInt(s.color.replace("#", "0x"), 16), t = new Dt({
6950
+ const e = parseInt(s.color.replace("#", "0x"), 16), t = new Ut({
6894
6951
  distance: s.distance || 10,
6895
6952
  outerStrength: s.outerStrength || 4,
6896
6953
  innerStrength: s.innerStrength || 0,
@@ -7016,7 +7073,7 @@ m({
7016
7073
  }
7017
7074
  ]
7018
7075
  });
7019
- const { GodrayFilter: Ut } = b;
7076
+ const { GodrayFilter: Vt } = b;
7020
7077
  m({
7021
7078
  id: "godray",
7022
7079
  name: "Godray",
@@ -7025,7 +7082,7 @@ m({
7025
7082
  // Create an instance of the GodrayFilter with the provided parameters
7026
7083
  createFilter: (s) => {
7027
7084
  try {
7028
- const e = new Ut({
7085
+ const e = new Vt({
7029
7086
  angle: s.angle || 30,
7030
7087
  parallel: s.parallel ?? !0,
7031
7088
  center: {
@@ -7178,7 +7235,7 @@ m({
7178
7235
  }
7179
7236
  ]
7180
7237
  });
7181
- const Vt = b.SimpleLightmapFilter, ce = w.Texture;
7238
+ const jt = b.SimpleLightmapFilter, ce = w.Texture;
7182
7239
  m({
7183
7240
  id: "lightmap",
7184
7241
  name: "Lightmap",
@@ -7210,7 +7267,7 @@ m({
7210
7267
  } catch {
7211
7268
  n = 0;
7212
7269
  }
7213
- const l = new Vt(o, n, i);
7270
+ const l = new jt(o, n, i);
7214
7271
  return l._customParams = {
7215
7272
  textureType: e,
7216
7273
  color: t,
@@ -7309,7 +7366,7 @@ m({
7309
7366
  }
7310
7367
  ]
7311
7368
  });
7312
- const { NoiseFilter: jt } = w;
7369
+ const { NoiseFilter: qt } = w;
7313
7370
  m({
7314
7371
  id: "noise",
7315
7372
  name: "Noise",
@@ -7317,7 +7374,7 @@ m({
7317
7374
  description: "Add random noise to the image",
7318
7375
  createFilter: (s) => {
7319
7376
  try {
7320
- const e = new jt({
7377
+ const e = new qt({
7321
7378
  noise: s.noise || 0.5,
7322
7379
  seed: s.seed || Math.random()
7323
7380
  });
@@ -7394,7 +7451,7 @@ m({
7394
7451
  }
7395
7452
  ]
7396
7453
  });
7397
- const { OldFilmFilter: qt } = b;
7454
+ const { OldFilmFilter: Ht } = b;
7398
7455
  m({
7399
7456
  id: "old-film",
7400
7457
  name: "Old Film",
@@ -7402,7 +7459,7 @@ m({
7402
7459
  description: "Apply a vintage film effect with scratches and grain",
7403
7460
  createFilter: (s) => {
7404
7461
  try {
7405
- const e = new qt({
7462
+ const e = new Ht({
7406
7463
  sepia: s.sepia,
7407
7464
  noise: s.noise,
7408
7465
  noiseSize: s.noiseSize,
@@ -7583,7 +7640,7 @@ m({
7583
7640
  }
7584
7641
  ]
7585
7642
  });
7586
- const { OutlineFilter: Ht } = b;
7643
+ const { OutlineFilter: $t } = b;
7587
7644
  m({
7588
7645
  id: "outline",
7589
7646
  name: "Outline",
@@ -7593,7 +7650,7 @@ m({
7593
7650
  try {
7594
7651
  let e = s.color;
7595
7652
  typeof e == "string" && (e = parseInt(e.replace("#", "0x"), 16));
7596
- const t = new Ht({
7653
+ const t = new $t({
7597
7654
  thickness: s.thickness || 4,
7598
7655
  color: e,
7599
7656
  alpha: s.alpha || 1,
@@ -7683,7 +7740,7 @@ m({
7683
7740
  }
7684
7741
  ]
7685
7742
  });
7686
- const { PixelateFilter: $t } = b;
7743
+ const { PixelateFilter: Wt } = b;
7687
7744
  m({
7688
7745
  id: "pixelate",
7689
7746
  name: "Pixelate",
@@ -7691,7 +7748,7 @@ m({
7691
7748
  description: "Create a pixelated or mosaic effect",
7692
7749
  createFilter: (s) => {
7693
7750
  try {
7694
- const e = new $t(
7751
+ const e = new Wt(
7695
7752
  s.useUniform ? Math.max(4, s.size || 10) : [Math.max(4, s.sizeX || 10), Math.max(4, s.sizeY || 10)]
7696
7753
  );
7697
7754
  return e._customParams = { ...s }, e.updateUIParam = function(t, i) {
@@ -7774,7 +7831,7 @@ m({
7774
7831
  }
7775
7832
  ]
7776
7833
  });
7777
- const { ReflectionFilter: Wt } = b;
7834
+ const { ReflectionFilter: Zt } = b;
7778
7835
  m({
7779
7836
  id: "reflection",
7780
7837
  // ID must match what the application expects
@@ -7791,7 +7848,7 @@ m({
7791
7848
  waveLength: new Float32Array([s.wavelengthStart ?? 30, s.wavelengthEnd ?? 100]),
7792
7849
  alpha: new Float32Array([s.alphaStart ?? 1, s.alphaEnd ?? 1]),
7793
7850
  time: s.time ?? 0
7794
- }, t = new Wt(e);
7851
+ }, t = new Zt(e);
7795
7852
  return t._customParams = { ...s }, t.animating = s.animating ?? !1, t.updateUIParam = function(i, r) {
7796
7853
  const a = this._customParams || {};
7797
7854
  switch (this._customParams = a, a[i] = r, i) {
@@ -7942,7 +7999,7 @@ m({
7942
7999
  }
7943
8000
  ]
7944
8001
  });
7945
- const { ShockwaveFilter: Zt } = b;
8002
+ const { ShockwaveFilter: Gt } = b;
7946
8003
  m({
7947
8004
  id: "shockwave",
7948
8005
  // ID must match what the application expects
@@ -7952,7 +8009,7 @@ m({
7952
8009
  // Create an instance of the ShockwaveFilter with the provided parameters
7953
8010
  createFilter: (s) => {
7954
8011
  try {
7955
- const e = s.centerX ?? 0.5, t = s.centerY ?? 0.5, i = { x: e, y: t }, r = s.amplitude ?? 30, a = s.wavelength ?? 160, o = s.speed ?? 500, n = s.brightness ?? 1, l = s.radius ?? -1, c = s.time ?? 0, d = new Zt({
8012
+ const e = s.centerX ?? 0.5, t = s.centerY ?? 0.5, i = { x: e, y: t }, r = s.amplitude ?? 30, a = s.wavelength ?? 160, o = s.speed ?? 500, n = s.brightness ?? 1, l = s.radius ?? -1, c = s.time ?? 0, d = new Gt({
7956
8013
  center: i,
7957
8014
  amplitude: r,
7958
8015
  wavelength: a,
@@ -8094,7 +8151,7 @@ m({
8094
8151
  }
8095
8152
  ]
8096
8153
  });
8097
- const { SimplexNoiseFilter: Gt } = b;
8154
+ const { SimplexNoiseFilter: Kt } = b;
8098
8155
  m({
8099
8156
  id: "simplex-noise",
8100
8157
  name: "Simplex Noise",
@@ -8102,7 +8159,7 @@ m({
8102
8159
  description: "Apply procedural noise to create texture effects",
8103
8160
  createFilter: (s) => {
8104
8161
  try {
8105
- const e = s.animating ? 0 : s.offsetZ || 0, t = new Gt({
8162
+ const e = s.animating ? 0 : s.offsetZ || 0, t = new Kt({
8106
8163
  strength: s.strength,
8107
8164
  noiseScale: s.noiseScale,
8108
8165
  offsetX: s.offsetX,
@@ -8249,7 +8306,7 @@ m({
8249
8306
  }
8250
8307
  ]
8251
8308
  });
8252
- class Kt extends w.Filter {
8309
+ class Qt extends w.Filter {
8253
8310
  constructor(e) {
8254
8311
  const t = Se.from({
8255
8312
  vertex: `
@@ -8360,7 +8417,7 @@ m({
8360
8417
  description: "Creates a twisting distortion effect around a central point",
8361
8418
  createFilter: (s) => {
8362
8419
  try {
8363
- const e = new Kt({
8420
+ const e = new Qt({
8364
8421
  centerX: s.centerX ?? 0.5,
8365
8422
  centerY: s.centerY ?? 0.5,
8366
8423
  radius: s.radius ?? 0.25,
@@ -8430,7 +8487,7 @@ m({
8430
8487
  }
8431
8488
  ]
8432
8489
  });
8433
- const { AdjustmentFilter: Qt } = b;
8490
+ const { AdjustmentFilter: Jt } = b;
8434
8491
  function q(s) {
8435
8492
  const e = typeof s == "string" ? parseInt(s.replace("#", "0x"), 16) : s;
8436
8493
  return [
@@ -8439,7 +8496,7 @@ function q(s) {
8439
8496
  (e & 255) / 255
8440
8497
  ];
8441
8498
  }
8442
- class Jt extends Qt {
8499
+ class ei extends Jt {
8443
8500
  constructor(e = {}) {
8444
8501
  super({
8445
8502
  brightness: 1,
@@ -8482,7 +8539,7 @@ m({
8482
8539
  description: "Add a classic darkened border effect to the image",
8483
8540
  createFilter: (s) => {
8484
8541
  try {
8485
- const e = new Jt({
8542
+ const e = new ei({
8486
8543
  radius: s.radius || 0.8,
8487
8544
  strength: s.strength || 1,
8488
8545
  color: s.color || "#000000"
@@ -8546,22 +8603,22 @@ m({
8546
8603
  }
8547
8604
  ]
8548
8605
  });
8549
- function ai(s) {
8606
+ function oi(s) {
8550
8607
  try {
8551
8608
  let e = [], t = [];
8552
8609
  try {
8553
- e = H(), e.length === 0 && at();
8610
+ e = H(), e.length === 0 && ot();
8554
8611
  } catch {
8555
8612
  }
8556
8613
  const i = s == null ? void 0 : s.disabled;
8557
8614
  if (Array.isArray(i) && i.length > 0) {
8558
8615
  let r = 0;
8559
8616
  for (const a of i)
8560
- lt(a) && r++;
8617
+ ct(a) && r++;
8561
8618
  r > 0;
8562
8619
  }
8563
8620
  try {
8564
- e = H(), t = nt();
8621
+ e = H(), t = lt();
8565
8622
  } catch {
8566
8623
  e || (e = []), t || (t = []);
8567
8624
  }
@@ -8571,16 +8628,16 @@ function ai(s) {
8571
8628
  }
8572
8629
  }
8573
8630
  export {
8574
- ii as V,
8575
- st as a,
8576
- ot as b,
8577
- nt as c,
8578
- at as d,
8579
- si as e,
8580
- ct as f,
8631
+ ri as V,
8632
+ at as a,
8633
+ nt as b,
8634
+ lt as c,
8635
+ ot as d,
8636
+ ai as e,
8637
+ ht as f,
8581
8638
  H as g,
8582
- ri as h,
8583
- ai as i,
8639
+ si as h,
8640
+ oi as i,
8584
8641
  m as r
8585
8642
  };
8586
- //# sourceMappingURL=editor-BfdrdqUU.js.map
8643
+ //# sourceMappingURL=editor-DWDUrVRz.js.map