├── index.php ├── assets ├── index.php └── js │ ├── index.php │ ├── src │ ├── index.php │ ├── components │ │ ├── index.php │ │ └── App.vue │ └── main.js │ ├── dist │ ├── bundle.min.css │ ├── bundle.css │ └── bundle.min.js │ ├── bundler-dev.js │ └── bundler-build.js ├── .gitignore ├── README.md ├── readme.txt ├── package.json └── parcel-vue-bundler.php /index.php: -------------------------------------------------------------------------------- 1 | h(MbnApp) 7 | }); 8 | -------------------------------------------------------------------------------- /assets/js/dist/bundle.css: -------------------------------------------------------------------------------- 1 | .parcel-vue-bundler-app { 2 | background: #fff; 3 | margin: 5em auto 0; 4 | max-width: 600px; 5 | padding: 2em; 6 | text-align: center; 7 | font-weight: bold; } 8 | .parcel-vue-bundler-app h2 { 9 | font-size: 1.8em; } 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a WordPress plugin. Find out more [on Monday By Noon](https://mondaybynoon.com/parcel-bundle-vue-wordpress-plugin/). 2 | 3 | # Parcel Vue Bundle 4 | 5 | Starter WordPress plugin utilizing Parcel to bundle your Vue application 6 | 7 | ![Parcel bundled Vue application in a WordPress plugin](https://mondaybynoon.com/wp-content/uploads/2018/06/parcel-vue-wordpress-plugin.png) 8 | -------------------------------------------------------------------------------- /assets/js/bundler-dev.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the Parcel bundler for the DEVELOPMENT version 3 | */ 4 | 5 | const Bundler = require('parcel-bundler'); 6 | const Path = require('path'); 7 | 8 | const file = Path.join(__dirname, './src/main.js'); 9 | 10 | const options = { 11 | outDir: Path.join(__dirname, './dist'), 12 | outFile: 'bundle.js', 13 | watch: true, 14 | cache: false, 15 | minify: false, 16 | hmr: false 17 | }; 18 | 19 | const bundler = new Bundler(file, options); 20 | 21 | bundler.bundle(); 22 | -------------------------------------------------------------------------------- /assets/js/bundler-build.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the Parcel bundler for the PRODUCTION version 3 | */ 4 | 5 | const Bundler = require('parcel-bundler'); 6 | const Path = require('path'); 7 | 8 | const file = Path.join(__dirname, './src/main.js'); 9 | 10 | const options = { 11 | outDir: Path.join(__dirname, './dist'), 12 | outFile: 'bundle.min.js', 13 | watch: true, 14 | cache: false, 15 | minify: true, 16 | hmr: false 17 | }; 18 | 19 | const bundler = new Bundler(file, options); 20 | 21 | bundler.bundle(); 22 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Parcel Vue Bundler === 2 | Contributors: jchristopher 3 | Donate link: http://mondaybynoon.com/donate/ 4 | Tags: parcel, parceljs, vue, bundle, package 5 | Requires at least: 4.9 6 | Tested up to: 4.9 7 | Stable tag: 0.0.2 8 | License: GPLv2 or later 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 | 11 | Starter WordPress plugin utilizing Parcel to bundle your Vue application 12 | 13 | == Description == 14 | 15 | Starter WordPress plugin utilizing Parcel to bundle your Vue application 16 | 17 | == Changelog == 18 | 19 | = 0.1 = 20 | * Initial release 21 | -------------------------------------------------------------------------------- /assets/js/src/components/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 19 | 20 | 34 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parcel-vue-bundler", 3 | "version": "0.0.1", 4 | "description": "Starter WordPress plugin utilizing Parcel to bundle your Vue application", 5 | "main": "assets/js/src/main.js", 6 | "scripts": { 7 | "watch": "concurrently \"npm run dev\" \"npm run build\"", 8 | "dev": "cross-env NODE_ENV=development node assets/js/bundler-dev.js", 9 | "build": "cross-env NODE_ENV=production node assets/js/bundler-build.js" 10 | }, 11 | "dependencies": { 12 | "autoprefixer": "^8.6.0", 13 | "babel-preset-env": "^1.7.0", 14 | "concurrently": "^3.5.1", 15 | "cross-env": "^5.1.6", 16 | "css-loader": "^0.28.11", 17 | "cssnano": "^3.10.0", 18 | "node-sass": "^4.9.0", 19 | "parcel-bundler": "^1.8.1", 20 | "postcss-modules": "^1.1.0", 21 | "scss-loader": "0.0.1", 22 | "vue": "^2.5.16", 23 | "vue-loader": "^15.2.4", 24 | "vue-style-loader": "^4.1.0", 25 | "vue-template-compiler": "^2.5.16" 26 | }, 27 | "repository": { 28 | "type": "git", 29 | "url": "git+https://github.com/jchristopher/parcel-vue-bundler.git" 30 | }, 31 | "keywords": [ 32 | "parcel", 33 | "parceljs", 34 | "vue", 35 | "bundle", 36 | "bundler", 37 | "wordpress", 38 | "plugin", 39 | "build" 40 | ], 41 | "author": "Jonathan Christopher", 42 | "license": "GPL-2.0", 43 | "bugs": { 44 | "url": "https://github.com/jchristopher/parcel-vue-bundler/issues" 45 | }, 46 | "homepage": "https://github.com/jchristopher/parcel-vue-bundler#readme" 47 | } 48 | -------------------------------------------------------------------------------- /parcel-vue-bundler.php: -------------------------------------------------------------------------------- 1 | slug, 52 | function () { ?> 53 |
54 | slug !== $hook ) { 64 | return; 65 | } 66 | 67 | $debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ) || ( isset( $_GET['script_debug'] ) ) ? '' : '.min'; 68 | 69 | wp_enqueue_script( 70 | $this->slug, 71 | plugin_dir_url( __FILE__ ) . "assets/js/dist/bundle${debug}.js", 72 | array(), 73 | $this->version, 74 | true 75 | ); 76 | 77 | wp_enqueue_style( 78 | $this->slug, 79 | plugin_dir_url( __FILE__ ) . "assets/js/dist/bundle${debug}.css", 80 | array(), 81 | $this->version 82 | ); 83 | } 84 | } 85 | 86 | // Kickoff! 87 | $parcel_vue_bundler = new ParcelVueBundler(); 88 | $parcel_vue_bundler->init(); 89 | -------------------------------------------------------------------------------- /assets/js/dist/bundle.min.js: -------------------------------------------------------------------------------- 1 | parcelRequire=function(e,r,n,t){function i(n,t){function o(e){return i(o.resolve(e))}function c(r){return e[n][1][r]||r}if(!r[n]){if(!e[n]){var l="function"==typeof parcelRequire&&parcelRequire;if(!t&&l)return l(n,!0);if(u)return u(n,!0);if(f&&"string"==typeof n)return f(n);var p=new Error("Cannot find module '"+n+"'");throw p.code="MODULE_NOT_FOUND",p}o.resolve=c;var a=r[n]=new i.Module(n);e[n][0].call(a.exports,o,a,a.exports,this)}return r[n].exports}function o(e){this.id=e,this.bundle=i,this.exports={}}var u="function"==typeof parcelRequire&&parcelRequire,f="function"==typeof require&&require;i.isParcelRequire=!0,i.Module=o,i.modules=e,i.cache=r,i.parent=u;for(var c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function C(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var A=/-(\w)/g,w=C(function(t){return t.replace(A,function(t,e){return e?e.toUpperCase():""})}),$=C(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),x=/\B([A-Z])/g,O=C(function(t){return t.replace(x,"-$1").toLowerCase()});function k(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var E=Function.prototype.bind?S:k;function j(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function I(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,et=Q&&Q.indexOf("edge/")>0,nt=Q&&Q.indexOf("android")>0||"android"===Z,rt=Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z,ot=Q&&/chrome\/\d+/.test(Q)&&!et,it={}.watch,at=!1;if(G)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(t){}var ct=function(){return void 0===K&&(K=!G&&!J&&void 0!==t&&"server"===t.process.env.VUE_ENV),K},ut=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ft,pt="undefined"!=typeof Symbol&<(Symbol)&&"undefined"!=typeof Reflect&<(Reflect.ownKeys);ft="undefined"!=typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt,vt,ht,mt,yt=N,gt=N,_t=N,bt=N,Ct=0,At=function(){this.id=Ct++,this.subs=[]};At.prototype.addSub=function(t){this.subs.push(t)},At.prototype.removeSub=function(t){g(this.subs,t)},At.prototype.depend=function(){At.target&&At.target.addDep(this)},At.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===O(t)){var c=pe(String,o.type);(c<0||s0&&(Ge((s=Je(s,(e||"")+"_"+i))[0])&&Ge(u)&&(l[c]=Et(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?Ge(u)?l[c]=Et(u.text+s):""!==s&&l.push(Et(s)):Ge(s)&&Ge(u)?l[c]=Et(u.text+s.text):(o(t._isVList)&&r(s.tag)&&n(s.key)&&r(e)&&(s.key="__vlist"+e+"_"+i+"__"),l.push(s)));return l}function Ze(t,e){return(t.__esModule||pt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function Qe(t,e,n,r,o){var i=St();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function Ye(t,e,i){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var a=t.contexts=[i],c=!0,u=function(){for(var t=0,e=a.length;t1?j(n):n;for(var r=j(arguments,1),o=0,i=n.length;oSn&&An[n].id>t.id;)n--;An.splice(n+1,0,t)}else An.push(t);On||(On=!0,Ne(jn))}}var Ln=0,Pn=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ln,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"==typeof e?this.getter=e:(this.getter=q(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Pn.prototype.get=function(){var t;$t(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;de(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Fe(t),xt(),this.cleanupDeps()}return t},Pn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Pn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Dn(this)},Pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){de(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Mn={enumerable:!0,configurable:!0,get:N,set:N};function Fn(t,e,n){Mn.get=function(){return this[e][n]},Mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Mn)}function Rn(t){t._watchers=[];var e=t.$options;e.props&&Un(t,e.props),e.methods&&Kn(t,e.methods),e.data?Bn(t):Ut(t._data={},!0),e.computed&&zn(t,e.computed),e.watch&&e.watch!==it&&Xn(t,e.watch)}function Un(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];!t.$parent||Pt(!1);var i=function(i){o.push(i);var a=ie(i,e,n,t);Bt(r,i,a),i in t||Fn(t,"_props",i)};for(var a in e)i(a);Pt(!0)}function Bn(t){var e=t.$options.data;l(e=t._data="function"==typeof e?Hn(e,t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var i=n[o];0,r&&b(r,i)||V(i)||Fn(t,"_data",i)}Ut(e,!0)}function Hn(t,e){$t();try{return t.call(e,e)}catch(t){return de(t,e,"data()"),{}}finally{xt()}}var Vn={lazy:!0};function zn(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;0,r||(n[o]=new Pn(t,a||N,N,Vn)),o in t||Wn(t,o,i)}}function Wn(t,e,n){var r=!ct();"function"==typeof n?(Mn.get=r?qn(e):n,Mn.set=N):(Mn.get=n.get?r&&!1!==n.cache?qn(e):n.get:N,Mn.set=n.set?n.set:N),Object.defineProperty(t,e,Mn)}function qn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),At.target&&e.depend(),e.value}}function Kn(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?N:E(e[n],t)}function Xn(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(t[o])<0)&&r.push(t[o]);return r}return t}function Pr(t){this._init(t)}function Mr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Fr(t){t.mixin=function(t){return this.options=re(this.options,t),this}}function Rr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=re(n.options,t),a.super=n,a.options.props&&Ur(a),a.options.computed&&Br(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=I({},a.options),o[r]=a,a}}function Ur(t){var e=t.options.props;for(var n in e)Fn(t.prototype,"_props",n)}function Br(t){var e=t.options.computed;for(var n in e)Wn(t.prototype,n,e[n])}function Hr(t){U.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Vr(t){return t&&(t.Ctor.options.name||t.tag)}function zr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Wr(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=Vr(a.componentOptions);s&&!e(s)&&qr(n,i,r,o)}}}function qr(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}Ir(Pr),Jn(Pr),sn(Pr),vn(Pr),Er(Pr);var Kr=[String,RegExp,Array],Xr={name:"keep-alive",abstract:!0,props:{include:Kr,exclude:Kr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)qr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Wr(t,function(t){return zr(e,t)})}),this.$watch("exclude",function(e){Wr(t,function(t){return!zr(e,t)})})},render:function(){var t=this.$slots.default,e=en(t),n=e&&e.componentOptions;if(n){var r=Vr(n),o=this.include,i=this.exclude;if(o&&(!r||!zr(o,r))||i&&r&&zr(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(a[c]=e,s.push(c),this.max&&s.length>parseInt(this.max)&&qr(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Gr={KeepAlive:Xr};function Jr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:yt,extend:I,mergeOptions:re,defineReactive:Bt},t.set=Ht,t.delete=Vt,t.nextTick=Ne,t.options=Object.create(null),U.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,I(t.options.components,Gr),Mr(t),Fr(t),Rr(t),Hr(t)}Jr(Pr),Object.defineProperty(Pr.prototype,"$isServer",{get:ct}),Object.defineProperty(Pr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Pr,"FunctionalRenderContext",{value:pr}),Pr.version="2.5.16";var Zr=h("style,class"),Qr=h("input,textarea,option,select,progress"),Yr=function(t,e,n){return"value"===n&&Qr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},to=h("contenteditable,draggable,spellcheck"),eo=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),no="http://www.w3.org/1999/xlink",ro=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},oo=function(t){return ro(t)?t.slice(6,t.length):""},io=function(t){return null==t||!1===t};function ao(t){for(var e=t.data,n=t,o=t;r(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=so(o.data,e));for(;r(n=n.parent);)n&&n.data&&(e=so(e,n.data));return co(e.staticClass,e.class)}function so(t,e){return{staticClass:uo(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function co(t,e){return r(t)||r(e)?uo(t,lo(e)):""}function uo(t,e){return t?e?t+" "+e:t:e||""}function lo(t){return Array.isArray(t)?fo(t):s(t)?po(t):"string"==typeof t?t:""}function fo(t){for(var e,n="",o=0,i=t.length;o-1?_o[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:_o[t]=/HTMLUnknownElement/.test(e.toString())}var Co=h("text,number,password,search,email,tel,url");function Ao(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function wo(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function $o(t,e){return document.createElementNS(vo[t],e)}function xo(t){return document.createTextNode(t)}function Oo(t){return document.createComment(t)}function ko(t,e,n){t.insertBefore(e,n)}function So(t,e){t.removeChild(e)}function Eo(t,e){t.appendChild(e)}function jo(t){return t.parentNode}function Io(t){return t.nextSibling}function To(t){return t.tagName}function No(t,e){t.textContent=e}function Do(t,e){t.setAttribute(e,"")}var Lo=Object.freeze({createElement:wo,createElementNS:$o,createTextNode:xo,createComment:Oo,insertBefore:ko,removeChild:So,appendChild:Eo,parentNode:jo,nextSibling:Io,tagName:To,setTextContent:No,setStyleScope:Do}),Po={create:function(t,e){Mo(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Mo(t,!0),Mo(e))},destroy:function(t){Mo(t,!0)}};function Mo(t,e){var n=t.data.ref;if(r(n)){var o=t.context,i=t.componentInstance||t.elm,a=o.$refs;e?Array.isArray(a[n])?g(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Fo=new Ot("",{},[]),Ro=["create","activate","update","remove","destroy"];function Uo(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Bo(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function Bo(t,e){if("input"!==t.tag)return!0;var n,o=r(n=t.data)&&r(n=n.attrs)&&n.type,i=r(n=e.data)&&r(n=n.attrs)&&n.type;return o===i||Co(o)&&Co(i)}function Ho(t,e,n){var o,i,a={};for(o=e;o<=n;++o)r(i=t[o].key)&&(a[i]=o);return a}function Vo(t){var e,i,s={},c=t.modules,u=t.nodeOps;for(e=0;ev?_(t,n(o[y+1])?null:o[y+1].elm,o,d,y,i):d>y&&C(0,e,p,v)}(c,d,v,i,a):r(v)?(r(t.text)&&u.setTextContent(c,""),_(c,null,v,0,v.length-1,i)):r(d)?C(0,d,0,d.length-1):r(t.text)&&u.setTextContent(c,""):t.text!==e.text&&u.setTextContent(c,e.text),r(p)&&r(l=p.hook)&&r(l=l.postpatch)&&l(t,e)}}}function x(t,e,n){if(o(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1?ti(t,e,n):eo(e)?io(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):to(e)?t.setAttribute(e,io(n)||"false"===n?"false":"true"):ro(e)?io(n)?t.removeAttributeNS(no,oo(e)):t.setAttributeNS(no,e,n):ti(t,e,n)}function ti(t,e,n){if(io(n))t.removeAttribute(e);else{if(Y&&!tt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var ei={create:Qo,update:Qo};function ni(t,e){var o=e.elm,i=e.data,a=t.data;if(!(n(i.staticClass)&&n(i.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=ao(e),c=o._transitionClasses;r(c)&&(s=uo(s,lo(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var ri,oi={create:ni,update:ni},ii="__r",ai="__c";function si(t){if(r(t[ii])){var e=Y?"change":"input";t[e]=[].concat(t[ii],t[e]||[]),delete t[ii]}r(t[ai])&&(t.change=[].concat(t[ai],t.change||[]),delete t[ai])}function ci(t,e,n){var r=ri;return function o(){null!==t.apply(null,arguments)&&li(e,o,n,r)}}function ui(t,e,n,r,o){e=Te(e),n&&(e=ci(e,t,r)),ri.addEventListener(t,e,at?{capture:r,passive:o}:r)}function li(t,e,n,r){(r||ri).removeEventListener(t,e._withTask||e,n)}function fi(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},o=t.data.on||{};ri=e.elm,si(r),Ve(r,o,ui,li,e.context),ri=void 0}}var pi={create:fi,update:fi};function di(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var o,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(o in r(c.__ob__)&&(c=e.data.domProps=I({},c)),s)n(c[o])&&(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(e.children&&(e.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o){a._value=i;var u=n(i)?"":String(i);vi(a,u)&&(a.value=u)}else a[o]=i}}}function vi(t,e){return!t.composing&&("OPTION"===t.tagName||hi(t,e)||mi(t,e))}function hi(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function mi(t,e){var n=t.value,o=t._vModifiers;if(r(o)){if(o.lazy)return!1;if(o.number)return v(n)!==v(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}var yi={create:di,update:di},gi=C(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function _i(t){var e=bi(t.style);return t.staticStyle?I(t.staticStyle,e):e}function bi(t){return Array.isArray(t)?T(t):"string"==typeof t?gi(t):t}function Ci(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=_i(o.data))&&I(r,n);(n=_i(t.data))&&I(r,n);for(var i=t;i=i.parent;)i.data&&(n=_i(i.data))&&I(r,n);return r}var Ai,wi=/^--/,$i=/\s*!important$/,xi=function(t,e,n){if(wi.test(e))t.style.setProperty(e,n);else if($i.test(n))t.style.setProperty(e,n.replace($i,""),"important");else{var r=ki(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ii(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ti(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&I(e,Ni(t.name||"v")),I(e,t),e}return"string"==typeof t?Ni(t):void 0}}var Ni=C(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Di=G&&!tt,Li="transition",Pi="animation",Mi="transition",Fi="transitionend",Ri="animation",Ui="animationend";Di&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Mi="WebkitTransition",Fi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ri="WebkitAnimation",Ui="webkitAnimationEnd"));var Bi=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Hi(t){Bi(function(){Bi(t)})}function Vi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ji(t,e))}function zi(t,e){t._transitionClasses&&g(t._transitionClasses,e),Ii(t,e)}function Wi(t,e,n){var r=Ki(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Li?Fi:Ui,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=Li,l=a,f=i.length):e===Pi?u>0&&(n=Pi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Li:Pi:null)?n===Li?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Li&&qi.test(r[Mi+"Property"])}}function Xi(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&yt(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function Yi(t){return"number"==typeof t&&!isNaN(t)}function ta(t){if(n(t))return!1;var e=t.fns;return r(e)?ta(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ea(t,e){!0!==e.data.show&&Ji(e)}var na=G?{create:ea,activate:ea,remove:function(t,e){!0!==t.data.show?Zi(t,e):e()}}:{},ra=[ei,oi,pi,yi,Ei,na],oa=ra.concat(Zo),ia=Vo({nodeOps:Lo,modules:oa});tt&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&da(t,"input")});var aa={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ze(n,"postpatch",function(){aa.componentUpdated(t,e,n)}):sa(t,e,n.context),t._vOptions=[].map.call(t.options,la)):("textarea"===n.tag||Co(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",fa),t.addEventListener("compositionend",pa),t.addEventListener("change",pa),tt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){sa(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,la);if(o.some(function(t,e){return!P(t,r[e])}))(t.multiple?e.value.some(function(t){return ua(t,o)}):e.value!==e.oldValue&&ua(e.value,o))&&da(t,"change")}}};function sa(t,e,n){ca(t,e,n),(Y||et)&&setTimeout(function(){ca(t,e,n)},0)}function ca(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s-1,a.selected!==i&&(a.selected=i);else if(P(la(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function ua(t,e){return e.every(function(e){return!P(e,t)})}function la(t){return"_value"in t?t._value:t.value}function fa(t){t.target.composing=!0}function pa(t){t.target.composing&&(t.target.composing=!1,da(t.target,"input"))}function da(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function va(t){return!t.componentInstance||t.data&&t.data.transition?t:va(t.componentInstance._vnode)}var ha={bind:function(t,e,n){var r=e.value,o=(n=va(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Ji(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=va(n)).data&&n.data.transition?(n.data.show=!0,r?Ji(n,function(){t.style.display=t.__vOriginalDisplay}):Zi(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},ma={model:aa,show:ha},ya={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ga(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ga(en(e.children)):t}function _a(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[w(i)]=o[i];return e}function ba(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Ca(t){for(;t=t.parent;)if(t.data.transition)return!0}function Aa(t,e){return e.key===t.key&&e.tag===t.tag}var wa={name:"transition",props:ya,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||tn(t)})).length){0;var r=this.mode;0;var o=n[0];if(Ca(this.$vnode))return o;var i=ga(o);if(!i)return o;if(this._leaving)return ba(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=_a(this),u=this._vnode,l=ga(u);if(i.data.directives&&i.data.directives.some(function(t){return"show"===t.name})&&(i.data.show=!0),l&&l.data&&!Aa(i,l)&&!tn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=I({},c);if("out-in"===r)return this._leaving=!0,ze(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ba(t,o);if("in-out"===r){if(tn(i))return u;var p,d=function(){p()};ze(c,"afterEnter",d),ze(c,"enterCancelled",d),ze(f,"delayLeave",function(t){p=t})}}return o}}},$a=I({tag:String,moveClass:String},ya);delete $a.mode;var xa={props:$a,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=_a(this),s=0;s