diff --git a/.gitignore b/.gitignore index 625cfa97c801..4cf32f624302 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,7 @@ parent.iml /solr/example/solr/zoo_data /solr/example/work/* /solr/example/exampledocs/post.jar - +/solr/example/techproducts/* /solr/example/example-DIH/**/data /solr/example/example-DIH/**/dataimport.properties /solr/example/example-DIH/solr/mail/lib/*.jar @@ -48,7 +48,7 @@ solr/contrib/dataimporthandler/test-lib/ solr/contrib/morphlines-core/test-lib/ solr/core/test-lib/ - +solr/server/solr/* solr/server/logs/ solr/server/solr/zoo_data/ solr/server/solr-webapp diff --git a/solr/contrib/ltr/example/libsvm_formatter.pyc b/solr/contrib/ltr/example/libsvm_formatter.pyc new file mode 100644 index 000000000000..06aa52c1c595 Binary files /dev/null and b/solr/contrib/ltr/example/libsvm_formatter.pyc differ diff --git a/solr/contrib/ltr/example/webui/README.md b/solr/contrib/ltr/example/webui/README.md new file mode 100644 index 000000000000..880895609dd7 --- /dev/null +++ b/solr/contrib/ltr/example/webui/README.md @@ -0,0 +1,19 @@ +# WebUI for Apache Solr LTR + +## Build Setup + +``` bash +# install dependencies +npm install + +# serve with hot reload at localhost:3000 +npm run dev + +# build for production with minification +npm run build +``` +> Tip: +> Built files are meant to be served over an HTTP server. +> Opening index.html over file:// won't work. + +For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). diff --git a/solr/contrib/ltr/example/webui/imgs/1.png b/solr/contrib/ltr/example/webui/imgs/1.png new file mode 100644 index 000000000000..5506e713ba97 Binary files /dev/null and b/solr/contrib/ltr/example/webui/imgs/1.png differ diff --git a/solr/contrib/ltr/example/webui/imgs/2.png b/solr/contrib/ltr/example/webui/imgs/2.png new file mode 100644 index 000000000000..86834e7679b6 Binary files /dev/null and b/solr/contrib/ltr/example/webui/imgs/2.png differ diff --git a/solr/contrib/ltr/example/webui/solrconfig/solrconfig.xml b/solr/contrib/ltr/example/webui/solrconfig/solrconfig.xml new file mode 100644 index 000000000000..b84a135c835c --- /dev/null +++ b/solr/contrib/ltr/example/webui/solrconfig/solrconfig.xml @@ -0,0 +1,1432 @@ + + + + + + + + + 7.0.0 + + + + + + + + + + + + + + + + + + + + + + + + ${solr.data.dir:} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${solr.lock.type:native} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${solr.ulog.dir:} + ${solr.ulog.numVersionBuckets:65536} + + + + + ${solr.autoCommit.maxTime:15000} + false + + + + + + ${solr.autoSoftCommit.maxTime:-1} + + + + + + + + + + + + + + + + 1024 + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + 20 + + + 200 + + + + + + + + + + + + + + + + false + + + 2 + + + + + + + + + + + + + + + + + + + + + + + explicit + 10 + + + + + + + + + + + + + + + explicit + json + true + + + + + + + + explicit + + + + + + _text_ + + + + + + add-unknown-fields-to-the-schema + + + + + + + true + ignored_ + _text_ + + + + + + + + + text_general + + + + + + default + _text_ + solr.DirectSolrSpellChecker + + internal + + 0.5 + + 2 + + 1 + + 5 + + 4 + + 0.01 + + + + + + + + + + + + default + on + true + 10 + 5 + 5 + true + true + 10 + 5 + + + spellcheck + + + + + + + + + + true + + + tvComponent + + + + + + + + + + + + true + false + + + terms + + + + + + + + string + elevate.xml + + + + + + explicit + + + elevator + + + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + + + + + + + + + + + + ,, + ,, + ,, + ,, + ,]]> + ]]> + + + + + + 10 + .,!? + + + + + + + WORD + + + en + US + + + + + + + + + + + + + + + + + [^\w-\.] + _ + + + + + + + yyyy-MM-dd'T'HH:mm:ss.SSSZ + yyyy-MM-dd'T'HH:mm:ss,SSSZ + yyyy-MM-dd'T'HH:mm:ss.SSS + yyyy-MM-dd'T'HH:mm:ss,SSS + yyyy-MM-dd'T'HH:mm:ssZ + yyyy-MM-dd'T'HH:mm:ss + yyyy-MM-dd'T'HH:mmZ + yyyy-MM-dd'T'HH:mm + yyyy-MM-dd HH:mm:ss.SSSZ + yyyy-MM-dd HH:mm:ss,SSSZ + yyyy-MM-dd HH:mm:ss.SSS + yyyy-MM-dd HH:mm:ss,SSS + yyyy-MM-dd HH:mm:ssZ + yyyy-MM-dd HH:mm:ss + yyyy-MM-dd HH:mmZ + yyyy-MM-dd HH:mm + yyyy-MM-dd + + + + strings + + java.lang.Boolean + booleans + + + java.util.Date + tdates + + + java.lang.Long + java.lang.Integer + tlongs + + + java.lang.Number + tdoubles + + + + + + + + + + + + + + + + + + + + + text/plain; charset=UTF-8 + + + + + ${velocity.template.base.dir:} + ${velocity.solr.resource.loader.enabled:true} + ${velocity.params.resource.loader.enabled:false} + + + + + 5 + + + + + + + + + + + + + + + QUERY_DOC_FV + + diff --git a/solr/contrib/ltr/example/webui/web/README.md b/solr/contrib/ltr/example/webui/web/README.md new file mode 100644 index 000000000000..880895609dd7 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/README.md @@ -0,0 +1,19 @@ +# WebUI for Apache Solr LTR + +## Build Setup + +``` bash +# install dependencies +npm install + +# serve with hot reload at localhost:3000 +npm run dev + +# build for production with minification +npm run build +``` +> Tip: +> Built files are meant to be served over an HTTP server. +> Opening index.html over file:// won't work. + +For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). diff --git a/solr/contrib/ltr/example/webui/web/config/dev.env.js b/solr/contrib/ltr/example/webui/web/config/dev.env.js new file mode 100644 index 000000000000..efead7c840a1 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/config/dev.env.js @@ -0,0 +1,6 @@ +var merge = require('webpack-merge') +var prodEnv = require('./prod.env') + +module.exports = merge(prodEnv, { + NODE_ENV: '"development"' +}) diff --git a/solr/contrib/ltr/example/webui/web/config/index.js b/solr/contrib/ltr/example/webui/web/config/index.js new file mode 100644 index 000000000000..4d4518a8d397 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/config/index.js @@ -0,0 +1,32 @@ +// see http://vuejs-templates.github.io/webpack for documentation. +var path = require('path') + +module.exports = { + build: { + env: require('./prod.env'), + index: path.resolve(__dirname, '../dist/index.html'), + assetsRoot: path.resolve(__dirname, '../dist'), + assetsSubDirectory: 'static', + assetsPublicPath: './', + productionSourceMap: true, + // Gzip off by default as many popular static hosts such as + // Surge or Netlify already gzip all static assets for you. + // Before setting to `true`, make sure to: + // npm install --save-dev compression-webpack-plugin + productionGzip: false, + productionGzipExtensions: ['js', 'css'] + }, + dev: { + env: require('./dev.env'), + port: 3000, + assetsSubDirectory: 'static', + assetsPublicPath: '/', + proxyTable: {}, + // CSS Sourcemaps off by default because relative paths are "buggy" + // with this option, according to the CSS-Loader README + // (https://github.com/webpack/css-loader#sourcemaps) + // In our experience, they generally work as expected, + // just be aware of this issue when enabling this option. + cssSourceMap: false + } +} diff --git a/solr/contrib/ltr/example/webui/web/config/prod.env.js b/solr/contrib/ltr/example/webui/web/config/prod.env.js new file mode 100644 index 000000000000..773d263d3126 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/config/prod.env.js @@ -0,0 +1,3 @@ +module.exports = { + NODE_ENV: '"production"' +} diff --git a/solr/contrib/ltr/example/webui/web/index.html b/solr/contrib/ltr/example/webui/web/index.html new file mode 100644 index 000000000000..9db3995eeb3e --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/index.html @@ -0,0 +1,21 @@ + + + + + + + GenTrainingDataSolr! + + + + + + +
+
+ + diff --git a/solr/contrib/ltr/example/webui/web/package.json b/solr/contrib/ltr/example/webui/web/package.json new file mode 100644 index 000000000000..32efeecd27aa --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/package.json @@ -0,0 +1,57 @@ +{ + "name": "solr-ltr", + "version": "1.0.0", + "description": "webUI for Apache Solr LTR", + "author": "HAOZHI Li ", + "private": true, + "scripts": { + "dev": "node build/dev-server.js", + "build": "node build/build.js" + }, + "dependencies": { + "vue": "^2.1.0", + "vue-resource": "^1.0.3", + "vue-router": "^2.2.0", + "vue-strap": "git+https://github.com/wffranco/vue-strap.git", + "vue-tables-2": "^0.3.0" + }, + "devDependencies": { + "autoprefixer": "^6.4.0", + "babel-core": "^6.0.0", + "babel-helper-vue-jsx-merge-props": "^2.0.2", + "babel-loader": "^6.0.0", + "babel-plugin-syntax-jsx": "^6.18.0", + "babel-plugin-transform-runtime": "^6.0.0", + "babel-plugin-transform-vue-jsx": "^3.3.0", + "babel-preset-es2015": "^6.0.0", + "babel-preset-stage-2": "^6.0.0", + "babel-register": "^6.0.0", + "chalk": "^1.1.3", + "connect-history-api-fallback": "^1.1.0", + "css-loader": "^0.25.0", + "eventsource-polyfill": "^0.9.6", + "express": "^4.13.3", + "extract-text-webpack-plugin": "^1.0.1", + "file-loader": "^0.9.0", + "function-bind": "^1.0.2", + "html-webpack-plugin": "^2.8.1", + "http-proxy-middleware": "^0.17.2", + "json-loader": "^0.5.4", + "opn": "^4.0.2", + "ora": "^0.3.0", + "semver": "^5.3.0", + "shelljs": "^0.7.4", + "url-loader": "^0.5.7", + "vue-loader": "^10.0.0", + "vue-style-loader": "^1.0.0", + "vue-template-compiler": "^2.1.0", + "webpack": "^1.13.2", + "webpack-dev-middleware": "^1.8.3", + "webpack-hot-middleware": "^2.12.2", + "webpack-merge": "^0.14.1" + }, + "engines": { + "node": ">= 4.0.0", + "npm": ">= 3.0.0" + } +} diff --git a/solr/contrib/ltr/example/webui/web/src/App.vue b/solr/contrib/ltr/example/webui/web/src/App.vue new file mode 100644 index 000000000000..891f53447380 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/App.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Clicklogs.vue b/solr/contrib/ltr/example/webui/web/src/components/Clicklogs.vue new file mode 100644 index 000000000000..fc1ea8b3c7de --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Clicklogs.vue @@ -0,0 +1,24 @@ + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Compare.vue b/solr/contrib/ltr/example/webui/web/src/components/Compare.vue new file mode 100644 index 000000000000..ec672d80c948 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Compare.vue @@ -0,0 +1,24 @@ + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Footer.vue b/solr/contrib/ltr/example/webui/web/src/components/Footer.vue new file mode 100644 index 000000000000..28744dbc80c8 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Footer.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Genclick.vue b/solr/contrib/ltr/example/webui/web/src/components/Genclick.vue new file mode 100644 index 000000000000..2087c762a5b4 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Genclick.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Gencompare.vue b/solr/contrib/ltr/example/webui/web/src/components/Gencompare.vue new file mode 100644 index 000000000000..d4f5483e283a --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Gencompare.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Gendata.vue b/solr/contrib/ltr/example/webui/web/src/components/Gendata.vue new file mode 100644 index 000000000000..282441913382 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Gendata.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Header.vue b/solr/contrib/ltr/example/webui/web/src/components/Header.vue new file mode 100644 index 000000000000..022d2d1f5a17 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Header.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Index.vue b/solr/contrib/ltr/example/webui/web/src/components/Index.vue new file mode 100644 index 000000000000..9a0a380cdc1c --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Index.vue @@ -0,0 +1,24 @@ + + + \ No newline at end of file diff --git a/solr/contrib/ltr/example/webui/web/src/components/Jumbotron.vue b/solr/contrib/ltr/example/webui/web/src/components/Jumbotron.vue new file mode 100644 index 000000000000..90ee890753bd --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Jumbotron.vue @@ -0,0 +1,27 @@ + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Ltr.vue b/solr/contrib/ltr/example/webui/web/src/components/Ltr.vue new file mode 100644 index 000000000000..5726d6265b59 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Ltr.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Star.vue b/solr/contrib/ltr/example/webui/web/src/components/Star.vue new file mode 100644 index 000000000000..801e3418b2cb --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Star.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/components/Test.vue b/solr/contrib/ltr/example/webui/web/src/components/Test.vue new file mode 100644 index 000000000000..4d2d131d9eca --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/components/Test.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/solr/contrib/ltr/example/webui/web/src/main.js b/solr/contrib/ltr/example/webui/web/src/main.js new file mode 100644 index 000000000000..378a324d6821 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/main.js @@ -0,0 +1,49 @@ +// The Vue build version to load with the `import` command +// (runtime-only or standalone) has been set in webpack.base.conf with an alias. +import Vue from 'vue' +// import App from './App' + +import VueResource from 'vue-resource' +import VueRouter from 'vue-router' +import {ClientTable} from 'vue-tables-2' + +import Index from './components/Index' +import Compare from './components/Compare' +import Clicklogs from './components/Clicklogs' + +import top from './components/Header' +import jumbotron from './components/Jumbotron' +import bot from './components/Footer' + +Vue.use(VueResource) +Vue.use(VueRouter) +Vue.use(ClientTable) + +var router = new VueRouter({ + mode: 'history', + base: __dirname, + routes: [ + {path: '/', component: Index}, + {path: '/clicklogs', component: Clicklogs}, + {path: '/compare', component: Compare} + ] +}) + +// /* eslint-disable no-new */ +new Vue({ + router, + components: { + top, + jumbotron, + Compare, + Index, + bot + }, + template: ` +
+ + + +
+ ` +}).$mount('#app') diff --git a/solr/contrib/ltr/example/webui/web/src/storage.js b/solr/contrib/ltr/example/webui/web/src/storage.js new file mode 100644 index 000000000000..e87fc167d530 --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/storage.js @@ -0,0 +1,10 @@ +var STORAGE_KEY = 'ltr' + +export default { + fetch: function () { + return JSON.parse(window.localStorage.getItem(STORAGE_KEY) || '[]') + }, + save: function (data) { + window.localStorage.setItem(STORAGE_KEY, JSON.stringify(data)) + } +} \ No newline at end of file diff --git a/solr/contrib/ltr/example/webui/web/src/vue-tables.min.js b/solr/contrib/ltr/example/webui/web/src/vue-tables.min.js new file mode 100644 index 000000000000..2d87ab4e795a --- /dev/null +++ b/solr/contrib/ltr/example/webui/web/src/vue-tables.min.js @@ -0,0 +1,6 @@ +!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.VueTables=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=range[0])&&(!range[1]||windowWidth=b[column]?1:-1:b[column]>=a[column]?1:-1}),data=this.search(data),this.vuex?this.count!=data.length&&this.commit("SET_COUNT",data.length,!0):this.count=data.length;var offset=(this.page-1)*this.limit;return data=data.splice(offset,this.limit),this.applyFilters(data)}},{"../methods/client-search":30,clone:95}],6:[function(require,module,exports){"use strict";module.exports=function(){var columns=Object.keys(this.opts.listColumns),res={};return columns.forEach(function(column){res[column]={},this.opts.listColumns[column].forEach(function(item){res[column][item.id]=item.text})}.bind(this)),res}},{}],7:[function(require,module,exports){"use strict";module.exports=function(){var defaults=require("../config/defaults")();return this.initOptions(defaults,this.globalOptions,this.options)}},{"../config/defaults":12}],8:[function(require,module,exports){"use strict";module.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},{}],9:[function(require,module,exports){"use strict";module.exports=function(){return this.data}},{}],10:[function(require,module,exports){"use strict";module.exports=function(){return Object.keys(this.opts.templates)}},{}],11:[function(require,module,exports){"use strict";module.exports=function(){return this.page=1,Math.ceil(this.count/this.limit)}},{}],12:[function(require,module,exports){"use strict";module.exports=function(){return{dateColumns:[],listColumns:{},datepickerOptions:{locale:{cancelLabel:"Clear"}},perPage:10,perPageValues:[10,25,50,100],params:{},sortable:!0,filterable:!0,initFilters:{},customFilters:[],templates:{},debounce:500,dateFormat:"DD/MM/YYYY",toMomentFormat:!1,skin:"table-striped table-bordered table-hover",columnsDisplay:{},texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",filter:"Filter Results:",filterPlaceholder:"Search query",limit:"Records:",page:"Page:",noResults:"No matching records",filterBy:"Filter by {column}",loading:"Loading...",defaultOption:"Select {column}"},sortIcon:{base:"glyphicon",up:"glyphicon-chevron-up",down:"glyphicon-chevron-down"},filterByColumn:!1,highlightMatches:!1,orderBy:!1,footerHeadings:!1,headings:{},pagination:{dropdown:!1,chunk:10},childRow:!1,childRowKey:"id",responseAdapter:function(resp){return{data:resp.data,count:resp.count}},requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},rowClassCallback:!1,config:!1}}},{}],13:[function(require,module,exports){"use strict";module.exports={twoWay:!0,bind:function(el,binding,vnode){el.addEventListener("keydown",function(e){vnode.context[binding.value]=e.target.value})},update:function(el,binding,vnode,oldVnode){}}},{}],14:[function(require,module,exports){"use strict";module.exports={twoWay:!0,bind:function(el,binding,vnode){el.addEventListener("change",function(e){console.log("SELECT CHANGE"),vnode.context[binding.value.name]=e.target.value,binding.value.cb.call(this,binding.value.params)})},update:function(el,binding,vnode,oldVnode){}}},{}],15:[function(require,module,exports){"use strict";module.exports=function(data,customFilters,customQueries){var passing;return data.filter(function(row){return passing=!0,customFilters.forEach(function(filter){var value=customQueries[filter.name];value&&!filter.callback(row,value)&&(passing=!1)}),passing})}},{}],16:[function(require,module,exports){"use strict";var is_valid_moment_object=require("../helpers/is-valid-moment-object");module.exports=function(property){return is_valid_moment_object(property)?property.format(this.opts.dateFormat):property}},{"../helpers/is-valid-moment-object":24}],17:[function(require,module,exports){"use strict";var validMoment=require("../helpers/is-valid-moment-object");module.exports=function(value,dateFormat){return validMoment(value)?value.format(dateFormat):value}},{"../helpers/is-valid-moment-object":24}],18:[function(require,module,exports){"use strict";module.exports=function(property,column){if(!this.opts.highlightMatches||this.templatesKeys.indexOf(column)>-1)return property;var query=this.opts.filterByColumn?this.query[column]:this.query;return query?(query=new RegExp(query,"i"),property=String(property).replace(query,function(highlight){return""+highlight+""})):property}},{}],19:[function(require,module,exports){"use strict";module.exports=function(value,column){var list=this.listColumnsObject[column];return"undefined"==typeof list[value]?value:list[value]}},{}],20:[function(require,module,exports){"use strict";module.exports=function(data){return this.count=data.length,data}},{}],21:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(arr1,arr2){return arr1.filter(function(i){return arr2.indexOf(i)<0})}},{}],22:[function(require,module,exports){"use strict";module.exports=function(a,b){for(var ai=0,bi=0,result=[];aib[bi]?bi++:(result.push(a[ai]),ai++,bi++);return result}},{}],23:[function(require,module,exports){"use strict";module.exports=function(obj){if(null==obj)return!0;if(obj.length>0)return!1;if(0===obj.length)return!0;for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key))return!1;return!0}},{}],24:[function(require,module,exports){"use strict";module.exports=function(val){return val&&"function"==typeof val.isValid&&val.isValid()}},{}],25:[function(require,module,exports){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};module.exports=function(obj){var count=0;for(var prop in obj){var isDateRange="object"==_typeof(obj[prop]);(isDateRange||obj[prop]&&(!isNaN(obj[prop])||obj[prop].trim()))&&count++}return count}},{}],26:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(str){return str.charAt(0).toUpperCase()+str.slice(1)}},{}],27:[function(require,module,exports){"use strict";module.exports=function(){try{this.data.forEach(function(row,index){this.customColumns.forEach(function(custom){this.$set("data["+index+"]."+custom,this.opts.templates[custom])}.bind(this))}.bind(this))}catch(e){console.error("vue-tables-2: Undeclared template. All templates must be declared in the 'columns' prop.",e)}}},{}],28:[function(require,module,exports){"use strict";module.exports=function(data){return data.map(function(row){for(var column in row)row[column]=this.formatDate(row[column],this.opts.dateFormat),this.isListFilter(column)&&(row[column]=this.optionText(row[column],column));return row}.bind(this))}},{}],29:[function(require,module,exports){"use strict";module.exports=function(rowId){return this.rowsToggleState["row_"+rowId]?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},{}],30:[function(require,module,exports){"use strict";function setCurrentQuery(query){return query?"string"==typeof query?query.toLowerCase():query:""}function foundMatch(query,value,isListFilter){if(isListFilter)return value==query;if("string"==typeof value)return value.indexOf(query)>-1;var start=moment(query.start,"YYYY-MM-DD"),end=moment(query.end,"YYYY-MM-DD");return value>=start&&end>=value}function getValue(val,filterByDate,dateFormat){return is_valid_moment_object(val)?filterByDate?val:val.format(dateFormat):String(val).toLowerCase()}var object_filled_keys_count=require("../helpers/object-filled-keys-count"),is_valid_moment_object=require("../helpers/is-valid-moment-object"),filterByCustomFilters=require("../filters/custom-filters");module.exports=function(data,e){if(e){var _query=this.query;this.setPage(1,!0);var name=e.target.name;name?_query[name]=""+e.target.value:_query=e.target.value,this.vuex?this.commit("SET_FILTER",_query):this.query=_query}var query=this.query,totalQueries=query?1:0;if(!this.opts)return data;this.opts.filterByColumn&&(totalQueries=object_filled_keys_count(query));var value,found,currentQuery,filterByDate,isListFilter,dateFormat=this.opts.dateFormat,data=filterByCustomFilters(data,this.opts.customFilters,this.customQueries);return totalQueries?data.filter(function(row,index){return found=0,this.Columns.forEach(function(column){filterByDate=this.opts.dateColumns.indexOf(column)>-1&&this.opts.filterByColumn,isListFilter=this.isListFilter(column)&&this.opts.filterByColumn,value=getValue(row[column],filterByDate,dateFormat),currentQuery=this.opts.filterByColumn?query[column]:query,currentQuery=setCurrentQuery(currentQuery),currentQuery&&foundMatch(currentQuery,value,isListFilter)&&found++}.bind(this)),found>=totalQueries}.bind(this)):data}},{"../filters/custom-filters":15,"../helpers/is-valid-moment-object":24,"../helpers/object-filled-keys-count":25}],31:[function(require,module,exports){"use strict";var bus=require("../bus");module.exports=function(event,payload){this.vuex?this.commit(event.toUpperCase().replace("-","_"),payload):(bus.$emit("vue-tables."+event,payload),this.$emit(event,payload))}},{"../bus":1}],32:[function(require,module,exports){"use strict";module.exports=function(text,replacements){if(!this.opts.texts)return"";var text=this.opts.texts[text];if(replacements)for(var key in replacements)text=text.replace("{"+key+"}",replacements[key]);return text}},{}],33:[function(require,module,exports){"use strict";module.exports=function(column){return this.opts.filterable?-1==this.customColumns.indexOf(column)&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(column)>-1):!1}},{}],34:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var merge=require("merge");module.exports=function(promiseOnly){var _data,keys=this.opts.requestKeys,data=(_data={},_defineProperty(_data,keys.query,this.query),_defineProperty(_data,keys.limit,this.limit),_defineProperty(_data,keys.orderBy,this.orderBy.column),_defineProperty(_data,keys.ascending,this.orderBy.ascending?1:0),_defineProperty(_data,keys.page,this.page),_defineProperty(_data,keys.byColumn,this.opts.filterByColumn?1:0),_data);data=merge(data,this.opts.params,this.customQueries),this.dispatch("loading",data);var promise=this.sendRequest(data);return promiseOnly?promise:promise.then(function(response){var data=this.getResponseData(response);return this.setData(this.opts.responseAdapter(data))}.bind(this))}},{merge:98}],35:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _ucfirst=require("../helpers/ucfirst"),_ucfirst2=_interopRequireDefault(_ucfirst);module.exports=function(value,h){return"string"!=typeof value?"":this.opts.headings.hasOwnProperty(value)?"function"==typeof this.opts.headings[value]?this.opts.headings[value](h):this.opts.headings[value]:_ucfirst2["default"](value.split("_").join(" "))}},{"../helpers/ucfirst":26}],36:[function(require,module,exports){"use strict";module.exports=function(response){return"undefined"!=typeof axios?response.data:response}},{}],37:[function(require,module,exports){"use strict";var intersection=require("../helpers/array-intersection");module.exports=function(){var opts=this.opts;return opts.dateColumns.length&&opts.filterByColumn&&("boolean"==typeof opts.filterable&&opts.filterable||intersection(opts.filterable,opts.dateColumns).length)}},{"../helpers/array-intersection":22}],38:[function(require,module,exports){"use strict";module.exports=function(){var customQueries={},init=this.opts.initFilters,key=void 0;return this.opts.customFilters.forEach(function(filter){key="client"==this.source?filter.name:filter,customQueries[key]=init.hasOwnProperty(key)?init[key]:""}.bind(this)),customQueries}},{}],39:[function(require,module,exports){"use strict";var merge=require("merge");module.exports=function(){var el,search=function(){return"client"==that.source?that.search(that.data):that.serverSearch()},datepickerOptions=merge.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1,locale:{format:this.opts.dateFormat}}),that=this;that.opts.dateColumns.forEach(function(column){el=$(that.$el).find("#VueTables__"+column+"-filter"),el.daterangepicker(datepickerOptions),el.on("apply.daterangepicker",function(ev,picker){that.query[column]={start:picker.startDate.format("YYYY-MM-DD"),end:picker.endDate.format("YYYY-MM-DD")},$(this).text(picker.startDate.format(that.opts.dateFormat)+" - "+picker.endDate.format(that.opts.dateFormat)),search()}),el.on("cancel.daterangepicker",function(ev,picker){that.query[column]="",$(this).html(""+that.display("filterBy",{column:that.getHeading(column)})+""),search()})})}},{merge:98}],40:[function(require,module,exports){"use strict";var merge=require("merge");module.exports=function(defaults,globalOptions,localOptions){return globalOptions&&(defaults=merge.recursive(defaults,globalOptions)),localOptions=merge.recursive(defaults,localOptions)}},{merge:98}],41:[function(require,module,exports){"use strict";module.exports=function(column){return this.opts.orderBy?(this.orderBy.column=this.opts.orderBy.column,void(this.orderBy.ascending=this.opts.orderBy.ascending)):void(this.orderBy.column=column)}},{}],42:[function(require,module,exports){"use strict";module.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},{}],43:[function(require,module,exports){"use strict";function getInitialValue(init,column){return init.hasOwnProperty(column)?"undefined"==typeof init[column].start?init[column]:{start:init[column].start.format("YYYY-MM-DD"),end:init[column].end.format("YYYY-MM-DD")}:""}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};module.exports=function(){var init=this.opts.initFilters;if(!this.opts.filterByColumn)return init.hasOwnProperty("GENERIC")?init.GENERIC:"";var query={},filterable=this.opts.filterable&&"object"==_typeof(this.opts.filterable)?this.opts.filterable:this.columns;return filterable.forEach(function(column){query[column]=getInitialValue(init,column)}.bind(this)),query}},{}],44:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&this.opts.dateColumns.indexOf(column)>-1}},{}],45:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&this.opts.listColumns.hasOwnProperty(column)}},{}],46:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&-1==this.opts.dateColumns.indexOf(column)&&!this.opts.listColumns.hasOwnProperty(column)}},{}],47:[function(require,module,exports){"use strict";require("../bus");module.exports=function(colName){this.sortable(colName)&&(colName==this.orderBy.column&&(this.orderBy.ascending=!this.orderBy.ascending),this.orderBy.column=colName,"server"==this.source&&this.getData())}},{"../bus":1}],48:[function(require,module,exports){"use strict";module.exports=function(){this.serverSearch()}},{}],49:[function(require,module,exports){"use strict";var bus=require("../bus");module.exports=function(){this.opts.customFilters.forEach(function(filter){bus.$on("vue-tables.filter::"+filter.name,function(value){this.customQueries[filter.name]=value,this.setPage(1),this.search(this.data)}.bind(this))}.bind(this))}},{"../bus":1}],50:[function(require,module,exports){"use strict";var bus=require("../bus");module.exports=function(){this.opts.customFilters.forEach(function(filter){bus.$on("vue-tables.filter::"+filter,function(value){this.customQueries[filter]=value,this.refresh()}.bind(this))}.bind(this))}},{"../bus":1}],51:[function(require,module,exports){"use strict";module.exports=function(row,column,h){if(-1==this.templatesKeys.indexOf(column))return row[column];var template=this.opts.templates[column];return template="function"==typeof template?template.apply(this.$root,[h,row]):h(template,{attrs:{data:row}}),h("span",{"class":"VueTables__template"},[template])}},{}],52:[function(require,module,exports){"use strict";module.exports=function(row){this.dispatch("row-click",row)}},{}],53:[function(require,module,exports){"use strict";module.exports=function(data){if("undefined"!=typeof axios)return axios.get(this.url,{params:data})["catch"](function(e){this.dispatch("error",e)}.bind(this));if("undefined"!=typeof this.$http)return this.$http.get(this.url,{params:data}).then(function(data){return data.json()}.bind(this),function(e){this.dispatch("error",e)}.bind(this));if("undefined"!=typeof $)return $.get(this.url,data).fail(function(e){this.dispatch("error",e)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource)"}},{}],54:[function(require,module,exports){"use strict";function search(that,query){that.vuex?that.commit("SET_FILTER",query):(that.initPagination(),that.opts.pagination.dropdown&&that.getData())}function noDebounce(e,name,opts){return!e||name&&(opts.dateColumns.indexOf(name)>-1||Object.keys(opts.listColumns).indexOf(name)>-1)}module.exports=function(e){var query=this.query;if(e){var name=e.target.name,value=e.target.value;name?query[name]=value:query=value,this.vuex||(this.query=query)}if(noDebounce(e,name,this.opts))return search(this);this.lastKeyStrokeAt=Date.now();var elapsed,debounce=this.opts.debounce;setTimeout(function(){elapsed=Date.now()-this.lastKeyStrokeAt,elapsed>=debounce&&search(this,query)}.bind(this),debounce)}},{}],55:[function(require,module,exports){"use strict";require("../bus");module.exports=function(data){this.data=data.data,this.count=data.count,this.addCustomColumns(),setTimeout(function(){this.dispatch("loaded",data)}.bind(this),0)}},{"../bus":1}],56:[function(require,module,exports){"use strict";module.exports=function(e){this.limit=e.target.value,this.setPage(1)}},{}],57:[function(require,module,exports){"use strict";module.exports=function(page){page=page?page:this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.page=page),this.page=page,"server"==this.source&&this.getData()}},{}],58:[function(require,module,exports){"use strict";module.exports=function(column){var cls=this.opts.sortIcon.base+" ";if(this.sortable(column))return column!=this.orderBy.column?cls:cls+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down}},{}],59:[function(require,module,exports){"use strict";module.exports=function(column){return this.sortable(column)?"VueTables__sortable":""}},{}],60:[function(require,module,exports){"use strict";module.exports=function(column){var isCustomColumn=this.customColumns.indexOf(column)>-1;if(isCustomColumn)return!1;var sortAll="boolean"==typeof this.opts.sortable&&this.opts.sortable;return sortAll?!0:this.opts.sortable.indexOf(column)>-1}},{}],61:[function(require,module,exports){"use strict";module.exports=function(rowId,e){e&&e.stopPropagation();var key="row_"+rowId;"undefined"==typeof this.rowsToggleState[key]?this.$set(this.rowsToggleState,key,!0):this.rowsToggleState[key]=!this.rowsToggleState[key]}},{}],62:[function(require,module,exports){"use strict";module.exports=function(){this.data.forEach(function(row,index){this.opts.dateColumns.forEach(function(column){row[column]=moment(row[column],this.opts.toMomentFormat)}.bind(this))}.bind(this))}},{}],63:[function(require,module,exports){"use strict";module.exports={listColumnsObject:require("../computed/list-columns-object"),allColumns:require("../computed/all-columns"),customColumns:require("../computed/custom-columns"),templatesKeys:require("../computed/templates-keys"),opts:require("../computed/opts"),tableData:require("../computed/table-data"),vuex:function(){return!!this.name},Page:function(){return this.page}}},{"../computed/all-columns":2,"../computed/custom-columns":3,"../computed/list-columns-object":6,"../computed/opts":7,"../computed/table-data":9,"../computed/templates-keys":10}],64:[function(require,module,exports){"use strict";function getColumnsDisplay(columnsDisplay){var range,device,operator,res={};for(var column in columnsDisplay){operator=getOperator(columnsDisplay[column]);try{device=getDevice(columnsDisplay[column]),range=getRange(device,operator),res[column]=range.concat([operator])}catch(err){console.warn("Unknown device "+device)}}return res}function getRange(device,operator){var devices={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(operator){case"min":return[devices[device][0],null];case"max":return[0,devices[device][1]];default:return devices[device]}}function getOperator(val){var pieces=val.split("_");return["not","min","max"].indexOf(pieces[0])>-1?pieces[0]:!1}function getDevice(val){var pieces=val.split("_");return pieces.length>1?pieces[1]:pieces[0]}var is_empty=require("../helpers/is-empty"),registerVuexModule=require("../state/register-module");module.exports=function(self){self.name?registerVuexModule(self):self.limit=self.opts.perPage,is_empty(self.opts.columnsDisplay)||(self.columnsDisplay=getColumnsDisplay(self.opts.columnsDisplay),window.addEventListener("resize",function(){self.windowWidth=window.innerWidth}.bind(self)))}},{"../helpers/is-empty":23,"../state/register-module":71}],65:[function(require,module,exports){"use strict";function makeId(){for(var text="",possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;5>i;i++)text+=possible.charAt(Math.floor(Math.random()*possible.length));return text}module.exports=function(){return{id:makeId(),count:0,rowsToggleState:{},windowWidth:window.innerWidth}}},{}],66:[function(require,module,exports){"use strict";module.exports={input:require("../directives/input"),select:require("../directives/select")}},{"../directives/input":13,"../directives/select":14}],67:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _module$exports;module.exports=(_module$exports={initQuery:require("../methods/init-query"),initCustomFilters:require("../methods/init-custom-filters"),initOptions:require("../methods/init-options"),sortableClass:require("../methods/sortable-class"),sortableChevronClass:require("../methods/sortable-chevron-class"),display:require("../methods/display"),orderByColumn:require("../methods/order-by-column"),getHeading:require("../methods/get-heading"),addCustomColumns:require("../methods/add-custom-columns"),sortable:require("../methods/sortable")},_defineProperty(_module$exports,"display",require("../methods/display")),_defineProperty(_module$exports,"serverSearch",require("../methods/server-search")),_defineProperty(_module$exports,"initOrderBy",require("../methods/init-order-by")),_defineProperty(_module$exports,"initDateFilters",require("../methods/init-date-filters")),_defineProperty(_module$exports,"setPage",require("../methods/set-page")),_defineProperty(_module$exports,"initPagination",require("../methods/init-pagination")),_defineProperty(_module$exports,"filterable",require("../methods/filterable")),_defineProperty(_module$exports,"isTextFilter",require("../methods/is-text-filter")),_defineProperty(_module$exports,"isDateFilter",require("../methods/is-date-filter")),_defineProperty(_module$exports,"isListFilter",require("../methods/is-list-filter")),_defineProperty(_module$exports,"highlightMatch",require("../filters/highlight-matches")),_defineProperty(_module$exports,"formatDate",require("../filters/format-date")),_defineProperty(_module$exports,"hasDateFilters",require("../methods/has-date-filters")),_defineProperty(_module$exports,"applyFilters",require("../methods/apply-filters")),_defineProperty(_module$exports,"optionText",require("../filters/option-text")),_defineProperty(_module$exports,"render",require("../methods/render")),_defineProperty(_module$exports,"rowWasClicked",require("../methods/row-was-clicked")),_defineProperty(_module$exports,"setLimit",require("../methods/set-limit")),_defineProperty(_module$exports,"dispatch",require("../methods/dispatch")),_defineProperty(_module$exports,"toggleChildRow",require("../methods/toggle-child-row")),_defineProperty(_module$exports,"childRowTogglerClass",require("../methods/child-row-toggler-class")),_defineProperty(_module$exports,"sendRequest",require("../methods/send-request")),_defineProperty(_module$exports,"getResponseData",require("../methods/get-response-data")),_module$exports)},{"../filters/format-date":17,"../filters/highlight-matches":18,"../filters/option-text":19,"../methods/add-custom-columns":27,"../methods/apply-filters":28,"../methods/child-row-toggler-class":29,"../methods/dispatch":31,"../methods/display":32,"../methods/filterable":33,"../methods/get-heading":35,"../methods/get-response-data":36,"../methods/has-date-filters":37,"../methods/init-custom-filters":38,"../methods/init-date-filters":39,"../methods/init-options":40,"../methods/init-order-by":41,"../methods/init-pagination":42,"../methods/init-query":43,"../methods/is-date-filter":44,"../methods/is-list-filter":45,"../methods/is-text-filter":46,"../methods/order-by-column":47,"../methods/render":51,"../methods/row-was-clicked":52,"../methods/send-request":53,"../methods/server-search":54,"../methods/set-limit":56,"../methods/set-page":57,"../methods/sortable":60,"../methods/sortable-chevron-class":58,"../methods/sortable-class":59,"../methods/toggle-child-row":61}],68:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(useVuex,source){if(useVuex)return{};var data={customQueries:{},query:null,page:1,limit:10,windowWidth:window.innerWidth,orderBy:{column:"id",ascending:!0}};return"server"==source&&(data.data=[]),data}},{}],69:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(self){var _ref2,_merge$recursive,extra="server"==self.source?(_ref2={},_defineProperty(_ref2,self.name+"/SET_DATA",function(state,_ref){var data=_ref.data,count=_ref.count;state.data=data,state.count=count}),_defineProperty(_ref2,self.name+"/LOADING",function(state,payload){}),_defineProperty(_ref2,self.name+"/LOADED",function(state,payload){}),_defineProperty(_ref2,self.name+"/ERROR",function(state,payload){}),_ref2):_defineProperty({},self.name+"/SET_COUNT",function(state,count){state.count=count});return _merge2["default"].recursive(!0,(_merge$recursive={},_defineProperty(_merge$recursive,self.name+"/PAGINATE",function(state,page){state.page=page,"server"==self.source&&self.getData()}),_defineProperty(_merge$recursive,self.name+"/SET_FILTER",function(state,filter){state.page=1,state.query=filter,"server"==self.source&&self.getData()}),_defineProperty(_merge$recursive,self.name+"/SET_CUSTOM_FILTER",function(state,_ref4){var filter=_ref4.filter,value=_ref4.value;state.page=1,state.customQueries[filter]=value,"server"==self.source&&self.getData()}),_defineProperty(_merge$recursive,self.name+"/SET_LIMIT",function(state,limit){state.page=1,state.limit=limit,"server"==self.source&&self.getData()}),_defineProperty(_merge$recursive,self.name+"/SORT",function(state,column){state.ascending=state.sortBy==column?!state.ascending:!0,state.sortBy=column,"server"==self.source&&self.getData()}),_defineProperty(_merge$recursive,self.name+"/ROW_CLICK",function(state,row){}),_merge$recursive),extra)};var _merge=require("merge"),_merge2=_interopRequireDefault(_merge)},{merge:98}],70:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(){return{computed:{Columns:function(){return this.columns}}}}},{}],71:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _state=require("./state"),_state2=_interopRequireDefault(_state),_mutations=require("./mutations"),_mutations2=_interopRequireDefault(_mutations);module.exports=function(self){(self.options.cache===!1||void 0===self.$store._runtimeModules||void 0===self.$store._runtimeModules[self.name])&&self.$store.registerModule(self.name,{state:_state2["default"](self),mutations:_mutations2["default"](self)})}},{"./mutations":69,"./state":72}],72:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(self){var state={page:1,limit:self.opts.perPage,count:"server"==self.source?0:self.data.length,columns:self.columns,data:"client"==self.source?self.data:[],query:self.initQuery(),customQueries:self.initCustomFilters(),sortBy:self.opts.orderBy&&self.opts.orderBy.column?self.opts.orderBy.column:self.columns[0],ascending:self.opts.orderBy&&self.opts.orderBy.ascending?self.opts.orderBy.ascending:!0};return state}},{}],73:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function serverExtra(){return{methods:{setData:function(_ref){var data=_ref.data,count=_ref.count;this.commit("SET_DATA",{data:data,count:count}),this.commit("LOADED",{data:data,count:count})}}}}function clientExtra(){return{}}Object.defineProperty(exports,"__esModule",{ +value:!0}),exports["default"]=function(source){var extra="server"==source?serverExtra():clientExtra();return _merge2["default"].recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(action,payload,silent){return silent={silent:silent},this.$store.commit(this.name+"/"+action,payload,silent)},orderByColumn:function(column){this.sortable(column)&&this.commit("SORT",column)},setLimit:function(e){var limit=parseInt(e.target.value);this.commit("SET_LIMIT",limit)},setPage:function(page,silent){page||(page=this.$refs.page.value),this.commit("PAGINATE",page,silent)}}},extra)};var _merge=require("merge"),_merge2=_interopRequireDefault(_merge)},{merge:98}],74:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(){return{methods:methods,computed:computed,directives:directives}};var methods=require("./mixins/methods"),computed=require("./mixins/computed"),directives=require("./mixins/directives")},{"./mixins/computed":63,"./mixins/directives":66,"./mixins/methods":67}],75:[function(require,module,exports){"use strict";module.exports=function(source){return function(h){var rows=require("./template/rows.jsx")(h,this),normalFilter=require("./template/normal-filter.jsx")(h,this),dropdownPagination=require("./template/dropdown-pagination.jsx")(h,this),columnFilters=require("./template/column-filters.jsx")(h,this),footerHeadings=require("./template/footer-headings.jsx")(h,this),noResults=require("./template/no-results.jsx")(h,this),pagination=require("./template/pagination.jsx")(h,this),dropdownPaginationCount=require("./template/dropdown-pagination-count.jsx")(h,this),headings=require("./template/headings.jsx")(h,this),perPage=require("./template/per-page.jsx")(h,this);return h("div",{"class":"VueTables VueTables--"+this.source},[h("div",{"class":"row"},[h("div",{"class":"col-md-6"},[normalFilter]),h("div",{"class":"col-md-6"},[dropdownPagination,perPage])]),h("table",{"class":"VueTables__table table "+this.opts.skin},[h("thead",null,[h("tr",null,[headings]),columnFilters]),footerHeadings,h("tbody",null,[noResults,rows])]),pagination,dropdownPaginationCount])}}},{"./template/column-filters.jsx":76,"./template/dropdown-pagination-count.jsx":78,"./template/dropdown-pagination.jsx":79,"./template/footer-headings.jsx":80,"./template/headings.jsx":81,"./template/no-results.jsx":83,"./template/normal-filter.jsx":84,"./template/pagination.jsx":85,"./template/per-page.jsx":87,"./template/rows.jsx":88}],76:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}module.exports=function(h,that){if(!that.opts.filterByColumn||!that.opts.filterable)return"";var filter,textFilter=require("./text-filter.jsx")(h,that),dateFilter=require("./date-filter.jsx")(h,that),listFilter=require(".//list-filter.jsx")(h,that),filters=[];return that.opts.childRow&&filters.push(h("th",null,[])),that.allColumns.map(function(column){if(that.filterable(column))switch(!0){case that.isTextFilter(column):filter=textFilter(column);break;case that.isDateFilter(column):filter=dateFilter(column);break;case that.isListFilter(column):filter=listFilter(column)}else filter="";filters.push(h("th",null,[h("div",_defineProperty({"class":"VueTables__column-filter"},"class","VueTables__"+column+"-filter-wrapper"),[filter])]))}),h("tr",{"class":"VueTables__filters-row"},[filters])}},{".//list-filter.jsx":82,"./date-filter.jsx":77,"./text-filter.jsx":90}],77:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){return h("div",{"class":"VueTables__date-filter",attrs:{id:"VueTables__"+column+"-filter"}},[h("span",{"class":"VueTables__filter-placeholder"},[that.display("filterBy",{column:that.getHeading(column)})])])}}},{}],78:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.count>0&&that.opts.pagination.dropdown){var perPage=parseInt(that.limit),from=(that.Page-1)*perPage+1,to=that.Page==that.totalPages?that.count:from+perPage-1,parts=that.opts.texts.count.split("|"),i=Math.min(1==that.count?2:1==that.totalPages?1:0,parts.length-1),count=parts[i].replace("{count}",that.count).replace("{from}",from).replace("{to}",to);return h("div",{"class":"VuePagination"},[h("p",{"class":"VuePagination__count"},[count])])}return""}},{}],79:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.opts.pagination&&that.opts.pagination.dropdown){for(var selected,pages=[],pag=1;pag<=that.totalPages;pag++){var selected=that.page==pag;pages.push(h("option",{attrs:{value:pag,selected:selected}},[pag]))}var id="VueTables__dropdown-pagination_"+that.id;return h("div",{"class":"form-group form-inline pull-right VueTables__dropdown-pagination",directives:[{name:"show",value:that.totalPages>1}]},[h("label",{attrs:{"for":id}},[that.display("page")]),h("select",{"class":"form-control",attrs:{name:"page",value:that.page,id:id},ref:"page",on:{change:that.setPage.bind(that,null)}},[pages])])}return""}},{}],80:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}module.exports=function(h,that){if(!that.opts.footerHeadings)return"";var footerHeadings=[];if(that.opts.footerHeadings){var columns=that.allColumns;columns.map(function(column){footerHeadings.push(h("th",{on:{click:that.orderByColumn.bind(that,column)},"class":that.sortableClass(column)},[h("span",{"class":"VueTables__heading"},[that.getHeading(column)]),h("span",_defineProperty({directives:[{name:"show",value:that.sortable(column)}],"class":"VueTables__sort-icon pull-right"},"class",that.sortableChevronClass(column)),[])]))})}return h("tfoot",null,[h("tr",null,[footerHeadings])])}},{}],81:[function(require,module,exports){"use strict";module.exports=function(h,that){var sortControl=require("./sort-control.jsx")(h,that),headings=[];return that.opts.childRow&&headings.push(h("th",null,[])),that.allColumns.map(function(column){headings.push(h("th",{on:{click:that.orderByColumn.bind(that,column)},"class":that.sortableClass(column)},[h("span",{"class":"VueTables__heading"},[that.getHeading(column,h)]),sortControl(column)]))}.bind(that)),headings}},{"./sort-control.jsx":89}],82:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){var options=[],selected=void 0,search="client"==that.source?that.search.bind(that,that.data):that.serverSearch.bind(that);return that.opts.listColumns[column].map(function(option){selected=option.id==that.query[column]&&""!==that.query[column],options.push(h("option",{attrs:{value:option.id,selected:selected}},[option.text]))}),h("div",{"class":"VueTables__list-filter",attrs:{id:"VueTables__"+column+"-filter"}},[h("select",{"class":"form-control",on:{change:search},attrs:{name:column,value:that.query[column]}},[h("option",{attrs:{value:""}},[that.display("defaultOption",{column:that.getHeading(column)})]),options])])}}},{}],83:[function(require,module,exports){"use strict";module.exports=function(h,that){if(0==that.count){var colspan=that.allColumns.length;return that.opts.childRow&&colspan++,h("tr",{"class":"VueTables__no-results"},[h("td",{"class":"text-center",attrs:{colspan:colspan}},[that.display(that.loading?"loading":"noResults")])])}}},{}],84:[function(require,module,exports){"use strict";module.exports=function(h,that){if(!that.opts.filterable)return"";var search="client"==that.source?that.search.bind(that,that.data):that.serverSearch.bind(that);if(that.opts.filterable&&!that.opts.filterByColumn){var id="VueTables__search_"+that.id;return h("div",{"class":"form-group form-inline pull-left VueTables__search"},[h("label",{attrs:{"for":id}},[that.display("filter")]),h("input",{"class":"form-control",attrs:{type:"text",value:that.query,placeholder:that.display("filterPlaceholder"),id:id},on:{keyup:search}},[])])}return""}},{}],85:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.opts.pagination&&!that.opts.pagination.dropdown){var name=that.vuex?that.name:that.id;return h("pagination",{ref:"pagination",attrs:{"for":name,records:that.count,"per-page":parseInt(that.limit),chunk:that.opts.pagination.chunk,"count-text":that.opts.texts.count}},[])}return""}},{}],86:[function(require,module,exports){"use strict";module.exports=function(h,that){var perpageValues=[];return that.opts.perPageValues.every(function(value){var isLastEntry=value>=that.count,selected=that.limit==value||isLastEntry&&that.limit>value;return perpageValues.push(h("option",{attrs:{value:value,selected:selected}},[value])),!isLastEntry}),perpageValues}},{}],87:[function(require,module,exports){"use strict";module.exports=function(h,that){var perpageValues=require("./per-page-values.jsx")(h,that);if(perpageValues.length>1){var id="VueTables__limit_"+that.id;return h("div",{"class":"form-group form-inline pull-right VueTables__limit"},[h("label",{attrs:{"for":id}},[that.display("limit")]),h("select",{"class":"form-control",attrs:{name:"limit",value:that.limit,id:id},on:{change:that.setLimit.bind(that)}},[perpageValues])])}return""}},{"./per-page-values.jsx":86}],88:[function(require,module,exports){"use strict";module.exports=function(h,that){var columns,rowClass,rows=[],rowKey=that.opts.childRowKey,data="client"==that.source?that.filteredData:that.tableData;return data.map(function(row,index){if(columns=[],that.opts.childRow&&columns.push(h("td",null,[h("span",{on:{click:that.toggleChildRow.bind(that,row[rowKey])},"class":"VueTables__child-row-toggler "+that.childRowTogglerClass(row[rowKey])},[])])),that.allColumns.map(function(column){columns.push(h("td",null,[that.render(row,column,h)]))}.bind(that)),rowClass=that.opts.rowClassCallback?that.opts.rowClassCallback(row):"",rows.push(h("tr",{"class":rowClass,on:{click:that.rowWasClicked.bind(that,row)}},[columns," "])),that.opts.childRow&&this.rowsToggleState["row_"+row[rowKey]]){var childRow=that.opts.childRow,template="function"==typeof childRow?childRow.apply(that,[h,row]):h(childRow,{attrs:{data:row}});rows.push(h("tr",{"class":"VueTables__child-row"},[h("td",{attrs:{colspan:that.allColumns.length+1}},[template])]))}}.bind(that)),rows}},{}],89:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){return that.sortable(column)?h("span",{"class":"VueTables__sort-icon pull-right "+that.sortableChevronClass(column)},[]):""}.bind(that)}},{}],90:[function(require,module,exports){"use strict";module.exports=function(h,that){var search="client"==that.source?that.search.bind(that,that.data):that.serverSearch.bind(that);return function(column){return h("input",{on:{keyup:search},"class":"form-control",attrs:{name:column,type:"text",placeholder:that.display("filterBy",{column:that.getHeading(column)}),value:that.query[column]}},[])}}},{}],91:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _vuePagination=require("vue-pagination-2"),_vuePagination2=_interopRequireDefault(_vuePagination),_vuex=require("./state/vuex"),_vuex2=_interopRequireDefault(_vuex),_normal=require("./state/normal"),_normal2=_interopRequireDefault(_normal),_merge=require("merge"),_merge2=_interopRequireDefault(_merge),_table=require("./table"),_table2=_interopRequireDefault(_table),_data2=require("./state/data"),_data3=_interopRequireDefault(_data2),_bus=require("vue-pagination-2/src/bus"),_bus2=_interopRequireDefault(_bus),_data=require("./mixins/data"),_created=require("./mixins/created"),template=require("./template.jsx");exports.install=function(Vue,globalOptions,useVuex,customTemplate){Vue.use(_vuePagination2["default"],useVuex);var client=_merge2["default"].recursive(!0,_table2["default"](),{name:"client-table",render:customTemplate?customTemplate:template("client"),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},options:{type:Object,required:!1,"default":function(){return{}}}},created:function(){_created(this),this.addCustomColumns(),this.vuex||(this.initOrderBy(this.Columns[0]),this.query=this.initQuery(),this.customQueries=this.initCustomFilters(),this.count=this.data.length)},mounted:function(){this.hasDateFilters()&&this.initDateFilters(),this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.registerClientFilters(),_bus2["default"].$on("vue-pagination::"+this.id,function(page){this.setPage(page)}.bind(this)))},data:function(){return _merge2["default"].recursive(_data(),{source:"client",globalOptions:globalOptions},_data3["default"](useVuex))},computed:{q:require("./computed/q"),customQ:require("./computed/custom-q"),totalPages:require("./computed/total-pages"),filteredData:require("./computed/filtered-data")},filters:{setCount:require("./filters/set-count"),date:require("./filters/date")},methods:{transformDateStringsToMoment:require("./methods/transform-date-strings-to-moment"),registerClientFilters:require("./methods/register-client-filters"),search:require("./methods/client-search")}}),state=useVuex?_vuex2["default"]():_normal2["default"]();client=_merge2["default"].recursive(client,state),Vue.component("v-client-table",client)}},{"./computed/custom-q":4,"./computed/filtered-data":5,"./computed/q":8,"./computed/total-pages":11,"./filters/date":16,"./filters/set-count":20,"./methods/client-search":30,"./methods/register-client-filters":49,"./methods/transform-date-strings-to-moment":62,"./mixins/created":64,"./mixins/data":65,"./state/data":68,"./state/normal":70,"./state/vuex":73,"./table":74,"./template.jsx":75,merge:98,"vue-pagination-2":100,"vue-pagination-2/src/bus":102}],92:[function(require,module,exports){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _merge=require("merge"),_merge2=_interopRequireDefault(_merge),_data2=require("./state/data"),_data3=_interopRequireDefault(_data2),_vuex=require("./state/vuex"),_vuex2=_interopRequireDefault(_vuex),_normal=require("./state/normal"),_normal2=_interopRequireDefault(_normal),_table=require("./table"),_table2=_interopRequireDefault(_table),_data=require("./mixins/data"),_created=require("./mixins/created"),template=require("./template.jsx"),VuePagination=require("vue-pagination-2"),paginationBus=require("vue-pagination-2/src/bus");exports.install=function(Vue,globalOptions,useVuex,customTemplate){var state=useVuex?_vuex2["default"]("server"):_normal2["default"]();Vue.use(VuePagination,useVuex);var server=_merge2["default"].recursive(!0,_table2["default"](),{name:"server-table",render:customTemplate?customTemplate:template("server"),props:{columns:{type:Array,required:!0},url:{type:String,required:!0},options:{type:Object,required:!1,"default":function(){return{}}}},created:function(){_created(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(this.Columns[0])),this.vuex||(this.customQueries=this.initCustomFilters()),this.getData(!0).then(function(response){var data=this.getResponseData(response);this.setData(this.opts.responseAdapter(data)),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0)}.bind(this))},mounted:function(){this.vuex||(this.registerServerFilters(),paginationBus.$on("vue-pagination::"+this.id,function(page){this.setPage(page)}.bind(this)))},data:function(){return _merge2["default"].recursive(_data(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:globalOptions},_data3["default"](useVuex,"server"))},methods:{refresh:require("./methods/refresh"),getData:require("./methods/get-data"),setData:require("./methods/set-data"),serverSearch:require("./methods/server-search"),registerServerFilters:require("./methods/register-server-filters")},computed:{totalPages:require("./computed/total-pages")}},state);Vue.component("v-server-table",server)}},{"./computed/total-pages":11,"./methods/get-data":34,"./methods/refresh":48,"./methods/register-server-filters":50,"./methods/server-search":54,"./methods/set-data":55,"./mixins/created":64,"./mixins/data":65,"./state/data":68,"./state/normal":70,"./state/vuex":73,"./table":74,"./template.jsx":75,merge:98,"vue-pagination-2":100,"vue-pagination-2/src/bus":102}],93:[function(require,module,exports){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(exports){"use strict";function decode(elt){var code=elt.charCodeAt(0);return code===PLUS||code===PLUS_URL_SAFE?62:code===SLASH||code===SLASH_URL_SAFE?63:NUMBER>code?-1:NUMBER+10>code?code-NUMBER+26+26:UPPER+26>code?code-UPPER:LOWER+26>code?code-LOWER+26:void 0}function b64ToByteArray(b64){function push(v){arr[L++]=v}var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0,arr=new Arr(3*b64.length/4-placeHolders),l=placeHolders>0?b64.length-4:b64.length;var L=0;for(i=0,j=0;l>i;i+=4,j+=3)tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3)),push((16711680&tmp)>>16),push((65280&tmp)>>8),push(255&tmp);return 2===placeHolders?(tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4,push(255&tmp)):1===placeHolders&&(tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2,push(tmp>>8&255),push(255&tmp)),arr}function uint8ToBase64(uint8){function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(63&num)}var i,temp,length,extraBytes=uint8.length%3,output="";for(i=0,length=uint8.length-extraBytes;length>i;i+=3)temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2],output+=tripletToBase64(temp);switch(extraBytes){case 1:temp=uint8[uint8.length-1],output+=encode(temp>>2),output+=encode(temp<<4&63),output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1],output+=encode(temp>>10),output+=encode(temp>>4&63),output+=encode(temp<<2&63),output+="="}return output}var Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,PLUS="+".charCodeAt(0),SLASH="/".charCodeAt(0),NUMBER="0".charCodeAt(0),LOWER="a".charCodeAt(0),UPPER="A".charCodeAt(0),PLUS_URL_SAFE="-".charCodeAt(0),SLASH_URL_SAFE="_".charCodeAt(0);exports.toByteArray=b64ToByteArray,exports.fromByteArray=uint8ToBase64}("undefined"==typeof exports?this.base64js={}:exports)},{}],94:[function(require,module,exports){(function(global){function typedArraySupport(){function Bar(){}try{var arr=new Uint8Array(1);return arr.foo=function(){return 42},arr.constructor=Bar,42===arr.foo()&&arr.constructor===Bar&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Buffer(arg){return this instanceof Buffer?(this.length=0,this.parent=void 0,"number"==typeof arg?fromNumber(this,arg):"string"==typeof arg?fromString(this,arg,arguments.length>1?arguments[1]:"utf8"):fromObject(this,arg)):arguments.length>1?new Buffer(arg,arguments[1]):new Buffer(arg)}function fromNumber(that,length){if(that=allocate(that,0>length?0:0|checked(length)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;length>i;i++)that[i]=0;return that}function fromString(that,string,encoding){("string"!=typeof encoding||""===encoding)&&(encoding="utf8");var length=0|byteLength(string,encoding);return that=allocate(that,length),that.write(string,encoding),that}function fromObject(that,object){if(Buffer.isBuffer(object))return fromBuffer(that,object);if(isArray(object))return fromArray(that,object);if(null==object)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(object.buffer instanceof ArrayBuffer)return fromTypedArray(that,object);if(object instanceof ArrayBuffer)return fromArrayBuffer(that,object)}return object.length?fromArrayLike(that,object):fromJsonObject(that,object)}function fromBuffer(that,buffer){var length=0|checked(buffer.length);return that=allocate(that,length),buffer.copy(that,0,0,length),that}function fromArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromTypedArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromArrayBuffer(that,array){return Buffer.TYPED_ARRAY_SUPPORT?(array.byteLength,that=Buffer._augment(new Uint8Array(array))):that=fromTypedArray(that,new Uint8Array(array)),that}function fromArrayLike(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromJsonObject(that,object){var array,length=0;"Buffer"===object.type&&isArray(object.data)&&(array=object.data,length=0|checked(array.length)),that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function allocate(that,length){Buffer.TYPED_ARRAY_SUPPORT?(that=Buffer._augment(new Uint8Array(length)),that.__proto__=Buffer.prototype):(that.length=length,that._isBuffer=!0);var fromPool=0!==length&&length<=Buffer.poolSize>>>1;return fromPool&&(that.parent=rootParent),that}function checked(length){if(length>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(subject,encoding){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding);var buf=new Buffer(subject,encoding);return delete buf.parent,buf}function byteLength(string,encoding){"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"binary":case"raw":case"raws":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if(start=0|start,end=void 0===end||end===1/0?this.length:0|end,encoding||(encoding="utf8"),0>start&&(start=0),end>this.length&&(end=this.length),start>=end)return"";for(;;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;length>i;i++){var parsed=parseInt(string.substr(2*i,2),16);if(isNaN(parsed))throw new Error("Invalid hex string");buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}function base64Slice(buf,start,end){return 0===start&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;end>i;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(end>=i+bytesPerSequence){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:128>firstByte&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(55296>tempCodePoint||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&1114112>tempCodePoint&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(MAX_ARGUMENTS_LENGTH>=len)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;len>i;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(127&buf[i]);return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||0>start)&&(start=0),(!end||0>end||end>len)&&(end=len);for(var out="",i=start;end>i;i++)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;ioffset)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);j>i;i++)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);j>i;i++)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(0>offset)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return 16>n?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;length>i;i++){if(codePoint=string.charCodeAt(i),codePoint>55295&&57344>codePoint){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if((units-=1)<0)break;bytes.push(codePoint)}else if(2048>codePoint){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(65536>codePoint){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(1114112>codePoint))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;length>i&&!(i+offset>=dst.length||i>=src.length);i++)dst[i+offset]=src[i];return i}var base64=require("base64-js"),ieee754=require("ieee754"),isArray=require("is-array");exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.poolSize=8192;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array),Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);len>i&&a[i]===b[i];)++i;return i!==len&&(x=a[i],y=b[i]),y>x?-1:x>y?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError("list argument must be an Array of Buffers.");if(0===list.length)return new Buffer(0);var i;if(void 0===length)for(length=0,i=0;i0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),""},Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?0:Buffer.compare(this,b)},Buffer.prototype.indexOf=function(val,byteOffset){function arrayIndexOf(arr,val,byteOffset){for(var foundIndex=-1,i=0;byteOffset+i2147483647?byteOffset=2147483647:-2147483648>byteOffset&&(byteOffset=-2147483648),byteOffset>>=0,0===this.length)return-1;if(byteOffset>=this.length)return-1;if(0>byteOffset&&(byteOffset=Math.max(this.length+byteOffset,0)),"string"==typeof val)return 0===val.length?-1:String.prototype.indexOf.call(this,val,byteOffset);if(Buffer.isBuffer(val))return arrayIndexOf(this,val,byteOffset);if("number"==typeof val)return Buffer.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,val,byteOffset):arrayIndexOf(this,[val],byteOffset);throw new TypeError("val must be string, number or Buffer")},Buffer.prototype.get=function(offset){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(offset)},Buffer.prototype.set=function(v,offset){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(v,offset)},Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"==typeof offset)encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=0|offset,isFinite(length)?(length=0|length,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0);else{var swap=encoding;encoding=offset,offset=0|length,length=swap}var remaining=this.length-offset;if((void 0===length||length>remaining)&&(length=remaining),string.length>0&&(0>length||0>offset)||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"binary":return binaryWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,0>start?(start+=len,0>start&&(start=0)):start>len&&(start=len),0>end?(end+=len,0>end&&(end=0)):end>len&&(end=len),start>end&&(end=start);var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT)newBuf=Buffer._augment(this.subarray(start,end));else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,void 0);for(var i=0;sliceLen>i;i++)newBuf[i]=this[i+start]}return newBuf.length&&(newBuf.parent=this.parent||this),newBuf},Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?-1*(255-this[offset]+1):this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value,offset=0|offset,byteLength=0|byteLength,noAssert||checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1,i=0;for(this[offset]=255&value;++i=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0>value?1:0;for(this[offset]=255&value;++i>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0>value?1:0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),0>value&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),0>value&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&start>end&&(end=start),end===start)return 0;if(0===target.length||0===this.length)return 0;if(0>targetStart)throw new RangeError("targetStart out of bounds");if(0>start||start>=this.length)throw new RangeError("sourceStart out of bounds");if(0>end)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStartstart&&end>targetStart)for(i=len-1;i>=0;i--)target[i+targetStart]=this[i+start];else if(1e3>len||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;len>i;i++)target[i+targetStart]=this[i+start];else target._set(this.subarray(start,start+len),targetStart);return len},Buffer.prototype.fill=function(value,start,end){if(value||(value=0),start||(start=0),end||(end=this.length),start>end)throw new RangeError("end < start");if(end!==start&&0!==this.length){if(0>start||start>=this.length)throw new RangeError("start out of bounds");if(0>end||end>this.length)throw new RangeError("end out of bounds");var i;if("number"==typeof value)for(i=start;end>i;i++)this[i]=value;else{var bytes=utf8ToBytes(value.toString()),len=bytes.length;for(i=start;end>i;i++)this[i]=bytes[i%len]}return this}},Buffer.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(Buffer.TYPED_ARRAY_SUPPORT)return new Buffer(this).buffer;for(var buf=new Uint8Array(this.length),i=0,len=buf.length;len>i;i+=1)buf[i]=this[i];return buf.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var BP=Buffer.prototype;Buffer._augment=function(arr){return arr.constructor=Buffer,arr._isBuffer=!0,arr._set=arr.set,arr.get=BP.get,arr.set=BP.set,arr.write=BP.write,arr.toString=BP.toString,arr.toLocaleString=BP.toString,arr.toJSON=BP.toJSON,arr.equals=BP.equals,arr.compare=BP.compare,arr.indexOf=BP.indexOf,arr.copy=BP.copy,arr.slice=BP.slice,arr.readUIntLE=BP.readUIntLE,arr.readUIntBE=BP.readUIntBE,arr.readUInt8=BP.readUInt8,arr.readUInt16LE=BP.readUInt16LE,arr.readUInt16BE=BP.readUInt16BE,arr.readUInt32LE=BP.readUInt32LE,arr.readUInt32BE=BP.readUInt32BE,arr.readIntLE=BP.readIntLE,arr.readIntBE=BP.readIntBE,arr.readInt8=BP.readInt8,arr.readInt16LE=BP.readInt16LE,arr.readInt16BE=BP.readInt16BE,arr.readInt32LE=BP.readInt32LE,arr.readInt32BE=BP.readInt32BE,arr.readFloatLE=BP.readFloatLE,arr.readFloatBE=BP.readFloatBE,arr.readDoubleLE=BP.readDoubleLE,arr.readDoubleBE=BP.readDoubleBE,arr.writeUInt8=BP.writeUInt8,arr.writeUIntLE=BP.writeUIntLE,arr.writeUIntBE=BP.writeUIntBE,arr.writeUInt16LE=BP.writeUInt16LE,arr.writeUInt16BE=BP.writeUInt16BE,arr.writeUInt32LE=BP.writeUInt32LE,arr.writeUInt32BE=BP.writeUInt32BE,arr.writeIntLE=BP.writeIntLE,arr.writeIntBE=BP.writeIntBE,arr.writeInt8=BP.writeInt8,arr.writeInt16LE=BP.writeInt16LE,arr.writeInt16BE=BP.writeInt16BE,arr.writeInt32LE=BP.writeInt32LE,arr.writeInt32BE=BP.writeInt32BE,arr.writeFloatLE=BP.writeFloatLE,arr.writeFloatBE=BP.writeFloatBE,arr.writeDoubleLE=BP.writeDoubleLE,arr.writeDoubleBE=BP.writeDoubleBE,arr.fill=BP.fill,arr.inspect=BP.inspect,arr.toArrayBuffer=BP.toArrayBuffer,arr};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":93,ieee754:96,"is-array":97}],95:[function(require,module,exports){(function(Buffer){var clone=function(){"use strict";function clone(parent,circular,depth,prototype,includeNonEnumerable){function _clone(parent,depth){if(null===parent)return null;if(0===depth)return parent;var child,proto;if("object"!=typeof parent)return parent;if(parent instanceof nativeMap)child=new nativeMap;else if(parent instanceof nativeSet)child=new nativeSet;else if(parent instanceof nativePromise)child=new nativePromise(function(resolve,reject){parent.then(function(value){resolve(_clone(value,depth-1))},function(err){reject(_clone(err,depth-1))})});else if(clone.__isArray(parent))child=[];else if(clone.__isRegExp(parent))child=new RegExp(parent.source,__getRegExpFlags(parent)),parent.lastIndex&&(child.lastIndex=parent.lastIndex);else if(clone.__isDate(parent))child=new Date(parent.getTime());else{if(useBuffer&&Buffer.isBuffer(parent))return child=new Buffer(parent.length),parent.copy(child),child;parent instanceof Error?child=Object.create(parent):"undefined"==typeof prototype?(proto=Object.getPrototypeOf(parent),child=Object.create(proto)):(child=Object.create(prototype),proto=prototype)}if(circular){var index=allParents.indexOf(parent);if(-1!=index)return allChildren[index];allParents.push(parent),allChildren.push(child)}if(parent instanceof nativeMap)for(var keyIterator=parent.keys();;){var next=keyIterator.next();if(next.done)break;var keyChild=_clone(next.value,depth-1),valueChild=_clone(parent.get(next.value),depth-1);child.set(keyChild,valueChild)}if(parent instanceof nativeSet)for(var iterator=parent.keys();;){var next=iterator.next();if(next.done)break;var entryChild=_clone(next.value,depth-1);child.add(entryChild)}for(var i in parent){var attrs;proto&&(attrs=Object.getOwnPropertyDescriptor(proto,i)),attrs&&null==attrs.set||(child[i]=_clone(parent[i],depth-1))}if(Object.getOwnPropertySymbols)for(var symbols=Object.getOwnPropertySymbols(parent),i=0;i>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},{}],97:[function(require,module,exports){var isArray=Array.isArray,str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}},{}],98:[function(require,module,exports){!function(isNode){function merge_recursive(base,extend){if("object"!==typeOf(base))return extend;for(var key in extend)"object"===typeOf(base[key])&&"object"===typeOf(extend[key])?base[key]=merge_recursive(base[key],extend[key]):base[key]=extend[key];return base}function merge(clone,recursive,argv){var result=argv[0],size=argv.length;(clone||"object"!==typeOf(result))&&(result={});for(var index=0;size>index;++index){var item=argv[index],type=typeOf(item);if("object"===type)for(var key in item){var sitem=clone?Public.clone(item[key]):item[key];recursive?result[key]=merge_recursive(result[key],sitem):result[key]=sitem}}return result}function typeOf(input){return{}.toString.call(input).slice(8,-1).toLowerCase()}var Public=function(clone){return merge(clone===!0,!1,arguments)},publicName="merge";Public.recursive=function(clone){return merge(clone===!0,!0,arguments)},Public.clone=function(input){var index,size,output=input,type=typeOf(input);if("array"===type)for(output=[],size=input.length,index=0;size>index;++index)output[index]=Public.clone(input[index]);else if("object"===type){output={};for(index in input)output[index]=Public.clone(input[index])}return output},isNode?module.exports=Public:window[publicName]=Public}("object"==typeof module&&module&&"object"==typeof module.exports&&module.exports)},{}],99:[function(require,module,exports){function cleanUpNextTick(){draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue()}function drainQueue(){if(!draining){var timeout=setTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i=1&&page<=this.totalPages},allowedChunk:function(direction){return 1==direction&&this.currentChunk1},allowedPageClass:function(direction){return this.allowedPage(direction)?"":"disabled"},allowedChunkClass:function(direction){return this.allowedChunk(direction)?"":"disabled"},activeClass:function(page){return this.page==page?"active":""}}}},{"./template.jsx":105}],102:[function(require,module,exports){arguments[4][1][0].apply(exports,arguments)},{dup:1,vue:106}],103:[function(require,module,exports){"use strict";var bus=require("../bus");module.exports=function(){return{data:function(){return{page:1}},methods:{paginate:function(page){this.page=page,bus.$emit("vue-pagination::"+this["for"],page)}}}}},{"../bus":102}],104:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}module.exports=function(){return{created:function(){var name=this["for"];this.$store.state[name]||this.$store.registerModule(this["for"],{state:{page:1},mutations:_defineProperty({},name+"/PAGINATE",function(state,page){state.page=page})})},methods:{paginate:function(page){this.$store.commit(this["for"]+"/PAGINATE",page)}},computed:{page:function(){return this.$store.state[this["for"]].page}}}}},{}],105:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}module.exports=function(){return function(h){var items=[];return this.pages.map(function(page){items.push(h("li",_defineProperty({"class":"VuePagination__pagination-item"},"class",this.activeClass(page)),[h("a",{attrs:{href:"javascript:void(0);"},on:{click:this.setPage.bind(this,page)}},[page])]))}.bind(this)),h("div",{"class":"VuePagination"},[h("ul",{directives:[{name:"show",value:this.totalPages>1}],"class":"pagination VuePagination__pagination"},[h("li",_defineProperty({"class":"VuePagination__pagination-item VuePagination__pagination-item-prev-chunk"},"class",this.allowedChunkClass(-1)),[h("a",{attrs:{href:"javascript:void(0);"},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),h("li",_defineProperty({"class":"VuePagination__pagination-item VuePagination__pagination-item-prev-page"},"class",this.allowedPageClass(this.page-1)),[h("a",{attrs:{href:"javascript:void(0);"},on:{click:this.prev.bind(this)}},["<"])]),items,h("li",_defineProperty({"class":"VuePagination__pagination-item VuePagination__pagination-item-next-page"},"class",this.allowedPageClass(this.page+1)),[h("a",{attrs:{href:"javascript:void(0);"},on:{click:this.next.bind(this)}},[">"])]),h("li",_defineProperty({"class":"VuePagination__pagination-item VuePagination__pagination-item-next-chunk"},"class",this.allowedChunkClass(1)),[h("a",{attrs:{href:"javascript:void(0);"},on:{click:this.setChunk.bind(this,1)}},[">>"])])]),h("p",{directives:[{name:"show",value:parseInt(this.records)}],"class":"VuePagination__count"},[this.count])])}}},{}],106:[function(require,module,exports){(function(process){"use strict";function _toString(val){return null==val?"":"object"==typeof val?JSON.stringify(val,null,2):String(val)}function toNumber(val){var n=parseFloat(val,10);return n||0===n?n:val}function makeMap(str,expectsLowerCase){for(var map=Object.create(null),list=str.split(","),i=0;i-1)return arr.splice(index,1)}}function hasOwn(obj,key){return hasOwnProperty.call(obj,key)}function isPrimitive(value){return"string"==typeof value||"number"==typeof value}function cached(fn){var cache=Object.create(null);return function(str){var hit=cache[str];return hit||(cache[str]=fn(str))}}function bind$1(fn,ctx){function boundFn(a){var l=arguments.length;return l?l>1?fn.apply(ctx,arguments):fn.call(ctx,a):fn.call(ctx)}return boundFn._length=fn.length,boundFn}function toArray(list,start){start=start||0;for(var i=list.length-start,ret=new Array(i);i--;)ret[i]=list[i+start];return ret}function extend(to,_from){for(var key in _from)to[key]=_from[key];return to}function isObject(obj){return null!==obj&&"object"==typeof obj}function isPlainObject(obj){return toString.call(obj)===OBJECT_STRING}function toObject(arr){for(var res={},i=0;iconfig._maxUpdateCount)){warn("You may have an infinite update loop "+(watcher.user?'in watcher with expression "'+watcher.expression+'"':"in a component render function."),watcher.vm);break}}devtools&&config.devtools&&devtools.emit("flush"),resetSchedulerState()}function queueWatcher(watcher){var id=watcher.id;if(null==has$1[id]){if(has$1[id]=!0,flushing){for(var i=queue.length-1;i>=0&&queue[i].id>watcher.id;)i--; +queue.splice(Math.max(i,index)+1,0,watcher)}else queue.push(watcher);waiting||(waiting=!0,nextTick(flushSchedulerQueue))}}function traverse(val,seen){var i,keys;seen||(seen=seenObjects,seen.clear());var isA=Array.isArray(val),isO=isObject(val);if((isA||isO)&&Object.isExtensible(val)){if(val.__ob__){var depId=val.__ob__.dep.id;if(seen.has(depId))return;seen.add(depId)}if(isA)for(i=val.length;i--;)traverse(val[i],seen);else if(isO)for(keys=Object.keys(val),i=keys.length;i--;)traverse(val[keys[i]],seen)}}function protoAugment(target,src){target.__proto__=src}function copyAugment(target,src,keys){for(var i=0,l=keys.length;l>i;i++){var key=keys[i];def(target,key,src[key])}}function observe(value){if(isObject(value)){var ob;return hasOwn(value,"__ob__")&&value.__ob__ instanceof Observer?ob=value.__ob__:observerState.shouldConvert&&!config._isServer&&(Array.isArray(value)||isPlainObject(value))&&Object.isExtensible(value)&&!value._isVue&&(ob=new Observer(value)),ob}}function defineReactive$$1(obj,key,val,customSetter){var dep=new Dep,property=Object.getOwnPropertyDescriptor(obj,key);if(!property||property.configurable!==!1){var getter=property&&property.get,setter=property&&property.set,childOb=observe(val);Object.defineProperty(obj,key,{enumerable:!0,configurable:!0,get:function(){var value=getter?getter.call(obj):val;if(Dep.target&&(dep.depend(),childOb&&childOb.dep.depend(),Array.isArray(value)))for(var e=void 0,i=0,l=value.length;l>i;i++)e=value[i],e&&e.__ob__&&e.__ob__.dep.depend();return value},set:function(newVal){var value=getter?getter.call(obj):val;newVal!==value&&("production"!==process.env.NODE_ENV&&customSetter&&customSetter(),setter?setter.call(obj,newVal):val=newVal,childOb=observe(newVal),dep.notify())}})}}function set(obj,key,val){if(Array.isArray(obj))return obj.splice(key,1,val),val;if(hasOwn(obj,key))return void(obj[key]=val);var ob=obj.__ob__;return obj._isVue||ob&&ob.vmCount?void("production"!==process.env.NODE_ENV&&warn("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.")):ob?(defineReactive$$1(ob.value,key,val),ob.dep.notify(),val):void(obj[key]=val)}function del(obj,key){var ob=obj.__ob__;return obj._isVue||ob&&ob.vmCount?void("production"!==process.env.NODE_ENV&&warn("Avoid deleting properties on a Vue instance or its root $data - just set it to null.")):void(hasOwn(obj,key)&&(delete obj[key],ob&&ob.dep.notify()))}function initState(vm){vm._watchers=[],initProps(vm),initData(vm),initComputed(vm),initMethods(vm),initWatch(vm)}function initProps(vm){var props=vm.$options.props;if(props){var propsData=vm.$options.propsData||{},keys=vm.$options._propKeys=Object.keys(props),isRoot=!vm.$parent;observerState.shouldConvert=isRoot;for(var loop=function(i){var key=keys[i];"production"!==process.env.NODE_ENV?defineReactive$$1(vm,key,validateProp(key,props,propsData,vm),function(){vm.$parent&&!observerState.isSettingProps&&warn("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+key+'"',vm)}):defineReactive$$1(vm,key,validateProp(key,props,propsData,vm))},i=0;ii;i++){var c=children[i],last=res[res.length-1];Array.isArray(c)?res.push.apply(res,normalizeChildren(c,ns,i)):isPrimitive(c)?last&&last.text?last.text+=String(c):""!==c&&res.push(createTextVNode(c)):c instanceof VNode&&(c.text&&last&&last.text?last.text+=c.text:(ns&&applyNS(c,ns),c.tag&&null==c.key&&null!=nestedIndex&&(c.key="__vlist_"+nestedIndex+"_"+i+"__"),res.push(c)))}return res}}function createTextVNode(val){return new VNode(void 0,void 0,void 0,String(val))}function applyNS(vnode,ns){if(vnode.tag&&!vnode.ns&&(vnode.ns=ns,vnode.children))for(var i=0,l=vnode.children.length;l>i;i++)applyNS(vnode.children[i],ns)}function getFirstComponentChild(children){return children&&children.filter(function(c){return c&&c.componentOptions})[0]}function mergeVNodeHook(def$$1,key,hook){var oldHook=def$$1[key];if(oldHook){var injectedHash=def$$1.__injected||(def$$1.__injected={});injectedHash[key]||(injectedHash[key]=!0,def$$1[key]=function(){oldHook.apply(this,arguments),hook.apply(this,arguments)})}else def$$1[key]=hook}function updateListeners(on,oldOn,add,remove$$1){var name,cur,old,fn,event,capture;for(name in on)if(cur=on[name],old=oldOn[name],cur)if(old){if(cur!==old)if(Array.isArray(old)){old.length=cur.length;for(var i=0;ii;i++)handlers[i].call(vm);vm.$emit("hook:"+hook)}function createComponent(Ctor,data,context,children,tag){if(Ctor){if(isObject(Ctor)&&(Ctor=Vue$2.extend(Ctor)),"function"!=typeof Ctor)return void("production"!==process.env.NODE_ENV&&warn("Invalid Component definition: "+String(Ctor),context));if(!Ctor.cid)if(Ctor.resolved)Ctor=Ctor.resolved;else if(Ctor=resolveAsyncComponent(Ctor,function(){context.$forceUpdate()}),!Ctor)return;data=data||{};var propsData=extractProps(data,Ctor);if(Ctor.options.functional)return createFunctionalComponent(Ctor,propsData,data,context,children);var listeners=data.on;data.on=data.nativeOn,Ctor.options["abstract"]&&(data={}),mergeHooks(data);var name=Ctor.options.name||tag,vnode=new VNode("vue-component-"+Ctor.cid+(name?"-"+name:""),data,void 0,void 0,void 0,void 0,context,{Ctor:Ctor,propsData:propsData,listeners:listeners,tag:tag,children:children});return vnode}}function createFunctionalComponent(Ctor,propsData,data,context,children){var props={},propOptions=Ctor.options.props;if(propOptions)for(var key in propOptions)props[key]=validateProp(key,propOptions,propsData);return Ctor.options.render.call(null,bind$1(createElement,{_self:Object.create(context)}),{props:props,data:data,parent:context,children:normalizeChildren(children),slots:function(){return resolveSlots(children,context)}})}function createComponentInstanceForVnode(vnode,parent){var vnodeComponentOptions=vnode.componentOptions,options={_isComponent:!0,parent:parent,propsData:vnodeComponentOptions.propsData,_componentTag:vnodeComponentOptions.tag,_parentVnode:vnode,_parentListeners:vnodeComponentOptions.listeners,_renderChildren:vnodeComponentOptions.children},inlineTemplate=vnode.data.inlineTemplate;return inlineTemplate&&(options.render=inlineTemplate.render,options.staticRenderFns=inlineTemplate.staticRenderFns),new vnodeComponentOptions.Ctor(options)}function init(vnode,hydrating){if(!vnode.child||vnode.child._isDestroyed){var child=vnode.child=createComponentInstanceForVnode(vnode,activeInstance);child.$mount(hydrating?vnode.elm:void 0,hydrating)}}function prepatch(oldVnode,vnode){var options=vnode.componentOptions,child=vnode.child=oldVnode.child;child._updateFromParent(options.propsData,options.listeners,vnode,options.children)}function insert(vnode){vnode.child._isMounted||(vnode.child._isMounted=!0,callHook(vnode.child,"mounted")),vnode.data.keepAlive&&(vnode.child._inactive=!1,callHook(vnode.child,"activated"))}function destroy$1(vnode){vnode.child._isDestroyed||(vnode.data.keepAlive?(vnode.child._inactive=!0,callHook(vnode.child,"deactivated")):vnode.child.$destroy())}function resolveAsyncComponent(factory,cb){if(!factory.requested){factory.requested=!0;var cbs=factory.pendingCallbacks=[cb],sync=!0,resolve=function(res){if(isObject(res)&&(res=Vue$2.extend(res)),factory.resolved=res,!sync)for(var i=0,l=cbs.length;l>i;i++)cbs[i](res)},reject=function(reason){"production"!==process.env.NODE_ENV&&warn("Failed to resolve async component: "+String(factory)+(reason?"\nReason: "+reason:""))},res=factory(resolve,reject);return res&&"function"==typeof res.then&&!factory.resolved&&res.then(resolve,reject),sync=!1,factory.resolved}factory.pendingCallbacks.push(cb)}function extractProps(data,Ctor){var propOptions=Ctor.options.props;if(propOptions){var res={},attrs=data.attrs,props=data.props,domProps=data.domProps;if(attrs||props||domProps)for(var key in propOptions){var altKey=hyphenate(key);checkProp(res,props,key,altKey,!0)||checkProp(res,attrs,key,altKey)||checkProp(res,domProps,key,altKey)}return res}}function checkProp(res,hash,key,altKey,preserve){if(hash){if(hasOwn(hash,key))return res[key]=hash[key],preserve||delete hash[key],!0;if(hasOwn(hash,altKey))return res[key]=hash[altKey],preserve||delete hash[altKey],!0}return!1}function mergeHooks(data){data.hook||(data.hook={});for(var i=0;ii;i++)ret[i]=render(val[i],i);else if("number"==typeof val)for(ret=new Array(val),i=0;val>i;i++)ret[i]=render(i+1,i);else if(isObject(val))for(keys=Object.keys(val),ret=new Array(keys.length),i=0,l=keys.length;l>i;i++)key=keys[i],ret[i]=render(val[key],key,i);return ret},Vue.prototype._t=function(name,fallback){var slotNodes=this.$slots[name];return slotNodes&&"production"!==process.env.NODE_ENV&&(slotNodes._rendered&&warn('Duplicate presence of slot "'+name+'" found in the same render tree - this will likely cause render errors.',this),slotNodes._rendered=!0),slotNodes||fallback},Vue.prototype._b=function(data,value,asProp){if(value)if(isObject(value)){Array.isArray(value)&&(value=toObject(value));for(var key in value)if("class"===key||"style"===key)data[key]=value[key];else{var hash=asProp||config.mustUseProp(key)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={});hash[key]=value[key]}}else"production"!==process.env.NODE_ENV&&warn("v-bind without argument expects an Object or Array value",this);return data},Vue.prototype._k=function(key){return config.keyCodes[key]}}function resolveSlots(renderChildren,context){var slots={};if(!renderChildren)return slots;for(var name,child,children=normalizeChildren(renderChildren)||[],defaultSlot=[],i=0,l=children.length;l>i;i++)if(child=children[i],child.context===context&&child.data&&(name=child.data.slot)){var slot=slots[name]||(slots[name]=[]);"template"===child.tag?slot.push.apply(slot,child.children):slot.push(child)}else defaultSlot.push(child);return defaultSlot.length&&(1!==defaultSlot.length||" "!==defaultSlot[0].text&&!defaultSlot[0].isComment)&&(slots["default"]=defaultSlot),slots}function initEvents(vm){vm._events=Object.create(null);var listeners=vm.$options._parentListeners,on=bind$1(vm.$on,vm),off=bind$1(vm.$off,vm);vm._updateListeners=function(listeners,oldListeners){updateListeners(listeners,oldListeners||{},on,off)},listeners&&vm._updateListeners(listeners)}function eventsMixin(Vue){Vue.prototype.$on=function(event,fn){var vm=this;return(vm._events[event]||(vm._events[event]=[])).push(fn),vm},Vue.prototype.$once=function(event,fn){function on(){vm.$off(event,on),fn.apply(vm,arguments)}var vm=this;return on.fn=fn,vm.$on(event,on),vm},Vue.prototype.$off=function(event,fn){var vm=this;if(!arguments.length)return vm._events=Object.create(null),vm;var cbs=vm._events[event];if(!cbs)return vm;if(1===arguments.length)return vm._events[event]=null,vm;for(var cb,i=cbs.length;i--;)if(cb=cbs[i],cb===fn||cb.fn===fn){cbs.splice(i,1);break}return vm},Vue.prototype.$emit=function(event){var vm=this,cbs=vm._events[event];if(cbs){cbs=cbs.length>1?toArray(cbs):cbs;for(var args=toArray(arguments,1),i=0,l=cbs.length;l>i;i++)cbs[i].apply(vm,args)}return vm}}function initMixin(Vue){function initInternalComponent(vm,options){var opts=vm.$options=Object.create(resolveConstructorOptions(vm));opts.parent=options.parent,opts.propsData=options.propsData,opts._parentVnode=options._parentVnode,opts._parentListeners=options._parentListeners,opts._renderChildren=options._renderChildren,opts._componentTag=options._componentTag,options.render&&(opts.render=options.render,opts.staticRenderFns=options.staticRenderFns)}function resolveConstructorOptions(vm){var Ctor=vm.constructor,options=Ctor.options;if(Ctor["super"]){var superOptions=Ctor["super"].options,cachedSuperOptions=Ctor.superOptions;superOptions!==cachedSuperOptions&&(Ctor.superOptions=superOptions,options=Ctor.options=mergeOptions(superOptions,Ctor.extendOptions),options.name&&(options.components[options.name]=Ctor))}return options}Vue.prototype._init=function(options){var vm=this;vm._uid=uid++,vm._isVue=!0,options&&options._isComponent?initInternalComponent(vm,options):vm.$options=mergeOptions(resolveConstructorOptions(vm),options||{},vm),"production"!==process.env.NODE_ENV?initProxy(vm):vm._renderProxy=vm,vm._self=vm,initLifecycle(vm),initEvents(vm),callHook(vm,"beforeCreate"),initState(vm),callHook(vm,"created"),initRender(vm)}}function Vue$2(options){"production"===process.env.NODE_ENV||this instanceof Vue$2||warn("Vue is a constructor and should be called with the `new` keyword"),this._init(options)}function mergeData(to,from){var key,toVal,fromVal;for(key in from)toVal=to[key],fromVal=from[key],hasOwn(to,key)?isObject(toVal)&&isObject(fromVal)&&mergeData(toVal,fromVal):set(to,key,fromVal);return to}function mergeHook(parentVal,childVal){return childVal?parentVal?parentVal.concat(childVal):Array.isArray(childVal)?childVal:[childVal]:parentVal}function mergeAssets(parentVal,childVal){var res=Object.create(parentVal||null);return childVal?extend(res,childVal):res}function normalizeComponents(options){if(options.components){var def,components=options.components;for(var key in components){var lower=key.toLowerCase();isBuiltInTag(lower)||config.isReservedTag(lower)?"production"!==process.env.NODE_ENV&&warn("Do not use built-in or reserved HTML elements as component id: "+key):(def=components[key],isPlainObject(def)&&(components[key]=Vue$2.extend(def)))}}}function normalizeProps(options){var props=options.props;if(props){var i,val,name,res={};if(Array.isArray(props))for(i=props.length;i--;)val=props[i],"string"==typeof val?(name=camelize(val),res[name]={type:null}):"production"!==process.env.NODE_ENV&&warn("props must be strings when using array syntax.");else if(isPlainObject(props))for(var key in props)val=props[key],name=camelize(key),res[name]=isPlainObject(val)?val:{type:val};options.props=res}}function normalizeDirectives(options){var dirs=options.directives;if(dirs)for(var key in dirs){var def=dirs[key];"function"==typeof def&&(dirs[key]={bind:def,update:def})}}function mergeOptions(parent,child,vm){function mergeField(key){var strat=strats[key]||defaultStrat;options[key]=strat(parent[key],child[key],vm,key)}normalizeComponents(child),normalizeProps(child),normalizeDirectives(child);var extendsFrom=child["extends"];if(extendsFrom&&(parent="function"==typeof extendsFrom?mergeOptions(parent,extendsFrom.options,vm):mergeOptions(parent,extendsFrom,vm)),child.mixins)for(var i=0,l=child.mixins.length;l>i;i++){var mixin=child.mixins[i];mixin.prototype instanceof Vue$2&&(mixin=mixin.options),parent=mergeOptions(parent,mixin,vm)}var key,options={};for(key in parent)mergeField(key);for(key in child)hasOwn(parent,key)||mergeField(key);return options}function resolveAsset(options,type,id,warnMissing){if("string"==typeof id){var assets=options[type],res=assets[id]||assets[camelize(id)]||assets[capitalize(camelize(id))];return"production"!==process.env.NODE_ENV&&warnMissing&&!res&&warn("Failed to resolve "+type.slice(0,-1)+": "+id,options),res}}function validateProp(key,propOptions,propsData,vm){var prop=propOptions[key],absent=!hasOwn(propsData,key),value=propsData[key];if("Boolean"===getType(prop.type)&&(absent&&!hasOwn(prop,"default")?value=!1:(""===value||value===hyphenate(key))&&(value=!0)),void 0===value){value=getPropDefaultValue(vm,prop,key);var prevShouldConvert=observerState.shouldConvert;observerState.shouldConvert=!0,observe(value),observerState.shouldConvert=prevShouldConvert}return"production"!==process.env.NODE_ENV&&assertProp(prop,key,value,vm,absent),value}function getPropDefaultValue(vm,prop,name){if(!hasOwn(prop,"default"))return void 0;var def=prop["default"];return isObject(def)&&"production"!==process.env.NODE_ENV&&warn('Invalid default value for prop "'+name+'": Props with type Object/Array must use a factory function to return the default value.',vm),"function"==typeof def&&prop.type!==Function?def.call(vm):def}function assertProp(prop,name,value,vm,absent){if(prop.required&&absent)return void warn('Missing required prop: "'+name+'"',vm);if(null!=value||prop.required){var type=prop.type,valid=!type||type===!0,expectedTypes=[];if(type){Array.isArray(type)||(type=[type]);for(var i=0;ii;i++)value[i]&&(stringified=stringifyClass(value[i]))&&(res+=stringified+" ");return res.slice(0,-1)}if(isObject(value)){for(var key in value)value[key]&&(res+=key+" ");return res.slice(0,-1)}return res}function getTagNamespace(tag){return isSVG(tag)?"svg":"math"===tag?"math":void 0}function isUnknownElement(tag){if(!inBrowser)return!0;if(isReservedTag(tag))return!1;if(tag=tag.toLowerCase(),null!=unknownElementCache[tag])return unknownElementCache[tag];var el=document.createElement(tag);return tag.indexOf("-")>-1?unknownElementCache[tag]=el.constructor===window.HTMLUnknownElement||el.constructor===window.HTMLElement:unknownElementCache[tag]=/HTMLUnknownElement/.test(el.toString())}function query(el){if("string"==typeof el){var selector=el;if(el=document.querySelector(el),!el)return"production"!==process.env.NODE_ENV&&warn("Cannot find element: "+selector),document.createElement("div")}return el}function createElement$1(tagName){return document.createElement(tagName)}function createElementNS(namespace,tagName){return document.createElementNS(namespaceMap[namespace],tagName)}function createTextNode(text){ +return document.createTextNode(text)}function createComment(text){return document.createComment(text)}function insertBefore(parentNode,newNode,referenceNode){parentNode.insertBefore(newNode,referenceNode)}function removeChild(node,child){node.removeChild(child)}function appendChild(node,child){node.appendChild(child)}function parentNode(node){return node.parentNode}function nextSibling(node){return node.nextSibling}function tagName(node){return node.tagName}function setTextContent(node,text){node.textContent=text}function childNodes(node){return node.childNodes}function setAttribute(node,key,val){node.setAttribute(key,val)}function registerRef(vnode,isRemoval){var key=vnode.data.ref;if(key){var vm=vnode.context,ref=vnode.child||vnode.elm,refs=vm.$refs;isRemoval?Array.isArray(refs[key])?remove$1(refs[key],ref):refs[key]===ref&&(refs[key]=void 0):vnode.data.refInFor?Array.isArray(refs[key])?refs[key].push(ref):refs[key]=[ref]:refs[key]=ref}}function isUndef(s){return null==s}function isDef(s){return null!=s}function sameVnode(vnode1,vnode2){return vnode1.key===vnode2.key&&vnode1.tag===vnode2.tag&&vnode1.isComment===vnode2.isComment&&!vnode1.data==!vnode2.data}function createKeyToOldIdx(children,beginIdx,endIdx){var i,key,map={};for(i=beginIdx;endIdx>=i;++i)key=children[i].key,isDef(key)&&(map[key]=i);return map}function createPatchFunction(backend){function emptyNodeAt(elm){return new VNode(nodeOps.tagName(elm).toLowerCase(),{},[],void 0,elm)}function createRmCb(childElm,listeners){function remove$$1(){0===--remove$$1.listeners&&removeElement(childElm)}return remove$$1.listeners=listeners,remove$$1}function removeElement(el){var parent=nodeOps.parentNode(el);nodeOps.removeChild(parent,el)}function createElm(vnode,insertedVnodeQueue,nested){var i,data=vnode.data;if(vnode.isRootInsert=!nested,isDef(data)&&(isDef(i=data.hook)&&isDef(i=i.init)&&i(vnode),isDef(i=vnode.child)))return initComponent(vnode,insertedVnodeQueue),vnode.elm;var children=vnode.children,tag=vnode.tag;return isDef(tag)?("production"!==process.env.NODE_ENV&&(vnode.ns||config.ignoredElements&&config.ignoredElements.indexOf(tag)>-1||!config.isUnknownElement(tag)||warn("Unknown custom element: <"+tag+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',vnode.context)),vnode.elm=vnode.ns?nodeOps.createElementNS(vnode.ns,tag):nodeOps.createElement(tag),setScope(vnode),createChildren(vnode,children,insertedVnodeQueue),isDef(data)&&invokeCreateHooks(vnode,insertedVnodeQueue)):vnode.isComment?vnode.elm=nodeOps.createComment(vnode.text):vnode.elm=nodeOps.createTextNode(vnode.text),vnode.elm}function createChildren(vnode,children,insertedVnodeQueue){if(Array.isArray(children))for(var i=0;i=startIdx;++startIdx)nodeOps.insertBefore(parentElm,createElm(vnodes[startIdx],insertedVnodeQueue),before)}function invokeDestroyHook(vnode){var i,j,data=vnode.data;if(isDef(data))for(isDef(i=data.hook)&&isDef(i=i.destroy)&&i(vnode),i=0;i=startIdx;++startIdx){var ch=vnodes[startIdx];isDef(ch)&&(isDef(ch.tag)?(removeAndInvokeRemoveHook(ch),invokeDestroyHook(ch)):nodeOps.removeChild(parentElm,ch.elm))}}function removeAndInvokeRemoveHook(vnode,rm){if(rm||isDef(vnode.data)){var listeners=cbs.remove.length+1;for(rm?rm.listeners+=listeners:rm=createRmCb(vnode.elm,listeners),isDef(i=vnode.child)&&isDef(i=i._vnode)&&isDef(i.data)&&removeAndInvokeRemoveHook(i,rm),i=0;i=oldStartIdx&&newEndIdx>=newStartIdx;)isUndef(oldStartVnode)?oldStartVnode=oldCh[++oldStartIdx]:isUndef(oldEndVnode)?oldEndVnode=oldCh[--oldEndIdx]:sameVnode(oldStartVnode,newStartVnode)?(patchVnode(oldStartVnode,newStartVnode,insertedVnodeQueue),oldStartVnode=oldCh[++oldStartIdx],newStartVnode=newCh[++newStartIdx]):sameVnode(oldEndVnode,newEndVnode)?(patchVnode(oldEndVnode,newEndVnode,insertedVnodeQueue),oldEndVnode=oldCh[--oldEndIdx],newEndVnode=newCh[--newEndIdx]):sameVnode(oldStartVnode,newEndVnode)?(patchVnode(oldStartVnode,newEndVnode,insertedVnodeQueue),canMove&&nodeOps.insertBefore(parentElm,oldStartVnode.elm,nodeOps.nextSibling(oldEndVnode.elm)),oldStartVnode=oldCh[++oldStartIdx],newEndVnode=newCh[--newEndIdx]):sameVnode(oldEndVnode,newStartVnode)?(patchVnode(oldEndVnode,newStartVnode,insertedVnodeQueue),canMove&&nodeOps.insertBefore(parentElm,oldEndVnode.elm,oldStartVnode.elm),oldEndVnode=oldCh[--oldEndIdx],newStartVnode=newCh[++newStartIdx]):(isUndef(oldKeyToIdx)&&(oldKeyToIdx=createKeyToOldIdx(oldCh,oldStartIdx,oldEndIdx)),idxInOld=isDef(newStartVnode.key)?oldKeyToIdx[newStartVnode.key]:null,isUndef(idxInOld)?(nodeOps.insertBefore(parentElm,createElm(newStartVnode,insertedVnodeQueue),oldStartVnode.elm),newStartVnode=newCh[++newStartIdx]):(elmToMove=oldCh[idxInOld],"production"===process.env.NODE_ENV||elmToMove||warn("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),elmToMove.tag!==newStartVnode.tag?(nodeOps.insertBefore(parentElm,createElm(newStartVnode,insertedVnodeQueue),oldStartVnode.elm),newStartVnode=newCh[++newStartIdx]):(patchVnode(elmToMove,newStartVnode,insertedVnodeQueue),oldCh[idxInOld]=void 0,canMove&&nodeOps.insertBefore(parentElm,newStartVnode.elm,oldStartVnode.elm),newStartVnode=newCh[++newStartIdx])));oldStartIdx>oldEndIdx?(before=isUndef(newCh[newEndIdx+1])?null:newCh[newEndIdx+1].elm,addVnodes(parentElm,before,newCh,newStartIdx,newEndIdx,insertedVnodeQueue)):newStartIdx>newEndIdx&&removeVnodes(parentElm,oldCh,oldStartIdx,oldEndIdx)}function patchVnode(oldVnode,vnode,insertedVnodeQueue,removeOnly){if(oldVnode!==vnode){if(vnode.isStatic&&oldVnode.isStatic&&vnode.key===oldVnode.key&&vnode.isCloned)return void(vnode.elm=oldVnode.elm);var i,hook,hasData=isDef(i=vnode.data);hasData&&isDef(hook=i.hook)&&isDef(i=hook.prepatch)&&i(oldVnode,vnode);var elm=vnode.elm=oldVnode.elm,oldCh=oldVnode.children,ch=vnode.children;if(hasData&&isPatchable(vnode)){for(i=0;i, or missing . Bailing hydration and performing full client-side render.")}oldVnode=emptyNodeAt(oldVnode)}if(elm=oldVnode.elm,parent=nodeOps.parentNode(elm),createElm(vnode,insertedVnodeQueue),vnode.parent&&(vnode.parent.elm=vnode.elm,isPatchable(vnode)))for(var i=0;i-1?cls.split(/\s+/).forEach(function(c){return el.classList.add(c)}):el.classList.add(cls);else{var cur=" "+el.getAttribute("class")+" ";cur.indexOf(" "+cls+" ")<0&&el.setAttribute("class",(cur+cls).trim())}}function removeClass(el,cls){if(el.classList)cls.indexOf(" ")>-1?cls.split(/\s+/).forEach(function(c){return el.classList.remove(c)}):el.classList.remove(cls);else{for(var cur=" "+el.getAttribute("class")+" ",tar=" "+cls+" ";cur.indexOf(tar)>=0;)cur=cur.replace(tar," ");el.setAttribute("class",cur.trim())}}function nextFrame(fn){raf(function(){raf(fn)})}function addTransitionClass(el,cls){(el._transitionClasses||(el._transitionClasses=[])).push(cls),addClass(el,cls)}function removeTransitionClass(el,cls){el._transitionClasses&&remove$1(el._transitionClasses,cls),removeClass(el,cls)}function whenTransitionEnds(el,expectedType,cb){var ref=getTransitionInfo(el,expectedType),type=ref.type,timeout=ref.timeout,propCount=ref.propCount;if(!type)return cb();var event=type===TRANSITION?transitionEndEvent:animationEndEvent,ended=0,end=function(){el.removeEventListener(event,onEnd),cb()},onEnd=function(e){e.target===el&&++ended>=propCount&&end()};setTimeout(function(){propCount>ended&&end()},timeout+1),el.addEventListener(event,onEnd)}function getTransitionInfo(el,expectedType){var type,styles=window.getComputedStyle(el),transitioneDelays=styles[transitionProp+"Delay"].split(", "),transitionDurations=styles[transitionProp+"Duration"].split(", "),transitionTimeout=getTimeout(transitioneDelays,transitionDurations),animationDelays=styles[animationProp+"Delay"].split(", "),animationDurations=styles[animationProp+"Duration"].split(", "),animationTimeout=getTimeout(animationDelays,animationDurations),timeout=0,propCount=0;expectedType===TRANSITION?transitionTimeout>0&&(type=TRANSITION,timeout=transitionTimeout,propCount=transitionDurations.length):expectedType===ANIMATION?animationTimeout>0&&(type=ANIMATION,timeout=animationTimeout,propCount=animationDurations.length):(timeout=Math.max(transitionTimeout,animationTimeout),type=timeout>0?transitionTimeout>animationTimeout?TRANSITION:ANIMATION:null,propCount=type?type===TRANSITION?transitionDurations.length:animationDurations.length:0);var hasTransform=type===TRANSITION&&transformRE.test(styles[transitionProp+"Property"]);return{type:type,timeout:timeout,propCount:propCount,hasTransform:hasTransform}}function getTimeout(delays,durations){return Math.max.apply(null,durations.map(function(d,i){return toMs(d)+toMs(delays[i])}))}function toMs(s){return 1e3*Number(s.slice(0,-1))}function enter(vnode){var el=vnode.elm;el._leaveCb&&(el._leaveCb.cancelled=!0,el._leaveCb());var data=resolveTransition(vnode.data.transition);if(data&&!el._enterCb&&1===el.nodeType){var css=data.css,type=data.type,enterClass=data.enterClass,enterActiveClass=data.enterActiveClass,appearClass=data.appearClass,appearActiveClass=data.appearActiveClass,beforeEnter=data.beforeEnter,enter=data.enter,afterEnter=data.afterEnter,enterCancelled=data.enterCancelled,beforeAppear=data.beforeAppear,appear=data.appear,afterAppear=data.afterAppear,appearCancelled=data.appearCancelled,transitionNode=activeInstance.$vnode,context=transitionNode&&transitionNode.parent?transitionNode.parent.context:activeInstance,isAppear=!context._isMounted||!vnode.isRootInsert;if(!isAppear||appear||""===appear){var startClass=isAppear?appearClass:enterClass,activeClass=isAppear?appearActiveClass:enterActiveClass,beforeEnterHook=isAppear?beforeAppear||beforeEnter:beforeEnter,enterHook=isAppear&&"function"==typeof appear?appear:enter,afterEnterHook=isAppear?afterAppear||afterEnter:afterEnter,enterCancelledHook=isAppear?appearCancelled||enterCancelled:enterCancelled,expectsCSS=css!==!1&&!isIE9,userWantsControl=enterHook&&(enterHook._length||enterHook.length)>1,cb=el._enterCb=once(function(){expectsCSS&&removeTransitionClass(el,activeClass),cb.cancelled?(expectsCSS&&removeTransitionClass(el,startClass),enterCancelledHook&&enterCancelledHook(el)):afterEnterHook&&afterEnterHook(el),el._enterCb=null});vnode.data.show||mergeVNodeHook(vnode.data.hook||(vnode.data.hook={}),"insert",function(){var parent=el.parentNode,pendingNode=parent&&parent._pending&&parent._pending[vnode.key];pendingNode&&pendingNode.tag===vnode.tag&&pendingNode.elm._leaveCb&&pendingNode.elm._leaveCb(),enterHook&&enterHook(el,cb)}),beforeEnterHook&&beforeEnterHook(el),expectsCSS&&(addTransitionClass(el,startClass),addTransitionClass(el,activeClass),nextFrame(function(){removeTransitionClass(el,startClass),cb.cancelled||userWantsControl||whenTransitionEnds(el,type,cb)})),vnode.data.show&&enterHook&&enterHook(el,cb),expectsCSS||userWantsControl||cb()}}}function leave(vnode,rm){function performLeave(){cb.cancelled||(vnode.data.show||((el.parentNode._pending||(el.parentNode._pending={}))[vnode.key]=vnode),beforeLeave&&beforeLeave(el),expectsCSS&&(addTransitionClass(el,leaveClass),addTransitionClass(el,leaveActiveClass),nextFrame(function(){removeTransitionClass(el,leaveClass),cb.cancelled||userWantsControl||whenTransitionEnds(el,type,cb)})),leave&&leave(el,cb),expectsCSS||userWantsControl||cb())}var el=vnode.elm;el._enterCb&&(el._enterCb.cancelled=!0,el._enterCb());var data=resolveTransition(vnode.data.transition);if(!data)return rm();if(!el._leaveCb&&1===el.nodeType){var css=data.css,type=data.type,leaveClass=data.leaveClass,leaveActiveClass=data.leaveActiveClass,beforeLeave=data.beforeLeave,leave=data.leave,afterLeave=data.afterLeave,leaveCancelled=data.leaveCancelled,delayLeave=data.delayLeave,expectsCSS=css!==!1&&!isIE9,userWantsControl=leave&&(leave._length||leave.length)>1,cb=el._leaveCb=once(function(){el.parentNode&&el.parentNode._pending&&(el.parentNode._pending[vnode.key]=null),expectsCSS&&removeTransitionClass(el,leaveActiveClass),cb.cancelled?(expectsCSS&&removeTransitionClass(el,leaveClass),leaveCancelled&&leaveCancelled(el)):(rm(),afterLeave&&afterLeave(el)),el._leaveCb=null});delayLeave?delayLeave(performLeave):performLeave()}}function resolveTransition(def$$1){if(def$$1){if("object"==typeof def$$1){var res={};return def$$1.css!==!1&&extend(res,autoCssTransition(def$$1.name||"v")),extend(res,def$$1),res}return"string"==typeof def$$1?autoCssTransition(def$$1):void 0}}function once(fn){var called=!1;return function(){called||(called=!0,fn())}}function setSelected(el,binding,vm){var value=binding.value,isMultiple=el.multiple;if(isMultiple&&!Array.isArray(value))return void("production"!==process.env.NODE_ENV&&warn('",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) +},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("