'use strict'
!(function(require, directRequire) {
  async function a() {
    let { body: a } = await c({
        url: `${e.getAuthList}`,
        method: 'post',
        body: JSON.stringify({ appid: d.getProjectAppID() }),
        needToken: 1,
        needAppID: 1
      }),
      b = a.baseresponse,
      f = b ? parseInt(b.errcode) : -1e4
    if (0 != f) throw `errcode ${f}`
    return a.auth_item
  }
  const b = require('./0634ee2ebd3e560d9d4804ecc960160f.js'),
    c = require('./15ba1827c7f6564a45df6bd44da3a977.js'),
    d = require('./3bfffbe88b3d923921f851c0697974fe.js'),
    e = require('./f171257bbcaef547a3cf27266ccb0db2.js')
  module.exports = {
    openSetting: async function(c, d) {
      let e = await a()
      c({
        type: b.SIMULATOR_SET_SETTING,
        data: { show: !0, api: d.api, scopeList: e, callbackID: d.callbackID }
      })
    },
    getSetting: async function(b, c) {
      let d = await a(),
        e = []
      return (
        d.forEach(a => {
          e.push({ state: a.state, scope: a.scope, desc: a.scope_desc })
        }),
        { errMsg: `${c.api}:ok`, authSetting: e }
      )
    }
  }
})(require('lazyload'), require)
