{"version":3,"file":"forty-cdk-otp-input.mjs","sources":["../../../projects/forty-cdk/otp-input/src/otp-input-context.ts","../../../projects/forty-cdk/otp-input/src/otp-patterns.ts","../../../projects/forty-cdk/otp-input/src/otp-input.ts","../../../projects/forty-cdk/otp-input/src/otp-input-slot.ts","../../../projects/forty-cdk/otp-input/src/otp-input-host-directive.ts","../../../projects/forty-cdk/otp-input/src/forty-cdk-otp-input.ts"],"sourcesContent":["import { inject, InjectionToken, type Signal } from '@angular/core';\n\nimport { orphanContextError } from 'forty-cdk/core';\n\n/**\n * The coordination surface a `[forOtpInput]` exposes to its `[forOtpInputSlot]`\n * children. Each slot reads its own state through these methods, passing its\n * `index`. The methods read the directive's signals internally, so calling them\n * inside a slot's `computed` tracks the underlying state reactively.\n */\nexport interface ForOtpInputContext {\n  /** The configured number of slots (the `length` input). */\n  readonly length: Signal<number>;\n  /**\n   * The character displayed in slot `index` — masked when `mask` is on — or\n   * `null` when the slot is empty.\n   */\n  charAt(index: number): string | null;\n  /**\n   * Whether slot `index` is the active caret position (or inside the current\n   * selection range). At most one slot is active for a collapsed caret.\n   */\n  isActive(index: number): boolean;\n  /**\n   * Whether slot `index` should render a fake caret: it is the active, empty\n   * slot while the input is focused with a collapsed caret.\n   */\n  hasFakeCaret(index: number): boolean;\n}\n\n/** Injection token for the `[forOtpInput]` coordination surface the slots read. */\nexport const FOR_OTP_INPUT_CONTEXT = new InjectionToken<ForOtpInputContext>(\n  'FOR_OTP_INPUT_CONTEXT',\n);\n\n/**\n * Resolve the surrounding `[forOtpInput]` coordination context, or throw a\n * descriptive error. A `[forOtpInputSlot]` is only meaningful inside a\n * `[forOtpInput]`.\n */\nexport function injectOtpInputContext(piece: string): ForOtpInputContext {\n  const ctx = inject(FOR_OTP_INPUT_CONTEXT, { optional: true });\n  if (!ctx) {\n    throw orphanContextError({\n      code: 'FORCDK-OTP-INPUT-001',\n      piece,\n      root: '[forOtpInput]',\n      token: 'FOR_OTP_INPUT_CONTEXT',\n    });\n  }\n  return ctx;\n}\n","/**\n * Allowed-character class for an OTP / PIN input. Drives both the per-character\n * filter (rejected characters are dropped and fire `(reject)`) and the\n * derived `inputmode`. Override entirely with a custom `allowedPattern` RegExp.\n */\nexport type OtpInputType = 'numeric' | 'alphanumeric' | 'alphabetic';\n\n/**\n * Matches a value made up only of digits. Bind to `[allowedPattern]` for a\n * digit-only code; equivalent to the default `type=\"numeric\"`.\n */\nexport const OTP_REGEXP_ONLY_DIGITS = /^[0-9]+$/;\n\n/** Matches a value made up only of latin letters (`type=\"alphabetic\"`). */\nexport const OTP_REGEXP_ONLY_CHARS = /^[a-zA-Z]+$/;\n\n/** Matches a value made up only of digits and latin letters (`type=\"alphanumeric\"`). */\nexport const OTP_REGEXP_ONLY_DIGITS_AND_CHARS = /^[a-zA-Z0-9]+$/;\n\nconst SINGLE_CHAR_BY_TYPE: Record<OtpInputType, RegExp> = {\n  numeric: /[0-9]/,\n  alphanumeric: /[a-zA-Z0-9]/,\n  alphabetic: /[a-zA-Z]/,\n};\n\n/**\n * The single-character matcher for a built-in `type`. Each returned RegExp is\n * non-global, so repeated `.test()` calls are stateless.\n */\nexport function allowedCharForType(type: OtpInputType): RegExp {\n  return SINGLE_CHAR_BY_TYPE[type];\n}\n\n/**\n * The `inputmode` a built-in `type` maps to: `numeric` keeps the digits-only\n * keypad, the letter classes fall back to the full text keyboard.\n */\nexport function inputModeForType(type: OtpInputType): 'numeric' | 'text' {\n  return type === 'numeric' ? 'numeric' : 'text';\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n  afterNextRender,\n  booleanAttribute,\n  computed,\n  DestroyRef,\n  Directive,\n  DOCUMENT,\n  effect,\n  ElementRef,\n  inject,\n  input,\n  model,\n  output,\n  PLATFORM_ID,\n  signal,\n} from '@angular/core';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport {\n  FOR_FIELD_CONTEXT,\n  FormUiControlBase,\n  mirrorUnfocusedValue,\n  hostAriaLabel,\n} from 'forty-cdk/core';\nimport { FOR_OTP_INPUT_CONTEXT, type ForOtpInputContext } from './otp-input-context';\nimport { allowedCharForType, inputModeForType, type OtpInputType } from './otp-patterns';\n\nconst MASK_CHAR = '•';\n\nfunction setAttr(el: HTMLElement, name: string, value: string | null): void {\n  if (value === null) {\n    el.removeAttribute(name);\n  } else if (el.getAttribute(name) !== value) {\n    el.setAttribute(name, value);\n  }\n}\n\n/**\n * Headless OTP / PIN input following the **single-input** model: one real\n * `<input maxlength=N>` carries the whole code as a `string`, and the\n * `[forOtpInputSlot]` pieces are a pure\n * styling surface painted over it. There is **no** WAI-ARIA APG pattern for\n * OTP; this gives the cleanest screen-reader experience (one ordinary text\n * field, not \"edit text, 1 of 6\" announced N times), native mobile SMS autofill\n * via `autocomplete=\"one-time-code\"`, and native paste / caret / selection.\n *\n * Apply `[forOtpInput]` on a wrapper element — it becomes a `role=\"group\"` and\n * the directive injects the single visually-hidden-but-interactive `<input>`\n * inside it (the consumer styles that input to overlay the slots). It\n * implements Angular's `FormValueControl<string>` from `@angular/forms/signals`,\n * so it auto-wires with `[formField]` and auto-associates inside a `[forField]`\n * (label / description / error) with no extra markup.\n *\n * Because the focusable, submittable control is the injected `<input>` and not\n * the `role=\"group\"` host, `ForOtpInput` redirects `FormUiControlBase`'s\n * host-targeted helpers onto that input: it overrides `fieldLabelledElement()`\n * (so the field association lands on the input) and `fieldStateReflectionTarget()`\n * (so the form-state `data-*` reflect there), and reflects the OTP-specific input\n * attributes (`maxLength` / `inputmode` / `autocomplete` / `pattern` / `name`)\n * and ARIA on the input itself.\n *\n * The host gets `data-complete` (while every slot is filled) plus `data-disabled`\n * and `data-readonly` for CSS hooks, so the whole slot composition is stylable\n * from the wrapper; the real input carries `data-disabled` / `data-readonly`\n * plus `data-touched` / `data-dirty` / `data-pending` / `data-invalid`.\n *\n * > **`allowedPattern`, not `pattern`.** The custom allowed-character RegExp is\n * > named `allowedPattern` because `FormUiControl.pattern` is reserved by Signal\n * > Forms for an array of validation patterns the `[formField]` directive binds\n * > in — reusing the name would both break the `implements` contract and let the\n * > field overwrite the character filter.\n *\n * @example\n * ```html\n * <div forOtpInput [(value)]=\"code\" [length]=\"6\" type=\"numeric\" ariaLabel=\"Verification code\" #otp=\"forOtpInput\">\n *   @for (i of otp.slots(); track i) {\n *     <div forOtpInputSlot [index]=\"i\" #s=\"forOtpInputSlot\">\n *       {{ s.char() }}\n *       @if (s.hasFakeCaret()) { <span class=\"caret\"></span> }\n *     </div>\n *   }\n * </div>\n * ```\n */\n@Directive({\n  selector: '[forOtpInput]',\n  exportAs: 'forOtpInput',\n  host: {\n    role: 'group',\n    '[attr.aria-label]': 'resolvedAriaLabel()',\n    '[attr.data-complete]': 'filled() ? \"\" : null',\n    '[attr.data-disabled]': 'effectiveDisabled() ? \"\" : null',\n    '[attr.data-readonly]': 'readonly() ? \"\" : null',\n  },\n  providers: [{ provide: FOR_OTP_INPUT_CONTEXT, useExisting: ForOtpInput }],\n})\nexport class ForOtpInput\n  extends FormUiControlBase\n  implements FormValueControl<string>, ForOtpInputContext\n{\n  readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n  readonly #document = inject(DOCUMENT);\n  readonly #destroyRef = inject(DestroyRef);\n  readonly #isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n  readonly #field = inject(FOR_FIELD_CONTEXT, { optional: true });\n\n  /** The injected real `<input>`, once created in the browser. */\n  readonly #inputEl = signal<HTMLInputElement | null>(null);\n  readonly #focused = signal(false);\n  readonly #selectionStart = signal(0);\n  readonly #selectionEnd = signal(0);\n\n  #composing = false;\n\n  /**\n   * The current code. Required by `FormValueControl<string>`. Two-way bindable;\n   * its rendered length is clamped to `length()`.\n   */\n  readonly value = model<string>('');\n\n  /** Number of characters / slots. */\n  readonly length = input.required<number>();\n\n  /** Allowed character class. Ignored when `allowedPattern` is set. Defaults to `'numeric'`. */\n  readonly type = input<OtpInputType>('numeric');\n\n  /**\n   * Custom allowed-character RegExp, tested per typed/pasted character;\n   * overrides `type`. Named `allowedPattern` (not `pattern`) to avoid the\n   * reserved `FormUiControl.pattern` member — see the class JSDoc.\n   */\n  readonly allowedPattern = input<RegExp | null>(null);\n\n  /** Obscure entered characters in the slots (PIN entry); `value()` stays raw. */\n  readonly mask = input(false, { transform: booleanAttribute });\n\n  /** Toggle `autocomplete=\"one-time-code\"` for mobile SMS autofill. */\n  readonly oneTimeCode = input(true, { transform: booleanAttribute });\n\n  /** Rewrite pasted text before it fills the slots (e.g. strip separators). */\n  readonly pasteTransformer = input<((pasted: string) => string) | null>(null);\n\n  /**\n   * Accessible name for the group, also reflected as `aria-label` on the\n   * injected real `<input>` whenever no field-provided `aria-labelledby`\n   * applies (standalone usage, or a `[forField]` without a label). Emits\n   * `aria-label` only when truthy; a field label always wins on the input.\n   */\n  readonly ariaLabel = input<string | null>(null);\n\n  protected readonly resolvedAriaLabel = hostAriaLabel(() => this.ariaLabel() || null);\n\n  /** Fires when every slot is filled (by typing or paste). */\n  readonly complete = output<string>();\n\n  /** Fires when an entered / pasted character is rejected by `type` / `allowedPattern`. */\n  readonly reject = output<{ value: string }>();\n\n  /** The value clamped to `length()` — the source of truth for the slots. */\n  readonly #clampedValue = computed(() => this.value().slice(0, this.length()));\n\n  /** `true` when every slot is filled — reflected as `data-complete` on the host. */\n  readonly filled = computed(() => this.#clampedValue().length === this.length());\n\n  /** The slot indices, for the consumer's `@for`. */\n  readonly slots = computed<readonly number[]>(() =>\n    Array.from({ length: this.length() }, (_, i) => i),\n  );\n\n  readonly #inputMode = computed(() => inputModeForType(this.type()));\n\n  /** Predicate deciding whether a single character is allowed. */\n  readonly #allowed = computed<(ch: string) => boolean>(() => {\n    const pattern = this.allowedPattern();\n    if (pattern) {\n      return (ch: string) => {\n        pattern.lastIndex = 0;\n        return pattern.test(ch);\n      };\n    }\n    const re = allowedCharForType(this.type());\n    return (ch: string) => re.test(ch);\n  });\n\n  constructor() {\n    super();\n\n    // Reflect the OTP-specific input attributes and ARIA onto the injected real\n    // input — not the role=\"group\" host. The four form-state data-* booleans and\n    // the field association are reflected onto the same input by the base, via\n    // the fieldStateReflectionTarget() / fieldLabelledElement() overrides below.\n    // Runs once the input exists.\n    effect(() => {\n      const el = this.#inputEl();\n      if (!el) {\n        return;\n      }\n      el.maxLength = this.length();\n      setAttr(el, 'inputmode', this.#inputMode());\n      setAttr(el, 'autocomplete', this.oneTimeCode() ? 'one-time-code' : 'off');\n      // Legacy iOS numeric-keypad hint; modern browsers honour inputmode.\n      setAttr(el, 'pattern', this.#inputMode() === 'numeric' ? '[0-9]*' : null);\n      setAttr(el, 'name', this.name() || null);\n      el.toggleAttribute('disabled', this.effectiveDisabled());\n      el.toggleAttribute('readonly', this.readonly());\n      setAttr(el, 'aria-label', this.#field?.labelledBy() ? null : this.ariaLabel() || null);\n      setAttr(el, 'aria-readonly', this.readonly() ? 'true' : null);\n      setAttr(el, 'aria-required', this.required() ? 'true' : null);\n      setAttr(el, 'aria-invalid', this.invalid() ? 'true' : null);\n      setAttr(el, 'aria-busy', this.pending() ? 'true' : null);\n      el.toggleAttribute('data-disabled', this.effectiveDisabled());\n      el.toggleAttribute('data-readonly', this.readonly());\n    });\n\n    // Mirror external value writes (consumer `[(value)]` / `[formField]`) back\n    // to the input while it isn't focused. Live typing flows in through the\n    // `input` listener.\n    mirrorUnfocusedValue(this.#inputEl, this.#clampedValue);\n\n    // Create the single real input after hydration (browser only), so the\n    // server-rendered markup stays the group + slots and there is no hydration\n    // mismatch from a node the server never emitted.\n    afterNextRender(() => {\n      const el = this.#document.createElement('input');\n      el.type = 'text';\n      el.autocapitalize = 'none';\n      el.setAttribute('autocorrect', 'off');\n      el.spellcheck = false;\n      el.value = this.#clampedValue();\n      this.#host.nativeElement.appendChild(el);\n\n      const controller = new AbortController();\n      const options = { signal: controller.signal };\n\n      el.addEventListener('input', () => this.#onInput(), options);\n      el.addEventListener('compositionstart', () => this.#onCompositionStart(), options);\n      el.addEventListener('compositionend', () => this.#onCompositionEnd(), options);\n      el.addEventListener('paste', (event) => this.#onPaste(event), options);\n      el.addEventListener(\n        'focus',\n        () => {\n          this.#focused.set(true);\n          this.#syncSelection();\n        },\n        options,\n      );\n      el.addEventListener(\n        'blur',\n        () => {\n          this.#focused.set(false);\n          if (el.value !== this.#clampedValue()) {\n            el.value = this.#clampedValue();\n          }\n          this.markTouched();\n        },\n        options,\n      );\n      el.addEventListener('click', () => this.#syncSelection(), options);\n      el.addEventListener('keyup', () => this.#syncSelection(), options);\n      el.addEventListener('select', () => this.#syncSelection(), options);\n\n      this.#inputEl.set(el);\n\n      this.#destroyRef.onDestroy(() => {\n        controller.abort();\n        el.remove();\n      });\n    });\n  }\n\n  /**\n   * The injected real `<input>` is the focusable, submittable control, so the\n   * surrounding `[forField]` associates with it rather than the `role=\"group\"`\n   * host. Returns `null` until the input is created (after hydration), at which\n   * point the field-wiring effect re-targets it. See the Select precedent.\n   */\n  protected override fieldLabelledElement(): HTMLElement | null {\n    return this.#inputEl();\n  }\n\n  /**\n   * The four form-state `data-*` booleans reflect onto the injected real\n   * `<input>`, alongside the OTP-specific `data-disabled` / `data-readonly`,\n   * rather than the `role=\"group\"` host. `null` until the input exists.\n   */\n  protected override fieldStateReflectionTarget(): HTMLElement | null {\n    return this.#inputEl();\n  }\n\n  /** Move focus to the real input. Implements `FormUiControl.focus`. */\n  override focus(options?: FocusOptions): void {\n    this.#inputEl()?.focus(options);\n  }\n\n  /** The character in slot `index` (masked when `mask`), or `null` when empty. */\n  charAt(index: number): string | null {\n    const v = this.#clampedValue();\n    if (index < 0 || index >= v.length) {\n      return null;\n    }\n    return this.mask() ? MASK_CHAR : v[index]!;\n  }\n\n  /** Whether slot `index` is the active caret position (or inside the selection). */\n  isActive(index: number): boolean {\n    if (!this.#focused()) {\n      return false;\n    }\n    const len = this.length();\n    if (index < 0 || index >= len) {\n      return false;\n    }\n    const start = this.#selectionStart();\n    const end = this.#selectionEnd();\n    if (start === end) {\n      return index === Math.min(start, len - 1);\n    }\n    return index >= start && index < end;\n  }\n\n  /** Whether slot `index` should render a fake caret. */\n  hasFakeCaret(index: number): boolean {\n    return (\n      this.#focused() &&\n      this.#selectionStart() === this.#selectionEnd() &&\n      this.isActive(index) &&\n      this.charAt(index) === null\n    );\n  }\n\n  #onCompositionStart(): void {\n    this.#composing = true;\n  }\n\n  #onCompositionEnd(): void {\n    this.#composing = false;\n    this.#normalize();\n  }\n\n  #onInput(): void {\n    if (this.#composing) {\n      return;\n    }\n    this.#normalize();\n  }\n\n  #normalize(): void {\n    const el = this.#inputEl();\n    if (!el) {\n      return;\n    }\n    if (this.effectiveDisabled() || this.readonly()) {\n      el.value = this.#clampedValue();\n      return;\n    }\n    const raw = el.value;\n    const { filtered, rejected } = this.#filter(raw);\n    const clamped = filtered.slice(0, this.length());\n    if (raw !== clamped) {\n      const max = clamped.length;\n      const start = this.#caretAfterFilter(raw, el.selectionStart ?? raw.length);\n      const end = this.#caretAfterFilter(raw, el.selectionEnd ?? raw.length);\n      el.value = clamped;\n      el.setSelectionRange(Math.min(start, max), Math.min(end, max));\n    }\n    this.#commit(clamped);\n    this.#syncSelection();\n    if (rejected) {\n      this.reject.emit({ value: raw });\n    }\n  }\n\n  #onPaste(event: ClipboardEvent): void {\n    const el = this.#inputEl();\n    if (!el || this.effectiveDisabled() || this.readonly()) {\n      return;\n    }\n    event.preventDefault();\n    const text = event.clipboardData?.getData('text') ?? '';\n    const transformer = this.pasteTransformer();\n    const transformed = transformer ? transformer(text) : text;\n    const { filtered, rejected } = this.#filter(transformed);\n    const clamped = filtered.slice(0, this.length());\n    el.value = clamped;\n    el.setSelectionRange(clamped.length, clamped.length);\n    this.#commit(clamped);\n    this.#syncSelection();\n    if (rejected) {\n      this.reject.emit({ value: text });\n    }\n  }\n\n  #commit(next: string): void {\n    const wasComplete = this.filled();\n    const prev = this.value();\n    this.value.set(next);\n    if (next.length === this.length() && (!wasComplete || next !== prev)) {\n      this.complete.emit(next);\n    }\n  }\n\n  #filter(raw: string): { filtered: string; rejected: boolean } {\n    const test = this.#allowed();\n    let filtered = '';\n    let rejected = false;\n    for (const ch of raw) {\n      if (test(ch)) {\n        filtered += ch;\n      } else {\n        rejected = true;\n      }\n    }\n    return { filtered, rejected };\n  }\n\n  #caretAfterFilter(raw: string, index: number): number {\n    const test = this.#allowed();\n    let consumed = 0;\n    let kept = 0;\n    for (const ch of raw) {\n      if (consumed >= index) {\n        break;\n      }\n      consumed += ch.length;\n      if (test(ch)) {\n        kept += ch.length;\n      }\n    }\n    return kept;\n  }\n\n  #syncSelection(): void {\n    const el = this.#inputEl();\n    if (!el) {\n      return;\n    }\n    const len = this.#clampedValue().length;\n    const start = Math.min(el.selectionStart ?? 0, len);\n    const end = Math.min(el.selectionEnd ?? start, len);\n    this.#selectionStart.set(start);\n    this.#selectionEnd.set(end);\n  }\n}\n","import { computed, Directive, input } from '@angular/core';\n\nimport { injectOtpInputContext } from './otp-input-context';\n\n/**\n * One slot of a `[forOtpInput]` — a pure **styling surface** painted over the\n * single real input. Apply one per index\n * inside the `[forOtpInput]` wrapper, passing the 0-based `index`. It renders\n * nothing structural: it exposes the slot's character and active state, and\n * reflects boolean `data-active` / `data-empty` for CSS.\n *\n * The slot has no click handler by design — the real input overlays the slots\n * (the consumer styles it to fill the group), so pointer events land on the\n * input and native caret positioning drives which slot is active.\n *\n * @example\n * ```html\n * <div forOtpInputSlot [index]=\"i\" #s=\"forOtpInputSlot\">\n *   {{ s.char() }}\n *   @if (s.hasFakeCaret()) { <span class=\"caret\"></span> }\n * </div>\n * ```\n */\n@Directive({\n  selector: '[forOtpInputSlot]',\n  exportAs: 'forOtpInputSlot',\n  host: {\n    '[attr.data-active]': 'active() ? \"\" : null',\n    '[attr.data-empty]': 'char() === null ? \"\" : null',\n  },\n})\nexport class ForOtpInputSlot {\n  protected readonly ctx = injectOtpInputContext('ForOtpInputSlot');\n\n  /** This slot's position (0-based). */\n  readonly index = input.required<number>();\n\n  /** The character in this slot, or `null` when empty (masked when `mask` is on). */\n  readonly char = computed<string | null>(() => this.ctx.charAt(this.index()));\n\n  /** Whether this slot is the active caret position. */\n  readonly active = computed<boolean>(() => this.ctx.isActive(this.index()));\n\n  /** Whether to render a fake caret in this slot. */\n  readonly hasFakeCaret = computed<boolean>(() => this.ctx.hasFakeCaret(this.index()));\n}\n","/**\n * Exact public names of every `ForOtpInput` input, its models included. Spread it into the\n * `inputs` array of a `hostDirectives` entry so a wrapper component re-exposes the\n * primitive's full surface — the Signal Forms members `[formField]` binds among them —\n * without hand-maintaining the list. Always spread into an inline object literal as shown\n * below: the literal is what keeps the entry statically analyzable for consumers compiling\n * against the published package. An anti-drift spec fails when this list no longer matches\n * the directive's actual API. See `docs/wrapping-form-primitives.md` for both supported\n * wrapping patterns.\n *\n * @example\n * ```ts\n * @Component({\n *   selector: 'div[myOtpInput]',\n *   template: '',\n *   hostDirectives: [\n *     {\n *       directive: ForOtpInput,\n *       inputs: [...FOR_OTP_INPUT_HOST_DIRECTIVE_INPUTS],\n *       outputs: [...FOR_OTP_INPUT_HOST_DIRECTIVE_OUTPUTS],\n *     },\n *   ],\n * })\n * export class MyOtpInput {}\n * ```\n */\nexport const FOR_OTP_INPUT_HOST_DIRECTIVE_INPUTS = [\n  'value',\n  'allowedPattern',\n  'ariaLabel',\n  'dirty',\n  'disabled',\n  'errors',\n  'invalid',\n  'length',\n  'mask',\n  'name',\n  'oneTimeCode',\n  'pasteTransformer',\n  'pending',\n  'readonly',\n  'required',\n  'type',\n  'touched',\n] as const;\n\n/**\n * Exact public names of every `ForOtpInput` output, the Signal Forms `touch` output\n * included. Spread it into the `outputs` array of the same `hostDirectives` entry as\n * {@link FOR_OTP_INPUT_HOST_DIRECTIVE_INPUTS}.\n */\nexport const FOR_OTP_INPUT_HOST_DIRECTIVE_OUTPUTS = [\n  'valueChange',\n  'touchedChange',\n  'touch',\n  'complete',\n  'reject',\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AA8BA;MACa,qBAAqB,GAAG,IAAI,cA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