shaders 2.2.35 → 2.2.37

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 (141) hide show
  1. package/dist/core/Perspective-CSP2Hb16.js +137 -0
  2. package/dist/core/index.js +55 -53
  3. package/dist/core/shaderRegistry.d.ts.map +1 -1
  4. package/dist/core/shaders/Perspective/index.d.ts +57 -0
  5. package/dist/core/shaders/Perspective/index.d.ts.map +1 -0
  6. package/dist/core/shaders/Perspective/index.js +4 -0
  7. package/dist/core/shaders/Pixelate/index.js +1 -1
  8. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  9. package/dist/core/shaders/Posterize/index.js +1 -1
  10. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  11. package/dist/core/shaders/RadialGradient/index.js +1 -1
  12. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  13. package/dist/core/shaders/Ripples/index.js +1 -1
  14. package/dist/core/shaders/Saturation/index.js +1 -1
  15. package/dist/core/shaders/Sharpness/index.js +1 -1
  16. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  17. package/dist/core/shaders/SineWave/index.js +1 -1
  18. package/dist/core/shaders/SolidColor/index.js +1 -1
  19. package/dist/core/shaders/Spherize/index.js +1 -1
  20. package/dist/core/shaders/Spiral/index.js +1 -1
  21. package/dist/core/shaders/Strands/index.js +1 -1
  22. package/dist/core/shaders/Stretch/index.js +1 -1
  23. package/dist/core/shaders/Swirl/index.js +1 -1
  24. package/dist/core/shaders/TiltShift/index.js +1 -1
  25. package/dist/core/shaders/Tritone/index.js +1 -1
  26. package/dist/core/shaders/Twirl/index.js +1 -1
  27. package/dist/core/shaders/Vibrance/index.js +1 -1
  28. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  29. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  30. package/dist/react/components/Perspective.d.ts +31 -0
  31. package/dist/react/components/Perspective.d.ts.map +1 -0
  32. package/dist/react/{generatePresetCode-C4t1eM0z.js → generatePresetCode-DtpUpaeM.js} +18 -0
  33. package/dist/react/index.d.ts +1 -0
  34. package/dist/react/index.d.ts.map +1 -1
  35. package/dist/react/index.js +542 -403
  36. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  37. package/dist/react/utils/generatePresetCode.js +1 -1
  38. package/dist/registry.js +202 -0
  39. package/dist/solid/components/AngularBlur.d.ts.map +1 -1
  40. package/dist/solid/components/Ascii.d.ts.map +1 -1
  41. package/dist/solid/components/Beam.d.ts.map +1 -1
  42. package/dist/solid/components/Blob.d.ts.map +1 -1
  43. package/dist/solid/components/Blur.d.ts.map +1 -1
  44. package/dist/solid/components/BrightnessContrast.d.ts.map +1 -1
  45. package/dist/solid/components/Bulge.d.ts.map +1 -1
  46. package/dist/solid/components/CRTScreen.d.ts.map +1 -1
  47. package/dist/solid/components/ChannelBlur.d.ts.map +1 -1
  48. package/dist/solid/components/Checkerboard.d.ts.map +1 -1
  49. package/dist/solid/components/ChromaFlow.d.ts.map +1 -1
  50. package/dist/solid/components/ChromaticAberration.d.ts.map +1 -1
  51. package/dist/solid/components/Circle.d.ts.map +1 -1
  52. package/dist/solid/components/CursorTrail.d.ts.map +1 -1
  53. package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
  54. package/dist/solid/components/Dither.d.ts.map +1 -1
  55. package/dist/solid/components/DotGrid.d.ts.map +1 -1
  56. package/dist/solid/components/Duotone.d.ts.map +1 -1
  57. package/dist/solid/components/FilmGrain.d.ts.map +1 -1
  58. package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
  59. package/dist/solid/components/GlassTiles.d.ts.map +1 -1
  60. package/dist/solid/components/Glow.d.ts.map +1 -1
  61. package/dist/solid/components/Godrays.d.ts.map +1 -1
  62. package/dist/solid/components/Grayscale.d.ts.map +1 -1
  63. package/dist/solid/components/Grid.d.ts.map +1 -1
  64. package/dist/solid/components/GridDistortion.d.ts.map +1 -1
  65. package/dist/solid/components/Group.d.ts.map +1 -1
  66. package/dist/solid/components/Halftone.d.ts.map +1 -1
  67. package/dist/solid/components/HueShift.d.ts.map +1 -1
  68. package/dist/solid/components/ImageTexture.d.ts.map +1 -1
  69. package/dist/solid/components/Invert.d.ts.map +1 -1
  70. package/dist/solid/components/LinearBlur.d.ts.map +1 -1
  71. package/dist/solid/components/LinearGradient.d.ts.map +1 -1
  72. package/dist/solid/components/Liquify.d.ts.map +1 -1
  73. package/dist/solid/components/Perspective.d.ts +28 -0
  74. package/dist/solid/components/Perspective.d.ts.map +1 -0
  75. package/dist/solid/components/Pixelate.d.ts.map +1 -1
  76. package/dist/solid/components/PolarCoordinates.d.ts.map +1 -1
  77. package/dist/solid/components/Posterize.d.ts.map +1 -1
  78. package/dist/solid/components/ProgressiveBlur.d.ts.map +1 -1
  79. package/dist/solid/components/RadialGradient.d.ts.map +1 -1
  80. package/dist/solid/components/RectangularCoordinates.d.ts.map +1 -1
  81. package/dist/solid/components/Ripples.d.ts.map +1 -1
  82. package/dist/solid/components/Saturation.d.ts.map +1 -1
  83. package/dist/solid/components/Sharpness.d.ts.map +1 -1
  84. package/dist/solid/components/SimplexNoise.d.ts.map +1 -1
  85. package/dist/solid/components/SineWave.d.ts.map +1 -1
  86. package/dist/solid/components/SolidColor.d.ts.map +1 -1
  87. package/dist/solid/components/Spherize.d.ts.map +1 -1
  88. package/dist/solid/components/Spiral.d.ts.map +1 -1
  89. package/dist/solid/components/Strands.d.ts.map +1 -1
  90. package/dist/solid/components/Stretch.d.ts.map +1 -1
  91. package/dist/solid/components/Swirl.d.ts.map +1 -1
  92. package/dist/solid/components/TiltShift.d.ts.map +1 -1
  93. package/dist/solid/components/Tritone.d.ts.map +1 -1
  94. package/dist/solid/components/Twirl.d.ts.map +1 -1
  95. package/dist/solid/components/Vibrance.d.ts.map +1 -1
  96. package/dist/solid/components/WaveDistortion.d.ts.map +1 -1
  97. package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
  98. package/dist/solid/engine/Shader.d.ts.map +1 -1
  99. package/dist/solid/engine/component.template.d.ts.map +1 -1
  100. package/dist/solid/index.d.ts +1 -0
  101. package/dist/solid/index.d.ts.map +1 -1
  102. package/dist/solid/index.js +601 -401
  103. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  104. package/dist/solid/utils/generatePresetCode.js +18 -0
  105. package/dist/svelte/components/Perspective.svelte.d.ts +19 -0
  106. package/dist/svelte/{generatePresetCode-CT9aNR6P.js → generatePresetCode-Yu_cJh3q.js} +18 -0
  107. package/dist/svelte/index.d.ts +1 -0
  108. package/dist/svelte/index.js +159 -48
  109. package/dist/svelte/utils/generatePresetCode.js +1 -1
  110. package/dist/vue/components/Perspective.vue.d.ts +57 -0
  111. package/dist/vue/components/Perspective.vue.d.ts.map +1 -0
  112. package/dist/vue/{generatePresetCode-BmkyNfz6.js → generatePresetCode-DnK2X66E.js} +18 -0
  113. package/dist/vue/index.d.ts +1 -0
  114. package/dist/vue/index.d.ts.map +1 -1
  115. package/dist/vue/index.js +297 -170
  116. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  117. package/dist/vue/utils/generatePresetCode.js +1 -1
  118. package/package.json +9 -1
  119. /package/dist/core/{Pixelate-C5Rx1dBp.js → Pixelate-BAoi-CSx.js} +0 -0
  120. /package/dist/core/{PolarCoordinates-CIh5ef8m.js → PolarCoordinates-BwN9HhFK.js} +0 -0
  121. /package/dist/core/{Posterize-Byy0Ek0l.js → Posterize-XoAqPWv2.js} +0 -0
  122. /package/dist/core/{ProgressiveBlur-Bzz24_y-.js → ProgressiveBlur-RuAm_BKx.js} +0 -0
  123. /package/dist/core/{RadialGradient-Ci1dU-1K.js → RadialGradient-BfFuRbIl.js} +0 -0
  124. /package/dist/core/{RectangularCoordinates-tVGG7WOJ.js → RectangularCoordinates-CiW3J4UT.js} +0 -0
  125. /package/dist/core/{Ripples-BCGSt5HD.js → Ripples-BAcLsbLr.js} +0 -0
  126. /package/dist/core/{Saturation-DWR1Nruu.js → Saturation-DVVlpikK.js} +0 -0
  127. /package/dist/core/{Sharpness-B2MrhUH5.js → Sharpness-cw57bW0s.js} +0 -0
  128. /package/dist/core/{SimplexNoise-j5sH7ro0.js → SimplexNoise-CxF7Tl5O.js} +0 -0
  129. /package/dist/core/{SineWave-C4Lz5gO9.js → SineWave-SIEiE1O3.js} +0 -0
  130. /package/dist/core/{SolidColor-9huPo7Qb.js → SolidColor-zYROg_aE.js} +0 -0
  131. /package/dist/core/{Spherize-ARP2hY6_.js → Spherize-tsKMpSaS.js} +0 -0
  132. /package/dist/core/{Spiral-d60Q9u4M.js → Spiral-PsIc1BI9.js} +0 -0
  133. /package/dist/core/{Strands-DiIbhZ0r.js → Strands-xsbd_3Bt.js} +0 -0
  134. /package/dist/core/{Stretch-UYY3Qep7.js → Stretch-BhHjbcqd.js} +0 -0
  135. /package/dist/core/{Swirl-jQMlfm2U.js → Swirl-CV1prOHF.js} +0 -0
  136. /package/dist/core/{TiltShift-Ctj-Dsom.js → TiltShift-BYQjUHpn.js} +0 -0
  137. /package/dist/core/{Tritone-D2lMeIyT.js → Tritone-CJW8YTyB.js} +0 -0
  138. /package/dist/core/{Twirl-D4opuuKg.js → Twirl-5k_XPd51.js} +0 -0
  139. /package/dist/core/{Vibrance-CZCF06c0.js → Vibrance-c25pkbWj.js} +0 -0
  140. /package/dist/core/{WaveDistortion-DdJtTeib.js → WaveDistortion-BRgbfqt3.js} +0 -0
  141. /package/dist/core/{ZoomBlur-DfzUaH4u.js → ZoomBlur-DEozXA8U.js} +0 -0
