import{is_string}from"./common.js";import{IndexOptions}from"./type.js";const presets={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};export default function apply_preset(a){const b=is_string(a)?a:a.preset;return b&&(!1,a=Object.assign({},presets[b],a)),a}