@codingfactory/mediables-vue 2.2.0 → 2.3.1

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 (77) hide show
  1. package/dist/{PixiFrameExporter-HWfgnNTX.js → PixiFrameExporter-Cz7dg92v.js} +2 -2
  2. package/dist/{PixiFrameExporter-HWfgnNTX.js.map → PixiFrameExporter-Cz7dg92v.js.map} +1 -1
  3. package/dist/{PixiFrameExporter-DT4-swZ4.cjs → PixiFrameExporter-dBsAo3iz.cjs} +2 -2
  4. package/dist/{PixiFrameExporter-DT4-swZ4.cjs.map → PixiFrameExporter-dBsAo3iz.cjs.map} +1 -1
  5. package/dist/editor-BPW3mi6G.cjs +42 -0
  6. package/dist/editor-BPW3mi6G.cjs.map +1 -0
  7. package/dist/{index-DBM_ViWA.js → editor-CfH1RN8F.js} +143 -124
  8. package/dist/editor-CfH1RN8F.js.map +1 -0
  9. package/dist/filters/index.d.ts +13 -6
  10. package/dist/filters/registry.d.ts +6 -0
  11. package/dist/index-DDmYo-6o.js +23377 -0
  12. package/dist/index-DDmYo-6o.js.map +1 -0
  13. package/dist/index-Du0vZ5BO.cjs +39 -0
  14. package/dist/index-Du0vZ5BO.cjs.map +1 -0
  15. package/dist/mediables-vanilla.cjs +1 -1
  16. package/dist/mediables-vanilla.mjs +1 -1
  17. package/dist/mediables-vue.cjs +1 -1
  18. package/dist/mediables-vue.mjs +2 -2
  19. package/dist/render-page/assets/{index-DykUbryA.js → index-BLDUp5ON.js} +1 -1
  20. package/dist/render-page/index.html +1 -1
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
  23. package/dist/filters/filters/controlMapping.d.ts +0 -31
  24. package/dist/filters/filters/definitions/adjustment.d.ts +0 -2
  25. package/dist/filters/filters/definitions/adjustmentAdvanced.d.ts +0 -2
  26. package/dist/filters/filters/definitions/advancedBloom.d.ts +0 -2
  27. package/dist/filters/filters/definitions/alpha.d.ts +0 -2
  28. package/dist/filters/filters/definitions/ascii.d.ts +0 -2
  29. package/dist/filters/filters/definitions/backdropBlur.d.ts +0 -2
  30. package/dist/filters/filters/definitions/bevel.d.ts +0 -2
  31. package/dist/filters/filters/definitions/bloom.d.ts +0 -2
  32. package/dist/filters/filters/definitions/blur.d.ts +0 -2
  33. package/dist/filters/filters/definitions/bulgePinch.d.ts +0 -2
  34. package/dist/filters/filters/definitions/colorGradient.d.ts +0 -2
  35. package/dist/filters/filters/definitions/colorMap.d.ts +0 -2
  36. package/dist/filters/filters/definitions/colorMatrix.d.ts +0 -2
  37. package/dist/filters/filters/definitions/colorOverlay.d.ts +0 -2
  38. package/dist/filters/filters/definitions/colorReplace.d.ts +0 -2
  39. package/dist/filters/filters/definitions/convolution.d.ts +0 -2
  40. package/dist/filters/filters/definitions/crossHatch.d.ts +0 -2
  41. package/dist/filters/filters/definitions/crt.d.ts +0 -2
  42. package/dist/filters/filters/definitions/displacement.d.ts +0 -2
  43. package/dist/filters/filters/definitions/dot.d.ts +0 -2
  44. package/dist/filters/filters/definitions/dropShadow.d.ts +0 -2
  45. package/dist/filters/filters/definitions/emboss.d.ts +0 -2
  46. package/dist/filters/filters/definitions/glitch.d.ts +0 -2
  47. package/dist/filters/filters/definitions/glow.d.ts +0 -2
  48. package/dist/filters/filters/definitions/godray.d.ts +0 -2
  49. package/dist/filters/filters/definitions/grayscale.d.ts +0 -2
  50. package/dist/filters/filters/definitions/hslAdjustment.d.ts +0 -2
  51. package/dist/filters/filters/definitions/kawaseBlur.d.ts +0 -2
  52. package/dist/filters/filters/definitions/lightmap.d.ts +0 -2
  53. package/dist/filters/filters/definitions/motionBlur.d.ts +0 -2
  54. package/dist/filters/filters/definitions/multiColorReplace.d.ts +0 -2
  55. package/dist/filters/filters/definitions/noise.d.ts +0 -2
  56. package/dist/filters/filters/definitions/oldFilm.d.ts +0 -2
  57. package/dist/filters/filters/definitions/outline.d.ts +0 -2
  58. package/dist/filters/filters/definitions/pixelate.d.ts +0 -2
  59. package/dist/filters/filters/definitions/radialBlur.d.ts +0 -2
  60. package/dist/filters/filters/definitions/reflection.d.ts +0 -2
  61. package/dist/filters/filters/definitions/rgbSplit.d.ts +0 -2
  62. package/dist/filters/filters/definitions/shockwave.d.ts +0 -2
  63. package/dist/filters/filters/definitions/simplexNoise.d.ts +0 -2
  64. package/dist/filters/filters/definitions/tiltShift.d.ts +0 -2
  65. package/dist/filters/filters/definitions/twist.d.ts +0 -2
  66. package/dist/filters/filters/definitions/vignette.d.ts +0 -2
  67. package/dist/filters/filters/definitions/zoomBlur.d.ts +0 -2
  68. package/dist/filters/filters/factory.d.ts +0 -36
  69. package/dist/filters/filters/index.d.ts +0 -93
  70. package/dist/filters/filters/registry.d.ts +0 -89
  71. package/dist/index-BR9cD87d.js +0 -28936
  72. package/dist/index-BR9cD87d.js.map +0 -1
  73. package/dist/index-Bu6zs7yN.cjs +0 -39
  74. package/dist/index-Bu6zs7yN.cjs.map +0 -1
  75. package/dist/index-DBM_ViWA.js.map +0 -1
  76. package/dist/index-HREFg1jF.cjs +0 -42
  77. package/dist/index-HREFg1jF.cjs.map +0 -1
