@slotted/angular 0.1.0-beta.25 → 0.1.0-beta.27

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 (40) hide show
  1. package/docs/app-shell.json +1 -1
  2. package/docs/app-shell.md +1 -1
  3. package/docs/chart.json +2 -0
  4. package/docs/chart.md +1 -1
  5. package/docs/combobox.json +1 -0
  6. package/docs/combobox.md +1 -1
  7. package/docs/dialog.json +24 -5
  8. package/docs/dialog.md +1 -1
  9. package/docs/dialog.props.md +7 -5
  10. package/docs/drawer.json +3 -1
  11. package/docs/drawer.md +2 -2
  12. package/docs/menu.json +1 -0
  13. package/docs/menu.md +1 -1
  14. package/docs/multi-select.json +1 -0
  15. package/docs/multi-select.md +1 -1
  16. package/docs/select.json +1 -0
  17. package/docs/select.md +1 -1
  18. package/docs/skills/theme-app/SKILL.md +4 -1
  19. package/fesm2022/slotted-angular-card.mjs +2 -2
  20. package/fesm2022/slotted-angular-card.mjs.map +1 -1
  21. package/fesm2022/slotted-angular-chart.mjs +2 -2
  22. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  23. package/fesm2022/slotted-angular-combobox.mjs +2 -2
  24. package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
  25. package/fesm2022/slotted-angular-dialog.mjs +4 -4
  26. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  27. package/fesm2022/slotted-angular-drawer.mjs +2 -2
  28. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  29. package/fesm2022/slotted-angular-menu.mjs +5 -10
  30. package/fesm2022/slotted-angular-menu.mjs.map +1 -1
  31. package/fesm2022/slotted-angular-multi-select.mjs +2 -2
  32. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
  33. package/fesm2022/slotted-angular-popover.mjs +2 -2
  34. package/fesm2022/slotted-angular-popover.mjs.map +1 -1
  35. package/fesm2022/slotted-angular-select.mjs +2 -2
  36. package/fesm2022/slotted-angular-select.mjs.map +1 -1
  37. package/fesm2022/slotted-angular-tooltip.mjs +2 -2
  38. package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
  39. package/package.json +3 -3
  40. package/types/slotted-angular-menu.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-card.mjs","sources":["../../card/src/card-defaults.ts","../../card/src/card.ts","../../card/src/card-actions.ts","../../card/src/card-body.ts","../../card/src/card-footer.ts","../../card/src/card-header.ts","../../card/src/card-link.ts","../../card/src/card-media.ts","../../card/src/card-selection.ts","../../card/src/slotted-angular-card.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nexport type CardOrientation = 'vertical' | 'horizontal';\n\n/** How the surface is bounded: by an edge, by elevation, or by a fill. */\nexport type CardFill = 'outline' | 'elevated' | 'subtle';\n\n/** The card's own inset. Density is the application's choice; this is not. */\nexport type CardSize = 'sm' | 'md' | 'lg';\n\nexport interface CardDefaults {\n fill: CardFill;\n orientation: CardOrientation;\n size: CardSize;\n}\n\nexport const CARD_DEFAULTS = new InjectionToken<CardDefaults>('slotted card defaults', {\n providedIn: 'root',\n factory: () => ({ fill: 'outline', orientation: 'vertical', size: 'md' }),\n});\n\n/**\n * An application decides once how its cards are bounded and how far they are\n * inset, rather than repeating two inputs on every card. A card that states\n * either itself still wins: an explicit input is never overridden by the token.\n */\nexport function provideCardDefaults(defaults: Partial<CardDefaults>) {\n return {\n provide: CARD_DEFAULTS,\n useFactory: (): CardDefaults => ({\n fill: defaults.fill ?? 'outline',\n orientation: defaults.orientation ?? 'vertical',\n size: defaults.size ?? 'md',\n }),\n };\n}\n\n/** What a card renders as here, before it states anything of its own. */\nexport function injectCardDefaults(): CardDefaults {\n return inject(CARD_DEFAULTS);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectCardDefaults } from './card-defaults';\nimport type { CardFill, CardOrientation, CardSize } from './card-defaults';\n\nexport type { CardFill, CardOrientation, CardSize } from './card-defaults';\n\n/**\n * A bounded surface that groups one subject. It claims nothing about what that\n * subject is: the directive is written on the element the page chose, so an\n * `article` with its own heading, the `li` of a list of results and the\n * `label` of a chooser are all the same card.\n *\n * The card holds no state. `selected` and `disabled` mirror state that belongs\n * to the control inside it, which is also what announces them.\n */\n@Component({\n selector: '[slCard]',\n standalone: true,\n exportAs: 'slCard',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/card/card.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'card',\n 'data-ui-card': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-fill]': 'resolvedFill()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-selected]': \"selected() ? '' : null\",\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n },\n})\nexport class SlCard {\n /**\n * `horizontal` puts the media beside the regions and answers the card's own\n * inline size, returning the media to the top in a narrow container.\n */\n readonly orientation = input<CardOrientation>();\n /** How the surface is bounded. Falls back to the injected default. */\n readonly fill = input<CardFill>();\n /** The card's own inset. Falls back to the injected default. */\n readonly size = input<CardSize>();\n /**\n * Mirrors a selection the page owns. The card paints it; the control inside\n * announces it.\n */\n readonly selected = input(false, { transform: booleanAttribute });\n /**\n * Mirrors a control the page has disabled: the card dims, stops answering\n * hover and withdraws the hit area it added. It disables nothing, because\n * only the control inside can refuse an interaction.\n */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectCardDefaults();\n\n protected readonly resolvedOrientation = computed(\n () => this.orientation() ?? this.defaults.orientation,\n );\n protected readonly resolvedFill = computed(() => this.fill() ?? this.defaults.fill);\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n}\n","import { Directive } from '@angular/core';\n\n/**\n * The corner of the header: a badge, a status, a menu button. It stays on the\n * first row, so a title that wraps to two lines does not drag it down, and it\n * sits above the hit area a card link stretches, so it stays operable.\n */\n@Directive({\n selector: '[slCardActions]',\n standalone: true,\n exportAs: 'slCardActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlCardActions {}\n","import { Directive } from '@angular/core';\n\n/** The content. It takes whatever a card stretched to a row height has left. */\n@Directive({\n selector: '[slCardBody]',\n standalone: true,\n exportAs: 'slCardBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlCardBody {}\n","import { Directive } from '@angular/core';\n\n/**\n * Actions and metadata. The footer sits above the hit area a card action\n * stretches, so a secondary action inside it stays operable.\n */\n@Directive({\n selector: '[slCardFooter]',\n standalone: true,\n exportAs: 'slCardFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlCardFooter {}\n","import { Directive } from '@angular/core';\n\n/** A title and the line that supports it. Both of them are Typography. */\n@Directive({\n selector: '[slCardHeader]',\n standalone: true,\n exportAs: 'slCardHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlCardHeader {}\n","import { Directive } from '@angular/core';\n\n/**\n * The one destination a card resolves to, written on the anchor the page\n * already has. Its hit area covers the whole surface, so the card is clickable\n * without the root becoming a link: the accessible name stays the title rather\n * than every string in the card, and Enter, the context menu and middle-click\n * stay the platform's.\n *\n * A card carries at most one. Two would be two destinations for one surface.\n */\n@Directive({\n selector: 'a[slCardLink]',\n standalone: true,\n exportAs: 'slCardLink',\n host: { 'data-part': 'link', 'data-part-link': '' },\n})\nexport class SlCardLink {}\n","import { Directive } from '@angular/core';\n\n/**\n * Media that bleeds to the card's edge and rounds the corners it touches. It\n * clips itself, because a card that clipped its own content would cut off an\n * overlay opened inside it.\n */\n@Directive({\n selector: '[slCardMedia]',\n standalone: true,\n exportAs: 'slCardMedia',\n host: { 'data-part': 'media', 'data-part-media': '' },\n})\nexport class SlCardMedia {}\n","import { Directive } from '@angular/core';\n\n/**\n * The place a choice card keeps for its control: a native checkbox or radio,\n * and `slCheckbox` when the family that owns the check ships it.\n *\n * It is the slot and not the glyph. The card sizes the control from the icon\n * scale density moves, tints the platform's own check with the accent, and\n * centres it on the title's first row; what a check and a dot look like is one\n * decision, and it belongs to `checkbox`.\n *\n * The control inside keeps its own `ControlValueAccessor`, so `[(ngModel)]` and\n * a Reactive Form control both reach it untouched. The card is the `<label>`\n * around it and holds no value of its own.\n */\n@Directive({\n selector: '[slCardSelection]',\n standalone: true,\n exportAs: 'slCardSelection',\n host: { 'data-part': 'selection', 'data-part-selection': '' },\n})\nexport class SlCardSelection {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAgBa,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC1E,CAAA;AAED;;;;AAIG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB;AAC/B,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,SAAS;AAChC,YAAA,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,UAAU;AAC/C,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,IAAI;SAC5B,CAAC;KACH;AACH;AAEA;SACgB,kBAAkB,GAAA;AAChC,IAAA,OAAO,MAAM,CAAC,aAAa,CAAC;AAC9B;;AC1BA;;;;;;;;AAQG;MAqBU,MAAM,CAAA;AACjB;;;AAGG;AACM,IAAA,WAAW,GAAG,KAAK;+FAAmB;;AAEtC,IAAA,IAAI,GAAG,KAAK;wFAAY;;AAExB,IAAA,IAAI,GAAG,KAAK;wFAAY;AACjC;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS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A,EAAA,EAAA,WAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBANvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,aAAa;oBACvB,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE;AACtD,iBAAA;;;ACVD;;;;;;;;;;;;AAYG;MAOU,eAAe,CAAA;uGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,iBAAiB;oBAC3B,IAAI,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,qBAAqB,EAAE,EAAE,EAAE;AAC9D,iBAAA;;;ACpBD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-card.mjs","sources":["../../card/src/card-defaults.ts","../../card/src/card.ts","../../card/src/card-actions.ts","../../card/src/card-body.ts","../../card/src/card-footer.ts","../../card/src/card-header.ts","../../card/src/card-link.ts","../../card/src/card-media.ts","../../card/src/card-selection.ts","../../card/src/slotted-angular-card.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nexport type CardOrientation = 'vertical' | 'horizontal';\n\n/** How the surface is bounded: by an edge, by elevation, or by a fill. */\nexport type CardFill = 'outline' | 'elevated' | 'subtle';\n\n/** The card's own inset. Density is the application's choice; this is not. */\nexport type CardSize = 'sm' | 'md' | 'lg';\n\nexport interface CardDefaults {\n fill: CardFill;\n orientation: CardOrientation;\n size: CardSize;\n}\n\nexport const CARD_DEFAULTS = new InjectionToken<CardDefaults>('slotted card defaults', {\n providedIn: 'root',\n factory: () => ({ fill: 'outline', orientation: 'vertical', size: 'md' }),\n});\n\n/**\n * An application decides once how its cards are bounded and how far they are\n * inset, rather than repeating two inputs on every card. A card that states\n * either itself still wins: an explicit input is never overridden by the token.\n */\nexport function provideCardDefaults(defaults: Partial<CardDefaults>) {\n return {\n provide: CARD_DEFAULTS,\n useFactory: (): CardDefaults => ({\n fill: defaults.fill ?? 'outline',\n orientation: defaults.orientation ?? 'vertical',\n size: defaults.size ?? 'md',\n }),\n };\n}\n\n/** What a card renders as here, before it states anything of its own. */\nexport function injectCardDefaults(): CardDefaults {\n return inject(CARD_DEFAULTS);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectCardDefaults } from './card-defaults';\nimport type { CardFill, CardOrientation, CardSize } from './card-defaults';\n\nexport type { CardFill, CardOrientation, CardSize } from './card-defaults';\n\n/**\n * A bounded surface that groups one subject. It claims nothing about what that\n * subject is: the directive is written on the element the page chose, so an\n * `article` with its own heading, the `li` of a list of results and the\n * `label` of a chooser are all the same card.\n *\n * The card holds no state. `selected` and `disabled` mirror state that belongs\n * to the control inside it, which is also what announces them.\n */\n@Component({\n selector: '[slCard]',\n standalone: true,\n exportAs: 'slCard',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/card/card.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'card',\n 'data-ui-card': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-fill]': 'resolvedFill()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-selected]': \"selected() ? '' : null\",\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n },\n})\nexport class SlCard {\n /**\n * `horizontal` puts the media beside the regions and answers the card's own\n * inline size, returning the media to the top in a narrow container.\n */\n readonly orientation = input<CardOrientation>();\n /** How the surface is bounded. Falls back to the injected default. */\n readonly fill = input<CardFill>();\n /** The card's own inset. Falls back to the injected default. */\n readonly size = input<CardSize>();\n /**\n * Mirrors a selection the page owns. The card paints it; the control inside\n * announces it.\n */\n readonly selected = input(false, { transform: booleanAttribute });\n /**\n * Mirrors a control the page has disabled: the card dims, stops answering\n * hover and withdraws the hit area it added. It disables nothing, because\n * only the control inside can refuse an interaction.\n */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectCardDefaults();\n\n protected readonly resolvedOrientation = computed(\n () => this.orientation() ?? this.defaults.orientation,\n );\n protected readonly resolvedFill = computed(() => this.fill() ?? this.defaults.fill);\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n}\n","import { Directive } from '@angular/core';\n\n/**\n * The corner of the header: a badge, a status, a menu button. It stays on the\n * first row, so a title that wraps to two lines does not drag it down, and it\n * sits above the hit area a card link stretches, so it stays operable.\n */\n@Directive({\n selector: '[slCardActions]',\n standalone: true,\n exportAs: 'slCardActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlCardActions {}\n","import { Directive } from '@angular/core';\n\n/** The content. It takes whatever a card stretched to a row height has left. */\n@Directive({\n selector: '[slCardBody]',\n standalone: true,\n exportAs: 'slCardBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlCardBody {}\n","import { Directive } from '@angular/core';\n\n/**\n * Actions and metadata. The footer sits above the hit area a card action\n * stretches, so a secondary action inside it stays operable.\n */\n@Directive({\n selector: '[slCardFooter]',\n standalone: true,\n exportAs: 'slCardFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlCardFooter {}\n","import { Directive } from '@angular/core';\n\n/** A title and the line that supports it. Both of them are Typography. */\n@Directive({\n selector: '[slCardHeader]',\n standalone: true,\n exportAs: 'slCardHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlCardHeader {}\n","import { Directive } from '@angular/core';\n\n/**\n * The one destination a card resolves to, written on the anchor the page\n * already has. Its hit area covers the whole surface, so the card is clickable\n * without the root becoming a link: the accessible name stays the title rather\n * than every string in the card, and Enter, the context menu and middle-click\n * stay the platform's.\n *\n * A card carries at most one. Two would be two destinations for one surface.\n */\n@Directive({\n selector: 'a[slCardLink]',\n standalone: true,\n exportAs: 'slCardLink',\n host: { 'data-part': 'link', 'data-part-link': '' },\n})\nexport class SlCardLink {}\n","import { Directive } from '@angular/core';\n\n/**\n * Media that bleeds to the card's edge and rounds the corners it touches. It\n * clips itself, because a card that clipped its own content would cut off an\n * overlay opened inside it.\n */\n@Directive({\n selector: '[slCardMedia]',\n standalone: true,\n exportAs: 'slCardMedia',\n host: { 'data-part': 'media', 'data-part-media': '' },\n})\nexport class SlCardMedia {}\n","import { Directive } from '@angular/core';\n\n/**\n * The place a choice card keeps for its control: a native checkbox or radio,\n * and `slCheckbox` when the family that owns the check ships it.\n *\n * It is the slot and not the glyph. The card sizes the control from the icon\n * scale density moves, tints the platform's own check with the accent, and\n * centres it on the title's first row; what a check and a dot look like is one\n * decision, and it belongs to `checkbox`.\n *\n * The control inside keeps its own `ControlValueAccessor`, so `[(ngModel)]` and\n * a Reactive Form control both reach it untouched. The card is the `<label>`\n * around it and holds no value of its own.\n */\n@Directive({\n selector: '[slCardSelection]',\n standalone: true,\n exportAs: 'slCardSelection',\n host: { 'data-part': 'selection', 'data-part-selection': '' },\n})\nexport class SlCardSelection {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAgBa,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC1E,CAAA;AAED;;;;AAIG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB;AAC/B,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,SAAS;AAChC,YAAA,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,UAAU;AAC/C,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,IAAI;SAC5B,CAAC;KACH;AACH;AAEA;SACgB,kBAAkB,GAAA;AAChC,IAAA,OAAO,MAAM,CAAC,aAAa,CAAC;AAC9B;;AC1BA;;;;;;;;AAQG;MAqBU,MAAM,CAAA;AACjB;;;AAGG;AACM,IAAA,WAAW,GAAG,KAAK;+FAAmB;;AAEtC,IAAA,IAAI,GAAG,KAAK;wFAAY;;AAExB,IAAA,IAAI,GAAG,KAAK;wFAAY;AACjC;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAEhD,QAAQ,GAAG,kBAAkB,EAAE;AAE7B,IAAA,mBAAmB,GAAG,QAAQ,CAC/C,MAAM,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW;4FACtD;AACkB,IAAA,YAAY,GAAG,Q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