@dotglitch/ngx-common 1.0.51 → 1.1.2
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/components/command-palette/command-palette.component.d.ts +20 -0
- package/components/command-palette/shortcut/shortcut.component.d.ts +9 -0
- package/components/dynamic-html/dynamic-html.component.d.ts +1 -1
- package/components/filemanager/file-grid/file-grid.component.d.ts +1 -1
- package/components/filemanager/filemanager.component.d.ts +1 -1
- package/components/filemanager/folder-rename/folder-rename.component.d.ts +1 -1
- package/components/filemanager/toolbar/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/components/filemanager/toolbar/icon-button/icon-button.component.d.ts +1 -1
- package/components/filemanager/toolbar/toolbar.component.d.ts +1 -1
- package/components/filemanager/tree-view/tree-view.component.d.ts +1 -1
- package/components/lazy-loader/lazy-loader.component.d.ts +1 -1
- package/components/menu/menu.component.d.ts +1 -1
- package/components/tabulator/tabulator.component.d.ts +1 -1
- package/components/tooltip/tooltip.component.d.ts +1 -1
- package/components/vscode/vscode.component.d.ts +1 -1
- package/directives/menu.directive.d.ts +2 -2
- package/directives/tooltip.directive.d.ts +1 -1
- package/esm2022/components/command-palette/command-palette.component.mjs +107 -0
- package/esm2022/components/command-palette/shortcut/shortcut.component.mjs +19 -0
- package/{esm2020 → esm2022}/components/dynamic-html/dynamic-html.component.mjs +5 -5
- package/esm2022/components/dynamic-html/dynamic-html.module.mjs +27 -0
- package/{esm2020 → esm2022}/components/dynamic-html/dynamic-html.service.mjs +6 -6
- package/{esm2020 → esm2022}/components/filemanager/file-grid/file-grid.component.mjs +5 -5
- package/esm2022/components/filemanager/filemanager.component.mjs +302 -0
- package/{esm2020 → esm2022}/components/filemanager/folder-rename/folder-rename.component.mjs +5 -5
- package/{esm2020 → esm2022}/components/filemanager/toolbar/breadcrumb/breadcrumb.component.mjs +5 -5
- package/{esm2020 → esm2022}/components/filemanager/toolbar/icon-button/icon-button.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/filemanager/toolbar/toolbar.component.mjs +5 -5
- package/{esm2020 → esm2022}/components/filemanager/tree-view/tree-view.component.mjs +6 -6
- package/{esm2020 → esm2022}/components/lazy-loader/lazy-loader.component.mjs +6 -6
- package/esm2022/components/lazy-loader/lazy-loader.module.mjs +29 -0
- package/esm2022/components/lazy-loader/lazy-loader.service.mjs +215 -0
- package/{esm2020 → esm2022}/components/menu/menu.component.mjs +7 -7
- package/{esm2020 → esm2022}/components/react-magic-wrapper/react-magic-wrapper.component.mjs +5 -5
- package/esm2022/components/tabulator/tabulator.component.mjs +92 -0
- package/{esm2020 → esm2022}/components/tooltip/tooltip.component.mjs +10 -10
- package/{esm2020 → esm2022}/components/vscode/vscode.component.mjs +5 -5
- package/{esm2020 → esm2022}/directives/menu.directive.mjs +7 -7
- package/{esm2020 → esm2022}/directives/tooltip.directive.mjs +7 -7
- package/{esm2020 → esm2022}/pipes/html-bypass.pipe.mjs +5 -5
- package/{esm2020 → esm2022}/pipes/resource-bypass.pipe.mjs +5 -5
- package/{esm2020 → esm2022}/pipes/script-bypass.pipe.mjs +5 -5
- package/{esm2020 → esm2022}/pipes/style-bypass.pipe.mjs +5 -5
- package/{esm2020 → esm2022}/pipes/url-bypass.pipe.mjs +5 -5
- package/esm2022/public-api.mjs +58 -0
- package/esm2022/services/command-palette.service.mjs +205 -0
- package/{esm2020 → esm2022}/services/dependency.service.mjs +6 -6
- package/{esm2020 → esm2022}/services/dialog.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/fetch.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/file.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/keyboard.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/navigation.service.mjs +5 -5
- package/{esm2020 → esm2022}/services/theme.service.mjs +5 -5
- package/{fesm2020/dotglitch-ngx-common-folder-rename.component-dcb5b712.mjs → fesm2022/dotglitch-ngx-common-folder-rename.component-jf2j2TId.mjs} +7 -7
- package/{fesm2020/dotglitch-ngx-common-folder-rename.component-dcb5b712.mjs.map → fesm2022/dotglitch-ngx-common-folder-rename.component-jf2j2TId.mjs.map} +1 -1
- package/{fesm2020 → fesm2022}/dotglitch-ngx-common.mjs +471 -158
- package/fesm2022/dotglitch-ngx-common.mjs.map +1 -0
- package/package.json +9 -15
- package/public-api.d.ts +5 -1
- package/services/command-palette.service.d.ts +103 -0
- package/esm2020/components/dynamic-html/dynamic-html.module.mjs +0 -27
- package/esm2020/components/filemanager/filemanager.component.mjs +0 -302
- package/esm2020/components/lazy-loader/lazy-loader.module.mjs +0 -29
- package/esm2020/components/lazy-loader/lazy-loader.service.mjs +0 -215
- package/esm2020/components/tabulator/tabulator.component.mjs +0 -92
- package/esm2020/public-api.mjs +0 -54
- package/fesm2015/dotglitch-ngx-common-folder-rename.component-984ccea3.mjs +0 -82
- package/fesm2015/dotglitch-ngx-common-folder-rename.component-984ccea3.mjs.map +0 -1
- package/fesm2015/dotglitch-ngx-common.mjs +0 -10815
- package/fesm2015/dotglitch-ngx-common.mjs.map +0 -1
- package/fesm2020/dotglitch-ngx-common.mjs.map +0 -1
- /package/{esm2020 → esm2022}/assets/mat-icons.mjs +0 -0
- /package/{esm2020 → esm2022}/components/dynamic-html/types.mjs +0 -0
- /package/{esm2020 → esm2022}/components/filemanager/helpers.mjs +0 -0
- /package/{esm2020 → esm2022}/components/filemanager/icon-resolver.mjs +0 -0
- /package/{esm2020 → esm2022}/components/filemanager/textextensions.mjs +0 -0
- /package/{esm2020 → esm2022}/components/lazy-loader/types.mjs +0 -0
- /package/{esm2020 → esm2022}/components/types.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/dependency-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/dummy-source-cache.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/import-resolver.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/main.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/recursion-depth.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/types.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/unpkg-source-resolver.mjs +0 -0
- /package/{esm2020 → esm2022}/components/vscode/ts-type-resolver/update-emitter.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/dotglitch-ngx-common.mjs +0 -0
- /package/{esm2020 → esm2022}/types/menu.mjs +0 -0
- /package/{esm2020 → esm2022}/types/popup.mjs +0 -0
- /package/{esm2020 → esm2022}/types/tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
|
@@ -17,13 +17,13 @@ export class ThemeService extends BehaviorSubject {
|
|
|
17
17
|
setTheme(t) {
|
|
18
18
|
this.next(t);
|
|
19
19
|
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
ThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ThemeService, providedIn: 'root' });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ThemeService, decorators: [{
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ThemeService, decorators: [{
|
|
24
24
|
type: Injectable,
|
|
25
25
|
args: [{
|
|
26
26
|
providedIn: 'root'
|
|
27
27
|
}]
|
|
28
|
-
}], ctorParameters:
|
|
29
|
-
//# sourceMappingURL=data:application/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ibGlnaHRcIilcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmNsYXNzTGlzdC5yZW1vdmUoXCJkYXJrXCIpO1xuICAgICAgICAgICAgaWYgKGRvY3VtZW50LmJvZHkuY2xhc3NMaXN0LmNvbnRhaW5zKFwibGlnaHRcIikgJiYgdCA9PSBcImRhcmtcIilcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmNsYXNzTGlzdC5yZW1vdmUoXCJsaWdodFwiKTtcblxuICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5jbGFzc0xpc3QuYWRkKHQpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2V0VGhlbWUodDogQXBwVGhlbWUpIHtcbiAgICAgICAgdGhpcy5uZXh0KHQpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -20,12 +20,12 @@ import '@angular/cdk/portal';
|
|
|
20
20
|
import '@angular/cdk/dialog';
|
|
21
21
|
import 'rxjs/operators';
|
|
22
22
|
import '@angular/common/http';
|
|
23
|
+
import '@angular/cdk/scrolling';
|
|
24
|
+
import 'ngx-scrollbar';
|
|
23
25
|
import '@angular/material/tabs';
|
|
24
26
|
import '@angular/material/sidenav';
|
|
25
27
|
import 'angular-split';
|
|
26
28
|
import '@angular/material/checkbox';
|
|
27
|
-
import '@angular/cdk/scrolling';
|
|
28
|
-
import 'ngx-scrollbar';
|
|
29
29
|
import 'tabulator-tables';
|
|
30
30
|
import '@angular/material/progress-bar';
|
|
31
31
|
import '@angular/material/expansion';
|
|
@@ -58,10 +58,10 @@ class FolderRenameComponent {
|
|
|
58
58
|
}
|
|
59
59
|
this.dialog.close(true);
|
|
60
60
|
}
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FolderRenameComponent, deps: [{ token: i1.MatDialogRef }, { token: Fetch }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: FolderRenameComponent, isStandalone: true, selector: "app-folder-rename", inputs: { path: "path", name: "name", config: "config" }, ngImport: i0, template: "<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
FolderRenameComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FolderRenameComponent, isStandalone: true, selector: "app-folder-rename", inputs: { path: "path", name: "name", config: "config" }, ngImport: i0, template: "<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FolderRenameComponent, decorators: [{
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: FolderRenameComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: 'app-folder-rename', imports: [
|
|
67
67
|
MatInputModule,
|
|
@@ -69,7 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
69
69
|
MatButtonModule,
|
|
70
70
|
FormsModule
|
|
71
71
|
], standalone: true, template: "<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;padding:24px}\n"] }]
|
|
72
|
-
}], ctorParameters:
|
|
72
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: Fetch }], propDecorators: { path: [{
|
|
73
73
|
type: Input
|
|
74
74
|
}], name: [{
|
|
75
75
|
type: Input
|
|
@@ -78,4 +78,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
78
78
|
}] } });
|
|
79
79
|
|
|
80
80
|
export { FolderRenameComponent };
|
|
81
|
-
//# sourceMappingURL=dotglitch-ngx-common-folder-rename.component-
|
|
81
|
+
//# sourceMappingURL=dotglitch-ngx-common-folder-rename.component-jf2j2TId.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dotglitch-ngx-common-folder-rename.component-
|
|
1
|
+
{"version":3,"file":"dotglitch-ngx-common-folder-rename.component-jf2j2TId.mjs","sources":["../../../packages/common/src/components/filemanager/folder-rename/folder-rename.component.ts","../../../packages/common/src/components/filemanager/folder-rename/folder-rename.component.html"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { NgxFileManagerConfiguration } from '../filemanager.component';\nimport { Fetch } from '../../../public-api';\n\n@Component({\n selector: 'app-folder-rename',\n templateUrl: './folder-rename.component.html',\n styleUrls: ['./folder-rename.component.scss'],\n imports: [\n MatInputModule,\n MatIconModule,\n MatButtonModule,\n FormsModule\n ],\n standalone: true\n})\nexport class FolderRenameComponent implements OnInit {\n\n @Input() path: string;\n @Input() name: string = '';\n @Input() config: NgxFileManagerConfiguration;\n\n isRename = false;\n\n constructor(\n public dialog: MatDialogRef<any>,\n private fetch: Fetch\n ) { }\n\n ngOnInit() {\n this.isRename = this.name.length > 0;\n }\n\n onSave() {\n if (this.isRename) {\n const url = this.config.apiSettings.renameEntryUrlTemplate\n ? this.config.apiSettings.renameEntryUrlTemplate(this.path + this.name)\n : this.config.apiSettings.renameEntryUrl\n\n this.fetch.post(url, { path: this.path + '/' + this.name });\n }\n else {\n const url = this.config.apiSettings.createDirectoryUrlTemplate\n ? this.config.apiSettings.createDirectoryUrlTemplate(this.path + this.name)\n : this.config.apiSettings.createDirectoryUrl\n\n this.fetch.post(url, {path: this.path +'/'+ this.name});\n }\n this.dialog.close(true);\n }\n}\n","<mat-form-field style=\"width: 280px;\">\n <mat-label>Name</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"name\" (keyup)=\"$event.key == 'Enter' && onSave()\">\n</mat-form-field>\n\n<div style=\"align-self: end;\">\n <button mat-flat-button (click)=\"onSave()\"><mat-icon>check</mat-icon>Ok</button>\n <button mat-flat-button (click)=\"dialog.close()\"><mat-icon>cancel</mat-icon>Cancel</button>\n</div>\n"],"names":["i2.Fetch","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqBa,qBAAqB,CAAA;IAQ9B,WACW,CAAA,MAAyB,EACxB,KAAY,EAAA;QADb,IAAM,CAAA,MAAA,GAAN,MAAM,CAAmB;QACxB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAO;QAPf,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAG3B,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KAKZ;IAEL,QAAQ,GAAA;QACJ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;KACxC;IAED,MAAM,GAAA;QACF,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB;AACtD,kBAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;kBACrE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAA;YAE5C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/D,SAAA;AACI,aAAA;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