@@ -0,0 +1,137 @@
1
+ import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
2
+ import { o as transformEdges, s as transformPosition } from "./transformations-YbhRK-rd.js";
3
+ import { convertToTexture, cos, float, max, screenUV, sin, tan, vec2, vec4 } from "three/tsl";
4
+ const componentDefinition = {
5
+ name: "Perspective",
6
+ category: "Distortions",
7
+ description: "Rotate the plane in 3D space with pan and tilt",
8
+ requiresRTT: true,
9
+ requiresChild: true,
10
+ props: {
11
+ center: {
12
+ default: {
13
+ x: .5,
14
+ y: .5
15
+ },
16
+ transform: transformPosition,
17
+ description: "Center point of rotation",
18
+ ui: {
19
+ type: "position",
20
+ label: "Center"
21
+ }
22
+ },
23
+ pan: {
24
+ default: 0,
25
+ description: "Horizontal rotation (left/right)",
26
+ ui: {
27
+ type: "range",
28
+ min: -90,
29
+ max: 90,
30
+ step: .1,
31
+ label: "Pan"
32
+ }
33
+ },
34
+ tilt: {
35
+ default: 0,
36
+ description: "Vertical rotation (up/down)",
37
+ ui: {
38
+ type: "range",
39
+ min: -90,
40
+ max: 90,
41
+ step: .1,
42
+ label: "Tilt"
43
+ }
44
+ },
45
+ fov: {
46
+ default: 60,
47
+ description: "Field of view - controls perspective intensity",
48
+ ui: {
49
+ type: "range",
50
+ min: 30,
51
+ max: 120,
52
+ step: 1,
53
+ label: "FOV"
54
+ }
55
+ },
56
+ zoom: {
57
+ default: 1,
58
+ description: "Zoom in to fill the frame after rotation",
59
+ ui: {
60
+ type: "range",
61
+ min: .5,
62
+ max: 3,
63
+ step: .01,
64
+ label: "Zoom"
65
+ }
66
+ },
67
+ offset: {
68
+ default: {
69
+ x: .5,
70
+ y: .5
71
+ },
72
+ transform: transformPosition,
73
+ description: "Shift the result in X/Y",
74
+ ui: {
75
+ type: "position",
76
+ label: "Offset"
77
+ }
78
+ },
79
+ edges: {
80
+ default: "transparent",
81
+ description: "How to handle edges",
82
+ transform: transformEdges,
83
+ ui: {
84
+ type: "select",
85
+ options: [
86
+ {
87
+ label: "Stretch",
88
+ value: "stretch"
89
+ },
90
+ {
91
+ label: "Transparent",
92
+ value: "transparent"
93
+ },
94
+ {
95
+ label: "Mirror",
96
+ value: "mirror"
97
+ },
98
+ {
99
+ label: "Wrap",
100
+ value: "wrap"
101
+ }
102
+ ],
103
+ label: "Edges"
104
+ }
105
+ }
106
+ },
107
+ fragmentNode: ({ uniforms, childNode, onCleanup }) => {
108
+ if (!childNode) return vec4(0, 0, 0, 0);
109
+ const childTexture = convertToTexture(childNode);
110
+ onCleanup(() => {
111
+ if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
112
+ });
113
+ const centerPos = vec2(uniforms.center.uniform.x, uniforms.center.uniform.y.oneMinus());
114
+ const zoom = uniforms.zoom.uniform;
115
+ const x = screenUV.x.sub(centerPos.x).div(zoom);
116
+ const y = screenUV.y.sub(centerPos.y).div(zoom);
117
+ const panRad = uniforms.pan.uniform.mul(Math.PI / 180);
118
+ const tiltRad = uniforms.tilt.uniform.mul(Math.PI / 180);
119
+ const fovRad = uniforms.fov.uniform.mul(Math.PI / 180);
120
+ const cosPan = cos(panRad);
121
+ const sinPan = sin(panRad);
122
+ const cosTilt = cos(tiltRad);
123
+ const sinTilt = sin(tiltRad);
124
+ const perspectiveFactor = tan(fovRad.mul(.5)).mul(2);
125
+ const safePanDivisor = max(cosPan.add(sinPan.mul(x).mul(perspectiveFactor)), float(.001));
126
+ const afterPanX = x.div(safePanDivisor);
127
+ const afterPanY = y.mul(cosPan).div(safePanDivisor);
128
+ const safeTiltDivisor = max(cosTilt.add(sinTilt.mul(afterPanY).mul(perspectiveFactor)), float(.001));
129
+ const finalX = afterPanX.mul(cosTilt).div(safeTiltDivisor);
130
+ const finalY = afterPanY.div(safeTiltDivisor);
131
+ const offsetPos = vec2(uniforms.offset.uniform.x, uniforms.offset.uniform.y.oneMinus());
132
+ const finalUV = vec2(finalX, finalY).add(centerPos).sub(offsetPos).add(vec2(.5, .5));
133
+ return applyEdgeHandling(finalUV, childTexture.sample(finalUV), childTexture, uniforms.edges.uniform);
134
+ }
135
+ };
136
+ var Perspective_default = componentDefinition;
137
+ export { componentDefinition as n, Perspective_default as t };
@@ -36,29 +36,30 @@ import { n as componentDefinition$30 } from "./Invert-w9duGaUu.js";
36
36
  import { n as componentDefinition$31 } from "./LinearBlur-CTXjolzL.js";
