{"version":3,"sources":["jsdelivr-header.js","/npm/vue-ga@1.1.0/dist/vue-ga.umd.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNC,SAAU,EAAQ,GACE,iBAAZ,SAA0C,oBAAX,OAAyB,OAAO,QAAU,IAC9D,mBAAX,QAAyB,OAAO,IAAM,OAAO,IACnD,EAAS,GAAU,MAAa,MAAQ,GAC3C,CAJA,CAIE,MAAM,WAAc,aAUpB,SAAS,EAAK,GACP,OAAO,MARd,WACE,MAAM,EAAS,SAAS,cAAc,UACtC,EAAO,OAAQ,EACf,EAAO,IAAM,gDACb,SAAS,KAAK,YAAY,EAC5B,CAII,GAEA,OAAO,GAAK,OAAO,IAAM,YACtB,GAAG,EAAI,GAAG,GAAK,IAAI,KAAK,UAC3B,EAEA,GAAG,EAAI,OAAO,IAAI,MAClB,GAAG,SAAU,EAAI,QAErB,CAEA,SAAS,EAAQ,EAAK,GACpB,EAAK,GACL,GAAG,MAAO,OAAQ,GAClB,GAAG,OAAQ,WACb,CAcA,OAZA,SAAgB,EAAQ,GACA,mBAAX,EACT,GAAO,IACL,EAAQ,EAAK,EAAG,IAGlB,EAAO,WAAU,IACf,EAAQ,EAAG,SAAU,EAAG,GAG9B,CAIF","file":"/npm/vue-ga@1.1.0/dist/vue-ga.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/vue-ga@1.1.0/dist/vue-ga.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (global = global || self, global.VueGa = factory());\n}(this, function () { 'use strict';\n\n  /* globals ga */\n  function appendScript() {\n    const script = document.createElement('script');\n    script.async = true;\n    script.src = 'https://www.google-analytics.com/analytics.js';\n    document.body.appendChild(script);\n  }\n\n  function init(id) {\n    if (!window.ga) {\n      appendScript();\n\n      window.ga = window.ga || function () {\n        (ga.q = ga.q || []).push(arguments);\n      };\n\n      ga.l = Number(new Date());\n      ga('create', id, 'auto');\n    }\n  }\n\n  function collect(url, id) {\n    init(id);\n    ga('set', 'page', url);\n    ga('send', 'pageview');\n  }\n\n  function index (router, id) {\n    if (typeof router === 'function') {\n      router(url => {\n        collect(url, id);\n      });\n    } else {\n      router.afterEach(to => {\n        collect(to.fullPath, id);\n      });\n    }\n  }\n\n  return index;\n\n}));\n"]}