'use strict'
!(function(require, directRequire) {
  const a = require('fs'),
    b = require('path'),
    c = require('mkdir-p'),
    d = require('./1bd2563d13db26950ae47494b2c34454.js'),
    e = require('./50520c51b7863c9a4dab40d19f4e43d9.js'),
    f = require('./baf0c42a1a275f62a46bf025e8a17de7.js'),
    { Weappdest: g } = require('./92320c1386e6db6a6f2556736a9bc280.js'),
    h = () => {}
  module.exports = function(a, i) {
    const j = i.onProgressUpdate || h
    return new Promise(async (h, k) => {
      let l
      try {
        l = await d(a, i)
      } catch (a) {
        return k(a)
      }
      let m = b.join(g, `${+new Date()}`)
      c.sync(m)
      try {
        await e(a, {
          distPath: m,
          onProgressUpdate: j,
          onFilesIgnored: i.onFilesIgnored
        }),
          j(
            'compileotherfilestart',
            '\u6B63\u5728\u7F16\u8BD1\u5176\u4ED6\u6587\u4EF6'
          ),
          await f(a, { distPath: m, gameJSON: l }),
          j(
            'compileotherfileend',
            '\u7F16\u8BD1\u5176\u4ED6\u6587\u4EF6\u5B8C\u6210'
          )
      } catch (a) {
        return k(a)
      }
      return h(m)
    })
  }
})(require('lazyload'), require)
