From dfc50e4327fa5153c442b66870fd1ea537e2e2bf Mon Sep 17 00:00:00 2001 From: Taha Shashtari <taha.shashtari@gmail.com> Date: Fri, 18 Nov 2016 16:52:08 +0200 Subject: [PATCH] Add change event to PaginateLinks --- README.md | 19 +++++++++++++++++++ dist/vue-paginate.js | 5 ++++- dist/vue-paginate.min.js | 4 ++-- package.json | 2 +- src/components/PaginateLinks.js | 3 +++ 5 files changed, 29 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 279d1ff..321a27d 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,25 @@ To activate this mode, you just need to specify the limit using the `limit` prop ></paginate-links> ``` +### Listening to links @change event + +When the current page changes, `PaginateLinks` emits an event called `change` to inform you about that. It also passes the switched page numbers with it, if you need them. + +``` html +<paginate-links + for="languages" + @change="onLangsPageChange" +></paginate-links> +``` + +``` js +methods: { + onLangsPageChange (toPage, fromPage) { + // handle here… + } +} +``` + ### Paginate container The default element `vue-paginate` uses for the `<paginate>` container is `UL`. But, of course, you can change it to whatever you want using the `tag` prop. And the same is true for its class using the `class` prop. diff --git a/dist/vue-paginate.js b/dist/vue-paginate.js index 22d839d..3e49bc0 100644 --- a/dist/vue-paginate.js +++ b/dist/vue-paginate.js @@ -1,5 +1,5 @@ /** - * vue-paginate v3.0.0 + * vue-paginate v3.1.0 * (c) 2016 Taha Shashtari * @license MIT */ @@ -5533,6 +5533,9 @@ this.updateListOfPages() }, deep: true + }, + currentPage: function currentPage (toPage, fromPage) { + this.$emit('change', toPage + 1, fromPage + 1) } }, methods: { diff --git a/dist/vue-paginate.min.js b/dist/vue-paginate.min.js index 8f34fc9..577eb68 100644 --- a/dist/vue-paginate.min.js +++ b/dist/vue-paginate.min.js @@ -1,7 +1,7 @@ /** - * vue-paginate v3.0.0 + * vue-paginate v3.1.0 * (c) 2016 Taha Shashtari * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VuePaginate=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function i(t,e){return vn.call(t,e)}function o(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function s(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 c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function u(t,e){for(var n in e)t[n]=e[n];return t}function l(t){return null!==t&&"object"==typeof t}function f(t){return wn.call(t)===Cn}function d(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(e,t[n]);return e}function p(){}function h(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function v(t,e){return t==e||!(!l(t)||!l(e))&&JSON.stringify(t)===JSON.stringify(e)}function m(t,e){for(var n=0;n<t.length;n++)if(v(t[n],e))return n;return-1}function g(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function y(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function _(t){if(!xn.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function b(t){return/native code/.test(t.toString())}function w(t){In.target&&Bn.push(In.target),In.target=t}function C(){In.target=Bn.pop()}function $(){Un.length=0,Vn={},Rn=Hn=!1}function k(){for(Hn=!0,Un.sort(function(t,e){return t.id-e.id}),Fn=0;Fn<Un.length;Fn++){var t=Un[Fn],e=t.id;Vn[e]=null,t.run()}Ln&&kn.devtools&&Ln.emit("flush"),$()}function x(t){var e=t.id;if(null==Vn[e]){if(Vn[e]=!0,Hn){for(var n=Un.length-1;n>=0&&Un[n].id>t.id;)n--;Un.splice(Math.max(n,Fn)+1,0,t)}else Un.push(t);Rn||(Rn=!0,Nn(k))}}function O(t){Kn.clear(),A(t,Kn)}function A(t,e){var n,r,i=Array.isArray(t);if((i||l(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)A(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)A(t[r[n]],e)}}function P(t,e){t.__proto__=e}function S(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];y(t,o,e[o])}}function j(t){if(l(t)){var e;return i(t,"__ob__")&&t.__ob__ instanceof Qn?e=t.__ob__:Zn.shouldConvert&&!kn._isServer&&(Array.isArray(t)||f(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new Qn(t)),e}}function T(t,e,n,r){var i=new In,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var a=o&&o.get,s=o&&o.set,c=j(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return In.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(e)&&L(e)),e},set:function(e){var r=a?a.call(t):n;e!==r&&(s?s.call(t,e):n=e,c=j(e),i.notify())}})}}function E(t,e,n){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(i(t,e))return void(t[e]=n);var r=t.__ob__;if(!(t._isVue||r&&r.vmCount))return r?(T(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}function D(t,e){var n=t.__ob__;t._isVue||n&&n.vmCount||i(t,e)&&(delete t[e],n&&n.dep.notify())}function L(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&L(e)}function N(t){t._watchers=[],M(t),I(t),B(t),V(t),R(t)}function M(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Zn.shouldConvert=i;for(var o=function(i){var o=r[i];T(t,o,Lt(o,e,n,t))},a=0;a<r.length;a++)o(a);Zn.shouldConvert=!0}}function I(t){var e=t.$options.data;e=t._data="function"==typeof e?e.call(t):e||{},f(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&i(r,n[o])||z(t,n[o]);j(e),e.__ob__&&e.__ob__.vmCount++}function B(t){var e=t.$options.computed;if(e)for(var n in e){var r=e[n];"function"==typeof r?(Xn.get=U(r,t),Xn.set=p):(Xn.get=r.get?r.cache!==!1?U(r.get,t):s(r.get,t):p,Xn.set=r.set?s(r.set,t):p),Object.defineProperty(t,n,Xn)}}function U(t,e){var n=new qn(e,t,p,{lazy:!0});return function(){return n.dirty&&n.evaluate(),In.target&&n.depend(),n.value}}function V(t){var e=t.$options.methods;if(e)for(var n in e)t[n]=null==e[n]?p:s(e[n],t)}function R(t){var e=t.$options.watch;if(e)for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)H(t,n,r[i]);else H(t,n,r)}}function H(t,e,n){var r;f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function F(t){var e={};e.get=function(){return this._data},Object.defineProperty(t.prototype,"$data",e),t.prototype.$set=E,t.prototype.$delete=D,t.prototype.$watch=function(t,e,n){var r=this;n=n||{},n.user=!0;var i=new qn(r,t,e,n);return n.immediate&&e.call(r,i.value),function(){i.teardown()}}}function z(t,e){g(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}function q(t){var e=new Yn(t.tag,t.data,t.children,t.text,t.elm,t.ns,t.context,t.componentOptions);return e.isStatic=t.isStatic,e.key=t.key,e.isCloned=!0,e}function K(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=q(t[n]);return e}function W(t,e,n,r){r+=e;var i=t.__injected||(t.__injected={});if(!i[r]){i[r]=!0;var o=t[e];o?t[e]=function(){o.apply(this,arguments),n.apply(this,arguments)}:t[e]=n}}function G(t,e,n,r,i){var o,a,s,c,u,l;for(o in t)if(a=t[o],s=e[o],a)if(s){if(a!==s)if(Array.isArray(s)){s.length=a.length;for(var f=0;f<s.length;f++)s[f]=a[f];t[o]=s}else s.fn=a,t[o]=s}else l="!"===o.charAt(0),u=l?o.slice(1):o,Array.isArray(a)?n(u,a.invoker=J(a),l):(a.invoker||(c=a,a=t[o]={},a.fn=c,a.invoker=Z(a)),n(u,a.invoker,l));else;for(o in e)t[o]||(u="!"===o.charAt(0)?o.slice(1):o,r(u,e[o].invoker))}function J(t){return function(e){for(var n=arguments,r=1===arguments.length,i=0;i<t.length;i++)r?t[i](e):t[i].apply(null,n)}}function Z(t){return function(e){var n=1===arguments.length;n?t.fn(e):t.fn.apply(null,arguments)}}function Q(t,e,n){if(o(t))return[X(t)];if(Array.isArray(t)){for(var r=[],i=0,a=t.length;i<a;i++){var s=t[i],c=r[r.length-1];Array.isArray(s)?r.push.apply(r,Q(s,e,(n||"")+"_"+i)):o(s)?c&&c.text?c.text+=String(s):""!==s&&r.push(X(s)):s instanceof Yn&&(s.text&&c&&c.text?c.text+=s.text:(e&&Y(s,e),s.tag&&null==s.key&&null!=n&&(s.key="__vlist"+n+"_"+i+"__"),r.push(s)))}return r}}function X(t){return new Yn(void 0,void 0,void 0,String(t))}function Y(t,e){if(t.tag&&!t.ns&&(t.ns=e,t.children))for(var n=0,r=t.children.length;n<r;n++)Y(t.children[n],e)}function tt(t){return t&&t.filter(function(t){return t&&t.componentOptions})[0]}function et(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function nt(t){t.prototype._mount=function(t,e){var n=this;return n.$el=t,n.$options.render||(n.$options.render=tr),rt(n,"beforeMount"),n._watcher=new qn(n,function(){n._update(n._render(),e)},p),e=!1,null==n.$vnode&&(n._isMounted=!0,rt(n,"mounted")),n},t.prototype._update=function(t,e){var n=this;n._isMounted&&rt(n,"beforeUpdate");var r=n.$el,i=er;er=n;var o=n._vnode;n._vnode=t,o?n.$el=n.__patch__(o,t):n.$el=n.__patch__(n.$el,t,e),er=i,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el),n._isMounted&&rt(n,"updated")},t.prototype._updateFromParent=function(t,e,n,r){var i=this,o=!(!i.$options._renderChildren&&!r);if(i.$options._parentVnode=n,i.$options._renderChildren=r,t&&i.$options.props){Zn.shouldConvert=!1;for(var a=i.$options._propKeys||[],s=0;s<a.length;s++){var c=a[s];i[c]=Lt(c,i.$options.props,t,i)}Zn.shouldConvert=!0,i.$options.propsData=t}if(e){var u=i.$options._parentListeners;i.$options._parentListeners=e,i._updateListeners(e,u)}o&&(i.$slots=bt(r,i._renderContext),i.$forceUpdate())},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||r(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,rt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.__patch__(t._vnode,null)}}}function rt(t,e){var n=t.$options[e];if(n)for(var r=0,i=n.length;r<i;r++)n[r].call(t);t.$emit("hook:"+e)}function it(t,e,n,r,i){if(t&&(l(t)&&(t=Ot.extend(t)),"function"==typeof t)){if(xt(t),!t.cid)if(t.resolved)t=t.resolved;else if(t=ft(t,function(){n.$forceUpdate()}),!t)return;e=e||{};var o=dt(e,t);if(t.options.functional)return ot(t,o,e,n,r);var a=e.on;e.on=e.nativeOn,t.options.abstract&&(e={}),ht(e);var s=t.options.name||i,c=new Yn("vue-component-"+t.cid+(s?"-"+s:""),e,void 0,void 0,void 0,void 0,n,{Ctor:t,propsData:o,listeners:a,tag:i,children:r});return c}}function ot(t,e,n,r,i){var o={},a=t.options.props;if(a)for(var c in a)o[c]=Lt(c,a,e);var u=t.options.render.call(null,s(mt,{_self:Object.create(r)}),{props:o,data:n,parent:r,children:Q(i),slots:function(){return bt(i,r)}});return u instanceof Yn&&(u.functionalContext=r,n.slot&&((u.data||(u.data={})).slot=n.slot)),u}function at(t,e){var n=t.componentOptions,r={_isComponent:!0,parent:e,propsData:n.propsData,_componentTag:n.tag,_parentVnode:t,_parentListeners:n.listeners,_renderChildren:n.children},i=t.data.inlineTemplate;return i&&(r.render=i.render,r.staticRenderFns=i.staticRenderFns),new n.Ctor(r)}function st(t,e){if(!t.child||t.child._isDestroyed){var n=t.child=at(t,er);n.$mount(e?t.elm:void 0,e)}}function ct(t,e){var n=e.componentOptions,r=e.child=t.child;r._updateFromParent(n.propsData,n.listeners,e,n.children)}function ut(t){t.child._isMounted||(t.child._isMounted=!0,rt(t.child,"mounted")),t.data.keepAlive&&(t.child._inactive=!1,rt(t.child,"activated"))}function lt(t){t.child._isDestroyed||(t.data.keepAlive?(t.child._inactive=!0,rt(t.child,"deactivated")):t.child.$destroy())}function ft(t,e){if(!t.requested){t.requested=!0;var n=t.pendingCallbacks=[e],r=!0,i=function(e){if(l(e)&&(e=Ot.extend(e)),t.resolved=e,!r)for(var i=0,o=n.length;i<o;i++)n[i](e)},o=function(t){},a=t(i,o);return a&&"function"==typeof a.then&&!t.resolved&&a.then(i,o),r=!1,t.resolved}t.pendingCallbacks.push(e)}function dt(t,e){var n=e.options.props;if(n){var r={},i=t.attrs,o=t.props,a=t.domProps;if(i||o||a)for(var s in n){var c=bn(s);pt(r,o,s,c,!0)||pt(r,i,s,c)||pt(r,a,s,c)}return r}}function pt(t,e,n,r,o){if(e){if(i(e,n))return t[n]=e[n],o||delete e[n],!0;if(i(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ht(t){t.hook||(t.hook={});for(var e=0;e<rr.length;e++){var n=rr[e],r=t.hook[n],i=nr[n];t.hook[n]=r?vt(i,r):i}}function vt(t,e){return function(n,r){t(n,r),e(n,r)}}function mt(t,e,n){return e&&(Array.isArray(e)||"object"!=typeof e)&&(n=e,e=void 0),gt(this._self,t,e,n)}function gt(t,e,n,r){if(!n||!n.__ob__){if(!e)return tr();if("string"==typeof e){var i,o=kn.getTagNamespace(e);if(kn.isReservedTag(e))return new Yn(e,n,Q(r,o),void 0,void 0,o,t);if(i=Dt(t.$options,"components",e))return it(i,n,t,r,e);var a="foreignObject"===e?"xhtml":o;return new Yn(e,n,Q(r,a),void 0,void 0,o,t)}return it(e,n,t,r)}}function yt(t){t.$vnode=null,t._vnode=null,t._staticTrees=null,t._renderContext=t.$options._parentVnode&&t.$options._parentVnode.context,t.$slots=bt(t.$options._renderChildren,t._renderContext),t.$createElement=s(mt,t),t.$options.el&&t.$mount(t.$options.el)}function _t(n){function r(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&i(t[r],e+"_"+r,n);else i(t,e,n)}function i(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}n.prototype.$nextTick=function(t){Nn(t,this)},n.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e.staticRenderFns,i=e._parentVnode;if(t._isMounted)for(var o in t.$slots)t.$slots[o]=K(t.$slots[o]);r&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=i;var a;try{a=n.call(t._renderProxy,t.$createElement)}catch(e){if(kn.errorHandler)kn.errorHandler.call(null,e,t);else{if(kn._isServer)throw e;console.error(e)}a=t._vnode}return a instanceof Yn||(a=tr()),a.parent=i,a},n.prototype._h=mt,n.prototype._s=t,n.prototype._n=e,n.prototype._e=tr,n.prototype._q=v,n.prototype._i=m,n.prototype._m=function(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?K(n):q(n):(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),r(n,"__static__"+t,!1),n)},n.prototype._o=function(t,e,n){return r(t,"__once__"+e+(n?"_"+n:""),!0),t};var o=function(t){return t};n.prototype._f=function(t){return Dt(this.$options,"filters",t,!0)||o},n.prototype._l=function(t,e){var n,r,i,o,a;if(Array.isArray(t))for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))for(o=Object.keys(t),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=e(t[a],a,r);return n},n.prototype._t=function(t,e){var n=this.$slots[t];return n||e},n.prototype._b=function(t,e,n){if(e)if(l(e)){Array.isArray(e)&&(e=d(e));for(var r in e)if("class"===r||"style"===r)t[r]=e[r];else{var i=n||kn.mustUseProp(r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={});i[r]=e[r]}}else;return t},n.prototype._k=function(t){return kn.keyCodes[t]}}function bt(t,e){var n={};if(!t)return n;for(var r,i,o=Q(t)||[],a=[],s=0,c=o.length;s<c;s++)if(i=o[s],(i.context===e||i.functionalContext===e)&&i.data&&(r=i.data.slot)){var u=n[r]||(n[r]=[]);"template"===i.tag?u.push.apply(u,i.children):u.push(i)}else a.push(i);return a.length&&(1!==a.length||" "!==a[0].text&&!a[0].isComment)&&(n.default=a),n}function wt(t){t._events=Object.create(null);var e=t.$options._parentListeners,n=s(t.$on,t),r=s(t.$off,t);t._updateListeners=function(e,i){G(e,i||{},n,r,t)},e&&t._updateListeners(e)}function Ct(t){t.prototype.$on=function(t,e){var n=this;return(n._events[t]||(n._events[t]=[])).push(e),n},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[t];if(!r)return n;if(1===arguments.length)return n._events[t]=null,n;for(var i,o=r.length;o--;)if(i=r[o],i===e||i.fn===e){r.splice(o,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?c(n):n;for(var r=c(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(e,r)}return e}}function $t(t){t.prototype._init=function(t){var e=this;e._uid=ir++,e._isVue=!0,t&&t._isComponent?kt(e,t):e.$options=Et(xt(e.constructor),t||{},e),e._renderProxy=e,e._self=e,et(e),wt(e),rt(e,"beforeCreate"),N(e),rt(e,"created"),yt(e)}}function kt(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function xt(t){var e=t.options;if(t.super){var n=t.super.options,r=t.superOptions,i=t.extendOptions;n!==r&&(t.superOptions=n,i.render=e.render,i.staticRenderFns=e.staticRenderFns,e=t.options=Et(n,i),e.name&&(e.components[e.name]=t))}return e}function Ot(t){this._init(t)}function At(t,e){var n,r,o;for(n in e)r=t[n],o=e[n],i(t,n)?l(r)&&l(o)&&At(r,o):E(t,n,o);return t}function Pt(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function St(t,e){var n=Object.create(t||null);return e?u(n,e):n}function jt(t){var e=t.props;if(e){var n,r,i,o={};if(Array.isArray(e))for(n=e.length;n--;)r=e[n],"string"==typeof r&&(i=gn(r),o[i]={type:null});else if(f(e))for(var a in e)r=e[a],i=gn(a),o[i]=f(r)?r:{type:r};t.props=o}}function Tt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function Et(t,e,n){function r(r){var i=sr[r]||cr;l[r]=i(t[r],e[r],n,r)}jt(e),Tt(e);var o=e.extends;if(o&&(t="function"==typeof o?Et(t,o.options,n):Et(t,o,n)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++){var c=e.mixins[a];c.prototype instanceof Ot&&(c=c.options),t=Et(t,c,n)}var u,l={};for(u in t)r(u);for(u in e)i(t,u)||r(u);return l}function Dt(t,e,n,r){if("string"==typeof n){var i=t[e],o=i[n]||i[gn(n)]||i[yn(gn(n))];return o}}function Lt(t,e,n,r){var o=e[t],a=!i(n,t),s=n[t];if(It(o.type)&&(a&&!i(o,"default")?s=!1:""!==s&&s!==bn(t)||(s=!0)),void 0===s){s=Nt(r,o,t);var c=Zn.shouldConvert;Zn.shouldConvert=!0,j(s),Zn.shouldConvert=c}return s}function Nt(t,e,n){if(i(e,"default")){var r=e.default;return l(r),t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t[n]?t[n]:"function"==typeof r&&e.type!==Function?r.call(t):r}}function Mt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e&&e[1]}function It(t){if(!Array.isArray(t))return"Boolean"===Mt(t);for(var e=0,n=t.length;e<n;e++)if("Boolean"===Mt(t[e]))return!0;return!1}function Bt(t){t.use=function(t){if(!t.installed){var e=c(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}function Ut(t){t.mixin=function(e){t.options=Et(t.options,e)}}function Vt(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var i=t.name||n.options.name,o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Et(n.options,t),o.super=n,o.extend=n.extend,kn._assetTypes.forEach(function(t){o[t]=n[t]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=t,r&&(t._Ctor=o),o}}function Rt(t){kn._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&f(r)&&(r.name=r.name||n,r=t.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Ht(t){var e={};e.get=function(){return kn},Object.defineProperty(t,"config",e),t.util=ur,t.set=E,t.delete=D,t.nextTick=Nn,t.options=Object.create(null),kn._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),u(t.options.components,fr),Bt(t),Ut(t),Vt(t),Rt(t)}function Ft(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=zt(r.data,e));for(;n=n.parent;)n.data&&(e=zt(e,n.data));return qt(e)}function zt(t,e){return{staticClass:Kt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function qt(t){var e=t.class,n=t.staticClass;return n||e?Kt(n,Wt(e)):""}function Kt(t,e){return t?e?t+" "+e:t:e||""}function Wt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r<i;r++)t[r]&&(n=Wt(t[r]))&&(e+=n+" ");return e.slice(0,-1)}if(l(t)){for(var o in t)t[o]&&(e+=o+" ");return e.slice(0,-1)}return e}function Gt(t){return Cr(t)?"svg":"math"===t?"math":void 0}function Jt(t){if(!An)return!0;if($r(t))return!1;if(t=t.toLowerCase(),null!=kr[t])return kr[t];var e=document.createElement(t);return t.indexOf("-")>-1?kr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:kr[t]=/HTMLUnknownElement/.test(e.toString())}function Zt(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return document.createElement("div")}return t}function Qt(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function Xt(t,e){return document.createElementNS(br[t],e)}function Yt(t){return document.createTextNode(t)}function te(t){return document.createComment(t)}function ee(t,e,n){t.insertBefore(e,n)}function ne(t,e){t.removeChild(e)}function re(t,e){t.appendChild(e)}function ie(t){return t.parentNode}function oe(t){return t.nextSibling}function ae(t){return t.tagName}function se(t,e){t.textContent=e}function ce(t){return t.childNodes}function ue(t,e,n){t.setAttribute(e,n)}function le(t,e){var n=t.data.ref;if(n){var i=t.context,o=t.child||t.elm,a=i.$refs;e?Array.isArray(a[n])?r(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].push(o):a[n]=[o]:a[n]=o}}function fe(t){return null==t}function de(t){return null!=t}function pe(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function he(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,de(i)&&(o[i]=r);return o}function ve(t){function e(t){return new Yn($.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=$.parentNode(t);e&&$.removeChild(e,t)}function i(t,e,n){var r,i=t.data;if(t.isRootInsert=!n,de(i)&&(de(r=i.hook)&&de(r=r.init)&&r(t),de(r=t.child)))return u(t,e),t.elm;var o=t.children,s=t.tag;return de(s)?(t.elm=t.ns?$.createElementNS(t.ns,s):$.createElement(s,t),l(t),a(t,o,e),de(i)&&c(t,e)):t.isComment?t.elm=$.createComment(t.text):t.elm=$.createTextNode(t.text),t.elm}function a(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)$.appendChild(t.elm,i(e[r],n,!0));else o(t.text)&&$.appendChild(t.elm,$.createTextNode(t.text))}function s(t){for(;t.child;)t=t.child._vnode;return de(t.tag)}function c(t,e){for(var n=0;n<w.create.length;++n)w.create[n](Ar,t);_=t.data.hook,de(_)&&(_.create&&_.create(Ar,t),_.insert&&e.push(t))}function u(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.child.$el,s(t)?(c(t,e),l(t)):(le(t),e.push(t))}function l(t){var e;de(e=t.context)&&de(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,""),de(e=er)&&e!==t.context&&de(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,"")}function f(t,e,n,r,o,a){for(;r<=o;++r)$.insertBefore(t,i(n[r],a),e)}function d(t){var e,n,r=t.data;if(de(r))for(de(e=r.hook)&&de(e=e.destroy)&&e(t),e=0;e<w.destroy.length;++e)w.destroy[e](t);if(de(e=t.children))for(n=0;n<t.children.length;++n)d(t.children[n])}function p(t,e,n,r){for(;n<=r;++n){var i=e[n];de(i)&&(de(i.tag)?(h(i),d(i)):$.removeChild(t,i.elm))}}function h(t,e){if(e||de(t.data)){var i=w.remove.length+1;for(e?e.listeners+=i:e=n(t.elm,i),de(_=t.child)&&de(_=_._vnode)&&de(_.data)&&h(_,e),_=0;_<w.remove.length;++_)w.remove[_](t,e);de(_=t.data.hook)&&de(_=_.remove)?_(t,e):e()}else r(t.elm)}function v(t,e,n,r,o){for(var a,s,c,u,l=0,d=0,h=e.length-1,v=e[0],g=e[h],y=n.length-1,_=n[0],b=n[y],w=!o;l<=h&&d<=y;)fe(v)?v=e[++l]:fe(g)?g=e[--h]:pe(v,_)?(m(v,_,r),v=e[++l],_=n[++d]):pe(g,b)?(m(g,b,r),g=e[--h],b=n[--y]):pe(v,b)?(m(v,b,r),w&&$.insertBefore(t,v.elm,$.nextSibling(g.elm)),v=e[++l],b=n[--y]):pe(g,_)?(m(g,_,r),w&&$.insertBefore(t,g.elm,v.elm),g=e[--h],_=n[++d]):(fe(a)&&(a=he(e,l,h)),s=de(_.key)?a[_.key]:null,fe(s)?($.insertBefore(t,i(_,r),v.elm),_=n[++d]):(c=e[s],c.tag!==_.tag?($.insertBefore(t,i(_,r),v.elm),_=n[++d]):(m(c,_,r),e[s]=void 0,w&&$.insertBefore(t,_.elm,v.elm),_=n[++d])));l>h?(u=fe(n[y+1])?null:n[y+1].elm,f(t,u,n,d,y,r)):d>y&&p(t,e,l,h)}function m(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return void(e.elm=t.elm);var i,o=e.data,a=de(o);a&&de(i=o.hook)&&de(i=i.prepatch)&&i(t,e);var c=e.elm=t.elm,u=t.children,l=e.children;if(a&&s(e)){for(i=0;i<w.update.length;++i)w.update[i](t,e);de(i=o.hook)&&de(i=i.update)&&i(t,e)}fe(e.text)?de(u)&&de(l)?u!==l&&v(c,u,l,n,r):de(l)?(de(t.text)&&$.setTextContent(c,""),f(c,null,l,0,l.length-1,n)):de(u)?p(c,u,0,u.length-1):de(t.text)&&$.setTextContent(c,""):t.text!==e.text&&$.setTextContent(c,e.text),a&&de(i=o.hook)&&de(i=i.postpatch)&&i(t,e)}}function g(t,e,n){if(n&&t.parent)t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}function y(t,e,n){e.elm=t;var r=e.tag,i=e.data,o=e.children;if(de(i)&&(de(_=i.hook)&&de(_=_.init)&&_(e,!0),de(_=e.child)))return u(e,n),!0;if(de(r)){if(de(o)){var s=$.childNodes(t);if(s.length){var l=!0;if(s.length!==o.length)l=!1;else for(var f=0;f<o.length;f++)if(!y(s[f],o[f],n)){l=!1;break}if(!l)return!1}else a(e,o,n)}de(i)&&c(e,n)}return!0}var _,b,w={},C=t.modules,$=t.nodeOps;for(_=0;_<Pr.length;++_)for(w[Pr[_]]=[],b=0;b<C.length;++b)void 0!==C[b][Pr[_]]&&w[Pr[_]].push(C[b][Pr[_]]);return function(t,n,r,o){if(!n)return void(t&&d(t));var a,c,u=!1,l=[];if(t){var f=de(t.nodeType);if(!f&&pe(t,n))m(t,n,l,o);else{if(f){if(1===t.nodeType&&t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),r=!0),r&&y(t,n,l))return g(n,l,!0),t;t=e(t)}if(a=t.elm,c=$.parentNode(a),i(n,l),n.parent&&(n.parent.elm=n.elm,s(n)))for(var h=0;h<w.create.length;++h)w.create[h](Ar,n.parent);null!==c?($.insertBefore(c,n.elm,$.nextSibling(a)),p(c,[t],0,0)):de(t.tag)&&d(t)}}else u=!0,i(n,l);return g(n,l,u),n.elm}}function me(t,e){if(t.data.directives||e.data.directives){var n,r,i,o=t===Ar,a=ge(t.data.directives,t.context),s=ge(e.data.directives,e.context),c=[],u=[];for(n in s)r=a[n],i=s[n],r?(i.oldValue=r.value,_e(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(_e(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var l=function(){c.forEach(function(n){_e(n,"inserted",e,t)})};o?W(e.data.hook||(e.data.hook={}),"insert",l,"dir-insert"):l()}if(u.length&&W(e.data.hook||(e.data.hook={}),"postpatch",function(){u.forEach(function(n){_e(n,"componentUpdated",e,t)})},"dir-postpatch"),!o)for(n in a)s[n]||_e(a[n],"unbind",t)}}function ge(t,e){var n=Object.create(null);if(!t)return n;var r,i;for(r=0;r<t.length;r++)i=t[r],i.modifiers||(i.modifiers=jr),n[ye(i)]=i,i.def=Dt(e.$options,"directives",i.name,!0);return n}function ye(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function _e(t,e,n,r){var i=t.def&&t.def[e];i&&i(n.elm,t,n,r)}function be(t,e){if(t.data.attrs||e.data.attrs){var n,r,i,o=e.elm,a=t.data.attrs||{},s=e.data.attrs||{};s.__ob__&&(s=e.data.attrs=u({},s));for(n in s)r=s[n],i=a[n],i!==r&&we(o,n,r);for(n in a)null==s[n]&&(gr(n)?o.removeAttributeNS(mr,yr(n)):hr(n)||o.removeAttribute(n))}}function we(t,e,n){vr(e)?_r(n)?t.removeAttribute(e):t.setAttribute(e,e):hr(e)?t.setAttribute(e,_r(n)||"false"===n?"false":"true"):gr(e)?_r(n)?t.removeAttributeNS(mr,yr(e)):t.setAttributeNS(mr,e,n):_r(n)?t.removeAttribute(e):t.setAttribute(e,n)}function Ce(t,e){var n=e.elm,r=e.data,i=t.data;if(r.staticClass||r.class||i&&(i.staticClass||i.class)){var o=Ft(e),a=n._transitionClasses;a&&(o=Kt(o,Wt(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}function $e(t,e){if(t.data.on||e.data.on){var n=e.data.on||{},r=t.data.on||{},i=e.elm._v_add||(e.elm._v_add=function(t,n,r){e.elm.addEventListener(t,n,r)}),o=e.elm._v_remove||(e.elm._v_remove=function(t,n){e.elm.removeEventListener(t,n)});G(n,r,i,o,e.context)}}function ke(t,e){if(t.data.domProps||e.data.domProps){var n,r,i=e.elm,o=t.data.domProps||{},a=e.data.domProps||{};a.__ob__&&(a=e.data.domProps=u({},a));for(n in o)null==a[n]&&(i[n]="");for(n in a)if("textContent"!==n&&"innerHTML"!==n||!e.children||(e.children.length=0),r=a[n],"value"===n){i._value=r;var s=null==r?"":String(r);i.value===s||i.composing||(i.value=s)}else i[n]=r}}function xe(t,e){if(t.data&&t.data.style||e.data.style){var n,r,i=e.elm,o=t.data.style||{},a=e.data.style||{};if("string"==typeof a)return void(i.style.cssText=a);var s=a.__ob__;Array.isArray(a)&&(a=e.data.style=d(a)),s&&(a=e.data.style=u({},a));for(r in o)null==a[r]&&Ir(i,r,"");for(r in a)n=a[r],n!==o[r]&&Ir(i,r,null==n?"":n)}}function Oe(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-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 Ae(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Pe(t){Gr(function(){Gr(t)})}function Se(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Oe(t,e)}function je(t,e){t._transitionClasses&&r(t._transitionClasses,e),Ae(t,e)}function Te(t,e,n){var r=Ee(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Hr?qr:Wr,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),t.addEventListener(s,l)}function Ee(t,e){var n,r=window.getComputedStyle(t),i=r[zr+"Delay"].split(", "),o=r[zr+"Duration"].split(", "),a=De(i,o),s=r[Kr+"Delay"].split(", "),c=r[Kr+"Duration"].split(", "),u=De(s,c),l=0,f=0;e===Hr?a>0&&(n=Hr,l=a,f=o.length):e===Fr?u>0&&(n=Fr,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Hr:Fr:null,f=n?n===Hr?o.length:c.length:0);var d=n===Hr&&Jr.test(r[zr+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function De(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Le(e)+Le(t[n])}))}function Le(t){return 1e3*Number(t.slice(0,-1))}function Ne(t){var e=t.elm;e._leaveCb&&(e._leaveCb.cancelled=!0,e._leaveCb());var n=Ie(t.data.transition);if(n&&!e._enterCb&&1===e.nodeType){var r=n.css,i=n.type,o=n.enterClass,a=n.enterActiveClass,s=n.appearClass,c=n.appearActiveClass,u=n.beforeEnter,l=n.enter,f=n.afterEnter,d=n.enterCancelled,p=n.beforeAppear,h=n.appear,v=n.afterAppear,m=n.appearCancelled,g=er.$vnode,y=g&&g.parent?g.parent.context:er,_=!y._isMounted||!t.isRootInsert;if(!_||h||""===h){var b=_?s:o,w=_?c:a,C=_?p||u:u,$=_&&"function"==typeof h?h:l,k=_?v||f:f,x=_?m||d:d,O=r!==!1&&!jn,A=$&&($._length||$.length)>1,P=e._enterCb=Be(function(){O&&je(e,w),P.cancelled?(O&&je(e,b),x&&x(e)):k&&k(e),e._enterCb=null});t.data.show||W(t.data.hook||(t.data.hook={}),"insert",function(){var n=e.parentNode,r=n&&n._pending&&n._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),$&&$(e,P)},"transition-insert"),C&&C(e),O&&(Se(e,b),Se(e,w),Pe(function(){je(e,b),P.cancelled||A||Te(e,i,P)})),t.data.show&&$&&$(e,P),O||A||P()}}}function Me(t,e){function n(){m.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),u&&u(r),h&&(Se(r,s),Se(r,c),Pe(function(){je(r,s),m.cancelled||v||Te(r,a,m)})),l&&l(r,m),h||v||m())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Ie(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,c=i.leaveActiveClass,u=i.beforeLeave,l=i.leave,f=i.afterLeave,d=i.leaveCancelled,p=i.delayLeave,h=o!==!1&&!jn,v=l&&(l._length||l.length)>1,m=r._leaveCb=Be(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&je(r,c),m.cancelled?(h&&je(r,s),d&&d(r)):(e(),f&&f(r)),r._leaveCb=null});p?p(n):n()}}function Ie(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&u(e,Zr(t.name||"v")),u(e,t),e}return"string"==typeof t?Zr(t):void 0}}function Be(t){var e=!1;return function(){e||(e=!0,t())}}function Ue(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=m(r,Re(a))>-1,a.selected!==o&&(a.selected=o);else if(v(Re(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ve(t,e){for(var n=0,r=e.length;n<r;n++)if(v(Re(e[n]),t))return!1;return!0}function Re(t){return"_value"in t?t._value:t.value}function He(t){t.target.composing=!0}function Fe(t){t.target.composing=!1,ze(t.target,"input")}function ze(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function qe(t){return!t.child||t.data&&t.data.transition?t:qe(t.child._vnode)}function Ke(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ke(tt(e.children)):t}function We(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners; -for(var o in i)e[gn(o)]=i[o].fn;return e}function Ge(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Je(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ze(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Qe(t){t.data.newPos=t.elm.getBoundingClientRect()}function Xe(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Ye(t,e){return t.listOfPages.map(function(n){var r={on:{click:function(e){e.preventDefault(),t.currentPage=n}}},i=t.currentPage===n?"active":"";return e("li",{class:i},[e("a",r,n+1)])})}function tn(t,e){var n=new pi(t.listOfPages,t.currentPage,t.limit).generate();return n.map(function(n){var r={on:{click:function(e){e.preventDefault(),t.currentPage=an(n,t.limit,t.currentPage)}}},i=on(n,t.currentPage),o=Number.isInteger(n)?n+1:n;return e("li",{class:i},[e("a",r,o)])})}function en(t,e){var n=t.listOfPages.length-1,r={on:{click:function(e){e.preventDefault(),t.currentPage>0&&(t.currentPage-=1)}}},i={on:{click:function(e){e.preventDefault(),t.currentPage<n&&(t.currentPage+=1)}}},o={class:["next",t.currentPage>=n?"disabled":""]},a={class:["prev",t.currentPage<=0?"disabled":""]},s=e("li",a,[e("a",r,t.simple.prev)]),c=e("li",o,[e("a",i,t.simple.next)]);return[s,c]}function nn(t,e){return t.filter(function(t){return"paginate"===t.$vnode.componentOptions.tag}).find(function(t){return t.name===e})}function rn(t){return Array.apply(null,{length:t}).map(function(t,e){return e})}function on(t,e){var n=[];return t===li?n.push("left-arrow"):t===fi?n.push("right-arrow"):t===di?n.push("ellipses"):n.push("number"),t===e&&n.push("active"),n}function an(t,e,n){var r=Math.floor(n/e);return t===fi||t===di?(r+1)*e:t===li?(r-1)*e:t}function sn(t){return void 0===t&&(t=[]),t.reduce(function(t,e){return t[e]={list:[],page:0},t},{})}var cn,un=function(){},ln="undefined"!=typeof console;un=function(t,e,n){void 0===n&&(n="error"),ln&&console[n]("[vue-paginate]: "+t+" "+(e?dn(cn(e)):""))},cn=function(t){if(t.$root===t)return"root instance";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(e?"component <"+e+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")};var fn,dn=function(t){return"anonymous component"===t&&(t+=' - use the "name" option for better debugging messages.'),"\n(found in "+t+")"},pn={name:"paginate",props:{name:{type:String,required:!0},list:{type:Array,required:!0},per:{type:Number,default:3,validator:function(t){return t>0}},tag:{type:String,default:"ul"},class:{type:String}},data:function(){return{}},computed:{currentPage:{get:function(){if(this.$parent.paginate[this.name])return this.$parent.paginate[this.name].page},set:function(t){this.$parent.paginate[this.name].page=t}}},mounted:function(){return this.per<=0&&un('<paginate name="'+this.name+"\"> 'per' prop can't be 0 or less.",this.$parent),this.$parent.paginate[this.name]?void this.paginateList():void un("'"+this.name+"' is not registered in 'paginate' array.",this.$parent)},watch:{currentPage:function(){this.paginateList()},list:function(){this.currentPage=0,this.paginateList()},per:function(){this.currentPage=0,this.paginateList()}},methods:{paginateList:function(){var t=this.currentPage*this.per,e=this.list.slice(t,t+this.per);this.$parent.paginate[this.name].list=e}},render:function(t){var e=this.class?this.class:"";return t(this.tag,{class:e},this.$slots.default)}},hn=n("slot,component",!0),vn=Object.prototype.hasOwnProperty,mn=/-(\w)/g,gn=a(function(t){return t.replace(mn,function(t,e){return e?e.toUpperCase():""})}),yn=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),_n=/([^-])([A-Z])/g,bn=a(function(t){return t.replace(_n,"$1-$2").replace(_n,"$1-$2").toLowerCase()}),wn=Object.prototype.toString,Cn="[object Object]",$n=function(){return!1},kn={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:$n,isUnknownElement:$n,getTagNamespace:p,mustUseProp:$n,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},xn=/[^\w.$]/,On="__proto__"in{},An="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Pn=An&&window.navigator.userAgent.toLowerCase(),Sn=Pn&&/msie|trident/.test(Pn),jn=Pn&&Pn.indexOf("msie 9.0")>0,Tn=Pn&&Pn.indexOf("edge/")>0,En=Pn&&Pn.indexOf("android")>0,Dn=Pn&&/iphone|ipad|ipod|ios/.test(Pn),Ln=An&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Nn=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&b(Promise)){var i=Promise.resolve();e=function(){i.then(t),Dn&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!b(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var o=1,a=new MutationObserver(t),s=document.createTextNode(String(o));a.observe(s,{characterData:!0}),e=function(){o=(o+1)%2,s.data=String(o)}}return function(t,i){var o=i?function(){t.call(i)}:t;n.push(o),r||(r=!0,e())}}();fn="undefined"!=typeof Set&&b(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Mn=0,In=function(){this.id=Mn++,this.subs=[]};In.prototype.addSub=function(t){this.subs.push(t)},In.prototype.removeSub=function(t){r(this.subs,t)},In.prototype.depend=function(){In.target&&In.target.addDep(this)},In.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},In.target=null;var Bn=[],Un=[],Vn={},Rn=!1,Hn=!1,Fn=0,zn=0,qn=function(t,e,n,r){void 0===r&&(r={}),this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++zn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fn,this.newDepIds=new fn,"function"==typeof e?this.getter=e:(this.getter=_(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};qn.prototype.get=function(){w(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&O(t),C(),this.cleanupDeps(),t},qn.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))},qn.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},qn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():x(this)},qn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){if(!kn.errorHandler)throw t;kn.errorHandler.call(null,t,this.vm)}else this.cb.call(this.vm,t,e)}}},qn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},qn.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},qn.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||r(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Kn=new fn,Wn=Array.prototype,Gn=Object.create(Wn);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Wn[t];y(Gn,t,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=e.apply(this,i),s=this.__ob__;switch(t){case"push":o=i;break;case"unshift":o=i;break;case"splice":o=i.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a})});var Jn=Object.getOwnPropertyNames(Gn),Zn={shouldConvert:!0,isSettingProps:!1},Qn=function(t){if(this.value=t,this.dep=new In,this.vmCount=0,y(t,"__ob__",this),Array.isArray(t)){var e=On?P:S;e(t,Gn,Jn),this.observeArray(t)}else this.walk(t)};Qn.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)T(t,e[n],t[e[n]])},Qn.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)j(t[e])};var Xn={enumerable:!0,configurable:!0,get:p,set:p},Yn=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=o,this.context=a,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=s,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},tr=function(){var t=new Yn;return t.text="",t.isComment=!0,t},er=null,nr={init:st,prepatch:ct,insert:ut,destroy:lt},rr=Object.keys(nr),ir=0;$t(Ot),F(Ot),Ct(Ot),nt(Ot),_t(Ot);var or,ar=p,sr=kn.optionMergeStrategies;sr.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?At(r,i):i}:void 0:e?"function"!=typeof e?t:t?function(){return At(e.call(this),t.call(this))}:e:t},kn._lifecycleHooks.forEach(function(t){sr[t]=Pt}),kn._assetTypes.forEach(function(t){sr[t+"s"]=St}),sr.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};u(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},sr.props=sr.methods=sr.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return u(n,t),u(n,e),n};var cr=function(t,e){return void 0===e?t:e},ur=Object.freeze({defineReactive:T,_toString:t,toNumber:e,makeMap:n,isBuiltInTag:hn,remove:r,hasOwn:i,isPrimitive:o,cached:a,camelize:gn,capitalize:yn,hyphenate:bn,bind:s,toArray:c,extend:u,isObject:l,isPlainObject:f,toObject:d,noop:p,no:$n,genStaticKeys:h,looseEqual:v,looseIndexOf:m,isReserved:g,def:y,parsePath:_,hasProto:On,inBrowser:An,UA:Pn,isIE:Sn,isIE9:jn,isEdge:Tn,isAndroid:En,isIOS:Dn,devtools:Ln,nextTick:Nn,get _Set(){return fn},mergeOptions:Et,resolveAsset:Dt,get warn(){return ar},get formatComponentName(){return or},validateProp:Lt}),lr={name:"keep-alive",abstract:!0,created:function(){this.cache=Object.create(null)},render:function(){var t=tt(this.$slots.default);if(t&&t.componentOptions){var e=t.componentOptions,n=null==t.key?e.Ctor.cid+"::"+e.tag:t.key;this.cache[n]?t.child=this.cache[n].child:this.cache[n]=t,t.data.keepAlive=!0}return t},destroyed:function(){var t=this;for(var e in this.cache){var n=t.cache[e];rt(n.child,"deactivated"),n.child.$destroy()}}},fr={KeepAlive:lr};Ht(Ot),Object.defineProperty(Ot.prototype,"$isServer",{get:function(){return kn._isServer}}),Ot.version="2.0.5";var dr,pr=n("value,selected,checked,muted"),hr=n("contenteditable,draggable,spellcheck"),vr=n("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"),mr=(n("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,name,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,form,formaction,headers,<th>,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,type,usemap,value,width,wrap"),"http://www.w3.org/1999/xlink"),gr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},yr=function(t){return gr(t)?t.slice(6,t.length):""},_r=function(t){return null==t||t===!1},br={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",xhtml:"http://www.w3.org/1999/xhtm"},wr=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Cr=(n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0)),$r=function(t){return wr(t)||Cr(t)},kr=Object.create(null),xr=Object.freeze({createElement:Qt,createElementNS:Xt,createTextNode:Yt,createComment:te,insertBefore:ee,removeChild:ne,appendChild:re,parentNode:ie,nextSibling:oe,tagName:ae,setTextContent:se,childNodes:ce,setAttribute:ue}),Or={create:function(t,e){le(e)},update:function(t,e){t.data.ref!==e.data.ref&&(le(t,!0),le(e))},destroy:function(t){le(t,!0)}},Ar=new Yn("",{},[]),Pr=["create","update","remove","destroy"],Sr={create:me,update:me,destroy:function(t){me(t,Ar)}},jr=Object.create(null),Tr=[Or,Sr],Er={create:be,update:be},Dr={create:Ce,update:Ce},Lr={create:$e,update:$e},Nr={create:ke,update:ke},Mr=/^--/,Ir=function(t,e,n){Mr.test(e)?t.style.setProperty(e,n):t.style[Ur(e)]=n},Br=["Webkit","Moz","ms"],Ur=a(function(t){if(dr=dr||document.createElement("div"),t=gn(t),"filter"!==t&&t in dr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Br.length;n++){var r=Br[n]+e;if(r in dr.style)return r}}),Vr={create:xe,update:xe},Rr=An&&!jn,Hr="transition",Fr="animation",zr="transition",qr="transitionend",Kr="animation",Wr="animationend";Rr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(zr="WebkitTransition",qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Kr="WebkitAnimation",Wr="webkitAnimationEnd"));var Gr=An&&window.requestAnimationFrame||setTimeout,Jr=/\b(transform|all)(,|$)/,Zr=a(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),Qr=An?{create:function(t,e){e.data.show||Ne(e)},remove:function(t,e){t.data.show?e():Me(t,e)}}:{},Xr=[Er,Dr,Lr,Nr,Vr,Qr],Yr=Xr.concat(Tr),ti=ve({nodeOps:xr,modules:Yr});jn&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ze(t,"input")});var ei={inserted:function(t,e,n){if("select"===n.tag){var r=function(){Ue(t,e,n.context)};r(),(Sn||Tn)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==t.type||e.modifiers.lazy||(En||(t.addEventListener("compositionstart",He),t.addEventListener("compositionend",Fe)),jn&&(t.vmodel=!0))},componentUpdated:function(t,e,n){if("select"===n.tag){Ue(t,e,n.context);var r=t.multiple?e.value.some(function(e){return Ve(e,t.options)}):e.value!==e.oldValue&&Ve(e.value,t.options);r&&ze(t,"change")}}},ni={bind:function(t,e,n){var r=e.value;n=qe(n);var i=n.data&&n.data.transition;r&&i&&!jn&&Ne(n);var o="none"===t.style.display?"":t.style.display;t.style.display=r?o:"none",t.__vOriginalDisplay=o},update:function(t,e,n){var r=e.value,i=e.oldValue;if(r!==i){n=qe(n);var o=n.data&&n.data.transition;o&&!jn?r?(Ne(n),t.style.display=t.__vOriginalDisplay):Me(n,function(){t.style.display="none"}):t.style.display=r?t.__vOriginalDisplay:"none"}}},ri={model:ei,show:ni},ii={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String},oi={name:"transition",props:ii,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag}),n.length)){var r=this.mode,i=n[0];if(Je(this.$vnode))return i;var o=Ke(i);if(!o)return i;if(this._leaving)return Ge(t,i);var a=o.key=null==o.key||o.isStatic?"__v"+(o.tag+this._uid)+"__":o.key,s=(o.data||(o.data={})).transition=We(this),c=this._vnode,l=Ke(c);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),l&&l.data&&l.key!==a){var f=l.data.transition=u({},s);if("out-in"===r)return this._leaving=!0,W(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},a),Ge(t,i);if("in-out"===r){var d,p=function(){d()};W(s,"afterEnter",p,a),W(s,"enterCancelled",p,a),W(f,"delayLeave",function(t){d=t},a)}}return i}}},ai=u({tag:String,moveClass:String},ii);delete ai.mode;var si={props:ai,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=We(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}this.kept=t(e,null,u),this.removed=l}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||this.name+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(Ze),t.forEach(Qe),t.forEach(Xe);document.body.offsetHeight;t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Se(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(qr,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(qr,t),n._moveCb=null,je(n,e))})}})}},methods:{hasMove:function(t,e){if(!Rr)return!1;if(null!=this._hasMove)return this._hasMove;Se(t,e);var n=Ee(t);return je(t,e),this._hasMove=n.hasTransform}}},ci={Transition:oi,TransitionGroup:si};Ot.config.isUnknownElement=Jt,Ot.config.isReservedTag=$r,Ot.config.getTagNamespace=Gt,Ot.config.mustUseProp=pr,u(Ot.options.directives,ri),u(Ot.options.components,ci),Ot.prototype.__patch__=kn._isServer?p:ti,Ot.prototype.$mount=function(t,e){return t=t&&!kn._isServer?Zt(t):void 0,this._mount(t,e)},setTimeout(function(){kn.devtools&&Ln&&Ln.emit("init",Ot)},0);var ui=Ot,li="«",fi="»",di="…",pi=function(t,e,n){this.listOfPages=t,this.lastPage=t.length-1,this.currentPage=e===this.lastPage?this.lastPage-1:e,this.limit=n};pi.prototype.generate=function(){var t=this._buildFirstHalf(),e=this._buildSecondHalf();return t.concat(e)},pi.prototype._buildFirstHalf=function(){var t=this._allPagesButLast().slice(this._currentChunkIndex(),this._currentChunkIndex()+this.limit);return this.currentPage>=this.limit&&t.unshift(li),this.lastPage-this.limit>this._currentChunkIndex()&&t.push(di),t},pi.prototype._buildSecondHalf=function(){var t=[this.lastPage];return this._currentChunkIndex()+this.limit<this.lastPage&&t.push(fi),t},pi.prototype._currentChunkIndex=function(){var t=Math.floor(this.currentPage/this.limit);return t*this.limit},pi.prototype._allPagesButLast=function(){var t=this;return this.listOfPages.filter(function(e){return e!==t.lastPage})};var hi={name:"paginate-links",props:{for:{type:String,required:!0},limit:{type:Number,default:0},simple:{type:Object,default:null,validator:function(t){return t.next&&t.prev}}},data:function(){return{listOfPages:[]}},computed:{currentPage:{get:function(){if(this.$parent.paginate[this.for])return this.$parent.paginate[this.for].page},set:function(t){this.$parent.paginate[this.for].page=t}}},mounted:function(){var t=this;this.simple&&this.limit&&un('<paginate-links for="'+this.for+"\"> 'simple' and 'limit' props can't be used at the same time. In this case, 'simple' will take precedence, and 'limit' will be ignored.",this.$parent,"warn"),this.simple&&!this.simple.next&&un('<paginate-links for="'+this.for+"\"> 'simple' prop doesn't contain 'next' value.",this.$parent),this.simple&&!this.simple.prev&&un('<paginate-links for="'+this.for+"\"> 'simple' prop doesn't contain 'prev' value.",this.$parent),ui.nextTick(function(){t.updateListOfPages()})},watch:{"$parent.paginate":{handler:function(){this.updateListOfPages()},deep:!0}},methods:{updateListOfPages:function(){var t=nn(this.$parent.$children,this.for);if(!t)return void un('<paginate-links for="'+this.for+'"> can\'t be used without its companion <paginate name="'+this.for+'">',this.$parent);var e=Math.ceil(t.list.length/t.per);this.listOfPages=rn(e)}},render:function(t){var e=this.simple?en(this,t):this.limit>0?tn(this,t):Ye(this,t);return t("ul",{class:["paginate-links",this.for]},e)}},vi={};return vi.install=function(t){t.mixin({created:function(){"undefined"!==this.paginate&&this.paginate instanceof Array&&(this.paginate=sn(this.paginate))},methods:{paginated:function(t){return this.paginate&&this.paginate[t]?this.paginate[t].list:void un("'"+t+"' is not registered in 'paginate' array.",this)}}}),t.component("paginate",pn),t.component("paginate-links",hi)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(vi),vi}); \ No newline at end of file +for(var o in i)e[gn(o)]=i[o].fn;return e}function Ge(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Je(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ze(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Qe(t){t.data.newPos=t.elm.getBoundingClientRect()}function Xe(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Ye(t,e){return t.listOfPages.map(function(n){var r={on:{click:function(e){e.preventDefault(),t.currentPage=n}}},i=t.currentPage===n?"active":"";return e("li",{class:i},[e("a",r,n+1)])})}function tn(t,e){var n=new pi(t.listOfPages,t.currentPage,t.limit).generate();return n.map(function(n){var r={on:{click:function(e){e.preventDefault(),t.currentPage=an(n,t.limit,t.currentPage)}}},i=on(n,t.currentPage),o=Number.isInteger(n)?n+1:n;return e("li",{class:i},[e("a",r,o)])})}function en(t,e){var n=t.listOfPages.length-1,r={on:{click:function(e){e.preventDefault(),t.currentPage>0&&(t.currentPage-=1)}}},i={on:{click:function(e){e.preventDefault(),t.currentPage<n&&(t.currentPage+=1)}}},o={class:["next",t.currentPage>=n?"disabled":""]},a={class:["prev",t.currentPage<=0?"disabled":""]},s=e("li",a,[e("a",r,t.simple.prev)]),c=e("li",o,[e("a",i,t.simple.next)]);return[s,c]}function nn(t,e){return t.filter(function(t){return"paginate"===t.$vnode.componentOptions.tag}).find(function(t){return t.name===e})}function rn(t){return Array.apply(null,{length:t}).map(function(t,e){return e})}function on(t,e){var n=[];return t===li?n.push("left-arrow"):t===fi?n.push("right-arrow"):t===di?n.push("ellipses"):n.push("number"),t===e&&n.push("active"),n}function an(t,e,n){var r=Math.floor(n/e);return t===fi||t===di?(r+1)*e:t===li?(r-1)*e:t}function sn(t){return void 0===t&&(t=[]),t.reduce(function(t,e){return t[e]={list:[],page:0},t},{})}var cn,un=function(){},ln="undefined"!=typeof console;un=function(t,e,n){void 0===n&&(n="error"),ln&&console[n]("[vue-paginate]: "+t+" "+(e?dn(cn(e)):""))},cn=function(t){if(t.$root===t)return"root instance";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(e?"component <"+e+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")};var fn,dn=function(t){return"anonymous component"===t&&(t+=' - use the "name" option for better debugging messages.'),"\n(found in "+t+")"},pn={name:"paginate",props:{name:{type:String,required:!0},list:{type:Array,required:!0},per:{type:Number,default:3,validator:function(t){return t>0}},tag:{type:String,default:"ul"},class:{type:String}},data:function(){return{}},computed:{currentPage:{get:function(){if(this.$parent.paginate[this.name])return this.$parent.paginate[this.name].page},set:function(t){this.$parent.paginate[this.name].page=t}}},mounted:function(){return this.per<=0&&un('<paginate name="'+this.name+"\"> 'per' prop can't be 0 or less.",this.$parent),this.$parent.paginate[this.name]?void this.paginateList():void un("'"+this.name+"' is not registered in 'paginate' array.",this.$parent)},watch:{currentPage:function(){this.paginateList()},list:function(){this.currentPage=0,this.paginateList()},per:function(){this.currentPage=0,this.paginateList()}},methods:{paginateList:function(){var t=this.currentPage*this.per,e=this.list.slice(t,t+this.per);this.$parent.paginate[this.name].list=e}},render:function(t){var e=this.class?this.class:"";return t(this.tag,{class:e},this.$slots.default)}},hn=n("slot,component",!0),vn=Object.prototype.hasOwnProperty,mn=/-(\w)/g,gn=a(function(t){return t.replace(mn,function(t,e){return e?e.toUpperCase():""})}),yn=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),_n=/([^-])([A-Z])/g,bn=a(function(t){return t.replace(_n,"$1-$2").replace(_n,"$1-$2").toLowerCase()}),wn=Object.prototype.toString,Cn="[object Object]",$n=function(){return!1},kn={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:$n,isUnknownElement:$n,getTagNamespace:p,mustUseProp:$n,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},xn=/[^\w.$]/,On="__proto__"in{},An="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Pn=An&&window.navigator.userAgent.toLowerCase(),Sn=Pn&&/msie|trident/.test(Pn),jn=Pn&&Pn.indexOf("msie 9.0")>0,Tn=Pn&&Pn.indexOf("edge/")>0,En=Pn&&Pn.indexOf("android")>0,Dn=Pn&&/iphone|ipad|ipod|ios/.test(Pn),Ln=An&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Nn=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&b(Promise)){var i=Promise.resolve();e=function(){i.then(t),Dn&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!b(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var o=1,a=new MutationObserver(t),s=document.createTextNode(String(o));a.observe(s,{characterData:!0}),e=function(){o=(o+1)%2,s.data=String(o)}}return function(t,i){var o=i?function(){t.call(i)}:t;n.push(o),r||(r=!0,e())}}();fn="undefined"!=typeof Set&&b(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Mn=0,In=function(){this.id=Mn++,this.subs=[]};In.prototype.addSub=function(t){this.subs.push(t)},In.prototype.removeSub=function(t){r(this.subs,t)},In.prototype.depend=function(){In.target&&In.target.addDep(this)},In.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},In.target=null;var Bn=[],Un=[],Vn={},Rn=!1,Hn=!1,Fn=0,zn=0,qn=function(t,e,n,r){void 0===r&&(r={}),this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++zn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fn,this.newDepIds=new fn,"function"==typeof e?this.getter=e:(this.getter=_(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};qn.prototype.get=function(){w(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&O(t),C(),this.cleanupDeps(),t},qn.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))},qn.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},qn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():x(this)},qn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){if(!kn.errorHandler)throw t;kn.errorHandler.call(null,t,this.vm)}else this.cb.call(this.vm,t,e)}}},qn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},qn.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},qn.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||r(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Kn=new fn,Wn=Array.prototype,Gn=Object.create(Wn);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Wn[t];y(Gn,t,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=e.apply(this,i),s=this.__ob__;switch(t){case"push":o=i;break;case"unshift":o=i;break;case"splice":o=i.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a})});var Jn=Object.getOwnPropertyNames(Gn),Zn={shouldConvert:!0,isSettingProps:!1},Qn=function(t){if(this.value=t,this.dep=new In,this.vmCount=0,y(t,"__ob__",this),Array.isArray(t)){var e=On?P:S;e(t,Gn,Jn),this.observeArray(t)}else this.walk(t)};Qn.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)T(t,e[n],t[e[n]])},Qn.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)j(t[e])};var Xn={enumerable:!0,configurable:!0,get:p,set:p},Yn=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=o,this.context=a,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=s,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},tr=function(){var t=new Yn;return t.text="",t.isComment=!0,t},er=null,nr={init:st,prepatch:ct,insert:ut,destroy:lt},rr=Object.keys(nr),ir=0;$t(Ot),F(Ot),Ct(Ot),nt(Ot),_t(Ot);var or,ar=p,sr=kn.optionMergeStrategies;sr.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?At(r,i):i}:void 0:e?"function"!=typeof e?t:t?function(){return At(e.call(this),t.call(this))}:e:t},kn._lifecycleHooks.forEach(function(t){sr[t]=Pt}),kn._assetTypes.forEach(function(t){sr[t+"s"]=St}),sr.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};u(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},sr.props=sr.methods=sr.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return u(n,t),u(n,e),n};var cr=function(t,e){return void 0===e?t:e},ur=Object.freeze({defineReactive:T,_toString:t,toNumber:e,makeMap:n,isBuiltInTag:hn,remove:r,hasOwn:i,isPrimitive:o,cached:a,camelize:gn,capitalize:yn,hyphenate:bn,bind:s,toArray:c,extend:u,isObject:l,isPlainObject:f,toObject:d,noop:p,no:$n,genStaticKeys:h,looseEqual:v,looseIndexOf:m,isReserved:g,def:y,parsePath:_,hasProto:On,inBrowser:An,UA:Pn,isIE:Sn,isIE9:jn,isEdge:Tn,isAndroid:En,isIOS:Dn,devtools:Ln,nextTick:Nn,get _Set(){return fn},mergeOptions:Et,resolveAsset:Dt,get warn(){return ar},get formatComponentName(){return or},validateProp:Lt}),lr={name:"keep-alive",abstract:!0,created:function(){this.cache=Object.create(null)},render:function(){var t=tt(this.$slots.default);if(t&&t.componentOptions){var e=t.componentOptions,n=null==t.key?e.Ctor.cid+"::"+e.tag:t.key;this.cache[n]?t.child=this.cache[n].child:this.cache[n]=t,t.data.keepAlive=!0}return t},destroyed:function(){var t=this;for(var e in this.cache){var n=t.cache[e];rt(n.child,"deactivated"),n.child.$destroy()}}},fr={KeepAlive:lr};Ht(Ot),Object.defineProperty(Ot.prototype,"$isServer",{get:function(){return kn._isServer}}),Ot.version="2.0.5";var dr,pr=n("value,selected,checked,muted"),hr=n("contenteditable,draggable,spellcheck"),vr=n("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"),mr=(n("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,name,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,form,formaction,headers,<th>,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,type,usemap,value,width,wrap"),"http://www.w3.org/1999/xlink"),gr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},yr=function(t){return gr(t)?t.slice(6,t.length):""},_r=function(t){return null==t||t===!1},br={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",xhtml:"http://www.w3.org/1999/xhtm"},wr=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Cr=(n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0)),$r=function(t){return wr(t)||Cr(t)},kr=Object.create(null),xr=Object.freeze({createElement:Qt,createElementNS:Xt,createTextNode:Yt,createComment:te,insertBefore:ee,removeChild:ne,appendChild:re,parentNode:ie,nextSibling:oe,tagName:ae,setTextContent:se,childNodes:ce,setAttribute:ue}),Or={create:function(t,e){le(e)},update:function(t,e){t.data.ref!==e.data.ref&&(le(t,!0),le(e))},destroy:function(t){le(t,!0)}},Ar=new Yn("",{},[]),Pr=["create","update","remove","destroy"],Sr={create:me,update:me,destroy:function(t){me(t,Ar)}},jr=Object.create(null),Tr=[Or,Sr],Er={create:be,update:be},Dr={create:Ce,update:Ce},Lr={create:$e,update:$e},Nr={create:ke,update:ke},Mr=/^--/,Ir=function(t,e,n){Mr.test(e)?t.style.setProperty(e,n):t.style[Ur(e)]=n},Br=["Webkit","Moz","ms"],Ur=a(function(t){if(dr=dr||document.createElement("div"),t=gn(t),"filter"!==t&&t in dr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Br.length;n++){var r=Br[n]+e;if(r in dr.style)return r}}),Vr={create:xe,update:xe},Rr=An&&!jn,Hr="transition",Fr="animation",zr="transition",qr="transitionend",Kr="animation",Wr="animationend";Rr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(zr="WebkitTransition",qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Kr="WebkitAnimation",Wr="webkitAnimationEnd"));var Gr=An&&window.requestAnimationFrame||setTimeout,Jr=/\b(transform|all)(,|$)/,Zr=a(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),Qr=An?{create:function(t,e){e.data.show||Ne(e)},remove:function(t,e){t.data.show?e():Me(t,e)}}:{},Xr=[Er,Dr,Lr,Nr,Vr,Qr],Yr=Xr.concat(Tr),ti=ve({nodeOps:xr,modules:Yr});jn&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ze(t,"input")});var ei={inserted:function(t,e,n){if("select"===n.tag){var r=function(){Ue(t,e,n.context)};r(),(Sn||Tn)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==t.type||e.modifiers.lazy||(En||(t.addEventListener("compositionstart",He),t.addEventListener("compositionend",Fe)),jn&&(t.vmodel=!0))},componentUpdated:function(t,e,n){if("select"===n.tag){Ue(t,e,n.context);var r=t.multiple?e.value.some(function(e){return Ve(e,t.options)}):e.value!==e.oldValue&&Ve(e.value,t.options);r&&ze(t,"change")}}},ni={bind:function(t,e,n){var r=e.value;n=qe(n);var i=n.data&&n.data.transition;r&&i&&!jn&&Ne(n);var o="none"===t.style.display?"":t.style.display;t.style.display=r?o:"none",t.__vOriginalDisplay=o},update:function(t,e,n){var r=e.value,i=e.oldValue;if(r!==i){n=qe(n);var o=n.data&&n.data.transition;o&&!jn?r?(Ne(n),t.style.display=t.__vOriginalDisplay):Me(n,function(){t.style.display="none"}):t.style.display=r?t.__vOriginalDisplay:"none"}}},ri={model:ei,show:ni},ii={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String},oi={name:"transition",props:ii,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag}),n.length)){var r=this.mode,i=n[0];if(Je(this.$vnode))return i;var o=Ke(i);if(!o)return i;if(this._leaving)return Ge(t,i);var a=o.key=null==o.key||o.isStatic?"__v"+(o.tag+this._uid)+"__":o.key,s=(o.data||(o.data={})).transition=We(this),c=this._vnode,l=Ke(c);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),l&&l.data&&l.key!==a){var f=l.data.transition=u({},s);if("out-in"===r)return this._leaving=!0,W(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},a),Ge(t,i);if("in-out"===r){var d,p=function(){d()};W(s,"afterEnter",p,a),W(s,"enterCancelled",p,a),W(f,"delayLeave",function(t){d=t},a)}}return i}}},ai=u({tag:String,moveClass:String},ii);delete ai.mode;var si={props:ai,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=We(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}this.kept=t(e,null,u),this.removed=l}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||this.name+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(Ze),t.forEach(Qe),t.forEach(Xe);document.body.offsetHeight;t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Se(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(qr,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(qr,t),n._moveCb=null,je(n,e))})}})}},methods:{hasMove:function(t,e){if(!Rr)return!1;if(null!=this._hasMove)return this._hasMove;Se(t,e);var n=Ee(t);return je(t,e),this._hasMove=n.hasTransform}}},ci={Transition:oi,TransitionGroup:si};Ot.config.isUnknownElement=Jt,Ot.config.isReservedTag=$r,Ot.config.getTagNamespace=Gt,Ot.config.mustUseProp=pr,u(Ot.options.directives,ri),u(Ot.options.components,ci),Ot.prototype.__patch__=kn._isServer?p:ti,Ot.prototype.$mount=function(t,e){return t=t&&!kn._isServer?Zt(t):void 0,this._mount(t,e)},setTimeout(function(){kn.devtools&&Ln&&Ln.emit("init",Ot)},0);var ui=Ot,li="«",fi="»",di="…",pi=function(t,e,n){this.listOfPages=t,this.lastPage=t.length-1,this.currentPage=e===this.lastPage?this.lastPage-1:e,this.limit=n};pi.prototype.generate=function(){var t=this._buildFirstHalf(),e=this._buildSecondHalf();return t.concat(e)},pi.prototype._buildFirstHalf=function(){var t=this._allPagesButLast().slice(this._currentChunkIndex(),this._currentChunkIndex()+this.limit);return this.currentPage>=this.limit&&t.unshift(li),this.lastPage-this.limit>this._currentChunkIndex()&&t.push(di),t},pi.prototype._buildSecondHalf=function(){var t=[this.lastPage];return this._currentChunkIndex()+this.limit<this.lastPage&&t.push(fi),t},pi.prototype._currentChunkIndex=function(){var t=Math.floor(this.currentPage/this.limit);return t*this.limit},pi.prototype._allPagesButLast=function(){var t=this;return this.listOfPages.filter(function(e){return e!==t.lastPage})};var hi={name:"paginate-links",props:{for:{type:String,required:!0},limit:{type:Number,default:0},simple:{type:Object,default:null,validator:function(t){return t.next&&t.prev}}},data:function(){return{listOfPages:[]}},computed:{currentPage:{get:function(){if(this.$parent.paginate[this.for])return this.$parent.paginate[this.for].page},set:function(t){this.$parent.paginate[this.for].page=t}}},mounted:function(){var t=this;this.simple&&this.limit&&un('<paginate-links for="'+this.for+"\"> 'simple' and 'limit' props can't be used at the same time. In this case, 'simple' will take precedence, and 'limit' will be ignored.",this.$parent,"warn"),this.simple&&!this.simple.next&&un('<paginate-links for="'+this.for+"\"> 'simple' prop doesn't contain 'next' value.",this.$parent),this.simple&&!this.simple.prev&&un('<paginate-links for="'+this.for+"\"> 'simple' prop doesn't contain 'prev' value.",this.$parent),ui.nextTick(function(){t.updateListOfPages()})},watch:{"$parent.paginate":{handler:function(){this.updateListOfPages()},deep:!0},currentPage:function(t,e){this.$emit("change",t+1,e+1)}},methods:{updateListOfPages:function(){var t=nn(this.$parent.$children,this.for);if(!t)return void un('<paginate-links for="'+this.for+'"> can\'t be used without its companion <paginate name="'+this.for+'">',this.$parent);var e=Math.ceil(t.list.length/t.per);this.listOfPages=rn(e)}},render:function(t){var e=this.simple?en(this,t):this.limit>0?tn(this,t):Ye(this,t);return t("ul",{class:["paginate-links",this.for]},e)}},vi={};return vi.install=function(t){t.mixin({created:function(){"undefined"!==this.paginate&&this.paginate instanceof Array&&(this.paginate=sn(this.paginate))},methods:{paginated:function(t){return this.paginate&&this.paginate[t]?this.paginate[t].list:void un("'"+t+"' is not registered in 'paginate' array.",this)}}}),t.component("paginate",pn),t.component("paginate-links",hi)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(vi),vi}); \ No newline at end of file diff --git a/package.json b/package.json index 82c4fa2..b8c7811 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-paginate", - "version": "3.0.0", + "version": "3.1.0", "description": "A simple vue.js plugin to paginate data", "main": "dist/vue-paginate.js", "scripts": { diff --git a/src/components/PaginateLinks.js b/src/components/PaginateLinks.js index c74191f..2bc914d 100644 --- a/src/components/PaginateLinks.js +++ b/src/components/PaginateLinks.js @@ -59,6 +59,9 @@ export default { this.updateListOfPages() }, deep: true + }, + currentPage (toPage, fromPage) { + this.$emit('change', toPage + 1, fromPage + 1) } }, methods: {