@tachui/core 0.7.1-alpha → 0.8.1-alpha
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.
- package/README.md +20 -2
- package/dist/bundles/assets.d.ts +19 -0
- package/dist/bundles/assets.d.ts.map +1 -0
- package/dist/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/context.d.ts +22 -0
- package/dist/bundles/context.d.ts.map +1 -0
- package/dist/bundles/minimal.d.ts +8 -18
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +405 -828
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/codegen.d.ts.map +1 -1
- package/dist/compiler/index.js +6 -1387
- package/dist/compiler/parser.d.ts +1 -1
- package/dist/compiler/parser.d.ts.map +1 -1
- package/dist/compiler/plugin.d.ts.map +1 -1
- package/dist/compiler/types.d.ts +28 -0
- package/dist/compiler/types.d.ts.map +1 -1
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -4167
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +84 -0
- package/dist/css-classes/index.js +176 -0
- package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
- package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
- package/dist/essential.js +397 -826
- package/dist/index-DEBd8cq7.js +1144 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +397 -826
- package/dist/minimal-prod.js +101 -155
- package/dist/minimal.js +118 -170
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +487 -0
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +9 -0
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +10 -0
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +4 -0
- package/dist/observed-object-Cos-FtjP.js +269 -0
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugin-BCAdZXKq.js +1680 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +147 -297
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +96 -95
- package/dist/reactive/types.js +4 -0
- package/dist/runtime/concatenation-aria.d.ts +24 -0
- package/dist/runtime/concatenation-aria.d.ts.map +1 -0
- package/dist/runtime/concatenation-aria.js +53 -0
- package/dist/runtime/concatenation-full.d.ts +30 -0
- package/dist/runtime/concatenation-full.d.ts.map +1 -0
- package/dist/runtime/concatenation-full.js +77 -0
- package/dist/runtime/concatenation-minimal.d.ts +25 -0
- package/dist/runtime/concatenation-minimal.d.ts.map +1 -0
- package/dist/runtime/concatenation-minimal.js +40 -0
- package/dist/runtime/dom-bridge.js +5 -5
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -8
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +609 -6470
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +61 -5
- package/dist/ScrollView-h-6wYMAm.js +0 -515
- package/dist/Spacer-BbteDQ9I.js +0 -5337
- package/dist/binding-CmdpowkI.js +0 -2276
- package/dist/components/BasicInput.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -252
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Divider.d.ts +0 -141
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/EnhancedLink.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.map +0 -1
- package/dist/components/Form.d.ts +0 -141
- package/dist/components/Form.d.ts.map +0 -1
- package/dist/components/Grid.d.ts +0 -698
- package/dist/components/Grid.d.ts.map +0 -1
- package/dist/components/GridResponsive.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.map +0 -1
- package/dist/components/Image.d.ts +0 -162
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -287
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/Menu.d.ts +0 -159
- package/dist/components/Menu.d.ts.map +0 -1
- package/dist/components/Picker.d.ts +0 -153
- package/dist/components/Picker.d.ts.map +0 -1
- package/dist/components/ScrollView.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.map +0 -1
- package/dist/components/Section.d.ts +0 -153
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Show.d.ts +0 -64
- package/dist/components/Show.d.ts.map +0 -1
- package/dist/components/Spacer.d.ts +0 -35
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Text.d.ts +0 -242
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Toggle.d.ts +0 -207
- package/dist/components/Toggle.d.ts.map +0 -1
- package/dist/concatenated-component-DPcl2TEO.js +0 -6779
- package/dist/context--zQFIImS.js +0 -283
- package/dist/debug/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.js +0 -178
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.map +0 -1
- package/dist/index-Nfi2SBQh.js +0 -3268
- package/dist/modifiers/attributes.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.map +0 -1
- package/dist/modifiers/backdrop.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.map +0 -1
- package/dist/modifiers/border.d.ts +0 -217
- package/dist/modifiers/border.d.ts.map +0 -1
- package/dist/modifiers/effects.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.map +0 -1
- package/dist/modifiers/elements.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.map +0 -1
- package/dist/modifiers/filters.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.map +0 -1
- package/dist/modifiers/flexbox.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.map +0 -1
- package/dist/modifiers/font.d.ts +0 -71
- package/dist/modifiers/font.d.ts.map +0 -1
- package/dist/modifiers/grid.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.map +0 -1
- package/dist/modifiers/margin.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.map +0 -1
- package/dist/modifiers/padding.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
- package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
- package/dist/modifiers/responsive/css-generator.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
- package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
- package/dist/modifiers/responsive/index.d.ts +0 -29
- package/dist/modifiers/responsive/index.d.ts.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
- package/dist/modifiers/responsive/performance.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
- package/dist/modifiers/responsive/types.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.map +0 -1
- package/dist/modifiers/responsive/utilities.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
- package/dist/modifiers/scroll.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.map +0 -1
- package/dist/modifiers/shadows.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.map +0 -1
- package/dist/modifiers/size.d.ts +0 -113
- package/dist/modifiers/size.d.ts.map +0 -1
- package/dist/modifiers/text.d.ts +0 -147
- package/dist/modifiers/text.d.ts.map +0 -1
- package/dist/modifiers/transformations.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.map +0 -1
- package/dist/modifiers/transitions.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.map +0 -1
- package/dist/modifiers/utility.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.map +0 -1
- package/dist/modifiers/utils.d.ts.map +0 -1
- package/dist/plugins/simplified-error-handler.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
- package/dist/runtime/dev-tools.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.map +0 -1
- package/dist/runtime/development-warnings.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.map +0 -1
- package/dist/runtime/error-boundary.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.map +0 -1
- package/dist/runtime/error-recovery.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.map +0 -1
- package/dist/runtime/error-reporting.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.map +0 -1
- package/dist/runtime/error-utils.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.map +0 -1
- package/dist/runtime/performance.d.ts +0 -217
- package/dist/runtime/performance.d.ts.map +0 -1
- package/dist/sui-compat.d.ts +0 -110
- package/dist/sui-compat.d.ts.map +0 -1
- package/dist/validation/advanced-debugging.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.map +0 -1
- package/dist/validation/build-time/detection.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.map +0 -1
- package/dist/validation/build-time/index.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.map +0 -1
- package/dist/validation/build-time/plugins.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.map +0 -1
- package/dist/validation/build-time/rules.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.map +0 -1
- package/dist/validation/build-time/transformer.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.map +0 -1
- package/dist/validation/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.map +0 -1
- package/dist/validation/debug-tools.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.map +0 -1
- package/dist/validation/developer-experience.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.map +0 -1
- package/dist/validation/documentation-integration.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.map +0 -1
- package/dist/validation/enhanced-runtime.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.map +0 -1
- package/dist/validation/error-reporting.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.map +0 -1
- package/dist/validation/ide-integration.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.map +0 -1
- package/dist/validation/performance-optimizer.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.map +0 -1
- package/dist/validation/production-bypass.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.map +0 -1
- package/dist/validation/simple.d.ts +0 -111
- package/dist/validation/simple.d.ts.map +0 -1
- package/dist/viewport/adapters/web-adapter.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
- package/dist/viewport/components.d.ts +0 -131
- package/dist/viewport/components.d.ts.map +0 -1
- package/dist/viewport/environment.d.ts +0 -75
- package/dist/viewport/environment.d.ts.map +0 -1
- package/dist/viewport/index.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -2085
- package/dist/viewport/platform-detection.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.map +0 -1
- package/dist/viewport/types.d.ts +0 -301
- package/dist/viewport/types.d.ts.map +0 -1
- package/dist/viewport/viewport-manager.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.map +0 -1
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Performance Optimization System - Phase 1C
|
|
3
|
-
*
|
|
4
|
-
* Advanced performance optimizations to reduce validation overhead
|
|
5
|
-
* to <5% impact in development mode with smart caching and batching.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Performance optimization configuration
|
|
9
|
-
*/
|
|
10
|
-
export interface PerformanceOptimizerConfig {
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
targetOverhead: number;
|
|
13
|
-
batchSize: number;
|
|
14
|
-
cacheStrategy: 'aggressive' | 'moderate' | 'conservative';
|
|
15
|
-
asyncValidation: boolean;
|
|
16
|
-
throttleMs: number;
|
|
17
|
-
skipFrames: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Validation operation metrics
|
|
21
|
-
*/
|
|
22
|
-
export interface ValidationMetrics {
|
|
23
|
-
operationCount: number;
|
|
24
|
-
totalTime: number;
|
|
25
|
-
averageTime: number;
|
|
26
|
-
maxTime: number;
|
|
27
|
-
cacheHitRate: number;
|
|
28
|
-
skipRate: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Performance optimization engine
|
|
32
|
-
*/
|
|
33
|
-
export declare class PerformanceOptimizer {
|
|
34
|
-
private static instance;
|
|
35
|
-
private config;
|
|
36
|
-
private metrics;
|
|
37
|
-
private operationQueue;
|
|
38
|
-
private frameCounter;
|
|
39
|
-
private lastBatchTime;
|
|
40
|
-
private throttleTimers;
|
|
41
|
-
private resultCache;
|
|
42
|
-
private performanceObserver?;
|
|
43
|
-
private frameTimeTarget;
|
|
44
|
-
constructor(config?: Partial<PerformanceOptimizerConfig>);
|
|
45
|
-
static getInstance(config?: Partial<PerformanceOptimizerConfig>): PerformanceOptimizer;
|
|
46
|
-
/**
|
|
47
|
-
* Optimize validation function with caching and batching
|
|
48
|
-
*/
|
|
49
|
-
optimizeValidation<T>(key: string, validationFn: () => T, options?: {
|
|
50
|
-
cache?: boolean;
|
|
51
|
-
batch?: boolean;
|
|
52
|
-
throttle?: boolean;
|
|
53
|
-
priority?: 'high' | 'medium' | 'low';
|
|
54
|
-
}): T | Promise<T>;
|
|
55
|
-
/**
|
|
56
|
-
* Smart caching with TTL and popularity-based eviction
|
|
57
|
-
*/
|
|
58
|
-
private getCachedResult;
|
|
59
|
-
/**
|
|
60
|
-
* Cache result with intelligent eviction
|
|
61
|
-
*/
|
|
62
|
-
private cacheResult;
|
|
63
|
-
/**
|
|
64
|
-
* Evict least popular cache entries
|
|
65
|
-
*/
|
|
66
|
-
private evictLeastPopular;
|
|
67
|
-
/**
|
|
68
|
-
* Get cache TTL based on strategy
|
|
69
|
-
*/
|
|
70
|
-
private getCacheTTL;
|
|
71
|
-
/**
|
|
72
|
-
* Get max cache size based on strategy
|
|
73
|
-
*/
|
|
74
|
-
private getMaxCacheSize;
|
|
75
|
-
/**
|
|
76
|
-
* Check if operation should skip this frame
|
|
77
|
-
*/
|
|
78
|
-
private shouldSkipFrame;
|
|
79
|
-
/**
|
|
80
|
-
* Check if operation is throttled
|
|
81
|
-
*/
|
|
82
|
-
private isThrottled;
|
|
83
|
-
/**
|
|
84
|
-
* Add operation to batch queue
|
|
85
|
-
*/
|
|
86
|
-
private addToBatch;
|
|
87
|
-
/**
|
|
88
|
-
* Process batch queue if conditions are met
|
|
89
|
-
*/
|
|
90
|
-
private processBatchIfReady;
|
|
91
|
-
/**
|
|
92
|
-
* Process batch queue
|
|
93
|
-
*/
|
|
94
|
-
private processBatch;
|
|
95
|
-
/**
|
|
96
|
-
* Update operation metrics
|
|
97
|
-
*/
|
|
98
|
-
private updateMetrics;
|
|
99
|
-
/**
|
|
100
|
-
* Check if performance impact exceeds target
|
|
101
|
-
*/
|
|
102
|
-
private checkPerformanceImpact;
|
|
103
|
-
/**
|
|
104
|
-
* Automatically adjust optimization settings
|
|
105
|
-
*/
|
|
106
|
-
private autoOptimize;
|
|
107
|
-
/**
|
|
108
|
-
* Get fallback result for skipped/throttled operations
|
|
109
|
-
*/
|
|
110
|
-
private getFallbackResult;
|
|
111
|
-
/**
|
|
112
|
-
* Initialize performance monitoring
|
|
113
|
-
*/
|
|
114
|
-
private initializePerformanceMonitoring;
|
|
115
|
-
/**
|
|
116
|
-
* Analyze performance entry
|
|
117
|
-
*/
|
|
118
|
-
private analyzePerformanceEntry;
|
|
119
|
-
/**
|
|
120
|
-
* Get performance statistics
|
|
121
|
-
*/
|
|
122
|
-
getPerformanceStats(): {
|
|
123
|
-
config: PerformanceOptimizerConfig;
|
|
124
|
-
totalOperations: number;
|
|
125
|
-
totalTime: number;
|
|
126
|
-
averageTime: number;
|
|
127
|
-
cacheHitRate: number;
|
|
128
|
-
skipRate: number;
|
|
129
|
-
cacheSize: number;
|
|
130
|
-
queueSize: number;
|
|
131
|
-
frameImpact: number;
|
|
132
|
-
targetMet: boolean;
|
|
133
|
-
operations: {
|
|
134
|
-
[k: string]: ValidationMetrics;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Clear all caches and reset metrics
|
|
139
|
-
*/
|
|
140
|
-
reset(): void;
|
|
141
|
-
/**
|
|
142
|
-
* Configure optimizer
|
|
143
|
-
*/
|
|
144
|
-
configure(config: Partial<PerformanceOptimizerConfig>): void;
|
|
145
|
-
/**
|
|
146
|
-
* Force process all batched operations
|
|
147
|
-
*/
|
|
148
|
-
flush(): void;
|
|
149
|
-
/**
|
|
150
|
-
* Get cache statistics
|
|
151
|
-
*/
|
|
152
|
-
getCacheStats(): {
|
|
153
|
-
size: number;
|
|
154
|
-
maxSize: number;
|
|
155
|
-
totalHits: number;
|
|
156
|
-
averageAge: number;
|
|
157
|
-
strategy: "aggressive" | "moderate" | "conservative";
|
|
158
|
-
ttl: number;
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
export declare const performanceOptimizer: PerformanceOptimizer;
|
|
162
|
-
export declare const PerformanceOptimizationUtils: {
|
|
163
|
-
/**
|
|
164
|
-
* Configure performance optimizer
|
|
165
|
-
*/
|
|
166
|
-
configure: (config: Partial<PerformanceOptimizerConfig>) => void;
|
|
167
|
-
/**
|
|
168
|
-
* Get performance statistics
|
|
169
|
-
*/
|
|
170
|
-
getStats: () => {
|
|
171
|
-
config: PerformanceOptimizerConfig;
|
|
172
|
-
totalOperations: number;
|
|
173
|
-
totalTime: number;
|
|
174
|
-
averageTime: number;
|
|
175
|
-
cacheHitRate: number;
|
|
176
|
-
skipRate: number;
|
|
177
|
-
cacheSize: number;
|
|
178
|
-
queueSize: number;
|
|
179
|
-
frameImpact: number;
|
|
180
|
-
targetMet: boolean;
|
|
181
|
-
operations: {
|
|
182
|
-
[k: string]: ValidationMetrics;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Get cache statistics
|
|
187
|
-
*/
|
|
188
|
-
getCacheStats: () => {
|
|
189
|
-
size: number;
|
|
190
|
-
maxSize: number;
|
|
191
|
-
totalHits: number;
|
|
192
|
-
averageAge: number;
|
|
193
|
-
strategy: "aggressive" | "moderate" | "conservative";
|
|
194
|
-
ttl: number;
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* Reset optimizer
|
|
198
|
-
*/
|
|
199
|
-
reset: () => void;
|
|
200
|
-
/**
|
|
201
|
-
* Flush batched operations
|
|
202
|
-
*/
|
|
203
|
-
flush: () => void;
|
|
204
|
-
/**
|
|
205
|
-
* Optimize validation function
|
|
206
|
-
*/
|
|
207
|
-
optimize: <T>(key: string, fn: () => T, options?: {
|
|
208
|
-
cache?: boolean;
|
|
209
|
-
batch?: boolean;
|
|
210
|
-
throttle?: boolean;
|
|
211
|
-
priority?: "high" | "medium" | "low";
|
|
212
|
-
}) => T | Promise<T>;
|
|
213
|
-
/**
|
|
214
|
-
* Test performance optimization
|
|
215
|
-
*/
|
|
216
|
-
test: () => void;
|
|
217
|
-
};
|
|
218
|
-
//# sourceMappingURL=performance-optimizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performance-optimizer.d.ts","sourceRoot":"","sources":["../../src/validation/performance-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,YAAY,GAAG,UAAU,GAAG,cAAc,CAAA;IACzD,eAAe,EAAE,OAAO,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,OAAO,CAAuC;IACtD,OAAO,CAAC,cAAc,CAAwB;IAC9C,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,aAAa,CAAI;IACzB,OAAO,CAAC,cAAc,CAA4B;IAGlD,OAAO,CAAC,WAAW,CAAsE;IAGzF,OAAO,CAAC,mBAAmB,CAAC,CAAqB;IACjD,OAAO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CAAC,0BAA0B,CAAC,GAAG,IAAI;IAI5D;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,aAAa;;;;;;;;CAgBd;AAGD,eAAO,MAAM,oBAAoB,sBAAqC,CAAA;AAGtE,eAAO,MAAM,4BAA4B;IACvC;;OAEG;wBACiB,OAAO,CAAC,0BAA0B,CAAC;IAGvD;;OAEG;;;;;;;;;;;;;;;;IAGH;;OAEG;;;;;;;;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;eACQ,CAAC,OACL,MAAM,MACP,MAAM,CAAC,YACD;QACR,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;KACrC;IAGH;;OAEG;;CAqCJ,CAAA"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Production Mode Bypass System - Phase 1C
|
|
3
|
-
*
|
|
4
|
-
* Zero-overhead validation bypass for production builds with smart
|
|
5
|
-
* compile-time elimination and runtime optimization.
|
|
6
|
-
*/
|
|
7
|
-
import type { ComponentInstance } from '../runtime/types';
|
|
8
|
-
/**
|
|
9
|
-
* Production mode detection and configuration
|
|
10
|
-
*/
|
|
11
|
-
export interface ProductionConfig {
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
mode: 'development' | 'production' | 'test';
|
|
14
|
-
optimizationLevel: 'none' | 'basic' | 'aggressive';
|
|
15
|
-
debugInfo: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Production mode utilities
|
|
19
|
-
*/
|
|
20
|
-
export declare class ProductionModeManager {
|
|
21
|
-
private static validationDisabled;
|
|
22
|
-
private static bypassCount;
|
|
23
|
-
private static performanceGain;
|
|
24
|
-
/**
|
|
25
|
-
* Check if we're in production mode
|
|
26
|
-
*/
|
|
27
|
-
static isProduction(): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Check if validation should be bypassed
|
|
30
|
-
*/
|
|
31
|
-
static shouldBypassValidation(): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Manually disable validation (for testing/debugging)
|
|
34
|
-
*/
|
|
35
|
-
static disableValidation(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Re-enable validation (only works in development)
|
|
38
|
-
*/
|
|
39
|
-
static enableValidation(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Get bypass statistics
|
|
42
|
-
*/
|
|
43
|
-
static getBypassStats(): {
|
|
44
|
-
mode: "test" | "development" | "production";
|
|
45
|
-
bypassCount: number;
|
|
46
|
-
validationDisabled: boolean;
|
|
47
|
-
performanceGain: number;
|
|
48
|
-
optimizationLevel: "none" | "basic" | "aggressive";
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Configure production mode settings
|
|
52
|
-
*/
|
|
53
|
-
static configure(config: Partial<ProductionConfig>): void;
|
|
54
|
-
/**
|
|
55
|
-
* Measure performance gain from bypassing validation
|
|
56
|
-
*/
|
|
57
|
-
static recordPerformanceGain(timeMs: number): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Zero-overhead function wrapper for production builds
|
|
61
|
-
*/
|
|
62
|
-
export declare function createProductionOptimizedFunction<T extends (...args: any[]) => any>(developmentFunction: T, productionFunction?: T): T;
|
|
63
|
-
/**
|
|
64
|
-
* Component constructor wrapper with production optimization
|
|
65
|
-
*/
|
|
66
|
-
export declare function createOptimizedComponent<T extends ComponentInstance>(originalConstructor: (...args: any[]) => T, validator?: (args: unknown[]) => void, componentType?: string): (...args: any[]) => T;
|
|
67
|
-
/**
|
|
68
|
-
* Modifier validation wrapper with production bypass
|
|
69
|
-
*/
|
|
70
|
-
export declare function createOptimizedModifier(originalModifier: Function, validator?: (args: unknown[]) => void, modifierName?: string): Function;
|
|
71
|
-
/**
|
|
72
|
-
* Build-time optimization hints for bundlers
|
|
73
|
-
*/
|
|
74
|
-
export declare const BuildOptimizationHints: {
|
|
75
|
-
/**
|
|
76
|
-
* Mark validation code for tree-shaking in production
|
|
77
|
-
*/
|
|
78
|
-
__DEVELOPMENT_ONLY__: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Webpack DefinePlugin constants for dead code elimination
|
|
81
|
-
*/
|
|
82
|
-
WEBPACK_DEFINES: {
|
|
83
|
-
__TACHUI_VALIDATION_ENABLED__: boolean;
|
|
84
|
-
__TACHUI_PRODUCTION_MODE__: boolean;
|
|
85
|
-
__TACHUI_DEBUG_INFO__: boolean;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Rollup/Vite constants for dead code elimination
|
|
89
|
-
*/
|
|
90
|
-
VITE_DEFINES: {
|
|
91
|
-
'import.meta.env.TACHUI_VALIDATION': boolean;
|
|
92
|
-
'import.meta.env.TACHUI_PRODUCTION': boolean;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Conditional validation macro for tree-shaking
|
|
97
|
-
*/
|
|
98
|
-
export declare function conditionalValidation<T>(validationFn: () => T, fallbackValue?: T): T | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Development-only assertion macro
|
|
101
|
-
*/
|
|
102
|
-
export declare function devAssert(condition: boolean, message: string): void;
|
|
103
|
-
/**
|
|
104
|
-
* Development-only warning macro
|
|
105
|
-
*/
|
|
106
|
-
export declare function devWarn(condition: boolean, message: string): void;
|
|
107
|
-
/**
|
|
108
|
-
* Performance monitoring wrapper
|
|
109
|
-
*/
|
|
110
|
-
export declare function withPerformanceMonitoring<T extends (...args: any[]) => any>(fn: T, name: string): T;
|
|
111
|
-
/**
|
|
112
|
-
* Bundle size analysis helper
|
|
113
|
-
*/
|
|
114
|
-
export declare const BundleAnalysis: {
|
|
115
|
-
/**
|
|
116
|
-
* Estimate validation code size for bundle analysis
|
|
117
|
-
*/
|
|
118
|
-
getValidationCodeSize(): number;
|
|
119
|
-
/**
|
|
120
|
-
* Get optimization report
|
|
121
|
-
*/
|
|
122
|
-
getOptimizationReport(): {
|
|
123
|
-
mode: "test" | "development" | "production";
|
|
124
|
-
validationCodeSize: number;
|
|
125
|
-
bypassCount: number;
|
|
126
|
-
performanceGain: number;
|
|
127
|
-
optimization: string;
|
|
128
|
-
recommendations: string[];
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Get optimization recommendations
|
|
132
|
-
*/
|
|
133
|
-
getOptimizationRecommendations(): string[];
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Production optimization utilities
|
|
137
|
-
*/
|
|
138
|
-
export declare const ProductionOptimizationUtils: {
|
|
139
|
-
/**
|
|
140
|
-
* Configure production mode
|
|
141
|
-
*/
|
|
142
|
-
configure: typeof ProductionModeManager.configure;
|
|
143
|
-
/**
|
|
144
|
-
* Check if in production
|
|
145
|
-
*/
|
|
146
|
-
isProduction: typeof ProductionModeManager.isProduction;
|
|
147
|
-
/**
|
|
148
|
-
* Manually disable validation
|
|
149
|
-
*/
|
|
150
|
-
disableValidation: typeof ProductionModeManager.disableValidation;
|
|
151
|
-
/**
|
|
152
|
-
* Re-enable validation (development only)
|
|
153
|
-
*/
|
|
154
|
-
enableValidation: typeof ProductionModeManager.enableValidation;
|
|
155
|
-
/**
|
|
156
|
-
* Get performance statistics
|
|
157
|
-
*/
|
|
158
|
-
getStats: typeof ProductionModeManager.getBypassStats;
|
|
159
|
-
/**
|
|
160
|
-
* Get bundle optimization report
|
|
161
|
-
*/
|
|
162
|
-
getBundleReport: () => {
|
|
163
|
-
mode: "test" | "development" | "production";
|
|
164
|
-
validationCodeSize: number;
|
|
165
|
-
bypassCount: number;
|
|
166
|
-
performanceGain: number;
|
|
167
|
-
optimization: string;
|
|
168
|
-
recommendations: string[];
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Test production optimization
|
|
172
|
-
*/
|
|
173
|
-
test(): void;
|
|
174
|
-
};
|
|
175
|
-
//# sourceMappingURL=production-bypass.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"production-bypass.d.ts","sourceRoot":"","sources":["../../src/validation/production-bypass.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,aAAa,GAAG,YAAY,GAAG,MAAM,CAAA;IAC3C,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,CAAA;IAClD,SAAS,EAAE,OAAO,CAAA;CACnB;AAYD;;GAEG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAQ;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAI;IAC9B,OAAO,CAAC,MAAM,CAAC,eAAe,CAAI;IAElC;;OAEG;IACH,MAAM,CAAC,YAAY,IAAI,OAAO;IAI9B;;OAEG;IACH,MAAM,CAAC,sBAAsB,IAAI,OAAO;IAsBxC;;OAEG;IACH,MAAM,CAAC,iBAAiB,IAAI,IAAI;IAOhC;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI,IAAI;IAY/B;;OAEG;IACH,MAAM,CAAC,cAAc;;;;;;;IAUrB;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAQzD;;OAEG;IACH,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGnD;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACjF,mBAAmB,EAAE,CAAC,EACtB,kBAAkB,CAAC,EAAE,CAAC,GACrB,CAAC,CAsBH;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC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GH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;IAGH;;OAEG;YACK,IAAI;CAmBb,CAAA"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simplified Validation System
|
|
3
|
-
*
|
|
4
|
-
* A practical validation system that provides runtime validation
|
|
5
|
-
* with helpful error messages without complex TypeScript types.
|
|
6
|
-
*/
|
|
7
|
-
import type { ComponentInstance } from '../runtime/types';
|
|
8
|
-
/**
|
|
9
|
-
* Validation error class
|
|
10
|
-
*/
|
|
11
|
-
export declare class TachUIValidationError extends Error {
|
|
12
|
-
context: {
|
|
13
|
-
component: string;
|
|
14
|
-
property?: string;
|
|
15
|
-
suggestion?: string;
|
|
16
|
-
documentation?: string;
|
|
17
|
-
example?: {
|
|
18
|
-
wrong: string;
|
|
19
|
-
correct: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
constructor(message: string, context: {
|
|
23
|
-
component: string;
|
|
24
|
-
property?: string;
|
|
25
|
-
suggestion?: string;
|
|
26
|
-
documentation?: string;
|
|
27
|
-
example?: {
|
|
28
|
-
wrong: string;
|
|
29
|
-
correct: string;
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
getFormattedMessage(): string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Validation configuration
|
|
36
|
-
*/
|
|
37
|
-
export interface ValidationConfig {
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
strictMode: boolean;
|
|
40
|
-
errorLevel: 'error' | 'warn' | 'info';
|
|
41
|
-
excludeFiles: string[];
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Configure validation settings
|
|
45
|
-
*/
|
|
46
|
-
export declare function configureValidation(config: Partial<ValidationConfig>): void;
|
|
47
|
-
/**
|
|
48
|
-
* Check if validation is enabled
|
|
49
|
-
*/
|
|
50
|
-
export declare function isValidationEnabled(): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Component validation functions
|
|
53
|
-
*/
|
|
54
|
-
export declare const ComponentValidation: {
|
|
55
|
-
/**
|
|
56
|
-
* Validate Text component
|
|
57
|
-
*/
|
|
58
|
-
validateText(args: unknown[]): void;
|
|
59
|
-
/**
|
|
60
|
-
* Validate Button component
|
|
61
|
-
*/
|
|
62
|
-
validateButton(args: unknown[]): void;
|
|
63
|
-
/**
|
|
64
|
-
* Validate VStack/HStack/ZStack components
|
|
65
|
-
*/
|
|
66
|
-
validateStack(componentType: string, args: unknown[]): void;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Modifier validation functions
|
|
70
|
-
*/
|
|
71
|
-
export declare const ModifierValidation: {
|
|
72
|
-
/**
|
|
73
|
-
* Validate modifier usage
|
|
74
|
-
*/
|
|
75
|
-
validateModifier(componentType: string, modifierName: string, args?: unknown[]): void;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Create validated component wrapper
|
|
79
|
-
*/
|
|
80
|
-
export declare function createValidatedComponent<T extends ComponentInstance>(originalConstructor: (...args: any[]) => T, validator: (args: unknown[]) => void, componentType: string): (...args: any[]) => T;
|
|
81
|
-
/**
|
|
82
|
-
* Validation utilities
|
|
83
|
-
*/
|
|
84
|
-
export declare const ValidationUtils: {
|
|
85
|
-
/**
|
|
86
|
-
* Enable validation
|
|
87
|
-
*/
|
|
88
|
-
enable(enabled?: boolean): void;
|
|
89
|
-
/**
|
|
90
|
-
* Enable strict mode
|
|
91
|
-
*/
|
|
92
|
-
enableStrictMode(): void;
|
|
93
|
-
/**
|
|
94
|
-
* Set error level
|
|
95
|
-
*/
|
|
96
|
-
setErrorLevel(level: "error" | "warn" | "info"): void;
|
|
97
|
-
/**
|
|
98
|
-
* Test validation system
|
|
99
|
-
*/
|
|
100
|
-
test(): void;
|
|
101
|
-
/**
|
|
102
|
-
* Get validation stats
|
|
103
|
-
*/
|
|
104
|
-
getStats(): {
|
|
105
|
-
enabled: boolean;
|
|
106
|
-
config: ValidationConfig;
|
|
107
|
-
components: string[];
|
|
108
|
-
modifiers: string[];
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=simple.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../src/validation/simple.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGzD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAGrC,OAAO,EAAE;QACd,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;KACF;gBAVD,OAAO,EAAE,MAAM,EACR,OAAO,EAAE;QACd,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;KACF;IAMH,mBAAmB,IAAI,MAAM;CAoB9B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IACrC,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAE3E;AAED;;GAEG;AACH,wBAAgB,mBA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