{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/000newport/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/000newport/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _slicedToArray from \"C:/Users/user/Desktop/000newport/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar _excluded = [\"__scopeCheckbox\", \"name\", \"checked\", \"defaultChecked\", \"required\", \"disabled\", \"value\", \"onCheckedChange\"],\n  _excluded2 = [\"__scopeCheckbox\", \"forceMount\"],\n  _excluded3 = [\"control\", \"checked\", \"bubbles\"];\nimport $1bpvS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { forwardRef as $1bpvS$forwardRef, useState as $1bpvS$useState, useRef as $1bpvS$useRef, useEffect as $1bpvS$useEffect, createElement as $1bpvS$createElement } from \"react\";\nimport { useComposedRefs as $1bpvS$useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as $1bpvS$createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers as $1bpvS$composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState as $1bpvS$useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious as $1bpvS$usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize as $1bpvS$useSize } from \"@radix-ui/react-use-size\";\nimport { Presence as $1bpvS$Presence } from \"@radix-ui/react-presence\";\nimport { Primitive as $1bpvS$Primitive } from \"@radix-ui/react-primitive\";\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/\nvar $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';\nvar _$1bpvS$createContext = $1bpvS$createContextScope($e698a72e93240346$var$CHECKBOX_NAME),\n  _$1bpvS$createContext2 = _slicedToArray(_$1bpvS$createContext, 2),\n  $e698a72e93240346$var$createCheckboxContext = _$1bpvS$createContext2[0],\n  $e698a72e93240346$export$b566c4ff5488ea01 = _$1bpvS$createContext2[1];\nvar _$e698a72e93240346$va = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME),\n  _$e698a72e93240346$va2 = _slicedToArray(_$e698a72e93240346$va, 2),\n  $e698a72e93240346$var$CheckboxProvider = _$e698a72e93240346$va2[0],\n  $e698a72e93240346$var$useCheckboxContext = _$e698a72e93240346$va2[1];\nvar $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/$1bpvS$forwardRef(function (props, forwardedRef) {\n  var __scopeCheckbox = props.__scopeCheckbox,\n    name = props.name,\n    checkedProp = props.checked,\n    defaultChecked = props.defaultChecked,\n    required = props.required,\n    disabled = props.disabled,\n    _props$value = props.value,\n    value = _props$value === void 0 ? 'on' : _props$value,\n    onCheckedChange = props.onCheckedChange,\n    checkboxProps = _objectWithoutProperties(props, _excluded);\n  var _$1bpvS$useState = $1bpvS$useState(null),\n    _$1bpvS$useState2 = _slicedToArray(_$1bpvS$useState, 2),\n    button = _$1bpvS$useState2[0],\n    setButton = _$1bpvS$useState2[1];\n  var composedRefs = $1bpvS$useComposedRefs(forwardedRef, function (node) {\n    return setButton(node);\n  });\n  var hasConsumerStoppedPropagationRef = $1bpvS$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n  var isFormControl = button ? Boolean(button.closest('form')) : true;\n  var _$1bpvS$useControllab = $1bpvS$useControllableState({\n      prop: checkedProp,\n      defaultProp: defaultChecked,\n      onChange: onCheckedChange\n    }),\n    _$1bpvS$useControllab2 = _slicedToArray(_$1bpvS$useControllab, 2),\n    _$1bpvS$useControllab3 = _$1bpvS$useControllab2[0],\n    checked = _$1bpvS$useControllab3 === void 0 ? false : _$1bpvS$useControllab3,\n    setChecked = _$1bpvS$useControllab2[1];\n  var initialCheckedStateRef = $1bpvS$useRef(checked);\n  $1bpvS$useEffect(function () {\n    var form = button === null || button === void 0 ? void 0 : button.form;\n    if (form) {\n      var reset = function reset() {\n        return setChecked(initialCheckedStateRef.current);\n      };\n      form.addEventListener('reset', reset);\n      return function () {\n        return form.removeEventListener('reset', reset);\n      };\n    }\n  }, [button, setChecked]);\n  return /*#__PURE__*/$1bpvS$createElement($e698a72e93240346$var$CheckboxProvider, {\n    scope: __scopeCheckbox,\n    state: checked,\n    disabled: disabled\n  }, /*#__PURE__*/$1bpvS$createElement($1bpvS$Primitive.button, $1bpvS$babelruntimehelpersesmextends({\n    type: \"button\",\n    role: \"checkbox\",\n    \"aria-checked\": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,\n    \"aria-required\": required,\n    \"data-state\": $e698a72e93240346$var$getState(checked),\n    \"data-disabled\": disabled ? '' : undefined,\n    disabled: disabled,\n    value: value\n  }, checkboxProps, {\n    ref: composedRefs,\n    onKeyDown: $1bpvS$composeEventHandlers(props.onKeyDown, function (event) {\n      // According to WAI ARIA, Checkboxes don't activate on enter keypress\n      if (event.key === 'Enter') event.preventDefault();\n    }),\n    onClick: $1bpvS$composeEventHandlers(props.onClick, function (event) {\n      setChecked(function (prevChecked) {\n        return $e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked;\n      });\n      if (isFormControl) {\n        hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate\n        // one click event (from the input). We propagate changes from an input so that native\n        // form validation works and form events reflect checkbox updates.\n        if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n      }\n    })\n  })), isFormControl && /*#__PURE__*/$1bpvS$createElement($e698a72e93240346$var$BubbleInput, {\n    control: button,\n    bubbles: !hasConsumerStoppedPropagationRef.current,\n    name: name,\n    value: value,\n    checked: checked,\n    required: required,\n    disabled: disabled // We transform because the input is absolutely positioned but we have\n    ,\n\n    style: {\n      transform: 'translateX(-100%)'\n    }\n  }));\n});\n/*#__PURE__*/\nObject.assign($e698a72e93240346$export$48513f6b9f8ce62d, {\n  displayName: $e698a72e93240346$var$CHECKBOX_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/\nvar $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';\nvar $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/$1bpvS$forwardRef(function (props, forwardedRef) {\n  var __scopeCheckbox = props.__scopeCheckbox,\n    forceMount = props.forceMount,\n    indicatorProps = _objectWithoutProperties(props, _excluded2);\n  var context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);\n  return /*#__PURE__*/$1bpvS$createElement($1bpvS$Presence, {\n    present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true\n  }, /*#__PURE__*/$1bpvS$createElement($1bpvS$Primitive.span, $1bpvS$babelruntimehelpersesmextends({\n    \"data-state\": $e698a72e93240346$var$getState(context.state),\n    \"data-disabled\": context.disabled ? '' : undefined\n  }, indicatorProps, {\n    ref: forwardedRef,\n    style: _objectSpread({\n      pointerEvents: 'none'\n    }, props.style)\n  })));\n});\n/*#__PURE__*/\nObject.assign($e698a72e93240346$export$59aad738f51d1c05, {\n  displayName: $e698a72e93240346$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */\nvar $e698a72e93240346$var$BubbleInput = function $e698a72e93240346$var$BubbleInput(props) {\n  var control = props.control,\n    checked = props.checked,\n    _props$bubbles = props.bubbles,\n    bubbles = _props$bubbles === void 0 ? true : _props$bubbles,\n    inputProps = _objectWithoutProperties(props, _excluded3);\n  var ref = $1bpvS$useRef(null);\n  var prevChecked = $1bpvS$usePrevious(checked);\n  var controlSize = $1bpvS$useSize(control); // Bubble checked change to parents (e.g form change event)\n  $1bpvS$useEffect(function () {\n    var input = ref.current;\n    var inputProto = window.HTMLInputElement.prototype;\n    var descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n    var setChecked = descriptor.set;\n    if (prevChecked !== checked && setChecked) {\n      var event = new Event('click', {\n        bubbles: bubbles\n      });\n      input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);\n      setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n  return /*#__PURE__*/$1bpvS$createElement(\"input\", $1bpvS$babelruntimehelpersesmextends({\n    type: \"checkbox\",\n    \"aria-hidden\": true,\n    defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked\n  }, inputProps, {\n    tabIndex: -1,\n    ref: ref,\n    style: _objectSpread(_objectSpread(_objectSpread({}, props.style), controlSize), {}, {\n      position: 'absolute',\n      pointerEvents: 'none',\n      opacity: 0,\n      margin: 0\n    })\n  }));\n};\nfunction $e698a72e93240346$var$isIndeterminate(checked) {\n  return checked === 'indeterminate';\n}\nfunction $e698a72e93240346$var$getState(checked) {\n  return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nvar $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;\nvar $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;\nexport { $e698a72e93240346$export$b566c4ff5488ea01 as createCheckboxScope, $e698a72e93240346$export$48513f6b9f8ce62d as Checkbox, $e698a72e93240346$export$59aad738f51d1c05 as CheckboxIndicator, $e698a72e93240346$export$be92b6f5f03c0fe9 as Root, $e698a72e93240346$export$adb584737d712b70 as Indicator };","map":{"version":3,"names":["$e698a72e93240346$var$CHECKBOX_NAME","_$1bpvS$createContext","$1bpvS$createContextScope","_$1bpvS$createContext2","_slicedToArray","$e698a72e93240346$var$createCheckboxContext","$e698a72e93240346$export$b566c4ff5488ea01","_$e698a72e93240346$va","_$e698a72e93240346$va2","$e698a72e93240346$var$CheckboxProvider","$e698a72e93240346$var$useCheckboxContext","$e698a72e93240346$export$48513f6b9f8ce62d","$1bpvS$forwardRef","props","forwardedRef","__scopeCheckbox","name","checkedProp","checked","defaultChecked","required","disabled","value","_props$value","onCheckedChange","checkboxProps","_objectWithoutProperties","_excluded","_$1bpvS$useState","$1bpvS$useState","_$1bpvS$useState2","button","setButton","composedRefs","$1bpvS$useComposedRefs","node","hasConsumerStoppedPropagationRef","$1bpvS$useRef","isFormControl","Boolean","closest","_$1bpvS$useControllab","$1bpvS$useControllableState","prop","defaultProp","onChange","_$1bpvS$useControllab2","_$1bpvS$useControllab3","setChecked","initialCheckedStateRef","$1bpvS$useEffect","form","reset","current","addEventListener","removeEventListener","$1bpvS$createElement","scope","state","$1bpvS$Primitive","$1bpvS$babelruntimehelpersesmextends","type","role","$e698a72e93240346$var$isIndeterminate","$e698a72e93240346$var$getState","undefined","ref","onKeyDown","$1bpvS$composeEventHandlers","event","key","preventDefault","onClick","prevChecked","isPropagationStopped","stopPropagation","$e698a72e93240346$var$BubbleInput","control","bubbles","style","transform","Object","assign","displayName","$e698a72e93240346$var$INDICATOR_NAME","$e698a72e93240346$export$59aad738f51d1c05","forceMount","indicatorProps","_excluded2","context","$1bpvS$Presence","present","span","_objectSpread","pointerEvents","BubbleInput","_props$bubbles","inputProps","_excluded3","$1bpvS$usePrevious","controlSize","$1bpvS$useSize","input","inputProto","window","HTMLInputElement","prototype","descriptor","getOwnPropertyDescriptor","set","Event","indeterminate","call","dispatchEvent","tabIndex","position","opacity","margin","isIndeterminate","getState","$e698a72e93240346$export$be92b6f5f03c0fe9","$e698a72e93240346$export$adb584737d712b70"],"sources":["C:\\Users\\user\\Desktop\\000newport\\node_modules\\@radix-ui\\react-checkbox\\dist\\packages\\react\\checkbox\\src\\index.ts","C:\\Users\\user\\Desktop\\000newport\\node_modules\\@radix-ui\\react-checkbox\\dist\\packages\\react\\checkbox\\src\\Checkbox.tsx"],"sourcesContent":["export {\n  createCheckboxScope,\n  //\n  Checkbox,\n  CheckboxIndicator,\n  //\n  Root,\n  Indicator,\n} from './Checkbox';\nexport type { CheckboxProps, CheckboxIndicatorProps } from './Checkbox';\n","import * as React from 'react';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { usePrevious } from '@radix-ui/react-use-previous';\nimport { useSize } from '@radix-ui/react-use-size';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/\n\nconst CHECKBOX_NAME = 'Checkbox';\n\ntype ScopedProps<P> = P & { __scopeCheckbox?: Scope };\nconst [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\n\ntype CheckedState = boolean | 'indeterminate';\n\ntype CheckboxContextValue = {\n  state: CheckedState;\n  disabled?: boolean;\n};\n\nconst [CheckboxProvider, useCheckboxContext] =\n  createCheckboxContext<CheckboxContextValue>(CHECKBOX_NAME);\n\ntype CheckboxElement = React.ElementRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {\n  checked?: CheckedState;\n  defaultChecked?: CheckedState;\n  required?: boolean;\n  onCheckedChange?(checked: CheckedState): void;\n}\n\nconst Checkbox = React.forwardRef<CheckboxElement, CheckboxProps>(\n  (props: ScopedProps<CheckboxProps>, forwardedRef) => {\n    const {\n      __scopeCheckbox,\n      name,\n      checked: checkedProp,\n      defaultChecked,\n      required,\n      disabled,\n      value = 'on',\n      onCheckedChange,\n      ...checkboxProps\n    } = props;\n    const [button, setButton] = React.useState<HTMLButtonElement | null>(null);\n    const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n    const hasConsumerStoppedPropagationRef = React.useRef(false);\n    // We set this to true by default so that events bubble to forms without JS (SSR)\n    const isFormControl = button ? Boolean(button.closest('form')) : true;\n    const [checked = false, setChecked] = useControllableState({\n      prop: checkedProp,\n      defaultProp: defaultChecked,\n      onChange: onCheckedChange,\n    });\n    const initialCheckedStateRef = React.useRef(checked);\n    React.useEffect(() => {\n      const form = button?.form;\n      if (form) {\n        const reset = () => setChecked(initialCheckedStateRef.current);\n        form.addEventListener('reset', reset);\n        return () => form.removeEventListener('reset', reset);\n      }\n    }, [button, setChecked]);\n\n    return (\n      <CheckboxProvider scope={__scopeCheckbox} state={checked} disabled={disabled}>\n        <Primitive.button\n          type=\"button\"\n          role=\"checkbox\"\n          aria-checked={isIndeterminate(checked) ? 'mixed' : checked}\n          aria-required={required}\n          data-state={getState(checked)}\n          data-disabled={disabled ? '' : undefined}\n          disabled={disabled}\n          value={value}\n          {...checkboxProps}\n          ref={composedRefs}\n          onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {\n            // According to WAI ARIA, Checkboxes don't activate on enter keypress\n            if (event.key === 'Enter') event.preventDefault();\n          })}\n          onClick={composeEventHandlers(props.onClick, (event) => {\n            setChecked((prevChecked) => (isIndeterminate(prevChecked) ? true : !prevChecked));\n            if (isFormControl) {\n              hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n              // if checkbox is in a form, stop propagation from the button so that we only propagate\n              // one click event (from the input). We propagate changes from an input so that native\n              // form validation works and form events reflect checkbox updates.\n              if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n            }\n          })}\n        />\n        {isFormControl && (\n          <BubbleInput\n            control={button}\n            bubbles={!hasConsumerStoppedPropagationRef.current}\n            name={name}\n            value={value}\n            checked={checked}\n            required={required}\n            disabled={disabled}\n            // We transform because the input is absolutely positioned but we have\n            // rendered it **after** the button. This pulls it back to sit on top\n            // of the button.\n            style={{ transform: 'translateX(-100%)' }}\n          />\n        )}\n      </CheckboxProvider>\n    );\n  }\n);\n\nCheckbox.displayName = CHECKBOX_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'CheckboxIndicator';\n\ntype CheckboxIndicatorElement = React.ElementRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface CheckboxIndicatorProps extends PrimitiveSpanProps {\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst CheckboxIndicator = React.forwardRef<CheckboxIndicatorElement, CheckboxIndicatorProps>(\n  (props: ScopedProps<CheckboxIndicatorProps>, forwardedRef) => {\n    const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n    const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n    return (\n      <Presence present={forceMount || isIndeterminate(context.state) || context.state === true}>\n        <Primitive.span\n          data-state={getState(context.state)}\n          data-disabled={context.disabled ? '' : undefined}\n          {...indicatorProps}\n          ref={forwardedRef}\n          style={{ pointerEvents: 'none', ...props.style }}\n        />\n      </Presence>\n    );\n  }\n);\n\nCheckboxIndicator.displayName = INDICATOR_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype InputProps = Radix.ComponentPropsWithoutRef<'input'>;\ninterface BubbleInputProps extends Omit<InputProps, 'checked'> {\n  checked: CheckedState;\n  control: HTMLElement | null;\n  bubbles: boolean;\n}\n\nconst BubbleInput = (props: BubbleInputProps) => {\n  const { control, checked, bubbles = true, ...inputProps } = props;\n  const ref = React.useRef<HTMLInputElement>(null);\n  const prevChecked = usePrevious(checked);\n  const controlSize = useSize(control);\n\n  // Bubble checked change to parents (e.g form change event)\n  React.useEffect(() => {\n    const input = ref.current!;\n    const inputProto = window.HTMLInputElement.prototype;\n    const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked') as PropertyDescriptor;\n    const setChecked = descriptor.set;\n\n    if (prevChecked !== checked && setChecked) {\n      const event = new Event('click', { bubbles });\n      input.indeterminate = isIndeterminate(checked);\n      setChecked.call(input, isIndeterminate(checked) ? false : checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n\n  return (\n    <input\n      type=\"checkbox\"\n      aria-hidden\n      defaultChecked={isIndeterminate(checked) ? false : checked}\n      {...inputProps}\n      tabIndex={-1}\n      ref={ref}\n      style={{\n        ...props.style,\n        ...controlSize,\n        position: 'absolute',\n        pointerEvents: 'none',\n        opacity: 0,\n        margin: 0,\n      }}\n    />\n  );\n};\n\nfunction isIndeterminate(checked?: CheckedState): checked is 'indeterminate' {\n  return checked === 'indeterminate';\n}\n\nfunction getState(checked: CheckedState) {\n  return isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\n\nconst Root = Checkbox;\nconst Indicator = CheckboxIndicator;\n\nexport {\n  createCheckboxScope,\n  //\n  Checkbox,\n  CheckboxIndicator,\n  //\n  Root,\n  Indicator,\n};\nexport type { CheckboxProps, CheckboxIndicatorProps };\n"],"mappings":";;;;;;;;;;;;;;;;;ACaA;;;AAIA,IAAMA,mCAAa,GAAG,UAAtB;AAGA,IAAAC,qBAAA,GAAqDC,yBAAkB,CAACF,mCAAD,CAAvE;EAAAG,sBAAA,GAAAC,cAAA,CAAAH,qBAAA;EAAOI,2CAAD,GAAAF,sBAAA;EAAwBG,yCAAxB,GAAAH,sBAAA;AASN,IAAAI,qBAAA,GACEF,2CAAqB,CAAuBL,mCAAvB,CADvB;EAAAQ,sBAAA,GAAAJ,cAAA,CAAAG,qBAAA;EAAOE,sCAAD,GAAAD,sBAAA;EAAmBE,wCAAnB,GAAAF,sBAAA;AAYN,IAAMG,yCAAQ,gBAAGC,iBAAA,CACf,UAACC,KAAD,EAAoCC,YAApC,EAAqD;EACnD,IACEC,eADI,GAUFF,KAVJ,C;IAEEG,IAFI,GAUFH,KAVJ,C;IAGWI,WAHL,GAUFJ,KAVJ,CAGEK,OAAO;IACPC,cAJI,GAUFN,KAVJ,C;IAKEO,QALI,GAUFP,KAVJ,C;IAMEQ,QAN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