37
37
  import { n as componentDefinition$32 } from "./LinearGradient-CZo6e7r8.js";
38
38
  import { n as componentDefinition$33 } from "./Liquify-BbfDBMNZ.js";
39
- import { n as componentDefinition$34 } from "./Pixelate-C5Rx1dBp.js";
40
- import { n as componentDefinition$35 } from "./PolarCoordinates-CIh5ef8m.js";
41
- import { n as componentDefinition$36 } from "./Posterize-Byy0Ek0l.js";
42
- import { n as componentDefinition$37 } from "./ProgressiveBlur-Bzz24_y-.js";
43
- import { n as componentDefinition$38 } from "./RadialGradient-Ci1dU-1K.js";
44
- import { n as componentDefinition$39 } from "./RectangularCoordinates-tVGG7WOJ.js";
45
- import { n as componentDefinition$40 } from "./Ripples-BCGSt5HD.js";
46
- import { n as componentDefinition$41 } from "./Saturation-DWR1Nruu.js";
47
- import { n as componentDefinition$42 } from "./Sharpness-B2MrhUH5.js";
48
- import { n as componentDefinition$43 } from "./SimplexNoise-j5sH7ro0.js";
49
- import { n as componentDefinition$44 } from "./SineWave-C4Lz5gO9.js";
50
- import { n as componentDefinition$45 } from "./SolidColor-9huPo7Qb.js";
51
- import { n as componentDefinition$46 } from "./Spherize-ARP2hY6_.js";
52
- import { n as componentDefinition$47 } from "./Spiral-d60Q9u4M.js";
53
- import { n as componentDefinition$48 } from "./Strands-DiIbhZ0r.js";
54
- import { n as componentDefinition$49 } from "./Stretch-UYY3Qep7.js";
55
- import { n as componentDefinition$50 } from "./Swirl-jQMlfm2U.js";
56
- import { n as componentDefinition$51 } from "./TiltShift-Ctj-Dsom.js";
57
- import { n as componentDefinition$52 } from "./Tritone-D2lMeIyT.js";
58
- import { n as componentDefinition$53 } from "./Twirl-D4opuuKg.js";
59
- import { n as componentDefinition$54 } from "./Vibrance-CZCF06c0.js";
60
- import { n as componentDefinition$55 } from "./WaveDistortion-DdJtTeib.js";
61
- import { n as componentDefinition$56 } from "./ZoomBlur-DfzUaH4u.js";
39
+ import { n as componentDefinition$34 } from "./Perspective-CSP2Hb16.js";
40
+ import { n as componentDefinition$35 } from "./Pixelate-BAoi-CSx.js";
41
+ import { n as componentDefinition$36 } from "./PolarCoordinates-BwN9HhFK.js";
42
+ import { n as componentDefinition$37 } from "./Posterize-XoAqPWv2.js";
43
+ import { n as componentDefinition$38 } from "./ProgressiveBlur-RuAm_BKx.js";
44
+ import { n as componentDefinition$39 } from "./RadialGradient-BfFuRbIl.js";
45
+ import { n as componentDefinition$40 } from "./RectangularCoordinates-CiW3J4UT.js";
46
+ import { n as componentDefinition$41 } from "./Ripples-BAcLsbLr.js";
47
+ import { n as componentDefinition$42 } from "./Saturation-DVVlpikK.js";
48
+ import { n as componentDefinition$43 } from "./Sharpness-cw57bW0s.js";
49
+ import { n as componentDefinition$44 } from "./SimplexNoise-CxF7Tl5O.js";
50
+ import { n as componentDefinition$45 } from "./SineWave-SIEiE1O3.js";
51
+ import { n as componentDefinition$46 } from "./SolidColor-zYROg_aE.js";
52
+ import { n as componentDefinition$47 } from "./Spherize-tsKMpSaS.js";
53
+ import { n as componentDefinition$48 } from "./Spiral-PsIc1BI9.js";
54
+ import { n as componentDefinition$49 } from "./Strands-xsbd_3Bt.js";
55
+ import { n as componentDefinition$50 } from "./Stretch-BhHjbcqd.js";
56
+ import { n as componentDefinition$51 } from "./Swirl-CV1prOHF.js";
57
+ import { n as componentDefinition$52 } from "./TiltShift-BYQjUHpn.js";
58
+ import { n as componentDefinition$53 } from "./Tritone-CJW8YTyB.js";
59
+ import { n as componentDefinition$54 } from "./Twirl-5k_XPd51.js";
60
+ import { n as componentDefinition$55 } from "./Vibrance-c25pkbWj.js";
61
+ import { n as componentDefinition$56 } from "./WaveDistortion-BRgbfqt3.js";
62
+ import { n as componentDefinition$57 } from "./ZoomBlur-DEozXA8U.js";
62
63
  import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, WebGPURenderer } from "three/webgpu";