@@ -317,8 +317,8 @@ class me extends B {
317
317
  else if (typeof x.getContext == "function") {
318
318
  const F = document.createElement("canvas");
319
319
  F.width = x.width, F.height = x.height;
320
- const R = F.getContext("2d");
321
- R && (R.drawImage(x, 0, 0), y = F.toDataURL(`image/${e}`, t));
320
+ const T = F.getContext("2d");
321
+ T && (T.drawImage(x, 0, 0), y = F.toDataURL(`image/${e}`, t));
322
322
  }
323
323
  return y || null;
324
324
  } catch {
@@ -845,8 +845,8 @@ const N = class N extends B {
845
845
  if (h <= 0 || p <= 0) return null;
846
846
  const b = new a.Container(), _ = new a.Sprite(i);
847
847
  if (this.state.get("crop.shape") === "circle") {
848
- const R = Math.round(Math.max(h, p)), le = m + h / 2, ce = S + p / 2;
849
- m = Math.round(le - R / 2), S = Math.round(ce - R / 2), h = p = R;
848
+ const T = Math.round(Math.max(h, p)), le = m + h / 2, ce = S + p / 2;
849
+ m = Math.round(le - T / 2), S = Math.round(ce - T / 2), h = p = T;
850
850
  const M = new a.Graphics();
851
851
  typeof M.circle == "function" && typeof M.fill == "function" ? M.circle(h / 2, p / 2, h / 2).fill(16777215) : (M.beginFill(16777215, 1), M.drawCircle(h / 2, p / 2, h / 2), M.endFill()), _.mask = M, b.addChild(M);
852
852
  }
@@ -2086,7 +2086,7 @@ class $e {
2086
2086
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._filterItems.clear(), (e = this.element) == null || e.remove(), this.element = null;
2087
2087
  }
2088
2088
  }
2089
- const X = {
2089
+ const E = {
2090
2090
  name: "free",
2091
2091
  initialMode: "filters",
2092
2092
  cropShape: "free",
@@ -2100,10 +2100,10 @@ const X = {
2100
2100
  maxExportHeight: void 0
2101
2101
  }, j = {
2102
2102
  free: {
2103
- ...X
2103
+ ...E
2104
2104
  },
2105
2105
  avatar: {
2106
- ...X,
2106
+ ...E,
2107
2107
  name: "avatar",
2108
2108
  initialMode: "crop",
2109
2109
  cropShape: "circle",
@@ -2113,7 +2113,7 @@ const X = {
2113
2113
  lockAspectRatio: !0
2114
2114
  },
2115
2115
  banner: {
2116
- ...X,
2116
+ ...E,
2117
2117
  name: "banner",
2118
2118
  initialMode: "crop",
2119
2119
  cropShape: "square",
@@ -2123,7 +2123,7 @@ const X = {
2123
2123
  lockAspectRatio: !0
2124
2124
  },
2125
2125
  product: {
2126
- ...X,
2126
+ ...E,
2127
2127
  name: "product",
2128
2128
  initialMode: "filters",
2129
2129
  cropShape: "square",
@@ -2137,11 +2137,11 @@ function Ze(r) {
2137
2137
  if (!r)
2138
2138
  return { ...j.free };
2139
2139
  if (typeof r == "object" && r !== null)
2140
- return { ...X, ...r };
2140
+ return { ...E, ...r };
2141
2141
  const e = j[r];
2142
2142
  return e ? { ...e } : { ...j.free };
2143
2143
  }
2144
- class $t extends B {
2144
+ class Zt extends B {
2145
2145
  /**
2146
2146
  * Create a new VanillaImageEditor
2147
2147
  * @param {HTMLElement} container - Container element to mount the editor
@@ -2502,13 +2502,13 @@ class $t extends B {
2502
2502
  (e = this._resizeObserver) == null || e.disconnect(), this._renderer.destroy(), this._cropManager.disable(), (t = this._toolbar) == null || t.destroy(), (i = this._categoryCarousel) == null || i.destroy(), (s = this._filterCarousel) == null || s.destroy(), (a = this._filterAdjustments) == null || a.destroy(), (o = this._cropControls) == null || o.destroy(), (n = this._activeFiltersPanel) == null || n.destroy(), (l = this._editorEl) == null || l.remove(), this._container = null, this._state = null, this.emit("destroyed"), this.removeAllListeners();
2503
2503
  }
2504
2504
  }
2505
- const v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
2505
+ const v = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
2506
2506
  function We(r, e) {
2507
2507
  return !Array.isArray(r.mediaTargets) || r.mediaTargets.length === 0 ? !0 : r.mediaTargets.includes(e);
2508
2508
  }
2509
2509
  function f(r) {
2510
2510
  var e;
2511
- return v.has(r.id), v.set(r.id, r), E.has(r.category) || E.set(r.category, []), (e = E.get(r.category)) == null || e.push(r.id), r;
2511
+ return v.has(r.id), v.set(r.id, r), R.has(r.category) || R.set(r.category, []), (e = R.get(r.category)) == null || e.push(r.id), r;
2512
2512
  }
2513
2513
  function Ge(r) {
2514
2514
  return v.get(r);
@@ -2541,19 +2541,31 @@ function Ke() {
2541
2541
  });
2542
2542
  }
2543
2543
  function Qe(r) {
2544
- return (E.get(r) || []).map((t) => v.get(t)).filter(Boolean);
2544
+ return (R.get(r) || []).map((t) => v.get(t)).filter(Boolean);
2545
2545
  }
2546
2546
  function Je() {
2547
- return Array.from(E.keys());
2547
+ return Array.from(R.keys());
2548
2548
  }
2549
- function Zt(r) {
2549
+ function Wt(r) {
2550
2550
  return v.has(r);
2551
2551
  }
2552
- function Wt(r, e) {
2552
+ function et(r) {
2553
+ const e = v.get(r);
2554
+ if (!e)
2555
+ return !1;
2556
+ v.delete(r);
2557
+ const t = R.get(e.category);
2558
+ if (t) {
2559
+ const i = t.indexOf(r);
2560
+ i !== -1 && t.splice(i, 1), t.length === 0 && R.delete(e.category);
2561
+ }
2562
+ return !0;
2563
+ }
2564
+ function Gt(r, e) {
2553
2565
  const t = v.get(r);
2554
2566
  return t ? We(t, e) : !1;
2555
2567
  }
2556
- function et() {
2568
+ function tt() {
2557
2569
  return Array.from(v.values()).map((r) => ({
2558
2570
  id: r.id,
2559
2571
  name: r.name,
@@ -2562,7 +2574,7 @@ function et() {
2562
2574
  }));
2563
2575
  }
2564
2576
  if (typeof window < "u") {
2565
- window.__DEBUG_FILTERS_LIST = Array.from(v.keys()), window.getAllFilters = U, window.getFilter = Ge, window.getFiltersByCategory = Qe, window.getRegisteredFilters = et;
2577
+ window.__DEBUG_FILTERS_LIST = Array.from(v.keys()), window.getAllFilters = U, window.getFilter = Ge, window.getFiltersByCategory = Qe, window.getRegisteredFilters = tt;
2566
2578
  const r = f;
2567
2579
  window.registerFilter = (e) => {
2568
2580
  const t = r(e);
@@ -2572,7 +2584,7 @@ if (typeof window < "u") {
2572
2584
  typeof window < "u" && (window.initializeFilterRegistry = window.initializeFilterRegistry || function() {
2573
2585
  return [];
2574
2586
  });
2575
- const { AdjustmentFilter: tt } = g, { ColorMatrixFilter: it } = C, k = {
2587
+ const { AdjustmentFilter: it } = g, { ColorMatrixFilter: rt } = C, k = {
2576
2588
  gamma: 1,
2577
2589
  saturation: 1,
2578
2590
  contrast: 1,
@@ -2581,7 +2593,7 @@ const { AdjustmentFilter: tt } = g, { ColorMatrixFilter: it } = C, k = {
2581
2593
  green: 1,
2582
2594
  blue: 1,
2583
2595
  alpha: 1
2584
- }, rt = /* @__PURE__ */ new Set([
2596
+ }, st = /* @__PURE__ */ new Set([
2585
2597
  "gamma",
2586
2598
  "saturation",
2587
2599
  "contrast",
@@ -2602,9 +2614,9 @@ function P(r, e) {
2602
2614
  return e;
2603
2615
  }
2604
2616
  function K(r) {
2605
- return rt.has(r);
2617
+ return st.has(r);
2606
2618
  }
2607
- function st(r) {
2619
+ function at(r) {
2608
2620
  return {
2609
2621
  gamma: P(r.gamma, k.gamma),
2610
2622
  saturation: P(r.saturation, k.saturation),
@@ -2627,9 +2639,9 @@ f({
2627
2639
  // Create an instance of the AdjustmentFilter with the provided parameters
2628
2640
  createFilter: (r) => {
2629
2641
  try {
2630
- const e = st(r ?? {}), t = { ...e };
2642
+ const e = at(r ?? {}), t = { ...e };
2631
2643
  try {
2632
- const i = new tt(t), s = i;
2644
+ const i = new it(t), s = i;
2633
2645
  return s._customParams = { ...e }, s.updateUIParam = function(o, n) {
2634
2646
  try {
2635
2647
  if (!K(o))
@@ -2642,7 +2654,7 @@ f({
2642
2654
  }
2643
2655
  }, i;
2644
2656
  } catch {
2645
- const s = new it(), a = s;
2657
+ const s = new rt(), a = s;
2646
2658
  return a._customParams = { ...e }, Q(s, e), a.updateUIParam = function(n, l) {
2647
2659
  try {
2648
2660
  if (!K(n))
@@ -2752,14 +2764,14 @@ f({
2752
2764
  }
2753
2765
  ]
2754
2766
  });
2755
- const { ColorMatrixFilter: at } = C, z = {
2767
+ const { ColorMatrixFilter: ot } = C, z = {
2756
2768
  brightness: 1,
2757
2769
  contrast: 1,
2758
2770
  saturation: 1,
2759
2771
  hue: 0,
2760
2772
  sepia: 0,
2761
2773
  negative: !1
2762
- }, ot = /* @__PURE__ */ new Set([
2774
+ }, nt = /* @__PURE__ */ new Set([
2763
2775
  "brightness",
2764
2776
  "contrast",
2765
2777
  "saturation",
@@ -2767,10 +2779,10 @@ const { ColorMatrixFilter: at } = C, z = {
2767
2779
  "sepia",
2768
2780
  "negative"
2769
2781
  ]);
2770
- function nt(r) {
2771
- return ot.has(r);
2782
+ function lt(r) {
2783
+ return nt.has(r);
2772
2784
  }
2773
- function I(r, e) {
2785
+ function X(r, e) {
2774
2786
  if (typeof r == "number" && Number.isFinite(r))
2775
2787
  return r;
2776
2788
  if (typeof r == "string") {
@@ -2791,13 +2803,13 @@ function ne(r, e) {
2791
2803
  }
2792
2804
  return e;
2793
2805
  }
2794
- function lt(r) {
2806
+ function ct(r) {
2795
2807
  return {
2796
- brightness: I(r.brightness, z.brightness),
2797
- contrast: I(r.contrast, z.contrast),
2798
- saturation: I(r.saturation, z.saturation),
2799
- hue: I(r.hue, z.hue),
2800
- sepia: I(r.sepia, z.sepia),
2808
+ brightness: X(r.brightness, z.brightness),
2809
+ contrast: X(r.contrast, z.contrast),
2810
+ saturation: X(r.saturation, z.saturation),
2811
+ hue: X(r.hue, z.hue),
2812
+ sepia: X(r.sepia, z.sepia),
2801
2813
  negative: ne(r.negative, z.negative)
2802
2814
  };
2803
2815
  }
@@ -2812,17 +2824,17 @@ f({
2812
2824
  // Create an instance of the ColorMatrixFilter with the provided parameters
2813
2825
  createFilter: (r) => {
2814
2826
  try {
2815
- const e = lt(r ?? {}), t = new at(), i = t;
2827
+ const e = ct(r ?? {}), t = new ot(), i = t;
2816
2828
  return i._customParams = { ...e }, J(t, e), i.updateUIParam = function(a, o) {
2817
2829
  try {
2818
- if (!nt(a))
2830
+ if (!lt(a))
2819
2831
  return;
2820
2832
  const n = this._customParams ?? { ...z };
2821
2833
  if (a === "negative")
2822
2834
  n.negative = ne(o, n.negative);
2823
2835
  else {
2824
2836
  const l = a;
2825
- n[l] = I(o, n[l]);
2837
+ n[l] = X(o, n[l]);
2826
2838
  }
2827
2839
  this._customParams = n, J(this, n);
2828
2840
  } catch {
@@ -3096,7 +3108,7 @@ f({
3096
3108
  }
3097
3109
  ]
3098
3110
  });
3099
- const { ColorOverlayFilter: ct } = g;
3111
+ const { ColorOverlayFilter: ht } = g;
3100
3112
  f({
3101
3113
  id: "colorOverlay",
3102
3114
  name: "Color Overlay",
@@ -3111,7 +3123,7 @@ f({
3111
3123
  try {
3112
3124
  let e = 16711680;
3113
3125
  r.color && (typeof r.color == "string" ? e = parseInt(r.color.replace("#", "0x"), 16) : typeof r.color == "number" && (e = r.color));
3114
- const t = new ct({
3126
+ const t = new ht({
3115
3127
  color: e,
3116
3128
  alpha: r.alpha || 0.5
3117
3129
  });
@@ -3343,7 +3355,7 @@ f({
3343
3355
  }
3344
3356
  ]
3345
3357
  });
3346
- const { ColorMatrixFilter: ht } = C;
3358
+ const { ColorMatrixFilter: dt } = C;
3347
3359
  f({
3348
3360
  id: "grayscale",
3349
3361
  name: "Grayscale",
@@ -3356,7 +3368,7 @@ f({
3356
3368
  */
3357
3369
  createFilter: (r) => {
3358
3370
  try {
3359
- const e = new ht();
3371
+ const e = new dt();
3360
3372
  e._customParams = { ...r };
3361
3373
  const t = r.intensity !== void 0 ? r.intensity : 1;
3362
3374
  return ee(e, t), e.updateUIParam = function(i, s) {
@@ -3396,7 +3408,7 @@ f({
3396
3408
  function ee(r, e) {
3397
3409
  r.reset(), r.greyscale(e);
3398
3410
  }
3399
- const { HslAdjustmentFilter: dt } = g;
3411
+ const { HslAdjustmentFilter: ut } = g;
3400
3412
  f({
3401
3413
  id: "hsl-adjustment",
3402
3414
  name: "HSL Adjustment",
@@ -3408,7 +3420,7 @@ f({
3408
3420
  */
3409
3421
  createFilter: (r) => {
3410
3422
  try {
3411
- const e = new dt({
3423
+ const e = new ut({
3412
3424
  hue: r.hue !== void 0 ? r.hue : 0,
3413
3425
  saturation: r.saturation !== void 0 ? r.saturation : 0,
3414
3426
  lightness: r.lightness !== void 0 ? r.lightness : 0,
@@ -3506,7 +3518,7 @@ f({
3506
3518
  }
3507
3519
  ]
3508
3520
  });
3509
- const { KawaseBlurFilter: ut } = g;
3521
+ const { KawaseBlurFilter: pt } = g;
3510
3522
  f({
3511
3523
  id: "kawase-blur",
3512
3524
  name: "Kawase Blur",
@@ -3519,7 +3531,7 @@ f({
3519
3531
  */
3520
3532
  createFilter: (r) => {
3521
3533
  try {
3522
- const e = new ut({
3534
+ const e = new pt({
3523
3535
  strength: r.strength || 4,
3524
3536
  quality: r.quality || 3,
3525
3537
  clamp: r.clamp || !1,
@@ -3624,7 +3636,7 @@ f({
3624
3636
  }
3625
3637
  ]
3626
3638
  });
3627
- const { MotionBlurFilter: pt } = g;
3639
+ const { MotionBlurFilter: ft } = g;
3628
3640
  f({
3629
3641
  id: "motion-blur",
3630
3642
  name: "Motion Blur",
@@ -3637,7 +3649,7 @@ f({
3637
3649
  */
3638
3650
  createFilter: (r) => {
3639
3651
  try {
3640
- const e = new pt({
3652
+ const e = new ft({
3641
3653
  velocity: {
3642
3654
  x: r.velocityX !== void 0 ? r.velocityX : 0,
3643
3655
  y: r.velocityY !== void 0 ? r.velocityY : 0
@@ -3732,7 +3744,7 @@ f({
3732
3744
  }
3733
3745
  ]
3734
3746
  });
3735
- const { RadialBlurFilter: ft } = g;
3747
+ const { RadialBlurFilter: mt } = g;
3736
3748
  f({
3737
3749
  id: "radial-blur",
3738
3750
  name: "Radial Blur",
@@ -3741,7 +3753,7 @@ f({
3741
3753
  // Create an instance of the RadialBlurFilter with the provided parameters
3742
3754
  createFilter: (r) => {
3743
3755
  try {
3744
- const e = new ft({
3756
+ const e = new mt({
3745
3757
  angle: r.angle ?? 20,
3746
3758
  center: { x: r.centerX ?? 0, y: r.centerY ?? 0 },
3747
3759
  kernelSize: r.kernelSize ?? 15,
@@ -3856,7 +3868,7 @@ f({
3856
3868
  }
3857
3869
  ]
3858
3870
  });
3859
- const { TiltShiftFilter: mt } = g;
3871
+ const { TiltShiftFilter: gt } = g;
3860
3872
  f({
3861
3873
  id: "tilt-shift",
3862
3874
  name: "Tilt Shift",
@@ -3865,7 +3877,7 @@ f({
3865
3877
  // Create an instance of the TiltShiftFilter with the provided parameters
3866
3878
  createFilter: (r) => {
3867
3879
  try {
3868
- const e = typeof r.blur == "number" ? r.blur : 100, t = typeof r.gradientBlur == "number" ? r.gradientBlur : 600, i = typeof r.startX == "number" ? r.startX : 0, s = typeof r.startY == "number" ? r.startY : 0.5, a = typeof r.endX == "number" ? r.endX : 1, o = typeof r.endY == "number" ? r.endY : 0.5, n = new mt({
3880
+ const e = typeof r.blur == "number" ? r.blur : 100, t = typeof r.gradientBlur == "number" ? r.gradientBlur : 600, i = typeof r.startX == "number" ? r.startX : 0, s = typeof r.startY == "number" ? r.startY : 0.5, a = typeof r.endX == "number" ? r.endX : 1, o = typeof r.endY == "number" ? r.endY : 0.5, n = new gt({
3869
3881
  blur: Number(e),
3870
3882
  gradientBlur: Number(t),
3871
3883
  start: { x: Number(i), y: Number(s) },
@@ -3984,7 +3996,7 @@ f({
3984
3996
  }
3985
3997
  ]
3986
3998
  });
3987
- const { ZoomBlurFilter: gt } = g;
3999
+ const { ZoomBlurFilter: bt } = g;
3988
4000
  f({
3989
4001
  id: "zoom-blur",
3990
4002
  name: "Zoom Blur",
@@ -3997,7 +4009,7 @@ f({
3997
4009
  */
3998
4010
  createFilter: (r) => {
3999
4011
  try {
4000
- const e = new gt({
4012
+ const e = new bt({
4001
4013
  strength: r.strength || 0.1,
4002
4014
  center: {
4003
4015
  x: r.centerX !== void 0 ? r.centerX : 0.5,
@@ -4438,7 +4450,7 @@ f({
4438
4450
  }
4439
4451
  ]
4440
4452
  });
4441
- const bt = g.ColorReplaceFilter;
4453
+ const yt = g.ColorReplaceFilter;
4442
4454
  f({
4443
4455
  id: "color-replace",
4444
4456
  name: "Color Replace",
@@ -4455,7 +4467,7 @@ f({
4455
4467
  r.originalColor && (typeof r.originalColor == "string" ? e = parseInt(r.originalColor.replace("#", "0x"), 16) : typeof r.originalColor == "number" && (e = r.originalColor));
4456
4468
  let t = 255;
4457
4469
  r.targetColor && (typeof r.targetColor == "string" ? t = parseInt(r.targetColor.replace("#", "0x"), 16) : typeof r.targetColor == "number" && (t = r.targetColor));
4458
- const i = new bt({
4470
+ const i = new yt({
4459
4471
  originalColor: e,
4460
4472
  targetColor: t,
4461
4473
  tolerance: r.tolerance || 0.4
@@ -4519,7 +4531,7 @@ f({
4519
4531
  }
4520
4532
  ]
4521
4533
  });
4522
- const yt = g.MultiColorReplaceFilter;
4534
+ const _t = g.MultiColorReplaceFilter;
4523
4535
  f({
4524
4536
  id: "multi-color-replace",
4525
4537
  name: "Multi-Color Replace",
@@ -4545,7 +4557,7 @@ f({
4545
4557
  const i = typeof r.originalColor3 == "string" ? parseInt(r.originalColor3.replace("#", "0x"), 16) : r.originalColor3, s = typeof r.targetColor3 == "string" ? parseInt(r.targetColor3.replace("#", "0x"), 16) : r.targetColor3;
4546
4558
  e.push([i, s]);
4547
4559
  }
4548
- const t = new yt(
4560
+ const t = new _t(
4549
4561
  e,
4550
4562
  r.tolerance || 0.05,
4551
4563
  3
@@ -4656,7 +4668,7 @@ f({
4656
4668
  }
4657
4669
  ]
4658
4670
  });
4659
- const { RGBSplitFilter: _t } = g;
4671
+ const { RGBSplitFilter: xt } = g;
4660
4672
  f({
4661
4673
  id: "rgb-split",
4662
4674
  name: "RGB Split",
@@ -4677,7 +4689,7 @@ f({
4677
4689
  }, i = {
4678
4690
  x: r.blueX !== void 0 ? r.blueX : 0,
4679
4691
  y: r.blueY !== void 0 ? r.blueY : 0
4680
- }, s = new _t({
4692
+ }, s = new xt({
4681
4693
  red: e,
4682
4694
  green: t,
4683
4695
  blue: i
@@ -4790,7 +4802,7 @@ f({
4790
4802
  }
4791
4803
  ]
4792
4804
  });
4793
- const { AdvancedBloomFilter: xt } = g;
4805
+ const { AdvancedBloomFilter: Ct } = g;
4794
4806
  f({
4795
4807
  id: "advanced-bloom",
4796
4808
  name: "Advanced Bloom",
@@ -4799,7 +4811,7 @@ f({
4799
4811
  // Create an instance of the AdvancedBloomFilter with the provided parameters
4800
4812
  createFilter: (r) => {
4801
4813
  try {
4802
- const e = new xt({
4814
+ const e = new Ct({
4803
4815
  threshold: r.threshold || 0.5,
4804
4816
  bloomScale: r.bloomScale || 1,
4805
4817
  brightness: r.brightness || 1,
@@ -4946,7 +4958,7 @@ f({
4946
4958
  }
4947
4959
  ]
4948
4960
  });
4949
- const Ct = g.AsciiFilter;
4961
+ const wt = g.AsciiFilter;
4950
4962
  f({
4951
4963
  id: "ascii",
4952
4964
  name: "ASCII",
@@ -4958,7 +4970,7 @@ f({
4958
4970
  const e = typeof r.size == "number" ? r.size : 8;
4959
4971
  let t = r.color;
4960
4972
  typeof t == "string" && t.startsWith("#") && (t = parseInt(t.replace("#", "0x"), 16));
4961
- const i = r.replaceColor === !0, s = new Ct({
4973
+ const i = r.replaceColor === !0, s = new wt({
4962
4974
  size: e,
4963
4975
  color: t,
4964
4976
  replaceColor: i
@@ -5025,7 +5037,7 @@ f({
5025
5037
  }
5026
5038
  ]
5027
5039
  });
5028
- const wt = g.BackdropBlurFilter;
5040
+ const St = g.BackdropBlurFilter;
5029
5041
  f({
5030
5042
  id: "backdrop-blur",
5031
5043
  name: "Backdrop Blur",
@@ -5034,7 +5046,7 @@ f({
5034
5046
  // Create an instance of the BackdropBlurFilter with the provided parameters
5035
5047
  createFilter: (r) => {
5036
5048
  try {
5037
- const e = new wt({
5049
+ const e = new St({
5038
5050
  // Higher strength values (20-50) make the effect more noticeable
5039
5051
  strength: r.strength || 20,
5040
5052
  quality: r.quality || 4,
@@ -5132,7 +5144,7 @@ f({
5132
5144
  }
5133
5145
  ]
5134
5146
  });
5135
- const { BevelFilter: St } = g;
5147
+ const { BevelFilter: vt } = g;
5136
5148
  f({
5137
5149
  id: "bevel",
5138
5150
  name: "Bevel",
@@ -5144,7 +5156,7 @@ f({
5144
5156
  */
5145
5157
  createFilter: (r) => {
5146
5158
  try {
5147
- const e = r.lightColor ? r.lightColor.replace("#", "0x") : "0xffffff", t = r.shadowColor ? r.shadowColor.replace("#", "0x") : "0x000000", i = new St({
5159
+ const e = r.lightColor ? r.lightColor.replace("#", "0x") : "0xffffff", t = r.shadowColor ? r.shadowColor.replace("#", "0x") : "0x000000", i = new vt({
5148
5160
  rotation: r.rotation !== void 0 ? r.rotation : 45,
5149
5161
  thickness: r.thickness !== void 0 ? r.thickness : 2,
5150
5162
  lightColor: parseInt(e, 16),
@@ -5260,7 +5272,7 @@ f({
5260
5272
  }
5261
5273
  ]
5262
5274
  });
5263
- const { BloomFilter: vt } = g;
5275
+ const { BloomFilter: kt } = g;
5264
5276
  f({
5265
5277
  id: "bloom",
5266
5278
  name: "Bloom/Glow",
@@ -5269,7 +5281,7 @@ f({
5269
5281
  // Create an instance of the BloomFilter with the provided parameters
5270
5282
  createFilter: (r) => {
5271
5283
  try {
5272
- const e = typeof r.strengthX == "number" ? r.strengthX : 2, t = typeof r.strengthY == "number" ? r.strengthY : 2, i = typeof r.quality == "number" ? r.quality : 4, s = typeof r.resolution == "number" ? r.resolution : 1, a = typeof r.kernelSize == "number" ? r.kernelSize : 5, o = new vt({
5284
+ const e = typeof r.strengthX == "number" ? r.strengthX : 2, t = typeof r.strengthY == "number" ? r.strengthY : 2, i = typeof r.quality == "number" ? r.quality : 4, s = typeof r.resolution == "number" ? r.resolution : 1, a = typeof r.kernelSize == "number" ? r.kernelSize : 5, o = new kt({
5273
5285
  strength: {
5274
5286
  x: Number(e),
5275
5287
  y: Number(t)
@@ -5372,7 +5384,7 @@ f({
5372
5384
  }
5373
5385
  ]
5374
5386
  });
5375
- const { BulgePinchFilter: kt } = g;
5387
+ const { BulgePinchFilter: Pt } = g;
5376
5388
  f({
5377
5389
  id: "bulge-pinch",
5378
5390
  // ID must match what the application expects
@@ -5382,7 +5394,7 @@ f({
5382
5394
  // Create an instance of the BulgePinchFilter with the provided parameters
5383
5395
  createFilter: (r) => {
5384
5396
  try {
5385
- const e = r.centerX ?? 0.5, t = r.centerY ?? 0.5, i = r.radius ?? 100, s = r.strength ?? 1, a = new kt({
5397
+ const e = r.centerX ?? 0.5, t = r.centerY ?? 0.5, i = r.radius ?? 100, s = r.strength ?? 1, a = new Pt({
5386
5398
  center: {
5387
5399
  x: e,
5388
5400
  y: t
@@ -5464,7 +5476,7 @@ f({
5464
5476
  }
5465
5477
  ]
5466
5478
  });
5467
- const { ConvolutionFilter: Pt } = g, T = {
5479
+ const { ConvolutionFilter: Mt } = g, I = {
5468
5480
  normal: [0, 0, 0, 0, 1, 0, 0, 0, 0],
5469
5481
  gaussianBlur: [0.045, 0.122, 0.045, 0.122, 0.332, 0.122, 0.045, 0.122, 0.045],
5470
5482
  boxBlur: [1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9, 1 / 9],
@@ -5497,16 +5509,16 @@ f({
5497
5509
  ];
5498
5510
  else {
5499
5511
  const i = r.preset;
5500
- e = T[i] || T.normal;
5512
+ e = I[i] || I.normal;
5501
5513
  }
5502
- const t = new Pt(e, r.width || 200, r.height || 200);
5514
+ const t = new Mt(e, r.width || 200, r.height || 200);
5503
5515
  return t._customParams = { ...r }, t.updateUIParam = function(i, s) {
5504
5516
  const a = this._customParams || {};
5505
5517
  switch (this._customParams = a, a[i] = s, i) {
5506
5518
  case "preset":
5507
5519
  if (!a.customMatrix) {
5508
5520
  const o = s;
5509
- T[o] && (this.matrix = T[o]);
5521
+ I[o] && (this.matrix = I[o]);
5510
5522
  }
5511
5523
  break;
5512
5524
  case "customMatrix":
@@ -5515,7 +5527,7 @@ f({
5515
5527
  a.m00 = o[0], a.m01 = o[1], a.m02 = o[2], a.m10 = o[3], a.m11 = o[4], a.m12 = o[5], a.m20 = o[6], a.m21 = o[7], a.m22 = o[8];
5516
5528
  } else {
5517
5529
  const o = a.preset;
5518
- this.matrix = T[o] || T.normal;
5530
+ this.matrix = I[o] || I.normal;
5519
5531
  }
5520
5532
  break;
5521
5533
  case "m00":
@@ -5710,7 +5722,7 @@ f({
5710
5722
  }
5711
5723
  ]
5712
5724
  });
5713
- const { CrossHatchFilter: Mt } = g;
5725
+ const { CrossHatchFilter: Ft } = g;
5714
5726
  f({
5715
5727
  id: "cross-hatch",
5716
5728
  name: "Cross Hatch",
@@ -5720,7 +5732,7 @@ f({
5720
5732
  // Note: CrossHatchFilter has NO parameters according to PixiJS examples
5721
5733
  createFilter: (r) => {
5722
5734
  try {
5723
- const e = new Mt();
5735
+ const e = new Ft();
5724
5736
  return e.updateUIParam = function(t, i) {
5725
5737
  return !0;
5726
5738
  }, e;
@@ -5917,7 +5929,7 @@ f({
5917
5929
  }
5918
5930
  ]
5919
5931
  });
5920
- const Ft = C.DisplacementFilter, At = C.Sprite, q = C.Texture;
5932
+ const At = C.DisplacementFilter, zt = C.Sprite, q = C.Texture;
5921
5933
  f({
5922
5934
  id: "displacement",
5923
5935
  // ID must match what the application expects
@@ -5943,7 +5955,7 @@ f({
5943
5955
  }
5944
5956
  t = q.from(o);
5945
5957
  }
5946
- const i = new At(t), s = new Ft(i, r.scale || 50);
5958
+ const i = new zt(t), s = new At(i, r.scale || 50);
5947
5959
  return s.scale.x = r.scaleX || 50, s.scale.y = r.scaleY || 50, s._customParams = { ...r }, s._displacementSprite = i, s.updateUIParam = function(a, o) {
5948
5960
  const n = this._customParams || {};
5949
5961
  switch (this._customParams = n, n[a] = o, a) {
@@ -6090,7 +6102,7 @@ f({
6090
6102
  }
6091
6103
  ]
6092
6104
  });
6093
- const { EmbossFilter: zt } = g;
6105
+ const { EmbossFilter: Nt } = g;
6094
6106
  f({
6095
6107
  id: "emboss",
6096
6108
  name: "Emboss",
@@ -6099,7 +6111,7 @@ f({
6099
6111
  // Create an instance of the Emboss filter with the provided parameters
6100
6112
  createFilter: (r) => {
6101
6113
  try {
6102
- const e = typeof r.strength == "number" ? r.strength : 5, t = new zt(e);
6114
+ const e = typeof r.strength == "number" ? r.strength : 5, t = new Nt(e);
6103
6115
  return t._customParams = {
6104
6116
  strength: e
6105
6117
  }, t.updateUIParam = function(i, s) {
@@ -6139,7 +6151,7 @@ f({
6139
6151
  }
6140
6152
  ]
6141
6153
  });
6142
- const { GlitchFilter: Nt } = g, A = {
6154
+ const { GlitchFilter: Rt } = g, A = {
6143
6155
  TRANSPARENT: 0,
6144
6156
  ORIGINAL: 1,
6145
6157
  LOOP: 2,
@@ -6153,7 +6165,7 @@ f({
6153
6165
  description: "Apply digital distortion and glitch effects",
6154
6166
  createFilter: (r) => {
6155
6167
  try {
6156
- const e = { x: r.redX, y: r.redY }, t = { x: r.greenX, y: r.greenY }, i = { x: r.blueX, y: r.blueY }, s = new Nt({
6168
+ const e = { x: r.redX, y: r.redY }, t = { x: r.greenX, y: r.greenY }, i = { x: r.blueX, y: r.blueY }, s = new Rt({
6157
6169
  slices: r.slices,
6158
6170
  offset: r.offset,
6159
6171
  direction: r.direction,
@@ -6394,7 +6406,7 @@ f({
6394
6406
  }
6395
6407
  ]
6396
6408
  });
6397
- const { GlowFilter: Rt } = g;
6409
+ const { GlowFilter: Tt } = g;
6398
6410
  f({
6399
6411
  id: "glow",
6400
6412
  name: "Glow",
@@ -6403,7 +6415,7 @@ f({
6403
6415
  // Create an instance of the GlowFilter with the provided parameters
6404
6416
  createFilter: (r) => {
6405
6417
  try {
6406
- const e = parseInt(r.color.replace("#", "0x"), 16), t = new Rt({
6418
+ const e = parseInt(r.color.replace("#", "0x"), 16), t = new Tt({
6407
6419
  distance: r.distance || 10,
6408
6420
  outerStrength: r.outerStrength || 4,
6409
6421
  innerStrength: r.innerStrength || 0,
@@ -6529,7 +6541,7 @@ f({
6529
6541
  }
6530
6542
  ]
6531
6543
  });
6532
- const { GodrayFilter: Tt } = g;
6544
+ const { GodrayFilter: It } = g;
6533
6545
  f({
6534
6546
  id: "godray",
6535
6547
  name: "Godray",
@@ -6538,7 +6550,7 @@ f({
6538
6550
  // Create an instance of the GodrayFilter with the provided parameters
6539
6551
  createFilter: (r) => {
6540
6552
  try {
6541
- const e = new Tt({
6553
+ const e = new It({
6542
6554
  angle: r.angle || 30,
6543
6555
  parallel: r.parallel ?? !0,
6544
6556
  center: {
@@ -6691,7 +6703,7 @@ f({
6691
6703
  }
6692
6704
  ]
6693
6705
  });
6694
- const It = g.SimpleLightmapFilter, ie = C.Texture;
6706
+ const Xt = g.SimpleLightmapFilter, ie = C.Texture;
6695
6707
  f({
6696
6708
  id: "lightmap",
6697
6709
  name: "Lightmap",
@@ -6723,7 +6735,7 @@ f({
6723
6735
  } catch {
6724
6736
  n = 0;
6725
6737
  }
6726
- const l = new It(o, n, i);
6738
+ const l = new Xt(o, n, i);
6727
6739
  return l._customParams = {
6728
6740
  textureType: e,
6729
6741
  color: t,
@@ -6822,7 +6834,7 @@ f({
6822
6834
  }
6823
6835
  ]
6824
6836
  });
6825
- const { NoiseFilter: Xt } = C;
6837
+ const { NoiseFilter: Et } = C;
6826
6838
  f({
6827
6839
  id: "noise",
6828
6840
  name: "Noise",
@@ -6830,7 +6842,7 @@ f({
6830
6842
  description: "Add random noise to the image",
6831
6843
  createFilter: (r) => {
6832
6844
  try {
6833
- const e = new Xt({
6845
+ const e = new Et({
6834
6846
  noise: r.noise || 0.5,
6835
6847
  seed: r.seed || Math.random()
6836
6848
  });
@@ -6907,7 +6919,7 @@ f({
6907
6919
  }
6908
6920
  ]
6909
6921
  });
6910
- const { OldFilmFilter: Et } = g;
6922
+ const { OldFilmFilter: Yt } = g;
6911
6923
  f({
6912
6924
  id: "old-film",
6913
6925
  name: "Old Film",
@@ -6915,7 +6927,7 @@ f({
6915
6927
  description: "Apply a vintage film effect with scratches and grain",
6916
6928
  createFilter: (r) => {
6917
6929
  try {
6918
- const e = new Et({
6930
+ const e = new Yt({
6919
6931
  sepia: r.sepia,
6920
6932
  noise: r.noise,
6921
6933
  noiseSize: r.noiseSize,
@@ -7096,7 +7108,7 @@ f({
7096
7108
  }
7097
7109
  ]
7098
7110
  });
7099
- const { OutlineFilter: Yt } = g;
7111
+ const { OutlineFilter: Bt } = g;
7100
7112
  f({
7101
7113
  id: "outline",
7102
7114
  name: "Outline",
@@ -7106,7 +7118,7 @@ f({
7106
7118
  try {
7107
7119
  let e = r.color;
7108
7120
  typeof e == "string" && (e = parseInt(e.replace("#", "0x"), 16));
7109
- const t = new Yt({
7121
+ const t = new Bt({
7110
7122
  thickness: r.thickness || 4,
7111
7123
  color: e,
7112
7124
  alpha: r.alpha || 1,
@@ -7196,7 +7208,7 @@ f({
7196
7208
  }
7197
7209
  ]
7198
7210
  });
7199
- const { PixelateFilter: Bt } = g;
7211
+ const { PixelateFilter: Ot } = g;
7200
7212
  f({
7201
7213
  id: "pixelate",
7202
7214
  name: "Pixelate",
@@ -7204,7 +7216,7 @@ f({
7204
7216
  description: "Create a pixelated or mosaic effect",
7205
7217
  createFilter: (r) => {
7206
7218
  try {
7207
- const e = new Bt(
7219
+ const e = new Ot(
7208
7220
  r.useUniform ? Math.max(4, r.size || 10) : [Math.max(4, r.sizeX || 10), Math.max(4, r.sizeY || 10)]
7209
7221
  );
7210
7222
  return e._customParams = { ...r }, e.updateUIParam = function(t, i) {
@@ -7287,7 +7299,7 @@ f({
7287
7299
  }
7288
7300
  ]
7289
7301
  });
7290
- const { ReflectionFilter: Ot } = g;
7302
+ const { ReflectionFilter: Lt } = g;
7291
7303
  f({
7292
7304
  id: "reflection",
7293
7305
  // ID must match what the application expects
@@ -7304,7 +7316,7 @@ f({
7304
7316
  waveLength: new Float32Array([r.wavelengthStart ?? 30, r.wavelengthEnd ?? 100]),
7305
7317
  alpha: new Float32Array([r.alphaStart ?? 1, r.alphaEnd ?? 1]),
7306
7318
  time: r.time ?? 0
7307
- }, t = new Ot(e);
7319
+ }, t = new Lt(e);
7308
7320
  return t._customParams = { ...r }, t.animating = r.animating ?? !1, t.updateUIParam = function(i, s) {
7309
7321
  const a = this._customParams || {};
7310
7322
  switch (this._customParams = a, a[i] = s, i) {
@@ -7455,7 +7467,7 @@ f({
7455
7467
  }
7456
7468
  ]
7457
7469
  });
7458
- const { ShockwaveFilter: Lt } = g;
7470
+ const { ShockwaveFilter: Ut } = g;
7459
7471
  f({
7460
7472
  id: "shockwave",
7461
7473
  // ID must match what the application expects
@@ -7465,7 +7477,7 @@ f({
7465
7477
  // Create an instance of the ShockwaveFilter with the provided parameters
7466
7478
  createFilter: (r) => {
7467
7479
  try {
7468
- const e = r.centerX ?? 0.5, t = r.centerY ?? 0.5, i = { x: e, y: t }, s = r.amplitude ?? 30, a = r.wavelength ?? 160, o = r.speed ?? 500, n = r.brightness ?? 1, l = r.radius ?? -1, c = r.time ?? 0, d = new Lt({
7480
+ const e = r.centerX ?? 0.5, t = r.centerY ?? 0.5, i = { x: e, y: t }, s = r.amplitude ?? 30, a = r.wavelength ?? 160, o = r.speed ?? 500, n = r.brightness ?? 1, l = r.radius ?? -1, c = r.time ?? 0, d = new Ut({
7469
7481
  center: i,
7470
7482
  amplitude: s,
7471
7483
  wavelength: a,
@@ -7607,7 +7619,7 @@ f({
7607
7619
  }
7608
7620
  ]
7609
7621
  });
7610
- const { SimplexNoiseFilter: Ut } = g;
7622
+ const { SimplexNoiseFilter: Dt } = g;
7611
7623
  f({
7612
7624
  id: "simplex-noise",
7613
7625
  name: "Simplex Noise",
@@ -7615,7 +7627,7 @@ f({
7615
7627
  description: "Apply procedural noise to create texture effects",
7616
7628
  createFilter: (r) => {
7617
7629
  try {
7618
- const e = r.animating ? 0 : r.offsetZ || 0, t = new Ut({
7630
+ const e = r.animating ? 0 : r.offsetZ || 0, t = new Dt({
7619
7631
  strength: r.strength,
7620
7632
  noiseScale: r.noiseScale,
7621
7633
  offsetX: r.offsetX,
@@ -7762,7 +7774,7 @@ f({
7762
7774
  }
7763
7775
  ]
7764
7776
  });
7765
- class Dt extends C.Filter {
7777
+ class Vt extends C.Filter {
7766
7778
  constructor(e) {
7767
7779
  const t = ue.from({
7768
7780
  vertex: `
@@ -7873,7 +7885,7 @@ f({
7873
7885
  description: "Creates a twisting distortion effect around a central point",
7874
7886
  createFilter: (r) => {
7875
7887
  try {
7876
- const e = new Dt({
7888
+ const e = new Vt({
7877
7889
  centerX: r.centerX ?? 0.5,
7878
7890
  centerY: r.centerY ?? 0.5,
7879
7891
  radius: r.radius ?? 0.25,
@@ -7943,7 +7955,7 @@ f({
7943
7955
  }
7944
7956
  ]
7945
7957
  });
7946
- const { AdjustmentFilter: Vt } = g;
7958
+ const { AdjustmentFilter: jt } = g;
7947
7959
  function L(r) {
7948
7960
  const e = typeof r == "string" ? parseInt(r.replace("#", "0x"), 16) : r;
7949
7961
  return [
@@ -7952,7 +7964,7 @@ function L(r) {
7952
7964
  (e & 255) / 255
7953
7965
  ];
7954
7966
  }
7955
- class jt extends Vt {
7967
+ class qt extends jt {
7956
7968
  constructor(e = {}) {
7957
7969
  super({
7958
7970
  brightness: 1,
@@ -7995,7 +8007,7 @@ f({
7995
8007
  description: "Add a classic darkened border effect to the image",
7996
8008
  createFilter: (r) => {
7997
8009
  try {
7998
- const e = new jt({
8010
+ const e = new qt({
7999
8011
  radius: r.radius || 0.8,
8000
8012
  strength: r.strength || 1,
8001
8013
  color: r.color || "#000000"
@@ -8059,34 +8071,41 @@ f({
8059
8071
  }
8060
8072
  ]
8061
8073
  });
8062
- function Gt() {
8074
+ function Kt(r) {
8063
8075
  try {
8064
- let r = [], e = [];
8076
+ let e = [], t = [];
8065
8077
  try {
8066
- r = U(), r.length === 0 && Ke();
8078
+ e = U(), e.length === 0 && Ke();
8067
8079
  } catch {
8068
8080
  }
8081
+ const i = r == null ? void 0 : r.disabled;
8082
+ if (Array.isArray(i) && i.length > 0) {
8083
+ let s = 0;
8084
+ for (const a of i)
8085
+ et(a) && s++;
8086
+ s > 0;
8087
+ }
8069
8088
  try {
8070
- r = U(), e = Je();
8089
+ e = U(), t = Je();
8071
8090
  } catch {
8072
- r || (r = []), e || (e = []);
8091
+ e || (e = []), t || (t = []);
8073
8092
  }
8074
- return r.length, r;
8093
+ return e.length, e;
8075
8094
  } catch {
8076
8095
  return [];
8077
8096
  }
8078
8097
  }
8079
8098
  export {
8080
- $t as V,
8099
+ Zt as V,
8081
8100
  Ge as a,
8082
8101
  Qe as b,
8083
8102
  Je as c,
8084
8103
  Ke as d,
8085
- Wt as e,
8086
- et as f,
8104
+ Gt as e,
8105
+ tt as f,
8087
8106
  U as g,
8088
- Zt as h,
8089
- Gt as i,
8107
+ Wt as h,
8108
+ Kt as i,
8090
8109
  f as r
8091
8110
  };
8092
- //# sourceMappingURL=index-DBM_ViWA.js.map
8111
+ //# sourceMappingURL=editor-CfH1RN8F.js.map