{"ast":null,"code":"\"use strict\";\n\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"visible\", \"inputType\", \"autoFocus\", \"placeholder\", \"cancelButtonText\", \"enterKeyHint\", \"onChangeText\", \"onClose\", \"tintColor\", \"style\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nimport { useNavigation, useTheme } from '@react-navigation/native';\nimport Color from 'color';\nimport * as React from 'react';\nimport Animated from \"react-native-web/dist/exports/Animated\";\nimport Image from \"react-native-web/dist/exports/Image\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport TextInput from \"react-native-web/dist/exports/TextInput\";\nimport View from \"react-native-web/dist/exports/View\";\nimport clearIcon from \"../assets/clear-icon.png\";\nimport closeIcon from \"../assets/close-icon.png\";\nimport searchIcon from \"../assets/search-icon.png\";\nimport { PlatformPressable } from \"../PlatformPressable.js\";\nimport { Text } from \"../Text.js\";\nimport { HeaderButton } from \"./HeaderButton.js\";\nimport { HeaderIcon } from \"./HeaderIcon.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar INPUT_TYPE_TO_MODE = {\n  text: 'text',\n  number: 'numeric',\n  phone: 'tel',\n  email: 'email'\n};\nvar useNativeDriver = Platform.OS !== 'web';\nfunction HeaderSearchBarInternal(_ref, ref) {\n  var visible = _ref.visible,\n    inputType = _ref.inputType,\n    _ref$autoFocus = _ref.autoFocus,\n    autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,\n    _ref$placeholder = _ref.placeholder,\n    placeholder = _ref$placeholder === void 0 ? 'Search' : _ref$placeholder,\n    _ref$cancelButtonText = _ref.cancelButtonText,\n    cancelButtonText = _ref$cancelButtonText === void 0 ? 'Cancel' : _ref$cancelButtonText,\n    _ref$enterKeyHint = _ref.enterKeyHint,\n    enterKeyHint = _ref$enterKeyHint === void 0 ? 'search' : _ref$enterKeyHint,\n    onChangeText = _ref.onChangeText,\n    onClose = _ref.onClose,\n    tintColor = _ref.tintColor,\n    style = _ref.style,\n    rest = _objectWithoutProperties(_ref, _excluded);\n  var navigation = useNavigation();\n  var _useTheme = useTheme(),\n    dark = _useTheme.dark,\n    colors = _useTheme.colors,\n    fonts = _useTheme.fonts;\n  var _React$useState = React.useState(''),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    value = _React$useState2[0],\n    setValue = _React$useState2[1];\n  var _React$useState3 = React.useState(visible),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    rendered = _React$useState4[0],\n    setRendered = _React$useState4[1];\n  var _React$useState5 = React.useState(function () {\n      return new Animated.Value(visible ? 1 : 0);\n    }),\n    _React$useState6 = _slicedToArray(_React$useState5, 1),\n    visibleAnim = _React$useState6[0];\n  var _React$useState7 = React.useState(function () {\n      return new Animated.Value(0);\n    }),\n    _React$useState8 = _slicedToArray(_React$useState7, 1),\n    clearVisibleAnim = _React$useState8[0];\n  var visibleValueRef = React.useRef(visible);\n  var clearVisibleValueRef = React.useRef(false);\n  var inputRef = React.useRef(null);\n  React.useEffect(function () {\n    if (visible === visibleValueRef.current) {\n      return;\n    }\n    Animated.timing(visibleAnim, {\n      toValue: visible ? 1 : 0,\n      duration: 100,\n      useNativeDriver: useNativeDriver\n    }).start(function (_ref2) {\n      var finished = _ref2.finished;\n      if (finished) {\n        setRendered(visible);\n        visibleValueRef.current = visible;\n      }\n    });\n    return function () {\n      visibleAnim.stopAnimation();\n    };\n  }, [visible, visibleAnim]);\n  var hasText = value !== '';\n  React.useEffect(function () {\n    if (clearVisibleValueRef.current === hasText) {\n      return;\n    }\n    Animated.timing(clearVisibleAnim, {\n      toValue: hasText ? 1 : 0,\n      duration: 100,\n      useNativeDriver: useNativeDriver\n    }).start(function (_ref3) {\n      var finished = _ref3.finished;\n      if (finished) {\n        clearVisibleValueRef.current = hasText;\n      }\n    });\n  }, [clearVisibleAnim, hasText]);\n  var clearText = React.useCallback(function () {\n    var _inputRef$current, _inputRef$current2;\n    (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.clear();\n    (_inputRef$current2 = inputRef.current) == null ? void 0 : _inputRef$current2.focus();\n    setValue('');\n  }, []);\n  var onClear = React.useCallback(function () {\n    clearText();\n    onChangeText == null ? void 0 : onChangeText({\n      nativeEvent: {\n        text: ''\n      }\n    });\n  }, [clearText, onChangeText]);\n  var cancelSearch = React.useCallback(function () {\n    onClear();\n    onClose();\n  }, [onClear, onClose]);\n  React.useEffect(function () {\n    return navigation == null ? void 0 : navigation.addListener('blur', cancelSearch);\n  }, [cancelSearch, navigation]);\n  React.useImperativeHandle(ref, function () {\n    return {\n      focus: function focus() {\n        var _inputRef$current3;\n        (_inputRef$current3 = inputRef.current) == null ? void 0 : _inputRef$current3.focus();\n      },\n      blur: function blur() {\n        var _inputRef$current4;\n        (_inputRef$current4 = inputRef.current) == null ? void 0 : _inputRef$current4.blur();\n      },\n      setText: function setText(text) {\n        var _inputRef$current5;\n        (_inputRef$current5 = inputRef.current) == null ? void 0 : _inputRef$current5.setNativeProps({\n          text: text\n        });\n        setValue(text);\n      },\n      clearText: clearText,\n      cancelSearch: cancelSearch\n    };\n  }, [cancelSearch, clearText]);\n  if (!visible && !rendered) {\n    return null;\n  }\n  var textColor = tintColor != null ? tintColor : colors.text;\n  return _jsxs(Animated.View, {\n    pointerEvents: visible ? 'auto' : 'none',\n    \"aria-live\": \"polite\",\n    \"aria-hidden\": !visible,\n    style: [styles.container, {\n      opacity: visibleAnim\n    }, style],\n    children: [_jsxs(View, {\n      style: styles.searchbarContainer,\n      children: [_jsx(HeaderIcon, {\n        source: searchIcon,\n        tintColor: textColor,\n        style: styles.inputSearchIcon\n      }), _jsx(TextInput, _objectSpread(_objectSpread({}, rest), {}, {\n        ref: inputRef,\n        onChange: onChangeText,\n        onChangeText: setValue,\n        autoFocus: autoFocus,\n        inputMode: INPUT_TYPE_TO_MODE[inputType != null ? inputType : 'text'],\n        enterKeyHint: enterKeyHint,\n        placeholder: placeholder,\n        placeholderTextColor: Color(textColor).alpha(0.5).string(),\n        cursorColor: colors.primary,\n        selectionHandleColor: colors.primary,\n        selectionColor: Color(colors.primary).alpha(0.3).string(),\n        style: [fonts.regular, styles.searchbar, {\n          backgroundColor: Platform.select({\n            ios: dark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',\n            default: 'transparent'\n          }),\n          color: textColor,\n          borderBottomColor: Color(textColor).alpha(0.2).string()\n        }]\n      })), Platform.OS === 'ios' ? _jsx(PlatformPressable, {\n        onPress: onClear,\n        style: [{\n          opacity: clearVisibleAnim,\n          transform: [{\n            scale: clearVisibleAnim\n          }]\n        }, styles.clearButton],\n        children: _jsx(Image, {\n          source: clearIcon,\n          resizeMode: \"contain\",\n          tintColor: textColor,\n          style: styles.clearIcon\n        })\n      }) : null]\n    }), Platform.OS !== 'ios' ? _jsx(HeaderButton, {\n      onPress: function onPress() {\n        if (value) {\n          onClear();\n        } else {\n          onClose();\n        }\n      },\n      style: styles.closeButton,\n      children: _jsx(HeaderIcon, {\n        source: closeIcon,\n        tintColor: textColor\n      })\n    }) : null, Platform.OS === 'ios' ? _jsx(PlatformPressable, {\n      onPress: cancelSearch,\n      style: styles.cancelButton,\n      children: _jsx(Text, {\n        style: [fonts.regular, {\n          color: tintColor != null ? tintColor : colors.primary\n        }, styles.cancelText],\n        children: cancelButtonText\n      })\n    }) : null]\n  });\n}\nvar styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    flexDirection: 'row',\n    alignItems: 'stretch'\n  },\n  inputSearchIcon: _objectSpread({\n    position: 'absolute',\n    opacity: 0.5,\n    left: Platform.select({\n      ios: 16,\n      default: 4\n    }),\n    top: Platform.select({\n      ios: -1,\n      default: 17\n    })\n  }, Platform.select({\n    ios: {\n      height: 18,\n      width: 18\n    },\n    default: {}\n  })),\n  closeButton: {\n    position: 'absolute',\n    opacity: 0.5,\n    right: Platform.select({\n      ios: 0,\n      default: 8\n    }),\n    top: Platform.select({\n      ios: -2,\n      default: 17\n    })\n  },\n  clearButton: {\n    position: 'absolute',\n    right: 0,\n    top: -7,\n    bottom: 0,\n    justifyContent: 'center',\n    padding: 8\n  },\n  clearIcon: {\n    height: 16,\n    width: 16,\n    opacity: 0.5\n  },\n  cancelButton: {\n    alignSelf: 'center',\n    top: -4\n  },\n  cancelText: {\n    fontSize: 17,\n    marginHorizontal: 12\n  },\n  searchbarContainer: {\n    flex: 1\n  },\n  searchbar: Platform.select({\n    ios: {\n      flex: 1,\n      fontSize: 17,\n      paddingHorizontal: 32,\n      marginLeft: 16,\n      marginTop: -1,\n      marginBottom: 4,\n      borderRadius: 8\n    },\n    default: {\n      flex: 1,\n      fontSize: 18,\n      paddingHorizontal: 36,\n      marginRight: 8,\n      marginTop: 8,\n      marginBottom: 8,\n      borderBottomWidth: 1\n    }\n  })\n});\nexport var HeaderSearchBar = React.forwardRef(HeaderSearchBarInternal);","map":{"version":3,"names":["useNavigation","useTheme","Color","React","Animated","Image","Platform","StyleSheet","TextInput","View","clearIcon","closeIcon","searchIcon","PlatformPressable","Text","HeaderButton","HeaderIcon","jsx","_jsx","jsxs","_jsxs","INPUT_TYPE_TO_MODE","text","number","phone","email","useNativeDriver","OS","HeaderSearchBarInternal","_ref","ref","visible","inputType","_ref$autoFocus","autoFocus","_ref$placeholder","placeholder","_ref$cancelButtonText","cancelButtonText","_ref$enterKeyHint","enterKeyHint","onChangeText","onClose","tintColor","style","rest","_objectWithoutProperties","_excluded","navigation","_useTheme","dark","colors","fonts","_React$useState","useState","_React$useState2","_slicedToArray","value","setValue","_React$useState3","_React$useState4","rendered","setRendered","_React$useState5","Value","_React$useState6","visibleAnim","_React$useState7","_React$useState8","clearVisibleAnim","visibleValueRef","useRef","clearVisibleValueRef","inputRef","useEffect","current","timing","toValue","duration","start","_ref2","finished","stopAnimation","hasText","_ref3","clearText","useCallback","_inputRef$current","_inputRef$current2","clear","focus","onClear","nativeEvent","cancelSearch","addListener","useImperativeHandle","_inputRef$current3","blur","_inputRef$current4","setText","_inputRef$current5","setNativeProps","textColor","pointerEvents","styles","container","opacity","children","searchbarContainer","source","inputSearchIcon","_objectSpread","onChange","inputMode","placeholderTextColor","alpha","string","cursorColor","primary","selectionHandleColor","selectionColor","regular","searchbar","backgroundColor","select","ios","default","color","borderBottomColor","onPress","transform","scale","clearButton","resizeMode","closeButton","cancelButton","cancelText","create","flex","flexDirection","alignItems","position","left","top","height","width","right","bottom","justifyContent","padding","alignSelf","fontSize","marginHorizontal","paddingHorizontal","marginLeft","marginTop","marginBottom","borderRadius","marginRight","borderBottomWidth","HeaderSearchBar","forwardRef"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/elements/src/Header/HeaderSearchBar.tsx"],"sourcesContent":["import { useNavigation, useTheme } from '@react-navigation/native';\nimport Color from 'color';\nimport * as React from 'react';\nimport {\n  Animated,\n  Image,\n  Platform,\n  type StyleProp,\n  StyleSheet,\n  TextInput,\n  View,\n  type ViewStyle,\n} from 'react-native';\n\nimport clearIcon from '../assets/clear-icon.png';\nimport closeIcon from '../assets/close-icon.png';\nimport searchIcon from '../assets/search-icon.png';\nimport { PlatformPressable } from '../PlatformPressable';\nimport { Text } from '../Text';\nimport type { HeaderSearchBarOptions, HeaderSearchBarRef } from '../types';\nimport { HeaderButton } from './HeaderButton';\nimport { HeaderIcon } from './HeaderIcon';\n\ntype Props = Omit<HeaderSearchBarOptions, 'ref'> & {\n  visible: boolean;\n  onClose: () => void;\n  tintColor?: string;\n  style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n};\n\nconst INPUT_TYPE_TO_MODE = {\n  text: 'text',\n  number: 'numeric',\n  phone: 'tel',\n  email: 'email',\n} as const;\n\nconst useNativeDriver = Platform.OS !== 'web';\n\nfunction HeaderSearchBarInternal(\n  {\n    visible,\n    inputType,\n    autoFocus = true,\n    placeholder = 'Search',\n    cancelButtonText = 'Cancel',\n    enterKeyHint = 'search',\n    onChangeText,\n    onClose,\n    tintColor,\n    style,\n    ...rest\n  }: Props,\n  ref: React.ForwardedRef<HeaderSearchBarRef>\n) {\n  const navigation = useNavigation();\n  const { dark, colors, fonts } = useTheme();\n  const [value, setValue] = React.useState('');\n  const [rendered, setRendered] = React.useState(visible);\n  const [visibleAnim] = React.useState(\n    () => new Animated.Value(visible ? 1 : 0)\n  );\n  const [clearVisibleAnim] = React.useState(() => new Animated.Value(0));\n\n  const visibleValueRef = React.useRef(visible);\n  const clearVisibleValueRef = React.useRef(false);\n  const inputRef = React.useRef<TextInput>(null);\n\n  React.useEffect(() => {\n    // Avoid act warning in tests just by rendering header\n    if (visible === visibleValueRef.current) {\n      return;\n    }\n\n    Animated.timing(visibleAnim, {\n      toValue: visible ? 1 : 0,\n      duration: 100,\n      useNativeDriver,\n    }).start(({ finished }) => {\n      if (finished) {\n        setRendered(visible);\n        visibleValueRef.current = visible;\n      }\n    });\n\n    return () => {\n      visibleAnim.stopAnimation();\n    };\n  }, [visible, visibleAnim]);\n\n  const hasText = value !== '';\n\n  React.useEffect(() => {\n    if (clearVisibleValueRef.current === hasText) {\n      return;\n    }\n\n    Animated.timing(clearVisibleAnim, {\n      toValue: hasText ? 1 : 0,\n      duration: 100,\n      useNativeDriver,\n    }).start(({ finished }) => {\n      if (finished) {\n        clearVisibleValueRef.current = hasText;\n      }\n    });\n  }, [clearVisibleAnim, hasText]);\n\n  const clearText = React.useCallback(() => {\n    inputRef.current?.clear();\n    inputRef.current?.focus();\n    setValue('');\n  }, []);\n\n  const onClear = React.useCallback(() => {\n    clearText();\n    // FIXME: figure out how to create a SyntheticEvent\n    // @ts-expect-error: we don't have the native event here\n    onChangeText?.({ nativeEvent: { text: '' } });\n  }, [clearText, onChangeText]);\n\n  const cancelSearch = React.useCallback(() => {\n    onClear();\n    onClose();\n  }, [onClear, onClose]);\n\n  React.useEffect(\n    () => navigation?.addListener('blur', cancelSearch),\n    [cancelSearch, navigation]\n  );\n\n  React.useImperativeHandle(\n    ref,\n    () => ({\n      focus: () => {\n        inputRef.current?.focus();\n      },\n      blur: () => {\n        inputRef.current?.blur();\n      },\n      setText: (text: string) => {\n        inputRef.current?.setNativeProps({ text });\n        setValue(text);\n      },\n      clearText,\n      cancelSearch,\n    }),\n    [cancelSearch, clearText]\n  );\n\n  if (!visible && !rendered) {\n    return null;\n  }\n\n  const textColor = tintColor ?? colors.text;\n\n  return (\n    <Animated.View\n      pointerEvents={visible ? 'auto' : 'none'}\n      aria-live=\"polite\"\n      aria-hidden={!visible}\n      style={[styles.container, { opacity: visibleAnim }, style]}\n    >\n      <View style={styles.searchbarContainer}>\n        <HeaderIcon\n          source={searchIcon}\n          tintColor={textColor}\n          style={styles.inputSearchIcon}\n        />\n        <TextInput\n          {...rest}\n          ref={inputRef}\n          onChange={onChangeText}\n          onChangeText={setValue}\n          autoFocus={autoFocus}\n          inputMode={INPUT_TYPE_TO_MODE[inputType ?? 'text']}\n          enterKeyHint={enterKeyHint}\n          placeholder={placeholder}\n          placeholderTextColor={Color(textColor).alpha(0.5).string()}\n          cursorColor={colors.primary}\n          selectionHandleColor={colors.primary}\n          selectionColor={Color(colors.primary).alpha(0.3).string()}\n          style={[\n            fonts.regular,\n            styles.searchbar,\n            {\n              backgroundColor: Platform.select({\n                ios: dark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',\n                default: 'transparent',\n              }),\n              color: textColor,\n              borderBottomColor: Color(textColor).alpha(0.2).string(),\n            },\n          ]}\n        />\n        {Platform.OS === 'ios' ? (\n          <PlatformPressable\n            onPress={onClear}\n            style={[\n              {\n                opacity: clearVisibleAnim,\n                transform: [{ scale: clearVisibleAnim }],\n              },\n              styles.clearButton,\n            ]}\n          >\n            <Image\n              source={clearIcon}\n              resizeMode=\"contain\"\n              tintColor={textColor}\n              style={styles.clearIcon}\n            />\n          </PlatformPressable>\n        ) : null}\n      </View>\n      {Platform.OS !== 'ios' ? (\n        <HeaderButton\n          onPress={() => {\n            if (value) {\n              onClear();\n            } else {\n              onClose();\n            }\n          }}\n          style={styles.closeButton}\n        >\n          <HeaderIcon source={closeIcon} tintColor={textColor} />\n        </HeaderButton>\n      ) : null}\n      {Platform.OS === 'ios' ? (\n        <PlatformPressable onPress={cancelSearch} style={styles.cancelButton}>\n          <Text\n            style={[\n              fonts.regular,\n              { color: tintColor ?? colors.primary },\n              styles.cancelText,\n            ]}\n          >\n            {cancelButtonText}\n          </Text>\n        </PlatformPressable>\n      ) : null}\n    </Animated.View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    flexDirection: 'row',\n    alignItems: 'stretch',\n  },\n  inputSearchIcon: {\n    position: 'absolute',\n    opacity: 0.5,\n    left: Platform.select({ ios: 16, default: 4 }),\n    top: Platform.select({ ios: -1, default: 17 }),\n    ...Platform.select({\n      ios: {\n        height: 18,\n        width: 18,\n      },\n      default: {},\n    }),\n  },\n  closeButton: {\n    position: 'absolute',\n    opacity: 0.5,\n    right: Platform.select({ ios: 0, default: 8 }),\n    top: Platform.select({ ios: -2, default: 17 }),\n  },\n  clearButton: {\n    position: 'absolute',\n    right: 0,\n    top: -7,\n    bottom: 0,\n    justifyContent: 'center',\n    padding: 8,\n  },\n  clearIcon: {\n    height: 16,\n    width: 16,\n    opacity: 0.5,\n  },\n  cancelButton: {\n    alignSelf: 'center',\n    top: -4,\n  },\n  cancelText: {\n    fontSize: 17,\n    marginHorizontal: 12,\n  },\n  searchbarContainer: {\n    flex: 1,\n  },\n  searchbar: Platform.select({\n    ios: {\n      flex: 1,\n      fontSize: 17,\n      paddingHorizontal: 32,\n      marginLeft: 16,\n      marginTop: -1,\n      marginBottom: 4,\n      borderRadius: 8,\n    },\n    default: {\n      flex: 1,\n      fontSize: 18,\n      paddingHorizontal: 36,\n      marginRight: 8,\n      marginTop: 8,\n      marginBottom: 8,\n      borderBottomWidth: 1,\n    },\n  }),\n});\n\nexport const HeaderSearchBar = React.forwardRef(HeaderSearchBarInternal);\n"],"mappings":";;;;;;;;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,0BAA0B;AAClE,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAAA,OAAAC,QAAA;AAAA,OAAAC,KAAA;AAAA,OAAAC,QAAA;AAAA,OAAAC,UAAA;AAAA,OAAAC,SAAA;AAAA,OAAAC,IAAA;AAY9B,OAAOC,SAAS;AAChB,OAAOC,SAAS;AAChB,OAAOC,UAAU;AACjB,SAASC,iBAAiB;AAC1B,SAASC,IAAI;AAEb,SAASC,YAAY;AACrB,SAASC,UAAU;AAAuB,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS1C,IAAMC,kBAAkB,GAAG;EACzBC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE;AACT,CAAU;AAEV,IAAMC,eAAe,GAAGpB,QAAQ,CAACqB,EAAE,KAAK,KAAK;AAE7C,SAASC,uBAAuBA,CAAAC,IAAA,EAc9BC,GAA2C,EAC3C;EAAA,IAbEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAAC,cAAA,G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