'use strict'
var _extends =
  Object.assign ||
  function(a) {
    for (var b, c = 1; c < arguments.length; c++)
      for (var d in ((b = arguments[c]), b))
        Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d])
    return a
  }
!(function(require, directRequire) {
  function a() {
    i = {}
  }
  function b(b, c) {
    let e = d.extname(c)
    '.json' === e && a()
  }
  async function c(c) {
    let d = await e(c)
    ;(h && h.srcPath == d.srcPath) ||
      (a(), h && h.unWatch(b), (h = d), h.watch(b))
  }
  const d = require('path'),
    e = require('./a63026ab5a5a3c59a61a9749a18aa2ca.js'),
    f = require('./dedcbe3bc309c536210de2a4e997918e.js'),
    g = require('./a89be4febc57a81e9865a060f74e14c8.js')
  var h,
    i = {}
  module.exports = {
    getCompileConfig: async function(a) {
      if ((await c(a), i.config)) return i.config
      let b = h.getAllJSONFiles(),
        e = 0,
        g = []
      for (let c, h = 0, i = b.length; h < i; h++) {
        if (
          ((c = b[h].replace(/\.json$/, '')),
          d.normalize(c) == d.normalize('plugin'))
        )
          continue
        let i = await f(a, c)
        if (i.usingComponents || i.componentGenerics) {
          let a = _extends({}, i.usingComponents, i.componentGenerics)
          g.push(`${c}.wxml`),
            g.push(Object.keys(a).length),
            (g = g.concat(Object.keys(a))),
            e++
        }
      }
      return g.unshift(e), (i.config = g), i.config
    },
    getFileList: async function(a) {
      if ((await c(a), i.files)) return i.files
      let b = h.getAllJSONFiles(),
        e = []
      for (let c, g = 0, h = b.length; g < h; g++) {
        if (
          ((c = b[g].replace(/\.json$/, '')),
          d.normalize(c) == d.normalize('plugin'))
        )
          continue
        let h = await f(a, c)
        ;(h.usingComponents || h.componentGenerics || !0 === h.component) &&
          e.push(c)
      }
      return (i.files = e), i.files
    }
  }
})(require('lazyload'), require)
