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AQ,CAAC,QAAQ,qBAAsB,IAK/C,EAAQ,KACN,QAAQ,uCACR,CAAC,QAAQ,qCAAsC,CAC7C,yBACA,QAA6B,IAArB,IAEV,CAAC,QAAQ,2CAA4C,CAAE,WAIzD,EAAQ,KAAK,CAAC,QAAQ,mCAAoC,CACxD,YAA6B,UAAhB,EAGb,QAAQ,EAER,QAAyB,UAAhB,EACT,cAAe,QAAQ,IAAI,gCAE3B,kBAEA,aAGK,CACL,WAAY,cACZ,UAAW,CAAC,CACV,QAAS,CAAC,wBAAyB,WACnC,UACA,WACC,CAGD,QAAS,CAAC,yBACV,QAAS,CACP,CAAC,QAAQ,qBAAsB,MAGrC,EAKF,QAAQ,IAAI,iCAAkC","file":"/npm/@vue/babel-preset-app@5.0.9/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@vue/babel-preset-app@5.0.9/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const path = require('path')\nconst semver = require('semver')\n\nconst defaultPolyfills = [\n  // promise polyfill alone doesn't work in IE,\n  // needs this as well. see: #1642\n  'es.array.iterator',\n  // this is required for webpack code splitting, vuex etc.\n  'es.promise',\n  // this is needed for object rest spread support in templates\n  // as vue-template-es2015-compiler 1.8+ compiles it to Object.assign() calls.\n  'es.object.assign',\n  // #2012 es.promise replaces native Promise in FF and causes missing finally\n  'es.promise.finally'\n]\n\nconst {\n  default: getTargets,\n  isRequired\n} = require('@babel/helper-compilation-targets')\n\n// We'll no longer need this logic in Babel 8 as it's the default behavior\n// See discussions at:\n// https://github.com/babel/rfcs/pull/2#issuecomment-714785228\n// https://github.com/babel/babel/pull/12189\nfunction getIntersectionTargets (targets, constraintTargets) {\n  const intersection = Object.keys(constraintTargets).reduce(\n    (results, browser) => {\n      // exclude the browsers that the user does not need\n      if (!targets[browser]) {\n        return results\n      }\n\n      // if the user-specified version is higher the minimum version that supports esmodule, than use it\n      results[browser] = semver.gt(\n        semver.coerce(constraintTargets[browser]),\n        semver.coerce(targets[browser])\n      )\n        ? constraintTargets[browser]\n        : targets[browser]\n\n      return results\n    },\n    {}\n  )\n\n  return intersection\n}\n\nfunction getModuleTargets (targets) {\n  const allModuleTargets = getTargets(\n    { esmodules: true },\n    { ignoreBrowserslistConfig: true }\n  )\n\n  // use the intersection of modern mode browsers and user defined targets config\n  return getIntersectionTargets(targets, allModuleTargets)\n}\n\nfunction getWCTargets (targets) {\n  // targeting browsers that at least support ES2015 classes\n  // https://github.com/babel/babel/blob/v7.9.6/packages/babel-compat-data/data/plugins.json#L194-L204\n  const allWCTargets = getTargets(\n    {\n      browsers: [\n        'Chrome >= 46',\n        'Firefox >= 45',\n        'Safari >= 10',\n        'Edge >= 13',\n        'iOS >= 10',\n        'Electron >= 0.36'\n      ]\n    },\n    { ignoreBrowserslistConfig: true }\n  )\n\n  // use the intersection of browsers supporting Web Components and user defined targets config\n  return getIntersectionTargets(targets, allWCTargets)\n}\n\nfunction getPolyfills (targets, includes) {\n  // if no targets specified, include all default polyfills\n  if (!targets || !Object.keys(targets).length) {\n    return includes\n  }\n\n  const compatData = require('core-js-compat').data\n  return includes.filter(item => {\n    if (!compatData[item]) {\n      throw new Error(`Cannot find polyfill ${item}, please refer to 'core-js-compat' for a complete list of available modules`)\n    }\n\n    return isRequired(item, targets, { compatData })\n  })\n}\n\nmodule.exports = (context, options = {}) => {\n  const presets = []\n  const plugins = []\n  const defaultEntryFiles = JSON.parse(process.env.VUE_CLI_ENTRY_FILES || '[]')\n\n  // Though in the vue-cli repo, we only use the two environment variables\n  // for tests, users may have relied on them for some features,\n  // dropping them may break some projects.\n  // So in the following blocks we don't directly test the `NODE_ENV`.\n  // Rather, we turn it into the two commonly used feature flags.\n  if (!process.env.VUE_CLI_TEST && process.env.NODE_ENV === 'test') {\n    // Both Jest & Mocha set NODE_ENV to 'test'.\n    // And both requires the `node` target.\n    process.env.VUE_CLI_BABEL_TARGET_NODE = 'true'\n    // Jest runs without bundling so it needs this.\n    // With the node target, tree shaking is not a necessity,\n    // so we set it for maximum compatibility.\n    process.env.VUE_CLI_BABEL_TRANSPILE_MODULES = 'true'\n  }\n\n  // JSX\n  if (options.jsx !== false) {\n    let jsxOptions = {}\n    if (typeof options.jsx === 'object') {\n      jsxOptions = options.jsx\n    }\n\n    let vueVersion = 2\n    try {\n      const Vue = require('vue')\n      vueVersion = semver.major(Vue.version)\n    } catch (e) {}\n\n    if (vueVersion === 2) {\n      presets.push([require('@vue/babel-preset-jsx'), jsxOptions])\n    } else if (vueVersion === 3) {\n      plugins.push([require('@vue/babel-plugin-jsx'), jsxOptions])\n    }\n  }\n\n  const runtimePath = path.dirname(require.resolve('@babel/runtime/package.json'))\n  const runtimeVersion = require('@babel/runtime/package.json').version\n  const {\n    polyfills: userPolyfills,\n    loose = false,\n    debug = false,\n    useBuiltIns = 'usage',\n    modules = false,\n    bugfixes = true,\n    targets: rawTargets,\n    spec,\n    ignoreBrowserslistConfig,\n    configPath,\n    include,\n    exclude,\n    shippedProposals,\n    forceAllTransforms,\n    decoratorsBeforeExport,\n    decoratorsLegacy,\n    // entry file list\n    entryFiles = defaultEntryFiles,\n\n    // Undocumented option of @babel/plugin-transform-runtime.\n    // When enabled, an absolute path is used when importing a runtime helper after transforming.\n    // This ensures the transpiled file always use the runtime version required in this package.\n    // However, this may cause hash inconsistency if the project is moved to another directory.\n    // So here we allow user to explicit disable this option if hash consistency is a requirement\n    // and the runtime version is sure to be correct.\n    absoluteRuntime = runtimePath,\n\n    // https://babeljs.io/docs/en/babel-plugin-transform-runtime#version\n    // By default transform-runtime assumes that @babel/runtime@7.0.0-beta.0 is installed, which means helpers introduced later than 7.0.0-beta.0 will be inlined instead of imported.\n    // See https://github.com/babel/babel/issues/10261\n    // And https://github.com/facebook/docusaurus/pull/2111\n    version = runtimeVersion\n  } = options\n\n  // resolve targets for preset-env\n  let targets = getTargets(rawTargets, { ignoreBrowserslistConfig, configPath })\n  if (process.env.VUE_CLI_BABEL_TARGET_NODE) {\n    // running tests in Node.js\n    targets = { node: 'current' }\n  } else if (process.env.VUE_CLI_BUILD_TARGET === 'wc' || process.env.VUE_CLI_BUILD_TARGET === 'wc-async') {\n    // targeting browsers that at least support ES2015 classes\n    targets = getWCTargets(targets)\n  } else if (process.env.VUE_CLI_MODERN_BUILD) {\n    // targeting browsers that at least support <script type=\"module\">\n    targets = getModuleTargets(targets)\n  }\n\n  // included-by-default polyfills. These are common polyfills that 3rd party\n  // dependencies may rely on (e.g. Vuex relies on Promise), but since with\n  // useBuiltIns: 'usage' we won't be running Babel on these deps, they need to\n  // be force-included.\n  let polyfills\n  const buildTarget = process.env.VUE_CLI_BUILD_TARGET || 'app'\n  if (\n    buildTarget === 'app' &&\n    useBuiltIns === 'usage' &&\n    !process.env.VUE_CLI_BABEL_TARGET_NODE\n  ) {\n    polyfills = getPolyfills(targets, userPolyfills || defaultPolyfills)\n    plugins.push([\n      require('./polyfillsPlugin'),\n      { polyfills, entryFiles, useAbsolutePath: !!absoluteRuntime }\n    ])\n  } else {\n    polyfills = []\n  }\n\n  const envOptions = {\n    bugfixes,\n    corejs: useBuiltIns ? require('core-js/package.json').version : false,\n    spec,\n    loose,\n    debug,\n    modules,\n    targets,\n    useBuiltIns,\n    ignoreBrowserslistConfig,\n    configPath,\n    include,\n    exclude: polyfills.concat(exclude || []),\n    shippedProposals,\n    forceAllTransforms\n  }\n\n  // cli-plugin-jest sets this to true because Jest runs without bundling\n  if (process.env.VUE_CLI_BABEL_TRANSPILE_MODULES) {\n    envOptions.modules = 'commonjs'\n    if (process.env.VUE_CLI_BABEL_TARGET_NODE) {\n      // necessary for dynamic import to work in tests\n      plugins.push(require('babel-plugin-dynamic-import-node'))\n    }\n  }\n\n  // pass options along to babel-preset-env\n  presets.unshift([require('@babel/preset-env'), envOptions])\n\n  // additional <= stage-3 plugins\n  // Babel 7 is removing stage presets altogether because people are using\n  // too many unstable proposals. Let's be conservative in the defaults here.\n  plugins.push(\n    require('@babel/plugin-syntax-dynamic-import'),\n    [require('@babel/plugin-proposal-decorators'), {\n      decoratorsBeforeExport,\n      legacy: decoratorsLegacy !== false\n    }],\n    [require('@babel/plugin-proposal-class-properties'), { loose }]\n  )\n\n  // transform runtime, but only for helpers\n  plugins.push([require('@babel/plugin-transform-runtime'), {\n    regenerator: useBuiltIns !== 'usage',\n\n    // polyfills are injected by preset-env & polyfillsPlugin, so no need to add them again\n    corejs: false,\n\n    helpers: useBuiltIns === 'usage',\n    useESModules: !process.env.VUE_CLI_BABEL_TRANSPILE_MODULES,\n\n    absoluteRuntime,\n\n    version\n  }])\n\n  return {\n    sourceType: 'unambiguous',\n    overrides: [{\n      exclude: [/@babel[/|\\\\\\\\]runtime/, /core-js/],\n      presets,\n      plugins\n    }, {\n      // there are some untranspiled code in @babel/runtime\n      // https://github.com/babel/babel/issues/9903\n      include: [/@babel[/|\\\\\\\\]runtime/],\n      presets: [\n        [require('@babel/preset-env'), envOptions]\n      ]\n    }]\n  }\n}\n\n// a special flag to tell @vue/cli-plugin-babel to include @babel/runtime for transpilation\n// otherwise the above `include` option won't take effect\nprocess.env.VUE_CLI_TRANSPILE_BABEL_RUNTIME = true\n"]}