@threepipe/webgi-plugins 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ import { Color, ExtendedShaderMaterial, ExtendedShaderPass, GBufferPlugin, ICamera, IPassID, IPipelinePass, IRenderManager, IScene, IWebGLRenderer, PipelinePassPlugin, ThreeViewer, UiObjectConfig, Vector2, Vector3, WebGLMultipleRenderTargets, WebGLRenderTarget } from 'threepipe';
2
+
3
+ declare const passId = "depthOfField";
4
+ type DepthOfFieldPassId = typeof passId;
5
+ export declare class DepthOfFieldPlugin extends PipelinePassPlugin<DepthOfFieldPluginPass<DepthOfFieldPassId>, DepthOfFieldPassId, ''> {
6
+ static readonly PluginType = "DepthOfField";
7
+ static readonly OldPluginType = "DepthOfFieldPlugin";
8
+ readonly passId = "depthOfField";
9
+ enableEdit: boolean;
10
+ protected _focalPointHit: Vector3;
11
+ crossFadeTime: number;
12
+ private _focalPointHitTime;
13
+ protected get _frameFadeTime(): number;
14
+ constructor(enabled?: boolean, enableEdit?: boolean);
15
+ setFocalPoint(p: Vector3, fade?: boolean, showGizmo?: boolean): void;
16
+ getFocalPoint(): Vector3;
17
+ protected _onObjectHit(e: any): void;
18
+ protected _createPass(): DepthOfFieldPluginPass<"depthOfField">;
19
+ dependencies: (typeof GBufferPlugin)[];
20
+ onAdded(viewer: ThreeViewer): void;
21
+ onRemove(viewer: ThreeViewer): void;
22
+ private _onPluginAdd;
23
+ private _onPluginRemove;
24
+ uiConfig: UiObjectConfig;
25
+ private _tempVec;
26
+ protected _beforeRender(scene: IScene, camera: ICamera, renderManager: IRenderManager): boolean;
27
+ }
28
+ export declare class DepthOfFieldPluginPass<Tid extends IPassID> extends ExtendedShaderPass implements IPipelinePass<Tid> {
29
+ uiConfig?: UiObjectConfig;
30
+ before: string[];
31
+ after: string[];
32
+ required: string[];
33
+ computeCocMaterial: ExtendedShaderMaterial;
34
+ expandCocMaterial: ExtendedShaderMaterial;
35
+ dofBlurMaterial: ExtendedShaderMaterial;
36
+ depthRange: number;
37
+ nearBlurScale: number;
38
+ farBlurScale: number;
39
+ nearFarBlurScale: Vector2;
40
+ focalDepthRange: Vector2;
41
+ crossCenter: Vector2;
42
+ crossRadius: number;
43
+ crossAlpha: number;
44
+ crossColor: Color;
45
+ readonly passId: Tid;
46
+ constructor(pid: Tid);
47
+ render(renderer: IWebGLRenderer, writeBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget | null, readBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget, deltaTime?: number, maskActive?: boolean): void;
48
+ }
49
+ export {};
50
+ //# sourceMappingURL=DepthOfFieldPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepthOfFieldPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/postprocessing/DepthOfFieldPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,EAEL,sBAAsB,EACtB,kBAAkB,EAElB,aAAa,EAGb,OAAO,EACP,OAAO,EACP,aAAa,EACb,cAAc,EACd,MAAM,EAGN,cAAc,EAKd,kBAAkB,EAIlB,WAAW,EAEX,cAAc,EAId,OAAO,EACP,OAAO,EACP,0BAA0B,EAC1B,iBAAiB,EACpB,MAAM,WAAW,CAAA;AAQlB,QAAA,MAAM,MAAM,iBAAiB,CAAA;AAC7B,KAAK,kBAAkB,GAAG,OAAO,MAAM,CAAA;AAEvC,qBAAa,kBACT,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,EAAE,CAAC;IAC9F,MAAM,CAAC,QAAQ,CAAC,UAAU,kBAAiB;IAC3C,MAAM,CAAC,QAAQ,CAAC,aAAa,wBAAuB;IACpD,QAAQ,CAAC,MAAM,kBAAS;IAIpB,UAAU,UAAQ;IAGtB,SAAS,CAAC,cAAc,EAAE,OAAO,CAAuB;IAGpD,aAAa,SAAM;IAIvB,OAAO,CAAC,kBAAk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BAAiB,GAAG,IAAI,EAAE,UAAU,CAAC,EAAE,0BAA0B,GAAG,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO;CAqE9M"}
@@ -0,0 +1,36 @@
1
+ import { AViewerPluginSync, GBufferPlugin, MaterialExtension, ThreeViewer } from 'threepipe';
2
+
3
+ /**
4
+ * SS Contact Shadows Plugin
5
+ * Adds a material extension to PhysicalMaterial screen space ray traced contact shadows.
6
+ * It also adds a UI to the material to edit the settings.
7
+ * todo - remove It uses WEBGI_materials_clearcoat_tint glTF extension to save the settings in glTF files.
8
+ * @category Plugins
9
+ */
10
+ export declare class SSContactShadowsPlugin extends AViewerPluginSync<''> {
11
+ static readonly PluginType = "SSContactShadows";
12
+ static readonly OldPluginType = "SSContactShadowsPlugin";
13
+ enabled: boolean;
14
+ private _uniforms;
15
+ radius: number;
16
+ intensity: number;
17
+ tolerance: number;
18
+ private _defines;
19
+ onlySSCSDebug: boolean;
20
+ stepCount: number;
21
+ dependencies: (typeof GBufferPlugin)[];
22
+ readonly materialExtension: MaterialExtension;
23
+ setDirty(): void;
24
+ constructor(enabled?: boolean);
25
+ onAdded(v: ThreeViewer): void;
26
+ onRemove(v: ThreeViewer): void;
27
+ private _gbufferUnpackExtension;
28
+ private _gbufferUnpackExtensionChanged;
29
+ setGBufferUnpackExtension(extension: MaterialExtension | undefined): void;
30
+ }
31
+ /**
32
+ * SSContactShadows Materials Extension
33
+ *
34
+ * Specification: https://webgi.xyz/docs/gltf-extensions/WEBGI_materials_clearcoat_tint.html
35
+ */
36
+ //# sourceMappingURL=SSContactShadowsPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SSContactShadowsPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/postprocessing/SSContactShadowsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,aAAa,EAKb,iBAAiB,EAOjB,WAAW,EAOd,MAAM,WAAW,CAAA;AAGlB;;;;;;GAMG;AACH,qBACa,sBAAuB,SAAQ,iBAAiB,CAAC,EAAE,CAAC;IAC7D,MAAM,CAAC,QAAQ,CAAC,UAAU,sBAAqB;IAC/C,MAAM,CAAC,QAAQ,CAAC,aAAa,4BAA2B;IAKpD,OAAO,UAAO;IAElB,OAAO,CAAC,SAAS,CAchB;IAIY,MAAM,SAAQ;IAGd,SAAS,SAAI;IAGb,SAAS,SAAM;IAE5B,OAAO,CAAC,QAAQ,CAEf;IAEyC,aAAa,UAAQ;IAIlD,SAAS,SAAI;IAE1B,YAAY,2BAAkB;IAsB9B,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAyJ5C;IAED,QAAQ;gBAUI,OAAO,UAAO;IAW1B,OAAO,CAAC,CAAC,EAAE,WAAW;IAYtB,QAAQ,CAAC,CAAC,EAAE,WAAW;IAYvB,OAAO,CAAC,uBAAuB,CAA2C;IAE1E,OAAO,CAAC,8BAA8B,CAQrC;IAED,yBAAyB,CAAC,SAAS,EAAE,iBAAiB,GAAC,SAAS;CAUnE;AAaD;;;;GAIG"}
@@ -0,0 +1,92 @@
1
+ import { ExtendedShaderPass, GBufferPlugin, ICamera, IMaterial, IPassID, IPipelinePass, IRenderManager, IScene, IWebGLRenderer, MaterialExtension, PipelinePassPlugin, SSAAPlugin, Texture, TextureDataType, ThreeViewer, ValOrFunc, Vector3, WebGLRenderTarget } from 'threepipe';
2
+
3
+ export type SSReflectionPluginEventTypes = '';
4
+ export type SSReflectionPluginTarget = WebGLRenderTarget;
5
+ declare const passId = "ssrefl";
6
+ type SSReflectionPassId = typeof passId;
7
+ /**
8
+ * SSReflection Plugin
9
+ *
10
+ * Adds screen space reflections to the scene.
11
+ * @category Plugins
12
+ */
13
+ export declare class SSReflectionPlugin extends PipelinePassPlugin<SSReflectionPluginPass, SSReflectionPassId, SSReflectionPluginEventTypes> {
14
+ readonly inlineShaderRayTrace: boolean;
15
+ readonly passId = "ssrefl";
16
+ static readonly PluginType = "SSReflection";
17
+ static readonly OldPluginType = "SSReflectionPlugin";
18
+ dependencies: (typeof GBufferPlugin | typeof SSAAPlugin)[];
19
+ target?: SSReflectionPluginTarget;
20
+ texture?: Texture;
21
+ protected _pass?: SSReflectionPluginPass;
22
+ readonly bufferType: TextureDataType;
23
+ readonly sizeMultiplier: number;
24
+ constructor(inlineShaderRayTrace?: boolean, // todo: we need roughness in gbuffer for proper inline. this has other advantages also like we can do blurring and denoising etc
25
+ bufferType?: TextureDataType, // only when inline is false
26
+ sizeMultiplier?: number, // only when inline is false
27
+ enabled?: boolean);
28
+ protected _createTarget(recreate?: boolean): void;
29
+ protected _disposeTarget(): void;
30
+ private _gbufferUnpackExtension;
31
+ private _gbufferUnpackExtensionChanged;
32
+ protected _createPass(): SSReflectionPluginPass;
33
+ onAdded(viewer: ThreeViewer): void;
34
+ onRemove(viewer: ThreeViewer): void;
35
+ protected _beforeRender(_?: IScene, _1?: ICamera, _2?: IRenderManager): boolean;
36
+ /**
37
+ * @deprecated use {@link target} instead
38
+ */
39
+ get ssrTarget(): WebGLRenderTarget | undefined;
40
+ }
41
+ export declare class SSReflectionPluginPass extends ExtendedShaderPass implements IPipelinePass {
42
+ target?: ValOrFunc<WebGLRenderTarget | undefined>;
43
+ readonly inlineShaderRayTrace: boolean;
44
+ before: string[];
45
+ after: string[];
46
+ required: string[];
47
+ intensity: number;
48
+ boost: Vector3;
49
+ objectRadius: number;
50
+ autoRadius: boolean;
51
+ power: number;
52
+ tolerance: number;
53
+ stepCount: number;
54
+ lowQualityFrames: number;
55
+ maskFrontRays: boolean;
56
+ maskFrontFactor: number;
57
+ readonly passId: IPassID;
58
+ constructor(pid: IPassID, target?: ValOrFunc<WebGLRenderTarget | undefined>, inlineShaderRayTrace?: boolean);
59
+ render(renderer: IWebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, deltaTime: number, maskActive: boolean): void;
60
+ beforeRender(scene: IScene, camera: ICamera, renderManager: IRenderManager): void;
61
+ readonly materialExtension: MaterialExtension;
62
+ /**
63
+ * Returns a uiConfig to toggle SSReflection on a material.
64
+ * This uiConfig is added to each material by extension
65
+ * @param material
66
+ * @private
67
+ */
68
+ protected _getUiConfig(material: IMaterial): {
69
+ type: string;
70
+ label: string;
71
+ children: {
72
+ type: string;
73
+ label: string;
74
+ value: boolean;
75
+ onChange: () => void;
76
+ }[];
77
+ };
78
+ set uniformsNeedUpdate(value: true);
79
+ protected _gbufferUnpackExtension: MaterialExtension | undefined;
80
+ setGBufferUnpackExtension(extension: MaterialExtension | undefined): void;
81
+ }
82
+ declare module 'threepipe' {
83
+ interface IMaterialUserData {
84
+ /**
85
+ * Disable SSReflectionPlugin for this material.
86
+ */
87
+ ssreflDisabled?: boolean;
88
+ ssreflNonPhysical?: boolean;
89
+ }
90
+ }
91
+ export {};
92
+ //# sourceMappingURL=SSReflectionPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SSReflectionPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/postprocessing/SSReflectionPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,aAAa,EAIb,OAAO,EACP,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,MAAM,EACN,cAAc,EAGd,iBAAiB,EAGjB,kBAAkB,EAKlB,UAAU,EACV,OAAO,EACP,eAAe,EACf,WAAW,EAUX,SAAS,EAET,OAAO,EACP,iBAAiB,EACpB,MAAM,WAAW,CAAA;AASlB,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAA;AAC7C,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAA;AAExD,QAAA,MAAM,MAAM,WAAW,CAAA;AACvB,KAAK,kBAAkB,GAAG,OAAO,MAAM,CAAA;AAEvC;;;;;GAKG;AACH,qBACa,kBACT,SAAQ,kBAAkB,CAAC,sBAAsB,EAAE,kBAAkB,EAAE,4BAA4B,CAAC;aAwBhF,oBAAoB;IAtBxC,QAAQ,CAAC,MAAM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G,EAAE,OAAO,EACL,MAAM,CAAC,0CAAwC,EACtC,oBAAoB,UAAO;IA+EvD,MAAM,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO;IA0BtI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc;IAM1E,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CA8E5C;IAED;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS;;;;;;;;;;IAmC1C,IAAI,kBAAkB,CAAC,KAAK,EAAE,IAAI,EAGjC;IAED,SAAS,CAAC,uBAAuB,EAAE,iBAAiB,GAAC,SAAS,CAAA;IAC9D,yBAAyB,CAAC,SAAS,EAAE,iBAAiB,GAAC,SAAS;CAYnE;AAED,OAAO,QAAQ,WAAW,CAAC;IACvB,UAAU,iBAAiB;QACvB;;WAEG;QACH,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAK9B;CACJ"}
@@ -0,0 +1,49 @@
1
+ import { Camera, ExtendedShaderPass, GBufferPlugin, ICamera, IPassID, IPipelinePass, IRenderManager, IScene, IWebGLRenderer, PipelinePassPlugin, ProgressivePlugin, ThreeViewer, UiObjectConfig, Vector2, WebGLMultipleRenderTargets, WebGLRenderTarget } from 'threepipe';
2
+
3
+ declare const passId = "taa";
4
+ type TemporalAAPassId = typeof passId;
5
+ export declare class TemporalAAPlugin extends PipelinePassPlugin<TemporalAAPluginPass<TemporalAAPassId>, TemporalAAPassId, ''> {
6
+ static readonly PluginType = "TAA";
7
+ static readonly OldPluginType = "TemporalAAPlugin";
8
+ readonly passId = "taa";
9
+ constructor(enabled?: boolean);
10
+ private _stableNoise;
11
+ /**
12
+ * Same as BaseRenderer.stableNoise Use total frame count, if this is set to true, then frameCount won't be reset when the viewer is set to dirty.
13
+ * Which will generate different random numbers for each frame during postprocessing steps. With TAA set properly, this will give a smoother result.
14
+ */
15
+ get stableNoise(): boolean;
16
+ set stableNoise(v: boolean);
17
+ protected _pass?: TemporalAAPluginPass<TemporalAAPassId>;
18
+ private _gbufferUnpackExtension;
19
+ private _gbufferUnpackExtensionChanged;
20
+ protected _createPass(): TemporalAAPluginPass<"taa">;
21
+ dependencies: (typeof ProgressivePlugin | typeof GBufferPlugin)[];
22
+ onAdded(viewer: ThreeViewer): void;
23
+ onRemove(viewer: ThreeViewer): void;
24
+ uiConfig: UiObjectConfig;
25
+ protected _beforeRender(scene: IScene, camera: ICamera, renderManager: IRenderManager): boolean;
26
+ }
27
+ export declare class TemporalAAPluginPass<Tid extends IPassID> extends ExtendedShaderPass implements IPipelinePass<Tid> {
28
+ before: string[];
29
+ after: never[];
30
+ required: string[];
31
+ target: WebGLRenderTarget;
32
+ readonly passId: Tid;
33
+ constructor(pid: Tid, target: WebGLRenderTarget);
34
+ /**
35
+ * to switch with ssaa, for internal use only, dont set from outside
36
+ */
37
+ taaEnabled: boolean;
38
+ render(renderer: IWebGLRenderer, writeBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget | null, readBuffer?: WebGLMultipleRenderTargets | WebGLRenderTarget, deltaTime?: number, maskActive?: boolean): void;
39
+ updateCameraProperties(camera?: Camera): void;
40
+ onSizeUpdate(): void;
41
+ setSize(width: number, height: number): void;
42
+ feedBack: Vector2;
43
+ debugVelocity: boolean;
44
+ uiConfig: UiObjectConfig;
45
+ }
46
+ declare module 'threepipe' {
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=TemporalAAPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemporalAAPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/postprocessing/TemporalAAPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,MAAM,EAEN,kBAAkB,EAClB,aAAa,EAEb,OAAO,EACP,O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,EAAE,GAAG,CAAA;gBAEf,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,iBAAiB;IAgC/C;;OAEG;IACH,UAAU,UAAO;IAEjB,MAAM,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE,0BAA0B,GAAG,iBAAiB,GAAG,IAAI,EAAE,UAAU,CAAC,EAAE,0BAA0B,GAAG,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO;IAoB3M,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAO7C,YAAY;IAIZ,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAOjC,QAAQ,EAAE,OAAO,CAA0B;IAI3C,aAAa,UAAQ;IAEzB,QAAQ,EAAE,cAAc,CAavB;CAEJ;AAED,OAAO,QAAQ,WAAW,CAAC;CAM1B"}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "0.1.0";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAA"}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@threepipe/webgi-plugins",
3
+ "version": "0.1.0",
4
+ "description": "WebGi - Realistic Rendering Plugins for ThreePipe.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "sources": "src/index.ts",
9
+ "browser": "dist/index.js",
10
+ "type": "module",
11
+ "files": [
12
+ "dist",
13
+ "tsconfig.json"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git://github.com/repalash/threepipe-webgi.git"
18
+ },
19
+ "keywords": [
20
+ "3d",
21
+ "three.js",
22
+ "typescript",
23
+ "javascipt",
24
+ "browser",
25
+ "esm",
26
+ "rendering",
27
+ "viewer",
28
+ "webgl",
29
+ "webgi",
30
+ "canvas"
31
+ ],
32
+ "author": "repalash <palash@shaders.app>",
33
+ "license": "GPL-3.0-only",
34
+ "bugs": {
35
+ "url": "https://github.com/repalash/threepipe-webgi/issues"
36
+ },
37
+ "homepage": "https://github.com/repalash/threepipe-webgi#readme",
38
+ "dependencies": {
39
+ "threepipe": "^0.0.33",
40
+ "@threepipe/plugin-tweakpane": "^0.3.0"
41
+ },
42
+ "browserslist": [
43
+ "defaults"
44
+ ],
45
+ "sideEffects": false,
46
+ "overrides": {
47
+ "threepipe": "^0.0.33"
48
+ }
49
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,43 @@
1
+
2
+ {
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "experimentalDecorators": true,
7
+ "isolatedModules": true,
8
+ "module": "es2020",
9
+ "noImplicitAny": true,
10
+ "declaration": true,
11
+ "declarationMap": true,
12
+ "declarationDir": "dist",
13
+ "noImplicitThis": true,
14
+ "noUnusedLocals": true,
15
+ "noUnusedParameters": true,
16
+ "removeComments": false,
17
+ "preserveConstEnums": true,
18
+ "moduleResolution": "node",
19
+ "emitDecoratorMetadata": false,
20
+ "sourceMap": true,
21
+ "target": "ES2020",
22
+ "strictNullChecks": true,
23
+ "skipLibCheck": true,
24
+ "paths": {
25
+ },
26
+ "lib": [
27
+ "es2020",
28
+ "esnext",
29
+ "dom"
30
+ ],
31
+ "plugins": [{ "name": "typescript-plugin-css-modules" }]
32
+ },
33
+ "include": [
34
+ "src/**/*",
35
+ "node_modules/@types/wicg-file-system-access/index.d.ts"
36
+ ],
37
+ "exclude": [
38
+ "node_modules",
39
+ "dist",
40
+ "examples",
41
+ "**/*.spec.ts"
42
+ ]
43
+ }