'use strict'
!(function(require, directRequire) {
  const a = require('./949d8235c744ced2a80121e4dba34c28.js'),
    b = require('./0634ee2ebd3e560d9d4804ecc960160f.js'),
    c = require('./5dd0a744ff6ee4b9cb0cd591eb6bad09.js'),
    d = 'JMRBZ-R4HCD-X674O-PXLN4-B7CLH-42BSB',
    e = 'wxdevtools',
    f = require('./3bfffbe88b3d923921f851c0697974fe.js')
  module.exports = {
    getLocation: async function(a, b) {
      let d = await c()
      return (
        (d.errMsg = `${b.api}:ok`),
        1002000 > f.getLibVersionNumber() &&
          (delete d.altitude,
          delete d.verticalAccuracy,
          delete d.horizontalAccuracy),
        d
      )
    },
    openLocation: async function(a, c) {
      let f = c.args,
        g = f.latitude,
        h = f.longitude,
        i = `marker=coord:${g},${h}`
      return (
        (i += `;title:${encodeURIComponent(f.name || ' ')}`),
        (i += `;addr:${encodeURIComponent(f.address || ' ')}`),
        a({
          type: b.SIMULATOR_SET_LOCATION,
          data: {
            show: !0,
            api: c.api,
            src: `${'http://apis.map.qq.com/tools/poimarker'}?type=0&${i}&key=${d}&referer=${e}`
          }
        }),
        { errMsg: `${c.api}:ok` }
      )
    },
    chooseLocation: async function(a, f) {
      let g = await c(),
        h = g.latitude,
        i = g.longitude
      a({
        type: b.SIMULATOR_SET_LOCATION,
        data: {
          show: !0,
          api: f.api,
          latitude: h,
          longitude: i,
          src: `${'http://apis.map.qq.com/tools/locpicker'}?search=1&type=1&coord=${h},${i}&key=${d}&referer=${e}`,
          callbackID: f.callbackID
        }
      })
    }
  }
})(require('lazyload'), require)
