text: import { throwQueryError } from './throw.js'
  import { normalizeToken } from './token.js'
  
  // Normalize query arrays
  export const normalizeQueryArrays = function (queryArrays, query) {
    validateQueryArrays(queryArrays, query)
    const queryArraysA =
      queryArrays.every(Array.isArray) && queryArrays.length !== 0
        ? queryArrays
        : [queryArrays]
    return queryArraysA.map((queryArray) =>
      normalizeQueryArray(queryArray, query),
    )
  }
  
  const validateQueryArrays = function (queryArrays, query) {
    if (!Array.isArray(queryArrays)) {
      throwQueryError(query, 'It must be an array.')
    }
  }
  
  const normalizeQueryArray = function (queryArray, query) {
    return queryArray.map((token) => normalizeToken(token, query))
  }
  