63
64
  import { WebGLRenderer } from "three";
64
65
  import { PI, abs, add, atan, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
@@ -1085,7 +1086,7 @@ function shaderRenderer() {
1085
1086
  }
1086
1087
  }
1087
1088
  };
1088
- const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$57) => {
1089
+ const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$58) => {
1089
1090
  if (fragmentNodeFunc === null) {
1090
1091
  const queueIndex = pendingRegistrationQueue.findIndex((item) => item.id === id);
1091
1092
  if (queueIndex !== -1) {
@@ -1103,7 +1104,7 @@ function shaderRenderer() {
1103
1104
  parentId,
1104
1105
  metadata,
1105
1106
  uniforms,
1106
- componentDefinition: componentDefinition$57
1107
+ componentDefinition: componentDefinition$58
1107
1108
  };
1108
1109
  else pendingRegistrationQueue.push({
1109
1110
  id,
@@ -1111,7 +1112,7 @@ function shaderRenderer() {
1111
1112
  parentId,
1112
1113
  metadata,
1113
1114
  uniforms,
1114
- componentDefinition: componentDefinition$57
1115
+ componentDefinition: componentDefinition$58
1115
1116
  });
1116
1117
  return;
1117
1118
  }
@@ -1144,11 +1145,11 @@ function shaderRenderer() {
1144
1145
  }
1145
1146
  const nodeInfo = {
1146
1147
  id,
1147
- componentName: componentDefinition$57?.name || "Unknown",
1148
+ componentName: componentDefinition$58?.name || "Unknown",
1148
1149
  fragmentNodeFunc,
1149
1150
  parentId,
1150
- requiresRTT: componentDefinition$57?.requiresRTT || false,
1151
- requiresChild: componentDefinition$57?.requiresChild || false,
1151
+ requiresRTT: componentDefinition$58?.requiresRTT || false,
1152
+ requiresChild: componentDefinition$58?.requiresChild || false,
1152
1153
  opacityUniform,
1153
1154
  metadata: {
1154
1155
  blendMode: metadata?.blendMode || "normal",
@@ -1464,7 +1465,7 @@ function shaderRenderer() {
1464
1465
  if (pendingRegistrationQueue.length === 0) return;
1465
1466
  const queue = [...pendingRegistrationQueue];
1466
1467
  pendingRegistrationQueue = [];
1467
- for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$57 } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition$57);
1468
+ for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$58 } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition$58);
1468
1469
  };
1469
1470
  const initialize = async ({ canvas, enablePerformanceTracking: enableTracking = false }) => {
1470
1471
  if (isInitialized || isInitializing) return;
@@ -1793,29 +1794,30 @@ var createShaderRegistry = () => {
1793
1794
  LinearBlur: componentDefinition$31,
1794
1795
  LinearGradient: componentDefinition$32,
1795
1796
  Liquify: componentDefinition$33,
1796
- Pixelate: componentDefinition$34,
1797
- PolarCoordinates: componentDefinition$35,
1798
- Posterize: componentDefinition$36,
1799
- ProgressiveBlur: componentDefinition$37,
1800
- RadialGradient: componentDefinition$38,
1801
- RectangularCoordinates: componentDefinition$39,
1802
- Ripples: componentDefinition$40,
1803
- Saturation: componentDefinition$41,
1804
- Sharpness: componentDefinition$42,
1805
- SimplexNoise: componentDefinition$43,
1806
- SineWave: componentDefinition$44,
1807
- SolidColor: componentDefinition$45,
1808
- Spherize: componentDefinition$46,
1809
- Spiral: componentDefinition$47,
1810
- Strands: componentDefinition$48,
1811
- Stretch: componentDefinition$49,
1812
- Swirl: componentDefinition$50,
1813
- TiltShift: componentDefinition$51,
1814
- Tritone: componentDefinition$52,
1815
- Twirl: componentDefinition$53,
1816
- Vibrance: componentDefinition$54,
1817
- WaveDistortion: componentDefinition$55,
1818
- ZoomBlur: componentDefinition$56
1797
+ Perspective: componentDefinition$34,
1798
+ Pixelate: componentDefinition$35,
1799
+ PolarCoordinates: componentDefinition$36,
1800
+ Posterize: componentDefinition$37,
1801
+ ProgressiveBlur: componentDefinition$38,
1802
+ RadialGradient: componentDefinition$39,
1803
+ RectangularCoordinates: componentDefinition$40,
1804
+ Ripples: componentDefinition$41,
1805
+ Saturation: componentDefinition$42,
1806
+ Sharpness: componentDefinition$43,
1807
+ SimplexNoise: componentDefinition$44,
1808
+ SineWave: componentDefinition$45,
1809
+ SolidColor: componentDefinition$46,
1810
+ Spherize: componentDefinition$47,
1811
+ Spiral: componentDefinition$48,
1812
+ Strands: componentDefinition$49,
1813
+ Stretch: componentDefinition$50,
1814
+ Swirl: componentDefinition$51,
1815
+ TiltShift: componentDefinition$52,
1816
+ Tritone: componentDefinition$53,
1817
+ Twirl: componentDefinition$54,
1818
+ Vibrance: componentDefinition$55,
1819
+ WaveDistortion: componentDefinition$56,
1820
+ ZoomBlur: componentDefinition$57
1819
1821
  };
1820
1822
  Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
1821
1823
  const propsMetadata = {};
@@ -1 +1 @@
1
- {"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA6FD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
1
+ {"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA8FD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
@@ -0,0 +1,57 @@
1
+ import { ComponentDefinition } from '../../types';
2
+ import { transformPosition } from '../../utilities/transformations';
3
+
4
+ export interface ComponentProps {
5
+ /**
6
+ * Center point of rotation
7
+ *
8
+ * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
9
+ * @default {"x":0.5,"y":0.5}
10
+ */
11
+ center: Parameters<typeof transformPosition>[0];
12
+ /**
13
+ * Horizontal rotation (left/right)
14
+ *
15
+ * Accepts a number between -90 and 90.
16
+ * @default 0
17
+ */
18
+ pan: number;
19
+ /**
20
+ * Vertical rotation (up/down)
21
+ *
22
+ * Accepts a number between -90 and 90.
23
+ * @default 0
24
+ */
25
+ tilt: number;
26
+ /**
27
+ * Field of view - controls perspective intensity
28
+ *
29
+ * Accepts a number between 30 and 120.
30
+ * @default 60
31
+ */
32
+ fov: number;
33
+ /**
34
+ * Zoom in to fill the frame after rotation
35
+ *
36
+ * Accepts a number between 0.5 and 3.
37
+ * @default 1
38
+ */
39
+ zoom: number;
40
+ /**
41
+ * Shift the result in X/Y
42
+ *
43
+ * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
44
+ * @default {"x":0.5,"y":0.5}
45
+ */
46
+ offset: Parameters<typeof transformPosition>[0];
47
+ /**
48
+ * How to handle edges
49
+ *
50
+ * Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
51
+ * @default "transparent"
52
+ */
53
+ edges: string;
54
+ }
55
+ export declare const componentDefinition: ComponentDefinition<ComponentProps>;
56
+ export default componentDefinition;
57
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Perspective/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,iBAAiB,EAAiB,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAsInE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import "../../edges-Bd7GP4s2.js";
2
+ import "../../transformations-YbhRK-rd.js";
3
+ import { n as componentDefinition, t as Perspective_default } from "../../Perspective-CSP2Hb16.js";
4
+ export { componentDefinition, Perspective_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-C5Rx1dBp.js";
1
+ import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-BAoi-CSx.js";
2
2
  export { componentDefinition, Pixelate_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-YbhRK-rd.js";
3
- import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-CIh5ef8m.js";
3
+ import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-BwN9HhFK.js";
4
4
  export { componentDefinition, PolarCoordinates_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Posterize_default } from "../../Posterize-Byy0Ek0l.js";
1
+ import { n as componentDefinition, t as Posterize_default } from "../../Posterize-XoAqPWv2.js";
2
2
  export { componentDefinition, Posterize_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-Bzz24_y-.js";
2
+ import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-RuAm_BKx.js";
3
3
  export { componentDefinition, ProgressiveBlur_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../colorMixing-CZPFmiT4.js";
3
- import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-Ci1dU-1K.js";
3
+ import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-BfFuRbIl.js";
4
4
  export { componentDefinition, RadialGradient_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-YbhRK-rd.js";
3
- import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-tVGG7WOJ.js";
3
+ import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-CiW3J4UT.js";
4
4
  export { componentDefinition, RectangularCoordinates_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../time-DgRTVr2F.js";
3
3
  import "../../colorMixing-CZPFmiT4.js";
4
- import { n as componentDefinition, t as Ripples_default } from "../../Ripples-BCGSt5HD.js";
4
+ import { n as componentDefinition, t as Ripples_default } from "../../Ripples-BAcLsbLr.js";
5
5
  export { componentDefinition, Ripples_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Saturation_default } from "../../Saturation-DWR1Nruu.js";
1
+ import { n as componentDefinition, t as Saturation_default } from "../../Saturation-DVVlpikK.js";
2
2
  export { componentDefinition, Saturation_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-B2MrhUH5.js";
1
+ import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-cw57bW0s.js";
2
2
  export { componentDefinition, Sharpness_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../time-DgRTVr2F.js";
3
3
  import "../../colorMixing-CZPFmiT4.js";
4
- import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-j5sH7ro0.js";
4
+ import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-CxF7Tl5O.js";
5
5
  export { componentDefinition, SimplexNoise_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as SineWave_default } from "../../SineWave-C4Lz5gO9.js";
2
+ import { n as componentDefinition, t as SineWave_default } from "../../SineWave-SIEiE1O3.js";
3
3
  export { componentDefinition, SineWave_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-9huPo7Qb.js";
2
+ import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-zYROg_aE.js";
3
3
  export { componentDefinition, SolidColor_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as Spherize_default } from "../../Spherize-ARP2hY6_.js";
2
+ import { n as componentDefinition, t as Spherize_default } from "../../Spherize-tsKMpSaS.js";
3
3
  export { componentDefinition, Spherize_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../colorMixing-CZPFmiT4.js";
3
- import { n as componentDefinition, t as Spiral_default } from "../../Spiral-d60Q9u4M.js";
3
+ import { n as componentDefinition, t as Spiral_default } from "../../Spiral-PsIc1BI9.js";
4
4
  export { componentDefinition, Spiral_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../time-DgRTVr2F.js";
3
- import { n as componentDefinition, t as Strands_default } from "../../Strands-DiIbhZ0r.js";
3
+ import { n as componentDefinition, t as Strands_default } from "../../Strands-xsbd_3Bt.js";
4
4
  export { componentDefinition, Strands_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-YbhRK-rd.js";
3
- import { n as componentDefinition, t as Stretch_default } from "../../Stretch-UYY3Qep7.js";
3
+ import { n as componentDefinition, t as Stretch_default } from "../../Stretch-BhHjbcqd.js";
4
4
  export { componentDefinition, Stretch_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../time-DgRTVr2F.js";
3
3
  import "../../colorMixing-CZPFmiT4.js";
4
- import { n as componentDefinition, t as Swirl_default } from "../../Swirl-jQMlfm2U.js";
4
+ import { n as componentDefinition, t as Swirl_default } from "../../Swirl-CV1prOHF.js";
5
5
  export { componentDefinition, Swirl_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-Ctj-Dsom.js";
2
+ import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-BYQjUHpn.js";
3
3
  export { componentDefinition, TiltShift_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
2
  import "../../colorMixing-CZPFmiT4.js";
3
- import { n as componentDefinition, t as Tritone_default } from "../../Tritone-D2lMeIyT.js";
3
+ import { n as componentDefinition, t as Tritone_default } from "../../Tritone-CJW8YTyB.js";
4
4
  export { componentDefinition, Tritone_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-YbhRK-rd.js";
3
- import { n as componentDefinition, t as Twirl_default } from "../../Twirl-D4opuuKg.js";
3
+ import { n as componentDefinition, t as Twirl_default } from "../../Twirl-5k_XPd51.js";
4
4
  export { componentDefinition, Twirl_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-CZCF06c0.js";
1
+ import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-c25pkbWj.js";
2
2
  export { componentDefinition, Vibrance_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-YbhRK-rd.js";
3
- import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-DdJtTeib.js";
3
+ import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-BRgbfqt3.js";
4
4
  export { componentDefinition, WaveDistortion_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-YbhRK-rd.js";
2
- import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-DfzUaH4u.js";
2
+ import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-DEozXA8U.js";
3
3
  export { componentDefinition, ZoomBlur_default as default };
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { BlendMode, TransformConfig } from '../../core';
3
+ import { ComponentProps } from '../../core/shaders/Perspective';
4
+
5
+ export type { ComponentProps };
6
+ /**
7
+ * Base props that all shader components have
8
+ */
9
+ interface BaseShaderProps {
10
+ children?: React.ReactNode;
11
+ blendMode?: BlendMode;
12
+ opacity?: number;
13
+ visible?: boolean;
14
+ id?: string;
15
+ maskSource?: string;
16
+ maskType?: string;
17
+ renderOrder?: number;
18
+ transform?: Partial<TransformConfig>;
19
+ ref?: React.Ref<any>;
20
+ }
21
+ /**
22
+ * Component-specific props that merge base props with shader-specific props
23
+ * Note: ComponentProps are made optional since they have defaults from the shader definition
24
+ */
25
+ type ShaderComponentProps = BaseShaderProps & Partial<ComponentProps>;
26
+ /**
27
+ * The main React wrapper component for Shader shader nodes
28
+ */
29
+ export declare const OmbreComponent: React.FC<ShaderComponentProps>;
30
+ export default OmbreComponent;
31
+ //# sourceMappingURL=Perspective.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Perspective.d.ts","sourceRoot":"","sources":["../../src/components/Perspective.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGH,KAAK,SAAS,EAId,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGpF,YAAY,EAAE,cAAc,EAAE,CAAC;AAI/B;;GAEG;AACH,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,KAAK,oBAAoB,GAAG,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAsDtE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwJzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -319,6 +319,23 @@ var shaderMetadata = {
319
319
  "radius": 1,
320
320
  "edges": "stretch"
321
321
  },
322
+ "Perspective": {
323
+ "opacity": 1,
324
+ "blendMode": "normal",
325
+ "center": {
326
+ "x": .5,
327
+ "y": .5
328
+ },
329
+ "pan": 0,
330
+ "tilt": 0,
331
+ "fov": 60,
332
+ "zoom": 1,
333
+ "offset": {
334
+ "x": .5,
335
+ "y": .5
336
+ },
337
+ "edges": "transparent"
338
+ },
322
339
  "Pixelate": {
323
340
  "opacity": 1,
324
341
  "blendMode": "normal",
@@ -660,6 +677,7 @@ const availableComponents = [
660
677
  "LinearBlur",
661
678
  "LinearGradient",
662
679
  "Liquify",
680
+ "Perspective",
663
681
  "Pixelate",
664
682
  "PolarCoordinates",
665
683
  "Posterize",
@@ -32,6 +32,7 @@ export { default as Invert } from './components/Invert';
32
32
  export { default as LinearBlur } from './components/LinearBlur';
33
33
  export { default as LinearGradient } from './components/LinearGradient';
34
34
  export { default as Liquify } from './components/Liquify';
35
+ export { default as Perspective } from './components/Perspective';
35
36
  export { default as Pixelate } from './components/Pixelate';
36
37
  export { default as PolarCoordinates } from './components/PolarCoordinates';
37
38
  export { default as Posterize } from './components/Posterize';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAA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