From 00d785d8912141eb11d0ddde0faed81a458d447e Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 5 Aug 2019 19:45:20 +0200 Subject: [PATCH] New middleware that should make sure the new forms redirect as well. --- .../Transaction/CreateController.php | 21 +- .../Transaction/EditController.php | 6 +- app/Http/Kernel.php | 3 +- app/Http/Middleware/InterestingMessage.php | 118 ++++++++ .../Http/Controllers/UserNavigation.php | 15 +- public/v1/js/app.js | 2 +- .../transactions/CreateTransaction.vue | 5 +- .../transactions/EditTransaction.vue | 2 +- resources/lang/en_US/breadcrumbs.php | 1 + resources/views/v1/transactions/create.twig | 275 +----------------- resources/views/v1/transactions/edit.twig | 270 +---------------- 11 files changed, 149 insertions(+), 569 deletions(-) create mode 100644 app/Http/Middleware/InterestingMessage.php diff --git a/app/Http/Controllers/Transaction/CreateController.php b/app/Http/Controllers/Transaction/CreateController.php index 96473e5ec8..edf9c73db3 100644 --- a/app/Http/Controllers/Transaction/CreateController.php +++ b/app/Http/Controllers/Transaction/CreateController.php @@ -27,7 +27,6 @@ namespace FireflyIII\Http\Controllers\Transaction; use FireflyIII\Http\Controllers\Controller; use FireflyIII\Models\TransactionType; use FireflyIII\Repositories\Account\AccountRepositoryInterface; -use Illuminate\Http\Request; /** * Class CreateController @@ -75,21 +74,19 @@ class CreateController extends Controller $subTitleIcon = 'fa-plus'; $optionalFields = app('preferences')->get('transaction_journal_optional_fields', [])->data; $allowedOpposingTypes = config('firefly.allowed_opposing_types'); - $accountToTypes = config('firefly.account_to_transaction'); - $defaultCurrency = app('amount')->getDefaultCurrency(); + $accountToTypes = config('firefly.account_to_transaction'); + $defaultCurrency = app('amount')->getDefaultCurrency(); + $previousUri = $this->rememberPreviousUri('transactions.create.uri'); + session()->put('preFilled', $preFilled); - // put previous url in session if not redirect from store (not "create another"). - if (true !== session('transactions.create.fromStore')) { - $this->rememberPreviousUri('transactions.create.uri'); - } - session()->forget('transactions.create.fromStore'); return view( - 'transactions.create', - compact('subTitleIcon', 'cash', - 'objectType', 'subTitle', 'defaultCurrency', - 'optionalFields', 'preFilled', 'allowedOpposingTypes', 'accountToTypes') + 'transactions.create', compact( + 'subTitleIcon', 'cash', 'objectType', 'subTitle', 'defaultCurrency', 'previousUri', 'optionalFields', 'preFilled', + 'allowedOpposingTypes', + 'accountToTypes' + ) ); } } \ No newline at end of file diff --git a/app/Http/Controllers/Transaction/EditController.php b/app/Http/Controllers/Transaction/EditController.php index 3212a533a3..a31c35409e 100644 --- a/app/Http/Controllers/Transaction/EditController.php +++ b/app/Http/Controllers/Transaction/EditController.php @@ -72,11 +72,9 @@ class EditController extends Controller $accountToTypes = config('firefly.account_to_transaction'); $defaultCurrency = app('amount')->getDefaultCurrency(); $cash = $repository->getCashAccount(); + $previousUri = $this->rememberPreviousUri('transactions.edit.uri'); - return view('transactions.edit', compact('cash', 'transactionGroup', 'allowedOpposingTypes', 'accountToTypes', 'defaultCurrency' - - )); - + return view('transactions.edit', compact('cash', 'transactionGroup', 'allowedOpposingTypes', 'accountToTypes', 'defaultCurrency', 'previousUri')); } } \ No newline at end of file diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index dbb4922c25..63141f0c25 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -27,6 +27,7 @@ use FireflyIII\Http\Middleware\AuthenticateTwoFactor; use FireflyIII\Http\Middleware\Binder; use FireflyIII\Http\Middleware\EncryptCookies; use FireflyIII\Http\Middleware\Installer; +use FireflyIII\Http\Middleware\InterestingMessage; use FireflyIII\Http\Middleware\IsAdmin; use FireflyIII\Http\Middleware\Range; use FireflyIII\Http\Middleware\RedirectIfAuthenticated; @@ -155,11 +156,11 @@ class Kernel extends HttpKernel ShareErrorsFromSession::class, VerifyCsrfToken::class, Authenticate::class, - //AuthenticateTwoFactor::class, MFAMiddleware::class, Range::class, Binder::class, CreateFreshApiToken::class, + InterestingMessage::class, ], // MUST be logged in // MUST have 2fa diff --git a/app/Http/Middleware/InterestingMessage.php b/app/Http/Middleware/InterestingMessage.php new file mode 100644 index 0000000000..da4b953e7c --- /dev/null +++ b/app/Http/Middleware/InterestingMessage.php @@ -0,0 +1,118 @@ +. + */ + +namespace FireflyIII\Http\Middleware; + + +use Closure; +use FireflyIII\Models\TransactionGroup; +use FireflyIII\Models\TransactionJournal; +use Illuminate\Http\Request; +use Log; + +/** + * Class InterestingMessage + */ +class InterestingMessage +{ + /** + * Flashes the user an interesting message if the URL parameters warrant it. + * + * @param Request $request + * @param \Closure $next + * + * @return mixed + * + */ + public function handle(Request $request, Closure $next) + { + Log::debug(sprintf('Interesting Message middleware for URI %s', $request->url())); + if ($this->testing()) { + return $next($request); + } + + if ($this->groupMessage($request)) { + $this->handleGroupMessage($request); + } + + return $next($request); + } + + /** + * @param Request $request + * + * @return bool + */ + private function groupMessage(Request $request): bool + { + // get parameters from request. + $transactionGroupId = $request->get('transaction_group_id'); + $message = $request->get('message'); + + return null !== $transactionGroupId && null !== $message; + } + + /** + * @param Request $request + */ + private function handleGroupMessage(Request $request): void + { + + // get parameters from request. + $transactionGroupId = $request->get('transaction_group_id'); + $message = $request->get('message'); + + // send message about newly created transaction group. + /** @var TransactionGroup $group */ + $group = auth()->user()->transactionGroups()->with(['transactionJournals', 'transactionJournals.transactionType'])->find((int)$transactionGroupId); + + if (null === $group) { + return; + } + + $count = $group->transactionJournals->count(); + + /** @var TransactionJournal $journal */ + $journal = $group->transactionJournals->first(); + if (null === $journal) { + return; + } + $title = $count > 1 ? $group->title : $journal->description; + if ('created' === $message) { + session()->flash('success_uri', route('transactions.show', [$transactionGroupId])); + session()->flash('success', (string)trans('firefly.stored_journal', ['description' => $title])); + } + if ('updated' === $message) { + $type = strtolower($journal->transactionType->type); + session()->flash('success_uri', route('transactions.show', [$transactionGroupId])); + session()->flash('success', (string)trans(sprintf('firefly.updated_%s', $type), ['description' => $title])); + } + } + + /** + * @return bool + */ + private function testing(): bool + { + // ignore middleware in test environment. + return 'testing' === config('app.env') || !auth()->check(); + } +} \ No newline at end of file diff --git a/app/Support/Http/Controllers/UserNavigation.php b/app/Support/Http/Controllers/UserNavigation.php index 2f47b872ed..b23e90fc1f 100644 --- a/app/Support/Http/Controllers/UserNavigation.php +++ b/app/Support/Http/Controllers/UserNavigation.php @@ -149,20 +149,25 @@ trait UserNavigation } /** - * Remember previous URL. - * * @param string $identifier + * + * @return string|null */ - protected function rememberPreviousUri(string $identifier): void + protected function rememberPreviousUri(string $identifier): ?string { + $return = null; /** @var ViewErrorBag $errors */ $errors = session()->get('errors'); if (null === $errors || (null !== $errors && 0 === $errors->count())) { - $url = app('url')->previous(); - session()->put($identifier, $url); + $return = app('url')->previous(); + + // TODO URL might not be one we *want* to remember. + + session()->put($identifier, $return); //Log::debug(sprintf('Will put previous URI in cache under key %s: %s', $identifier, $url)); //return; } //Log::debug(sprintf('The users session contains errors somehow so we will not remember the URI!: %s', var_export($errors, true))); + return $return; } } diff --git a/public/v1/js/app.js b/public/v1/js/app.js index 074231b3a6..abd4525464 100644 --- a/public/v1/js/app.js +++ b/public/v1/js/app.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=14)}([function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(o)}),t.exports=c}).call(e,n(8))},function(t,e,n){t.exports=n(21)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r1)for(var n=1;n=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var A=Object.prototype.hasOwnProperty;function _(t,e){return A.call(t,e)}function b(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,x=b(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),C=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),T=/\B([A-Z])/g,k=b(function(t){return t.replace(T,"-$1").toLowerCase()});var E=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function $(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function S(t,e){for(var n in e)t[n]=e[n];return t}function B(t){for(var e={},n=0;n0,X=G&&G.indexOf("edge/")>0,Z=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===Y),tt=(G&&/chrome\/\d+/.test(G),{}.watch),et=!1;if(Q)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===q&&(q=!Q&&!V&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),q},it=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=D,ut=0,lt=function(){this.id=ut++,this.subs=[]};lt.prototype.addSub=function(t){this.subs.push(t)},lt.prototype.removeSub=function(t){y(this.subs,t)},lt.prototype.depend=function(){lt.target&<.target.addDep(this)},lt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===k(t)){var c=Lt(String,i.type);(c<0||s0&&(ue((u=t(u,(n||"")+"_"+c))[0])&&ue(f)&&(r[l]=gt(f.text+u[0].text),u.shift()),r.push.apply(r,u)):s(u)?ue(f)?r[l]=gt(f.text+u):""!==u&&r.push(gt(u)):ue(u)&&ue(f)?r[l]=gt(f.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+c+"__"),r.push(u)));return r}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function le(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function fe(t){return t.isComment&&t.asyncFactory}function de(t){if(Array.isArray(t))for(var e=0;eBe&&Te[n].id>t.id;)n--;Te.splice(n+1,0,t)}else Te.push(t);$e||($e=!0,Zt(De))}}(this)},Ie.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Ie.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Ie.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Ie.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Ne={enumerable:!0,configurable:!0,get:D,set:D};function je(t,e,n){Ne.get=function(){return this[e][n]},Ne.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ne)}function Pe(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||xt(!1);var a=function(o){i.push(o);var a=Rt(o,e,n,t);kt(r,o,a),o in t||je(t,"_props",o)};for(var s in e)a(s);xt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:E(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){dt();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||U(o)||je(t,"_data",o)}Tt(e,!0)}(t):Tt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Ie(t,a||D,D,Re)),i in t||Me(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function vn(t){this._init(t)}function mn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=jt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)je(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Me(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,M.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=S({},a.options),i[r]=a,a}}function gn(t){return t&&(t.Ctor.options.name||t.tag)}function yn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function An(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=gn(a.componentOptions);s&&!e(s)&&_n(n,o,r,i)}}}function _n(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=dn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=jt(pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&me(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=ge(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return fn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return fn(t,e,n,r,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||r,null,!0),kt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Ce(e,"beforeCreate"),function(t){var e=He(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach(function(n){kt(t,n,e[n])}),xt(!0))}(e),Pe(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Ce(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(vn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Et,t.prototype.$delete=$t,t.prototype.$watch=function(t,e,n){if(l(e))return Ue(this,t,e,n);(n=n||{}).user=!0;var r=new Ie(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(vn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?$(n):n;for(var r=$(arguments,1),i=0,o=n.length;iparseInt(this.max)&&_n(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return L}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:S,mergeOptions:jt,defineReactive:kt},t.set=Et,t.delete=$t,t.nextTick=Zt,t.options=Object.create(null),M.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,S(t.options.components,wn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=jt(this.options,t),this}}(t),mn(t),function(t){M.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(vn),Object.defineProperty(vn.prototype,"$isServer",{get:rt}),Object.defineProperty(vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vn,"FunctionalRenderContext",{value:en}),vn.version="2.5.21";var xn=v("style,class"),Cn=v("input,textarea,option,select,progress"),Tn=function(t,e,n){return"value"===n&&Cn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},kn=v("contenteditable,draggable,spellcheck"),En=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),$n="http://www.w3.org/1999/xlink",Sn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Bn=function(t){return Sn(t)?t.slice(6,t.length):""},Dn=function(t){return null==t||!1===t};function On(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=In(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=In(e,n.data));return function(t,e){if(o(t)||o(e))return Nn(t,jn(e));return""}(e.staticClass,e.class)}function In(t,e){return{staticClass:Nn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Nn(t,e){return t?e?t+" "+e:t:e||""}function jn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?ar(t,e,n):En(e)?Dn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):kn(e)?t.setAttribute(e,Dn(n)||"false"===n?"false":"true"):Sn(e)?Dn(n)?t.removeAttributeNS($n,Bn(e)):t.setAttributeNS($n,e,n):ar(t,e,n)}function ar(t,e,n){if(Dn(n))t.removeAttribute(e);else{if(K&&!J&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var sr={create:ir,update:ir};function cr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=On(e),c=n._transitionClasses;o(c)&&(s=Nn(s,jn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var ur,lr,fr,dr,pr,hr,vr={create:cr,update:cr},mr=/[\w).+\-_$\]]/;function gr(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(v=t.charAt(h));h--);v&&mr.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:t.slice(0,dr),key:'"'+t.slice(dr+1)+'"'}:{exp:t,key:null};lr=t,dr=pr=hr=0;for(;!Dr();)Or(fr=Br())?Nr(fr):91===fr&&Ir(fr);return{exp:t.slice(0,pr),key:t.slice(pr+1,hr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Br(){return lr.charCodeAt(++dr)}function Dr(){return dr>=ur}function Or(t){return 34===t||39===t}function Ir(t){var e=1;for(pr=dr;!Dr();)if(Or(t=Br()))Nr(t);else if(91===t&&e++,93===t&&e--,0===e){hr=dr;break}}function Nr(t){for(var e=t;!Dr()&&(t=Br())!==e;);}var jr,Pr="__r",Rr="__c";function Mr(t,e,n){var r=jr;return function i(){null!==e.apply(null,arguments)&&Lr(t,i,n,r)}}function Fr(t,e,n,r){var i;e=(i=e)._withTask||(i._withTask=function(){Gt=!0;try{return i.apply(null,arguments)}finally{Gt=!1}}),jr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function Lr(t,e,n,r){(r||jr).removeEventListener(t,e._withTask||e,n)}function Ur(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};jr=e.elm,function(t){if(o(t[Pr])){var e=K?"change":"input";t[e]=[].concat(t[Pr],t[e]||[]),delete t[Pr]}o(t[Rr])&&(t.change=[].concat(t[Rr],t.change||[]),delete t[Rr])}(n),oe(n,r,Fr,Lr,Mr,e.context),jr=void 0}}var Hr={create:Ur,update:Ur};function zr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=S({},c)),s)i(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=r;var u=i(r)?"":String(r);qr(a,u)&&(a.value=u)}else a[n]=r}}}function qr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Wr={create:zr,update:zr},Qr=b(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function Vr(t){var e=Yr(t.style);return t.staticStyle?S(t.staticStyle,e):e}function Yr(t){return Array.isArray(t)?B(t):"string"==typeof t?Qr(t):t}var Gr,Kr=/^--/,Jr=/\s*!important$/,Xr=function(t,e,n){if(Kr.test(e))t.style.setProperty(e,n);else if(Jr.test(n))t.style.setProperty(e,n.replace(Jr,""),"important");else{var r=ti(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(ri).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function oi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ri).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ai(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&S(e,si(t.name||"v")),S(e,t),e}return"string"==typeof t?si(t):void 0}}var si=b(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),ci=Q&&!J,ui="transition",li="animation",fi="transition",di="transitionend",pi="animation",hi="animationend";ci&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fi="WebkitTransition",di="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(pi="WebkitAnimation",hi="webkitAnimationEnd"));var vi=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function mi(t){vi(function(){vi(t)})}function gi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ii(t,e))}function yi(t,e){t._transitionClasses&&y(t._transitionClasses,e),oi(t,e)}function Ai(t,e,n){var r=bi(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ui?di:hi,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=ui,l=a,f=o.length):e===li?u>0&&(n=li,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ui:li:null)?n===ui?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ui&&_i.test(r[fi+"Property"])}}function wi(t,e){for(;t.length1}function $i(t,e){!0!==e.data.show&&Ci(e)}var Si=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;eh?A(t,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&b(0,e,d,h)}(d,v,g,n,l):o(g)?(o(t.text)&&u.setTextContent(d,""),A(d,null,g,0,g.length-1,n)):o(v)?b(0,v,0,v.length-1):o(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}}}function T(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(Ni(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ii(t,e){return e.every(function(e){return!N(e,t)})}function Ni(t){return"_value"in t?t._value:t.value}function ji(t){t.target.composing=!0}function Pi(t){t.target.composing&&(t.target.composing=!1,Ri(t.target,"input"))}function Ri(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Mi(t){return!t.componentInstance||t.data&&t.data.transition?t:Mi(t.componentInstance._vnode)}var Fi={model:Bi,show:{bind:function(t,e,n){var r=e.value,i=(n=Mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ci(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Mi(n)).data&&n.data.transition?(n.data.show=!0,r?Ci(n,function(){t.style.display=t.__vOriginalDisplay}):Ti(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ui(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ui(de(e.children)):t}function Hi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function zi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var qi=function(t){return t.tag||fe(t)},Wi=function(t){return"show"===t.name},Qi={name:"transition",props:Li,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(qi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ui(i);if(!o)return i;if(this._leaving)return zi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Hi(this),u=this._vnode,l=Ui(u);if(o.data.directives&&o.data.directives.some(Wi)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!fe(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=S({},c);if("out-in"===r)return this._leaving=!0,ae(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),zi(t,i);if("in-out"===r){if(fe(o))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",function(t){d=t})}}return i}}},Vi=S({tag:String,moveClass:String},Li);function Yi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Gi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ki(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Vi.mode;var Ji={Transition:Qi,TransitionGroup:{props:Vi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=be(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hi(this),s=0;s-1?Un[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Un[t]=/HTMLUnknownElement/.test(e.toString())},S(vn.options.directives,Fi),S(vn.options.components,Ji),vn.prototype.__patch__=Q?Si:D,vn.prototype.$mount=function(t,e){return function(t,e,n){return t.$el=e,t.$options.render||(t.$options.render=mt),Ce(t,"beforeMount"),new Ie(t,function(){t._update(t._render(),n)},D,{before:function(){t._isMounted&&!t._isDestroyed&&Ce(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Ce(t,"mounted")),t}(this,t=t&&Q?zn(t):void 0,e)},Q&&setTimeout(function(){L.devtools&&it&&it.emit("init",vn)},0);var Xi=/\{\{((?:.|\r?\n)+?)\}\}/g,Zi=/[-.*+?^${}()|[\]\/\\]/g,to=b(function(t){var e=t[0].replace(Zi,"\\$&"),n=t[1].replace(Zi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function eo(t,e){var n=e?to(e):Xi;if(n.test(t)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(i=r.index)>c&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=gr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,lo="[a-zA-Z_][\\w\\-\\.]*",fo="((?:"+lo+"\\:)?"+lo+")",po=new RegExp("^<"+fo),ho=/^\s*(\/?)>/,vo=new RegExp("^<\\/"+fo+"[^>]*>"),mo=/^]+>/i,go=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},wo=/&(?:lt|gt|quot|amp);/g,xo=/&(?:lt|gt|quot|amp|#10|#9);/g,Co=v("pre,textarea",!0),To=function(t,e){return t&&Co(t)&&"\n"===e[0]};function ko(t,e){var n=e?xo:wo;return t.replace(n,function(t){return bo[t]})}var Eo,$o,So,Bo,Do,Oo,Io,No,jo=/^@|^v-on:/,Po=/^v-|^@|^:/,Ro=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Mo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Fo=/^\(|\)$/g,Lo=/:(.*)$/,Uo=/^:|^v-bind:/,Ho=/\.[^.]+/g,zo=b(oo);function qo(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,r=t.length;n]*>)","i")),d=t.replace(f,function(t,n,r){return u=r.length,Ao(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),To(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-d.length,t=d,k(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(go.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h)),x(h+3);continue}}if(yo.test(t)){var v=t.indexOf("]>");if(v>=0){x(v+2);continue}}var m=t.match(mo);if(m){x(m[0].length);continue}var g=t.match(vo);if(g){var y=c;x(g[0].length),k(g[1],y,c);continue}var A=C();if(A){T(A),To(A.tagName,t)&&x(1);continue}}var _=void 0,b=void 0,w=void 0;if(p>=0){for(b=t.slice(p);!(vo.test(b)||po.test(b)||go.test(b)||yo.test(b)||(w=b.indexOf("<",1))<0);)p+=w,b=t.slice(p);_=t.substring(0,p),x(p)}p<0&&(_=t,t=""),e.chars&&_&&e.chars(_)}if(t===n){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function C(){var e=t.match(po);if(e){var n,r,i={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(n=t.match(ho))&&(r=t.match(uo));)x(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function T(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&co(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}k()}(t,{warn:Eo,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,o,u){var l=r&&r.ns||No(t);K&&"svg"===l&&(o=function(t){for(var e=[],n=0;n-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Tr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Sr(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Sr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Sr(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=kr(t,"value")||"null";br(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Tr(t,"change",Sr(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Pr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Sr(e,l);c&&(f="if($event.target.composing)return;"+f),br(t,"value","("+e+")"),Tr(t,u,f,null,!0),(s||a)&&Tr(t,"blur","$forceUpdate()")}(t,r,i);else if(!L.isReservedTag(o))return $r(t,r,i),!1;return!0},text:function(t,e){e.value&&br(t,"textContent","_s("+e.value+")")},html:function(t,e){e.value&&br(t,"innerHTML","_s("+e.value+")")}},isPreTag:function(t){return"pre"===t},isUnaryTag:ao,mustUseProp:Tn,canBeLeftOpenTag:so,isReservedTag:Fn,getTagNamespace:Ln,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Zo)},ra=b(function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))});function ia(t,e){t&&(ta=ra(e.staticKeys||""),ea=e.isReservedTag||O,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||m(t.tag)||!ea(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(ta)))}(e);if(1===e.type){if(!ea(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n|^function\s*\(/,aa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,sa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ua=function(t){return"if("+t+")return null;"},la={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ua("$event.target !== $event.currentTarget"),ctrl:ua("!$event.ctrlKey"),shift:ua("!$event.shiftKey"),alt:ua("!$event.altKey"),meta:ua("!$event.metaKey"),left:ua("'button' in $event && $event.button !== 0"),middle:ua("'button' in $event && $event.button !== 1"),right:ua("'button' in $event && $event.button !== 2")};function fa(t,e){var n=e?"nativeOn:{":"on:{";for(var r in t)n+='"'+r+'":'+da(r,t[r])+",";return n.slice(0,-1)+"}"}function da(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return da(t,e)}).join(",")+"]";var n=aa.test(e.value),r=oa.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(la[s])o+=la[s],sa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=ua(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!('button' in $event)&&"+t.map(pa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function pa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=sa[t],r=ca[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ha={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},va=function(t){this.options=t,this.warn=t.warn||Ar,this.transforms=_r(t.modules,"transformCode"),this.dataGenFns=_r(t.modules,"genData"),this.directives=S(S({},ha),t.directives);var e=t.isReservedTag||O;this.maybeComponent=function(t){return!(e(t.tag)&&!t.component)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ma(t,e){var n=new va(e);return{render:"with(this){return "+(t?ga(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function ga(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return ya(t,e);if(t.once&&!t.onceProcessed)return Aa(t,e);if(t.for&&!t.forProcessed)return function(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";0;return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||ga)(t,e)+"})"}(t,e);if(t.if&&!t.ifProcessed)return _a(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=xa(t,e),i="_t("+n+(r?","+r:""),o=t.attrs&&"{"+t.attrs.map(function(t){return x(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:xa(e,n,!0);return"_c("+t+","+ba(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=ba(t,e));var i=t.inlineTemplate?null:xa(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',Ba.innerHTML.indexOf(" ")>0}var Na=!!Q&&Ia(!1),ja=!!Q&&Ia(!0),Pa=b(function(t){var e=zn(t);return e&&e.innerHTML}),Ra=vn.prototype.$mount;vn.prototype.$mount=function(t,e){if((t=t&&zn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Pa(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){0;var i=Oa(r,{shouldDecodeNewlines:Na,shouldDecodeNewlinesForHref:ja,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Ra.call(this,t,e)},vn.compile=Oa,t.exports=vn}).call(e,n(4),n(38).setImmediate)},function(t,e,n){t.exports=n(15)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"Carousel",function(){return f}),n.d(r,"Slide",function(){return v}),n.d(r,"Collapse",function(){return G}),n.d(r,"Dropdown",function(){return K}),n.d(r,"Modal",function(){return dt}),n.d(r,"Tab",function(){return pt}),n.d(r,"Tabs",function(){return ht}),n.d(r,"DatePicker",function(){return yt}),n.d(r,"Affix",function(){return xt}),n.d(r,"Alert",function(){return Ct}),n.d(r,"Pagination",function(){return Tt}),n.d(r,"Tooltip",function(){return Et}),n.d(r,"Popover",function(){return $t}),n.d(r,"TimePicker",function(){return St}),n.d(r,"Typeahead",function(){return Bt}),n.d(r,"ProgressBar",function(){return Ot}),n.d(r,"ProgressBarStack",function(){return Dt}),n.d(r,"Breadcrumbs",function(){return Nt}),n.d(r,"BreadcrumbItem",function(){return It}),n.d(r,"Btn",function(){return ut}),n.d(r,"BtnGroup",function(){return ct}),n.d(r,"BtnToolbar",function(){return jt}),n.d(r,"MultiSelect",function(){return Pt}),n.d(r,"Navbar",function(){return Rt}),n.d(r,"NavbarNav",function(){return Mt}),n.d(r,"NavbarForm",function(){return Ft}),n.d(r,"NavbarText",function(){return Lt}),n.d(r,"tooltip",function(){return Wt}),n.d(r,"popover",function(){return Gt}),n.d(r,"scrollspy",function(){return re}),n.d(r,"MessageBox",function(){return fe}),n.d(r,"Notification",function(){return Ce}),n.d(r,"install",function(){return ke});var i=n(13),o=n.n(i);function a(t){return void 0!==t&&null!==t}function s(t){return"function"==typeof t}function c(t){return"number"==typeof t}function u(t){return"string"==typeof t}function l(){return"undefined"!=typeof window&&a(window.Promise)}var f={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel slide",attrs:{"data-ride":"carousel"},on:{mouseenter:t.stopInterval,mouseleave:t.startInterval}},[t.indicators?t._t("indicators",[n("ol",{staticClass:"carousel-indicators"},t._l(t.slides,function(e,r){return n("li",{class:{active:r===t.activeIndex},on:{click:function(e){return t.select(r)}}})}),0)],{select:t.select,activeIndex:t.activeIndex}):t._e(),t._v(" "),n("div",{staticClass:"carousel-inner",attrs:{role:"listbox"}},[t._t("default")],2),t._v(" "),t.controls?n("a",{staticClass:"left carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){return e.preventDefault(),t.prev()}}},[n("span",{class:t.iconControlLeft,attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Previous")])]):t._e(),t._v(" "),t.controls?n("a",{staticClass:"right carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){return e.preventDefault(),t.next()}}},[n("span",{class:t.iconControlRight,attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Next")])]):t._e()],2)},staticRenderFns:[],props:{value:Number,indicators:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},interval:{type:Number,default:5e3},iconControlLeft:{type:String,default:"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,default:"glyphicon glyphicon-chevron-right"}},data:function(){return{slides:[],activeIndex:0,timeoutId:0,intervalId:0}},watch:{interval:function(){this.startInterval()},value:function(t,e){this.run(t,e),this.activeIndex=t}},mounted:function(){a(this.value)&&(this.activeIndex=this.value),this.slides.length>0&&this.$select(this.activeIndex),this.startInterval()},beforeDestroy:function(){this.stopInterval()},methods:{run:function(t,e){var n=this,r=e||0,i=void 0;i=t>r?["next","left"]:["prev","right"],this.slides[t].slideClass[i[0]]=!0,this.$nextTick(function(){n.slides[t].$el.offsetHeight,n.slides.forEach(function(e,n){n===r?(e.slideClass.active=!0,e.slideClass[i[1]]=!0):n===t&&(e.slideClass[i[1]]=!0)}),n.timeoutId=setTimeout(function(){n.$select(t),n.$emit("change",t),n.timeoutId=0},600)})},startInterval:function(){var t=this;this.stopInterval(),this.interval>0&&(this.intervalId=setInterval(function(){t.next()},this.interval))},stopInterval:function(){clearInterval(this.intervalId),this.intervalId=0},resetAllSlideClass:function(){this.slides.forEach(function(t){t.slideClass.active=!1,t.slideClass.left=!1,t.slideClass.right=!1,t.slideClass.next=!1,t.slideClass.prev=!1})},$select:function(t){this.resetAllSlideClass(),this.slides[t].slideClass.active=!0},select:function(t){0===this.timeoutId&&t!==this.activeIndex&&(a(this.value)?this.$emit("input",t):(this.run(t,this.activeIndex),this.activeIndex=t))},prev:function(){this.select(0===this.activeIndex?this.slides.length-1:this.activeIndex-1)},next:function(){this.select(this.activeIndex===this.slides.length-1?0:this.activeIndex+1)}}};function d(t,e){if(Array.isArray(t)){var n=t.indexOf(e);n>=0&&t.splice(n,1)}}function p(t){return Array.prototype.slice.call(t||[])}function h(t,e,n){return n.indexOf(t)===e}var v={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"item",class:this.slideClass},[this._t("default")],2)},staticRenderFns:[],data:function(){return{slideClass:{active:!1,prev:!1,next:!1,left:!1,right:!1}}},created:function(){try{this.$parent.slides.push(this)}catch(t){throw new Error("Slide parent must be Carousel.")}},beforeDestroy:function(){d(this.$parent&&this.$parent.slides,this)}},m="mouseenter",g="mouseleave",y="focus",A="blur",_="click",b="input",w="keydown",x="keyup",C="resize",T="scroll",k="touchend",E="click",$="hover",S="focus",B="hover-focus",D="outside-click",O={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"};function I(t){return window.getComputedStyle(t)}function N(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}var j=null,P=null;function R(t,e,n){t.addEventListener(e,n)}function M(t,e,n){t.removeEventListener(e,n)}function F(t){return t&&t.nodeType===Node.ELEMENT_NODE}function L(t){F(t)&&F(t.parentNode)&&t.parentNode.removeChild(t)}function U(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1})}function H(t,e){if(F(t))if(t.className){var n=t.className.split(" ");n.indexOf(e)<0&&(n.push(e),t.className=n.join(" "))}else t.className=e}function z(t,e){if(F(t)&&t.className){for(var n=t.className.split(" "),r=[],i=0,o=n.length;i=i.height,u=r.left+r.width/2>=i.width/2,s=r.right-r.width/2+i.width/2<=o.width;break;case O.BOTTOM:c=r.bottom+i.height<=o.height,u=r.left+r.width/2>=i.width/2,s=r.right-r.width/2+i.width/2<=o.width;break;case O.RIGHT:s=r.right+i.width<=o.width,a=r.top+r.height/2>=i.height/2,c=r.bottom-r.height/2+i.height/2<=o.height;break;case O.LEFT:u=r.left>=i.width,a=r.top+r.height/2>=i.height/2,c=r.bottom-r.height/2+i.height/2<=o.height}return a&&s&&c&&u}function W(t){var e=t.scrollHeight>t.clientHeight,n=I(t);return e||"scroll"===n.overflow||"scroll"===n.overflowY}function Q(t){var e=document.body;if(t)z(e,"modal-open"),e.style.paddingRight=null;else{var n=-1!==window.navigator.appVersion.indexOf("MSIE 10")||!!window.MSInputMethodContext&&!!document.documentMode;(W(document.documentElement)||W(document.body))&&!n&&(e.style.paddingRight=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=N();if(null!==j&&!t&&e.height===P.height&&e.width===P.width)return j;if("loading"===document.readyState)return null;var n=document.createElement("div"),r=document.createElement("div");return n.style.width=r.style.width=n.style.height=r.style.height="100px",n.style.overflow="scroll",r.style.overflow="hidden",document.body.appendChild(n),document.body.appendChild(r),j=Math.abs(n.scrollHeight-r.scrollHeight),document.body.removeChild(n),document.body.removeChild(r),P=e,j}()+"px"),H(e,"modal-open")}}function V(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;U();for(var r=[],i=t.parentElement;i;){if(i.matches(e))r.push(i);else if(n&&(n===i||i.matches(n)))break;i=i.parentElement}return r}function Y(t){F(t)&&(!t.getAttribute("tabindex")&&t.setAttribute("tabindex","-1"),t.focus())}var G={render:function(t){return t(this.tag,{},this.$slots.default)},props:{tag:{type:String,default:"div"},value:{type:Boolean,default:!1},transitionDuration:{type:Number,default:350}},data:function(){return{timeoutId:0}},watch:{value:function(t){this.toggle(t)}},mounted:function(){var t=this.$el;H(t,"collapse"),this.value&&H(t,"in")},methods:{toggle:function(t){var e=this;clearTimeout(this.timeoutId);var n=this.$el;if(t){this.$emit("show"),z(n,"collapse"),n.style.height="auto";var r=window.getComputedStyle(n).height;n.style.height=null,H(n,"collapsing"),n.offsetHeight,n.style.height=r,this.timeoutId=setTimeout(function(){z(n,"collapsing"),H(n,"collapse"),H(n,"in"),n.style.height=null,e.timeoutId=0,e.$emit("shown")},this.transitionDuration)}else this.$emit("hide"),n.style.height=window.getComputedStyle(n).height,z(n,"in"),z(n,"collapse"),n.offsetHeight,n.style.height=null,H(n,"collapsing"),this.timeoutId=setTimeout(function(){H(n,"collapse"),z(n,"collapsing"),n.style.height=null,e.timeoutId=0,e.$emit("hidden")},this.transitionDuration)}}},K={render:function(t){return t(this.tag,{class:{"btn-group":"div"===this.tag,dropdown:!this.dropup,dropup:this.dropup,open:this.show}},[this.$slots.default,t("ul",{class:{"dropdown-menu":!0,"dropdown-menu-right":this.menuRight},ref:"dropdown"},[this.$slots.dropdown])])},props:{tag:{type:String,default:"div"},appendToBody:{type:Boolean,default:!1},value:Boolean,dropup:{type:Boolean,default:!1},menuRight:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},notCloseElements:Array,positionElement:null},data:function(){return{show:!1,triggerEl:void 0}},watch:{value:function(t){this.toggle(t)}},mounted:function(){this.initTrigger(),this.triggerEl&&(R(this.triggerEl,_,this.toggle),R(this.triggerEl,w,this.onKeyPress)),R(this.$refs.dropdown,w,this.onKeyPress),R(window,_,this.windowClicked),R(window,k,this.windowClicked),this.value&&this.toggle(!0)},beforeDestroy:function(){this.removeDropdownFromBody(),this.triggerEl&&(M(this.triggerEl,_,this.toggle),M(this.triggerEl,w,this.onKeyPress)),M(this.$refs.dropdown,w,this.onKeyPress),M(window,_,this.windowClicked),M(window,k,this.windowClicked)},methods:{onKeyPress:function(t){if(this.show){var e=this.$refs.dropdown,n=t.keyCode||t.which;if(27===n)this.toggle(!1),this.triggerEl&&this.triggerEl.focus();else if(13===n){var r=e.querySelector("li > a:focus");r&&r.click()}else if(38===n||40===n){t.preventDefault(),t.stopPropagation();var i=e.querySelector("li > a:focus"),o=e.querySelectorAll("li:not(.disabled) > a");if(i){for(var a=0;a0?Y(o[a-1]):40===n&&a=0;a=o||s&&c}if(a){n=!0;break}}var u=this.$refs.dropdown.contains(e),l=this.$el.contains(e)&&!u,f=u&&"touchend"===t.type;l||n||f||this.toggle(!1)}},appendDropdownToBody:function(){try{var t=this.$refs.dropdown;t.style.display="block",document.body.appendChild(t),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.documentElement,i=(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0),o=(window.pageYOffset||r.scrollTop)-(r.clientTop||0),a=e.getBoundingClientRect(),s=t.getBoundingClientRect();t.style.right="auto",t.style.bottom="auto",n.menuRight?t.style.left=i+a.left+a.width-s.width+"px":t.style.left=i+a.left+"px",n.dropup?t.style.top=o+a.top-s.height-4+"px":t.style.top=o+a.top+a.height+"px"}(t,this.positionElement||this.$el,this)}catch(t){}},removeDropdownFromBody:function(){try{var t=this.$refs.dropdown;t.removeAttribute("style"),this.$el.appendChild(t)}catch(t){}}}},J={uiv:{datePicker:{clear:"Clear",today:"Today",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",week1:"Mon",week2:"Tue",week3:"Wed",week4:"Thu",week5:"Fri",week6:"Sat",week7:"Sun"},timePicker:{am:"AM",pm:"PM"},modal:{cancel:"Cancel",ok:"OK"},multiSelect:{placeholder:"Select...",filterPlaceholder:"Search..."}}},X=function(){var t=Object.getPrototypeOf(this).$t;if(s(t))try{return t.apply(this,arguments)}catch(t){return this.$t.apply(this,arguments)}},Z=function(t,e){e=e||{};var n=X.apply(this,arguments);if(a(n)&&!e.$$locale)return n;for(var r=t.split("."),i=e.$$locale||J,o=0,s=r.length;o=0:i.value===i.inputValue,c=(n={btn:!0,active:i.inputType?s:i.active,disabled:i.disabled,"btn-block":i.block},nt(n,"btn-"+i.type,Boolean(i.type)),nt(n,"btn-"+i.size,Boolean(i.size)),n),u={click:function(t){i.disabled&&t instanceof Event&&(t.preventDefault(),t.stopPropagation())}},l=void 0,f=void 0,d=void 0;return i.href?(l="a",d=r,f=ot(o,{on:u,class:c,attrs:{role:"button",href:i.href,target:i.target}})):i.to?(l="router-link",d=r,f=ot(o,{nativeOn:u,class:c,props:{event:i.disabled?"":"click",to:i.to,replace:i.replace,append:i.append,exact:i.exact},attrs:{role:"button"}})):i.inputType?(l="label",f=ot(o,{on:u,class:c}),d=[t("input",{attrs:{autocomplete:"off",type:i.inputType,checked:s?"checked":null,disabled:i.disabled},domProps:{checked:s},on:{change:function(){if("checkbox"===i.inputType){var t=i.value.slice();s?t.splice(t.indexOf(i.inputValue),1):t.push(i.inputValue),a.input(t)}else a.input(i.inputValue)}}}),r]):i.justified?(l=ct,f={},d=[t("button",ot(o,{on:u,class:c,attrs:{type:i.nativeType,disabled:i.disabled}}),r)]):(l="button",d=r,f=ot(o,{on:u,class:c,attrs:{type:i.nativeType,disabled:i.disabled}})),t(l,f,d)},props:{justified:{type:Boolean,default:!1},type:{type:String,default:"default"},nativeType:{type:String,default:"button"},size:String,block:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},value:null,inputValue:null,inputType:{type:String,validator:function(t){return"checkbox"===t||"radio"===t}}}},lt=function(){return document.querySelectorAll(".modal-backdrop")},ft=function(){return lt().length},dt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal",class:{fade:t.transitionDuration>0},attrs:{tabindex:"-1",role:"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.backdropClicked(e)}}},[n("div",{ref:"dialog",staticClass:"modal-dialog",class:t.modalSizeClass,attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[t.header?n("div",{staticClass:"modal-header"},[t._t("header",[t.dismissBtn?n("button",{staticClass:"close",staticStyle:{position:"relative","z-index":"1060"},attrs:{type:"button","aria-label":"Close"},on:{click:function(e){return t.toggle(!1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]):t._e(),t._v(" "),n("h4",{staticClass:"modal-title"},[t._t("title",[t._v(t._s(t.title))])],2)])],2):t._e(),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),t.footer?n("div",{staticClass:"modal-footer"},[t._t("footer",[n("btn",{attrs:{type:t.cancelType},on:{click:function(e){return t.toggle(!1,"cancel")}}},[n("span",[t._v(t._s(t.cancelText||t.t("uiv.modal.cancel")))])]),t._v(" "),n("btn",{attrs:{type:t.okType,"data-action":"auto-focus"},on:{click:function(e){return t.toggle(!1,"ok")}}},[n("span",[t._v(t._s(t.okText||t.t("uiv.modal.ok")))])])])],2):t._e()])]),t._v(" "),n("div",{ref:"backdrop",staticClass:"modal-backdrop",class:{fade:t.transitionDuration>0}})])},staticRenderFns:[],mixins:[it],components:{Btn:ut},props:{value:{type:Boolean,default:!1},title:String,size:String,backdrop:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},header:{type:Boolean,default:!0},cancelText:String,cancelType:{type:String,default:"default"},okText:String,okType:{type:String,default:"primary"},dismissBtn:{type:Boolean,default:!0},transitionDuration:{type:Number,default:150},autoFocus:{type:Boolean,default:!1},keyboard:{type:Boolean,default:!0},beforeClose:Function,zOffset:{type:Number,default:20},appendToBody:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"}},data:function(){return{msg:"",timeoutId:0}},computed:{modalSizeClass:function(){return nt({},"modal-"+this.size,Boolean(this.size))}},watch:{value:function(t){this.$toggle(t)}},mounted:function(){L(this.$refs.backdrop),R(window,x,this.onKeyPress),this.value&&this.$toggle(!0)},beforeDestroy:function(){clearTimeout(this.timeoutId),L(this.$refs.backdrop),L(this.$el),0===ft()&&Q(!0),M(window,x,this.onKeyPress)},methods:{onKeyPress:function(t){if(this.keyboard&&this.value&&27===t.keyCode){var e=this.$refs.backdrop,n=e.style.zIndex;n=n&&"auto"!==n?parseInt(n):0;for(var r=lt(),i=r.length,o=0;on)return}this.toggle(!1)}},toggle:function(t,e){(t||!s(this.beforeClose)||this.beforeClose(e))&&(this.msg=e,this.$emit("input",t))},$toggle:function(t){var e=this,n=this.$el,r=this.$refs.backdrop;if(clearTimeout(this.timeoutId),t){var i=ft();if(document.body.appendChild(r),this.appendToBody&&document.body.appendChild(n),n.style.display=this.displayStyle,n.scrollTop=0,r.offsetHeight,Q(!1),H(r,"in"),H(n,"in"),i>0){var o=parseInt(I(n).zIndex)||1050,a=parseInt(I(r).zIndex)||1040,s=i*this.zOffset;n.style.zIndex=""+(o+s),r.style.zIndex=""+(a+s)}this.timeoutId=setTimeout(function(){if(e.autoFocus){var t=e.$el.querySelector('[data-action="auto-focus"]');t&&t.focus()}e.$emit("show"),e.timeoutId=0},this.transitionDuration)}else z(r,"in"),z(n,"in"),this.timeoutId=setTimeout(function(){n.style.display="none",L(r),e.appendToBody&&L(n),0===ft()&&Q(!0),e.$emit("hide",e.msg||"dismiss"),e.msg="",e.timeoutId=0,n.style.zIndex="",r.style.zIndex=""},this.transitionDuration)},backdropClicked:function(t){this.backdrop&&this.toggle(!1)}}},pt={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"tab-pane",class:{fade:this.transition>0},attrs:{role:"tabpanel"}},[this._t("default")],2)},staticRenderFns:[],props:{title:{type:String,default:"Tab Title"},htmlTitle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},"tab-classes":{type:Object,default:function(){return{}}},group:String,pullRight:{type:Boolean,default:!1}},data:function(){return{active:!0,transition:150}},watch:{active:function(t){var e=this;t?setTimeout(function(){H(e.$el,"active"),e.$el.offsetHeight,H(e.$el,"in");try{e.$parent.$emit("after-change",e.$parent.activeIndex)}catch(t){throw new Error(" parent must be .")}},this.transition):(z(this.$el,"in"),setTimeout(function(){z(e.$el,"active")},this.transition))}},created:function(){try{this.$parent.tabs.push(this)}catch(t){throw new Error(" parent must be .")}},beforeDestroy:function(){d(this.$parent&&this.$parent.tabs,this)},methods:{show:function(){var t=this;this.$nextTick(function(){H(t.$el,"active"),H(t.$el,"in")})}}},ht={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("ul",{class:t.navClasses,attrs:{role:"tablist"}},[t._l(t.groupedTabs,function(e,r){return[e.tabs?n("dropdown",{class:t.getTabClasses(e),attrs:{role:"presentation",tag:"li"}},[n("a",{staticClass:"dropdown-toggle",attrs:{role:"tab",href:"#"},on:{click:function(t){t.preventDefault()}}},[t._v(t._s(e.group)+" "),n("span",{staticClass:"caret"})]),t._v(" "),n("template",{slot:"dropdown"},t._l(e.tabs,function(e){return n("li",{class:t.getTabClasses(e,!0)},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.select(t.tabs.indexOf(e))}}},[t._v(t._s(e.title))])])}),0)],2):n("li",{class:t.getTabClasses(e),attrs:{role:"presentation"}},[e.htmlTitle?n("a",{attrs:{role:"tab",href:"#"},domProps:{innerHTML:t._s(e.title)},on:{click:function(n){n.preventDefault(),t.select(t.tabs.indexOf(e))}}}):n("a",{attrs:{role:"tab",href:"#"},domProps:{textContent:t._s(e.title)},on:{click:function(n){n.preventDefault(),t.select(t.tabs.indexOf(e))}}})])]}),t._v(" "),!t.justified&&t.$slots["nav-right"]?n("li",{staticClass:"pull-right"},[t._t("nav-right")],2):t._e()],2),t._v(" "),n("div",{staticClass:"tab-content"},[t._t("default")],2)])},staticRenderFns:[],components:{Dropdown:K},props:{value:{type:Number,validator:function(t){return t>=0}},transitionDuration:{type:Number,default:150},justified:Boolean,pills:Boolean,stacked:Boolean,customNavClass:null},data:function(){return{tabs:[],activeIndex:0}},watch:{value:{immediate:!0,handler:function(t){c(t)&&(this.activeIndex=t,this.selectCurrent())}},tabs:function(t){var e=this;t.forEach(function(t,n){t.transition=e.transitionDuration,n===e.activeIndex&&t.show()}),this.selectCurrent()}},computed:{navClasses:function(){var t={nav:!0,"nav-justified":this.justified,"nav-tabs":!this.pills,"nav-pills":this.pills,"nav-stacked":this.stacked&&this.pills},e=this.customNavClass;return a(e)?u(e)?rt({},t,nt({},e,!0)):rt({},t,e):t},groupedTabs:function(){var t=[],e={};return this.tabs.forEach(function(n){n.group?(e.hasOwnProperty(n.group)?t[e[n.group]].tabs.push(n):(t.push({tabs:[n],group:n.group}),e[n.group]=t.length-1),n.active&&(t[e[n.group]].active=!0),n.pullRight&&(t[e[n.group]].pullRight=!0)):t.push(n)}),t}},methods:{getTabClasses:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={active:t.active,disabled:t.disabled,"pull-right":t.pullRight&&!e};return rt(n,t.tabClasses)},selectCurrent:function(){var t=this,e=!1;this.tabs.forEach(function(n,r){r===t.activeIndex?(e=!n.active,n.active=!0):n.active=!1}),e&&this.$emit("change",this.activeIndex)},selectValidate:function(t){var e=this;s(this.$listeners["before-change"])?this.$emit("before-change",this.activeIndex,t,function(n){a(n)||e.$select(t)}):this.$select(t)},select:function(t){this.tabs[t].disabled||t===this.activeIndex||this.selectValidate(t)},$select:function(t){c(this.value)?this.$emit("input",t):(this.activeIndex=t,this.selectCurrent())}}};function vt(t,e){for(var n=e-(t+="").length;n>0;n--)t="0"+t;return t}var mt=["January","February","March","April","May","June","July","August","September","October","November","December"];function gt(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}var yt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.pickerStyle,attrs:{"data-role":"date-picker"},on:{click:t.onPickerClick}},[n("date-view",{directives:[{name:"show",rawName:"v-show",value:"d"===t.view,expression:"view==='d'"}],attrs:{month:t.currentMonth,year:t.currentYear,date:t.valueDateObj,today:t.now,limit:t.limit,"week-starts-with":t.weekStartsWith,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight,"date-class":t.dateClass,"year-month-formatter":t.yearMonthFormatter,"week-numbers":t.weekNumbers,locale:t.locale},on:{"month-change":t.onMonthChange,"year-change":t.onYearChange,"date-change":t.onDateChange,"view-change":t.onViewChange}}),t._v(" "),n("month-view",{directives:[{name:"show",rawName:"v-show",value:"m"===t.view,expression:"view==='m'"}],attrs:{month:t.currentMonth,year:t.currentYear,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight,locale:t.locale},on:{"month-change":t.onMonthChange,"year-change":t.onYearChange,"view-change":t.onViewChange}}),t._v(" "),n("year-view",{directives:[{name:"show",rawName:"v-show",value:"y"===t.view,expression:"view==='y'"}],attrs:{year:t.currentYear,"icon-control-left":t.iconControlLeft,"icon-control-right":t.iconControlRight},on:{"year-change":t.onYearChange,"view-change":t.onViewChange}}),t._v(" "),t.todayBtn||t.clearBtn?n("div",[n("br"),t._v(" "),n("div",{staticClass:"text-center"},[t.todayBtn?n("btn",{attrs:{"data-action":"select",type:"info",size:"sm"},domProps:{textContent:t._s(t.t("uiv.datePicker.today"))},on:{click:t.selectToday}}):t._e(),t._v(" "),t.clearBtn?n("btn",{attrs:{"data-action":"select",size:"sm"},domProps:{textContent:t._s(t.t("uiv.datePicker.clear"))},on:{click:t.clearSelect}}):t._e()],1)]):t._e()],1)},staticRenderFns:[],mixins:[it],components:{DateView:{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevMonth}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:t.weekNumbers?6:5}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.changeView}},[n("b",[t._v(t._s(t.yearMonthStr))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextMonth}},[n("i",{class:t.iconControlRight})])],1)]),t._v(" "),n("tr",{attrs:{align:"center"}},[t.weekNumbers?n("td"):t._e(),t._v(" "),t._l(t.weekDays,function(e){return n("td",{attrs:{width:"14.2857142857%"}},[n("small",[t._v(t._s(t.tWeekName(0===e?7:e)))])])})],2)]),t._v(" "),n("tbody",t._l(t.monthDayRows,function(e){return n("tr",[t.weekNumbers?n("td",{staticClass:"text-center",staticStyle:{"border-right":"1px solid #eee"}},[n("small",{staticClass:"text-muted"},[t._v(t._s(t.getWeekNumber(e[t.weekStartsWith])))])]):t._e(),t._v(" "),t._l(e,function(e){return n("td",[n("btn",{class:e.classes,staticStyle:{border:"none"},attrs:{block:"",size:"sm","data-action":"select",type:t.getBtnType(e),disabled:e.disabled},on:{click:function(n){return t.select(e)}}},[n("span",{class:{"text-muted":t.month!==e.month},attrs:{"data-action":"select"}},[t._v(t._s(e.date))])])],1)})],2)}),0)])},staticRenderFns:[],mixins:[it],props:{month:Number,year:Number,date:Date,today:Date,limit:Object,weekStartsWith:Number,iconControlLeft:String,iconControlRight:String,dateClass:Function,yearMonthFormatter:Function,weekNumbers:Boolean},components:{Btn:ut},computed:{weekDays:function(){for(var t=[],e=this.weekStartsWith;t.length<7;)t.push(e++),e>6&&(e=0);return t},yearMonthStr:function(){return this.yearMonthFormatter?this.yearMonthFormatter(this.year,this.month):a(this.month)?this.year+" "+this.t("uiv.datePicker.month"+(this.month+1)):this.year},monthDayRows:function(){var t,e,n=[],r=new Date(this.year,this.month,1),i=new Date(this.year,this.month,0).getDate(),o=r.getDay(),a=(t=this.month,e=this.year,new Date(e,t+1,0).getDate()),c=0;c=this.weekStartsWith>o?7-this.weekStartsWith:0-this.weekStartsWith;for(var u=0;u<6;u++){n.push([]);for(var l=0-c;l<7-c;l++){var f=7*u+l,d={year:this.year,disabled:!1};f0?d.month=this.month-1:(d.month=11,d.year--)):f=this.limit.from),this.limit&&this.limit.to&&(v=p0?t--:(t=11,e--,this.$emit("year-change",e)),this.$emit("month-change",t)},goNextMonth:function(){var t=this.month,e=this.year;this.month<11?t++:(t=0,e++,this.$emit("year-change",e)),this.$emit("month-change",t)},changeView:function(){this.$emit("view-change","m")}}},MonthView:{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevYear}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:"4"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:function(e){return t.changeView()}}},[n("b",[t._v(t._s(t.year))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextYear}},[n("i",{class:t.iconControlRight})])],1)])]),t._v(" "),n("tbody",t._l(t.rows,function(e,r){return n("tr",t._l(e,function(e,i){return n("td",{attrs:{colspan:"2",width:"33.333333%"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:t.getBtnClass(3*r+i)},on:{click:function(e){return t.changeView(3*r+i)}}},[n("span",[t._v(t._s(t.tCell(e)))])])],1)}),0)}),0)])},staticRenderFns:[],components:{Btn:ut},mixins:[it],props:{month:Number,year:Number,iconControlLeft:String,iconControlRight:String},data:function(){return{rows:[]}},mounted:function(){for(var t=0;t<4;t++){this.rows.push([]);for(var e=0;e<3;e++)this.rows[t].push(3*t+e+1)}},methods:{tCell:function(t){return this.t("uiv.datePicker.month"+t)},getBtnClass:function(t){return t===this.month?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-1)},goNextYear:function(){this.$emit("year-change",this.year+1)},changeView:function(t){a(t)?(this.$emit("month-change",t),this.$emit("view-change","d")):this.$emit("view-change","y")}}},YearView:{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[n("thead",[n("tr",[n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goPrevYear}},[n("i",{class:t.iconControlLeft})])],1),t._v(" "),n("td",{attrs:{colspan:"3"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"}},[n("b",[t._v(t._s(t.yearStr))])])],1),t._v(" "),n("td",[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:t.goNextYear}},[n("i",{class:t.iconControlRight})])],1)])]),t._v(" "),n("tbody",t._l(t.rows,function(e){return n("tr",t._l(e,function(e){return n("td",{attrs:{width:"20%"}},[n("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:t.getBtnClass(e)},on:{click:function(n){return t.changeView(e)}}},[n("span",[t._v(t._s(e))])])],1)}),0)}),0)])},staticRenderFns:[],components:{Btn:ut},props:{year:Number,iconControlLeft:String,iconControlRight:String},computed:{rows:function(){for(var t=[],e=this.year-this.year%20,n=0;n<4;n++){t.push([]);for(var r=0;r<5;r++)t[n].push(e+5*n+r)}return t},yearStr:function(){var t=this.year-this.year%20;return t+" ~ "+(t+19)}},methods:{getBtnClass:function(t){return t===this.year?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-20)},goNextYear:function(){this.$emit("year-change",this.year+20)},changeView:function(t){this.$emit("year-change",t),this.$emit("view-change","m")}}},Btn:ut},props:{value:null,width:{type:Number,default:270},todayBtn:{type:Boolean,default:!0},clearBtn:{type:Boolean,default:!0},closeOnSelected:{type:Boolean,default:!0},limitFrom:null,limitTo:null,format:{type:String,default:"yyyy-MM-dd"},initialView:{type:String,default:"d"},dateParser:{type:Function,default:Date.parse},dateClass:Function,yearMonthFormatter:Function,weekStartsWith:{type:Number,default:0,validator:function(t){return t>=0&&t<=6}},weekNumbers:Boolean,iconControlLeft:{type:String,default:"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,default:"glyphicon glyphicon-chevron-right"}},data:function(){return{show:!1,now:new Date,currentMonth:0,currentYear:0,view:"d"}},computed:{valueDateObj:function(){var t=this.dateParser(this.value);if(isNaN(t))return null;var e=new Date(t);return 0!==e.getHours()&&(e=new Date(t+60*e.getTimezoneOffset()*1e3)),e},pickerStyle:function(){return{width:this.width+"px"}},limit:function(){var t={};if(this.limitFrom){var e=this.dateParser(this.limitFrom);isNaN(e)||((e=gt(new Date(e))).setHours(0,0,0,0),t.from=e)}if(this.limitTo){var n=this.dateParser(this.limitTo);isNaN(n)||((n=gt(new Date(n))).setHours(0,0,0,0),t.to=n)}return t}},mounted:function(){this.value?this.setMonthAndYearByValue(this.value):(this.currentMonth=this.now.getMonth(),this.currentYear=this.now.getFullYear(),this.view=this.initialView)},watch:{value:function(t,e){this.setMonthAndYearByValue(t,e)}},methods:{setMonthAndYearByValue:function(t,e){var n=this.dateParser(t);if(!isNaN(n)){var r=new Date(n);0!==r.getHours()&&(r=new Date(n+60*r.getTimezoneOffset()*1e3)),this.limit&&(this.limit.from&&r=this.limit.to)?this.$emit("input",e||""):(this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear())}},onMonthChange:function(t){this.currentMonth=t},onYearChange:function(t){this.currentYear=t,this.currentMonth=void 0},onDateChange:function(t){if(t&&c(t.date)&&c(t.month)&&c(t.year)){var e=new Date(t.year,t.month,t.date);this.$emit("input",this.format?function(t,e){try{var n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=mt[r-1];return e.replace(/yyyy/g,n).replace(/MMMM/g,o).replace(/MMM/g,o.substring(0,3)).replace(/MM/g,vt(r,2)).replace(/dd/g,vt(i,2)).replace(/yy/g,n).replace(/M(?!a)/g,r).replace(/d/g,i)}catch(t){return""}}(e,this.format):e),this.currentMonth=t.month,this.currentYear=t.year}else this.$emit("input","")},onViewChange:function(t){this.view=t},selectToday:function(){this.view="d",this.onDateChange({date:this.now.getDate(),month:this.now.getMonth(),year:this.now.getFullYear()})},clearSelect:function(){this.currentMonth=this.now.getMonth(),this.currentYear=this.now.getFullYear(),this.view=this.initialView,this.onDateChange()},onPickerClick:function(t){"select"===t.target.getAttribute("data-action")&&this.closeOnSelected||t.stopPropagation()}}},At="_uiv_scroll_handler",_t=[C,T],bt=function(t,e){var n=e.value;s(n)&&(wt(t),t[At]=n,_t.forEach(function(e){R(window,e,t[At])}))},wt=function(t){_t.forEach(function(e){M(window,e,t[At])}),delete t[At]},xt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hidden-print"},[e("div",{directives:[{name:"scroll",rawName:"v-scroll",value:this.onScroll,expression:"onScroll"}],class:this.classes,style:this.styles},[this._t("default")],2)])},staticRenderFns:[],directives:{scroll:{bind:bt,unbind:wt,update:function(t,e){e.value!==e.oldValue&&bt(t,e)}}},props:{offset:{type:Number,default:0}},data:function(){return{affixed:!1}},computed:{classes:function(){return{affix:this.affixed}},styles:function(){return{top:this.affixed?this.offset+"px":null}}},methods:{onScroll:function(){var t=this;if(this.$el.offsetWidth||this.$el.offsetHeight||this.$el.getClientRects().length){for(var e={},n={},r=this.$el.getBoundingClientRect(),i=document.body,o=["Top","Left"],a=0;an.top-this.offset;this.affixed!==u&&(this.affixed=u,this.affixed&&(this.$emit("affix"),this.$nextTick(function(){t.$emit("affixed")})))}}}},Ct={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.alertClass,attrs:{role:"alert"}},[this.dismissible?e("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:this.closeAlert}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[],props:{dismissible:{type:Boolean,default:!1},duration:{type:Number,default:0},type:{type:String,default:"info"}},data:function(){return{timeout:0}},computed:{alertClass:function(){var t;return nt(t={alert:!0},"alert-"+this.type,Boolean(this.type)),nt(t,"alert-dismissible",this.dismissible),t}},methods:{closeAlert:function(){clearTimeout(this.timeout),this.$emit("dismissed")}},mounted:function(){this.duration>0&&(this.timeout=setTimeout(this.closeAlert,this.duration))},destroyed:function(){clearTimeout(this.timeout)}},Tt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.navClasses,attrs:{"aria-label":"Page navigation"}},[n("ul",{staticClass:"pagination",class:t.classes},[t.boundaryLinks?n("li",{class:{disabled:t.value<=1||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"First"},on:{click:function(e){return e.preventDefault(),t.onPageChange(1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])])]):t._e(),t._v(" "),t.directionLinks?n("li",{class:{disabled:t.value<=1||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Previous"},on:{click:function(e){return e.preventDefault(),t.onPageChange(t.value-1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])]):t._e(),t._v(" "),t.sliceStart>0?n("li",{class:{disabled:t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Previous group"},on:{click:function(e){return e.preventDefault(),t.toPage(1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("…")])])]):t._e(),t._v(" "),t._l(t.sliceArray,function(e){return n("li",{key:e,class:{active:t.value===e+1,disabled:t.disabled}},[n("a",{attrs:{href:"#",role:"button"},on:{click:function(n){return n.preventDefault(),t.onPageChange(e+1)}}},[t._v(t._s(e+1))])])}),t._v(" "),t.sliceStart=t.totalPage||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Next"},on:{click:function(e){return e.preventDefault(),t.onPageChange(t.value+1)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])])]):t._e(),t._v(" "),t.boundaryLinks?n("li",{class:{disabled:t.value>=t.totalPage||t.disabled}},[n("a",{attrs:{href:"#",role:"button","aria-label":"Last"},on:{click:function(e){return e.preventDefault(),t.onPageChange(t.totalPage)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]):t._e()],2)])},staticRenderFns:[],props:{value:{type:Number,required:!0,validator:function(t){return t>=1}},boundaryLinks:{type:Boolean,default:!1},directionLinks:{type:Boolean,default:!0},size:String,align:String,totalPage:{type:Number,required:!0,validator:function(t){return t>=0}},maxSize:{type:Number,default:5,validator:function(t){return t>=0}},disabled:Boolean},data:function(){return{sliceStart:0}},computed:{navClasses:function(){return nt({},"text-"+this.align,Boolean(this.align))},classes:function(){return nt({},"pagination-"+this.size,Boolean(this.size))},sliceArray:function(){return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=[],i=e;in+e){var r=this.totalPage-e;this.sliceStart=t>r?r:t-1}else te?t-e:0)},onPageChange:function(t){!this.disabled&&t>0&&t<=this.totalPage&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},toPage:function(t){if(!this.disabled){var e=this.maxSize,n=this.sliceStart,r=this.totalPage-e,i=t?n-e:n+e;this.sliceStart=i<0?0:i>r?r:i}}},created:function(){this.$watch(function(t){return[t.value,t.maxSize,t.totalPage].join()},this.calculateSliceStart,{immediate:!0})}},kt={props:{value:{type:Boolean,default:!1},tag:{type:String,default:"span"},placement:{type:String,default:O.TOP},autoPlacement:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},transitionDuration:{type:Number,default:150},hideDelay:{type:Number,default:0},showDelay:{type:Number,default:0},enable:{type:Boolean,default:!0},enterable:{type:Boolean,default:!0},target:null,viewport:null},data:function(){return{triggerEl:null,hideTimeoutId:0,showTimeoutId:0,transitionTimeoutId:0}},watch:{value:function(t){t?this.show():this.hide()},trigger:function(){this.clearListeners(),this.initListeners()},target:function(t){this.clearListeners(),this.initTriggerElByTarget(t),this.initListeners()},allContent:function(t){var e=this;this.isNotEmpty()?this.$nextTick(function(){e.isShown()&&e.resetPosition()}):this.hide()},enable:function(t){t||this.hide()}},mounted:function(){var t=this;U(),L(this.$refs.popup),this.$nextTick(function(){t.initTriggerElByTarget(t.target),t.initListeners(),t.value&&t.show()})},beforeDestroy:function(){this.clearListeners(),L(this.$refs.popup)},methods:{initTriggerElByTarget:function(t){if(t)u(t)?this.triggerEl=document.querySelector(t):F(t)?this.triggerEl=t:F(t.$el)&&(this.triggerEl=t.$el);else{var e=this.$el.querySelector('[data-role="trigger"]');if(e)this.triggerEl=e;else{var n=this.$el.firstChild;this.triggerEl=n===this.$refs.popup?null:n}}},initListeners:function(){this.triggerEl&&(this.trigger===$?(R(this.triggerEl,m,this.show),R(this.triggerEl,g,this.hide)):this.trigger===S?(R(this.triggerEl,y,this.show),R(this.triggerEl,A,this.hide)):this.trigger===B?(R(this.triggerEl,m,this.handleAuto),R(this.triggerEl,g,this.handleAuto),R(this.triggerEl,y,this.handleAuto),R(this.triggerEl,A,this.handleAuto)):this.trigger!==E&&this.trigger!==D||R(this.triggerEl,_,this.toggle)),R(window,_,this.windowClicked)},clearListeners:function(){this.triggerEl&&(M(this.triggerEl,y,this.show),M(this.triggerEl,A,this.hide),M(this.triggerEl,m,this.show),M(this.triggerEl,g,this.hide),M(this.triggerEl,_,this.toggle),M(this.triggerEl,m,this.handleAuto),M(this.triggerEl,g,this.handleAuto),M(this.triggerEl,y,this.handleAuto),M(this.triggerEl,A,this.handleAuto)),M(window,_,this.windowClicked)},resetPosition:function(){var t=this.$refs.popup;!function(t,e,n,r,i,o){var c=t&&t.className&&t.className.indexOf("popover")>=0,l=void 0,f=void 0;if(a(i)&&"body"!==i){var d=document.querySelector(i);f=d.scrollLeft,l=d.scrollTop}else{var p=document.documentElement;f=(window.pageXOffset||p.scrollLeft)-(p.clientLeft||0),l=(window.pageYOffset||p.scrollTop)-(p.clientTop||0)}if(r){var h=[O.RIGHT,O.BOTTOM,O.LEFT,O.TOP],v=function(e){h.forEach(function(e){z(t,e)}),H(t,e)};if(!q(e,t,n)){for(var m=0,g=h.length;mE&&(_=E-A.height),b$&&(b=$-A.width),n===O.BOTTOM?_-=x:n===O.LEFT?b+=x:n===O.RIGHT?b-=x:_+=x}t.style.top=_+"px",t.style.left=b+"px"}(t,this.triggerEl,this.placement,this.autoPlacement,this.appendTo,this.viewport),t.offsetHeight},hideOnLeave:function(){(this.trigger===$||this.trigger===B&&!this.triggerEl.matches(":focus"))&&this.$hide()},toggle:function(){this.isShown()?this.hide():this.show()},show:function(){var t=this;if(this.enable&&this.triggerEl&&this.isNotEmpty()&&!this.isShown()){var e=this.$refs.popup,n=this.hideTimeoutId>0;n&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.transitionTimeoutId>0&&(clearTimeout(this.transitionTimeoutId),this.transitionTimeoutId=0),this.showTimeoutId=setTimeout(function(){n||(e.className=t.name+" "+t.placement+" fade",document.querySelector(t.appendTo).appendChild(e),t.resetPosition());H(e,"in"),t.$emit("input",!0),t.$emit("show")},this.showDelay)}},hide:function(){var t=this;this.showTimeoutId>0&&(clearTimeout(this.showTimeoutId),this.showTimeoutId=0),this.isShown()&&(!this.enterable||this.trigger!==$&&this.trigger!==B?this.$hide():setTimeout(function(){t.$refs.popup.matches(":hover")||t.$hide()},100))},$hide:function(){var t=this;this.isShown()&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=setTimeout(function(){t.hideTimeoutId=0,z(t.$refs.popup,"in"),t.transitionTimeoutId=setTimeout(function(){t.transitionTimeoutId=0,L(t.$refs.popup),t.$emit("input",!1),t.$emit("hide")},t.transitionDuration)},this.hideDelay))},isShown:function(){return function(t,e){if(!F(t))return!1;for(var n=t.className.split(" "),r=0,i=n.length;r=1&&e<=12&&(this.meridian?this.hours=12===e?0:e:this.hours=12===e?12:e+12):e>=0&&e<=23&&(this.hours=e),this.setTime()}},minutesText:function(t){if(0!==this.minutes||""!==t){var e=parseInt(t);e>=0&&e<=59&&(this.minutes=e),this.setTime()}}},methods:{updateByValue:function(t){if(isNaN(t.getTime()))return this.hours=0,this.minutes=0,this.hoursText="",this.minutesText="",void(this.meridian=!0);this.hours=t.getHours(),this.minutes=t.getMinutes(),this.showMeridian?this.hours>=12?(12===this.hours?this.hoursText=this.hours+"":this.hoursText=vt(this.hours-12,2),this.meridian=!1):(0===this.hours?this.hoursText=12..toString():this.hoursText=vt(this.hours,2),this.meridian=!0):this.hoursText=vt(this.hours,2),this.minutesText=vt(this.minutes,2),this.$refs.hoursInput.value=this.hoursText,this.$refs.minutesInput.value=this.minutesText},addHour:function(t){t=t||this.hourStep,this.hours=this.hours>=23?0:this.hours+t},reduceHour:function(t){t=t||this.hourStep,this.hours=this.hours<=0?23:this.hours-t},addMinute:function(){this.minutes>=59?(this.minutes=0,this.addHour(1)):this.minutes+=this.minStep},reduceMinute:function(){this.minutes<=0?(this.minutes=60-this.minStep,this.reduceHour(1)):this.minutes-=this.minStep},changeTime:function(t,e){this.readonly||(t&&e?this.addHour():t&&!e?this.reduceHour():!t&&e?this.addMinute():this.reduceMinute(),this.setTime())},toggleMeridian:function(){this.meridian=!this.meridian,this.meridian?this.hours-=12:this.hours+=12,this.setTime()},onWheel:function(t,e){this.readonly||(t.preventDefault(),this.changeTime(e,t.deltaY<0))},setTime:function(){var t=this.value;if(isNaN(t.getTime())&&((t=new Date).setHours(0),t.setMinutes(0)),t.setHours(this.hours),t.setMinutes(this.minutes),this.max){var e=new Date(t);e.setHours(this.max.getHours()),e.setMinutes(this.max.getMinutes()),t=t>e?e:t}if(this.min){var n=new Date(t);n.setHours(this.min.getHours()),n.setMinutes(this.min.getMinutes()),t=t1&&void 0!==arguments[1]&&arguments[1])this.items=t.slice(0,this.limit);else{this.items=[],this.activeIndex=this.preselect?0:-1;for(var e=0,n=t.length;e=0)&&this.items.push(r),this.items.length>=this.limit)break}}},fetchItems:function(t,e){var n=this;if(clearTimeout(this.timeoutID),""!==t||this.openOnEmpty){if(this.data)this.prepareItems(this.data),this.open=this.hasEmptySlot()||Boolean(this.items.length);else if(this.asyncSrc)this.timeoutID=setTimeout(function(){var e,r,i,o;n.$emit("loading"),(e=n.asyncSrc+encodeURIComponent(t),r=new window.XMLHttpRequest,i={},o={then:function(t,e){return o.done(t).fail(e)},catch:function(t){return o.fail(t)},always:function(t){return o.done(t).fail(t)}},["done","fail"].forEach(function(t){i[t]=[],o[t]=function(e){return e instanceof Function&&i[t].push(e),o}}),o.done(JSON.parse),r.onreadystatechange=function(){if(4===r.readyState){var t={status:r.status};if(200===r.status){var e=r.responseText;for(var n in i.done)if(i.done.hasOwnProperty(n)&&s(i.done[n])){var o=i.done[n](e);a(o)&&(e=o)}}else i.fail.forEach(function(e){return e(t)})}},r.open("GET",e),r.setRequestHeader("Accept","application/json"),r.send(),o).then(function(t){n.inputEl.matches(":focus")&&(n.prepareItems(n.asyncKey?t[n.asyncKey]:t,!0),n.open=n.hasEmptySlot()||Boolean(n.items.length)),n.$emit("loaded")}).catch(function(t){console.error(t),n.$emit("loaded-error")})},e);else if(this.asyncFunction){var r=function(t){n.inputEl.matches(":focus")&&(n.prepareItems(t,!0),n.open=n.hasEmptySlot()||Boolean(n.items.length)),n.$emit("loaded")};this.timeoutID=setTimeout(function(){n.$emit("loading"),n.asyncFunction(t,r)},e)}}else this.open=!1},inputChanged:function(){var t=this.inputEl.value;this.fetchItems(t,this.debounce),this.$emit("input",this.forceSelect?void 0:t)},inputFocused:function(){if(this.openOnFocus){var t=this.inputEl.value;this.fetchItems(t,0)}},inputBlured:function(){var t=this;this.dropdownMenuEl.matches(":hover")||(this.open=!1),this.inputEl&&this.forceClear&&this.$nextTick(function(){void 0===t.value&&(t.inputEl.value="")})},inputKeyPressed:function(t){if(t.stopPropagation(),this.open)switch(t.keyCode){case 13:this.activeIndex>=0?this.selectItem(this.items[this.activeIndex]):this.open=!1;break;case 27:this.open=!1;break;case 38:this.activeIndex=this.activeIndex>0?this.activeIndex-1:0;break;case 40:var e=this.items.length-1;this.activeIndex=this.activeIndex$&")}}},Dt={functional:!0,render:function(t,e){var n=e.props;return t("div",ot(e.data,{class:nt({"progress-bar":!0,"progress-bar-striped":n.striped,active:n.striped&&n.active},"progress-bar-"+n.type,Boolean(n.type)),style:{minWidth:n.minWidth?"2em":null,width:n.value+"%"},attrs:{role:"progressbar","aria-valuemin":0,"aria-valuenow":n.value,"aria-valuemax":100}}),n.label?n.labelText?n.labelText:n.value+"%":null)},props:{value:{type:Number,required:!0,validator:function(t){return t>=0&&t<=100}},labelText:String,type:String,label:{type:Boolean,default:!1},minWidth:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},active:{type:Boolean,default:!1}}},Ot={functional:!0,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("div",ot(r,{class:"progress"}),i&&i.length?i:[t(Dt,{props:n})])}},It={functional:!0,mixins:[st],render:function(t,e){var n=e.props,r=e.data,i=e.children,o=void 0;return o=n.active?i:n.to?[t("router-link",{props:{to:n.to,replace:n.replace,append:n.append,exact:n.exact}},i)]:[t("a",{attrs:{href:n.href,target:n.target}},i)],t("li",ot(r,{class:{active:n.active}}),o)},props:{active:{type:Boolean,default:!1}}},Nt={functional:!0,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=[];return i&&i.length?o=i:n.items&&(o=n.items.map(function(e,r){return t(It,{key:e.hasOwnProperty("key")?e.key:r,props:{active:e.hasOwnProperty("active")?e.active:r===n.items.length-1,href:e.href,target:e.target,to:e.to,replace:e.replace,append:e.append,exact:e.exact}},e.text)})),t("ol",ot(r,{class:"breadcrumb"}),o)},props:{items:Array}},jt={functional:!0,render:function(t,e){var n=e.children;return t("div",ot(e.data,{class:{"btn-toolbar":!0},attrs:{role:"toolbar"}}),n)}},Pt={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dropdown",{ref:"dropdown",style:t.containerStyles,attrs:{"not-close-elements":t.els,"append-to-body":t.appendToBody,disabled:t.disabled},nativeOn:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;t.showDropdown=!1}},model:{value:t.showDropdown,callback:function(e){t.showDropdown=e},expression:"showDropdown"}},[n("div",{staticClass:"form-control dropdown-toggle clearfix",class:t.selectClasses,attrs:{disabled:t.disabled,tabindex:"0","data-role":"trigger"},on:{focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),e.stopPropagation(),t.goNextOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),e.stopPropagation(),t.goPrevOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),t.selectOption(e))}]}},[n("div",{class:t.selectTextClasses,staticStyle:{display:"inline-block","vertical-align":"middle"}},[t._v(t._s(t.selectedText))]),t._v(" "),n("div",{staticClass:"pull-right",staticStyle:{display:"inline-block","vertical-align":"middle"}},[n("span",[t._v(" ")]),t._v(" "),n("span",{staticClass:"caret"})])]),t._v(" "),n("template",{slot:"dropdown"},[t.filterable?n("li",{staticStyle:{padding:"4px 8px"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.filterInput,expression:"filterInput"}],ref:"filterInput",staticClass:"form-control input-sm",attrs:{"aria-label":"Filter...",type:"text",placeholder:t.filterPlaceholder||t.t("uiv.multiSelect.filterPlaceholder")},domProps:{value:t.filterInput},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),e.stopPropagation(),t.goNextOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),e.stopPropagation(),t.goPrevOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),t.selectOption(e))}],input:function(e){e.target.composing||(t.filterInput=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.groupedOptions,function(e){return[e.$group?n("li",{staticClass:"dropdown-header",domProps:{textContent:t._s(e.$group)}}):t._e(),t._v(" "),t._l(e.options,function(e){return[n("li",{class:t.itemClasses(e),staticStyle:{outline:"0"},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),e.stopPropagation(),t.goNextOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),e.stopPropagation(),t.goPrevOption(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),t.selectOption(e))}],click:function(n){return n.stopPropagation(),t.toggle(e)},mouseenter:function(e){t.currentActive=-1}}},[t.isItemSelected(e)?n("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[n("b",[t._v(t._s(e[t.labelKey]))]),t._v(" "),t.selectedIcon?n("span",{class:t.selectedIconClasses}):t._e()]):n("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[n("span",[t._v(t._s(e[t.labelKey]))])])])]})]})],2)],2)},staticRenderFns:[],mixins:[it],components:{Dropdown:K},props:{value:{type:Array,required:!0},options:{type:Array,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},limit:{type:Number,default:0},size:String,placeholder:String,split:{type:String,default:", "},disabled:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},block:{type:Boolean,default:!1},collapseSelected:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},filterAutoFocus:{type:Boolean,default:!0},filterFunction:Function,filterPlaceholder:String,selectedIcon:{type:String,default:"glyphicon glyphicon-ok"},itemSelectedClass:String},data:function(){return{showDropdown:!1,els:[],filterInput:"",currentActive:-1}},computed:{containerStyles:function(){return{width:this.block?"100%":""}},filteredOptions:function(){var t=this;if(this.filterable&&this.filterInput){if(this.filterFunction)return this.filterFunction(this.filterInput);var e=this.filterInput.toLowerCase();return this.options.filter(function(n){return n[t.valueKey].toString().toLowerCase().indexOf(e)>=0||n[t.labelKey].toString().toLowerCase().indexOf(e)>=0})}return this.options},groupedOptions:function(){var t=this;return this.filteredOptions.map(function(t){return t.group}).filter(h).map(function(e){return{options:t.filteredOptions.filter(function(t){return t.group===e}),$group:e}})},flatternGroupedOptions:function(){if(this.groupedOptions&&this.groupedOptions.length){var t=[];return this.groupedOptions.forEach(function(e){t=t.concat(e.options)}),t}return[]},selectClasses:function(){return nt({},"input-"+this.size,this.size)},selectedIconClasses:function(){var t;return nt(t={},this.selectedIcon,!0),nt(t,"pull-right",!0),t},selectTextClasses:function(){return{"text-muted":0===this.value.length}},labelValue:function(){var t=this,e=this.options.map(function(e){return e[t.valueKey]});return this.value.map(function(n){var r=e.indexOf(n);return r>=0?t.options[r][t.labelKey]:n})},selectedText:function(){if(this.value.length){var t=this.labelValue;if(this.collapseSelected){var e=t[0];return e+=t.length>1?this.split+"+"+(t.length-1):""}return t.join(this.split)}return this.placeholder||this.t("uiv.multiSelect.placeholder")}},watch:{showDropdown:function(t){var e=this;this.filterInput="",this.currentActive=-1,this.$emit("visible-change",t),t&&this.filterable&&this.filterAutoFocus&&this.$nextTick(function(){e.$refs.filterInput.focus()})}},mounted:function(){this.els=[this.$el]},methods:{goPrevOption:function(){this.showDropdown&&(this.currentActive>0?this.currentActive--:this.currentActive=this.flatternGroupedOptions.length-1)},goNextOption:function(){this.showDropdown&&(this.currentActive=0&&t=0},toggle:function(t){if(!t.disabled){var e=t[this.valueKey],n=this.value.indexOf(e);if(1===this.limit){var r=n>=0?[]:[e];this.$emit("input",r),this.$emit("change",r)}else n>=0?(this.value.splice(n,1),this.$emit("change",this.value)):0===this.limit||this.value.length1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.el=t,this.opts=rt({},Kt.DEFAULTS,n),this.opts.target=e,this.scrollElement="body"===e?window:document.querySelector("[id="+e+"]"),this.selector="li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.scrollElement&&(this.refresh(),this.process())}Kt.DEFAULTS={offset:10,callback:function(t){return 0}},Kt.prototype.getScrollHeight=function(){return this.scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},Kt.prototype.refresh=function(){var t=this;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var e=p(this.el.querySelectorAll(this.selector)),n=this.scrollElement===window;e.map(function(e){var r=e.getAttribute("href");if(/^#./.test(r)){var i=document.documentElement,o=(n?document:t.scrollElement).querySelector("[id='"+r.slice(1)+"']"),a=(window.pageYOffset||i.scrollTop)-(i.clientTop||0);return[n?o.getBoundingClientRect().top+a:o.offsetTop+t.scrollElement.scrollTop,r]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t.offsets.push(e[0]),t.targets.push(e[1])})},Kt.prototype.process=function(){var t=this.scrollElement===window,e=(t?window.pageYOffset:this.scrollElement.scrollTop)+this.opts.offset,n=this.getScrollHeight(),r=t?N().height:this.scrollElement.getBoundingClientRect().height,i=this.opts.offset+n-r,o=this.offsets,a=this.targets,s=this.activeTarget,c=void 0;if(this.scrollHeight!==n&&this.refresh(),e>=i)return s!==(c=a[a.length-1])&&this.activate(c);if(s&&e=o[c]&&(void 0===o[c+1]||e-1:t.input},on:{change:[function(e){var n=t.input,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.input=n.concat([null])):o>-1&&(t.input=n.slice(0,o).concat(n.slice(o+1)))}else t.input=i},function(e){t.dirty=!0}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.validate(e)}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:"radio"},domProps:{checked:t._q(t.input,null)},on:{change:[function(e){t.input=null},function(e){t.dirty=!0}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.validate(e)}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:t.inputType},domProps:{value:t.input},on:{change:function(e){t.dirty=!0},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.validate(e)},input:function(e){e.target.composing||(t.input=e.target.value)}}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.inputNotValid,expression:"inputNotValid"}],staticClass:"help-block"},[t._v(t._s(t.inputError))])])]):t._e(),t._v(" "),t.type===t.TYPES.ALERT?n("template",{slot:"footer"},[n("btn",{attrs:{type:t.okType,"data-action":"ok"===t.autoFocus?"auto-focus":""},domProps:{textContent:t._s(t.okBtnText)},on:{click:function(e){return t.toggle(!1,"ok")}}})],1):n("template",{slot:"footer"},[n("btn",{attrs:{type:t.cancelType,"data-action":"cancel"===t.autoFocus?"auto-focus":""},domProps:{textContent:t._s(t.cancelBtnText)},on:{click:function(e){return t.toggle(!1,"cancel")}}}),t._v(" "),t.type===t.TYPES.CONFIRM?n("btn",{attrs:{type:t.okType,"data-action":"ok"===t.autoFocus?"auto-focus":""},domProps:{textContent:t._s(t.okBtnText)},on:{click:function(e){return t.toggle(!1,"ok")}}}):n("btn",{attrs:{type:t.okType},domProps:{textContent:t._s(t.okBtnText)},on:{click:t.validate}})],1)],2)},staticRenderFns:[],mixins:[it],components:{Modal:dt,Btn:ut},props:{backdrop:null,title:String,content:String,html:{type:Boolean,default:!1},okText:String,okType:{type:String,default:"primary"},cancelText:String,cancelType:{type:String,default:"default"},type:{type:Number,default:oe.ALERT},size:{type:String,default:"sm"},cb:{type:Function,required:!0},validator:{type:Function,default:function(){return null}},customClass:null,defaultValue:String,inputType:{type:String,default:"text"},autoFocus:{type:String,default:"ok"}},data:function(){return{TYPES:oe,show:!1,input:"",dirty:!1}},mounted:function(){this.defaultValue&&(this.input=this.defaultValue)},computed:{closeOnBackdropClick:function(){return a(this.backdrop)?Boolean(this.backdrop):this.type!==oe.ALERT},inputError:function(){return this.validator(this.input)},inputNotValid:function(){return this.dirty&&this.inputError},okBtnText:function(){return this.okText||this.t("uiv.modal.ok")},cancelBtnText:function(){return this.cancelText||this.t("uiv.modal.cancel")}},methods:{toggle:function(t,e){this.$refs.modal.toggle(t,e)},validate:function(){this.dirty=!0,a(this.inputError)||this.toggle(!1,{value:this.input})}}},se=[],ce=function(t,e){return t===oe.CONFIRM?"ok"===e:a(e)&&u(e.value)},ue=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=this.$i18n,c=new o.a({extends:ae,i18n:a,propsData:rt({type:t},e,{cb:function(e){!function(t){L(t.$el),t.$destroy(),d(se,t)}(c),s(n)?t===oe.CONFIRM?ce(t,e)?n(null,e):n(e):t===oe.PROMPT&&ce(t,e)?n(null,e.value):n(e):r&&i&&(t===oe.CONFIRM?ce(t,e)?r(e):i(e):t===oe.PROMPT?ce(t,e)?r(e.value):i(e):r(e))}})});c.$mount(),document.body.appendChild(c.$el),c.show=!0,se.push(c)},le=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2];if(l())return new Promise(function(i,o){ue.apply(e,[t,n,r,i,o])});ue.apply(this,[t,n,r])},fe={alert:function(t,e){return le.apply(this,[oe.ALERT,t,e])},confirm:function(t,e){return le.apply(this,[oe.CONFIRM,t,e])},prompt:function(t,e){return le.apply(this,[oe.PROMPT,t,e])}},de="success",pe="info",he="danger",ve="warning",me="top-left",ge="top-right",ye="bottom-left",Ae="bottom-right",_e="glyphicon",be={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("alert",{staticClass:"fade",class:t.customClass,style:t.styles,attrs:{type:t.type,duration:t.duration,dismissible:t.dismissible},on:{dismissed:t.onDismissed}},[n("div",{staticClass:"media",staticStyle:{margin:"0"}},[t.icons?n("div",{staticClass:"media-left"},[n("span",{class:t.icons,staticStyle:{"font-size":"1.5em"}})]):t._e(),t._v(" "),n("div",{staticClass:"media-body"},[t.title?n("div",{staticClass:"media-heading"},[n("b",[t._v(t._s(t.title))])]):t._e(),t._v(" "),t.html?n("div",{domProps:{innerHTML:t._s(t.content)}}):n("div",[t._v(t._s(t.content))])])])])},staticRenderFns:[],components:{Alert:Ct},props:{title:String,content:String,html:{type:Boolean,default:!1},duration:{type:Number,default:5e3},dismissible:{type:Boolean,default:!0},type:String,placement:String,icon:String,customClass:null,cb:{type:Function,required:!0},queue:{type:Array,required:!0},offsetY:{type:Number,default:15},offsetX:{type:Number,default:15},offset:{type:Number,default:15}},data:function(){return{height:0,top:0,horizontal:this.placement===me||this.placement===ye?"left":"right",vertical:this.placement===me||this.placement===ge?"top":"bottom"}},created:function(){this.top=this.getTotalHeightOfQueue(this.queue)},mounted:function(){var t=this,e=this.$el;e.style[this.vertical]=this.top+"px",this.$nextTick(function(){e.style[t.horizontal]="-300px",t.height=e.offsetHeight,e.style[t.horizontal]=t.offsetX+"px",H(e,"in")})},computed:{styles:function(){var t,e=this.queue,n=e.indexOf(this);return nt(t={position:"fixed"},this.vertical,this.getTotalHeightOfQueue(e,n)+"px"),nt(t,"width","300px"),nt(t,"transition","all 0.3s ease-in-out"),t},icons:function(){if(u(this.icon))return this.icon;switch(this.type){case pe:case ve:return _e+" "+_e+"-info-sign";case de:return _e+" "+_e+"-ok-sign";case he:return _e+" "+_e+"-remove-sign";default:return null}}},methods:{getTotalHeightOfQueue:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,n=this.offsetY,r=0;r2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t.placement,c=we[i];if(a(c)){var u=new o.a({extends:be,propsData:rt({queue:c,placement:i},t,{cb:function(t){!function(t,e){L(e.$el),e.$destroy(),d(t,e)}(c,u),s(e)?e(t):n&&r&&n(t)}})});u.$mount(),document.body.appendChild(u.$el),c.push(u)}},Ce={notify:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(u(t)&&(t={content:t}),a(t.placement)||(t.placement=ge),l())return new Promise(function(n,r){xe(t,e,n,r)});xe(t,e)}},Te=Object.freeze({MessageBox:fe,Notification:Ce}),ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tt(e.locale),et(e.i18n),Object.keys(Ut).forEach(function(n){var r=e.prefix?e.prefix+n:n;t.component(r,Ut[n])}),Object.keys(ie).forEach(function(n){var r=e.prefix?e.prefix+"-"+n:n;t.directive(r,ie[n])}),Object.keys(Te).forEach(function(n){var r=Te[n];Object.keys(r).forEach(function(n){var i=e.prefix?e.prefix+"_"+n:n;t.prototype["$"+i]=r[n]})})};n(16),window.Vue=n(13),Vue.use(r),Vue.component("budget",n(40)),Vue.component("custom-date",n(46)),Vue.component("custom-string",n(51)),Vue.component("custom-attachments",n(56)),Vue.component("custom-textarea",n(61)),Vue.component("standard-date",n(66)),Vue.component("group-description",n(71)),Vue.component("transaction-description",n(76)),Vue.component("custom-transaction-fields",n(81)),Vue.component("piggy-bank",n(86)),Vue.component("tags",n(91)),Vue.component("category",n(97)),Vue.component("amount",n(102)),Vue.component("foreign-amount",n(107)),Vue.component("transaction-type",n(112)),Vue.component("account-select",n(117)),Vue.component("passport-clients",n(122)),Vue.component("passport-authorized-clients",n(127)),Vue.component("passport-personal-access-tokens",n(132)),Vue.component("create-transaction",n(137)),Vue.component("edit-transaction",n(142));new Vue({el:"#app"})},function(t,e,n){window._=n(17);try{window.$=window.jQuery=n(19),n(20)}catch(t){}window.axios=n(6),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},function(t,e,n){(function(t,r){var i;(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",d=1,p=2,h=4,v=1,m=2,g=1,y=2,A=4,_=8,b=16,w=32,x=64,C=128,T=256,k=512,E=30,$="...",S=800,B=16,D=1,O=2,I=1/0,N=9007199254740991,j=1.7976931348623157e308,P=NaN,R=4294967295,M=R-1,F=R>>>1,L=[["ary",C],["bind",g],["bindKey",y],["curry",_],["curryRight",b],["flip",k],["partial",w],["partialRight",x],["rearg",T]],U="[object Arguments]",H="[object Array]",z="[object AsyncFunction]",q="[object Boolean]",W="[object Date]",Q="[object DOMException]",V="[object Error]",Y="[object Function]",G="[object GeneratorFunction]",K="[object Map]",J="[object Number]",X="[object Null]",Z="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",rt="[object String]",it="[object Symbol]",ot="[object Undefined]",at="[object WeakMap]",st="[object WeakSet]",ct="[object ArrayBuffer]",ut="[object DataView]",lt="[object Float32Array]",ft="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",ht="[object Int32Array]",vt="[object Uint8Array]",mt="[object Uint8ClampedArray]",gt="[object Uint16Array]",yt="[object Uint32Array]",At=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,Ct=RegExp(wt.source),Tt=RegExp(xt.source),kt=/<%-([\s\S]+?)%>/g,Et=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,St=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,Dt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,It=RegExp(Ot.source),Nt=/^\s+|\s+$/g,jt=/^\s+/,Pt=/\s+$/,Rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Qt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+Zt+"]",ne="["+Xt+"]",re="\\d+",ie="[\\u2700-\\u27bf]",oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+Zt+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",se="\\ud83c[\\udffb-\\udfff]",ce="[^\\ud800-\\udfff]",ue="(?:\\ud83c[\\udde6-\\uddff]){2}",le="[\\ud800-\\udbff][\\udc00-\\udfff]",fe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",de="(?:"+oe+"|"+ae+")",pe="(?:"+fe+"|"+ae+")",he="(?:"+ne+"|"+se+")"+"?",ve="[\\ufe0e\\ufe0f]?"+he+("(?:\\u200d(?:"+[ce,ue,le].join("|")+")[\\ufe0e\\ufe0f]?"+he+")*"),me="(?:"+[ie,ue,le].join("|")+")"+ve,ge="(?:"+[ce+ne+"?",ne,ue,le,te].join("|")+")",ye=RegExp("['’]","g"),Ae=RegExp(ne,"g"),_e=RegExp(se+"(?="+se+")|"+ge+ve,"g"),be=RegExp([fe+"?"+oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,fe,"$"].join("|")+")",pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,fe+de,"$"].join("|")+")",fe+"?"+de+"+(?:['’](?:d|ll|m|re|s|t|ve))?",fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",re,me].join("|"),"g"),we=RegExp("[\\u200d\\ud800-\\udfff"+Xt+"\\ufe0e\\ufe0f]"),xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Te=-1,ke={};ke[lt]=ke[ft]=ke[dt]=ke[pt]=ke[ht]=ke[vt]=ke[mt]=ke[gt]=ke[yt]=!0,ke[U]=ke[H]=ke[ct]=ke[q]=ke[ut]=ke[W]=ke[V]=ke[Y]=ke[K]=ke[J]=ke[Z]=ke[et]=ke[nt]=ke[rt]=ke[at]=!1;var Ee={};Ee[U]=Ee[H]=Ee[ct]=Ee[ut]=Ee[q]=Ee[W]=Ee[lt]=Ee[ft]=Ee[dt]=Ee[pt]=Ee[ht]=Ee[K]=Ee[J]=Ee[Z]=Ee[et]=Ee[nt]=Ee[rt]=Ee[it]=Ee[vt]=Ee[mt]=Ee[gt]=Ee[yt]=!0,Ee[V]=Ee[Y]=Ee[at]=!1;var $e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Se=parseFloat,Be=parseInt,De="object"==typeof t&&t&&t.Object===Object&&t,Oe="object"==typeof self&&self&&self.Object===Object&&self,Ie=De||Oe||Function("return this")(),Ne="object"==typeof e&&e&&!e.nodeType&&e,je=Ne&&"object"==typeof r&&r&&!r.nodeType&&r,Pe=je&&je.exports===Ne,Re=Pe&&De.process,Me=function(){try{var t=je&&je.require&&je.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}(),Fe=Me&&Me.isArrayBuffer,Le=Me&&Me.isDate,Ue=Me&&Me.isMap,He=Me&&Me.isRegExp,ze=Me&&Me.isSet,qe=Me&&Me.isTypedArray;function We(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Qe(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function Xe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function bn(t,e){for(var n=t.length;n--&&cn(e,t[n],0)>-1;);return n}var wn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),xn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Cn(t){return"\\"+$e[t]}function Tn(t){return we.test(t)}function kn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function En(t,e){return function(n){return t(e(n))}}function $n(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var Nn=function t(e){var n,r=(e=null==e?Ie:Nn.defaults(Ie.Object(),e,Nn.pick(Ie,Ce))).Array,i=e.Date,Xt=e.Error,Zt=e.Function,te=e.Math,ee=e.Object,ne=e.RegExp,re=e.String,ie=e.TypeError,oe=r.prototype,ae=Zt.prototype,se=ee.prototype,ce=e["__core-js_shared__"],ue=ae.toString,le=se.hasOwnProperty,fe=0,de=(n=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pe=se.toString,he=ue.call(ee),ve=Ie._,me=ne("^"+ue.call(le).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Pe?e.Buffer:o,_e=e.Symbol,we=e.Uint8Array,$e=ge?ge.allocUnsafe:o,De=En(ee.getPrototypeOf,ee),Oe=ee.create,Ne=se.propertyIsEnumerable,je=oe.splice,Re=_e?_e.isConcatSpreadable:o,Me=_e?_e.iterator:o,on=_e?_e.toStringTag:o,pn=function(){try{var t=Fo(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),jn=e.clearTimeout!==Ie.clearTimeout&&e.clearTimeout,Pn=i&&i.now!==Ie.Date.now&&i.now,Rn=e.setTimeout!==Ie.setTimeout&&e.setTimeout,Mn=te.ceil,Fn=te.floor,Ln=ee.getOwnPropertySymbols,Un=ge?ge.isBuffer:o,Hn=e.isFinite,zn=oe.join,qn=En(ee.keys,ee),Wn=te.max,Qn=te.min,Vn=i.now,Yn=e.parseInt,Gn=te.random,Kn=oe.reverse,Jn=Fo(e,"DataView"),Xn=Fo(e,"Map"),Zn=Fo(e,"Promise"),tr=Fo(e,"Set"),er=Fo(e,"WeakMap"),nr=Fo(ee,"create"),rr=er&&new er,ir={},or=fa(Jn),ar=fa(Xn),sr=fa(Zn),cr=fa(tr),ur=fa(er),lr=_e?_e.prototype:o,fr=lr?lr.valueOf:o,dr=lr?lr.toString:o;function pr(t){if($s(t)&&!gs(t)&&!(t instanceof gr)){if(t instanceof mr)return t;if(le.call(t,"__wrapped__"))return da(t)}return new mr(t)}var hr=function(){function t(){}return function(e){if(!Es(e))return{};if(Oe)return Oe(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function vr(){}function mr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function gr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function yr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function jr(t,e,n,r,i,a){var s,c=e&d,u=e&p,l=e&h;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!Es(t))return t;var f=gs(t);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&le.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return no(t,s)}else{var v=Ho(t),m=v==Y||v==G;if(bs(t))return Ki(t,c);if(v==Z||v==U||m&&!i){if(s=u||m?{}:qo(t),!c)return u?function(t,e){return ro(t,Uo(t),e)}(t,function(t,e){return t&&ro(e,oc(e),t)}(s,t)):function(t,e){return ro(t,Lo(t),e)}(t,Dr(s,t))}else{if(!Ee[v])return i?t:{};s=function(t,e,n){var r,i,o,a=t.constructor;switch(e){case ct:return Ji(t);case q:case W:return new a(+t);case ut:return function(t,e){var n=e?Ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case lt:case ft:case dt:case pt:case ht:case vt:case mt:case gt:case yt:return Xi(t,n);case K:return new a;case J:case rt:return new a(t);case et:return(o=new(i=t).constructor(i.source,zt.exec(i))).lastIndex=i.lastIndex,o;case nt:return new a;case it:return r=t,fr?ee(fr.call(r)):{}}}(t,v,c)}}a||(a=new wr);var g=a.get(t);if(g)return g;a.set(t,s),Is(t)?t.forEach(function(r){s.add(jr(r,e,n,r,t,a))}):Ss(t)&&t.forEach(function(r,i){s.set(i,jr(r,e,n,i,t,a))});var y=f?o:(l?u?Oo:Do:u?oc:ic)(t);return Ve(y||t,function(r,i){y&&(r=t[i=r]),$r(s,i,jr(r,e,n,i,t,a))}),s}function Pr(t,e,n){var r=n.length;if(null==t)return!r;for(t=ee(t);r--;){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function Rr(t,e,n){if("function"!=typeof t)throw new ie(c);return ia(function(){t.apply(o,n)},e)}function Mr(t,e,n,r){var i=-1,o=Je,s=!0,c=t.length,u=[],l=e.length;if(!c)return u;n&&(e=Ze(e,gn(n))),r?(o=Xe,s=!1):e.length>=a&&(o=An,s=!1,e=new br(e));t:for(;++i-1},Ar.prototype.set=function(t,e){var n=this.__data__,r=Sr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Xn||Ar),string:new yr}},_r.prototype.delete=function(t){var e=Ro(this,t).delete(t);return this.size-=e?1:0,e},_r.prototype.get=function(t){return Ro(this,t).get(t)},_r.prototype.has=function(t){return Ro(this,t).has(t)},_r.prototype.set=function(t,e){var n=Ro(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},br.prototype.add=br.prototype.push=function(t){return this.__data__.set(t,u),this},br.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new Ar,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ar){var r=n.__data__;if(!Xn||r.length0&&n(s)?e>1?qr(s,e-1,n,r,i):tn(i,s):r||(i[i.length]=s)}return i}var Wr=so(),Qr=so(!0);function Vr(t,e){return t&&Wr(t,e,ic)}function Yr(t,e){return t&&Qr(t,e,ic)}function Gr(t,e){return Ke(e,function(e){return Cs(t[e])})}function Kr(t,e){for(var n=0,r=(e=Qi(e,t)).length;null!=t&&ne}function ti(t,e){return null!=t&&le.call(t,e)}function ei(t,e){return null!=t&&e in ee(t)}function ni(t,e,n){for(var i=n?Xe:Je,a=t[0].length,s=t.length,c=s,u=r(s),l=1/0,f=[];c--;){var d=t[c];c&&e&&(d=Ze(d,gn(e))),l=Qn(d.length,l),u[c]=!n&&(e||a>=120&&d.length>=120)?new br(c&&d):o}d=t[0];var p=-1,h=u[0];t:for(;++p=s)return c;var u=n[r];return c*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)})}function yi(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)s!==t&&je.call(s,c,1),je.call(t,c,1);return t}function _i(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Qo(i)?je.call(t,i,1):Mi(t,i)}}return t}function bi(t,e){return t+Fn(Gn()*(e-t+1))}function wi(t,e){var n="";if(!t||e<1||e>N)return n;do{e%2&&(n+=t),(e=Fn(e/2))&&(t+=t)}while(e);return n}function xi(t,e){return oa(ta(t,e,Bc),t+"")}function Ci(t){return Cr(pc(t))}function Ti(t,e){var n=pc(t);return ca(n,Nr(e,0,n.length))}function ki(t,e,n,r){if(!Es(t))return t;for(var i=-1,a=(e=Qi(e,t)).length,s=a-1,c=t;null!=c&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!js(a)&&(n?a<=e:a=a){var l=e?null:xo(t);if(l)return Sn(l);s=!1,i=An,u=new br}else u=e?[]:c;t:for(;++r=r?t:Bi(t,e,n)}var Gi=jn||function(t){return Ie.clearTimeout(t)};function Ki(t,e){if(e)return t.slice();var n=t.length,r=$e?$e(n):new t.constructor(n);return t.copy(r),r}function Ji(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function Xi(t,e){var n=e?Ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Zi(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=js(t),s=e!==o,c=null===e,u=e==e,l=js(e);if(!c&&!l&&!a&&t>e||a&&s&&u&&!c&&!l||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&t1?n[i-1]:o,s=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,s&&Vo(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=ee(e);++r-1?i[a?e[s]:s]:o}}function po(t){return Bo(function(e){var n=e.length,r=n,i=mr.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new ie(c);if(i&&!s&&"wrapper"==No(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&_.reverse(),d&&lc))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var f=-1,d=!0,p=n&m?new br:o;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Rt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ve(L,function(n){var r="_."+n[0];e&n[1]&&!Je(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Mt);return e?e[1].split(Ft):[]}(r),n)))}function sa(t){var e=0,n=0;return function(){var r=Vn(),i=B-(r-n);if(n=r,i>0){if(++e>=S)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ca(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n1?t[e-1]:o;return Oa(t,n="function"==typeof n?(t.pop(),n):o)});function Fa(t){var e=pr(t);return e.__chain__=!0,e}function La(t,e){return e(t)}var Ua=Bo(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof gr&&Qo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:La,args:[i],thisArg:o}),new mr(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(o),t})):this.thru(i)});var Ha=io(function(t,e,n){le.call(t,n)?++t[n]:Or(t,n,1)});var za=fo(ma),qa=fo(ga);function Wa(t,e){return(gs(t)?Ve:Fr)(t,Po(e,3))}function Qa(t,e){return(gs(t)?Ye:Lr)(t,Po(e,3))}var Va=io(function(t,e,n){le.call(t,n)?t[n].push(e):Or(t,n,[e])});var Ya=xi(function(t,e,n){var i=-1,o="function"==typeof e,a=As(t)?r(t.length):[];return Fr(t,function(t){a[++i]=o?We(e,t,n):ri(t,e,n)}),a}),Ga=io(function(t,e,n){Or(t,n,e)});function Ka(t,e){return(gs(t)?Ze:di)(t,Po(e,3))}var Ja=io(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Xa=xi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Vo(t,e[0],e[1])?e=[]:n>2&&Vo(e[0],e[1],e[2])&&(e=[e[0]]),gi(t,qr(e,1),[])}),Za=Pn||function(){return Ie.Date.now()};function ts(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,To(t,C,o,o,o,o,e)}function es(t,e){var n;if("function"!=typeof e)throw new ie(c);return t=Us(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var ns=xi(function(t,e,n){var r=g;if(n.length){var i=$n(n,jo(ns));r|=w}return To(t,r,e,n,i)}),rs=xi(function(t,e,n){var r=g|y;if(n.length){var i=$n(n,jo(rs));r|=w}return To(e,r,t,n,i)});function is(t,e,n){var r,i,a,s,u,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof t)throw new ie(c);function v(e){var n=r,a=i;return r=i=o,f=e,s=t.apply(a,n)}function m(t){var n=t-l;return l===o||n>=e||n<0||p&&t-f>=a}function g(){var t=Za();if(m(t))return y(t);u=ia(g,function(t){var n=e-(t-l);return p?Qn(n,a-(t-f)):n}(t))}function y(t){return u=o,h&&r?v(t):(r=i=o,s)}function A(){var t=Za(),n=m(t);if(r=arguments,i=this,l=t,n){if(u===o)return function(t){return f=t,u=ia(g,e),d?v(t):s}(l);if(p)return Gi(u),u=ia(g,e),v(l)}return u===o&&(u=ia(g,e)),s}return e=zs(e)||0,Es(n)&&(d=!!n.leading,a=(p="maxWait"in n)?Wn(zs(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),A.cancel=function(){u!==o&&Gi(u),f=0,r=l=i=u=o},A.flush=function(){return u===o?s:y(Za())},A}var os=xi(function(t,e){return Rr(t,1,e)}),as=xi(function(t,e,n){return Rr(t,zs(e)||0,n)});function ss(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ie(c);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ss.Cache||_r),n}function cs(t){if("function"!=typeof t)throw new ie(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ss.Cache=_r;var us=Vi(function(t,e){var n=(e=1==e.length&&gs(e[0])?Ze(e[0],gn(Po())):Ze(qr(e,1),gn(Po()))).length;return xi(function(r){for(var i=-1,o=Qn(r.length,n);++i=e}),ms=ii(function(){return arguments}())?ii:function(t){return $s(t)&&le.call(t,"callee")&&!Ne.call(t,"callee")},gs=r.isArray,ys=Fe?gn(Fe):function(t){return $s(t)&&Xr(t)==ct};function As(t){return null!=t&&ks(t.length)&&!Cs(t)}function _s(t){return $s(t)&&As(t)}var bs=Un||zc,ws=Le?gn(Le):function(t){return $s(t)&&Xr(t)==W};function xs(t){if(!$s(t))return!1;var e=Xr(t);return e==V||e==Q||"string"==typeof t.message&&"string"==typeof t.name&&!Ds(t)}function Cs(t){if(!Es(t))return!1;var e=Xr(t);return e==Y||e==G||e==z||e==tt}function Ts(t){return"number"==typeof t&&t==Us(t)}function ks(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=N}function Es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $s(t){return null!=t&&"object"==typeof t}var Ss=Ue?gn(Ue):function(t){return $s(t)&&Ho(t)==K};function Bs(t){return"number"==typeof t||$s(t)&&Xr(t)==J}function Ds(t){if(!$s(t)||Xr(t)!=Z)return!1;var e=De(t);if(null===e)return!0;var n=le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ue.call(n)==he}var Os=He?gn(He):function(t){return $s(t)&&Xr(t)==et};var Is=ze?gn(ze):function(t){return $s(t)&&Ho(t)==nt};function Ns(t){return"string"==typeof t||!gs(t)&&$s(t)&&Xr(t)==rt}function js(t){return"symbol"==typeof t||$s(t)&&Xr(t)==it}var Ps=qe?gn(qe):function(t){return $s(t)&&ks(t.length)&&!!ke[Xr(t)]};var Rs=_o(fi),Ms=_o(function(t,e){return t<=e});function Fs(t){if(!t)return[];if(As(t))return Ns(t)?On(t):no(t);if(Me&&t[Me])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Me]());var e=Ho(t);return(e==K?kn:e==nt?Sn:pc)(t)}function Ls(t){return t?(t=zs(t))===I||t===-I?(t<0?-1:1)*j:t==t?t:0:0===t?t:0}function Us(t){var e=Ls(t),n=e%1;return e==e?n?e-n:e:0}function Hs(t){return t?Nr(Us(t),0,R):0}function zs(t){if("number"==typeof t)return t;if(js(t))return P;if(Es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nt,"");var n=Wt.test(t);return n||Vt.test(t)?Be(t.slice(2),n?2:8):qt.test(t)?P:+t}function qs(t){return ro(t,oc(t))}function Ws(t){return null==t?"":Pi(t)}var Qs=oo(function(t,e){if(Jo(e)||As(e))ro(e,ic(e),t);else for(var n in e)le.call(e,n)&&$r(t,n,e[n])}),Vs=oo(function(t,e){ro(e,oc(e),t)}),Ys=oo(function(t,e,n,r){ro(e,oc(e),t,r)}),Gs=oo(function(t,e,n,r){ro(e,ic(e),t,r)}),Ks=Bo(Ir);var Js=xi(function(t,e){t=ee(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&Vo(e[0],e[1],i)&&(r=1);++n1),e}),ro(t,Oo(t),n),r&&(n=jr(n,d|p|h,$o));for(var i=e.length;i--;)Mi(n,e[i]);return n});var uc=Bo(function(t,e){return null==t?{}:function(t,e){return yi(t,e,function(e,n){return tc(t,n)})}(t,e)});function lc(t,e){if(null==t)return{};var n=Ze(Oo(t),function(t){return[t]});return e=Po(e),yi(t,n,function(t,n){return e(t,n[0])})}var fc=Co(ic),dc=Co(oc);function pc(t){return null==t?[]:yn(t,ic(t))}var hc=uo(function(t,e,n){return e=e.toLowerCase(),t+(n?vc(e):e)});function vc(t){return xc(Ws(t).toLowerCase())}function mc(t){return(t=Ws(t))&&t.replace(Gt,wn).replace(Ae,"")}var gc=uo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),yc=uo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ac=co("toLowerCase");var _c=uo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var bc=uo(function(t,e,n){return t+(n?" ":"")+xc(e)});var wc=uo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),xc=co("toUpperCase");function Cc(t,e,n){return t=Ws(t),(e=n?o:e)===o?function(t){return xe.test(t)}(t)?function(t){return t.match(be)||[]}(t):function(t){return t.match(Lt)||[]}(t):t.match(e)||[]}var Tc=xi(function(t,e){try{return We(t,o,e)}catch(t){return xs(t)?t:new Xt(t)}}),kc=Bo(function(t,e){return Ve(e,function(e){e=la(e),Or(t,e,ns(t[e],t))}),t});function Ec(t){return function(){return t}}var $c=po(),Sc=po(!0);function Bc(t){return t}function Dc(t){return ci("function"==typeof t?t:jr(t,d))}var Oc=xi(function(t,e){return function(n){return ri(n,t,e)}}),Ic=xi(function(t,e){return function(n){return ri(t,n,e)}});function Nc(t,e,n){var r=ic(e),i=Gr(e,r);null!=n||Es(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Gr(e,ic(e)));var o=!(Es(n)&&"chain"in n&&!n.chain),a=Cs(t);return Ve(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=no(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,tn([this.value()],arguments))})}),t}function jc(){}var Pc=go(Ze),Rc=go(Ge),Mc=go(rn);function Fc(t){return Yo(t)?dn(la(t)):function(t){return function(e){return Kr(e,t)}}(t)}var Lc=Ao(),Uc=Ao(!0);function Hc(){return[]}function zc(){return!1}var qc=mo(function(t,e){return t+e},0),Wc=wo("ceil"),Qc=mo(function(t,e){return t/e},1),Vc=wo("floor");var Yc,Gc=mo(function(t,e){return t*e},1),Kc=wo("round"),Jc=mo(function(t,e){return t-e},0);return pr.after=function(t,e){if("function"!=typeof e)throw new ie(c);return t=Us(t),function(){if(--t<1)return e.apply(this,arguments)}},pr.ary=ts,pr.assign=Qs,pr.assignIn=Vs,pr.assignInWith=Ys,pr.assignWith=Gs,pr.at=Ks,pr.before=es,pr.bind=ns,pr.bindAll=kc,pr.bindKey=rs,pr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return gs(t)?t:[t]},pr.chain=Fa,pr.chunk=function(t,e,n){e=(n?Vo(t,e,n):e===o)?1:Wn(Us(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,c=r(Mn(i/e));ai?0:i+n),(r=r===o||r>i?i:Us(r))<0&&(r+=i),r=n>r?0:Hs(r);n>>0)?(t=Ws(t))&&("string"==typeof e||null!=e&&!Os(e))&&!(e=Pi(e))&&Tn(t)?Yi(On(t),0,n):t.split(e,n):[]},pr.spread=function(t,e){if("function"!=typeof t)throw new ie(c);return e=null==e?0:Wn(Us(e),0),xi(function(n){var r=n[e],i=Yi(n,0,e);return r&&tn(i,r),We(t,this,i)})},pr.tail=function(t){var e=null==t?0:t.length;return e?Bi(t,1,e):[]},pr.take=function(t,e,n){return t&&t.length?Bi(t,0,(e=n||e===o?1:Us(e))<0?0:e):[]},pr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Bi(t,(e=r-(e=n||e===o?1:Us(e)))<0?0:e,r):[]},pr.takeRightWhile=function(t,e){return t&&t.length?Li(t,Po(e,3),!1,!0):[]},pr.takeWhile=function(t,e){return t&&t.length?Li(t,Po(e,3)):[]},pr.tap=function(t,e){return e(t),t},pr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ie(c);return Es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(t,e,{leading:r,maxWait:e,trailing:i})},pr.thru=La,pr.toArray=Fs,pr.toPairs=fc,pr.toPairsIn=dc,pr.toPath=function(t){return gs(t)?Ze(t,la):js(t)?[t]:no(ua(Ws(t)))},pr.toPlainObject=qs,pr.transform=function(t,e,n){var r=gs(t),i=r||bs(t)||Ps(t);if(e=Po(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Es(t)&&Cs(o)?hr(De(t)):{}}return(i?Ve:Vr)(t,function(t,r,i){return e(n,t,r,i)}),n},pr.unary=function(t){return ts(t,1)},pr.union=$a,pr.unionBy=Sa,pr.unionWith=Ba,pr.uniq=function(t){return t&&t.length?Ri(t):[]},pr.uniqBy=function(t,e){return t&&t.length?Ri(t,Po(e,2)):[]},pr.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?Ri(t,o,e):[]},pr.unset=function(t,e){return null==t||Mi(t,e)},pr.unzip=Da,pr.unzipWith=Oa,pr.update=function(t,e,n){return null==t?t:Fi(t,e,Wi(n))},pr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:Fi(t,e,Wi(n),r)},pr.values=pc,pr.valuesIn=function(t){return null==t?[]:yn(t,oc(t))},pr.without=Ia,pr.words=Cc,pr.wrap=function(t,e){return ls(Wi(e),t)},pr.xor=Na,pr.xorBy=ja,pr.xorWith=Pa,pr.zip=Ra,pr.zipObject=function(t,e){return zi(t||[],e||[],$r)},pr.zipObjectDeep=function(t,e){return zi(t||[],e||[],ki)},pr.zipWith=Ma,pr.entries=fc,pr.entriesIn=dc,pr.extend=Vs,pr.extendWith=Ys,Nc(pr,pr),pr.add=qc,pr.attempt=Tc,pr.camelCase=hc,pr.capitalize=vc,pr.ceil=Wc,pr.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=zs(n))==n?n:0),e!==o&&(e=(e=zs(e))==e?e:0),Nr(zs(t),e,n)},pr.clone=function(t){return jr(t,h)},pr.cloneDeep=function(t){return jr(t,d|h)},pr.cloneDeepWith=function(t,e){return jr(t,d|h,e="function"==typeof e?e:o)},pr.cloneWith=function(t,e){return jr(t,h,e="function"==typeof e?e:o)},pr.conformsTo=function(t,e){return null==e||Pr(t,e,ic(e))},pr.deburr=mc,pr.defaultTo=function(t,e){return null==t||t!=t?e:t},pr.divide=Qc,pr.endsWith=function(t,e,n){t=Ws(t),e=Pi(e);var r=t.length,i=n=n===o?r:Nr(Us(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},pr.eq=ps,pr.escape=function(t){return(t=Ws(t))&&Tt.test(t)?t.replace(xt,xn):t},pr.escapeRegExp=function(t){return(t=Ws(t))&&It.test(t)?t.replace(Ot,"\\$&"):t},pr.every=function(t,e,n){var r=gs(t)?Ge:Ur;return n&&Vo(t,e,n)&&(e=o),r(t,Po(e,3))},pr.find=za,pr.findIndex=ma,pr.findKey=function(t,e){return an(t,Po(e,3),Vr)},pr.findLast=qa,pr.findLastIndex=ga,pr.findLastKey=function(t,e){return an(t,Po(e,3),Yr)},pr.floor=Vc,pr.forEach=Wa,pr.forEachRight=Qa,pr.forIn=function(t,e){return null==t?t:Wr(t,Po(e,3),oc)},pr.forInRight=function(t,e){return null==t?t:Qr(t,Po(e,3),oc)},pr.forOwn=function(t,e){return t&&Vr(t,Po(e,3))},pr.forOwnRight=function(t,e){return t&&Yr(t,Po(e,3))},pr.get=Zs,pr.gt=hs,pr.gte=vs,pr.has=function(t,e){return null!=t&&zo(t,e,ti)},pr.hasIn=tc,pr.head=Aa,pr.identity=Bc,pr.includes=function(t,e,n,r){t=As(t)?t:pc(t),n=n&&!r?Us(n):0;var i=t.length;return n<0&&(n=Wn(i+n,0)),Ns(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&cn(t,e,n)>-1},pr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Us(n);return i<0&&(i=Wn(r+i,0)),cn(t,e,i)},pr.inRange=function(t,e,n){return e=Ls(e),n===o?(n=e,e=0):n=Ls(n),function(t,e,n){return t>=Qn(e,n)&&t=-N&&t<=N},pr.isSet=Is,pr.isString=Ns,pr.isSymbol=js,pr.isTypedArray=Ps,pr.isUndefined=function(t){return t===o},pr.isWeakMap=function(t){return $s(t)&&Ho(t)==at},pr.isWeakSet=function(t){return $s(t)&&Xr(t)==st},pr.join=function(t,e){return null==t?"":zn.call(t,e)},pr.kebabCase=gc,pr.last=xa,pr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=Us(n))<0?Wn(r+i,0):Qn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):sn(t,ln,i,!0)},pr.lowerCase=yc,pr.lowerFirst=Ac,pr.lt=Rs,pr.lte=Ms,pr.max=function(t){return t&&t.length?Hr(t,Bc,Zr):o},pr.maxBy=function(t,e){return t&&t.length?Hr(t,Po(e,2),Zr):o},pr.mean=function(t){return fn(t,Bc)},pr.meanBy=function(t,e){return fn(t,Po(e,2))},pr.min=function(t){return t&&t.length?Hr(t,Bc,fi):o},pr.minBy=function(t,e){return t&&t.length?Hr(t,Po(e,2),fi):o},pr.stubArray=Hc,pr.stubFalse=zc,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Gc,pr.nth=function(t,e){return t&&t.length?mi(t,Us(e)):o},pr.noConflict=function(){return Ie._===this&&(Ie._=ve),this},pr.noop=jc,pr.now=Za,pr.pad=function(t,e,n){t=Ws(t);var r=(e=Us(e))?Dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return yo(Fn(i),n)+t+yo(Mn(i),n)},pr.padEnd=function(t,e,n){t=Ws(t);var r=(e=Us(e))?Dn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Gn();return Qn(t+i*(e-t+Se("1e-"+((i+"").length-1))),e)}return bi(t,e)},pr.reduce=function(t,e,n){var r=gs(t)?en:hn,i=arguments.length<3;return r(t,Po(e,4),n,i,Fr)},pr.reduceRight=function(t,e,n){var r=gs(t)?nn:hn,i=arguments.length<3;return r(t,Po(e,4),n,i,Lr)},pr.repeat=function(t,e,n){return e=(n?Vo(t,e,n):e===o)?1:Us(e),wi(Ws(t),e)},pr.replace=function(){var t=arguments,e=Ws(t[0]);return t.length<3?e:e.replace(t[1],t[2])},pr.result=function(t,e,n){var r=-1,i=(e=Qi(e,t)).length;for(i||(i=1,t=o);++rN)return[];var n=R,r=Qn(t,R);e=Po(e),t-=R;for(var i=mn(r,e);++n=a)return t;var c=n-Dn(r);if(c<1)return r;var u=s?Yi(s,0,c).join(""):t.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),Os(i)){if(t.slice(c).search(i)){var l,f=u;for(i.global||(i=ne(i.source,Ws(zt.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;u=u.slice(0,d===o?c:d)}}else if(t.indexOf(Pi(i),c)!=c){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},pr.unescape=function(t){return(t=Ws(t))&&Ct.test(t)?t.replace(wt,In):t},pr.uniqueId=function(t){var e=++fe;return Ws(t)+e},pr.upperCase=wc,pr.upperFirst=xc,pr.each=Wa,pr.eachRight=Qa,pr.first=Aa,Nc(pr,(Yc={},Vr(pr,function(t,e){le.call(pr.prototype,e)||(Yc[e]=t)}),Yc),{chain:!1}),pr.VERSION="4.17.15",Ve(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pr[t].placeholder=pr}),Ve(["drop","take"],function(t,e){gr.prototype[t]=function(n){n=n===o?1:Wn(Us(n),0);var r=this.__filtered__&&!e?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Qn(n,r.__takeCount__):r.__views__.push({size:Qn(n,R),type:t+(r.__dir__<0?"Right":"")}),r},gr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ve(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==D||3==n;gr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Po(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ve(["head","last"],function(t,e){var n="take"+(e?"Right":"");gr.prototype[t]=function(){return this[n](1).value()[0]}}),Ve(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");gr.prototype[t]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(Bc)},gr.prototype.find=function(t){return this.filter(t).head()},gr.prototype.findLast=function(t){return this.reverse().find(t)},gr.prototype.invokeMap=xi(function(t,e){return"function"==typeof t?new gr(this):this.map(function(n){return ri(n,t,e)})}),gr.prototype.reject=function(t){return this.filter(cs(Po(t)))},gr.prototype.slice=function(t,e){t=Us(t);var n=this;return n.__filtered__&&(t>0||e<0)?new gr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=Us(e))<0?n.dropRight(-e):n.take(e-t)),n)},gr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},gr.prototype.toArray=function(){return this.take(R)},Vr(gr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=pr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(pr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,c=e instanceof gr,u=s[0],l=c||gs(e),f=function(t){var e=i.apply(pr,tn([t],s));return r&&d?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=c&&!p;if(!a&&l){e=v?e:new gr(this);var m=t.apply(e,s);return m.__actions__.push({func:La,args:[f],thisArg:o}),new mr(m,d)}return h&&v?t.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),Ve(["pop","push","shift","sort","splice","unshift"],function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);pr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(gs(i)?i:[],t)}return this[n](function(n){return e.apply(gs(n)?n:[],t)})}}),Vr(gr.prototype,function(t,e){var n=pr[e];if(n){var r=n.name+"";le.call(ir,r)||(ir[r]=[]),ir[r].push({name:e,func:n})}}),ir[ho(o,y).name]=[{name:"wrapper",func:o}],gr.prototype.clone=function(){var t=new gr(this.__wrapped__);return t.__actions__=no(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=no(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=no(this.__views__),t},gr.prototype.reverse=function(){if(this.__filtered__){var t=new gr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},gr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=gs(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},pr.prototype.plant=function(t){for(var e,n=this;n instanceof vr;){var r=da(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},pr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof gr){var e=t;return this.__actions__.length&&(e=new gr(this)),(e=e.reverse()).__actions__.push({func:La,args:[Ea],thisArg:o}),new mr(e,this.__chain__)}return this.thru(Ea)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Ui(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Me&&(pr.prototype[Me]=function(){return this}),pr}();Ie._=Nn,(i=function(){return Nn}.call(e,n,e,r))===o||(r.exports=i)}).call(this)}).call(e,n(4),n(18)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,c=o.slice,u=o.concat,l=o.push,f=o.indexOf,d={},p=d.toString,h=d.hasOwnProperty,v=h.toString,m=v.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},A=function(t){return null!=t&&t===t.window},_={type:!0,src:!0,noModule:!0};function b(t,e,n){var r,i=(e=e||a).createElement("script");if(i.text=t,n)for(r in _)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[p.call(t)]||"object":typeof t}var x=function(t,e){return new x.fn.init(t,e)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!A(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+P+")"+P+"*"),q=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),W=new RegExp(F),Q=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){d()},it=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(S=I.call(b.childNodes),b.childNodes),S[b.childNodes.length].nodeType}catch(t){O={apply:S.length?function(t,e){D.apply(t,I.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var o,s,u,l,f,h,g,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&((e?e.ownerDocument||e:b)!==p&&d(e),e=e||p,v)){if(11!==w&&(f=J.exec(t)))if(o=f[1]){if(9===w){if(!(u=e.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&A(e,u)&&u.id===o)return r.push(u),r}else{if(f[2])return O.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return O.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!k[t+" "]&&(!m||!m.test(t))){if(1!==w)y=e,g=t;else if("object"!==e.nodeName.toLowerCase()){for((l=e.getAttribute("id"))?l=l.replace(et,nt):e.setAttribute("id",l=_),s=(h=a(t)).length;s--;)h[s]="#"+l+" "+gt(h[s]);g=h.join(","),y=X.test(t)&&vt(e.parentNode)||e}if(g)try{return O.apply(r,y.querySelectorAll(g)),r}catch(t){}finally{l===_&&e.removeAttribute("id")}}}return c(t.replace(U,"$1"),e,r,i)}function at(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[_]=!0,t}function ct(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function pt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ht(t){return st(function(e){return e=+e,st(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:b;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!o(p),b!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ct(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ct(function(t){return h.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(Z,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(Z,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(ct(function(t){h.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+_+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]")}),ct(function(t){t.innerHTML="";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ct(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),g.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=K.test(h.compareDocumentPosition),A=e||K.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===p||t.ownerDocument===b&&A(b,t)?-1:e===p||e.ownerDocument===b&&A(b,e)?1:l?N(l,t)-N(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===p?-1:e===p?1:i?-1:o?1:l?N(l,t)-N(l,e):0;if(i===o)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?lt(a[r],s[r]):a[r]===b?-1:s[r]===b?1:0},p):p},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(q,"='$1']"),n.matchesSelector&&v&&!k[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return ot(e,p,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),A(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&$.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(E),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return l=null,t},i=ot.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Z,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Z,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Z,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(L," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,c){var u,l,f,d,p,h,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!c&&!s,A=!1;if(m){if(o){for(;v;){for(d=e;d=d[v];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(A=(p=(u=(l=(f=(d=m)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===w&&u[1])&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[v]||(A=p=0)||h.pop();)if(1===d.nodeType&&++A&&d===e){l[t]=[w,p,A];break}}else if(y&&(A=p=(u=(l=(f=(d=e)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===w&&u[1]),!1===A)for(;(d=++p&&d&&d[v]||(A=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++A||(y&&((l=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]=[w,A]),d!==e)););return(A-=i)===r||A%r==0&&A/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=N(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(U,"$1"));return r[_]?st(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(Z,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return Q.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(Z,tt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:ht(function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function _t(t,e,n,r,i){for(var o,a=[],s=0,c=t.length,u=null!=e;s-1&&(o[u]=!(a[u]=f))}}else g=_t(g===a?g.splice(h,g.length):g),i?i(null,a,g,c):O.apply(a,g)})}function wt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],c=a?1:0,l=yt(function(t){return t===e},s,!0),f=yt(function(t){return N(e,t)>-1},s,!0),d=[function(t,n,r){var i=!a&&(r||n!==u)||((e=n).nodeType?l(t,n,r):f(t,n,r));return e=null,i}];c1&&At(d),c>1&>(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(U,"$1"),n,c0,i=t.length>0,o=function(o,a,s,c,l){var f,h,m,g=0,y="0",A=o&&[],_=[],b=u,x=o||i&&r.find.TAG("*",l),C=w+=null==b?1:Math.random()||.1,T=x.length;for(l&&(u=a===p||a||l);y!==T&&null!=(f=x[y]);y++){if(i&&f){for(h=0,a||f.ownerDocument===p||(d(f),s=!v);m=t[h++];)if(m(f,a||p,s)){c.push(f);break}l&&(w=C)}n&&((f=!m&&f)&&g--,o&&A.push(f))}if(g+=y,n&&y!==g){for(h=0;m=e[h++];)m(A,_,a,s);if(o){if(g>0)for(;y--;)A[y]||_[y]||(_[y]=B.call(c));_=_t(_)}O.apply(c,_),l&&!o&&_.length>0&&g+e.length>1&&ot.uniqueSort(c)}return l&&(w=C,u=b),A};return n?st(o):o}(o,i))).selector=t}return s},c=ot.select=function(t,e,n,i){var o,c,u,l,f,d="function"==typeof t&&t,p=!i&&a(t=d.selector||t);if(n=n||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===e.nodeType&&v&&r.relative[c[1].type]){if(!(e=(r.find.ID(u.matches[0].replace(Z,tt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(u=c[o],!r.relative[l=u.type]);)if((f=r.find[l])&&(i=f(u.matches[0].replace(Z,tt),X.test(c[0].type)&&vt(e.parentNode)||e))){if(c.splice(o,1),!(t=i.length&>(c)))return O.apply(n,i),n;break}}return(d||s(t,p))(i,e,!v,n,!e||X.test(t)&&vt(e.parentNode)||e),n},n.sortStable=_.split("").sort(E).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))}),ct(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ct(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||ut(j,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),ot}(n);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var E=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&x(t).is(n))break;r.push(t)}return r},$=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},S=x.expr.match.needsContext;function B(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,n){return y(e)?x.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?x.grep(t,function(t){return t===e!==n}):"string"!=typeof e?x.grep(t,function(t){return f.call(e,t)>-1!==n}):x.filter(e,t,n)}x.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&S.test(t)?x(t):t||[],!1).length}});var I,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||I,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:N.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),D.test(r[1])&&x.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,I=x(a);var j=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(x(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,e,n){return E(t,"parentNode",n)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,e,n){return E(t,"nextSibling",n)},prevUntil:function(t,e,n){return E(t,"previousSibling",n)},siblings:function(t){return $((t.parentNode||{}).firstChild,t)},children:function(t){return $(t.firstChild)},contents:function(t){return B(t,"iframe")?t.contentDocument:(B(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(n,r){var i=x.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(P[t]||x.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function F(t){return t}function L(t){throw t}function U(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(M)||[],function(t,n){e[n]=!0}),e}(t):x.extend({},t);var e,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(n){x.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,c=arguments,u=function(){var n,u;if(!(t=o&&(r!==L&&(s=void 0,c=[n]),e.rejectWith(s,c))}};t?l():(x.Deferred.getStackHook&&(l.stackTrace=x.Deferred.getStackHook()),n.setTimeout(l))}}return x.Deferred(function(n){e[0][3].add(a(0,n,y(i)?i:F,n.notifyWith)),e[1][3].add(a(0,n,y(t)?t:F)),e[2][3].add(a(0,n,y(r)?r:L))}).promise()},promise:function(t){return null!=t?x.extend(t,i):i}},o={};return x.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=c.call(arguments),o=x.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?c.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(U(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&H.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){n.setTimeout(function(){throw t})};var z=x.Deferred();function q(){a.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),x.ready()}x.fn.ready=function(t){return z.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||z.resolveWith(a,[x]))}}),x.ready.then=z.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(x.ready):(a.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var W=function(t,e,n,r,i,o,a){var s=0,c=t.length,u=null==n;if("object"===w(n))for(s in i=!0,n)W(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),u&&(a?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){Z.remove(this,t)})}}),x.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=X.get(t,e),n&&(!r||Array.isArray(n)?r=X.access(t,e,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),r=n.length,i=n.shift(),o=x._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){x.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return X.get(t,n)||X.access(t,n,{empty:x.Callbacks("once memory").add(function(){X.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,vt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&B(t,e)?x.merge([t],n):n}function gt(t,e){for(var n=0,r=t.length;n-1)i&&i.push(o);else if(u=x.contains(o.ownerDocument,o),a=mt(f.appendChild(o),"script"),u&>(a),n)for(l=0;o=a[l++];)ht.test(o.type||"")&&n.push(o);return f}yt=a.createDocumentFragment().appendChild(a.createElement("div")),(At=a.createElement("input")).setAttribute("type","radio"),At.setAttribute("checked","checked"),At.setAttribute("name","t"),yt.appendChild(At),g.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked,yt.innerHTML="",g.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue;var wt=a.documentElement,xt=/^key/,Ct=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Et(){return!1}function $t(){try{return a.activeElement}catch(t){}}function St(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)St(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Et;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each(function(){x.event.add(this,e,i,r,n)})}x.event={global:{},add:function(t,e,n,r,i){var o,a,s,c,u,l,f,d,p,h,v,m=X.get(t);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&x.find.matchesSelector(wt,i),n.guid||(n.guid=x.guid++),(c=m.events)||(c=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(M)||[""]).length;u--;)p=v=(s=Tt.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=x.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=x.event.special[p]||{},l=x.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=c[p])||((d=c[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),x.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,c,u,l,f,d,p,h,v,m=X.hasData(t)&&X.get(t);if(m&&(c=m.events)){for(u=(e=(e||"").match(M)||[""]).length;u--;)if(p=v=(s=Tt.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=x.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(t,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,h,m.handle)||x.removeEvent(t,p,m.handle),delete c[p])}else for(p in c)x.event.remove(t,p+e[u],n,r,!0);x.isEmptyObject(c)&&X.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=x.event.fix(t),c=new Array(arguments.length),u=(X.get(this,"events")||{})[s.type]||[],l=x.event.special[s.type]||{};for(c[0]=s,e=1;e=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n-1:x.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,Dt=/\s*$/g;function Nt(t,e){return B(t,"table")&&B(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Pt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,e){var n,r,i,o,a,s,c,u;if(1===e.nodeType){if(X.hasData(t)&&(o=X.access(t),a=X.set(e,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n1&&"string"==typeof h&&!g.checkClone&&Ot.test(h))return t.each(function(i){var o=t.eq(i);v&&(e[0]=h.call(this,i,o.html())),Mt(o,e,n,r)});if(d&&(o=(i=bt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=x.map(mt(i,"script"),jt)).length;f")},clone:function(t,e,n){var r,i,o,a,s,c,u,l=t.cloneNode(!0),f=x.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=mt(l),r=0,i=(o=mt(t)).length;r0&>(a,!f&&mt(t,"script")),l},cleanData:function(t){for(var e,n,r,i=x.event.special,o=0;void 0!==(n=t[o]);o++)if(K(n)){if(e=n[X.expando]){if(e.events)for(r in e.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,e.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return W(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Mt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Nt(this,t).appendChild(t)})},prepend:function(){return Mt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Nt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Mt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Mt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!vt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-s-.5))),c}function te(t,e,n){var r=Ut(t),i=zt(t,e,r),o="border-box"===x.css(t,"boxSizing",!1,r),a=o;if(Lt.test(i)){if(!n)return i;i="auto"}return a=a&&(g.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===x.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Zt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=G(e),c=Qt.test(e),u=t.style;if(c||(e=Jt(s)),a=x.cssHooks[e]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];"string"===(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ct(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(c?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,o,a,s=G(e);return Qt.test(e)||(e=Jt(s)),(a=x.cssHooks[e]||x.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=zt(t,e,r)),"normal"===i&&e in Yt&&(i=Yt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,n,r){if(n)return!Wt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):st(t,Vt,function(){return te(t,e,r)})},set:function(t,n,r){var i,o=Ut(t),a="border-box"===x.css(t,"boxSizing",!1,o),s=r&&Zt(t,e,r,a,o);return a&&g.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Zt(t,e,"border",!1,o)-.5)),s&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Xt(0,n,s)}}}),x.cssHooks.marginLeft=qt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(x.cssHooks[t+e].set=Xt)}),x.fn.extend({css:function(t,e){return W(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ut(t),i=e.length;a1)}}),x.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[x.cssProps[t.prop]]&&!x.cssHooks[t.prop]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ee.prototype.init,x.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){re&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ae):n.setTimeout(ae,x.fx.interval),x.fx.tick())}function se(){return n.setTimeout(function(){ne=void 0}),ne=Date.now()}function ce(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ue(t,e,n){for(var r,i=(le.tweeners[e]||[]).concat(le.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(i=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?fe:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=x.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&B(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(M);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),fe={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var n=de[e]||x.find.attr;de[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=de[a],de[a]=i,i=null!=n(t,e,r)?a:null,de[a]=o),i}});var pe=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function ve(t){return(t.match(M)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}x.fn.extend({prop:function(t,e){return W(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,i=x.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,c=0;if(y(t))return this.each(function(e){x(this).addClass(t.call(this,e,me(this)))});if((e=ge(t)).length)for(;n=this[c++];)if(i=me(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ve(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,c=0;if(y(t))return this.each(function(e){x(this).removeClass(t.call(this,e,me(this)))});if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[c++];)if(i=me(n),r=1===n.nodeType&&" "+ve(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=ve(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(n){x(this).toggleClass(t.call(this,n,me(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=x(this),a=ge(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ve(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g;x.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,x(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ye,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:ve(x.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},g.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),g.focusin="onfocusin"in n;var Ae=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,r,i){var o,s,c,u,l,f,d,p,v=[r||a],m=h.call(t,"type")?t.type:t,g=h.call(t,"namespace")?t.namespace.split("."):[];if(s=p=c=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!Ae.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(m=(g=m.split(".")).shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[x.expando]?t:new x.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:x.makeArray(e,[t]),d=x.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,e))){if(!i&&!d.noBubble&&!A(r)){for(u=d.delegateType||m,Ae.test(u+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),c=s;c===(r.ownerDocument||a)&&v.push(c.defaultView||c.parentWindow||n)}for(o=0;(s=v[o++])&&!t.isPropagationStopped();)p=s,t.type=o>1?u:d.bindType||m,(f=(X.get(s,"events")||{})[t.type]&&X.get(s,"handle"))&&f.apply(s,e),(f=l&&s[l])&&f.apply&&K(s)&&(t.result=f.apply(s,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),e)||!K(r)||l&&y(r[m])&&!A(r)&&((c=r[l])&&(r[l]=null),x.event.triggered=m,t.isPropagationStopped()&&p.addEventListener(m,_e),r[m](),t.isPropagationStopped()&&p.removeEventListener(m,_e),x.event.triggered=void 0,c&&(r[l]=c)),t.result}},simulate:function(t,e,n){var r=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(r,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),g.focusin||x.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=X.access(r,e);i||r.addEventListener(t,n,!0),X.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=X.access(r,e)-1;i?X.access(r,e,i):(r.removeEventListener(t,n,!0),X.remove(r,e))}}});var be=n.location,we=Date.now(),xe=/\?/;x.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),e};var Ce=/\[\]$/,Te=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function $e(t,e,n,r){var i;if(Array.isArray(e))x.each(e,function(e,i){n||Ce.test(t)?r(t,i):$e(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==w(e))r(t,e);else for(i in e)$e(t+"["+i+"]",e[i],n,r)}x.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){i(this.name,this.value)});else for(n in t)$e(n,t[n],e,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Ee.test(this.nodeName)&&!ke.test(t)&&(this.checked||!dt.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}});var Se=/%20/g,Be=/#.*$/,De=/([?&])_=[^&]*/,Oe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:GET|HEAD)$/,Ne=/^\/\//,je={},Pe={},Re="*/".concat("*"),Me=a.createElement("a");function Fe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(M)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Le(t,e,n,r){var i={},o=t===Pe;function a(s){var c;return i[s]=!0,x.each(t[s]||[],function(t,s){var u=s(e,n,r);return"string"!=typeof u||o||i[u]?o?!(c=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),c}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ue(t,e){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&x.extend(!0,t,r),t}Me.href=be.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,x.ajaxSettings),e):Ue(x.ajaxSettings,t)},ajaxPrefilter:Fe(je),ajaxTransport:Fe(Pe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,c,u,l,f,d,p,h=x.ajaxSetup({},e),v=h.context||h,m=h.context&&(v.nodeType||v.jquery)?x(v):x.event,g=x.Deferred(),y=x.Callbacks("once memory"),A=h.statusCode||{},_={},b={},w="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(l){if(!s)for(s={};e=Oe.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==l&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)C.always(t[C.status]);else for(e in t)A[e]=[A[e],t[e]];return this},abort:function(t){var e=t||w;return r&&r.abort(e),T(0,e),this}};if(g.promise(C),h.url=((t||h.url||be.href)+"").replace(Ne,be.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){u=a.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Me.protocol+"//"+Me.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Le(je,h,e,C),l)return C;for(d in(f=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ie.test(h.type),i=h.url.replace(Be,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Se,"+")):(p=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(xe.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(De,"$1"),p=(xe.test(i)?"&":"?")+"_="+we+++p),h.url=i+p),h.ifModified&&(x.lastModified[i]&&C.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&C.setRequestHeader("If-None-Match",x.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Re+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(v,C,h)||l))return C.abort();if(w="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),r=Le(Pe,h,e,C)){if(C.readyState=1,f&&m.trigger("ajaxSend",[C,h]),l)return C;h.async&&h.timeout>0&&(c=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{l=!1,r.send(_,T)}catch(t){if(l)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,a,s){var u,d,p,_,b,w=e;l||(l=!0,c&&n.clearTimeout(c),r=void 0,o=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var r,i,o,a,s=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,C,a)),_=function(t,e,n,r){var i,o,a,s,c,u={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!c&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=l.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=u[c+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(h,_,C,u),u?(h.ifModified&&((b=C.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=b),(b=C.getResponseHeader("etag"))&&(x.etag[i]=b)),204===t||"HEAD"===h.type?w="nocontent":304===t?w="notmodified":(w=_.state,d=_.data,u=!(p=_.error))):(p=w,!t&&w||(w="error",t<0&&(t=0))),C.status=t,C.statusText=(e||w)+"",u?g.resolveWith(v,[d,w,C]):g.rejectWith(v,[C,w,p]),C.statusCode(A),A=void 0,f&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?d:p]),y.fireWith(v,[C,w]),f&&(m.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:i,data:n,success:r},x.isPlainObject(t)&&t))}}),x._evalUrl=function(t){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){x(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},ze=x.ajaxSettings.xhr();g.cors=!!ze&&"withCredentials"in ze,g.ajax=ze=!!ze,x.ajaxTransport(function(t){var e,r;if(g.cors||ze&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(He[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),x.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=x(" - -{% endblock %} - -{% block styles %} {% endblock %} diff --git a/resources/views/v1/transactions/edit.twig b/resources/views/v1/transactions/edit.twig index ab3b4c55c0..5f74554d8e 100644 --- a/resources/views/v1/transactions/edit.twig +++ b/resources/views/v1/transactions/edit.twig @@ -6,250 +6,6 @@ {% endblock %} {% block content %} - - {# -
- - - - - - {% if errors.all|length > 0 %} -
-
-

{{ 'errors'|_ }}

-
    - {% for err in errors.all %} -
  • {{ err }}
  • - {% endfor %} -
-
-
- {% endif %} - - -
-
-
-
-

{{ 'mandatoryFields'|_ }}

-
-
- - - {{ ExpandedForm.text('description',journal.description) }} - - - {% if what == 'transfer' or what == 'withdrawal' %} - {{ ExpandedForm.longAccountList('source_id', data.source_id, {label: trans('form.asset_source_account')}) }} - {% endif %} - - - {% if what == 'deposit' %} - {{ ExpandedForm.text('source_name',data.source_name, {label: trans('form.revenue_account')}) }} - {% endif %} - - - {% if what == 'withdrawal' %} - {{ ExpandedForm.text('destination_name',data.destination_name, {label: trans('form.expense_account')}) }} - {% endif %} - - - {% if what == 'transfer' or what == 'deposit' %} - {{ ExpandedForm.longAccountList('destination_id', data.destination_id, {label: trans('form.asset_destination_account')} ) }} - {% endif %} - - - {{ ExpandedForm.amount('amount',data.amount, {'currency' : data.currency}) }} - - - {{ ExpandedForm.staticText('exchange_rate_instruction','(here be text)') }} - - {{ ExpandedForm.nonSelectableAmount('native_amount', data.native_amount, {currency: data.native_currency}) }} - - {{ ExpandedForm.nonSelectableAmount('source_amount', data.source_amount, {currency: data.source_currency }) }} - - {{ ExpandedForm.nonSelectableAmount('destination_amount', data.destination_amount, {currency: data.destination_currency }) }} - - - {{ ExpandedForm.date('date',data['date']) }} -
-
- -
-
-
-
-

{{ 'optionalFields'|_ }}

-
-
- {% if what == 'withdrawal' %} - {% if budgetList|length > 1 %} - {{ ExpandedForm.select('budget_id', budgetList, data['budget_id']) }} - {% else %} - {{ ExpandedForm.select('budget_id', budgetList, data['budget_id'], {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} - {% endif %} - {% endif %} - {{ ExpandedForm.text('category',data['category']) }} - {{ ExpandedForm.text('tags') }} - - {% if data.bill_id != null %} - {{ ExpandedForm.checkbox('keep_bill_id',1,true, {'helpText': trans('firefly.journal_link_bill', {name: data.bill_name,route: route('bills.show', [data.bill_id])})} ) }} - {% endif %} - -
-
- - - {% if - not optionalFields.interest_date or - not optionalFields.book_date or - not optionalFields.process_date or - not optionalFields.due_date or - not optionalFields.payment_date or - not optionalFields.invoice_date or - not optionalFields.internal_reference or - not optionalFields.notes or - not optionalFields.attachments %} -

- {{ trans('firefly.hidden_fields_preferences', {link: route('preferences.index')})|raw }}

- {% endif %} - {% if - optionalFields.interest_date or - optionalFields.book_date or - optionalFields.process_date or - optionalFields.due_date or - optionalFields.payment_date or - optionalFields.invoice_date or - data.interest_date or - data.book_date or - data.process_date or - data.due_date or - data.payment_date %} -
-
-

{{ 'optional_field_meta_dates'|_ }}

-
-
- - {% if optionalFields.interest_date or data['interest_date'] %} - {{ ExpandedForm.date('interest_date',data['interest_date']) }} - {% endif %} - - {% if optionalFields.book_date or data['book_date'] %} - {{ ExpandedForm.date('book_date',data['book_date']) }} - {% endif %} - - {% if optionalFields.process_date or data['process_date'] %} - {{ ExpandedForm.date('process_date',data['process_date']) }} - {% endif %} - - {% if optionalFields.due_date or data['due_date'] %} - {{ ExpandedForm.date('due_date',data['due_date']) }} - {% endif %} - - {% if optionalFields.payment_date or data['payment_date'] %} - {{ ExpandedForm.date('payment_date',data['payment_date']) }} - {% endif %} - - {% if optionalFields.invoice_date or data['invoice_date'] %} - {{ ExpandedForm.date('invoice_date',data['invoice_date']) }} - {% endif %} - -
-
- {% endif %} - - - {% if - optionalFields.internal_reference or - optionalFields.notes or - data['interal_reference'] or - data['notes'] %} -
-
-

{{ 'optional_field_meta_business'|_ }}

-
-
- {% if optionalFields.internal_reference or data['interal_reference'] %} - {{ ExpandedForm.text('internal_reference', data['interal_reference']) }} - {% endif %} - - {% if optionalFields.notes or data['notes'] %} - {{ ExpandedForm.textarea('notes', data['notes'], {helpText: trans('firefly.field_supports_markdown')}) }} - {% endif %} - -
-
- {% endif %} - - {% if optionalFields.attachments or journal.attachments|length > 0 %} -
-
-

{{ 'optional_field_attachments'|_ }}

-
-
- {% if journal.attachments|length > 0 %} -
- -
- {% for att in journal.attachments %} - - {% endfor %} -
-
- {% endif %} - - {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }} - -
-
- {% endif %} - - -
-
-

{{ 'options'|_ }}

-
-
- {{ ExpandedForm.optionsList('update','transaction') }} - -
- - - -
-
- -
-
-
- - -
- #} - {% endblock %} {% block scripts %} - {# - - - - - - - - - - - -#} {% endblock %} {% block styles %} - {# - - - - #} {% endblock %}