function handlePositionParam(container, position) {
  if (!position) {
    return
  }
  if (position in swalClasses) {
    dom.addClass(container, swalClasses[position])
  } else {
    warn('The "position" parameter is not valid, defaulting to "center"')
    dom.addClass(container, swalClasses.center)
  }
}
@param {HTMLElement} container
@param {SweetAlertOptions['position']} position